tazwok rev 376

web/index.php: xhtml fixes
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 27 15:47:47 2011 +0100 (2011-02-27)
parents affd28413274
children f11ce6659cab
files web/index.php
line diff
     1.1 --- a/web/index.php	Sun Feb 27 13:22:51 2011 +0100
     1.2 +++ b/web/index.php	Sun Feb 27 15:47:47 2011 +0100
     1.3 @@ -16,7 +16,7 @@
     1.4  	while (($pkg = fgets($fp)) !== false) {
     1.5  		$pkg = chop($pkg);
     1.6  		if (file_exists("$log_dir/$pkg.html"))
     1.7 -			echo "<a href=\"log.php?version=$version&package=$pkg\" target=\"_blank\">$pkg</a>\n";
     1.8 +			echo "<a href=\"log.php?version=$version&amp;package=$pkg\" target=\"_blank\">$pkg</a>\n";
     1.9  		else	echo "$pkg\n";
    1.10  	}
    1.11  	fclose($fp);
    1.12 @@ -28,7 +28,7 @@
    1.13  	$path=basename($dir);
    1.14  	system("cd $dir && ls -1t *.$suffix | head -20 | \
    1.15  		while read file; do echo -n \$(stat -c '%y' $dir/\$file | \
    1.16 -		cut -d. -f1); echo '   <a href=\"download.php?version=$version&package=$path/'\$file'\">'\$file'</a>'; done");
    1.17 +		cut -d. -f1); echo '   <a href=\"download.php?version=$version&amp;package=$path/'\$file'\">'\$file'</a>'; done");
    1.18  }
    1.19  
    1.20  ?>
    1.21 @@ -42,8 +42,8 @@
    1.22  <?php
    1.23  	if (isset($_GET["refresh"]))
    1.24  		echo "    <meta http-equiv=\"refresh\" content=\""
    1.25 -			.$_GET["refresh"]."; URL=\""
    1.26 -			.$_SERVER["REQUEST_URI"].">\n";
    1.27 +			.$_GET["refresh"]."; URL="
    1.28 +			.$_SERVER["REQUEST_URI"]."\">\n";
    1.29  ?>    <meta name="robots" content="index nofollow" />
    1.30      <link rel="shortcut icon" href="web/favicon.ico" />
    1.31      <link rel="stylesheet" type="text/css" href="web/slitaz.css" />
    1.32 @@ -118,6 +118,8 @@
    1.33  <h2>Cooklog</h2>
    1.34  
    1.35  <p>
    1.36 +</p>
    1.37 +<div>
    1.38  	<form action="log.php" method="get">
    1.39  		<input type="hidden" name="version" value="<?php
    1.40  echo "$version";
    1.41 @@ -127,7 +129,7 @@
    1.42  		 <input type="text" name="package" style="width: 320px;" />
    1.43  		<!-- <input type="submit" value="Show" /> -->
    1.44  	</form>
    1.45 -</p>
    1.46 +</div>
    1.47  
    1.48  <a name="Summary"></a>
    1.49  <h2>Summary</h2>
    1.50 @@ -156,7 +158,7 @@
    1.51  			$pkg = file_get_contents("$log_dir/package");
    1.52  			$pkg = chop($pkg);
    1.53  			if (file_exists("$log_dir/$pkg.html"))
    1.54 -				$status .= " <a href=\"log.php?version=$version&package=$pkg\" target=\"_blank\">$pkg</a>";
    1.55 +				$status .= " <a href=\"log.php?version=$version&amp;package=$pkg\" target=\"_blank\">$pkg</a>";
    1.56  			else	$status .= " $pkg";
    1.57  		}
    1.58  	}