cvs: docweb /templates/all/www checkent.tpl.php

From: Date: Sun, 23 Jan 2005 13:16:14 +0000
Subject: cvs: docweb /templates/all/www checkent.tpl.php
Groups: php.doc.web 
Request: Send a blank email to doc-web+get-537@lists.php.net to get a copy of this message
vincent Sun Jan 23 08:16:14 2005 EDT Modified files: /docweb/templates/all/www checkent.tpl.php Log: make the urls clickable, for manual checking added a rel="nofollow" so that search engines don't index this page. also avoiding a date('Y', 0); situation http://cvs.php.net/diff.php/docweb/templates/all/www/checkent.tpl.php?r1=1.1&r2=1.2&ty=u Index: docweb/templates/all/www/checkent.tpl.php diff -u docweb/templates/all/www/checkent.tpl.php:1.1 docweb/templates/all/www/checkent.tpl.php:1.2 --- docweb/templates/all/www/checkent.tpl.php:1.1 Sat Jan 22 10:14:17 2005 +++ docweb/templates/all/www/checkent.tpl.php Sun Jan 23 08:16:13 2005 @@ -2,16 +2,15 @@ /* TODO: - template this - - Hyperlink <a ... /> the URLs - Shrink long URLs: http://example.org/this/is/a...long/url */ -?> +if ($isComplete) { ?> <h2>Entities last checked: <?php echo date('Y-m-d H:i:s', $startTime); ?></h2> -<?php if (!$isComplete) { ?> +<h2>Protocols: <?php echo $schemes; ?></h2> +<?php } else { ?> <h3>Check not complete.</h3> <?php } ?> -<h2>Protocols: <?php echo $schemes; ?></h2> <br /> <?php foreach ($entData as $resultType => $results) { ?> @@ -23,17 +22,18 @@ <th>Redirect URL</th> <?php } else { ?> <th>URL</th> - <?php } ?> + <?php } ?> </tr> <?php foreach ($results AS $r) { ?> - <tr> - <td><?php echo $r['entity']; ?></td> + <tr> <?php if ($extraCol[$resultType]) { ?> - <td><?php echo $r['return_val']; ?></td> + <td><a href="<?php echo $r['url']; ?>" rel="nofollow"><?php echo $r['entity']; ?></a></td> + <td><a href ="<?php echo $r['return_val']; ?>" rel="nofollow"><?php echo $r['return_val']; ?></a></td> <?php } else { ?> - <td><?php echo $r['url']; ?></td> + <td><?php echo $r['entity']; ?></td> + <td><a href="<?php echo $r['url']; ?>" rel="nofollow"><?php echo $r['url']; ?></a></td> <?php } ?> - </tr> + </tr> <?php } ?> </table> <br />

« previous php.doc.web (#537) next »