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

[email protected] ("Vincent Gevers")
Newsgroups php.doc.web
Message-ID <cvsvincent1106486174@cvsserver>
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 />
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.