[ Index ] |
PHP Cross Reference of phpwcms V1.5.0 _r431 (28.01.12) |
[Summary view] [Print] [Text view]
1 <?php 2 /************************************************************************************* 3 Copyright notice 4 5 (c) 2002-2012 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&p=2&s=1&aktion=1&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'] ?>: </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(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'] ?>: </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> </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'] ?>: </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;"> <br /><?php echo $BL['be_article_abegin'] ?>:<img src="img/leer.gif" alt="" width="2" height="1" /></td> 89 <td class="chatlist"> <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 type="text/javascript"> 94 function aBegin(date, month, year) { 95 document.article.article_begin.value = year + '-' + subrstr('00' + month, 2) + '-' + subrstr('00' + date, 2) + ' 00:00:00'; 96 document.article.set_begin.checked = true; 97 } 98 calBegin = new dynCalendar('calBegin', 'aBegin', 'img/dynCal/'); 99 calBegin.setMonthCombo(false); 100 calBegin.setYearCombo(false); 101 </script><img src="img/leer.gif" alt="" width="3" height="1" /></td> 102 <td align="right" bgcolor="#FFFFFF" class="chatlist"> <br /> <?php echo $BL['be_article_aend'] ?>:</td> 103 <td class="chatlist"> <br /> 104 <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> 105 <td class="chatlist" nowrap="nowrap">YYYY-MM-DD HH:MM:SS<br /> 106 <input name="article_end" type="text" id="article_end" style="width:140px" class="f11" value="<?php echo $article["article_end"] ?>" /></td> 107 <td class="chatlist" valign="bottom"><script type="text/javascript"> 108 function aEnd(date, month, year) { 109 document.article.article_end.value = year + '-' + subrstr('00' + month, 2) + '-' + subrstr('00' + date, 2) + ' 23:59:59'; 110 document.article.set_end.checked = true; 111 } 112 calEnd = new dynCalendar('calEnd', 'aEnd', 'img/dynCal/'); 113 calEnd.setMonthCombo(false); 114 calEnd.setYearCombo(false); 115 </script><img src="img/leer.gif" alt="" width="3" height="1" /></td> 116 </tr> 117 </table></td> 118 </tr> 119 120 121 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="7" /></td> 122 </tr> 123 124 <tr> 125 <td align="right" class="chatlist"><?php echo $BL['be_cnt_sortvalue'] ?>: </td> 126 <td><table border="0" cellpadding="0" cellspacing="0" summary=""> 127 <tr> 128 <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> 129 <td align="right" class="chatlist"> <?php echo $BL['be_priorize'] ?>: </td> 130 <td><select name="article_priorize" id="article_priorize" class="v11"> 131 132 <?php 133 134 for($x=30; $x>=-30; $x--) { 135 136 echo ' <option value="'.$x.'"'; 137 is_selected($x, $article["article_priorize"]); 138 echo '>'. ( $x==0 ? $BL['be_cnt_default'] : $x ) .'</option>'.LF; 139 140 } 141 142 ?> 143 </select></td> 144 </tr> 145 </table></td> 146 </tr> 147 148 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="3" /></td></tr> 149 150 <tr> 151 <td align="right" class="chatlist"><?php echo $BL['be_alias_articleID'] ?>: </td> 152 <td><table border="0" cellpadding="0" cellspacing="0" summary=""> 153 <tr> 154 <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> 155 <td> </td> 156 <td><input name="article_headerdata" id="article_headerdata" type="checkbox" value="1" <?php is_checked($article["article_headerdata"],1) ?> /></td> 157 <td class="v10"><label for="article_headerdata"> <?php echo $BL['be_alias_useAll'] ?></label></td> 158 </tr> 159 </table></td> 160 </tr> 161 162 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="3" /></td></tr> 163 164 <tr> 165 <td align="right" class="chatlist"><?php echo $BL['be_article_aredirect'] ?>: </td> 166 <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> 167 </tr> 168 169 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="3" /></td></tr> 170 <tr> 171 <td align="right" class="chatlist"><a href="#" onclick="return set_article_alias();"><?php echo $BL['be_article_urlalias'] ?></a>: </td> 172 <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> 173 </tr> 174 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="3" /></td></tr> 175 <tr> 176 <td align="right" class="chatlist"><?php echo $BL['be_admin_page_pagetitle'] ?>: </td> 177 <td><input name="article_pagetitle" type="text" id="article_pagetitle" class="f11 width440" value="<?php echo html_specialchars($article['article_pagetitle']) ?>" size="40" maxlength="125" /></td> 178 </tr> 179 180 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="3" /></td></tr> 181 182 <tr> 183 <td align="right" class="chatlist"><?php echo $BL['article_menu_title'] ?>: </td> 184 <td><input name="article_menutitle" type="text" id="article_menutitle" class="f11 width440" value="<?php echo html_specialchars($article["article_menutitle"]) ?>" size="40" /></td> 185 </tr> 186 187 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr> 188 <tr> 189 <td align="right" class="chatlist tdtop3"><?php echo $BL['be_article_akeywords'] ?>: </td> 190 <td><textarea name="article_keyword" rows="2" class="f10 width440" id="article_keyword"><?php echo html_specialchars($article["article_keyword"]) ?></textarea></td> 191 </tr> 192 <tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr> 193 <tr> 194 <td align="right" class="chatlist tdtop3"><?php echo $BL['be_cnt_description'] ?>: </td> 195 <td><textarea name="article_description" rows="2" class="f10 width440" id="article_description"><?php echo html_specialchars($article["article_description"]) ?></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'] ?>: </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'] ?>: </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'] ?>: </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> </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"> <?php echo $BL['be_cnt_results_wordlimit'] ?></td> 256 </tr> 257 </table></td> 258 <td> </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"> <?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"> <?php echo $BL['be_article_morelink'] ?></label></td> 273 </tr> 274 </table></td> 275 <td> </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"> <?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'] ?>: </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"> </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&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'] ?>: </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"> <?php echo $BL['be_cnt_maxh'] ?>: </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"> px </td> 340 341 <td> </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"> <?php echo $BL['be_cnt_enlarge'] ?></label> </td> 344 345 <td> </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"> <label for="cimage_lightbox"><?php echo $BL['be_cnt_lightbox'] ?></label> </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'] ?>: </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 ' '; 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'] ?>: </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"> </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"> <?php echo $BL['be_cnt_same_as_summary'] ?></label> </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"> </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&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'] ?>: </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"> <?php echo $BL['be_cnt_maxh'] ?>: </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"> px </td> 441 <td> </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"> <?php echo $BL['be_cnt_enlarge'] ?></label> </td> 444 445 <td> </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"> <?php echo $BL['be_cnt_lightbox'] ?></label> </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'] ?>: </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 ' '; 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'] ?>: </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> </td> 515 <td bgcolor="#FFC299"><img src="img/leer.gif" alt="" width="15" height="10" /></td> 516 <td class="chatlist"> <?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'] ?>: </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'] ?>: </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"> <?php echo $BL['be_off'] ?></label> </td> 538 <td> </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).'> 1 '.$BL['be_date_minute']."</option>\n"; 543 echo '<option value="300"'.is_selected($article["article_timeout"], '300', 0, 0).'> 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).'> 1 '.$BL['be_date_hour']."</option>\n"; 547 echo '<option value="14400"'.is_selected($article["article_timeout"], '14400', 0, 0).'> 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).'> 1 '.$BL['be_date_day']."</option>\n"; 550 echo '<option value="172800"'.is_selected($article["article_timeout"], '172800', 0, 0).'> 2 '.$BL['be_date_days']."</option>\n"; 551 echo '<option value="604800"'.is_selected($article["article_timeout"], '604800', 0, 0).'> 1 '.$BL['be_date_week']."</option>\n"; 552 echo '<option value="1209600"'.is_selected($article["article_timeout"], '1209600', 0, 0).'> 2 '.$BL['be_date_weeks']."</option>\n"; 553 echo '<option value="2592000"'.is_selected($article["article_timeout"], '2592000', 0, 0).'> 1 '.$BL['be_date_month']."</option>\n"; 554 ?> 555 </select></td> 556 <td> <?php echo $BL['be_cache_timeout'] ?> </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'] ?>: </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"> <?php echo $BL['be_ctype_sitemap'] ?></label> </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"> <?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"> <?php echo $BL['be_no_rss'] ?></label></td> 577 578 <td colspan="2" style="background-color:#FFFFFF"> </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"> <?php echo $BL['be_admin_struct_visible'] ?></label> </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"> <?php echo $BL['be_ftptakeover_public'] ?></label> </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"> <?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'] ?>: </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> </td> 617 <td><input name="Submit" type="submit" class="button10" value="<?php echo $BL['be_article_cnt_button3'] ?>" /></td> 618 <td> </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 window.addEvent('domready', function(){ 628 629 /* Autocompleter for keywords (=tags) */ 630 var searchKeyword = $('article_keyword'); 631 var completer = new Autocompleter.Ajax.Json(searchKeyword, 'include/inc_act/ajax_connector.php', { 632 multi: true, 633 maxChoices: 30, 634 autotrim: true, 635 minLength: 0, 636 allowDupes: false, 637 postData: {action: 'category', method: 'json'}, 638 onRequest: function(el) { 639 searchKeyword.addClass('ajax-loading'); 640 }, 641 onComplete: function(el) { 642 searchKeyword.removeClass('ajax-loading'); 643 } 644 }); 645 646 647 }); 648 649 function cancelEdit() { 650 document.location.href='phpwcms.php?do=articles<?php echo $article["article_id"] ? '&p=2&s=1&id='.$article["article_id"] : '' ?>'; 651 return false; 652 } 653 654 </script>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Jan 29 16:31:14 2012 | Cross-referenced by PHPXref 0.7.1 |