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

[email protected] ("Sean Coates")
Newsgroups php.doc.web
Message-ID <cvssean1106682456@cvsserver>
sean		Tue Jan 25 14:47:36 2005 EDT

  Modified files:              
    /docweb/templates/all/www	checkent.tpl.php 
  Log:
  now wide mode (three columns for redirect) is optional
  
http://cvs.php.net/diff.php/docweb/templates/all/www/checkent.tpl.php?r1=1.3&r2=1.4&ty=u
Index: docweb/templates/all/www/checkent.tpl.php
diff -u docweb/templates/all/www/checkent.tpl.php:1.3 docweb/templates/all/www/checkent.tpl.php:1.4
--- docweb/templates/all/www/checkent.tpl.php:1.3	Tue Jan 25 14:34:37 2005
+++ docweb/templates/all/www/checkent.tpl.php	Tue Jan 25 14:47:36 2005
@@ -11,6 +11,11 @@
 <?php } else { ?>
     <h3>Check not complete.</h3>
 <?php } ?>
+<?php if($wideMode) { ?>
+Viewing in wide mode. <a href="checkent.php?wideMode=0">Switch to normal mode?</a><br />
+<?php } else { ?>
+<a href="checkent.php?wideMode=1">Switch to wide mode?</a><br />
+<?php } ?>
 <br />
 
 <?php foreach ($entData as $resultType => $results) { ?>
@@ -18,18 +23,27 @@
     <table border="0">
         <tr>
             <th>Entity Name</th>
-            <th>URL</th>
             <?php if ($extraCol[$resultType]) { ?>
+	        <?php if ($wideMode) { ?>
+                    <th>URL</th>
+		<?php } ?>
                 <th>Redirect URL</th>
-        <?php } ?>
+            <?php } else { ?>
+                <th>URL</th>
+	    <?php } ?>
         </tr>
         <?php foreach ($results AS $r) { ?>
             <tr>
-                <td><?php echo $r['entity']; ?></td>
                 <?php if ($extraCol[$resultType]) { ?>
-                    <td><a href ="<?php echo $r['url']; ?>" rel="nofollow"><?php echo $r['url']; ?></a></td>
-                    <td><a href ="<?php echo $r['return_val']; ?>" rel="nofollow"><?php echo $r['return_val']; ?></a></td>
+		    <?php if ($wideMode) { ?>
+                        <td><?php echo $r['entity']; ?></td>
+                        <td><a href="<?php echo $r['url']; ?>" rel="nofollow"><?php echo $r['url']; ?></a></td>
+		    <?php } else { ?>
+                        <td><a href="<?php echo $r['url']; ?>"><?php echo $r['entity']; ?></a></td>
+		    <?php } ?>
+                    <td><a href="<?php echo $r['return_val']; ?>" rel="nofollow"><?php echo $r['return_val']; ?></a></td>
                 <?php } else { ?>
+                    <td><?php echo $r['entity']; ?></td>
                     <td><a href="<?php echo $r['url']; ?>" rel="nofollow"><?php echo $r['url']; ?></a></td>
                 <?php } ?>
             </tr>
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.