[ Index ]

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

title

Body

[close]

/include/inc_tmpl/content/ -> cnt31.inc.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  
  31  //images special
  32  
  33  initMootools();
  34  $BE['HEADER']['imagespecial.css']    = '    <link href="include/inc_css/imagespecial.css" rel="stylesheet" type="text/css">';
  35  
  36  
  37  // some predefinitions
  38  if(empty($template_default['imagegallery_default_column'])) {
  39      $template_default['imagegallery_default_column'] = 1;
  40  } else {
  41      $template_default['imagegallery_default_column'] = intval($template_default['imagegallery_default_column']);
  42      if(empty($template_default['imagegallery_default_column'])) {
  43          $template_default['imagegallery_default_column'] = 1;
  44      }
  45  }
  46  $template_default['imagegallery_default_width']     = isset($template_default['imagegallery_default_width']) ? $template_default['imagegallery_default_width'] : '' ;
  47  $template_default['imagegallery_default_height'] = isset($template_default['imagegallery_default_height']) ? $template_default['imagegallery_default_height'] : '' ;
  48  $template_default['imagegallery_default_space']     = isset($template_default['imagegallery_default_space']) ? $template_default['imagegallery_default_space'] : '' ;
  49  
  50  
  51  $content['image_default'] = array(
  52  
  53              'pos'            => 0,
  54              'width'            => $template_default['imagegallery_default_width'],
  55              'height'        => $template_default['imagegallery_default_height'],
  56              'width_zoom'    => $phpwcms['img_prev_width'],
  57              'height_zoom'    => $phpwcms['img_prev_height'],
  58              'col'            => $template_default['imagegallery_default_column'],
  59              'space'            => $template_default['imagegallery_default_space'],
  60              'zoom'            => 0,
  61              'caption'        => '',
  62              'lightbox'        => 0,
  63              'nocaption'        => 0,
  64              'center'        => 0,
  65              'crop'            => 0,
  66              'crop_zoom'        => 0,
  67              'fx1'            => 0,
  68              'fx2'            => 0,
  69              'fx3'            => 0,
  70              'freetext'        => '',
  71              'images'        => array()
  72  
  73                      );
  74  
  75  $content['image_special'] = isset($content['image_special']) ? array_merge($content['image_default'], $content['image_special']) : $content['image_default'];
  76                      
  77  
  78  
  79  ?>
  80  
  81  <tr><td colspan="2" class="rowspacer0x7"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr>
  82  
  83  <tr>
  84      <td align="right" class="chatlist"><?php echo $BL['be_admin_struct_template']; ?>:&nbsp;</td>
  85      <td><table border="0" cellpadding="0" cellspacing="0" summary="">
  86          <tr>
  87              <td><select name="template" id="template" class="f11b width150">
  88  <?php
  89      
  90      echo '<option value="">'.$BL['be_admin_tmpl_default'].'</option>'.LF;
  91  
  92      $tmpllist = get_tmpl_files(PHPWCMS_TEMPLATE.'inc_cntpart/imagespecial');
  93      if(is_array($tmpllist) && count($tmpllist)) {
  94          foreach($tmpllist as $val) {
  95              $selected_val = (isset($content["image_template"]) && $val == $content["image_template"]) ? ' selected="selected"' : '';
  96              $val = html_specialchars($val);
  97              echo '    <option value="' . $val . '"' . $selected_val . '>' . $val . '</option>' . LF;
  98          }
  99      }
 100  
 101  ?>                  
 102              </select></td>
 103          
 104          <td class="chatlist">&nbsp;&nbsp;&nbsp;<?php echo $BL['be_image_align'] ?>:&nbsp;</td>
 105          
 106           <td>
 107              <select name="cimage_center" id="cimage_center" class="v11 width150">
 108              
 109                  <option value="0"<?php is_selected(0, $content['image_special']['center']); ?>><?php echo $BL['be_cnt_imagenocenter'] ?></option>
 110                  <option value="1"<?php is_selected(1, $content['image_special']['center']); ?>><?php echo $BL['be_cnt_imagecenter'] ?></option>
 111                  <option value="2"<?php is_selected(2, $content['image_special']['center']); ?>><?php echo $BL['be_cnt_imagecenterh'] ?></option>
 112                  <option value="3"<?php is_selected(3, $content['image_special']['center']); ?>><?php echo $BL['be_cnt_imagecenterv'] ?></option>
 113                  
 114              </select>
 115          </td>
 116          
 117          </tr>
 118          
 119      </table></td>        
 120          
 121  </tr>
 122  
 123  <tr><td colspan="2" class="rowspacer7x7"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr>
 124  
 125  <tr>
 126      <td align="right" class="chatlist"><?php echo $BL['be_flashplayer_thumbnail'] ?>:&nbsp;</td>
 127      <td valign="top"><table border="0" cellpadding="0" cellspacing="0" summary="">
 128          <tr>
 129  
 130              <td><input name="cimage_width" type="text" class="f11b" id="cimage_width" style="width: 50px;" size="4" maxlength="4" onkeyup="setCimageCenterInactive();" value="<?php echo $content['image_special']['width']; ?>" /></td>
 131              <td class="chatlist">&nbsp;x&nbsp;</td>
 132  
 133              <td><input name="cimage_height" type="text" class="f11b" id="cimage_height" style="width: 50px;" size="4" maxlength="4" onkeyup="setCimageCenterInactive();" value="<?php echo $content['image_special']['height']; ?>" /></td>
 134              <td class="chatlist">&nbsp;<?php echo $BL['be_image_WxHpx'] ?>&nbsp;&nbsp;&nbsp;</td>
 135              
 136              <td><input type="checkbox" name="cimage_crop" id="cimage_crop" value="1" <?php is_checked(1, $content['image_special']['crop']); ?> /></td>
 137              <td class="v10"><label for="cimage_crop" class="checkbox"><?php echo $BL['be_image_crop'] ?></label></td>
 138          
 139          </tr>
 140      </table></td>
 141  </tr>
 142  
 143  <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr>
 144  
 145  <tr>
 146      <td align="right" class="chatlist">&nbsp;</td>
 147      <td valign="top"><table border="0" cellpadding="0" cellspacing="0" summary="">
 148          <tr>
 149              <td class="chatlist"><?php echo $BL['be_cnt_column'] ?>:&nbsp;</td>
 150              <td><select name="cimage_col" class="f11b" id="cimage_col">
 151  <?php
 152  
 153  // list select menu for max image columns
 154  for($max_image_col = 1; $max_image_col <= 25; $max_image_col++) {
 155  
 156      echo '<option value="'.$max_image_col.'" ';
 157      is_selected($max_image_col, $content['image_special']['col']);
 158      echo '>'.$max_image_col.'</option>'.LF;
 159    
 160  }
 161  
 162  ?>
 163                </select></td>
 164                <td class="chatlist">&nbsp;&nbsp;<?php echo $BL['be_cnt_imagespace'] ?>:&nbsp;</td>
 165                <td><input name="cimage_space" type="text" class="f11b" id="cimage_space" style="width: 50px;" size="2" maxlength="3" onkeyup="if(!parseInt(this.value*1)) this.value='';" value="<?php echo $content['image_special']['space']; ?>" /></td>
 166                <td class="chatlist">&nbsp;px&nbsp;&nbsp;&nbsp;</td>
 167                
 168              </tr>
 169          </table></td>
 170  </tr>
 171  
 172  <tr><td colspan="2" class="rowspacer7x7"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr>
 173  
 174  <tr>
 175      <td align="right" class="chatlist"><?php echo $BL['be_cnt_reference_zoom'] ?>:&nbsp;</td>
 176      <td valign="top"><table border="0" cellpadding="0" cellspacing="0" summary="">
 177          <tr>
 178  
 179              <td><input name="cimage_width_zoom" type="text" class="f11b" id="cimage_width_zoom" style="width: 50px;" size="4" maxlength="4" value="<?php echo $content['image_special']['width_zoom']; ?>" /></td>
 180              <td class="chatlist">&nbsp;x&nbsp;</td>
 181  
 182              <td><input name="cimage_height_zoom" type="text" class="f11b" id="cimage_height_zoom" style="width: 50px;" size="4" maxlength="4" value="<?php echo $content['image_special']['height_zoom']; ?>" /></td>
 183              <td class="chatlist">&nbsp;<?php echo $BL['be_image_WxHpx'] ?>&nbsp;&nbsp;&nbsp;</td>
 184              
 185              <td><input type="checkbox" name="cimage_crop_zoom" id="cimage_crop_zoom" value="1" <?php is_checked(1, $content['image_special']['crop_zoom']); ?> /></td>
 186              <td class="v10"><label for="cimage_crop_zoom" class="checkbox"><?php echo $BL['be_image_cropit'] ?></label></td>
 187          
 188          </tr>
 189      </table></td>
 190  </tr>
 191  
 192  <tr><td colspan="2" class="rowspacer7x7"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr>
 193  
 194  <tr>
 195      <td align="right" class="chatlist tdtop3"><?php echo $BL['be_cnt_behavior'] ?>:&nbsp;</td>
 196      <td><table border="0" cellpadding="0" cellspacing="0" summary="">
 197              <tr>
 198                  <td><input name="cimage_zoom" type="checkbox" id="cimage_zoom" value="1" <?php is_checked(1, $content['image_special']['zoom']); ?> /></td>
 199                  <td class="v10"><label for="cimage_zoom" class="checkbox"><?php echo $BL['be_cnt_enlarge'] ?></label></td>
 200                  
 201                  <td>&nbsp;</td>
 202                  <td><input name="cimage_lightbox" type="checkbox" id="cimage_lightbox" value="1" <?php is_checked(1, $content['image_special']['lightbox']); ?> onchange="if(this.checked){getObjectById('cimage_zoom').checked=true;}" /></td>
 203                  <td class="v10"><label for="cimage_lightbox" class="checkbox"><?php echo $BL['be_cnt_lightbox'] ?></label></td>
 204                  
 205                  <td>&nbsp;</td>
 206                  <td><input name="cimage_nocaption" type="checkbox" id="cimage_nocaption" value="1" <?php is_checked(1, $content['image_special']['nocaption']); ?> /></td>
 207                  <td class="v10"><label for="cimage_nocaption" class="checkbox"><?php echo $BL['be_cnt_imglist_nocaption'] ?></label></td>
 208  
 209              </tr>
 210              
 211              <tr>
 212                  <td><input name="cimage_fx1" type="checkbox" id="cimage_fx1" value="1" <?php is_checked(1, $content['image_special']['fx1']); ?> /></td>
 213                  <td class="v10"><label for="cimage_fx1" class="checkbox"><?php echo $BL['be_fx_1'] ?></label></td>
 214                  
 215                  <td>&nbsp;</td>
 216                  <td><input name="cimage_fx2" type="checkbox" id="cimage_fx2" value="1" <?php is_checked(1, $content['image_special']['fx2']); ?> onchange="if(this.checked){getObjectById('cimage_zoom').checked=true;}" /></td>
 217                  <td class="v10"><label for="cimage_fx2" class="checkbox"><?php echo $BL['be_fx_2'] ?></label></td>
 218                  
 219                  <td>&nbsp;</td>
 220                  <td><input name="cimage_fx3" type="checkbox" id="cimage_fx3" value="1" <?php is_checked(1, $content['image_special']['fx3']); ?> /></td>
 221                  <td class="v10"><label for="cimage_fx3" class="checkbox"><?php echo $BL['be_fx_3'] ?></label></td>
 222  
 223              </tr>
 224              
 225          </table>
 226      </td>
 227  </tr>
 228  
 229  
 230  <tr><td colspan="2" class="rowspacer7x7"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr>
 231  
 232  <tr>
 233      <td class="chatlist tdtop5" align="right"><?php echo $BL['be_ctype_images'] ?>:&nbsp;</td>
 234      <td class="tdbottom4">
 235      
 236      <button onclick="return addNewImage('top');">
 237          <span class="btn_image_add"><?php echo $BL['be_article_cnt_add'] ?></span>
 238      </button>
 239      
 240      </td>
 241  
 242  </tr>
 243  
 244  <tr>
 245      <td>&nbsp;</td>
 246      <td>
 247      
 248      <ul id="images">
 249  
 250  <?php
 251  
 252      // Sort/Up Down Title
 253      $sort_up_down = $BL['be_func_struct_sort_up'] . ' / '. $BL['be_func_struct_sort_down'];
 254      
 255      // loop available image entries
 256      foreach($content['image_special']['images'] as $key => $value) {
 257  
 258  ?>
 259  
 260          <li id="image_<?php echo $key ?>">
 261          <table border="0" cellpadding="0" cellspacing="0" summary="">
 262      <tr>
 263          <td class="chatlist right">
 264              <input name="cimage_id_thumb[<?php echo $key ?>]" id="cimage_id_thumb_<?php echo $key ?>" type="hidden" value="<?php echo $value['thumb_id'] ?>" />
 265              <input name="cimage_sort[<?php echo $key ?>]" id="cimage_sort_<?php echo $key ?>" type="hidden" value="<?php echo $value['sort'] ?>" />
 266              <?php echo $BL['be_flashplayer_thumbnail'] ?>:&nbsp;</td>
 267          <td><input name="cimage_name_thumb[<?php echo $key ?>]" type="text" id="cimage_name_thumb_<?php echo $key ?>" class="f11b imagename" value="<?php echo html_specialchars($value['thumb_name']) ?>" size="30" onfocus="this.blur();" /></td>
 268          <td><a href="#" title="<?php echo $BL['be_cnt_openimagebrowser'] ?>" onclick="return openImageFileBrowser('thumb_<?php echo $key ?>');"><img src="img/button/open_image_button.gif" alt="" width="20" height="15" border="0" /></a></td>
 269          <td><a href="#" title="<?php echo $BL['be_cnt_delimage'] ?>" onclick="return deleteImageData('thumb_<?php echo $key ?>', this);"><img src="img/button/del_image_button.gif" alt="" width="15" height="15" border="0" /></a></td>
 270      </tr>
 271      
 272      <tr><td colspan="3" class="spacerrow"></td></tr>
 273      
 274      <tr>
 275          <td class="chatlist right">
 276              <input name="cimage_id_zoom[<?php echo $key ?>]" id="cimage_id_zoom_<?php echo $key ?>" type="hidden" value="<?php echo $value['zoom_id'] ?>" />
 277              <?php echo $BL['be_image_zoom'] ?>:&nbsp;</td>
 278          <td><input name="cimage_name_zoom[<?php echo $key ?>]" type="text" id="cimage_name_zoom_<?php echo $key ?>" class="f11b imagename" value="<?php echo html_specialchars($value['zoom_name']) ?>" size="30" onfocus="this.blur();" /></td>
 279          <td><a href="#" title="<?php echo $BL['be_cnt_openimagebrowser'] ?>" onclick="return openImageFileBrowser('zoom_<?php echo $key ?>');"><img src="img/button/open_image_button.gif" alt="" width="20" height="15" border="0" /></a></td>
 280          <td><a href="#" title="<?php echo $BL['be_cnt_delimage'] ?>" onclick="return deleteImageData('zoom_<?php echo $key ?>', this);"><img src="img/button/del_image_button.gif" alt="" width="15" height="15" border="0" /></a></td>
 281      </tr>
 282      
 283      <tr>
 284          <td class="spacerrow"></td>
 285          <td id="img_preview_<?php echo $key ?>" colspan="3" class="backend_preview_img"></td>
 286      </tr>
 287      
 288      <tr>
 289          <td class="chatlist right tdtop3"><?php echo $BL['be_cnt_caption'] ?>:&nbsp;</td>
 290          <td colspan="3"><textarea name="cimage_caption[<?php echo $key ?>]" id="cimage_caption_<?php echo $key ?>" class="v11 w300" cols="30" rows="2"><?php echo html_entities($value['caption']) ?></textarea></td>
 291      </tr>
 292      
 293      <tr><td colspan="3" class="spacerrow"></td></tr>
 294      
 295      <tr>
 296          <td class="chatlist right tdtop3"><?php echo $BL['be_cnt_infotext'] ?>:&nbsp;</td>
 297          <td colspan="3"><textarea name="cimage_freetext[<?php echo $key ?>]" id="cimage_freetext_<?php echo $key ?>" class="v11 w300" cols="30" rows="2"><?php echo html_entities(empty($value['freetext']) ? '' : $value['freetext']) ?></textarea></td>
 298      </tr>
 299      
 300      <tr><td colspan="3" class="spacerrow"></td></tr>
 301      
 302      <tr>
 303          <td class="chatlist right"><?php echo $BL['be_profile_label_website'] ?>:&nbsp;</td>
 304          <td><input type="text" name="cimage_url[<?php echo $key ?>]" id="cimage_url_<?php echo $key ?>" class="v11 w300" size="30" value="<?php echo html_entities($value['url']) ?>" /></td>
 305          <td><em title="<?php echo $sort_up_down; ?>" class="handle">&nbsp;</em></td>
 306          <td><a href="#" onclick="return deleteImgElement('image_<?php echo $key ?>');"><img src="img/famfamfam/image_delete.gif" alt="" border="" /></a></td>
 307      </tr>
 308      
 309      
 310          </table>
 311          </li>
 312          
 313  <?php
 314  
 315      }
 316      // close image entry looping
 317  
 318  ?>
 319          
 320      </ul>
 321  
 322      </td>
 323  </tr>
 324  
 325  <?php
 326      // second button to add images at bottom of list
 327      if (count($content['image_special']['images'])){
 328  ?>
 329  <tr>
 330      <td class="chatlist tdtop5" align="right"><?php echo $BL['be_ctype_images'] ?>:&nbsp;</td>
 331      <td class="tdbottom4">
 332      
 333      <button onclick="return addNewImage('bottom');">
 334          <span class="btn_image_add"><?php echo $BL['be_article_cnt_add'] ?></span>
 335      </button>
 336      
 337      </td>
 338  
 339  </tr>
 340  <?php
 341      }
 342  ?>
 343  <tr><td colspan="2" class="rowspacer7x7"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr>
 344  
 345  <tr><td colspan="2" align="center"><?php
 346  
 347  $wysiwyg_editor = array(
 348      'value'        => isset($content["image_html"]) ? $content["image_html"] : '',
 349      'field'        => 'image_html',
 350      'height'    => '300px',
 351      'width'        => '536px',
 352      'rows'        => '15',
 353      'editor'    => $_SESSION["WYSIWYG_EDITOR"],
 354      'lang'        => 'en'
 355  );
 356  
 357  include (PHPWCMS_ROOT.'/include/inc_lib/wysiwyg.editor.inc.php');
 358  
 359  
 360  ?></td></tr>
 361  
 362  <tr>
 363      <td colspan="2" class="rowspacer7x7">
 364      <script type="text/javascript">
 365      <!--
 366      
 367      var site_url    = '<?php echo PHPWCMS_URL; ?>';
 368      var max_img_w    = <?php echo $phpwcms['img_list_width']; ?>;
 369      var max_img_h    = <?php echo $phpwcms['img_list_height']; ?>;
 370      var image_entry    = new Array();
 371      
 372  	function setCimageCenterInactive() {
 373          var cih = $('cimage_width');
 374          var ciw = $('cimage_height');
 375          var cic = $('cimage_center');
 376          var ccp = $('cimage_crop');
 377          var dis = false;
 378          if(!parseInt(cih.value*1)) {
 379              cih.value = '';
 380              dis = true;
 381          }
 382          if(!parseInt(ciw.value*1)) {
 383              ciw.value = '';
 384              dis = true;
 385          }
 386          if(dis) {
 387              cic.disabled = true;
 388              ccp.disabled = true;
 389          } else {
 390              cic.disabled = false;
 391              ccp.disabled = false;
 392          }
 393      }
 394      
 395      window.addEvent('domready', function() {
 396      
 397          setCimageCenterInactive();
 398          updatePreviewImageAll();
 399  
 400          new Sortables($('images'), {
 401              handles: 'em'
 402          });
 403  
 404      });
 405      
 406      
 407  	function openImageFileBrowser(image_number) {
 408          tmt_winOpen('filebrowser.php?opt=8&target=nolist&entry_id='+image_number,'imageBrowser','width=380,height=300,left=8,top=8,scrollbars=yes,resizable=yes',1);
 409          return false;
 410      }    
 411  	function setImgIdName(image_number, file_id, file_name) {
 412          if(file_id == null || file_name == null) return null;
 413          $('cimage_id_'+image_number).value = file_id;
 414          $('cimage_name_'+image_number).value = file_name;
 415          image_number = image_number.split('_');
 416          if(image_number[1]) {
 417              updatePreviewImage(image_number[1]);
 418          }
 419      }
 420  	function deleteImageData(image_number, e) {
 421          $('cimage_name_'+image_number).value='';
 422          $('cimage_id_'+image_number).value='0';
 423          e.blur();
 424          image_number = image_number.split('_');
 425          if(image_number[1]) {
 426              updatePreviewImage(image_number[1]);
 427          }
 428          return false;
 429      }
 430      
 431  	function updatePreviewImage(image_number) {
 432          var preview = '';
 433          if($('cimage_id_thumb_'+image_number)) {
 434              var image_file_id = $('cimage_id_thumb_'+image_number).value;
 435              preview += getBackendImgSrc( image_file_id );
 436          }
 437          if($('cimage_id_zoom_'+image_number)) {
 438              var image_file_id = $('cimage_id_zoom_'+image_number).value;
 439              preview += getBackendImgSrc( image_file_id );
 440          }
 441          $('img_preview_'+image_number).setHTML(preview);
 442      }
 443      
 444  	function getBackendImgSrc(image_file_id) {
 445          var image_file_id = parseInt(image_file_id);
 446          if(image_file_id) {
 447              return '<'+'img src="'+site_url+'img/cmsimage.php/'+max_img_w+'x'+max_img_h+'/'+image_file_id+'" border="0" alt="" /'+'> ';
 448          }
 449          return '';
 450      }
 451      
 452  	function updatePreviewImageAll() {
 453          var all_images = $('images').getElements('li[id^=image_]');
 454          if(all_images.length > 0) {
 455              all_images.each(function(e) {
 456                  image_number = e.id.split('_');
 457                  if(image_number[1])    {
 458                      updatePreviewImage(image_number[1]);
 459                      image_entry[ image_number[1] ] = $('cimage_sort_'+image_number[1]).value;
 460                  }
 461                              } );
 462          }
 463      }
 464      
 465  	function addNewImage(where) {
 466      
 467          updatePreviewImageAll();
 468      
 469          var entry_number = image_entry.length;
 470      
 471          var new_entry = '';
 472      
 473          new_entry += '<'+'table border="0" cellpadding="0" cellspacing="0" summary=""'+'>';
 474          new_entry += '<'+'tr>';
 475          new_entry += '<'+'td class="chatlist right">';
 476          new_entry += '<'+'input name="cimage_id_thumb['+entry_number+']" id="cimage_id_thumb_'+entry_number+'" type="hidden" value="" /'+'>';
 477          new_entry += '<'+'input name="cimage_sort['+entry_number+']" id="cimage_sort_'+entry_number+'" type="hidden" value="'+entry_number+'" /'+'>';
 478          new_entry += '<?php echo $BL['be_flashplayer_thumbnail'] ?>:&nbsp;<'+'/td'+'>';
 479          new_entry += '<'+'td><input name="cimage_name_thumb['+entry_number+']" type="text" id="cimage_name_thumb_'+entry_number+'" class="f11b imagename" value="" size="30" onfocus="this.blur();" /><'+'/td>';
 480          new_entry += '<'+'td><a href="#" title="<?php echo $BL['be_cnt_openimagebrowser'] ?>" onclick="return openImageFileBrowser(\'thumb_'+entry_number+'\');"><img src="img/button/open_image_button.gif" alt="" width="20" height="15" border="0" /'+'><'+'/a><'+'/td>';
 481          new_entry += '<'+'td><a href="#" title="<?php echo $BL['be_cnt_delimage'] ?>" onclick="return deleteImageData(\'thumb_'+entry_number+'\', this);"><img src="img/button/del_image_button.gif" alt="" width="15" height="15" border="0" /><'+'/a><'+'/td>';
 482          new_entry += '<'+'/tr>';
 483          new_entry += '<'+'tr><td colspan="3" class="spacerrow"><'+'/td><'+'/tr>';
 484          new_entry += '<'+'tr>';
 485          new_entry += '<'+'td class="chatlist right">';
 486          new_entry += '<'+'input name="cimage_id_zoom['+entry_number+']" id="cimage_id_zoom_'+entry_number+'" type="hidden" value="" /'+'>';
 487          new_entry += '<?php echo $BL['be_image_zoom'] ?>:&nbsp;<'+'/td>';
 488          new_entry += '<'+'td><input name="cimage_name_zoom['+entry_number+']" type="text" id="cimage_name_zoom_'+entry_number+'" class="f11b imagename" value="" size="30" onfocus="this.blur();" /><'+'/td>';
 489          new_entry += '<'+'td><a href="#" title="<?php echo $BL['be_cnt_openimagebrowser'] ?>" onclick="return openImageFileBrowser(\'zoom_'+entry_number+'\');"><img src="img/button/open_image_button.gif" alt="" width="20" height="15" border="0" /><'+'/a><'+'/td>';
 490          new_entry += '<'+'td><a href="#" title="<?php echo $BL['be_cnt_delimage'] ?>" onclick="return deleteImageData(\'zoom_'+entry_number+'\', this);"><img src="img/button/del_image_button.gif" alt="" width="15" height="15" border="0" /><'+'/a><'+'/td>';
 491          new_entry += '<'+'/tr>';
 492          new_entry += '<'+'tr>';
 493          new_entry += '<'+'td class="spacerrow"><'+'/td>';
 494          new_entry += '<'+'td id="img_preview_'+entry_number+'" colspan="3" class="backend_preview_img"><'+'/td>';
 495          new_entry += '<'+'/tr>';
 496          new_entry += '<'+'tr>';
 497          new_entry += '<'+'td class="chatlist right tdtop3"><?php echo $BL['be_cnt_caption'] ?>:&nbsp;<'+'/td>';
 498          new_entry += '<'+'td colspan="3"><textarea name="cimage_caption['+entry_number+']" id="cimage_caption_'+entry_number+'" class="v11 w300" cols="30" rows="2"><'+'/textarea><'+'/td>';
 499          new_entry += '<'+'/tr>';
 500          new_entry += '<'+'tr><td colspan="3" class="spacerrow"><'+'/td><'+'/tr>';
 501          new_entry += '<'+'tr>';
 502          new_entry += '<'+'td class="chatlist right tdtop3"><?php echo $BL['be_cnt_infotext'] ?>:&nbsp;<'+'/td>';
 503          new_entry += '<'+'td colspan="3"><textarea name="cimage_freetext['+entry_number+']" id="cimage_freetext_'+entry_number+'" class="v11 w300" cols="30" rows="2"><'+'/textarea><'+'/td>';
 504          new_entry += '<'+'/tr>';
 505          new_entry += '<'+'tr><td colspan="3" class="spacerrow"><'+'/td><'+'/tr>';
 506          new_entry += '<'+'tr>';
 507          new_entry += '<'+'td class="chatlist right"><?php echo $BL['be_profile_label_website'] ?>:&nbsp;<'+'/td>';
 508          new_entry += '<'+'td><input type="text" name="cimage_url['+entry_number+']" id="cimage_url_'+entry_number+'" class="v11 w300" size="30" value="" /><'+'/td>';
 509          new_entry += '<'+'td>&nbsp;<'+'/td>';
 510          new_entry += '<'+'td><a href="#" onclick="return deleteImgElement(\'image_'+entry_number+'\');"><img src="img/famfamfam/image_delete.gif" alt="" border="" /'+'><'+'/a></'+'td>';
 511          new_entry += '<'+'/tr>';
 512          new_entry += '<'+'/table>';
 513  
 514          var new_element = new Element('li', {'id': 'image_'+entry_number, 'class': 'nomove'}).inject($('images'),where);
 515          new_element.innerHTML = new_entry;
 516          window.location.hash='image_'+entry_number;
 517          return false;
 518      };
 519      
 520  	function deleteImgElement(e) {
 521          if(confirm('<?php echo $BL['be_image_delete_js'] ?>')) {
 522              $(e).remove();
 523          }
 524          return false;
 525      }
 526      
 527      //-->
 528      </script>
 529      </td>
 530  </tr>


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