Fernando Alonso 7 jaren geleden
bovenliggende
commit
ed013db8ca
1 gewijzigde bestanden met toevoegingen van 26 en 0 verwijderingen
  1. 26 0
      behat/testScreenshot/tests/imagenes.php

+ 26 - 0
behat/testScreenshot/tests/imagenes.php

@@ -0,0 +1,26 @@
+<?php 
+
+$path = $_GET["path"];
+$raiz= "comp/";
+$cant= strlen($raiz);
+$dirs = glob($raiz."*");//
+
+echo "<table align='left' border=2>";
+echo "<tr><td align=center><b><a>Lista de Commits</a></b></td></tr>";
+for ($i=0; $i<count($dirs); $i++)
+{
+	$dir = substr($dirs[$i],$cant);
+	echo '<tr><td><a href=http://localhost/imagenes.php?path='.$dir.'><font size="3" face="arial">'.$dir.'</font></a></td></tr>';
+}
+echo "</table>";
+echo "<h3 align=center style='color: brown;font-family: courier;'>Comp commit: <u>" . $path . "</u></h3>";
+
+echo "<table align='right' border=1>";
+$files = glob("comp/".$path."/*/*.*"); 
+
+for ($i=0; $i<count($files); $i++) 
+	{
+    	$num = $files[$i];
+		echo '<tr><a href='.$num.'><img src="'.$num.'" alt="random image" height="150" width="150"></a>'."&nbsp;&nbsp;</tr>";      
+	}
+echo "</table>";