[ 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 $acat_struct_mode = 'STRUCT'; 31 32 if($_GET['struct'] === 'index') { 33 34 $acat_title = $indexpage['acat_name']; 35 $acat_info = $indexpage['acat_info']; 36 $acat_id = 'index'; 37 $acat_new = 0; 38 $acat_aktiv = $indexpage['acat_aktiv']; 39 $acat_public = $indexpage['acat_public']; 40 $acat_sort = isset($acat_sort) ? $acat_sort : ''; 41 $acat_alias = $indexpage['acat_alias']; 42 $acat_hidden = $indexpage['acat_hidden']; 43 $acat_template = $indexpage['acat_template']; 44 $acat_ssl = $indexpage['acat_ssl']; 45 $acat_regonly = $indexpage['acat_regonly']; 46 $acat_topcount = $indexpage['acat_topcount']; 47 $acat_maxlist = $indexpage['acat_maxlist']; 48 $acat_redirect = $indexpage['acat_redirect']; 49 $acat_timeout = strval($indexpage['acat_timeout']); 50 $acat_nosearch = strval($indexpage['acat_nosearch']); 51 $acat_nositemap = strval($indexpage['acat_nositemap']); 52 $acat_order = get_order_sort($indexpage['acat_order']); 53 $acat_permit = empty($indexpage['acat_permit']) ? array() : explode(',', $indexpage['acat_permit']) ; 54 $acat_cntpart = (isset($indexpage['acat_cntpart']) && $indexpage['acat_cntpart'] != '') ? explode(',', $indexpage['acat_cntpart']) : array(); 55 $acat_pagetitle = empty($indexpage['acat_pagetitle']) ? '' : $indexpage['acat_pagetitle']; 56 $acat_paginate = empty($indexpage['acat_paginate']) ? 0 : 1; 57 $acat_overwrite = empty($indexpage['acat_overwrite']) ? '' : $indexpage['acat_overwrite']; 58 $acat_archive = empty($indexpage['acat_archive']) ? 0 : $indexpage['acat_archive']; 59 $acat_class = empty($indexpage['acat_class']) ? '' : $indexpage['acat_class']; 60 $acat_keywords = empty($indexpage['acat_keywords']) ? '' : $indexpage['acat_keywords']; 61 $acat_cpdefault = empty($indexpage['acat_cpdefault']) ? 0 : intval($indexpage['acat_cpdefault']); 62 63 $acat_struct_mode = 'INDEX'; 64 65 } elseif(!isset($acat_title)) { 66 67 $parentStructData = getParentStructArray($_GET["struct"]); 68 69 $acat_title = ''; 70 $acat_info = ''; 71 $acat_aktiv = 1; 72 $acat_public = 1; 73 $acat_sort = isset($acat_sort) ? $acat_sort : ''; 74 $acat_alias = ''; 75 $acat_hidden = 0; 76 $acat_hiddenactive = 0; 77 $acat_template = $parentStructData['acat_template']; 78 $acat_ssl = 0; 79 $acat_regonly = 0; 80 $acat_redirect = ''; 81 $acat_nositemap = 1; 82 $acat_maxlist = 0; 83 $acat_permit = array(); 84 $acat_cntpart = array(); 85 $acat_pagetitle = ''; 86 $acat_paginate = 0; 87 $acat_overwrite = ''; 88 $acat_archive = 0; 89 $acat_class = ''; 90 $acat_keywords = ''; 91 $acat_cpdefault = 0; 92 93 } 94 95 switch($acat_hidden) { 96 97 case 1: $acat_hidden = 1; 98 $acat_hiddenactive = 0; 99 break; 100 101 case 2: $acat_hidden = 1; 102 $acat_hiddenactive = 1; 103 break; 104 105 default: $acat_hidden = 0; 106 $acat_hiddenactive = 0; 107 108 } 109 110 // this -> document.editsitestructure 111 ?> 112 <form action="include/inc_act/act_structure.php" method="post" name="editsitestructure" id="editsitestructure" onsubmit="selectAllOptions(this.acat_access);selectAllOptions(this.acat_cp);var x = wordcount(this.acat_name.value);if(x<1) {alert('Fill in a category title! \n\n('+x+' words total)');this.acat_name.focus();return false;}"> 113 <table width="538" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" summary=""> 114 115 <tr><td width="538" class="title"><?php echo $BL['be_admin_struct_title'] ?> <span style="font-weight: normal;"><?php echo $BL['be_admin_struct_child'] ?></span>: <strong style="color: #FF3300"><?php 116 //Anzeigen des Kategorienamens (Menüpunkt) 117 $acat_struct = intval($_GET["struct"]); 118 if($acat_struct) { 119 120 $parentStructData = getParentStructArray($acat_struct); 121 echo html_specialchars($parentStructData["acat_name"]); 122 123 } else { 124 echo $BL['be_admin_struct_index']; 125 } 126 ?></strong></td> 127 </tr> 128 <tr><td><img src="img/leer.gif" width="1" height="4" alt="" /></td></tr> 129 <tr><td><img src="img/lines/l538_70.gif" alt="" width="538" height="1" /></td></tr> 130 <tr><td><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr> 131 132 <tr><td class="v09"><?php echo $BL['be_admin_struct_cat'] ?>:</td></tr> 133 <tr><td><input name="acat_name" type="text" id="acat_name" class="f11b" style="width: 450px" onchange="this.value=Trim(this.value);" value="<?php echo html_specialchars($acat_title) ?>" size="50" maxlength="95" /></td></tr> 134 135 <tr><td><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr> 136 137 <tr> 138 <td> 139 <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" summary=""> 140 141 <tr> 142 <td class="v09"><a href="#" onclick="return set_article_alias(false, 'struct');"><?php echo $BL['be_admin_struct_alias'] ?></a>:</td> 143 <td style="width:10px"> </td> 144 <td class="v09"><?php echo $BL['be_cnt_css_class'] ?>:</td> 145 </tr> 146 <tr> 147 <td><input name="acat_alias" type="text" id="acat_alias" class="f11b width250" value="<?php echo html_specialchars($acat_alias) ?>" size="50" maxlength="150" onfocus="set_article_alias(true, 'struct');" onchange="this.value=create_alias(this.value);" /></td> 148 <td> </td> 149 <td><input name="acat_class" type="text" id="acat_class" class="f11 width185" value="<?php echo html_specialchars($acat_class) ?>" size="50" maxlength="150" /></td> 150 </tr> 151 152 </table> 153 </td> 154 </tr> 155 156 157 <tr><td><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr> 158 159 <tr><td class="v09"><?php echo $BL['be_admin_page_pagetitle'] ?>:</td></tr> 160 <tr><td><input name="acat_pagetitle" type="text" id="acat_pagetitle" class="f11b" style="width: 450px" value="<?php echo html_specialchars($acat_pagetitle) ?>" size="50" maxlength="150" /></td></tr> 161 162 <tr><td><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr> 163 164 <tr><td class="v09"><?php echo $BL['be_article_aredirect'] ?>:</td></tr> 165 <tr><td><input name="acat_redirect" type="text" id="acat_redirect" class="f11b" style="width: 450px" value="<?php echo html_specialchars($acat_redirect) ?>" size="50" maxlength="255" /></td></tr> 166 <tr><td><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr> 167 168 <tr><td class="v09"><?php echo $BL['be_article_akeywords'] ?>:</td></tr> 169 <tr><td><textarea name="acat_keywords" cols="50" rows="3" id="acat_keywords" class="f11 width540"><?php echo html_specialchars($acat_keywords) ?></textarea></td></tr> 170 171 <tr><td><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr> 172 173 <tr><td class="v09"><?php echo $BL['be_admin_struct_info'] ?>:</td></tr> 174 <tr><td><textarea name="acat_info" cols="50" rows="4" id="acat_info" class="f11 width540"><?php echo html_specialchars($acat_info) ?></textarea></td></tr> 175 176 177 178 179 <tr><td><img src="img/leer.gif" alt="" width="1" height="10" /></td></tr> 180 <tr><td class="v09"><?php echo $BL['be_admin_struct_template'] ?>:</td></tr> 181 <tr><td><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr> 182 <tr> 183 <td><select name="acat_template" id="acat_template" class="f11b width300"> 184 <?php 185 186 $_temp_cat = ''; 187 188 // list available 189 $sql = "SELECT * FROM ".DB_PREPEND."phpwcms_template WHERE template_trash=0 ORDER BY template_default DESC"; 190 if($result = mysql_query($sql, $db) or die("error while listing templates")) { 191 while($row = mysql_fetch_assoc($result)) { 192 echo "<option value=\"".$row["template_id"]."\""; 193 if($row["template_id"] == $acat_template) { 194 echo " selected"; 195 $_temp_cat = @unserialize($row['template_var']); 196 $_temp_cat = empty($_temp_cat['overwrite']) ? '' : $_temp_cat['overwrite']; 197 } 198 echo ">".html_specialchars($row["template_name"]).( ($row["template_default"])?" (default)":" "); 199 echo "</option>\n"; 200 } 201 mysql_free_result($result); 202 } 203 204 ?> 205 </select></td> 206 </tr> 207 208 209 210 <tr><td><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr> 211 <tr><td class="v09"><?php echo $BL['be_settings'] ?>: <i><?php echo $BL['be_overwrite_default'] ?></i></td></tr> 212 <tr><td><img src="img/leer.gif" alt="" width="1" height="2" /></td></tr> 213 <tr> 214 <td><select name="acat_overwrite" id="acat_overwrite" class="f11b width300"> 215 <option value="" style="font-weight:normal;font-style:italic;"><?php echo $BL['be_admin_tmpl_default']; ?></option> 216 <?php 217 218 // templates for frontend login 219 $tmpllist = get_tmpl_files(PHPWCMS_TEMPLATE.'inc_settings/template_default', 'php'); 220 if(is_array($tmpllist) && count($tmpllist)) { 221 foreach($tmpllist as $val) { 222 $selected_val = (isset($acat_overwrite) && $val == $acat_overwrite) ? ' selected="selected"' : ''; 223 $val = html_specialchars($val); 224 echo ' <option value="' . $val . '"' . $selected_val . '>' . $val . ($_temp_cat==$val ? ' ('.$BL['be_admin_struct_template'].')' : '') . '</option>' . LF; 225 } 226 } 227 228 ?> 229 </select></td> 230 </tr> 231 232 <tr><td><img src="img/leer.gif" alt="" width="1" height="10" /></td></tr> 233 234 <tr> 235 <td><table border="0" cellpadding="0" cellspacing="0" summary=""> 236 <tr> 237 <td class="v09"><?php echo $BL['be_admin_struct_topcount'] ?>:</td> 238 <td> </td> 239 240 <td class="v09" colspan="2"><?php echo $BL['be_pagination'] ?>:</td> 241 242 <td> </td> 243 <td class="v09"><?php echo $BL['be_article_per_page'] ?>:</td> 244 245 <?php if($acat_struct_mode != 'INDEX'): ?> 246 <td> </td> 247 <td class="v09"><?php echo $BL['be_cnt_sortvalue'] ?>:</td> 248 <?php endif; ?> 249 250 </tr> 251 252 <tr><td colspan="3"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr> 253 254 <tr> 255 <td><input name="acat_topcount" type="text" id="acat_topcount" class="f11b width125" value="<?php echo intval($acat_topcount) ?>" size="10" maxlength="10" /></td> 256 <td> </td> 257 258 <td bgcolor="#D9DEE3"><input name="acat_paginate" type="checkbox" id="acat_paginate" value="1" <?php if($acat_paginate == 1) echo "checked"; ?> /></td> 259 <td bgcolor="#D9DEE3"> <label for="acat_paginate"><?php echo $BL['be_article_pagination'] ?></label> </td> 260 261 <td> </td> 262 <td><input name="acat_maxlist" type="text" id="acat_maxlist" class="f11b width75" value="<?php echo empty($acat_maxlist) ? '' : intval($acat_maxlist); ?>" size="10" maxlength="10" /></td> 263 264 <?php if($acat_struct_mode != 'INDEX'): ?> 265 <td> </td> 266 <td><input name="acat_sort" type="text" id="acat_sort" class="f11b width75" value="<?php echo $acat_sort; ?>" size="11" maxlength="11" /></td> 267 <?php endif; ?> 268 269 </tr> 270 </table></td> 271 </tr> 272 273 <tr><td><img src="img/leer.gif" alt="" width="1" height="10" /></td></tr> 274 275 <tr><td class="v09"><?php echo $BL['be_admin_struct_orderarticle'] ?>:</td></tr> 276 <tr><td><img src="img/leer.gif" alt="" width="1" height="2" /></td></tr> 277 <tr> 278 <td valign="top"> 279 <div style="margin:0;border:1px solid #D9DEE3;padding:5px;float:left;"> 280 <table border="0" cellpadding="0" cellspacing="0" summary=""><!-- seems not neccessary anymore: onclick="noDESC()" --> 281 <tr> 282 <td><input type="radio" name="acat_order" id="acat_order0" value="0"<?php is_checked(0, intval($acat_order[0])) ?> /></td> 283 <td> <label for="acat_order0"><?php echo $BL['be_admin_struct_ordermanual'] ?></label> </td> 284 <td rowspan="6"> </td> 285 <td><input type="radio" name="acat_ordersort" id="acat_ordersort0" value="0"<?php is_checked(0, intval($acat_order[1])) ?> /></td> 286 <td> <label for="acat_ordersort0"><?php echo $BL['be_admin_struct_orderasc'] ?></label> </td> 287 </tr> 288 <tr> 289 <td><input type="radio" name="acat_order" id="acat_order1" value="2"<?php is_checked(2, $acat_order[0]) ?> /></td> 290 <td> <label for="acat_order1"><?php echo $BL['be_admin_struct_orderdate'] ?></label> </td> 291 <td><input type="radio" name="acat_ordersort" id="acat_ordersort1" value="1"<?php is_checked(1, $acat_order[1]) ?> /></td> 292 <td> <label for="acat_ordersort1"><?php echo $BL['be_admin_struct_orderdesc'] ?></label> </td> 293 </tr> 294 <tr> 295 <td><input type="radio" name="acat_order" id="acat_order2" value="4"<?php is_checked(4, $acat_order[0]) ?> /></td> 296 <td> <label for="acat_order2"><?php echo $BL['be_admin_struct_orderchangedate'] ?></label> </td> 297 <td colspan="2" rowspan="4"> </td> 298 </tr> 299 <tr> 300 <td><input type="radio" name="acat_order" id="acat_order3" value="6"<?php is_checked(6, $acat_order[0]) ?> /></td> 301 <td> <label for="acat_order3"><?php echo $BL['be_admin_struct_orderstartdate'] ?></label> </td> 302 </tr> 303 304 <tr> 305 <td><input type="radio" name="acat_order" id="acat_order5" value="10"<?php is_checked(10, $acat_order[0]) ?> /></td> 306 <td> <label for="acat_order5"><?php echo $BL['be_admin_struct_orderkilldate'] ?></label> </td> 307 </tr> 308 309 <tr> 310 <td><input type="radio" name="acat_order" id="acat_order4" value="8"<?php is_checked(8, $acat_order[0]) ?> /></td> 311 <td> <label for="acat_order4"><?php echo $BL['be_article_atitle'] ?></label> </td> 312 </tr> 313 </table> 314 </div> 315 </td> 316 </tr> 317 318 319 <tr><td><img src="img/leer.gif" alt="" width="1" height="7" /></td></tr> 320 321 322 <!-- Content Part Selection --> 323 324 <tr><td><table border="0" cellpadding="0" cellspacing="0" summary=""> 325 <tr> 326 <td class="v09" style="width:280px;"><?php echo $BL['be_structform_selected_cp'] ?>:</td> 327 <td class="v09"><?php echo $BL['be_admin_tmpl_default'] ?>: </td> 328 <td style="padding:2px 0;"><select name="acat_cpdefault" class="f10"> 329 <?php 330 foreach($wcs_content_type as $key => $value) { 331 echo '<option value="'.$key.'"'.is_selected($acat_cpdefault, $key,1, 0).'>'.$value."</option>\n"; 332 } 333 334 ?> 335 </select></td> 336 </tr> 337 </table></td></tr> 338 <tr><td><img src="img/leer.gif" width="1" height="2" alt="" /></td></tr> 339 <tr> 340 <td valign="top"><table border="0" cellpadding="0" cellspacing="0" summary=""> 341 <tr> 342 <td><select name="acat_cp[]" id="acat_cp" size="9" multiple="multiple" style="width: 255px" class="f10" ondblclick="moveSelectedOptions(document.editsitestructure.acat_cp,document.editsitestructure.acat_cpa,false);"> 343 344 <?php 345 346 // check which content part is available 347 $temp_count = 0; 348 foreach($acat_cntpart as $value) { 349 if(isset($wcs_content_type[$value])) { 350 echo '<option value="'.$value.'">'.$wcs_content_type[$value]."</option>\n";; 351 unset($wcs_content_type[$value]); 352 } 353 $value1 = $value * (-1); 354 if(isset($BL['be_admin_optgroup_label'][$value1])) { 355 echo '<option value="'.$value.'">[optgroup] '.$BL['be_admin_optgroup_label'][$value1]."</option>\n"; 356 unset($BL['be_admin_optgroup_label'][$value1]); 357 } 358 } 359 360 ?> 361 </select></td> 362 <td valign="top" style="padding-left:5px;padding-right:5px;"> 363 <img src="img/button/put_left.gif" width="15" height="15" title="<?php echo $BL['be_admin_struct_adduser_all']?>" onclick="moveAllOptions(document.editsitestructure.acat_cpa,document.editsitestructure.acat_cp);" alt="" /><br /> 364 <img src="img/leer.gif" width="1" height="3" alt="" /><br /> 365 <img src="img/button/put_left_a.gif" width="15" height="15" title="<?php echo $BL['be_admin_struct_adduser_this']?>" onclick="moveSelectedOptions(document.editsitestructure.acat_cpa,document.editsitestructure.acat_cp,false);" alt="" /><br /> 366 <img src="img/leer.gif" width="1" height="6" alt="" /><br /> 367 <img src="img/button/put_right_a.gif" width="15" height="15" title="<?php echo $BL['be_admin_struct_remove_this']?>" onclick="moveSelectedOptions(document.editsitestructure.acat_cp,document.editsitestructure.acat_cpa,false);" alt="" /><br /> 368 <img src="img/leer.gif" width="1" height="3" alt="" /><br /> 369 <img src="img/button/put_right.gif" width="15" height="15" title="<?php echo $BL['be_admin_struct_remove_all']?>" alt="" onclick="moveAllOptions(document.editsitestructure.acat_cp,document.editsitestructure.acat_cpa);" /><br /> 370 <img src="img/leer.gif" alt="" width="1" height="6" /><br /> 371 <img src="img/button/list_pos_up.gif" alt="" width="15" height="15" border="0" onclick="moveOptionUp(document.editsitestructure.acat_cp);" /><br /> 372 <img src="img/leer.gif" width="1" height="3" alt="" /><br /> 373 <img src="img/button/list_pos_down.gif" alt="" width="15" height="15" border="0" onclick="moveOptionDown(document.editsitestructure.acat_cp);" /></td> 374 <td><select name="acat_cpa" size="9" multiple="multiple" id="acat_cpa" style="width: 255px" class="f10" ondblclick="moveSelectedOptions(document.editsitestructure.acat_cpa,document.editsitestructure.acat_cp,false);"> 375 376 <?php 377 //Menü mit Content Typen erstellen 378 foreach($wcs_content_type as $key => $value) { 379 //echo getContentPartOptionTag($key, $value); 380 echo '<option value="'.$key.'">'.$value."</option>\n"; 381 } 382 foreach($BL['be_admin_optgroup_label'] as $key => $value) { 383 echo '<option value="-'.$key.'">[optgroup] '.$value."</option>\n"; 384 } 385 ?> 386 387 </select></td> 388 </tr> 389 </table></td> 390 </tr> 391 392 393 <tr><td><img src="img/leer.gif" alt="" width="1" height="10" /></td></tr> 394 <tr><td><table border="0" cellpadding="0" cellspacing="0" summary=""> 395 <tr><td colspan="4" class="v09"><?php echo $BL['be_admin_struct_status'] ?>:</td></tr> 396 <tr><td colspan="4"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr> 397 <tr> 398 <td bgcolor="#D9DEE3"><input name="acat_hidden" type="checkbox" id="acat_hidden" value="1" <?php is_checked($acat_hidden, 1); ?> /></td> 399 <td bgcolor="#D9DEE3"> <label for="acat_hidden"><?php echo $BL['be_admin_struct_hide1'] ?></label> </td> 400 401 <td bgcolor="#D9DEE3"><input name="acat_hiddenactive" type="checkbox" id="acat_hiddenactive" value="1" <?php is_checked($acat_hiddenactive, 1); ?> /></td> 402 <td bgcolor="#D9DEE3"> <label for="acat_hiddenactive"><?php echo $BL['be_admin_struct_acat_hiddenactive'] ?></label> </td> 403 404 <td> </td> 405 406 <td bgcolor="#D9DEE3"><input name="acat_regonly" type="checkbox" id="acat_regonly" value="1" <?php is_checked($acat_regonly, 1); ?> /></td> 407 <td bgcolor="#D9DEE3" colspan="3"> <label for="acat_regonly"><?php echo $BL['be_admin_struct_regonly'] ?></label> </td> 408 </tr> 409 410 </table></td></tr> 411 412 <tr><td><img src="img/leer.gif" alt="" width="1" height="10" /></td></tr> 413 414 <tr> 415 <td><table border="0" cellpadding="0" cellspacing="0" summary=""> 416 417 <tr> 418 <td class="v09 inactive" colspan="5"><?php echo $BL['be_cache'] ?>:</td> 419 <td class="v09" colspan="2"><?php echo $BL['be_ctype_search'] ?>:</td> 420 </tr> 421 <tr><td colspan="7"><img src="img/leer.gif" alt="" width="1" height="1" /></td> 422 </tr> 423 424 425 <tr bgcolor="#D9DEE3"> 426 <td class="inactive"><input name="acat_cacheoff" type="checkbox" id="acat_cacheoff" value="1"<?php if($acat_timeout === '0') echo "checked"; ?> /></td> 427 <td class="inactive"> <label for="acat_cacheoff"><?php echo $BL['be_off'] ?></label> </td> 428 <td class="inactive"><select name="acat_timeout" class="f11" style="margin:2px;width:85px;" onchange="document.editsitestructure.acat_cacheoff.checked=false;"> 429 <?php 430 echo '<option value=" ">'.$BL['be_admin_tmpl_default']."</option>\n"; 431 echo '<option value="60"'.is_selected($acat_timeout, '60', 0, 0).'> 1 '.$BL['be_date_minute']."</option>\n"; 432 echo '<option value="300"'.is_selected($acat_timeout, '300', 0, 0).'> 5 '.$BL['be_date_minutes']."</option>\n"; 433 echo '<option value="900"'.is_selected($acat_timeout, '900', 0, 0).'>15 '.$BL['be_date_minutes']."</option>\n"; 434 echo '<option value="1800"'.is_selected($acat_timeout, '1800', 0, 0).'>30 '.$BL['be_date_minutes']."</option>\n"; 435 echo '<option value="3600"'.is_selected($acat_timeout, '3600', 0, 0).'> 1 '.$BL['be_date_hour']."</option>\n"; 436 echo '<option value="14400"'.is_selected($acat_timeout, '14400', 0, 0).'> 4 '.$BL['be_date_hours']."</option>\n"; 437 echo '<option value="43200"'.is_selected($acat_timeout, '43200', 0, 0).'>12 '.$BL['be_date_hours']."</option>\n"; 438 echo '<option value="86400"'.is_selected($acat_timeout, '86400', 0, 0).'> 1 '.$BL['be_date_day']."</option>\n"; 439 echo '<option value="172800"'.is_selected($acat_timeout, '172800', 0, 0).'> 2 '.$BL['be_date_days']."</option>\n"; 440 echo '<option value="604800"'.is_selected($acat_timeout, '604800', 0, 0).'> 1 '.$BL['be_date_week']."</option>\n"; 441 echo '<option value="1209600"'.is_selected($acat_timeout, '1209600', 0, 0).'> 2 '.$BL['be_date_weeks']."</option>\n"; 442 echo '<option value="2592000"'.is_selected($acat_timeout, '2592000', 0, 0).'> 1 '.$BL['be_date_month']."</option>\n"; 443 ?> 444 </select></td> 445 <td class="inactive"> <?php echo $BL['be_cache_timeout'] ?> </td> 446 <td bgcolor="#FFFFFF"> </td> 447 <td><input name="acat_nosearch" type="checkbox" id="acat_nosearch" value="1" <?php if($acat_nosearch === '1') echo "checked"; ?> /></td> 448 <td> <label for="acat_nosearch"><?php echo $BL['be_off'] ?></label> </td> 449 </tr> 450 </table></td> 451 </tr> 452 453 <tr><td><img src="img/leer.gif" alt="" width="1" height="10" /></td></tr> 454 455 <tr> 456 <td><table border="0" cellpadding="0" cellspacing="0" summary=""> 457 458 <tr><td class="v09" colspan="8"><?php echo $BL['be_ftptakeover_status'] ?>:</td></tr> 459 <tr><td colspan="8"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr> 460 461 462 <tr bgcolor="#D9DEE3"> 463 <td><input name="acat_aktiv" type="checkbox" id="acat_aktiv" value="1" <?php if($acat_aktiv == 1) echo "checked"; ?> /></td> 464 <td> <label for="acat_aktiv"><?php echo $BL['be_admin_struct_visible'] ?></label> </td> 465 <td><input name="acat_public" type="checkbox" id="acat_public" value="1" <?php if($acat_public == 1) echo "checked"; ?> /></td> 466 <td> <label for="acat_public"><?php echo $BL['be_ftptakeover_public'] ?></label> </td> 467 <td><input name="acat_ssl" type="checkbox" id="acat_ssl" value="1"<?php 468 if(intval($phpwcms["site_ssl_mode"])) { 469 if($acat_ssl == 1) { 470 echo ' checked="checked"'; 471 $ssl_style=''; 472 } 473 } else { 474 echo ' disabled="disabled"'; 475 $ssl_style=' style="color:#ADB2BE;"'; 476 } 477 478 ?> /></td> 479 <td<?php echo $ssl_style; ?>> <label for="acat_ssl">SSL</label> </td> 480 481 <td><input name="acat_nositemap" type="checkbox" id="acat_nositemap" value="1"<?php is_checked(1, $acat_nositemap); ?> /></td> 482 <td> <label for="acat_nositemap"><?php echo $BL['be_ctype_sitemap'] ?></label> </td> 483 484 <td><input name="acat_archive" type="checkbox" id="acat_archive" value="1"<?php is_checked(1, $acat_archive); ?> /></td> 485 <td> <label for="acat_archive"><?php echo $BL['be_archive'] ?></label> </td> 486 487 </tr> 488 </table></td> 489 </tr> 490 <tr><td><img src="img/leer.gif" alt="" width="1" height="20" /> 491 <input name="acat_sort_temp" type="hidden" value="<?php echo $acat_sort; ?>" /> 492 <input name="acat_struct" type="hidden" id="acat_struct" value="<?php echo $acat_struct; ?>" /> 493 <input name="acat_new" type="hidden" id="acat_new" value="<?php echo $acat_new; ?>" /> 494 <input name="acat_id" type="hidden" id="acat_id" value="<?php echo $acat_id; ?>" /></td> 495 </tr> 496 <tr><td><input name="submit" type="submit" class="button10" value="<?php echo empty($acat_id) ? $BL['be_article_cnt_button2'] : $BL['be_article_cnt_button1'] ?>" /> 497 <input name="SubmitClose" type="submit" class="button10" value="<?php echo $BL['be_article_cnt_button3'] ?>" /> 498 499 <input name="donotsubmit" type="button" class="button10" value="<?php echo $BL['be_newsletter_button_cancel'] ?>" onclick="location.href='phpwcms.php?do=admin&p=6';" /></td></tr> 500 <tr><td><img src="img/leer.gif" alt="" width="1" height="15" /></td></tr> 501 <tr><td><img src="img/lines/l538_70.gif" alt="" width="538" height="1" /></td></tr> 502 <tr><td><img src="img/leer.gif" alt="" width="1" height="15" /></td></tr> 503 </table> 504 </form>
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 |