[ Index ]

PHP Cross Reference of phpwcms V1.4.3 _r380 (23.11.09)

title

Body

[close]

/include/inc_tmpl/ -> admin.aliaslist.tmpl.php (source)

   1  <?php
   2  /*************************************************************************************
   3     Copyright notice
   4     
   5     (c) 2002-2009 Oliver Georgi (oliver@phpwcms.de) // All rights reserved.
   6   
   7     This script is part of PHPWCMS. The PHPWCMS web content management system is
   8     free software; you can redistribute it and/or modify it under the terms of
   9     the GNU General Public License as published by the Free Software Foundation;
  10     either version 2 of the License, or (at your option) any later version.
  11    
  12     The GNU General Public License can be found at http://www.gnu.org/copyleft/gpl.html
  13     A copy is found in the textfile GPL.txt and important notices to the license 
  14     from the author is found in LICENSE.txt distributed with these scripts.
  15    
  16     This script is distributed in the hope that it will be useful, but WITHOUT ANY 
  17     WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  18     PARTICULAR PURPOSE.  See the GNU General Public License for more details.
  19   
  20     This copyright notice MUST APPEAR in all copies of the script!
  21  *************************************************************************************/
  22  
  23  // ----------------------------------------------------------------
  24  // obligate check for phpwcms constants
  25  if (!defined('PHPWCMS_ROOT')) {
  26     die("You Cannot Access This Script Directly, Have a Nice Day.");
  27  }
  28  // ----------------------------------------------------------------
  29  
  30  
  31  echo '<h1 class="title">'.$BL['be_article_urlalias'].' ('.$BL['be_ftptakeover_active'].')</h1>'.LF;
  32  
  33  // now retrieve all articles
  34  $sql  =    "SELECT *, DATE_FORMAT(article_tstamp, '%Y-%m-%d') AS article_timestamp ";
  35  $sql .= "FROM ".DB_PREPEND."phpwcms_article WHERE ";
  36  $sql .= "article_public=1 AND article_aktiv=1 AND article_deleted=0 AND article_nosearch!='1' AND ";
  37  $sql .= "article_nositemap=1 AND article_begin < NOW() AND article_end > NOW() ";
  38  $sql .= "ORDER BY article_alias";
  39  
  40  $result = _dbQuery($sql);
  41  
  42  ?>
  43  
  44  <table width="538" border="0" cellpadding="0" cellspacing="0" class="listing" summary="">
  45  
  46      <tr class="header">
  47          <th class="column colfirst news"><?php echo $BL['be_article_urlalias'] ?></th>
  48          <th class="column">&nbsp;&nbsp;&nbsp;ID&nbsp;</th>
  49          <th class="column">&nbsp;</th>
  50          <th class="column collast"> </th>
  51      </tr>
  52  
  53  <?php
  54  
  55  $x = 0;
  56  
  57  foreach($result as $data) {
  58  
  59      // now add article URL
  60      echo '    <tr class="row'.($x%2?' alt': '').'" title="'.html_specialchars('[ID:'.$data["article_id"].'] '.$data["article_title"]).'">';
  61         echo '        <td width="80%">' . (empty($data["article_alias"]) ? '-' : html_specialchars($data["article_alias"]) ) . "&nbsp;</td>" . LF;
  62      echo '        <td align="right">'.$data["article_id"]."&nbsp;</td>" . LF;
  63      echo '        <td>&nbsp;'.$data["article_timestamp"]."</td>" . LF;
  64      echo '        <td align="right" width="30"><a href="phpwcms.php?do=articles&amp;p=2&amp;s=1&amp;aktion=1&amp;id='.$data["article_id"].'">';
  65      echo '<img src="img/button/edit_22x13.gif" alt="" border="0" height="13" width="22" /></a>';
  66      echo '</td>' . LF . '    </tr>' . LF;  
  67      
  68      $x++;
  69  }
  70  
  71  ?>
  72  
  73  </table>


Generated: Wed Dec 30 05:55:15 2009 Cross-referenced by PHPXref 0.7