<?php
require '../../../zb_system/function/c_system_base.php';
require '../../../zb_system/function/c_system_admin.php';
$zbp->Load();
$action='root';
if (!$zbp->CheckRights($action)) {$zbp->ShowError(6);die();}
if (!$zbp->CheckPlugin('bluecms')) {$zbp->ShowError(48);die();}
$blogtitle='主题配置';
$act = "";
if ($_GET['act']){
$act = $_GET['act'] == "" ? 'config' : $_GET['act'];
}
require $blogpath . 'zb_system/admin/admin_header.php';
require $blogpath . 'zb_system/admin/admin_top.php';

//基本设置
if(isset($_POST['submit'])){
	/*SEO*/
	if (function_exists('CheckIsRefererValid')) CheckIsRefererValid();
	$zbp->Config('bluecms')->title = $_POST['title'];
	$zbp->Config('bluecms')->keywords = $_POST['keywords'];
	$zbp->Config('bluecms')->description = $_POST['description'];
	$zbp->Config('bluecms')->separator = $_POST['separator'];
	$zbp->Config('bluecms')->link1 = $_POST['link1'];
	$zbp->Config('bluecms')->link2 = $_POST['link2'];
	$zbp->Config('bluecms')->link3 = $_POST['link3'];
	$zbp->Config('bluecms')->link4 = $_POST['link4'];
	$zbp->Config('bluecms')->facebook = $_POST['facebook'];
	$zbp->Config('bluecms')->twitter = $_POST['twitter'];
	$zbp->Config('bluecms')->googlejia = $_POST['googlejia'];
	$zbp->Config('bluecms')->tongji = $_POST['tongji'];
	$zbp->Config('bluecms')->topad = $_POST['topad'];
	$zbp->Config('bluecms')->topadNO = $_POST['topadNO'];
	$zbp->Config('bluecms')->btmad = $_POST['btmad'];
	$zbp->Config('bluecms')->btmadNO = $_POST['btmadNO'];
	$zbp->Config('bluecms')->postad = $_POST['postad'];
	$zbp->Config('bluecms')->postadNO = $_POST['postadNO'];
	
	$zbp->Config( 'bluecms' )->ban1 = $_POST[ 'ban1' ];
	$zbp->Config( 'bluecms' )->ban2 = $_POST[ 'ban2' ];	
	$zbp->Config( 'bluecms' )->ban3 = $_POST[ 'ban3' ];	
	$zbp->Config( 'bluecms' )->ban4 = $_POST[ 'ban4' ];	
	
	$zbp->Config( 'bluecms' )->mban1 = $_POST[ 'mban1' ];
	$zbp->Config( 'bluecms' )->mban2 = $_POST[ 'mban2' ];	
	$zbp->Config( 'bluecms' )->mban3 = $_POST[ 'mban3' ];	
	$zbp->Config( 'bluecms' )->mban4 = $_POST[ 'mban4' ];	
	
	$zbp->Config('bluecms')->clearSetting = $_POST['clearSetting'];
	$zbp->SaveConfig('bluecms');
	$zbp->ShowHint('good');	
}
//联系方式
if(isset($_POST['submit3'])){
if (function_exists('CheckIsRefererValid')) CheckIsRefererValid();
	$zbp->Config('bluecms')->add1 = $_POST['add1'];
	$zbp->Config('bluecms')->add2 = $_POST['add2'];
	$zbp->Config('bluecms')->add3 = $_POST['add3'];
	$zbp->Config('bluecms')->add4 = $_POST['add4'];
	$zbp->Config('bluecms')->add5 = $_POST['add5'];
	$zbp->Config('bluecms')->add6 = $_POST['add6'];
	$zbp->Config('bluecms')->add7 = $_POST['add7'];
	$zbp->Config('bluecms')->add8 = $_POST['add8'];
	$zbp->Config('bluecms')->add9 = $_POST['add9'];
	$zbp->SaveConfig('bluecms');
	$zbp->ShowHint('good');	
}

