[ Index ]

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

title

Body

[close]

/include/inc_tmpl/ -> article.editsummary.tmpl.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  unset($_SESSION['filebrowser_image_target']);
  31  
  32  
  33  $template_default['article']['image_default_width']         = isset($template_default['article']['image_default_width']) ? $template_default['article']['image_default_width'] : '' ;
  34  $template_default['article']['image_default_height']     = isset($template_default['article']['image_default_height']) ? $template_default['article']['image_default_height'] : '' ;
  35  $template_default['article']['imagelist_default_width']     = isset($template_default['article']['imagelist_default_width']) ? $template_default['article']['imagelist_default_width'] : '' ;
  36  $template_default['article']['imagelist_default_height'] = isset($template_default['article']['imagelist_default_height']) ? $template_default['article']['imagelist_default_height'] : '' ;
  37  
  38  
  39  ?>
  40  
  41  <form action="phpwcms.php?do=articles&amp;p=2&amp;s=1&amp;aktion=1&amp;id=<?php echo $article["article_id"] ?>" method="post" name="article" id="article">
  42  <table width="538" border="0" cellpadding="0" cellspacing="0" summary="">
  43                <tr><td colspan="2" class="title"><?php echo $BL['be_article_estitle'] ?></td></tr>
  44              <tr>
  45                  <td width="88"><img src="img/leer.gif" alt="" width="88" height="4" /></td>
  46                  <td width="450"><img src="img/leer.gif" alt="" width="450" height="1" /></td>
  47              </tr>
  48              <tr><td colspan="2"><img src="img/lines/l538_70.gif" alt="" width="538" height="1" /></td></tr>
  49                <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="8" /></td></tr>
  50  
  51                <tr>
  52                  <td align="right" class="chatlist"><?php echo $BL['be_article_cat'] ?>:&nbsp;</td>
  53                  <td><select name="article_cid" id="article_cid" style="width: 325px" class="f11b">
  54                <?php
  55                  //keine definierte Kategorie = allgemeine Artikelkategorie
  56                  echo "<option value='0'".((!$article["article_catid"])?" selected":"").">".$BL['be_admin_struct_index']."</option>\n";
  57                  struct_select_menu($db, 0, 0, $article["article_catid"]);
  58                  ?>
  59                  </select></td>
  60              </tr>
  61              
  62              
  63              <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="8" /></td></tr>
  64  
  65              <tr>
  66                  <td align="right" class="chatlist"><?php echo $BL['be_article_atitle'] ?>:&nbsp;</td>
  67                  <td style="padding:2px 0 3px 0;"><table border="0" cellpadding="0" cellspacing="0" summary="">
  68                   <tr>
  69                      <td><input name="article_title" type="text" class="f11b" id="article_title" style="width: 325px" value="<?php echo html_specialchars($article["article_title"]) ?>" size="40" maxlength="1000" /></td>
  70                      <td>&nbsp;&nbsp;</td>
  71                      <td><input name="article_notitle" id="article_notitle" type="checkbox" value="1" <?php is_checked($article["article_notitle"],1) ?> /></td>
  72                      <td class="v10"><label for="article_notitle"><?php echo $BL['be_admin_struct_hide1'] ?></label></td>
  73                   </tr>
  74                </table></td>
  75              </tr>
  76              <tr>
  77                <td align="right" class="chatlist"><?php echo $BL['be_article_asubtitle'] ?>:&nbsp;</td>
  78                <td><input name="article_subtitle" type="text" class="f11b width440" id="article_subtitle" value="<?php echo html_specialchars($article["article_subtitle"]) ?>" size="40" maxlength="1000" /></td>
  79              </tr>
  80              <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="3" /></td></tr>
  81              <tr>
  82                  <td colspan="2"><table border="0" cellpadding="2" cellspacing="0" summary="">
  83                      <tr>
  84                          <td width="84"><img src="img/leer.gif" alt="" width="84" height="1" /></td>
  85                          <td colspan="7"><img src="img/leer.gif" alt="" width="1" height="1" /></td>
  86                      </tr>
  87                      <tr bgcolor="#E7E8EB">
  88                        <td width="84" align="right" bgcolor="#FFFFFF" class="chatlist" style="width:84px;">&nbsp;<br /><?php echo $BL['be_article_abegin'] ?>:<img src="img/leer.gif" alt="" width="2" height="1" /></td>
  89                          <td class="chatlist">&nbsp;<br />
  90                            <input name="set_begin" type="checkbox" id="set_begin" value="1"<?php is_checked(1, $set_begin) ?> onclick="if(!this.checked) {document.article.article_begin.value='';}else{document.article.article_begin.value='<?php echo $article["article_begin"] ?>';}" /></td>
  91                          <td class="chatlist" nowrap="nowrap">YYYY-MM-DD HH:MM:SS<br />
  92                            <input name="article_begin" type="text" id="article_begin" style="width:140px" class="f11" value="<?php echo $article["article_begin"] ?>" /></td>
  93                        <td class="chatlist" valign="bottom"><script language="JavaScript" type="text/javascript">
  94  <!--
  95  function aBegin(date, month, year) {
  96      document.article.article_begin.value = year + '-' + subrstr('00' + month, 2) + '-' + subrstr('00' + date, 2) + ' 00:00:00';
  97      document.article.set_begin.checked = true;
  98  }
  99  calBegin = new dynCalendar('calBegin', 'aBegin', 'img/dynCal/');
 100  calBegin.setMonthCombo(false);
 101  calBegin.setYearCombo(false);
 102  //-->
 103  </script><img src="img/leer.gif" alt="" width="3" height="1" /></td>
 104                          <td align="right" bgcolor="#FFFFFF" class="chatlist">&nbsp;<br />&nbsp;&nbsp;<?php echo $BL['be_article_aend'] ?>:</td>
 105                          <td class="chatlist">&nbsp;<br />
 106                            <input name="set_end" type="checkbox" id="set_end" value="1"<?php is_checked(1, $set_end) ?> onclick="if(!this.checked) {document.article.article_end.value='';}else{document.article.article_end.value='<?php echo $article["article_end"] ?>';}" /></td>
 107                          <td class="chatlist" nowrap="nowrap">YYYY-MM-DD HH:MM:SS<br />
 108                            <input name="article_end" type="text" id="article_end" style="width:140px" class="f11" value="<?php echo $article["article_end"] ?>" /></td>
 109                        <td class="chatlist" valign="bottom"><script language="JavaScript" type="text/javascript">
 110  <!--
 111  function aEnd(date, month, year) {
 112      document.article.article_end.value = year + '-' + subrstr('00' + month, 2) + '-' + subrstr('00' + date, 2) + ' 23:59:59';
 113      document.article.set_end.checked = true;
 114  }
 115  calEnd = new dynCalendar('calEnd', 'aEnd', 'img/dynCal/');
 116  calEnd.setMonthCombo(false);
 117  calEnd.setYearCombo(false);
 118  //-->
 119  </script><img src="img/leer.gif" alt="" width="3" height="1" /></td>
 120                      </tr>
 121                  </table></td>
 122              </tr>
 123              
 124              
 125              <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="7" /></td>
 126              </tr>
 127              
 128              <tr>
 129                  <td align="right" class="chatlist"><?php echo $BL['be_cnt_sortvalue'] ?>:&nbsp;</td>
 130                  <td><table border="0" cellpadding="0" cellspacing="0" summary="">
 131                   <tr>
 132                      <td><input name="article_sort" type="text" id="article_sort" value="<?php echo empty($article["article_sort"]) ? 0 : intval($article["article_sort"]) ?>" class="v11 width75" maxlength="10" onkeyup="if(!parseInt(this.value))this.value='0';" /></td>
 133                      <td align="right" class="chatlist">&nbsp;&nbsp;&nbsp;<?php echo $BL['be_priorize'] ?>:&nbsp;</td>
 134                      <td><select name="article_priorize" id="article_priorize" class="v11">
 135                      
 136  <?php
 137      
 138      for($x=30; $x>=-30; $x--) {                
 139      
 140          echo '    <option value="'.$x.'"';
 141          is_selected($x, $article["article_priorize"]);
 142          echo '>'. ( $x==0 ? $BL['be_cnt_default'] : $x ) .'</option>'.LF;
 143      
 144      }
 145                      
 146  ?>                    
 147                      </select></td>
 148                   </tr>
 149                </table></td>
 150              </tr>
 151              
 152      <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="3" /></td></tr>
 153      
 154      <tr>
 155          <td align="right" class="chatlist"><?php echo $BL['be_alias_articleID'] ?>:&nbsp;</td>
 156          <td><table border="0" cellpadding="0" cellspacing="0" summary="">
 157           <tr>
 158              <td><input name="article_aliasid" type="text" class="f11b width75" id="article_aliasid" value="<?php echo $article["article_aliasid"] ? $article["article_aliasid"] : ''; ?>" size="11" maxlength="11" /></td>
 159              <td>&nbsp;&nbsp;</td>
 160              <td><input name="article_headerdata" id="article_headerdata" type="checkbox" value="1" <?php is_checked($article["article_headerdata"],1) ?> /></td>
 161              <td class="v10"><label for="article_headerdata">&nbsp;<?php echo $BL['be_alias_useAll'] ?></label></td>
 162           </tr>
 163        </table></td>
 164      </tr>
 165      
 166      <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="3" /></td></tr>
 167      
 168      <tr>
 169        <td align="right" class="chatlist"><?php echo $BL['be_article_aredirect'] ?>:&nbsp;</td>
 170        <td><input name="article_redirect" type="text" id="article_redirect" class="f11" style="width: 440px" value="<?php echo html_specialchars($article["article_redirect"]) ?>" size="40" /></td>
 171      </tr>
 172  
 173      <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="3" /></td></tr>
 174      <tr>
 175          <td align="right" class="chatlist"><a href="#" onclick="return set_article_alias();"><?php echo $BL['be_article_urlalias'] ?></a>:&nbsp;</td>
 176          <td><input name="article_alias" type="text" class="f11b" id="article_alias" style="width: 440px" value="<?php echo html_specialchars($article["article_alias"]) ?>" size="40" maxlength="200" onfocus="set_article_alias(true);" onchange="this.value=create_alias(this.value);" /></td>
 177      </tr>        
 178              <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="3" /></td></tr>
 179              <tr>
 180                <td align="right" class="chatlist"><?php echo $BL['be_admin_page_pagetitle'] ?>:&nbsp;</td>
 181                <td><input name="article_pagetitle" type="text" id="article_pagetitle" class="f11" style="width: 440px" value="<?php echo html_specialchars($article['article_pagetitle']) ?>" size="40" maxlength="125" /></td>
 182              </tr>
 183  
 184      <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="3" /></td></tr>
 185      
 186      <tr>
 187        <td align="right" class="chatlist"><?php echo $BL['article_menu_title'] ?>:&nbsp;</td>
 188        <td><input name="article_menutitle" type="text" id="article_menutitle" class="f11 width440" value="<?php echo html_specialchars($article["article_menutitle"]) ?>" size="40" /></td>
 189      </tr>            
 190          
 191              <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr>
 192              <tr valign="top">
 193                  <td align="right" class="chatlist"><img src="img/leer.gif" alt="" width="1" height="3" /><br />
 194                <?php echo $BL['be_article_akeywords'] ?>:&nbsp;</td>
 195                  <td><textarea name="article_keyword" rows="4" class="f10" id="article_keyword" style="width: 440px" onkeyup="if(this.value.length &gt; 250) {this.value=this.value.substr(0,250);}"><?php echo html_specialchars($article["article_keyword"]) ?></textarea></td>
 196              </tr>
 197              <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr>        
 198              <tr>
 199                  <td align="right" class="chatlist" valign="top"><?php echo $BL['be_admin_struct_template'] ?>:&nbsp;</td>
 200                  <td valign="top"><table width="440" border="0" cellpadding="0" cellspacing="0" summary="">
 201                  <tr>
 202                      <td width="215" class="chatlist"><?php echo $BL['be_article_forlist'] ?>:&nbsp;</td>
 203                      <td width="10"><img src="img/leer.gif" alt="" width="10" height="1" /></td>
 204                      <td width="215" class="chatlist"><?php echo $BL['be_article_forfull'] ?>:&nbsp;</td></tr>
 205                  <tr><td colspan="3"><img src="img/leer.gif" alt="" width="1" height="2" /></td></tr>
 206                  <tr>
 207                    <td><select name="article_tmpllist" id="article_tmpllist" style="width: 215px" class="f11">
 208  <?php
 209  // templates for article listing
 210  $tmpllist = get_tmpl_files(PHPWCMS_TEMPLATE.'inc_cntpart/articlesummary/list');
 211  if($article['image']['tmpllist'] == 'default') {
 212      $vals= ' selected="selected"';
 213  } else {
 214      $vals = '';
 215  }
 216  echo '<option value="default"'.$vals.'>'.$BL['be_cnt_default']."</option>\n";
 217  if(count($tmpllist)) {
 218      foreach($tmpllist as $val) {
 219          $vals = '';
 220          if($val == $article['image']['tmpllist']) $vals= ' selected="selected"';
 221          $val = htmlspecialchars($val);
 222          echo '<option value="'.$val.'"'.$vals.'>'.$val."</option>\n";
 223      }
 224  }
 225                    
 226  ?>                  
 227                    </select></td>
 228                    <td>&nbsp;</td>
 229                    <td><select name="article_tmplfull" id="article_tmplfull" style="width: 215px" class="f11">
 230  <?php
 231  // templates for full article
 232  $tmpllist = get_tmpl_files(PHPWCMS_TEMPLATE.'inc_cntpart/articlesummary/article');
 233  if($article['image']['tmplfull'] == 'default') $vals= ' selected="selected"';
 234  echo '<option value="default"'.$vals.'>'.$BL['be_cnt_default']."</option>\n";
 235  if(count($tmpllist)) {
 236      foreach($tmpllist as $val) {
 237          $vals = '';
 238          if($val == $article['image']['tmplfull']) $vals= ' selected="selected"';
 239          $val = htmlspecialchars($val);
 240          echo '<option value="'.$val.'"'.$vals.'>'.$val."</option>\n";
 241      }
 242  }
 243                    
 244  ?>
 245                    </select></td>
 246                    </tr>
 247                    
 248      <tr>
 249      <td colspan="3"><img src="img/leer.gif" alt="" width="1" height="2" /></td>
 250      </tr>
 251      <tr>
 252          <td valign="top"><table border="0" cellpadding="0" cellspacing="0" summary="">
 253              <tr>
 254                  <td><input name="article_listmaxwords" type="text" id="article_listmaxwords" class="f11" style="width: 25px;" value="<?php echo empty($article['image']['list_maxwords']) ? '' : intval($article['image']['list_maxwords']) ?>" size="10" maxlength="6" /></td>
 255                  <td class="v10">&nbsp;<?php echo $BL['be_cnt_results_wordlimit'] ?></td>
 256              </tr>
 257          </table></td>
 258          <td>&nbsp;</td>
 259          <td valign="top"><table border="0" cellpadding="0" cellspacing="0" summary="">
 260            <tr>
 261              <td><input name="article_hidesummary" type="checkbox" id="article_hidesummary" value="1"<?php is_checked(1, $article["article_hidesummary"]); ?> /></td>
 262              <td class="v10"><label for="article_hidesummary">&nbsp;<?php echo $BL['be_article_nosummary'] ?></label></td>
 263            </tr>
 264          </table></td>
 265      </tr>
 266      <tr><td colspan="3"><img src="img/leer.gif" alt="" width="1" height="2" /></td>
 267      </tr>
 268      <tr>
 269        <td><table border="0" cellpadding="0" cellspacing="0" summary="">
 270              <tr>
 271                  <td><input name="article_morelink" type="checkbox" id="article_morelink" value="1"<?php is_checked(1, $article['article_morelink']); ?> /></td>
 272                  <td class="v10"><label for="article_morelink">&nbsp;<?php echo $BL['be_article_morelink'] ?></label></td>
 273              </tr>
 274              </table></td>
 275        <td>&nbsp;</td>
 276        <td><table border="0" cellpadding="0" cellspacing="0" summary="">
 277            <tr>
 278              <td><input name="article_paginate" type="checkbox" id="article_paginate" value="1"<?php is_checked(1, $article["article_paginate"]); ?> /></td>
 279              <td class="v10"><label for="article_paginate">&nbsp;<?php echo $BL['be_cnt_pagination'] ?></label></td>
 280            </tr>
 281          </table></td>
 282      </tr>
 283      
 284                  </table></td>
 285              </tr>
 286              
 287              
 288              <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="10" /></td>
 289              </tr>
 290  
 291              <tr>
 292                
 293                <td colspan="2"><?php
 294  
 295  $wysiwyg_editor = array(
 296      'value'        => $article["article_summary"],
 297      'field'        => 'article_summary',
 298      'height'    => '450px',
 299      'width'        => '536px',
 300      'rows'        => '15',
 301      'editor'    => $_SESSION["WYSIWYG_EDITOR"],
 302      'lang'        => 'en'
 303  );
 304  include (PHPWCMS_ROOT.'/include/inc_lib/wysiwyg.editor.inc.php');
 305  
 306  ?></td>
 307      </tr>
 308  <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="10" /></td>
 309  </tr>
 310  <tr><td colspan="2"><img src="img/lines/l538_70.gif" alt="" /></td>
 311  </tr>
 312  <tr bgcolor="#F3F6F9"><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="8" /></td>
 313  </tr>
 314  <tr bgcolor="#F3F6F9">
 315      <td align="right" class="chatlist"><?php echo $BL['be_cnt_image'] ?>:&nbsp;</td>
 316      <td class="chatlist"><?php echo $BL['be_article_forfull'] ?></td>
 317  </tr>
 318  <tr bgcolor="#F3F6F9"><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr>
 319  <tr bgcolor="#F3F6F9">
 320      <td align="right" class="chatlist">&nbsp;</td>
 321      <td valign="top"><table border="0" cellpadding="0" cellspacing="0" summary="">
 322          <tr>
 323              <td><input name="cimage_name" type="text" id="cimage_name" class="f11b" style="width: 300px; color: #727889;" value="<?php echo html_specialchars($article['image']['name']) ?>" size="40" maxlength="250" onfocus="this.blur()" /></td>
 324                                                                                                                                                            <!-- browser_image.php //-->
 325              <td><img src="img/leer.gif" alt="" width="3" height="1" /><a href="#" title="<?php echo $BL['be_cnt_openimagebrowser'] ?>" onclick="tmt_winOpen('filebrowser.php?opt=0&amp;target=summary','imageBrowser','width=380,height=300,left=8,top=8,scrollbars=yes,resizable=yes',1);return false;"><img src="img/button/open_image_button.gif" alt="" width="20" height="15" border="0" /></a></td>
 326              <td><img src="img/leer.gif" alt="" width="3" height="1" /><a href="#" title="<?php echo $BL['be_cnt_delimage'] ?>" onclick="document.article.cimage_name.value='';document.article.cimage_id.value='0';this.blur();return false;"><img src="img/button/del_image_button.gif" alt="" width="15" height="15" border="0" /></a>
 327                <input name="cimage_id" type="hidden" value="<?php echo $article['image']['id'] ?>" /></td>
 328          </tr>
 329      </table></td>
 330  </tr>
 331  <tr bgcolor="#F3F6F9"><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr>
 332      <tr bgcolor="#F3F6F9">
 333                <td align="right" class="chatlist"><?php echo $BL['be_cnt_maxw'] ?>:&nbsp;</td>
 334                <td valign="top"><table border="0" cellpadding="0" cellspacing="0" summary="">
 335                  <tr>
 336                    <td><input name="cimage_width" type="text" class="f11b" id="cimage_width" style="width: 40px;" size="4" maxlength="4" onkeyup="if(!parseInt(this.value)) this.value='';" value="<?php echo empty($article['image']['width']) ? $template_default['article']['image_default_width'] : $article['image']['width']; ?>" /></td>
 337                    <td class="chatlist">&nbsp;&nbsp;<?php echo $BL['be_cnt_maxh'] ?>:&nbsp; </td>
 338                    <td><input name="cimage_height" type="text" class="f11b" id="cimage_height" style="width: 40px;" size="4" maxlength="4" onkeyup="if(!parseInt(this.value)) this.value='';" value="<?php echo empty($article['image']['height']) ? $template_default['article']['image_default_height'] : $article['image']['height']; ?>" /></td>
 339                    <td class="chatlist">&nbsp;px&nbsp;&nbsp;&nbsp;</td>
 340                    
 341                    <td>&nbsp;</td>
 342                    <td><input name="cimage_zoom" type="checkbox" id="cimage_zoom" value="1" <?php is_checked(1, $article['image']['zoom']); ?> /></td>
 343                    <td class="v10"><label for="cimage_zoom">&nbsp;<?php echo $BL['be_cnt_enlarge'] ?></label>&nbsp;</td>
 344                    
 345                    <td>&nbsp;</td>
 346                    <td><input name="cimage_lightbox" type="checkbox" id="cimage_lightbox" value="1" <?php is_checked(1, empty($article['image']['lightbox']) ? 0 : 1); ?> onchange="if(this.checked){getObjectById('cimage_zoom').checked=true;}" /></td>
 347                    <td class="v10">&nbsp;<label for="cimage_lightbox"><?php echo $BL['be_cnt_lightbox'] ?></label>&nbsp;</td>
 348                    
 349                  </tr>
 350                </table></td>
 351      </tr>
 352              <tr bgcolor="#F3F6F9"><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="6" /></td>
 353              </tr>
 354              <tr bgcolor="#F3F6F9">
 355                <td align="right" valign="top" class="chatlist"><img src="img/leer.gif" alt="" width="1" height="13" /><?php echo $BL['be_cnt_caption'] ?>:&nbsp;</td>
 356                <td valign="top"><table border="0" cellpadding="0" cellspacing="0" summary="">
 357                    <tr>
 358                      <td valign="top"><textarea name="cimage_caption" cols="30" rows="3" class="f11" id="cimage_caption" style="width: 300px;"><?php echo html_specialchars($article['image']['caption']) ?></textarea></td>
 359                      <td valign="top"><img src="img/leer.gif" alt="" width="15" height="1" /></td>
 360                      <td valign="top"><?php
 361                      
 362                      $_SESSION['image_browser_article'] = 1;
 363                      
 364                  $thumb_image = false;
 365                  if(!empty($article["image"]["hash"])) {
 366                      $thumb_image = get_cached_image(
 367                                       array(    "target_ext"    =>    $article['image']['ext'],
 368                                              "image_name"    =>    $article['image']['hash'] . '.' . $article['image']['ext'],
 369                                              "thumb_name"    =>    md5($article['image']['hash'].$phpwcms["img_list_width"].$phpwcms["img_list_height"].$phpwcms["sharpen_level"])
 370                                        )
 371                                  );
 372                  }
 373                  if($thumb_image != false) {
 374                      echo '<img src="'.PHPWCMS_IMAGES . $thumb_image[0] .'" border="0" '.$thumb_image[3].' alt="" />';
 375                  } else {
 376                      echo '&nbsp;';
 377                  }
 378                      
 379                      ?></td>
 380                    </tr>
 381                </table></td>
 382              </tr>
 383              
 384              <tr bgcolor="#F3F6F9"><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr>
 385              <tr><td colspan="2"><img src="img/lines/l538_70.gif" alt="" /></td></tr>
 386              <tr bgcolor="#F3F6F9"><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="8" /></td></tr>
 387  <tr bgcolor="#F3F6F9">
 388      <td align="right" class="chatlist"><?php echo $BL['be_cnt_image'] ?>:&nbsp;</td>
 389      <td class="chatlist"><?php echo $BL['be_article_forlist'] ?></td>
 390  </tr>
 391  <tr bgcolor="#F3F6F9"><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td>
 392  </tr>        
 393  <tr bgcolor="#F3F6F9">
 394      <td align="right" class="chatlist">&nbsp;</td>
 395      <td valign="top"><table border="0" cellpadding="0" cellspacing="0" summary="">
 396          <tr>
 397  <?php
 398  
 399  // set default list values
 400  if(!isset($article['image']['list_usesummary'])) {
 401      $article['image']['list_usesummary']    = 0;
 402      $article['image']['list_name']            = '';
 403      $article['image']['list_id']            = 0;
 404      $article['image']['list_width']            = '';
 405      $article['image']['list_height']        = '';
 406      $article['image']['list_zoom']            = 0;
 407      $article['image']['list_caption']        = '';
 408  }
 409  
 410  ?>
 411          <td><input name="cimage_usesummary" type="checkbox" id="cimage_usesummary" value="1" <?php is_checked(1, $article['image']['list_usesummary']); ?> /></td>
 412          <td class="v10"><label for="cimage_usesummary">&nbsp;<?php echo $BL['be_cnt_same_as_summary'] ?></label>&nbsp;</td>
 413          </tr>
 414      </table></td>
 415  </tr>
 416  <tr bgcolor="#F3F6F9"><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td>
 417  </tr>    
 418  <tr bgcolor="#F3F6F9">
 419      <td align="right" class="chatlist">&nbsp;</td>
 420      <td valign="top"><table border="0" cellpadding="0" cellspacing="0" summary="">
 421          <tr>
 422              <td><input name="cimage_list_name" type="text" id="cimage_list_name" class="f11b" style="width: 300px; color: #727889;" value="<?php echo html_specialchars($article['image']['list_name']) ?>" size="40" maxlength="250" onfocus="this.blur()" /></td>
 423              <td><img src="img/leer.gif" alt="" width="3" height="1" /><a href="#" title="<?php echo $BL['be_cnt_openimagebrowser'] ?>" onclick="tmt_winOpen('filebrowser.php?opt=0&amp;target=list','imageBrowser','width=380,height=300,left=8,top=8,scrollbars=yes,resizable=yes',1);return false;"><img src="img/button/open_image_button.gif" alt="" width="20" height="15" border="0" /></a></td>
 424              <td><img src="img/leer.gif" alt="" width="3" height="1" /><a href="#" title="<?php echo $BL['be_cnt_delimage'] ?>" onclick="document.article.cimage_list_name.value='';document.article.cimage_list_id.value='0';this.blur();return false;"><img src="img/button/del_image_button.gif" alt="" width="15" height="15" border="0" /></a>
 425                <input name="cimage_list_id" type="hidden" value="<?php echo $article['image']['list_id'] ?>" /></td>
 426          </tr>
 427      </table></td>
 428  </tr>
 429  
 430  <tr bgcolor="#F3F6F9"><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td>
 431  </tr>        
 432  
 433  <tr bgcolor="#F3F6F9">
 434      <td align="right" class="chatlist"><?php echo $BL['be_cnt_maxw'] ?>:&nbsp;</td>
 435      <td valign="top"><table border="0" cellpadding="0" cellspacing="0" summary="">
 436      <tr>
 437      <td><input name="cimage_list_width" type="text" class="f11b" id="cimage_list_width" style="width: 40px;" size="4" maxlength="4" onkeyup="if(!parseInt(this.value)) this.value='';" value="<?php echo empty($article['image']['list_width']) ? $template_default['article']['imagelist_default_width'] : $article['image']['list_width']; ?>" /></td>
 438      <td class="chatlist">&nbsp;&nbsp;<?php echo $BL['be_cnt_maxh'] ?>:&nbsp; </td>
 439      <td><input name="cimage_list_height" type="text" class="f11b" id="cimage_list_height" style="width: 40px;" size="4" maxlength="4" onkeyup="if(!parseInt(this.value)) this.value='';" value="<?php echo empty($article['image']['list_height']) ? $template_default['article']['imagelist_default_height'] : $article['image']['list_height']; ?>" /></td>
 440      <td class="chatlist">&nbsp;px&nbsp;&nbsp;&nbsp;</td>
 441      <td>&nbsp;</td>
 442      <td><input name="cimage_list_zoom" type="checkbox" id="cimage_list_zoom" value="1" <?php is_checked(1, $article['image']['list_zoom']); ?> /></td>
 443      <td class="v10"><label for="cimage_list_zoom">&nbsp;<?php echo $BL['be_cnt_enlarge'] ?></label>&nbsp;</td>
 444      
 445      <td>&nbsp;</td>
 446      <td><input name="cimage_list_lightbox" type="checkbox" id="cimage_list_lightbox" value="1" <?php is_checked(1, empty($article['image']['list_lightbox']) ? 0 : 1); ?> onchange="if(this.checked){getObjectById('cimage_list_zoom').checked=true;}" /></td>
 447      <td class="v10"><label for="cimage_list_lightbox">&nbsp;<?php echo $BL['be_cnt_lightbox'] ?></label>&nbsp;</td>
 448      
 449      </tr>
 450      </table></td>
 451  </tr>
 452  <tr bgcolor="#F3F6F9"><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="6" /></td>
 453  </tr>
 454  <tr bgcolor="#F3F6F9">
 455      <td align="right" valign="top" class="chatlist"><img src="img/leer.gif" alt="" width="1" height="13" /><?php echo $BL['be_cnt_caption'] ?>:&nbsp;</td>
 456      <td valign="top"><table border="0" cellpadding="0" cellspacing="0" summary="">
 457      <tr>
 458      <td valign="top"><textarea name="cimage_list_caption" cols="30" rows="3" class="f11" id="cimage_list_caption" style="width: 300px;"><?php echo html_specialchars($article['image']['list_caption']) ?></textarea></td>
 459      <td valign="top"><img src="img/leer.gif" alt="" width="15" height="1" /></td>
 460      <td valign="top"><?php
 461      
 462      $_SESSION['image_browser_article'] = 1;
 463      
 464      $thumb_image = false;
 465      if(!empty($article["image"]["list_hash"])) {
 466      $thumb_image = get_cached_image(
 467                      array(    "target_ext"    =>    $article['image']['list_ext'],
 468                              "image_name"    =>    $article['image']['list_hash'] . '.' . $article['image']['list_ext'],
 469                              "thumb_name"    =>    md5($article['image']['list_hash'].$phpwcms["img_list_width"].$phpwcms["img_list_height"].$phpwcms["sharpen_level"])
 470                             )
 471                      );
 472      }
 473      if($thumb_image != false) {
 474          echo '<img src="'.PHPWCMS_IMAGES . $thumb_image[0] .'" border="0" '.$thumb_image[3].' alt="" />';
 475      } else {
 476          echo '&nbsp;';
 477      }
 478      
 479      ?></td>
 480      </tr>
 481      </table></td>
 482  </tr>
 483      
 484  
 485              <tr bgcolor="#F3F6F9"><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td>
 486              </tr>
 487              <tr><td colspan="2"><img src="img/lines/l538_70.gif" alt="" /></td>
 488              </tr>
 489              <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="10" /></td>
 490              </tr>
 491              <?php 
 492              if($_SESSION["wcs_user_admin"]) {
 493              
 494              ?>
 495              <tr>
 496                  <td align="right" class="chatlist"><?php echo $BL['be_article_articleowner'] ?>:&nbsp;</td>
 497                  <td><table border="0" cellpadding="0" cellspacing="0" summary="">
 498                  <tr>
 499                      <td><select name="article_uid" id="article_uid" style="width: 300px" class="f11b">
 500                  <?php
 501                  $u_sql = "SELECT usr_id, usr_name, usr_login, usr_admin FROM ".DB_PREPEND."phpwcms_user WHERE usr_aktiv=1 ORDER BY usr_admin DESC, usr_name";
 502                  if($u_result = mysql_query($u_sql, $db)) {
 503                      while($u_row = mysql_fetch_row($u_result)) {
 504                          echo '<option value="'.$u_row[0].'"';
 505                          if($u_row[0] == $article["article_uid"]) echo ' selected';
 506                          if(intval($u_row[3])) echo ' style="background-color: #FFC299;"';
 507                          echo '>'.html_specialchars(($u_row[1]) ? $u_row[1] : $u_row[2]).'</option>'."\n";
 508                      }
 509                      mysql_free_result($u_result);
 510                  }
 511                  
 512                  ?>
 513                      </select></td>
 514                  <td>&nbsp;&nbsp;&nbsp;</td>
 515                  <td bgcolor="#FFC299"><img src="img/leer.gif" alt="" width="15" height="10" /></td>
 516                  <td class="chatlist">&nbsp;<?php echo $BL['be_article_adminuser'] ?></td>
 517                  </tr></table></td>
 518              </tr>
 519              <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="3" /></td>
 520              </tr>
 521              <?php
 522              }
 523              ?>            
 524              <tr>
 525                <td align="right" class="chatlist"><?php echo $BL['be_article_username'] ?>:&nbsp;</td>
 526                <td><input name="article_username" type="text" id="article_username" class="f11" style="width: 300px" value="<?php echo html_specialchars($article["article_username"]) ?>" size="40" maxlength="100" /></td>
 527              </tr>
 528              <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="15" /></td>
 529              </tr>
 530              
 531      
 532              <tr>
 533                  <td align="right" class="chatlist inactive"><?php echo $BL['be_cache'] ?>:&nbsp;</td>
 534                  <td><table border="0" cellpadding="0" cellspacing="0" bgcolor="#E7E8EB" summary="" class="inactive">
 535                      <tr>
 536                          <td><input name="article_cacheoff" type="checkbox" id="article_cacheoff" value="1" <?php if($article["article_timeout"] === '0') echo "checked"; ?> /></td>
 537                          <td><label for="article_cacheoff">&nbsp;<?php echo $BL['be_off'] ?></label>&nbsp;&nbsp;</td>
 538                          <td>&nbsp;</td>
 539                          <td><select name="article_timeout" class="f11" style="margin:1px;" onchange="document.article.article_cacheoff.checked=false;">
 540  <?php
 541  echo '<option value=" ">'.$BL['be_admin_tmpl_default']."</option>\n";
 542  echo '<option value="60"'.is_selected($article["article_timeout"], '60', 0, 0).'>&nbsp;&nbsp;1 '.$BL['be_date_minute']."</option>\n";
 543  echo '<option value="300"'.is_selected($article["article_timeout"], '300', 0, 0).'>&nbsp;&nbsp;5 '.$BL['be_date_minutes']."</option>\n";
 544  echo '<option value="900"'.is_selected($article["article_timeout"], '900', 0, 0).'>15 '.$BL['be_date_minutes']."</option>\n";
 545  echo '<option value="1800"'.is_selected($article["article_timeout"], '1800', 0, 0).'>30 '.$BL['be_date_minutes']."</option>\n";
 546  echo '<option value="3600"'.is_selected($article["article_timeout"], '3600', 0, 0).'>&nbsp;&nbsp;1 '.$BL['be_date_hour']."</option>\n";
 547  echo '<option value="14400"'.is_selected($article["article_timeout"], '14400', 0, 0).'>&nbsp;&nbsp;4 '.$BL['be_date_hours']."</option>\n";
 548  echo '<option value="43200"'.is_selected($article["article_timeout"], '43200', 0, 0).'>12 '.$BL['be_date_hours']."</option>\n";
 549  echo '<option value="86400"'.is_selected($article["article_timeout"], '86400', 0, 0).'>&nbsp;&nbsp;1 '.$BL['be_date_day']."</option>\n";
 550  echo '<option value="172800"'.is_selected($article["article_timeout"], '172800', 0, 0).'>&nbsp;&nbsp;2 '.$BL['be_date_days']."</option>\n";
 551  echo '<option value="604800"'.is_selected($article["article_timeout"], '604800', 0, 0).'>&nbsp;&nbsp;1 '.$BL['be_date_week']."</option>\n";
 552  echo '<option value="1209600"'.is_selected($article["article_timeout"], '1209600', 0, 0).'>&nbsp;&nbsp;2 '.$BL['be_date_weeks']."</option>\n";
 553  echo '<option value="2592000"'.is_selected($article["article_timeout"], '2592000', 0, 0).'>&nbsp;&nbsp;1 '.$BL['be_date_month']."</option>\n";
 554  ?>
 555                          </select></td>
 556                    <td>&nbsp;<?php echo $BL['be_cache_timeout'] ?>&nbsp;&nbsp;</td>
 557                                    
 558                      </tr>
 559                  </table></td>
 560              </tr>
 561  
 562              <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="10" /></td></tr>
 563              
 564              <tr>
 565                  <td align="right" class="chatlist tdtop4"><?php echo $BL['be_ftptakeover_status'] ?>:&nbsp;</td>
 566                  <td><table border="0" cellpadding="0" cellspacing="0" bgcolor="#E7E8EB" summary="">                
 567          
 568                      <tr>
 569                          <td><input name="article_nositemap" type="checkbox" id="article_nositemap" value="1"<?php is_checked(1, $article["article_nositemap"]); ?> /></td>
 570                          <td><label for="article_nositemap">&nbsp;<?php echo  $BL['be_ctype_sitemap'] ?></label>&nbsp;&nbsp;</td>
 571                          
 572                          <td><input name="article_nosearch" type="checkbox" id="article_nosearch" value="1" <?php is_checked(1, $article['article_nosearch']); ?> /></td>
 573                          <td style="padding:1px 5px 1px 0;"><label for="article_nosearch">&nbsp;<?php echo $BL['be_no_search'] ?></label></td>
 574                          
 575                          <td><input name="article_norss" type="checkbox" id="article_norss" value="1" <?php is_checked(1, $article['article_norss']); ?> /></td>
 576                          <td style="padding:1px 5px 1px 0; width:50px;"><label for="article_norss">&nbsp;<?php echo $BL['be_no_rss'] ?></label></td>
 577                          
 578                          <td colspan="2" style="background-color:#FFFFFF">&nbsp;</td>
 579                      </tr>
 580                      
 581                      <tr><td colspan="8" style="background-color:#FFFFFF"><img src="img/leer.gif" alt="" width="1" height="3" /></td></tr>
 582                      
 583                      <tr>
 584                          <td style="padding:1px 0 1px 0;"><input name="article_aktiv" type="checkbox" id="article_aktiv" value="1"<?php is_checked(1, $article["article_aktiv"]); ?> /></td>
 585                          <td><label for="article_aktiv">&nbsp;<?php echo $BL['be_admin_struct_visible'] ?></label>&nbsp;&nbsp;</td>
 586                          
 587                          <td><input name="article_public" type="checkbox" id="article_public" value="1"<?php is_checked(1, $article["article_public"]); ?> /></td>
 588                          <td><label for="article_public">&nbsp;<?php echo $BL['be_ftptakeover_public'] ?></label>&nbsp;&nbsp;</td>
 589                          
 590                          <td><input name="article_archive" type="checkbox" id="article_archive" value="1" <?php is_checked(1, $article['article_archive_status']); ?> /></td>
 591                          <td style="padding:1px 5px 1px 0;" colspan="3"><label for="article_archive">&nbsp;<?php echo $BL['be_show_archived'] ?></label></td>
 592                      </tr>
 593                      
 594                  </table></td>
 595              </tr>
 596  
 597  
 598  <?php if(isset($article["article_date"])) { ?>                
 599              <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="8" /></td></tr>
 600      
 601              <tr>
 602              <td align="right" class="chatlist"><?php echo $BL['be_article_eslastedit'] ?>:&nbsp;</td>
 603              <td><?php
 604              echo (empty($_POST["article_update"]) || !intval($_POST["article_update"])) ? $article["article_date"] : $BL['be_article_esnoupdate'];
 605              ?></td>
 606              </tr>
 607  <?php } ?>
 608              
 609              <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="15" /></td>
 610              </tr>
 611              <tr>
 612                  <td><input name="article_update" type="hidden" id="article_update" value="1" /></td>
 613                  <td><table border="0" cellpadding="0" cellspacing="0" summary="">
 614                      <tr>
 615                      <td><input name="updatesubmit" type="submit" class="button10" value="<?php echo $article["article_id"] ? $BL['be_article_cnt_button1'] : $BL['be_article_cnt_button2'] ?>" /></td>
 616                      <td>&nbsp;</td>
 617                      <td><input name="Submit" type="submit" class="button10" value="<?php echo $BL['be_article_cnt_button3'] ?>" /></td>
 618                      <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
 619                      <td><input name="donotsubmit" type="submit" class="button10" value="<?php echo $BL['be_newsletter_button_cancel'] ?>" onclick="return cancelEdit();" /></td>
 620                      </tr></table></td>
 621              </tr>
 622              <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="10" /></td></tr>
 623              <tr><td colspan="2"><img src="img/lines/l538_70.gif" alt="" width="538" height="1" /></td></tr>
 624  </table>
 625  </form>
 626  <script type="text/javascript">
 627  <!--
 628  
 629  window.addEvent('domready', function(){
 630                                       
 631      /* Autocompleter for keywords (=tags) */
 632      var searchKeyword = $('article_keyword');
 633      var completer = new Autocompleter.Ajax.Json(searchKeyword, 'include/inc_act/ajax_connector.php', {
 634          multi: true,
 635          maxChoices: 30,
 636          autotrim: true,
 637          minLength: 0,
 638          allowDupes: false,
 639          postData: {action: 'category', method: 'json'},
 640          onRequest: function(el) {
 641              searchKeyword.addClass('ajax-loading');
 642          },
 643          onComplete: function(el) {
 644              searchKeyword.removeClass('ajax-loading');
 645          }
 646      });
 647      
 648  
 649  });
 650  
 651  function cancelEdit() {
 652      document.location.href='phpwcms.php?do=articles<?php echo $article["article_id"] ? '&p=2&s=1&id='.$article["article_id"] : '' ?>';
 653      return false;
 654  }
 655  
 656  //-->
 657  </script>


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