Changeset 41 for banners.php
- Timestamp:
- Jan 24, 2009, 7:49:23 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
banners.php
r40 r41 1 1 <?php 2 2 3 3 include('includes/global.php'); 4 4 5 function HaveInArray($Array,$String) 6 { // BEGIN function HaveInArray7 for ( $i = 0; $i < count($Array); ++$i) { 8 if ($String == $Array[$i]) { 9 return true; 10 }11 12 13 } // END function HaveInArray 5 $ID = $Database->SQLCommand("SELECT * FROM `banner` WHERE `Show`=1 AND `DateLast` > (NOW() - INTERVAL 3 MONTH)"); 6 7 echo('<strong>Servery odkazující na nás:</strong> <br /><br />'); 8 while($Line = mysql_fetch_array($ID)) 9 { 10 echo('<a href="'.$Line['Web'].'">'.$Line['Web'].'</a> '.$Line['Description'].' <br />'); 11 } 12 13 ShowFooter(); 14 14 15 $ID = $Database->SQLCommand("SELECT * FROM `banner` WHERE `Show` =1");16 17 echo '<b>Servery odkazující na nás:</b> <br><br>';18 while($Line = mysql_fetch_array($ID)) {19 echo '<a href="'.$Line['Web'].'">'.$Line['Web'].'</a> '.$Line['Description'].' <br>';20 }21 22 /* echo '<table>';23 echo '<tr><th>Adresa</th><th>Popis</th><th>Datum umístění</th>';24 while($Line = mysql_fetch_array($ID)) {25 echo '<tr><td><a href="'.$Line['Web'].'">'.$Line['Web'].'</a></td>26 <td>'.$Line['Description'].'</td>27 <td>'.$Line['Date'].'</td><tr>';28 }29 echo '</table';30 */31 32 ShowFooter();33 15 ?> 34 16
Note:
See TracChangeset
for help on using the changeset viewer.