[ Index ]

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

title

Body

[close]

/include/inc_module/mod_ads/ -> backend.form.campaign.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  // 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 language="javascript" type="text/javascript">
 131          <!--
 132          var ad_place = new Array();
 133  <?php 
 134  
 135  echo implode(LF, $plugin['ad_place_js']);
 136  if(empty($plugin['data']['adcampaign_place']) && count($plugin['ad_place_js'])) {
 137      echo LF.LF.'         setFormat('.key($plugin['ad_place_js']).');';
 138  }
 139  
 140  
 141  
 142  
 143  // set JavaScript sourcePath
 144  
 145  if(!empty($plugin['data']['adcampaign_id'])) {
 146      echo LF.LF.'         var adsPath = "'.$phpwcms["content_path"].'ads/'.$plugin['data']['adcampaign_id'].'/";'.LF.LF;
 147  }
 148  ?>
 149  
 150  		function setFormat(value) {
 151          
 152              if(ad_place[value]) {
 153                  getFieldById('adcampaign_width').value  = ad_place[value][0];
 154                  getFieldById('adcampaign_height').value = ad_place[value][1];
 155              }
 156          
 157          }
 158  
 159          //-->
 160          </script></td>
 161      
 162      </tr>
 163  
 164  
 165      <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="10" /></td></tr>
 166  
 167      
 168      <tr>
 169      
 170          <td align="right" class="chatlist"><?php echo $BLM['target_url'] ?>:&nbsp;</td>
 171          <td><table summary="" cellpadding="0" cellspacing="0" border="0" class="width400">
 172              <tr>
 173                  <td><input type="text" name="adcampaign_url" id="adcampaign_url" value="<?php 
 174                  
 175                      if(!empty($plugin['data']['adcampaign_data']['url'])) {
 176                          $plugin['data']['adcampaign_data']['url_html'] = html_specialchars($plugin['data']['adcampaign_data']['url']);
 177                          echo $plugin['data']['adcampaign_data']['url_html'];
 178                          echo '" title="'.$plugin['data']['adcampaign_data']['url_html'];
 179                      }
 180                      
 181                      ?>" class="v12 width250" /></td>
 182                  <td align="right" class="chatlist">&nbsp;&nbsp;<?php echo $BLM['open_in'] ?>:&nbsp;</td>
 183                  <td width="20"><select name="adcampaign_target" id="adcampaign_target" class="v12">
 184          <option value=""<?php is_selected('', $plugin['data']['adcampaign_data']['target']) ?>>&nbsp;</option>
 185          <option value="_blank"<?php is_selected('_blank', $plugin['data']['adcampaign_data']['target']) ?>>_blank</option>
 186          <option value="_top"<?php is_selected('_top', $plugin['data']['adcampaign_data']['target']) ?>>_top</option>
 187          <option value="_self"<?php is_selected('_self', $plugin['data']['adcampaign_data']['target']) ?>>_self</option>
 188          <option value="_parent"<?php is_selected('_parent', $plugin['data']['adcampaign_data']['target']) ?>>_parent</option>        
 189          </select></td>
 190              </tr>
 191          </table></td>
 192      </tr>    
 193      
 194  
 195  
 196      
 197      <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="15" /></td></tr>
 198      
 199      <tr> 
 200          <td align="right" class="chatlist" valign="top" style="padding-top:18px"><?php echo $BLM['calendar_start'] ?>:&nbsp;</td>
 201          <td><table border="0" cellpadding="0" cellspacing="0" summary="">
 202          
 203              <tr>
 204                  <td class="chatlist" style="padding-bottom:2px"><?php echo $BLM['date_format'] ?></td>
 205                  <td class="chatlist">&nbsp;</td>
 206                  <td class="chatlist" style="padding-bottom:2px"><?php echo $BLM['time_format'] ?></td>
 207                  <td colspan="2">&nbsp;</td>
 208              </tr>
 209          
 210              <tr>
 211                  <td><input name="adcampaign_date_start" type="text" id="adcampaign_date_start" class="v12 width100<?php 
 212          
 213          //error class
 214          if(!empty($plugin['error']['adcampaign_date_start'])) echo ' errorInputText';
 215          
 216          ?>" value="<?php echo html_specialchars($plugin['data']['adcampaign_date_start']) ?>" size="30" /></td>
 217          <td>&nbsp;</td>
 218          <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>
 219          <td>&nbsp;<script language="javascript" type="text/javascript">
 220          <!--
 221  		function aStart(date, month, year) {
 222              getFieldById('adcampaign_date_start').value = subrstr('00' + date, 2) + '<?php echo $BLM['date_delimiter'] ?>' + subrstr('00' + month, 2) + '<?php echo $BLM['date_delimiter'] ?>' + year;
 223              
 224              var timestart = getFieldById('adcampaign_time_start');
 225              if(Trim(timestart.value) == '') {
 226                  timestart.value = '00:00';
 227              }
 228          }
 229          calStart = new dynCalendar('calStart', 'aStart', 'img/dynCal/');
 230          calStart.setMonthCombo(false);
 231          calStart.setYearCombo(false);
 232          //-->
 233          </script></td>
 234      
 235              </tr>
 236          </table></td>
 237          
 238      </tr>    
 239      
 240      <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="3" /></td></tr>
 241      
 242      <tr> 
 243          <td align="right" class="chatlist" valign="top" style="padding-top:18px"><?php echo $BLM['calendar_end'] ?>:&nbsp;</td>
 244          <td><table border="0" cellpadding="0" cellspacing="0" summary="">
 245          
 246              <tr>
 247                  <td class="chatlist" style="padding-bottom:2px"><?php echo $BLM['date_format'] ?></td>
 248                  <td class="chatlist">&nbsp;</td>
 249                  <td class="chatlist" style="padding-bottom:2px"><?php echo $BLM['time_format'] ?></td>
 250              </tr>
 251          
 252              <tr>
 253                  <td><input name="adcampaign_date_end" type="text" id="adcampaign_date_end" class="v12 width100<?php 
 254          
 255          //error class
 256          if(!empty($plugin['error']['adcampaign_date_end'])) echo ' errorInputText';
 257          
 258          ?>" value="<?php echo html_specialchars($plugin['data']['adcampaign_date_end']) ?>" size="30" /></td>
 259          <td>&nbsp;</td>
 260          <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>
 261          <td>&nbsp;<script language="javascript" type="text/javascript">
 262          <!--
 263  		function aEnd(date, month, year) {
 264              getFieldById('adcampaign_date_end').value = subrstr('00' + date, 2) + '<?php echo $BLM['date_delimiter'] ?>' + subrstr('00' + month, 2) + '<?php echo $BLM['date_delimiter'] ?>' + year;
 265              var timeend = getFieldById('adcampaign_time_end');
 266              if(Trim(timeend.value) == '') {
 267                  timeend.value = '23:59';
 268              }
 269          }
 270          calEnd = new dynCalendar('calEnd', 'aEnd', 'img/dynCal/');
 271          calEnd.setMonthCombo(false);
 272          calEnd.setYearCombo(false);
 273          //-->
 274          </script></td>
 275          
 276              </tr>
 277          </table></td>
 278          
 279      </tr>        
 280  
 281  
 282      <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="3" /></td></tr>
 283      
 284      <tr>
 285      
 286          <td align="right" class="chatlist" valign="top" style="padding-top:18px"><?php echo $BLM['tracking_base'] ?>:&nbsp;</td>
 287          <td><table summary="" cellpadding="0" cellspacing="0" border="0">
 288              <tr>
 289                  <td class="chatlist" style="padding-bottom:2px"><?php echo $BLM['max_view'] ?></td>
 290                  <td class="chatlist">&nbsp;</td>
 291                  <td class="chatlist" style="padding-bottom:2px"><?php echo $BLM['max_click'] ?></td>
 292                  <td class="chatlist">&nbsp;</td>
 293                  <td class="chatlist" style="padding-bottom:2px"><?php echo $BLM['max_view_user'] ?></td>
 294              </tr>
 295              <tr>
 296                  <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>
 297                  <td>&nbsp;</td>
 298                  <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>
 299                  <td>&nbsp;</td>
 300                  <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>
 301              </tr>
 302          </table></td>
 303      
 304      </tr>    
 305  
 306      
 307  
 308      
 309      <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="15" /></td></tr>
 310      
 311      
 312      
 313      
 314      <tr>
 315      
 316          <td align="right" class="chatlist"><?php echo $BLM['ad_type'] ?>:&nbsp;</td>
 317          <td class="v12 inlineCheckbox">
 318          <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;
 319          <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;
 320          <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;
 321          <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;
 322          <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>
 323          </td>
 324      
 325      </tr>
 326      
 327      <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="10" /></td></tr>
 328  
 329  <?php
 330  
 331  // now check media
 332  
 333  // try to load image files
 334  $plugin['data']['files'] = returnFileListAsArray(PHPWCMS_CONTENT.'ads/'.$plugin['data']['adcampaign_id'], 'gif,jpg,png');
 335  $plugin['data']['image'] = '';
 336  if(is_array($plugin['data']['files']) && count($plugin['data']['files'])) {
 337      
 338      foreach($plugin['data']['files'] as $_entry['value']) {
 339          
 340          $c = html_specialchars($_entry['value']['filename']);
 341          $plugin['data']['image'] .= '            <option value="'.$c.'"';
 342          if($_entry['value']['filename'] == $plugin['data']['adcampaign_data']['image']) {
 343              $plugin['data']['image'] .= ' selected="selected"';
 344          }
 345          $plugin['data']['image'] .= '>'.$c.'</option>'.LF;            
 346  
 347      }
 348  }
 349  // try to load flash files
 350  $plugin['data']['files'] = returnFileListAsArray(PHPWCMS_CONTENT.'ads/'.$plugin['data']['adcampaign_id'], 'swf');
 351  $plugin['data']['flash'] = '';
 352  if(is_array($plugin['data']['files']) && count($plugin['data']['files'])) {
 353      
 354      foreach($plugin['data']['files'] as $_entry['value']) {
 355          
 356          $c = html_specialchars($_entry['value']['filename']);
 357          $plugin['data']['flash'] .= '            <option value="'.$c.'"';
 358          if($_entry['value']['filename'] == $plugin['data']['adcampaign_data']['flash']) {
 359              $plugin['data']['flash'] .= ' selected="selected"';
 360          }
 361          $plugin['data']['flash'] .= '>'.$c.'</option>'.LF;            
 362  
 363      }
 364  }
 365  // try to load css files
 366  $plugin['data']['files'] = returnFileListAsArray(PHPWCMS_CONTENT.'ads/'.$plugin['data']['adcampaign_id'], 'css');
 367  $plugin['data']['css'] = '';
 368  if(is_array($plugin['data']['files']) && count($plugin['data']['files'])) {
 369      
 370      foreach($plugin['data']['files'] as $_entry['value']) {
 371          
 372          $c = html_specialchars($_entry['value']['filename']);
 373          $plugin['data']['css'] .= '            <option value="'.$c.'"';
 374          if($_entry['value']['filename'] == $plugin['data']['adcampaign_data']['css']) {
 375              $plugin['data']['css'] .= ' selected="selected"';
 376          }
 377          $plugin['data']['css'] .= '>'.$c.'</option>'.LF;            
 378  
 379      }
 380  }
 381  
 382  
 383  // as long as no ID defined hide upload content
 384  if(empty($plugin['data']['adcampaign_id'])) {
 385  
 386      echo LF.'<tr><td>&nbsp;</td><td class="warning">'.$BLM['ad_info'].'</td></tr>'.LF;
 387  
 388  
 389      echo LF.'<!--'.LF;
 390  }
 391  
 392  
 393  
 394  if(isset($plugin['error']['image'])) {
 395  
 396      echo LF.'<tr><td>&nbsp;</td><td class="warning1">'.$plugin['error']['image'].'</td></tr>'.LF;
 397  }
 398  
 399  ?>
 400      <tr>
 401      
 402          <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>
 403          <td><table summary="" cellpadding="0" cellspacing="0" border="0">
 404              <tr>
 405                  <td><select name="adcampaign_image" id="adcampaign_image" class="v12 width175">
 406              <option value="">&nbsp;</option>
 407  <?php echo $plugin['data']['image'] ?>
 408              </select></td>
 409              <td>&nbsp;</td>
 410              <td class="upload newimage"><input type="file" name="adcampaign_upload_image" id="adcampaign_upload_image" title="<?php echo $BLM['ad_upload_image'] ?>" /></td>
 411              </tr>
 412              </table></td>
 413      
 414      </tr>
 415  
 416      <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="6" /></td></tr>
 417  <?php
 418  if(isset($plugin['error']['flash'])) {
 419  
 420      echo LF.'<tr><td>&nbsp;</td><td class="warning1">'.$plugin['error']['flash'].'</td></tr>'.LF;
 421  }
 422  ?>
 423  
 424      <tr>
 425      
 426          <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>
 427          <td><table summary="" cellpadding="0" cellspacing="0" border="0">
 428              <tr>
 429                  <td><select name="adcampaign_flash" id="adcampaign_flash" class="v12 width175">
 430              <option value="">&nbsp;</option>
 431  <?php echo $plugin['data']['flash'] ?>
 432              </select></td>
 433                  <td>&nbsp;</td>
 434                  <td class="upload newflash"><input type="file" name="adcampaign_upload_flash" id="adcampaign_upload_flash" title="<?php echo $BLM['ad_upload_flash'] ?>" /></td>
 435              </tr>
 436              </table></td>
 437      
 438      </tr>
 439      
 440      <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="6" /></td></tr>
 441  <?php
 442  if(isset($plugin['error']['css'])) {
 443  
 444      echo LF.'<tr><td>&nbsp;</td><td class="warning1">'.$plugin['error']['css'].'</td></tr>'.LF;
 445  }
 446  ?>
 447  
 448      <tr>
 449      
 450          <td align="right" class="chatlist">CSS:&nbsp;</td>
 451          <td><table summary="" cellpadding="0" cellspacing="0" border="0">
 452              <tr>
 453                  <td><select name="adcampaign_css" id="adcampaign_css" class="v12 width175">
 454              <option value="">&nbsp;</option>
 455  <?php echo $plugin['data']['css'] ?>
 456              </select></td>
 457                  <td>&nbsp;</td>
 458                  <td class="upload newcss"><input type="file" name="adcampaign_upload_css" id="adcampaign_upload_css" title="<?php echo $BLM['ad_upload_css'] ?>" /></td>
 459              </tr>
 460              </table></td>
 461      
 462      </tr>
 463      
 464      <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="6" /></td></tr>
 465  
 466  <?php
 467  // as long as no ID defined hide upload content
 468  if(empty($plugin['data']['adcampaign_id'])) {
 469      echo LF.'//-->'.LF;
 470  } 
 471  
 472  
 473  ?>
 474  
 475  
 476      <tr>
 477      
 478          <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>
 479          <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>
 480      
 481      </tr>
 482      
 483      <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="6" /></td></tr>
 484  
 485      <tr> 
 486          <td align="right" class="chatlist"><?php echo $BLM['ad_alt_text'] ?>:&nbsp;</td>
 487          <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>
 488      </tr>
 489  
 490      <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="6" /></td></tr>
 491  
 492      <tr> 
 493          <td align="right" class="chatlist"><?php echo $BLM['ad_title_text'] ?>:&nbsp;</td>
 494          <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>
 495      </tr>
 496      
 497      <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="6" /></td></tr>
 498      
 499      <tr>
 500      
 501          <td align="right" class="chatlist" valign="top" style="padding-top:18px"><?php echo $BL['be_settings'] ?>:&nbsp;</td>
 502          <td><table summary="" cellpadding="0" cellspacing="0" border="0">
 503              <tr>
 504                  <td class="chatlist" colspan="2" style="padding-bottom:2px"><?php echo $BLM['ad_bgcolor'] ?></td>
 505                  <td class="chatlist">&nbsp;</td>
 506                  <td class="chatlist" colspan="2" style="padding-bottom:2px"><?php echo $BLM['ad_bordercolor'] ?></td>
 507                  <td class="chatlist">&nbsp;</td>
 508                  <td class="chatlist" colspan="2" style="padding-bottom:2px"><?php echo $BLM['ad_flashversion'] ?></td>
 509              </tr>
 510              <tr>
 511                  <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>
 512                  <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>
 513                  <td>&nbsp;</td>
 514                  <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>
 515                  <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>
 516                  <td>&nbsp;</td>
 517                  <td><input type="text" name="adcampaign_flashversion" id="adcampaign_flashversion" value="<?php echo $plugin['data']['adcampaign_data']['flashversion'] ?>" class="v12 width75" /></td>
 518              </tr>
 519          </table></td>
 520      
 521      </tr>
 522      
 523      
 524      <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="25" /></td></tr>
 525      
 526      <tr> 
 527          <td align="right" class="chatlist tdtop4"><?php echo $BLM['comment'] ?>:&nbsp;</td>
 528          <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>
 529      </tr>
 530      
 531      <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="15" /></td></tr>    
 532      
 533      <tr>
 534          <td align="right" class="chatlist"><?php echo $BL['be_ftptakeover_status'] ?>:&nbsp;</td>
 535          <td><table border="0" cellpadding="0" cellspacing="0" summary="">
 536  <?php
 537              
 538      echo '    <tr><td><input type="checkbox" name="adcampaign_status" id="adcampaign_status" value="1"'; 
 539      if(empty($plugin['data']['adcampaign_id'])) {
 540          echo ' disabled="disabled" /></td><td class="inactive">'.$BL['be_cnt_activated'].'</td></tr>';
 541      } else {
 542          is_checked($plugin['data']['adcampaign_status'], 1);
 543          echo ' /></td><td><label for="adcampaign_status">'.$BL['be_cnt_activated'].'</label></td></tr>';    
 544      }
 545      
 546  ?>
 547          </table></td>
 548      </tr>
 549  <?php 
 550      if(!empty($plugin['data']['adcampaign_id'])) {
 551  ?>
 552      <tr>
 553          <td align="right" class="chatlist">&nbsp;</td>
 554          <td><table border="0" cellpadding="0" cellspacing="0" summary="">        
 555              <tr>
 556                  <td><input type="checkbox" name="adcampaign_duplicate" id="adcampaign_duplicate" value="1"<?php is_checked(empty($plugin['data']['adcampaign_duplicate'])?0:1, 1) ?> /></td>
 557                  <td><label for="adcampaign_duplicate"><?php echo $BLM['save_copy'] ?></label></td>
 558              </tr>
 559          </table></td>
 560      </tr>
 561  <?php
 562      }
 563  ?>
 564      
 565      <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="10" /></td>
 566      </tr>
 567      <tr> 
 568          <td>&nbsp;</td>
 569          <td>
 570          <?php
 571          if(empty($plugin['data']['adcampaign_id'])) {
 572              echo '<input name="submit" type="submit" class="button10" value="'.$BL['be_admin_fcat_button2'].'" />'.LF;
 573          } else {
 574              echo '<input name="submit" type="submit" class="button10" value="'.$BL['be_article_cnt_button1'].'" />'.LF;
 575              echo '<input name="save" type="submit" class="button10" value="'.$BL['be_article_cnt_button3'].'" />'.LF;
 576          }
 577          ?>
 578              &nbsp;&nbsp;&nbsp;&nbsp;
 579              <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;" />
 580              <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;" />
 581          </td>
 582      </tr>
 583  
 584  </table>
 585  
 586  </form>


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