[ Index ]

PHP Cross Reference of phpwcms V1.5.0 _r431 (28.01.12)

title

Body

[close]

/include/inc_module/mod_feedimport/ -> backend.listing.php (source)

   1  <?php
   2  // ----------------------------------------------------------------
   3  // obligate check for phpwcms constants
   4  if (!defined('PHPWCMS_ROOT')) {
   5     die("You Cannot Access This Script Directly, Have a Nice Day.");
   6  }
   7  // ----------------------------------------------------------------
   8  
   9  
  10  ?>
  11  <h1 class="title" style="margin-bottom:10px"><?php echo $BLM['listing_title'] ?></h1>
  12  
  13  <div class="navBarLeft imgButton chatlist">
  14      &nbsp;&nbsp;
  15      <a href="<?php echo MODULE_HREF ?>&amp;edit=0" title="<?php echo $BLM['create_new'] ?>"><img src="img/famfamfam/rss_add.png" alt="Add" border="0" /><span><?php echo $BLM['create_new'] ?></span></a>
  16  </div>
  17  
  18  <!-- No Pagination or filter -->
  19  
  20  <table width="100%" border="0" cellpadding="0" cellspacing="0" summary="">
  21          
  22      <tr><td colspan="4"><img src="img/leer.gif" alt="" width="1" height="3" /></td></tr>
  23      <tr><td colspan="4" bgcolor="#92A1AF"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr>
  24      
  25  <?php
  26  
  27  // loop listing available rates
  28  $row_count = 0;          
  29  
  30  $data = _dbGet('phpwcms_content', '*', 'cnt_status!=9 AND cnt_module='._dbEscape(MODULE_KEY));
  31  
  32  foreach($data as $row) {
  33      
  34      $url = parse_url($row['cnt_text'], PHP_URL_HOST);
  35  
  36      echo '<tr style="cursor:pointer"'.( ($row_count % 2) ? ' bgcolor="#F3F5F8"' : '' );
  37      echo ' onclick="document.location=\''.MODULE_HREF.'&amp;edit='.$row["cnt_id"].'\';">'.LF;
  38      echo '<td width="25" style="padding:2px 3px 2px 4px;">';
  39      echo '<img src="img/famfamfam/rss.png" alt="'.$BLM['backend_menu'].'" /></td>'.LF;
  40      echo '<td class="dir" width="70%" style="padding-left:3px">'.html_specialchars($row['cnt_name'])."</td>\n";
  41      
  42      echo '<td class="dir" width="20%">&nbsp;'.$url."&nbsp;&nbsp;</td>\n";
  43  
  44      echo '<td width="10%" align="right" nowrap="nowrap" class="button_td">';
  45      
  46      echo '<a href="'.MODULE_HREF.'&amp;edit='.$row["cnt_id"].'">';        
  47      echo '<img src="img/button/edit_22x13.gif" border="0" alt="" /></a>';
  48      
  49      echo '<a href="'.MODULE_HREF.'&amp;editid='.$row["cnt_id"].'&amp;active=';
  50      echo (($row["cnt_status"]) ? '0' : '1').'">';        
  51      echo '<img src="img/button/aktiv_12x13_'.$row["cnt_status"].'.gif" border="0" alt="" /></a>';
  52      
  53      echo '<a href="'.MODULE_HREF.'&amp;delete='.$row["cnt_id"];
  54      echo '" title="' . $BL['be_cnt_delete'] .': '.html_specialchars($row['cnt_name']).'"';
  55      echo ' onclick="return confirm(\''.js_singlequote($BLM['delete_entry'] . ' ' . $row['cnt_name']).'\');">';
  56      echo '<img src="img/button/trash_13x13_1.gif" border="0" alt="" /></a>';
  57  
  58      echo "</td>\n</tr>\n";
  59  
  60      $row_count++;
  61  }
  62  
  63  if($row_count) {
  64      echo '<tr><td colspan="4" bgcolor="#92A1AF"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr>';
  65  }
  66  
  67  ?>    
  68  
  69      <tr><td colspan="4"><img src="img/leer.gif" alt="" width="1" height="15" /></td></tr>
  70  </table>


Generated: Sun Jan 29 16:31:14 2012 Cross-referenced by PHPXref 0.7.1