[ Index ]

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

title

Body

[close]

/include/inc_module/mod_calendar/ -> backend.editform.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  initJsCalendar();
  31  initMootoolsAutocompleter();
  32  
  33  ?>
  34  <h1 class="title" style="margin-bottom:10px"><?php echo $BLM['listing_title'] ?></h1>
  35  
  36  <form action="<?php echo MODULE_HREF ?>&amp;edit=<?php echo $plugin['data']['calendar_id'] ?>" method="post" id="calendar_form">
  37  <input type="hidden" name="calendar_id" value="<?php echo $plugin['data']['calendar_id'] ?>" />
  38  <table border="0" cellpadding="0" cellspacing="0" width="100%" summary="">
  39  
  40      <tr> 
  41          <td align="right" class="chatlist" nowrap="nowrap"><?php echo $BL['be_cnt_last_edited']  ?>:&nbsp;</td>
  42          <td class="v10"><?php echo html_specialchars(date($BL['be_fprivedit_dateformat'], strtotime($plugin['data']['calendar_changed']))) ?></td>
  43      </tr>
  44      
  45      <?php if(!empty($plugin['data']['calendar_created'])) { ?>
  46      
  47      <tr> 
  48          <td align="right" class="chatlist" nowrap="nowrap"><?php echo $BL['be_fprivedit_created']  ?>:&nbsp;</td>
  49          <td class="v10"><?php echo html_specialchars(date($BL['be_fprivedit_dateformat'], strtotime($plugin['data']['calendar_created']))) ?></td>
  50      </tr>
  51      
  52      <?php } ?>
  53      
  54      <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="15" /></td></tr>
  55  
  56      <tr> 
  57          <td align="right" class="chatlist"><?php echo $BLM['calendar_title'] ?>:&nbsp;</td>
  58          <td><input name="calendar_title" type="text" id="calendar_title" class="v12 width375<?php 
  59          
  60          //error class
  61          if(!empty($plugin['error']['calendar_title'])) echo ' errorInputText';
  62          
  63          ?>" value="<?php echo html_specialchars($plugin['data']['calendar_title']) ?>" size="30" maxlength="250" /></td>
  64      </tr>
  65      
  66      <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="8" /></td></tr>
  67  
  68  
  69      <tr> 
  70          <td align="right" class="chatlist" valign="top" style="padding-top:17px"><?php echo $BLM['calendar_start'] ?>:&nbsp;</td>
  71          <td><table border="0" cellpadding="0" cellspacing="0" summary="">
  72          
  73              <tr>
  74                  <td class="chatlist" style="padding-bottom:2px"><?php echo $BLM['date_format'] ?></td>
  75                  <td class="chatlist" id="endDate0">&nbsp;</td>
  76                  <td class="chatlist" id="endDate1" style="padding-bottom:2px"><?php echo $BLM['time_format'] ?></td>
  77                  <td colspan="2">&nbsp;</td>
  78              </tr>
  79          
  80              <tr>
  81                  <td><input name="calendar_start_date" type="text" id="calendar_start_date" class="v12<?php 
  82          
  83          //error class
  84          if(!empty($plugin['error']['calendar_start'])) echo ' errorInputText';
  85          
  86          ?>" style="width:100px;" value="<?php echo html_specialchars($plugin['data']['calendar_start_date']) ?>" size="30" /></td>
  87          <td><script language="javascript" type="text/javascript">
  88          <!--
  89  		function aStart(date, month, year) {
  90              getFieldById('calendar_start_date').value = subrstr('00' + date, 2) + '<?php echo $BLM['date_delimiter'] ?>' + subrstr('00' + month, 2) + '<?php echo $BLM['date_delimiter'] ?>' + year;
  91          }
  92          calStart = new dynCalendar('calStart', 'aStart', 'img/dynCal/');
  93          calStart.setMonthCombo(false);
  94          calStart.setYearCombo(false);
  95          //-->
  96          </script>&nbsp;</td>
  97          <td id="endDate2"><input name="calendar_start_time" type="text" id="calendar_start_time" class="v12" style="width:80px;" value="<?php echo html_specialchars($plugin['data']['calendar_start_time']) ?>" size="30" /></td>
  98          
  99          <td id="endDate3">&nbsp;</td>
 100          <td><input type="checkbox" name="calendar_allday" id="calendar_allday" value="1"<?php is_checked(1, $plugin['data']['calendar_allday']) ?> onchange="setCalendarAllDay();" /></td>
 101          <td><label for="calendar_allday" onclick="setCalendarAllDay()"><?php echo $BLM['all_day'] ?></label></td>
 102          
 103              </tr>
 104          </table></td>
 105          
 106      </tr>    
 107      
 108      <tr id="endDate4"><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="3" /></td></tr>
 109      
 110      <tr id="endDate5"> 
 111          <td align="right" class="chatlist" valign="top" style="padding-top:17px"><?php echo $BLM['calendar_end'] ?>:&nbsp;</td>
 112          <td><table border="0" cellpadding="0" cellspacing="0" summary="">
 113          
 114              <tr>
 115                  <td class="chatlist" style="padding-bottom:2px"><?php echo $BLM['date_format'] ?></td>
 116                  <td class="chatlist">&nbsp;</td>
 117                  <td class="chatlist" style="padding-bottom:2px"><?php echo $BLM['time_format'] ?></td>
 118              </tr>
 119          
 120              <tr>
 121                  <td><input name="calendar_end_date" type="text" id="calendar_end_date" class="v12<?php 
 122          
 123          //error class
 124          if(!empty($plugin['error']['calendar_end'])) echo ' errorInputText';
 125          
 126          ?>" style="width:100px;" value="<?php echo html_specialchars($plugin['data']['calendar_end_date']) ?>" size="30" /></td>
 127          <td><script language="javascript" type="text/javascript">
 128          <!--
 129  		function aEnd(date, month, year) {
 130              getFieldById('calendar_end_date').value = subrstr('00' + date, 2) + '<?php echo $BLM['date_delimiter'] ?>' + subrstr('00' + month, 2) + '<?php echo $BLM['date_delimiter'] ?>' + year;
 131          }
 132          calEnd = new dynCalendar('calEnd', 'aEnd', 'img/dynCal/');
 133          calEnd.setMonthCombo(false);
 134          calEnd.setYearCombo(false);
 135          //-->
 136          </script>&nbsp;</td>
 137          <td><input name="calendar_end_time" type="text" id="calendar_end_time" class="v12" style="width:80px;" value="<?php echo html_specialchars($plugin['data']['calendar_end_time']) ?>" size="30" /></td>
 138          
 139              </tr>
 140          </table></td>
 141          
 142      </tr>    
 143      
 144      <tr id="endDate0"><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="8" /></td></tr>
 145      
 146      
 147      <tr> 
 148          <td align="right" class="chatlist"><?php echo $BLM['repeat'] ?>:&nbsp;</td>
 149          <td><select name="calendar_range" id="calendar_range" class="v12" onchange="setRangeDates(this.options[this.selectedIndex].value)">
 150          
 151              <option value="0"<?php is_selected(0, $plugin['data']['calendar_range']) ?>><?php echo $BLM['repeat_0'] ?></option>
 152              <option value="1"<?php is_selected(1, $plugin['data']['calendar_range']) ?>><?php echo $BLM['repeat_1'] ?></option>
 153              <option value="2"<?php is_selected(2, $plugin['data']['calendar_range']) ?>><?php echo $BLM['repeat_2'] ?></option>
 154              <option value="3"<?php is_selected(3, $plugin['data']['calendar_range']) ?>><?php echo $BLM['repeat_3'] ?></option>
 155              <option value="4"<?php is_selected(4, $plugin['data']['calendar_range']) ?>><?php echo $BLM['repeat_4'] ?></option>
 156              <option value="5"<?php is_selected(5, $plugin['data']['calendar_range']) ?>><?php echo $BLM['repeat_5'] ?></option>
 157              <option value="6"<?php is_selected(6, $plugin['data']['calendar_range']) ?>><?php echo $BLM['repeat_6'] ?></option>
 158              <option value="7"<?php is_selected(7, $plugin['data']['calendar_range']) ?>><?php echo $BLM['repeat_7'] ?></option>
 159          
 160          </select></td>
 161      </tr>
 162      
 163      <tr id="rDate0"><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr>
 164      
 165      <tr id="rDate1"> 
 166          <td align="right" class="chatlist" valign="top" style="padding-top:17px"><?php echo $BLM['repeat_till'] ?>:&nbsp;</td>
 167          <td><table border="0" cellpadding="0" cellspacing="0" summary="">
 168          
 169              <tr>
 170                  <td class="chatlist" style="padding-bottom:2px"><?php echo $BLM['date_format'] ?></td>
 171                  <td class="chatlist" colspan="2">&nbsp;</td>
 172                  <td class="chatlist" colspan="2" style="padding-bottom:2px"><?php echo $BLM['date_format'] ?></td>
 173              </tr>
 174          
 175              <tr>
 176                  <td><input name="calendar_range_start" type="text" id="calendar_range_start" class="v12" style="width:100px;" value="<?php echo html_specialchars($plugin['data']['calendar_rangestart']) ?>" size="30" /></td>
 177                  <td><script language="javascript" type="text/javascript">
 178                      <!--
 179  					function rStart(date, month, year) {
 180                          getFieldById('calendar_range_start').value = subrstr('00' + date, 2) + '<?php echo $BLM['date_delimiter'] ?>' + subrstr('00' + month, 2) + '<?php echo $BLM['date_delimiter'] ?>' + year;
 181                      }
 182                      rangeStart = new dynCalendar('rangeStart', 'rStart', 'img/dynCal/');
 183                      rangeStart.setMonthCombo(false);
 184                      rangeStart.setYearCombo(false);
 185                      //-->
 186                      </script>&nbsp;</td>
 187                  <td class="chatlist">&nbsp;<?php echo $BLM['till'] ?>:&nbsp;</td>
 188                  <td><input name="calendar_range_end" type="text" id="calendar_range_end" class="v12" style="width:100px;" value="<?php echo html_specialchars($plugin['data']['calendar_rangeend']) ?>" size="30" /></td>
 189                  <td><script language="javascript" type="text/javascript">
 190                      <!--
 191  					function rEnd(date, month, year) {
 192                          getFieldById('calendar_range_end').value = subrstr('00' + date, 2) + '<?php echo $BLM['date_delimiter'] ?>' + subrstr('00' + month, 2) + '<?php echo $BLM['date_delimiter'] ?>' + year;
 193                      }
 194                      rangeEnd = new dynCalendar('rangeEnd', 'rEnd', 'img/dynCal/');
 195                      rangeEnd.setMonthCombo(false);
 196                      rangeEnd.setYearCombo(false);
 197                      //-->
 198                      </script>&nbsp;</td>
 199      
 200              </tr>
 201                      
 202          </table></td>
 203      </tr>
 204      
 205      <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="15" /></td></tr>
 206      
 207      <tr> 
 208          <td align="right" class="chatlist"><?php echo $BLM['where'] ?>:&nbsp;</td>
 209          <td><input name="calendar_where" type="text" id="calendar_where" class="v12" style="width:375px;" value="<?php echo html_specialchars($plugin['data']['calendar_where']) ?>" size="30" maxlength="220" /></td>
 210      </tr>
 211      
 212      <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr>
 213      
 214      <tr> 
 215          <td align="right" class="chatlist"><?php echo $BLM['calendar_token'] ?>:&nbsp;</td>
 216          <td><input name="calendar_tag" type="text" id="calendar_tag" class="v12" style="width:375px;" value="<?php echo html_specialchars(trim($plugin['data']['calendar_tag'])) ?>" size="30" maxlength="255" /></td>
 217      </tr>
 218  
 219      <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr>
 220      
 221      <tr> 
 222          <td align="right" class="chatlist"><?php echo $BL['be_profile_label_lang'] ?>:&nbsp;</td>
 223          <td><input name="calendar_lang" type="text" id="calendar_lang" class="v12" style="width:100px;" value="<?php echo html_specialchars(trim($plugin['data']['calendar_lang'])) ?>" size="30" maxlength="50" /></td>
 224      </tr>
 225  
 226      <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr>
 227      
 228      <tr> 
 229          <td align="right" class="chatlist"><?php echo $BLM['article_link'] ?>:&nbsp;</td>
 230          <td class="chatlist"><?php echo $BLM['more_info'] ?></td>
 231      </tr>
 232      <tr>
 233          <td>&nbsp;</td>
 234          <td><input name="calendar_refid" type="text" id="calendar_refid" class="v12" style="width:375px;margin-top:3px;" value="<?php echo empty($plugin['data']['calendar_refid']) ? '' : html_specialchars($plugin['data']['calendar_refid']) ?>" size="30" maxlength="255" /></td>
 235      </tr>
 236      
 237      <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr>
 238      
 239      <tr> 
 240          <td align="right" class="chatlist tdtop4"><?php echo $BLM['calendar_teasertext'] ?>:&nbsp;</td>
 241          <td><textarea name="calendar_teaser" id="calendar_teaser" class="v12 width375" rows="5"><?php echo html_specialchars($plugin['data']['calendar_teaser']) ?></textarea></td>
 242      </tr>
 243      
 244      <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="15" /></td></tr>
 245      
 246      <tr> 
 247          <td class="chatlist" colspan="2" style="padding-bottom:4px"><?php echo $BLM['calendar_text'] ?>:&nbsp;</td>
 248      </tr>
 249      
 250      <tr> 
 251          <td colspan="2" align="center"><?php
 252  
 253          $wysiwyg_editor = array(
 254              'value'        => $plugin['data']['calendar_text'],
 255              'field'        => 'calendar_text',
 256              'height'    => '400px',
 257              'width'        => '524px',
 258              'rows'        => '15',
 259              'editor'    => $_SESSION["WYSIWYG_EDITOR"],
 260              'lang'        => 'en'
 261          );
 262          
 263          include (PHPWCMS_ROOT.'/include/inc_lib/wysiwyg.editor.inc.php');
 264  
 265  
 266          ?></td>
 267      </tr>
 268      
 269      <tr><td colspan="2" class="rowspacer7x7"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr>
 270      
 271      
 272      <tr>
 273          <td align="right" class="chatlist"><?php echo $BL['be_cnt_image'] ?>:&nbsp;</td>
 274          <td>
 275          <table cellpadding="0" cellspacing="0" border="0" summary="">
 276              <tr>
 277                  <td><input type="text" name="cnt_image_name" id="cnt_image_name" value="<?php echo html_specialchars($plugin['data']['calendar_image']['name']) ?>" class="v12 width300" maxlength="250" /></td>
 278                  <td style="padding:2px 0 0 5px" width="100">
 279                      <a href="#" title="<?php echo $BL['be_cnt_openimagebrowser'] ?>" onclick="openFileBrowser('filebrowser.php?opt=7');return false;"><img src="img/button/open_image_button.gif" alt="" width="20" height="15" border="0" /></a>
 280                      <a href="#" title="<?php echo $BL['be_cnt_delimage'] ?>" onclick="setImgIdName();return false;"><img src="img/button/del_image_button.gif" alt="" width="15" height="15" border="0" /></a>
 281                      <input name="cnt_image_id" id="cnt_image_id" type="hidden" value="<?php echo $plugin['data']['calendar_image']['id'] ?>" />
 282                  </td>
 283              </tr>
 284          </table>
 285          </td>
 286      </tr>
 287      
 288      
 289      <tr>
 290          <td>&nbsp;</td>
 291          <td class="tdtop5 tdbottom5">
 292          <table border="0" cellpadding="0" cellspacing="0" summary="">
 293          <tr>
 294        <td><input name="cnt_image_zoom" type="checkbox" id="cnt_image_zoom" value="1" <?php is_checked(1, $plugin['data']['calendar_image']['zoom']); ?> /></td>
 295            <td><label for="cnt_image_zoom" class="checkbox"><?php echo $BL['be_cnt_enlarge'] ?></label></td>
 296  
 297            <td><input name="cnt_image_lightbox" type="checkbox" id="cnt_image_lightbox" value="1" <?php is_checked(1, $plugin['data']['calendar_image']['lightbox']); ?> onchange="if(this.checked){getObjectById('cnt_image_zoom').checked=true;}" /></td>
 298            <td><label for="cnt_image_lightbox" class="checkbox"><?php echo $BL['be_cnt_lightbox'] ?></label></td>        
 299          </tr>
 300          </table>
 301          
 302          <div id="cnt_image" style="padding-top:3px;"></div>
 303          
 304          </td>
 305      </tr>
 306      
 307      
 308      <tr>
 309          <td align="right" class="chatlist tdtop4"><?php echo $BL['be_cnt_caption'] ?>:&nbsp;</td>
 310          <td class="tdbottom4">
 311          <textarea name="cnt_image_caption" id="cnt_image_caption" class="v12 width350" rows="2"><?php echo html_specialchars($plugin['data']['calendar_image']['caption']) ?></textarea>                
 312          </td>
 313      </tr>
 314      
 315      
 316      <tr>
 317          <td align="right" class="chatlist"><?php echo $BL['be_profile_label_website'] ?>:&nbsp;</td>
 318          <td><input type="text" name="cnt_image_link" id="cnt_image_link" class="v12 width350" maxlength="500" value="<?php echo html_specialchars($plugin['data']['calendar_image']['link']) ?>" /></td>
 319      </tr>
 320  
 321      <tr><td colspan="2" class="rowspacer7x7"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr>
 322      
 323      <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="10" /></td></tr>    
 324      
 325  
 326      
 327      <tr>
 328          <td align="right" class="chatlist"><?php echo $BL['be_ftptakeover_status'] ?>:&nbsp;</td>
 329          <td><table border="0" cellpadding="0" cellspacing="0" summary="">        
 330              <tr>
 331                  <td><input type="checkbox" name="calendar_status" id="calendar_status" value="1"<?php is_checked($plugin['data']['calendar_status'], 1) ?> /></td>
 332                  <td><label for="calendar_status"><?php echo $BL['be_cnt_activated'] ?></label></td>
 333              </tr>
 334          </table></td>
 335      </tr>
 336      <tr>
 337          <td align="right" class="chatlist">&nbsp;</td>
 338          <td><table border="0" cellpadding="0" cellspacing="0" summary="">        
 339              <tr>
 340                  <td><input type="checkbox" name="calendar_duplicate" id="calendar_duplicate" value="1"<?php is_checked(empty($plugin['data']['calendar_duplicate'])?0:1, 1) ?> /></td>
 341                  <td><label for="calendar_duplicate"><?php echo $BLM['save_copy'] ?></label></td>
 342              </tr>
 343          </table></td>
 344      </tr>
 345      
 346      <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="10" /></td>
 347      </tr>
 348      <tr> 
 349          <td>&nbsp;</td>
 350          <td>
 351              <input name="submit" type="submit" class="button10" value="<?php echo empty($plugin['data']['calendar_id']) ? $BL['be_admin_fcat_button2'] : $BL['be_article_cnt_button1'] ?>" />
 352              <input name="save" type="submit" class="button10" value="<?php echo $BL['be_article_cnt_button3'] ?>" />
 353              &nbsp;&nbsp;&nbsp;&nbsp;
 354              <input name="new" type="button" class="button10" value="<?php echo ucfirst($BL['be_msg_new']) ?>" onclick="location.href='<?php echo decode_entities(MODULE_HREF) ?>&edit=0';return false;" />
 355              <input name="close" type="button" class="button10" value="<?php echo $BL['be_admin_struct_close'] ?>" onclick="location.href='<?php echo decode_entities(MODULE_HREF) ?>';return false;" />
 356          </td>
 357      </tr>
 358  
 359  </table>
 360  </form>
 361  <script type="text/javascript">
 362  <!--
 363  
 364  window.addEvent('domready', function(){
 365  
 366      /* Autocompleter for categories/tags */
 367      var searchCategory = $('calendar_tag');
 368      var indicator2 = new Element('span', {'class': 'autocompleter-loading', 'styles': {'display': 'none'}}).setHTML('').injectAfter(searchCategory);
 369      var completer2 = new Autocompleter.Ajax.Json(searchCategory, 'include/inc_act/ajax_connector.php', {
 370          multi: true,
 371          maxChoices: 30,
 372          autotrim: true,
 373          minLength: 0,
 374          allowDupes: false,
 375          postData: {action: 'category', method: 'json'},
 376          onRequest: function(el) {
 377              indicator2.setStyle('display', '');
 378          },
 379          onComplete: function(el) {
 380              indicator2.setStyle('display', 'none');
 381          }
 382      });
 383      
 384      var selectLang = $('calendar_lang');
 385      var indicator1 = new Element('span', {'class': 'autocompleter-loading', 'styles': {'display': 'none'}}).setHTML('').injectAfter(selectLang);
 386      var completer1 = new Autocompleter.Ajax.Json(selectLang, 'include/inc_act/ajax_connector.php', {
 387          multi: false,
 388          allowDupes: false,
 389          autotrim: true,
 390          minLength: 0,
 391          maxChoices: 20,
 392          postData: {action: 'lang', method: 'json'},
 393          onRequest: function(el) {
 394              indicator1.setStyle('display', '');
 395          },
 396          onComplete: function(el) {
 397              indicator1.setStyle('display', 'none');
 398          }
 399      });
 400      
 401      selectLang.addEvent('keyup', function(){
 402          this.value = this.value.replace(/[^a-z\-]/g, '');
 403      });
 404      
 405      
 406      setCalendarAllDay();
 407      setRangeDates(<?php echo $plugin['data']['calendar_range'] ?>);
 408      
 409      $('calendar_form').addEvent('submit', function(r) {
 410          var calendar_title = $('calendar_title');
 411          calendar_title.value = calendar_title.value.clean();
 412          if( calendar_title.value == '' ) {
 413              var r = new Event(r).stop();
 414              alert('<?php echo $BLM['alert_empty_title'] ?>');
 415          }
 416      });
 417      
 418      
 419      showImage();
 420  
 421  });
 422  
 423  
 424  function setCalendarAllDay() {
 425  
 426      var calendarAllDay = $('calendar_allday');
 427      if(calendarAllDay.checked == true) {
 428          toggleDisplayById('endDate0', 'none');
 429          toggleDisplayById('endDate1', 'none');
 430          toggleDisplayById('endDate2', 'none');
 431          toggleDisplayById('endDate3', 'none');
 432          toggleDisplayById('endDate4', 'none');
 433          toggleDisplayById('endDate5', 'none');
 434      } else {
 435          toggleDisplayById('endDate0', '');
 436          toggleDisplayById('endDate1', '');
 437          toggleDisplayById('endDate2', '');
 438          toggleDisplayById('endDate3', '');
 439          toggleDisplayById('endDate4', '');
 440          toggleDisplayById('endDate5', '');
 441      }
 442  
 443  }
 444  
 445  function setRangeDates(value) {
 446      value = parseInt(value);
 447      if(!value) {
 448          toggleDisplayById('rDate0', 'none');
 449          toggleDisplayById('rDate1', 'none');
 450      } else {
 451          toggleDisplayById('rDate0', '');
 452          toggleDisplayById('rDate1', '');
 453      }
 454      
 455  }
 456  
 457  function setImgIdName(file_id, file_name) {
 458      if(file_id == null) file_id=0;
 459      if(file_name == null) file_name='';
 460      getObjectById('cnt_image_id').value = file_id;
 461      getObjectById('cnt_image_name').value = file_name;
 462      
 463      showImage();
 464  }
 465  
 466  function showImage() {
 467      id    = parseInt(getObjectById('cnt_image_id').value);
 468      img    = getObjectById('cnt_image');
 469      if(id > 0) {
 470          img.innerHTML = '<img src="<?php echo PHPWCMS_URL.'img/cmsimage.php/'.$phpwcms['img_list_width'].'x'.$phpwcms['img_list_height'] ?>/'+id+'" alt="" border="0" />';
 471          img.style.display = '';
 472      } else {
 473          img.style.display = 'none';
 474      }
 475  }
 476  
 477  //-->
 478  </script>
 479  
 480  
 481  


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