[ Index ]

PHP Cross Reference of phpwcms V1.4.7 _r403 (01.11.10)

title

Body

[close]

/include/inc_module/mod_ads/ -> backend.form.campaign.php (source)

   1  <?php
   2  /*************************************************************************************
   3     Copyright notice
   4     
   5     (c) 2002-2010 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  // Module/Plug-in Ads/Banner Management
  31  
  32  
  33  $BE['HEADER']['date.js']            = getJavaScriptSourceLink('include/inc_js/date.js');
  34  $BE['HEADER']['dynCalendar.js']        = getJavaScriptSourceLink('include/inc_js/dynCalendar.js');
  35  $BE['HEADER']['ads.js']                = getJavaScriptSourceLink($phpwcms['modules'][$module]['dir'].'template/js/ads.js');
  36  
  37  ?>
  38  <h1 class="title" style="margin-bottom:10px"><?php echo $BLM['form_title'] ?></h1>
  39  
  40  <form action="<?php echo MODULE_HREF ?>&amp;campaign=1&amp;edit=<?php echo $plugin['data']['adcampaign_id'] ?>" method="post" enctype="multipart/form-data" style="background:#F3F5F8;border-top:1px solid #92A1AF;border-bottom:1px solid #92A1AF;margin:0 0 5px 0;padding:10px 8px 15px 8px">
  41  <input type="hidden" name="adcampaign_id" value="<?php echo $plugin['data']['adcampaign_id'] ?>" />
  42  <table border="0" cellpadding="0" cellspacing="0" width="100%" summary="">
  43  
  44      <tr> 
  45          <td align="right" class="chatlist" nowrap="nowrap"><?php echo $BL['be_cnt_last_edited']  ?>:&nbsp;</td>
  46          <td class="v10"><?php 
  47          
  48          echo html_specialchars(date($BL['be_fprivedit_dateformat'], strtotime($plugin['data']['adcampaign_changed'])));
  49          
  50          if(!empty($plugin['data']['adcampaign_created'])) {
  51          
  52          ?>        
  53          &nbsp;&nbsp;&nbsp;<span class="chatlist"><?php echo $BL['be_fprivedit_created']  ?>:</span> 
  54          <?php 
  55                  echo html_specialchars(date($BL['be_fprivedit_dateformat'], strtotime($plugin['data']['adcampaign_created'])));
  56          }
  57          
  58          ?>
  59          </td>
  60      </tr>
  61      
  62      <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="10" /></td></tr>
  63  
  64      <tr> 
  65          <td align="right" class="chatlist"><?php echo $BLM['campaign_entry'] ?>:&nbsp;</td>
  66          <td><input name="adcampaign_title" type="text" id="adcampaign_title" class="v12<?php 
  67          
  68          //error class
  69          if(!empty($plugin['error']['adcampaign_title'])) echo ' errorInputText';
  70          
  71          ?>" style="width:400px;" value="<?php echo html_specialchars($plugin['data']['adcampaign_title']) ?>" size="30" maxlength="200" /></td>
  72      </tr>
  73  
  74  
  75      <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="10" /></td></tr>    
  76  
  77      <tr> 
  78          <td align="right" class="chatlist"><?php echo $BLM['adplace'] ?>:&nbsp;</td>
  79          <td><select name="adcampaign_place" id="adcampaign_place" class="v12" onchange="setFormat(this.options[this.selectedIndex].value);">
  80                  
  81  <?php
  82  
  83      $sql  = 'SELECT * FROM '.DB_PREPEND.'phpwcms_ads_place ap ';
  84      $sql .= 'LEFT JOIN '.DB_PREPEND.'phpwcms_ads_formats af ON ';
  85      $sql .=    'ap.adplace_format=af.adformat_id  ';
  86      $sql .= 'WHERE adplace_status!=9';
  87  
  88      $plugin['ad_place']        = _dbQuery($sql);
  89      $plugin['ad_place_js']    = array();
  90      foreach($plugin['ad_place'] as $_entry['value']) {
  91  
  92          echo '    <option value="'.$_entry['value']['adplace_id'].'"';
  93          if($_entry['value']['adplace_id'] == $plugin['data']['adcampaign_place']) {
  94          
  95              $plugin['data']['adcampaign_data']['width']        = $_entry['value']['adplace_width'];
  96              $plugin['data']['adcampaign_data']['height']    = $_entry['value']['adplace_height'];
  97              
  98              echo ' selected="selected"';
  99          
 100          }
 101          echo '>';
 102          echo html_specialchars($_entry['value']['adplace_title'].' / '.$_entry['value']['adformat_title'].' '.$_entry['value']['adplace_width'].'x'.$_entry['value']['adplace_height']);
 103          echo '</option>'.LF;
 104          
 105          $plugin['ad_place_js'][ $_entry['value']['adplace_id'] ]  = '        ad_place['.$_entry['value']['adplace_id'].'] = ';
 106          $plugin['ad_place_js'][ $_entry['value']['adplace_id'] ] .= '["'.$_entry['value']['adplace_width'].'", "';
 107          $plugin['ad_place_js'][ $_entry['value']['adplace_id'] ] .= $_entry['value']['adplace_height'].'"];';
 108  
 109      }
 110                  
 111  ?>
 112                  
 113                  </select></td>                
 114      </tr>
 115      
 116      <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr>
 117      
 118      
 119      <tr>
 120      
 121          <td>&nbsp;</td>
 122          <td><table summary="" cellpadding="0" cellspacing="0" border="0">
 123              <tr>
 124                  <td class="chatlist"><?php echo $BL['be_admin_page_width'] ?>:&nbsp;</td>
 125                  <td><input type="text" name="adcampaign_width" id="adcampaign_width" value="<?php echo $plugin['data']['adcampaign_data']['width'] ?>" class="v11 disabled width40" onfocus="this.blur()" /></td>
 126                  <td class="chatlist">&nbsp;<?php echo $BLM['pixel'] ?>&nbsp;/&nbsp;<?php echo $BL['be_admin_page_height'] ?>:&nbsp;</td>
 127                  <td><input type="text" name="adcampaign_height" id="adcampaign_height" value="<?php echo $plugin['data']['adcampaign_data']['height'] ?>" class="v11 disabled width40" onfocus="this.blur()" /></td>
 128                  <td class="chatlist">&nbsp;<?php echo $BLM['pixel'] ?></td>
 129              </tr>
 130          </table><script type="text/javascript">
 131          var ad_place = new Array();
 132  <?php 
 133  
 134  echo implode(LF, $plugin['ad_place_js']);
 135  if(empty($plugin['data']['adcampaign_place']) && count($plugin['ad_place_js'])) {
 136      echo LF.LF.'         setFormat('.key($plugin['ad_place_js']).');';
 137  }
 138  
 139  // set JavaScript sourcePath
 140  if(!empty($plugin['data']['adcampaign_id'])) {
 141      echo LF.LF.'         var adsPath = "'.$phpwcms["content_path"].'ads/'.$plugin['data']['adcampaign_id'].'/";'.LF.LF;
 142  }
 143  ?>
 144  
 145  		function setFormat(value) {
 146          
 147              if(ad_place[value]) {
 148                  getFieldById('adcampaign_width').value  = ad_place[value][0];
 149                  getFieldById('adcampaign_height').value = ad_place[value][1];
 150              }
 151          
 152          }
 153  
 154          </script></td>
 155      
 156      </tr>
 157  
 158  
 159      <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="10" /></td></tr>
 160  
 161      
 162      <tr>
 163      
 164          <td align="right" class="chatlist"><?php echo $BLM['target_url'] ?>:&nbsp;</td>
 165          <td><table summary="" cellpadding="0" cellspacing="0" border="0" class="width400">
 166              <tr>
 167                  <td><input type="text" name="adcampaign_url" id="adcampaign_url" value="<?php 
 168                  
 169                      if(!empty($plugin['data']['adcampaign_data']['url'])) {
 170                          $plugin['data']['adcampaign_data']['url_html'] = html_specialchars($plugin['data']['adcampaign_data']['url']);
 171                          echo $plugin['data']['adcampaign_data']['url_html'];
 172                          echo '" title="'.$plugin['data']['adcampaign_data']['url_html'];
 173                      }
 174                      
 175                      ?>" class="v12 width250" /></td>
 176                  <td align="right" class="chatlist">&nbsp;&nbsp;<?php echo $BLM['open_in'] ?>:&nbsp;</td>
 177                  <td width="20"><select name="adcampaign_target" id="adcampaign_target" class="v12">
 178          <option value=""<?php is_selected('', $plugin['data']['adcampaign_data']['target']) ?>>&nbsp;</option>
 179          <option value="_blank"<?php is_selected('_blank', $plugin['data']['adcampaign_data']['target']) ?>>_blank</option>
 180          <option value="_top"<?php is_selected('_top', $plugin['data']['adcampaign_data']['target']) ?>>_top</option>
 181          <option value="_self"<?php is_selected('_self', $plugin['data']['adcampaign_data']['target']) ?>>_self</option>
 182          <option value="_parent"<?php is_selected('_parent', $plugin['data']['adcampaign_data']['target']) ?>>_parent</option>        
 183          </select></td>
 184              </tr>
 185          </table></td>
 186      </tr>    
 187      
 188  
 189  
 190      
 191      <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="15" /></td></tr>
 192      
 193      <tr> 
 194          <td align="right" class="chatlist" valign="top" style="padding-top:18px"><?php echo $BLM['calendar_start'] ?>:&nbsp;</td>
 195          <td><table border="0" cellpadding="0" cellspacing="0" summary="">
 196          
 197              <tr>
 198                  <td class="chatlist" style="padding-bottom:2px"><?php echo $BLM['date_format'] ?></td>
 199                  <td class="chatlist">&nbsp;</td>
 200                  <td class="chatlist" style="padding-bottom:2px"><?php echo $BLM['time_format'] ?></td>
 201                  <td colspan="2">&nbsp;</td>
 202              </tr>
 203          
 204              <tr>
 205                  <td><input name="adcampaign_date_start" type="text" id="adcampaign_date_start" class="v12 width100<?php 
 206          
 207          //error class
 208          if(!empty($plugin['error']['adcampaign_date_start'])) echo ' errorInputText';
 209          
 210          ?>" value="<?php echo html_specialchars($plugin['data']['adcampaign_date_start']) ?>" size="30" /></td>
 211          <td>&nbsp;</td>
 212          <td><input name="adcampaign_time_start" type="text" id="adcampaign_time_start" class="v12 width100" value="<?php echo html_specialchars($plugin['data']['adcampaign_time_start']) ?>" size="30" /></td>
 213          <td>&nbsp;<script type="text/javascript">
 214  		function aStart(date, month, year) {
 215              getFieldById('adcampaign_date_start').value = subrstr('00' + date, 2) + '<?php echo $BLM['date_delimiter'] ?>' + subrstr('00' + month, 2) + '<?php echo $BLM['date_delimiter'] ?>' + year;
 216              
 217              var timestart = getFieldById('adcampaign_time_start');
 218              if(Trim(timestart.value) == '') {
 219                  timestart.value = '00:00';
 220              }
 221          }
 222          calStart = new dynCalendar('calStart', 'aStart', 'img/dynCal/');
 223          calStart.setMonthCombo(false);
 224          calStart.setYearCombo(false);
 225          </script></td>
 226      
 227              </tr>
 228          </table></td>
 229          
 230      </tr>    
 231      
 232      <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="3" /></td></tr>
 233      
 234      <tr> 
 235          <td align="right" class="chatlist" valign="top" style="padding-top:18px"><?php echo $BLM['calendar_end'] ?>:&nbsp;</td>
 236          <td><table border="0" cellpadding="0" cellspacing="0" summary="">
 237          
 238              <tr>
 239                  <td class="chatlist" style="padding-bottom:2px"><?php echo $BLM['date_format'] ?></td>
 240                  <td class="chatlist">&nbsp;</td>
 241                  <td class="chatlist" style="padding-bottom:2px"><?php echo $BLM['time_format'] ?></td>
 242              </tr>
 243          
 244              <tr>
 245                  <td><input name="adcampaign_date_end" type="text" id="adcampaign_date_end" class="v12 width100<?php 
 246          
 247          //error class
 248          if(!empty($plugin['error']['adcampaign_date_end'])) echo ' errorInputText';
 249          
 250          ?>" value="<?php echo html_specialchars($plugin['data']['adcampaign_date_end']) ?>" size="30" /></td>
 251          <td>&nbsp;</td>
 252          <td><input name="adcampaign_time_end" type="text" id="adcampaign_time_end" class="v12 width100" value="<?php echo html_specialchars($plugin['data']['adcampaign_time_end']) ?>" size="30" /></td>
 253          <td>&nbsp;<script type="text/javascript">
 254  		function aEnd(date, month, year) {
 255              getFieldById('adcampaign_date_end').value = subrstr('00' + date, 2) + '<?php echo $BLM['date_delimiter'] ?>' + subrstr('00' + month, 2) + '<?php echo $BLM['date_delimiter'] ?>' + year;
 256              var timeend = getFieldById('adcampaign_time_end');
 257              if(Trim(timeend.value) == '') {
 258                  timeend.value = '23:59';
 259              }
 260          }
 261          calEnd = new dynCalendar('calEnd', 'aEnd', 'img/dynCal/');
 262          calEnd.setMonthCombo(false);
 263          calEnd.setYearCombo(false);
 264          </script></td>
 265          
 266              </tr>
 267          </table></td>
 268          
 269      </tr>        
 270  
 271  
 272      <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="3" /></td></tr>
 273      
 274      <tr>
 275      
 276          <td align="right" class="chatlist" valign="top" style="padding-top:18px"><?php echo $BLM['tracking_base'] ?>:&nbsp;</td>
 277          <td><table summary="" cellpadding="0" cellspacing="0" border="0">
 278              <tr>
 279                  <td class="chatlist" style="padding-bottom:2px"><?php echo $BLM['max_view'] ?></td>
 280                  <td class="chatlist">&nbsp;</td>
 281                  <td class="chatlist" style="padding-bottom:2px"><?php echo $BLM['max_click'] ?></td>
 282                  <td class="chatlist">&nbsp;</td>
 283                  <td class="chatlist" style="padding-bottom:2px"><?php echo $BLM['max_view_user'] ?></td>
 284              </tr>
 285              <tr>
 286                  <td><input type="text" name="adcampaign_max_views" id="adcampaign_max_views" value="<?php echo empty($plugin['data']['adcampaign_maxview']) ? '' : $plugin['data']['adcampaign_maxview'] ?>" class="v12 width100" /></td>
 287                  <td>&nbsp;</td>
 288                  <td><input type="text" name="adcampaign_max_click" id="adcampaign_max_click" value="<?php echo empty($plugin['data']['adcampaign_maxclick']) ? '' : $plugin['data']['adcampaign_maxclick'] ?>" class="v12 width100" /></td>
 289                  <td>&nbsp;</td>
 290                  <td><input type="text" name="adcampaign_max_viewuser" id="adcampaign_max_viewuser" value="<?php echo empty($plugin['data']['adcampaign_maxviewuser']) ? '' : $plugin['data']['adcampaign_maxviewuser'] ?>" class="v12 width100" /></td>
 291              </tr>
 292          </table></td>
 293      
 294      </tr>    
 295  
 296      
 297  
 298      
 299      <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="15" /></td></tr>
 300      
 301      
 302      
 303      
 304      <tr>
 305      
 306          <td align="right" class="chatlist"><?php echo $BLM['ad_type'] ?>:&nbsp;</td>
 307          <td class="v12 inlineCheckbox">
 308          <input type="radio" name="adcampaign_type" id="adcampaign_type_0" value="0"<?php is_checked(0, $plugin['data']['adcampaign_type']) ?> /><label for="adcampaign_type_0"><?php echo $BLM['ad_type_0'] ?></label>&nbsp;
 309          <input type="radio" name="adcampaign_type" id="adcampaign_type_1" value="1"<?php is_checked(1, $plugin['data']['adcampaign_type']) ?> /><label for="adcampaign_type_1"><?php echo $BLM['ad_type_1'] ?></label>&nbsp;
 310          <input type="radio" name="adcampaign_type" id="adcampaign_type_2" value="2"<?php is_checked(2, $plugin['data']['adcampaign_type']) ?> /><label for="adcampaign_type_2"><?php echo $BLM['ad_type_2'] ?></label>&nbsp;
 311          <input type="radio" name="adcampaign_type" id="adcampaign_type_3" value="3"<?php is_checked(3, $plugin['data']['adcampaign_type']) ?> /><label for="adcampaign_type_3"><?php echo $BLM['ad_type_3'] ?></label>&nbsp;
 312          <input type="radio" name="adcampaign_type" id="adcampaign_type_4" value="4"<?php is_checked(4, $plugin['data']['adcampaign_type']) ?> /><label for="adcampaign_type_4"><?php echo $BLM['ad_type_6'] ?></label>
 313          </td>
 314      
 315      </tr>
 316      
 317      <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="10" /></td></tr>
 318  
 319  <?php
 320  
 321  // now check media
 322  
 323  // try to load image files
 324  $plugin['data']['files'] = returnFileListAsArray(PHPWCMS_CONTENT.'ads/'.$plugin['data']['adcampaign_id'], 'gif,jpg,png');
 325  $plugin['data']['image'] = '';
 326  if(is_array($plugin['data']['files']) && count($plugin['data']['files'])) {
 327      
 328      foreach($plugin['data']['files'] as $_entry['value']) {
 329          
 330          $c = html_specialchars($_entry['value']['filename']);
 331          $plugin['data']['image'] .= '            <option value="'.$c.'"';
 332          if($_entry['value']['filename'] == $plugin['data']['adcampaign_data']['image']) {
 333              $plugin['data']['image'] .= ' selected="selected"';
 334          }
 335          $plugin['data']['image'] .= '>'.$c.'</option>'.LF;            
 336  
 337      }
 338  }
 339  // try to load flash files
 340  $plugin['data']['files'] = returnFileListAsArray(PHPWCMS_CONTENT.'ads/'.$plugin['data']['adcampaign_id'], 'swf');
 341  $plugin['data']['flash'] = '';
 342  if(is_array($plugin['data']['files']) && count($plugin['data']['files'])) {
 343      
 344      foreach($plugin['data']['files'] as $_entry['value']) {
 345          
 346          $c = html_specialchars($_entry['value']['filename']);
 347          $plugin['data']['flash'] .= '            <option value="'.$c.'"';
 348          if($_entry['value']['filename'] == $plugin['data']['adcampaign_data']['flash']) {
 349              $plugin['data']['flash'] .= ' selected="selected"';
 350          }
 351          $plugin['data']['flash'] .= '>'.$c.'</option>'.LF;            
 352  
 353      }
 354  }
 355  // try to load css files
 356  $plugin['data']['files'] = returnFileListAsArray(PHPWCMS_CONTENT.'ads/'.$plugin['data']['adcampaign_id'], 'css');
 357  $plugin['data']['css'] = '';
 358  if(is_array($plugin['data']['files']) && count($plugin['data']['files'])) {
 359      
 360      foreach($plugin['data']['files'] as $_entry['value']) {
 361          
 362          $c = html_specialchars($_entry['value']['filename']);
 363          $plugin['data']['css'] .= '            <option value="'.$c.'"';
 364          if($_entry['value']['filename'] == $plugin['data']['adcampaign_data']['css']) {
 365              $plugin['data']['css'] .= ' selected="selected"';
 366          }
 367          $plugin['data']['css'] .= '>'.$c.'</option>'.LF;            
 368  
 369      }
 370  }
 371  
 372  
 373  // as long as no ID defined hide upload content
 374  if(empty($plugin['data']['adcampaign_id'])) {
 375  
 376      echo LF.'<tr><td>&nbsp;</td><td class="warning">'.$BLM['ad_info'].'</td></tr>'.LF;
 377  
 378  
 379      echo LF.'<!--'.LF;
 380  }
 381  
 382  
 383  
 384  if(isset($plugin['error']['image'])) {
 385  
 386      echo LF.'<tr><td>&nbsp;</td><td class="warning1">'.$plugin['error']['image'].'</td></tr>'.LF;
 387  }
 388  
 389  ?>
 390      <tr>
 391      
 392          <td align="right" class="chatlist"><a href="#" onclick="showImageAds();return false;" title="Preview"><?php echo $BLM['ad_type_0'] ?><img src="img/symbole/redirect.gif" alt="" border="0" style="margin:0 1px 0 4px;position:relative;top:1px;" /></a>:&nbsp;</td>
 393          <td><table summary="" cellpadding="0" cellspacing="0" border="0">
 394              <tr>
 395                  <td><select name="adcampaign_image" id="adcampaign_image" class="v12 width175">
 396              <option value="">&nbsp;</option>
 397  <?php echo $plugin['data']['image'] ?>
 398              </select></td>
 399              <td>&nbsp;</td>
 400              <td class="upload newimage"><input type="file" name="adcampaign_upload_image" id="adcampaign_upload_image" title="<?php echo $BLM['ad_upload_image'] ?>" /></td>
 401              </tr>
 402              </table></td>
 403      
 404      </tr>
 405  
 406      <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="6" /></td></tr>
 407  <?php
 408  if(isset($plugin['error']['flash'])) {
 409  
 410      echo LF.'<tr><td>&nbsp;</td><td class="warning1">'.$plugin['error']['flash'].'</td></tr>'.LF;
 411  }
 412  ?>
 413  
 414      <tr>
 415      
 416          <td align="right" class="chatlist"><a href="#" onclick="showFlashAds();return false;" title="Preview"><?php echo $BLM['ad_type_1'] ?><img src="img/symbole/redirect.gif" alt="" border="0" style="margin:0 1px 0 4px;position:relative;top:1px;" /></a>:&nbsp;</td>
 417          <td><table summary="" cellpadding="0" cellspacing="0" border="0">
 418              <tr>
 419                  <td><select name="adcampaign_flash" id="adcampaign_flash" class="v12 width175">
 420              <option value="">&nbsp;</option>
 421  <?php echo $plugin['data']['flash'] ?>
 422              </select></td>
 423                  <td>&nbsp;</td>
 424                  <td class="upload newflash"><input type="file" name="adcampaign_upload_flash" id="adcampaign_upload_flash" title="<?php echo $BLM['ad_upload_flash'] ?>" /></td>
 425              </tr>
 426              </table></td>
 427      
 428      </tr>
 429      
 430      <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="6" /></td></tr>
 431  <?php
 432  if(isset($plugin['error']['css'])) {
 433  
 434      echo LF.'<tr><td>&nbsp;</td><td class="warning1">'.$plugin['error']['css'].'</td></tr>'.LF;
 435  }
 436  ?>
 437  
 438      <tr>
 439      
 440          <td align="right" class="chatlist">CSS:&nbsp;</td>
 441          <td><table summary="" cellpadding="0" cellspacing="0" border="0">
 442              <tr>
 443                  <td><select name="adcampaign_css" id="adcampaign_css" class="v12 width175">
 444              <option value="">&nbsp;</option>
 445  <?php echo $plugin['data']['css'] ?>
 446              </select></td>
 447                  <td>&nbsp;</td>
 448                  <td class="upload newcss"><input type="file" name="adcampaign_upload_css" id="adcampaign_upload_css" title="<?php echo $BLM['ad_upload_css'] ?>" /></td>
 449              </tr>
 450              </table></td>
 451      
 452      </tr>
 453      
 454      <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="6" /></td></tr>
 455  
 456  <?php
 457  // as long as no ID defined hide upload content
 458  if(empty($plugin['data']['adcampaign_id'])) {
 459      echo LF.'// -->'.LF;
 460  } 
 461  
 462  
 463  ?>
 464  
 465  
 466      <tr>
 467      
 468          <td align="right" class="chatlist tdtop3"><a href="#" onclick="showHtmlAds();return false;" title="Preview"><?php echo $BLM['ad_type_2'] ?><img src="img/symbole/redirect.gif" alt="" border="0" style="margin:0 1px 0 4px;position:relative;top:1px;" /></a>:&nbsp;</td>
 469          <td><textarea name="adcampaign_html" id="adcampaign_html" rows="5" class="v12 width400 code"><?php echo html_entities($plugin['data']['adcampaign_data']['html']) ?></textarea></td>
 470      
 471      </tr>
 472      
 473      <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="6" /></td></tr>
 474  
 475      <tr> 
 476          <td align="right" class="chatlist"><?php echo $BLM['ad_alt_text'] ?>:&nbsp;</td>
 477          <td><input name="adcampaign_alt_text" type="text" id="adcampaign_alt_text" class="v12" style="width:400px;" value="<?php echo html_specialchars($plugin['data']['adcampaign_data']['alt_text']) ?>" size="30" maxlength="200" /></td>
 478      </tr>
 479  
 480      <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="6" /></td></tr>
 481  
 482      <tr> 
 483          <td align="right" class="chatlist"><?php echo $BLM['ad_title_text'] ?>:&nbsp;</td>
 484          <td><input name="adcampaign_title_text" type="text" id="adcampaign_title_text" class="v12" style="width:400px;" value="<?php echo html_specialchars($plugin['data']['adcampaign_data']['title_text']) ?>" size="30" maxlength="200" /></td>
 485      </tr>
 486      
 487      <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="6" /></td></tr>
 488      
 489      <tr>
 490      
 491          <td align="right" class="chatlist" valign="top" style="padding-top:18px"><?php echo $BL['be_settings'] ?>:&nbsp;</td>
 492          <td><table summary="" cellpadding="0" cellspacing="0" border="0">
 493              <tr>
 494                  <td class="chatlist" colspan="2" style="padding-bottom:2px"><?php echo $BLM['ad_bgcolor'] ?></td>
 495                  <td class="chatlist">&nbsp;</td>
 496                  <td class="chatlist" colspan="2" style="padding-bottom:2px"><?php echo $BLM['ad_bordercolor'] ?></td>
 497                  <td class="chatlist">&nbsp;</td>
 498                  <td class="chatlist" colspan="2" style="padding-bottom:2px"><?php echo $BLM['ad_flashversion'] ?></td>
 499              </tr>
 500              <tr>
 501                  <td style="padding-right:3px;"><input type="text" name="adcampaign_bgcolor" id="adcampaign_bgcolor" value="<?php echo $plugin['data']['adcampaign_data']['bgcolor'] ?>" class="v12 width77" maxlength="7" /></td>
 502                  <td class="colorfield" width="20" id="bgcolor"<?php if(!empty($plugin['data']['adcampaign_data']['bgcolor'])) echo ' style="background-color:'.$plugin['data']['adcampaign_data']['bgcolor'].'"' ?>>&nbsp;</td>
 503                  <td>&nbsp;</td>
 504                  <td style="padding-right:3px;"><input type="text" name="adcampaign_bordercolor" id="adcampaign_bordercolor" value="<?php echo $plugin['data']['adcampaign_data']['bordercolor'] ?>" class="v12 width77" maxlength="7" /></td>
 505                  <td class="colorfield" width="20" id="bordercolor"<?php if(!empty($plugin['data']['adcampaign_data']['bordercolor'])) echo ' style="background-color:'.$plugin['data']['adcampaign_data']['bordercolor'].'"' ?>>&nbsp;</td>
 506                  <td>&nbsp;</td>
 507                  <td><input type="text" name="adcampaign_flashversion" id="adcampaign_flashversion" value="<?php echo $plugin['data']['adcampaign_data']['flashversion'] ?>" class="v12 width75" /></td>
 508              </tr>
 509          </table></td>
 510      
 511      </tr>
 512      
 513      
 514      <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="25" /></td></tr>
 515      
 516      <tr> 
 517          <td align="right" class="chatlist tdtop4"><?php echo $BLM['comment'] ?>:&nbsp;</td>
 518          <td colspan="2"><textarea name="adcampaign_comment" id="adcampaign_comment" rows="5" class="v12 width400"><?php echo html_specialchars($plugin['data']['adcampaign_comment']) ?></textarea></td>
 519      </tr>
 520      
 521      <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="15" /></td></tr>    
 522      
 523      <tr>
 524          <td align="right" class="chatlist"><?php echo $BL['be_ftptakeover_status'] ?>:&nbsp;</td>
 525          <td><table border="0" cellpadding="0" cellspacing="0" summary="">
 526  <?php
 527              
 528      echo '    <tr><td><input type="checkbox" name="adcampaign_status" id="adcampaign_status" value="1"'; 
 529      if(empty($plugin['data']['adcampaign_id'])) {
 530          echo ' disabled="disabled" /></td><td class="inactive">'.$BL['be_cnt_activated'].'</td></tr>';
 531      } else {
 532          is_checked($plugin['data']['adcampaign_status'], 1);
 533          echo ' /></td><td><label for="adcampaign_status">'.$BL['be_cnt_activated'].'</label></td></tr>';    
 534      }
 535      
 536  ?>
 537          </table></td>
 538      </tr>
 539  <?php 
 540      if(!empty($plugin['data']['adcampaign_id'])) {
 541  ?>
 542      <tr>
 543          <td align="right" class="chatlist">&nbsp;</td>
 544          <td><table border="0" cellpadding="0" cellspacing="0" summary="">        
 545              <tr>
 546                  <td><input type="checkbox" name="adcampaign_duplicate" id="adcampaign_duplicate" value="1"<?php is_checked(empty($plugin['data']['adcampaign_duplicate'])?0:1, 1) ?> /></td>
 547                  <td><label for="adcampaign_duplicate"><?php echo $BLM['save_copy'] ?></label></td>
 548              </tr>
 549          </table></td>
 550      </tr>
 551  <?php
 552      }
 553  ?>
 554      
 555      <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="10" /></td>
 556      </tr>
 557      <tr> 
 558          <td>&nbsp;</td>
 559          <td>
 560          <?php
 561          if(empty($plugin['data']['adcampaign_id'])) {
 562              echo '<input name="submit" type="submit" class="button10" value="'.$BL['be_admin_fcat_button2'].'" />'.LF;
 563          } else {
 564              echo '<input name="submit" type="submit" class="button10" value="'.$BL['be_article_cnt_button1'].'" />'.LF;
 565              echo '<input name="save" type="submit" class="button10" value="'.$BL['be_article_cnt_button3'].'" />'.LF;
 566          }
 567          ?>
 568              &nbsp;&nbsp;&nbsp;&nbsp;
 569              <input name="new" type="button" class="button10" value="<?php echo ucfirst($BL['be_msg_new']) ?>" onclick="location.href='<?php echo decode_entities(MODULE_HREF) ?>&campaign=1&edit=0';return false;" />
 570              <input name="close" type="button" class="button10" value="<?php echo $BL['be_admin_struct_close'] ?>" onclick="location.href='<?php echo decode_entities(MODULE_HREF) ?>&listcampaign=1';return false;" />
 571          </td>
 572      </tr>
 573  
 574  </table>
 575  
 576  </form>


Generated: Tue Nov 16 22:51:00 2010 Cross-referenced by PHPXref 0.7