<?php /* Smarty version Smarty-3.0.8, created on 2012-03-26 11:18:19
         compiled from "E:/wwwroot/guanjianzi/wwwroot/themes/system/apply.html" */ ?>
<?php /*%%SmartyHeaderCode:182054f6fdffba13ce0-13792373%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'c4e4f5d0084d6fe2925015af09a885d3a80a2bde' => 
    array (
      0 => 'E:/wwwroot/guanjianzi/wwwroot/themes/system/apply.html',
      1 => 1323751878,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '182054f6fdffba13ce0-13792373',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php $_template = new Smarty_Internal_Template("header.html", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate(); $_template->rendered_content = null;?><?php unset($_template);?>

	<?php if ($_smarty_tpl->getVariable('action')->value=='list'){?>
    <h3 class="title"><em><?php echo $_smarty_tpl->getVariable('pagetitle')->value;?>
</em></h3>
	<div class="listbox">
		<form name="mform" method="post" action="<?php echo $_smarty_tpl->getVariable('fileurl')->value;?>
">
		<div class="toolbar">
			<select name="act" id="act" class="sel">
			<option value="del" style="color: #FF0000;">删除选定</option>
			</select>
			<input type="submit" class="btn" value="应用" onClick="if(IsCheck('app_id[]')==false){alert('请指定您要操作的站点ID！');return false;}else{return confirm('确认执行此操作吗？');}">
		</div>
		
    	<table width="100%" border="0" cellspacing="1" cellpadding="0">
			<tr>
				<th><input type="checkbox" id="ChkAll" onClick="CheckAll(this.form)"></th>
				<th>ID</th>
				<th>所属分类</th>
				<th>网站名称</th>
				<th>网站域名</th>
				<th>站长姓名</th>
				<th>电子邮件</th>
				<th>提交时间</th>
				<th>操作选项</th>
			</tr>
			<?php  $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('website')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value){
?>
			<tr>
				<td><input name="app_id[]" type="checkbox" value="<?php echo $_smarty_tpl->tpl_vars['item']->value['app_id'];?>
"></td>
				<td><?php echo $_smarty_tpl->tpl_vars['item']->value['app_id'];?>
</td>
				<td><?php echo $_smarty_tpl->tpl_vars['item']->value['cate_name'];?>
</td>
				<td><?php echo $_smarty_tpl->tpl_vars['item']->value['web_name'];?>
</td>
				<td><?php echo $_smarty_tpl->tpl_vars['item']->value['web_url'];?>
</td>
				<td><?php echo $_smarty_tpl->tpl_vars['item']->value['web_owner'];?>
</td>
				<td><?php echo $_smarty_tpl->tpl_vars['item']->value['web_email'];?>
</td>
				<td><?php echo $_smarty_tpl->tpl_vars['item']->value['post_time'];?>
</td>
				<td><?php echo $_smarty_tpl->tpl_vars['item']->value['web_operate'];?>
</td>
			</tr>
			<?php }} else { ?>
			<tr><td colspan="9">无任何网站！</td></tr>
			<?php } ?>
		</table>
        </form>
        <div class="pagebox"><?php echo $_smarty_tpl->getVariable('showpage')->value;?>
</div>
    </div>
    <?php }?>

	<?php if ($_smarty_tpl->getVariable('action')->value=='add'){?>
    <h3 class="title"><em><?php echo $_smarty_tpl->getVariable('pagetitle')->value;?>
</em><span><a href="<?php echo $_smarty_tpl->getVariable('fileurl')->value;?>
">返回列表&raquo;</a></span></h3>
	<div class="formbox">
    	<form name="mform" method="post" action="<?php echo $_smarty_tpl->getVariable('fileurl')->value;?>
">
		<table width="100%" border="0" cellspacing="1" cellpadding="0">
			<tr>
				<th>所属分类：</th>
				<td><select name="cate_id" id="cate_id" class="sel"><?php echo $_smarty_tpl->getVariable('category_option')->value;?>
</select></td>
			</tr>
			<tr>
				<th>网站名称：</th>
				<td><input name="web_name" type="text" class="ipt" id="web_name" size="50" maxlength="50" value="<?php echo $_smarty_tpl->getVariable('web')->value['web_name'];?>
" /></td>
			</tr>
			<tr>
				<th>网站地址：</th>
				<td><input name="web_url" type="text" class="ipt" id="web_url" size="50" maxlength="255" value="<?php echo $_smarty_tpl->getVariable('web')->value['web_url'];?>
" /><span class="tips">例: www.example.com</span></td>
			</tr>
			<tr>
				<th>TAG标签：</th>
				<td><input name="web_tags" type="text" class="ipt" id="web_tags" size="50" maxlength="255" value="<?php echo $_smarty_tpl->getVariable('web')->value['web_tags'];?>
" onBlur="javascript:this.value=this.value.replace(/，/ig,',');" /><span class="tips">多个标签用英文的“,”逗号隔开</span></td>
			</tr>
			<tr>
				<th valign="top">网站简介：</th>
				<td><textarea name="web_intro" cols="55" rows="8" class="ipt" id="web_intro"><?php echo $_smarty_tpl->getVariable('web')->value['web_intro'];?>
</textarea></td>
			</tr>
			<tr>
				<th>站长姓名：</th>
				<td><input name="web_owner" type="text" class="ipt" id="web_owner" size="30" maxlength="20" value="<?php echo $_smarty_tpl->getVariable('web')->value['web_owner'];?>
" /></td>
			</tr>
			<tr>
				<th>电子邮箱：</th>
				<td><input name="web_email" type="text" class="ipt" id="web_email" size="30" maxlength="50" value="<?php echo $_smarty_tpl->getVariable('web')->value['web_email'];?>
" /></td>
			</tr>
			<tr class="btnbox">
            	<th>&nbsp;</th>
				<td>
					<input name="act" type="hidden" id="act" value="<?php echo $_smarty_tpl->getVariable('h_action')->value;?>
">
					<input type="submit" class="btn" value="收 录">&nbsp;
					<input type="reset" class="btn" value="取 消" onClick="window.location.href='<?php echo $_smarty_tpl->getVariable('fileurl')->value;?>
';">
				</td>
			</tr>
		</table>
        </form>
	</div>
	<?php }?>
	
	<?php if ($_smarty_tpl->getVariable('action')->value=='view'){?>
    <h3 class="title"><em><?php echo $_smarty_tpl->getVariable('pagetitle')->value;?>
</em><span><a href="<?php echo $_smarty_tpl->getVariable('fileurl')->value;?>
">返回列表&raquo;</a></span></h3>
	<div class="formbox">
		<form name="mform" method="post" action="<?php echo $_smarty_tpl->getVariable('fileurl')->value;?>
">
		<table width="100%" border="0" cellspacing="1" cellpadding="0">
			<tr>
				<th>所属分类：</th>
				<td><?php echo $_smarty_tpl->getVariable('web')->value['cate_name'];?>
</td>
			</tr>
			<tr>
				<th>网站名称：</th>
				<td><?php echo $_smarty_tpl->getVariable('web')->value['web_name'];?>
</td>
			</tr>
			<tr>
				<th>网站域名：</th>
				<td><?php echo $_smarty_tpl->getVariable('web')->value['web_url'];?>
</td>
			</tr>
			<tr>
				<th>TAG标签：</th>
				<td><?php echo $_smarty_tpl->getVariable('web')->value['web_tags'];?>
</td>
			</tr>
			<tr>
				<th>网站简介：</th>
				<td><?php echo $_smarty_tpl->getVariable('web')->value['web_intro'];?>
</td>
			</tr>
			<tr>
				<th>站长姓名：</th>
				<td><?php echo $_smarty_tpl->getVariable('web')->value['web_owner'];?>
</td>
			</tr>
			<tr>
				<th>电子邮箱：</th>
				<td><?php echo $_smarty_tpl->getVariable('web')->value['web_email'];?>
</td>
			</tr>
			<tr class="btnbox">
            	<th>&nbsp;</th>
				<td>
					<input type="button" class="btn" value="收 录" onClick="window.location.href='<?php echo $_smarty_tpl->getVariable('fileurl')->value;?>
?act=add&app_id=<?php echo $_smarty_tpl->getVariable('web')->value['app_id'];?>
';">&nbsp;
					<input type="button" class="btn" value="删 除" onClick="if (confirm('确认删除吗？')) window.location.href='<?php echo $_smarty_tpl->getVariable('fileurl')->value;?>
';">
				</td>
			</tr>
		</table>
		</form>
	</div>
	<?php }?>

<?php $_template = new Smarty_Internal_Template("footer.html", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate(); $_template->rendered_content = null;?><?php unset($_template);?>