[ Index ]

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

title

Body

[close]

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


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