//分类id设置
if(isset($_POST['submit2'])){
if (function_exists('CheckIsRefererValid')) CheckIsRefererValid();
	$zbp->Config('bluecms')->chanpin = $_POST['chanpin'];
	$zbp->Config('bluecms')->chanpinurl = $_POST['chanpinurl'];
	$zbp->Config('bluecms')->news = $_POST['news'];
	$zbp->Config('bluecms')->newsurl = $_POST['newsurl'];
	$zbp->Config('bluecms')->news1 = $_POST['news1'];
	$zbp->Config('bluecms')->news1url = $_POST['news1url'];
	$zbp->Config('bluecms')->news2 = $_POST['news2'];
	$zbp->Config('bluecms')->news2url = $_POST['news2url'];
	$zbp->Config('bluecms')->catid1 = $_POST['catid1'];
	$zbp->Config('bluecms')->catid1url = $_POST['catid1url'];
	$zbp->Config('bluecms')->catid2 = $_POST['catid2'];
	$zbp->Config('bluecms')->catid2url = $_POST['catid2url'];
	$zbp->SaveConfig('bluecms');
	$zbp->ShowHint('good');	
}

?>
<div id="divMain">
	<div class="divHeader"><?php echo $blogtitle;?></div>
	<div class="SubMenu">
	<?php bluecms_SubMenu($act);?>
     <a href="http://www.xxbluecms.cn" target="_blank"><span class="m-right">志远网络</span></a>
    </div>
