[ Index ] |
PHP Cross Reference of phpwcms V1.4.3 _r380 (23.11.09) |
[Summary view] [Print] [Text view]
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 ?> 32 <table width="100%" border="0" cellpadding="0" cellspacing="0" summary="adplaces" class="ads"> 33 34 <tr> 35 <th width="25"> </th> 36 <th><?php echo $BLM['adplace'] ?></th> 37 <th class="listFormat" nowrap="nowrap"><?php echo $BLM['ad_format'] ?></th> 38 <th class="listFormat">RT</th> 39 <th class="listFormat" nowrap="nowrap"><?php echo $BLM['ad_wxh'] ?></th> 40 <th> </th> 41 </tr> 42 43 <?php 44 // loop listing available newsletters 45 $row_count = 0; 46 47 $sql = 'SELECT * FROM '.DB_PREPEND.'phpwcms_ads_place ap '; 48 $sql .= 'LEFT JOIN '.DB_PREPEND.'phpwcms_ads_formats af ON '; 49 $sql .= 'ap.adplace_format=af.adformat_id '; 50 $sql .= 'WHERE adplace_status!=9'; 51 //$sql .= 'LIMIT '.(($_SESSION['ads_page']-1) * $_SESSION['list_user_count']).','.$_SESSION['list_user_count']; 52 $data = _dbQuery($sql); 53 54 $sql = 'SELECT COUNT(*) FROM '.DB_PREPEND.'phpwcms_ads_campaign WHERE adcampaign_status!=9 AND adcampaign_place='; 55 56 foreach($data as $row) { 57 58 echo '<tr'.( ($row_count % 2) ? ' class="adsAltRow"' : '' ).'>'.LF; 59 echo ' <td width="25" style="padding:2px 3px 2px 4px;"><img src="img/famfamfam/layout.gif" alt="'.$BLM['adplace'].'" /></td>'.LF; 60 61 echo ' <td width="50%">'.html_specialchars($row["adplace_title"])."</td>\n"; 62 63 echo ' <td class="listFormat" nowrap="nowrap">'.html_specialchars($row["adformat_title"])."</td>\n"; 64 echo ' <td class="listFormat">{ADS_'.$row["adplace_id"]."}</td>\n"; 65 echo ' <td class="listFormat">'.$row["adplace_width"].'x'.$row["adplace_height"]." </td>\n"; 66 67 68 echo ' <td align="right" nowrap="nowrap" class="button_td">'; 69 70 echo '<a href="'.MODULE_HREF.'&adplace=1&edit='.$row["adplace_id"].'">'; 71 echo '<img src="img/button/edit_22x13.gif" border="0" alt="" /></a>'; 72 73 echo '<a href="'.MODULE_HREF.'&adplace=1&editid='.$row["adplace_id"].'&verify='; 74 echo (($row["adplace_status"]) ? '0' : '1').'">'; 75 echo '<img src="img/button/aktiv_12x13_'.$row["adplace_status"].'.gif" border="0" alt="" /></a>'; 76 77 // check if campaign for place is available - then it's not possible t delete place 78 if(_dbQuery($sql.$row['adplace_id'], 'COUNT')) { 79 echo '<img src="img/button/trash_13x13_1.gif" border="0" alt="" class="inactive" />'; 80 } else { 81 echo '<a href="'.MODULE_HREF.'&adplace=1&delete='.$row["adplace_id"]; 82 echo '" title="delete: '.html_specialchars($row["adplace_title"]).'"'; 83 echo ' onclick="return confirm(\''.$BLM['delete_adplace'].js_singlequote($row["adplace_title"]).'\');">'; 84 echo '<img src="img/button/trash_13x13_1.gif" border="0" alt="" /></a>'; 85 } 86 87 echo "</td>\n</tr>\n"; 88 89 $row_count++; 90 } 91 92 93 if($row_count) { 94 echo '<tr><td colspan="6" bgcolor="#92A1AF"><img src="img/leer.gif" alt="" width="1" height="1"></td></tr>'; 95 } 96 97 ?> 98 </table>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Dec 30 05:55:15 2009 | Cross-referenced by PHPXref 0.7 |