<?php /* Smarty version Smarty-3.1.10, created on 2016-12-01 21:09:27
         compiled from "/www/web/71dir/public_html/themes/system/zonegory.html" */ ?>
<?php /*%%SmartyHeaderCode:1247549482584021072f9418-89632894%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'c29aa6a8a61066e9b15b3c11899f38b27348c6bd' => 
    array (
      0 => '/www/web/71dir/public_html/themes/system/zonegory.html',
      1 => 1479002513,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1247549482584021072f9418-89632894',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'action' => 0,
    'pagetitle' => 0,
    'fileurl' => 0,
    'zone_mod' => 0,
    'root_id' => 0,
    'zones' => 0,
    'zone' => 0,
    'zonegory_option' => 0,
    'row' => 0,
    'h_action' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.10',
  'unifunc' => 'content_58402107417186_01001174',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_58402107417186_01001174')) {function content_58402107417186_01001174($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ("header.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>


	<?php if ($_smarty_tpl->tpl_vars['action']->value=='list'){?>
	<h3 class="title"><em><?php echo $_smarty_tpl->tpl_vars['pagetitle']->value;?>
</em><span><a href="<?php echo $_smarty_tpl->tpl_vars['fileurl']->value;?>
?mod=<?php echo $_smarty_tpl->tpl_vars['zone_mod']->value;?>
&act=add&root_id=<?php echo $_smarty_tpl->tpl_vars['root_id']->value;?>
">+添加新地区</a></span></h3>
	<div class="listbox">
		<form name="mform" method="post" action="<?php echo $_smarty_tpl->tpl_vars['fileurl']->value;?>
">
		<table width="100%" border="0" cellspacing="1" cellpadding="0">
			<tr>
				<th>ID</th>
				<th>地区名称</th>
                <th>所属模块</th>
				<th>目录名称</th>
				<th>内容统计</th>
				<th>排列顺序</th>
				<th>栏目属性</th>
				<th>操作选项</th>
			</tr>
			<?php  $_smarty_tpl->tpl_vars['zone'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['zone']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['zones']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['zone']->key => $_smarty_tpl->tpl_vars['zone']->value){
$_smarty_tpl->tpl_vars['zone']->_loop = true;
?>
			<tr>
				<td><?php echo $_smarty_tpl->tpl_vars['zone']->value['zone_id'];?>
</td>
				<td><?php echo $_smarty_tpl->tpl_vars['zone']->value['zone_name'];?>
 <span style="color: #999; font-size: 10px;">(<?php echo $_smarty_tpl->tpl_vars['zone']->value['zone_childcount'];?>
)</span></td>
                <td><?php echo $_smarty_tpl->tpl_vars['zone']->value['zone_mod'];?>
</td>
				<td><?php echo $_smarty_tpl->tpl_vars['zone']->value['zone_dir'];?>
</td>
				<td><?php echo $_smarty_tpl->tpl_vars['zone']->value['zone_postcount'];?>
</td>
				<td><?php echo $_smarty_tpl->tpl_vars['zone']->value['zone_order'];?>
</td>
				<td><?php echo $_smarty_tpl->tpl_vars['zone']->value['zone_attr'];?>
</td>
				<td><?php echo $_smarty_tpl->tpl_vars['zone']->value['zone_operate'];?>
</td>
			</tr>
			<?php }
if (!$_smarty_tpl->tpl_vars['zone']->_loop) {
?>
				<?php if ($_smarty_tpl->tpl_vars['root_id']->value==0){?>
				<tr><td colspan="8">无任何地区！</td></tr>
				<?php }else{ ?>
				<tr><td colspan="8">该地区下无任何子地区！<a href="<?php echo $_smarty_tpl->tpl_vars['fileurl']->value;?>
&root_id=0">返回顶级地区</a></td></tr>
			<?php }?>
			<?php } ?>
		</table>
		</form>
	</div>
	<?php }?>

	<?php if ($_smarty_tpl->tpl_vars['action']->value=='add'||$_smarty_tpl->tpl_vars['action']->value=='edit'){?>
    <h3 class="title"><em><?php echo $_smarty_tpl->tpl_vars['pagetitle']->value;?>
</em><span><a href="<?php echo $_smarty_tpl->tpl_vars['fileurl']->value;?>
?mod=<?php echo $_smarty_tpl->tpl_vars['zone_mod']->value;?>
">返回列表&raquo;</a></span></h3>
	<div class="formbox">
    	<form name="mform" method="post" action="<?php echo $_smarty_tpl->tpl_vars['fileurl']->value;?>
">
        <table width="100%" border="0" cellspacing="1" cellpadding="0">
			<tr>
				<th>所属地区：</th>
				<td><select name="root_id" id="root_id" class="sel"><option value="0">作为顶级地区</option><?php echo $_smarty_tpl->tpl_vars['zonegory_option']->value;?>
</select><input name="zone_mod" type="hidden" id="zone_mod" value="<?php echo $_smarty_tpl->tpl_vars['zone_mod']->value;?>
"></td>
			</tr>
			<tr>
				<th>地区名称：</th>
				<td><input name="zone_name" type="text" class="ipt" id="zone_name" size="35" maxlength="50" value="<?php echo $_smarty_tpl->tpl_vars['row']->value['zone_name'];?>
" />  <input name="zone_isbest" type="checkbox" id="zone_isbest" value="1"<?php echo opt_checked($_smarty_tpl->tpl_vars['row']->value['zone_isbest'],1);?>
 /><label for="zone_isbest">设为推荐</label></td>
			</tr>
			<tr>
				<th>目录名称：</th>
				<td><input name="zone_dir" type="text" class="ipt" id="zone_dir" size="50" maxlength="50" value="<?php echo $_smarty_tpl->tpl_vars['row']->value['zone_dir'];?>
" /></td>
			</tr>
			<tr>
				<th>跳转地址：</th>
				<td><input name="zone_url" type="text" class="ipt" id="zone_url" size="50" maxlength="255" value="<?php echo $_smarty_tpl->tpl_vars['row']->value['zone_url'];?>
" /></td>
			</tr>
			<tr>
				<th>关 键 词：</th>
				<td><input name="zone_keywords" type="text" class="ipt" id="zone_keywords" size="50" maxlength="255" value="<?php echo $_smarty_tpl->tpl_vars['row']->value['zone_keywords'];?>
" /><span class="tips">多个关键词之间用“逗号”隔开</span></td>
			</tr>
			<tr>
				<th valign="top">地区描述：</th>
				<td><textarea name="zone_description" cols="50" rows="6" class="ipt" id="zone_description"><?php echo $_smarty_tpl->tpl_vars['row']->value['zone_description'];?>
</textarea></td>
			</tr>
			<tr>
				<th>排列顺序：</th>
				<td><input name="zone_order" type="text" class="ipt" id="zone_order" size="10" maxlength="10" value="<?php echo !$_smarty_tpl->tpl_vars['row']->value['zone_order'] ? '0' : $_smarty_tpl->tpl_vars['row']->value['zone_order'];?>
" /></td>
			</tr>
			<tr class="btnbox">
            	<td>&nbsp;</td>
				<td>
                    <input name="act" type="hidden" id="act" value="<?php echo $_smarty_tpl->tpl_vars['h_action']->value;?>
">
                    <input name="zone_mod" type="hidden" id="zone_mod" value="<?php echo $_smarty_tpl->tpl_vars['zone_mod']->value;?>
">
					<?php if ($_smarty_tpl->tpl_vars['action']->value=='edit'&&$_smarty_tpl->tpl_vars['row']->value['zone_id']){?>
					<input name="zone_id" type="hidden" id="zone_id" value="<?php echo $_smarty_tpl->tpl_vars['row']->value['zone_id'];?>
">
					<?php }?>
					<input type="submit" class="btn" value="保 存">&nbsp;
					<input type="reset" class="btn" value="取 消" onClick="window.location.href='<?php echo $_smarty_tpl->tpl_vars['fileurl']->value;?>
';">
				</td>
			</tr>
		</table>
        </form>
	</div>
	<?php }?>
    
	<?php if ($_smarty_tpl->tpl_vars['action']->value=='reset'){?>
    <h3 class="title"><em><?php echo $_smarty_tpl->tpl_vars['pagetitle']->value;?>
</em><span><a href="<?php echo $_smarty_tpl->tpl_vars['fileurl']->value;?>
?mod=<?php echo $_smarty_tpl->tpl_vars['zone_mod']->value;?>
">返回列表&raquo;</a></span></h3>
	<div class="formbox">
		<form name="mform" method="post" action="<?php echo $_smarty_tpl->tpl_vars['fileurl']->value;?>
">
		<table width="100%" border="0" cellspacing="1" cellpadding="0">
			<tr>
            	<th>注意事项：</th>
				<td>如果选择复位所有地区，则所有地区都将作为一级地区，这时您需要重新对各个地区进行归属的基本设置。<br />不要轻易使用该功能，仅在做出了错误的设置而无法复原地区之间的关系和排序的时候使用。</td>
			</tr>
			<tr class="btnbox">
            	<th>&nbsp;</th>
				<td>
					<input name="act" type="hidden" id="act" value="<?php echo $_smarty_tpl->tpl_vars['h_action']->value;?>
">
                    <input name="zone_mod" type="hidden" id="zone_mod" value="<?php echo $_smarty_tpl->tpl_vars['zone_mod']->value;?>
">
					<input type="submit" class="btn" value="复 位">&nbsp;
					<input type="reset" class="btn" value="取 消" onClick="window.location.href='<?php echo $_smarty_tpl->tpl_vars['fileurl']->value;?>
';">
				</td>
			</tr>
		</table>
		</form>
	</div>
	<?php }?>

	<?php if ($_smarty_tpl->tpl_vars['action']->value=='merge'){?>
    <h3 class="title"><em><?php echo $_smarty_tpl->tpl_vars['pagetitle']->value;?>
</em><span><a href="<?php echo $_smarty_tpl->tpl_vars['fileurl']->value;?>
?mod=<?php echo $_smarty_tpl->tpl_vars['zone_mod']->value;?>
">返回列表&raquo;</a></span></h3>
	<div class="formbox">
		<form name="mform" method="post" action="<?php echo $_smarty_tpl->tpl_vars['fileurl']->value;?>
">
		<table width="100%" border="0" cellspacing="1" cellpadding="0">
			<tr>
				<th>将地区：</th>
				<td><select name="source_id" id="source_id" class="sel"><?php echo $_smarty_tpl->tpl_vars['zonegory_option']->value;?>
</select></td>
			</tr>
			<tr>
				<th>合并到：</th>
				<td><select name="target_id" id="target_id" class="sel"><?php echo $_smarty_tpl->tpl_vars['zonegory_option']->value;?>
</select></td>
			</tr>
			<tr>
            	<th>注意事项：</th>
				<td><font color="#ff0000">所有操作不可逆，请慎重操作！</font><br />不能在同一个地区内进行操作，不能将一个地区合并到其下属地区中，目标地区中不能含有子地区，合并后您所指定的地区（或者包括其下属地区）将被删除，所有内容将转移到目标地区中。</td>
			</tr>
			<tr class="btnbox">
            	<th>&nbsp;</th>
				<td>
					<input name="act" type="hidden" id="act" value="<?php echo $_smarty_tpl->tpl_vars['h_action']->value;?>
">
                    <input name="zone_mod" type="hidden" id="zone_mod" value="<?php echo $_smarty_tpl->tpl_vars['zone_mod']->value;?>
">
					<input type="submit" class="btn" value="合 并">&nbsp;
					<input type="reset" class="btn" value="取 消" onClick="window.location.href='<?php echo $_smarty_tpl->tpl_vars['fileurl']->value;?>
';">
				</td>
			</tr>
		</table>
        </form>
	</div>
	<?php }?>

<?php echo $_smarty_tpl->getSubTemplate ("footer.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
<?php }} ?>