<div id="divMain2">
<?php if ($act == 'config') { ?>

<table id="form1" name="form1" width="100%" style="padding:0;margin:0;" cellspacing="0" cellpadding="0" class="tableBorder">
<tr>
    <th width="15%"><p align="center">选项名称</p></th>
    <th width="35%"><p align="center">当前图片</p></th>
	<th width="35%"><p align="center">上传图片</p></th>
  </tr>

  <form enctype="multipart/form-data" method="post" action="save.php?type=logo">
	<tr>
    <td><p align="center">LOGO图片300 x 60</p><?php if (function_exists('CheckIsRefererValid')) {echo '<input type="hidden" name="csrfToken" value="' . $zbp->GetCSRFToken() . '">';}?></td>    
	<td>
	<p align="center"><a href="style/images/logo.png" target="_blank"><img src="style/images/logo.png" height="40px"></a></p>	</td>
	<td><p align="center"><input name="logo.png" type="file"/><input name="" type="Submit" class="button" value="保存"/></p></td>
	</tr>	
	</form> 
	 <form enctype="multipart/form-data" method="post" action="save.php?type=favicon">
	 <tr>
    <td><p align="center">favicon图片</p><?php if (function_exists('CheckIsRefererValid')) {echo '<input type="hidden" name="csrfToken" value="' . $zbp->GetCSRFToken() . '">';}?></td>
   	<td>
	<p align="center"><a href="style/images/favicon.ico" target="_blank"><img src="style/images/favicon.ico" height="40px"></a></p>	</td>
	<td><p align="center"><input name="favicon.ico" type="file"/><input name="" type="Submit" class="button" value="保存"/></p></td>
	</tr>
	 </form> 
	 <form enctype="multipart/form-data" method="post" action="save.php?type=tupian1">
	 <tr>
    <td><p align="center">幻灯片1(880*327)</p><?php if (function_exists('CheckIsRefererValid')) {echo '<input type="hidden" name="csrfToken" value="' . $zbp->GetCSRFToken() . '">';}?></td>    
	<td>
	<p align="center"><a href="style/ban/b01.jpg" target="_blank"><img src="style/ban/b01.jpg" height="40px"></a></p>	</td>
	<td><p align="center"><input name="tupian1.jpg" type="file"/><input name="" type="Submit" class="button" value="保存"/></p></td>
	</tr>
	 </form> 
	 	 <form enctype="multipart/form-data" method="post" action="save.php?type=tupian2">
	 <tr>
    <td><p align="center">幻灯片2(880*327)</p><?php if (function_exists('CheckIsRefererValid')) {echo '<input type="hidden" name="csrfToken" value="' . $zbp->GetCSRFToken() . '">';}?></td>    
	<td>
	<p align="center"><a href="style/ban/b02.jpg" target="_blank"><img src="style/ban/b02.jpg" height="40px"></a></p>	</td>
	<td><p align="center"><input name="tupian2.jpg" type="file"/><input name="" type="Submit" class="button" value="保存"/></p></td>
	</tr>
	 </form> 
     <form enctype="multipart/form-data" method="post" action="save.php?type=tupian3">
	 <tr>
    <td><p align="center">幻灯片3(880*327)</p><?php if (function_exists('CheckIsRefererValid')) {echo '<input type="hidden" name="csrfToken" value="' . $zbp->GetCSRFToken() . '">';}?></td>    
	<td>
	<p align="center"><a href="style/ban/b03.jpg" target="_blank"><img src="style/ban/b03.jpg" height="40px"></a></p>	</td>
	<td><p align="center"><input name="tupian3.jpg" type="file"/><input name="" type="Submit" class="button" value="保存"/></p></td>
	</tr>
	 </form>
     <form enctype="multipart/form-data" method="post" action="save.php?type=tupian4">
	 <tr>
    <td><p align="center">幻灯片4(880*327)</p><?php if (function_exists('CheckIsRefererValid')) {echo '<input type="hidden" name="csrfToken" value="' . $zbp->GetCSRFToken() . '">';}?></td>    
	<td>
	<p align="center"><a href="style/ban/b04.jpg" target="_blank"><img src="style/ban/b04.jpg" height="40px"></a></p>	</td>
	<td><p align="center"><input name="tupian4.jpg" type="file"/><input name="" type="Submit" class="button" value="保存"/></p></td>
	</tr>
	 </form>
<form enctype="multipart/form-data" method="post" action="save.php?type=mtupian1">
	 </form> 

	 	 <form enctype="multipart/form-data" method="post" action="save.php?type=mtupian2">
	 </form> 
     <form enctype="multipart/form-data" method="post" action="save.php?type=mtupian3">
	 </form>
     <form enctype="multipart/form-data" method="post" action="save.php?type=mtupian4">
	 </form>
     <form enctype="multipart/form-data" method="post" action="save.php?type=mabout">
	 </form>
	 	 <form enctype="multipart/form-data" method="post" action="save.php?type=weixin">
	 <tr>
    <td><p align="center">微信二维码</p><?php if (function_exists('CheckIsRefererValid')) {echo '<input type="hidden" name="csrfToken" value="' . $zbp->GetCSRFToken() . '">';}?></td>    
	<td>
	<p align="center"><a href="style/images/weixin.jpg" target="_blank"><img src="style/images/weixin.jpg" height="40px"></a></p>	</td>
	<td><p align="center"><input name="weixin.jpg" type="file"/><input name="" type="Submit" class="button" value="保存"/></p></td>
	</tr>
	 </form>
     
      <form enctype="multipart/form-data" method="post" action="save.php?type=about">
	 <tr>
    <td><p align="center">手机二维码</p><?php if (function_exists('CheckIsRefererValid')) {echo '<input type="hidden" name="csrfToken" value="' . $zbp->GetCSRFToken() . '">';}?></td>    
	<td>
	<p align="center"><a href="style/images/shouji.png" target="_blank"><img src="style/images/shouji.png" height="40px"></a></p>	</td>
	<td><p align="center"><input name="shouji.png" type="file"/><input name="" type="Submit" class="button" value="保存"/></p></td>
	</tr>
	 </form>     
</table>

<table name="form1" width="100%" style="padding:0;margin:0;" cellspacing="0" cellpadding="0" class="tableBorder">
	<br/>
	<tr>
    <td>	
		<p>1、企业模板由志远网络制作</p>
		<p>2、在线技术支持，970907509，尽量解答</p>
		<p>3、联系我们可以定制你想要的企业模板主题，唯一属于你的zblog模板</p>
        <p>模板使用率少的话，更有利搜索引擎体验度，利于SEO；</p>
	</td>
	
	</tr>	
</table>


<?php } if($act == 'other'){?>
<form id="form2" name="form2" method="post">	
    <table width="100%" style="padding:0;margin:0;" cellspacing="0" cellpadding="0" class="tableBorder">
		<tr>
			<th width="15%"><p align="center">选项名称</p></th>
			<th width="50%"><p align="center">选项内容</p></th>
			<th width="25%"><p align="center">选项说明</p><?php if (function_exists('CheckIsRefererValid')) {echo '<input type="hidden" name="csrfToken" value="' . $zbp->GetCSRFToken() . '">';}?></th>
		</tr>
		<tr>
			<td><label for="title"><p align="center">站点title标题</p></label></td>
			<td><p align="left"><input type="text" name="title" id="title"style="width:98%;" value="<?php echo $zbp->Config('bluecms')->title;?>"/></p></td>
			<td><p align="left">自定义网站首页title标题</p></td>
		</tr>
		<tr>
			<td><label for="keywords"><p align="center">关键词</p></label></td>
			<td><p align="left"><input type="text" name="keywords" id="title"style="width:98%;" value="<?php echo $zbp->Config('bluecms')->keywords;?>"/></p></td>
			<td><p align="left">自定义网站关键词，多个关键词用英文逗号隔开</p></td>
		</tr>
		<tr>
			 <td><label for="description"><p align="center">网站描述</p></label></td>
			<td><p align="left"><textarea name="description" type="text" id="description" style="width:98%;"><?php echo $zbp->Config('bluecms')->description;?></textarea></p></td>
			<td><p align="left">自定义网站描述</p></td>
		</tr>
		<tr>
			<td><label for="separator"><p align="center">标题分隔符</p></label></td>
			<td><p align="left"><input type="text" name="separator" id="title"style="width:98%;" value="<?php echo $zbp->Config('bluecms')->separator;?>"/></p></td>
			<td><p align="left">网站title标题分隔符</p></td>
		</tr>
		<tr>
			<td><label for="facebook"><p align="center">幻灯片链接1</p></label></td>
			<td><p align="left"><input type="text" name="link1" id="title"style="width:98%;" value="<?php echo $zbp->Config('bluecms')->link1;?>"/></p></td>
			<td><p align="left">请输入第一张幻灯片链接地址</p></td>
		</tr>
		<tr>
			<td><label for="twitter"><p align="center">幻灯片链接2</p></label></td>
			<td><p align="left"><input type="text" name="link2" id="title"style="width:98%;" value="<?php echo $zbp->Config('bluecms')->link2;?>"/></p></td>
			<td><p align="left">请输入第二张幻灯片链接地址</p></td>
		</tr>
        <tr>
			<td><label for="twitter"><p align="center">幻灯片链接2</p></label></td>
			<td><p align="left"><input type="text" name="link3" id="title"style="width:98%;" value="<?php echo $zbp->Config('bluecms')->link3;?>"/></p></td>
			<td><p align="left">请输入第三张幻灯片链接地址</p></td>
		</tr>
        <tr>
			<td><label for="twitter"><p align="center">幻灯片链接2</p></label></td>
			<td><p align="left"><input type="text" name="link4" id="title"style="width:98%;" value="<?php echo $zbp->Config('bluecms')->link4;?>"/></p></td>
			<td><p align="left">请输入第四张幻灯片链接地址</p></td>
		</tr>


		<tr>
			<td><label for="tongji"><p align="center">统计代码</p></label></td>
			<td><p align="left"><textarea rows="8" name="tongji" type="text" id="tongji" style="width:98%;"><?php echo $zbp->Config('bluecms')->tongji;?></textarea></p></td>
			<td><p align="left">添加统计代码</p></td>
		</tr>
		<tr>
			<td><label for="clearSetting"><p align="center">幻灯片显示设置</p></label></td>		
		
			<td colspan="2"><p><input type="text" id="ban1" name="ban1" class="checkbox" value="<?php echo $zbp->Config('bluecms')->ban1;?>"/> <input type="text" id="ban2" name="ban2" class="checkbox" value="<?php echo $zbp->Config('bluecms')->ban2;?>"/> <input type="text" id="ban3" name="ban3" class="checkbox" value="<?php echo $zbp->Config('bluecms')->ban3;?>"/> <input type="text" id="ban4" name="ban4" class="checkbox" value="<?php echo $zbp->Config('bluecms')->ban4;?>"/><span style="color:#f00;">最多四张图片，按顺序排列是否显示</span></p></td>
			</tr>
		<tr>
			<td><label for="clearSetting"><p align="center">清除主题配置</p></label></td>		
		
			<td colspan="2"><p><input type="text" id="clearSetting" name="clearSetting" class="checkbox" value="<?php echo $zbp->Config('bluecms')->clearSetting;?>"/> <span style="color:#f00;"> 开启后，当在主题管理中更换主题后，该主题的所有设置都将被清空，请谨慎操作！</span></p></td>
			</tr>
	</table>

	<br />
	<input name="submit" type="Submit" class="button" style="width:15%;" value="保存"/>
</form>


<?php } if($act == 'contact'){?>
<form id="form2" name="form2" method="post">	
    <table width="100%" style="padding:0;margin:0;" cellspacing="0" cellpadding="0" class="tableBorder">
		<tr>
			<th width="15%"><p align="center">选项名称</p></th>
			<th width="50%"><p align="center">选项内容</p></th>
			<th width="25%"><p align="center">选项说明</p><?php if (function_exists('CheckIsRefererValid')) {echo '<input type="hidden" name="csrfToken" value="' . $zbp->GetCSRFToken() . '">';}?></th>
		</tr>
		<tr>
			<td><label for="add1"><p align="center">售前客服qq</p></label></td>
			<td><p align="left"><input type="text" name="add1" id="title"style="width:98%;" value="<?php echo $zbp->Config('bluecms')->add1;?>"/></p></td>
			<td><p align="left">售前客服qq</p></td>
		</tr>
		<tr>
			<td><label for="add2"><p align="center">售后客服qq</p></label></td>
			<td><p align="left"><input type="text" name="add2" id="title"style="width:98%;" value="<?php echo $zbp->Config('bluecms')->add2;?>"/></p></td>
			<td><p align="left">售后客服qq</p></td>
		</tr>

		<tr>
			<td><label for="add3"><p align="center">联系人</p></label></td>
			<td><p align="left"><input type="text" name="add3" id="title"style="width:98%;" value="<?php echo $zbp->Config('bluecms')->add3;?>"/></p></td>
			<td><p align="left">联系人</p></td>
		</tr>

		<tr>
			<td><label for="add4"><p align="center">联系电话</p></label></td>
			<td><p align="left"><input type="text" name="add4" id="title"style="width:98%;" value="<?php echo $zbp->Config('bluecms')->add4;?>"/></p></td>
			<td><p align="left">请输入联系电话</p></td>
		</tr>
		<tr>
			<td><label for="add5"><p align="center">联系手机</p></label></td>
			<td><p align="left"><input type="text" name="add5" id="title"style="width:98%;" value="<?php echo $zbp->Config('bluecms')->add5;?>"/></p></td>
			<td><p align="left">请输入手机号码</p></td>
		</tr>
		<tr>
			<td><label for="add6"><p align="center">邮箱</p></label></td>
			<td><p align="left"><input type="text" name="add6" id="title"style="width:98%;" value="<?php echo $zbp->Config('bluecms')->add6;?>"/></p></td>
			<td><p align="left">请输入邮箱地址</p></td>
		</tr>
		<tr>
			<td><label for="add7"><p align="center">地址</p></label></td>
			<td><p align="left"><input type="text" name="add7" id="title"style="width:98%;" value="<?php echo $zbp->Config('bluecms')->add7;?>"/></p></td>
			<td><p align="left">请输入地址</p></td>
		</tr>
		<tr>
			<td><label for="add8"><p align="center">公司简介</p></label></td>
			<td><p align="left"><textarea rows="12" name="add8" type="text" id="tongji" style="width:98%;"><?php echo $zbp->Config('bluecms')->add8;?></textarea></p></td>
			<td><p align="left">请输公司介绍</p></td>
		</tr>
        <tr>
			<td><label for="add8"><p align="center">Copyright底部版权</p></label></td>
			<td><p align="left"><textarea rows="12" name="add9" type="text" id="tongji" style="width:98%;"><?php echo $zbp->Config('bluecms')->add9;?></textarea></p></td>
			<td><p align="left">Copyright底部版权</p></td>
		</tr>
		
	</table>

	<br />
	<input name="submit3" type="Submit" class="button" style="width:15%;" value="保存"/>
</form>
	<?php } if($act == 'fenlei'){?>
<form id="form2" name="form2" method="post">	
    <table width="100%" style="padding:0;margin:0;" cellspacing="0" cellpadding="0" class="tableBorder">
		<tr>
			<th width="15%"><p align="center">选项名称</p></th>
			<th width="20%"><p align="center">选项内容</p></th>
            <th width="20%"><p align="center">连接</p></th>
			<th width="25%"><p align="center">选项说明</p><?php if (function_exists('CheckIsRefererValid')) {echo '<input type="hidden" name="csrfToken" value="' . $zbp->GetCSRFToken() . '">';}?></th>
		</tr>
		<tr>
			<td><label for="chanpin"><p align="center">首页图片位置id设置</p></label></td>
			<td><p align="left"><input type="text" name="chanpin" id="title"style="width:98%;" value="<?php echo $zbp->Config('bluecms')->chanpin;?>"/></p></td>
            <td><p align="left"><input type="text" name="chanpinurl" id="title"style="width:98%;" value="<?php echo $zbp->Config('bluecms')->chanpinurl;?>"/></p></td>
			<td><p align="left">首页图片位置</p></td>
		</tr>
		<tr>
			<td><label for="news"><p align="center">次id设置</p></label></td>
			<td><p align="left"><input type="text" name="news" id="title"style="width:98%;" value="<?php echo $zbp->Config('bluecms')->news;?>"/></p></td>
            <td><p align="left"><input type="text" name="newsurl" id="title"style="width:98%;" value="<?php echo $zbp->Config('bluecms')->newsurl;?>"/></p></td>
			<td><p align="left">次id设置</p></td>
		</tr>
        <tr>
			<td><label for="news"><p align="center">次id设置</p></label></td>
			<td><p align="left"><input type="text" name="news1" id="title"style="width:98%;" value="<?php echo $zbp->Config('bluecms')->news1;?>"/></p></td>
            <td><p align="left"><input type="text" name="news1url" id="title"style="width:98%;" value="<?php echo $zbp->Config('bluecms')->news1url;?>"/></p></td>
			<td><p align="left">次id设置</p></td>
		</tr>
        <tr>
			<td><label for="news"><p align="center">次id设置</p></label></td>
			<td><p align="left"><input type="text" name="news2" id="title"style="width:98%;" value="<?php echo $zbp->Config('bluecms')->news2;?>"/></p></td>
            <td><p align="left"><input type="text" name="news2url" id="title"style="width:98%;" value="<?php echo $zbp->Config('bluecms')->news2url;?>"/></p></td>
			<td><p align="left">次id设置</p></td>
		</tr>
	</table>

	<br />
	<input name="submit2" type="Submit" class="button" style="width:15%;" value="保存"/>
</form>
<?php } if($act == 'nav'){?>
<?php    				   
if($zbp->Config('bluecms')->HasKey('NavArray')){        	 		
	$NavArray = json_decode($zbp->Config('bluecms')->NavArray,true);    	  		 		
}else{     			  		
	$NavArray = array();       	   	
}    			 	  	
?>
<div style="line-height:25px; color:#FF0000">导航栏名称跟链接请参考 （模块管理  》 导航栏）。</div>
    <table width="100%" style="padding:0;margin:0;" cellspacing="0" cellpadding="0" class="tableBorder">
    
		<tr>
			<th width="5%"><p align="center">ID</p></th>
			<th width="15%"><p align="center">导航名称</p></th>
            <th width="18%"><p align="center">导航链接</p></th>
            <th width="15%"><p align="center">导航图标</p></th>
            <th width="15%"><p align="center">二级菜单ID</p></th>
            <th width="5%"><p align="center">排序</p></th>
			<th width="15%"><p align="center">操作</p><?php if (function_exists('CheckIsRefererValid')) {echo '<input type="hidden" name="csrfToken" value="' . $zbp->GetCSRFToken() . '">';}?></th>
		</tr>
        <form action="navsave.php?type=add" method="post">
		<tr>
			<td><label for="chanpin"><p align="center">导航ID</p></label></td>
			<td><p align="center"><input type="text" name="navname" id="navname" style="width:90%;" value=""/></p></td>
            <td><p align="center"><input type="text" name="navurl" id="navurl" style="width:90%;" value=""/></p></td>
            <td><p align="center"><input type="text" name="navico" id="navico" style="width:90%;" value=""/></p></td>
            <td><p align="center"><input type="text" name="twomenu" id="twomenu" style="width:90%;" value=""/></p></td>
            <td><p align="center"><input type="text" name="paixu" id="paixu" style="width:90%;" value=""/></p></td>
			<td><p align="center"><input type="submit" class="submit add" value="增加"/></p></td>
		</tr>
		</form>
        <?php
foreach ($NavArray as $key => $value) {    		  		  
	echo <<<eof
		<form action="navsave.php?type=edit" method="post">
		<tr>
			<td><label for="chanpin"><p align="center">{$key}</p></label><input type="hidden" name="editid" value="{$key}"></td>
			<td><p align="center"><input type="text" name="navname" id="navname" style="width:90%;" value="{$value['navname']}"/></p></td>
            <td><p align="center"><input type="text" name="navurl" id="navurl" style="width:90%;" value="{$value['navurl']}"/></p></td>
            <td><p align="center"><input type="text" name="navico" id="navico" style="width:90%;" value="{$value['navico']}"/></p></td>
            <td><p align="center"><input type="text" name="twomenu" id="twomenu" style="width:90%;" value="{$value['twomenu']}"/></p></td>
            <td><p align="center"><input type="text" name="paixu" id="paixu" style="width:90%;" value="{$value['paixu']}"/></p></td>
			<td><p align="center"><input type="submit" class="submit revise" value="修改"/>
						<input type="button" class="submit delete" value="删除" onclick="if(confirm('您确定要进行删除操作吗？')){location.href='navsave.php?type=del&id={$key}'}"/></p></td>
		</tr>				
		</form>
eof;
	} ?>
	</table>


<?php
    }	
?>
</div>
</div>
<script type="text/javascript">
ActiveTopMenu("topmenu_bluecms");
</script> 
<?php
require $blogpath . 'zb_system/admin/admin_footer.php';
RunTime();
?>