<!DOCTYPE html>
<html><head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 
	<meta charset="utf-8">
	<title>GCMS后台管理</title>
	<meta http-equiv="X-UA-Compatible" content="chrome=1">
	<link rel="stylesheet" href="__PUBLIC__/Css/admincss.css" type="text/css">
	</head><body>
		<section class="hbox stretch">
			{template /Admin/Index/navli.html}
			<section id="content">
				<section class="vbox">
					{template /Admin/Index/header.html}
					<section class="scrollable bg-light lter">
						<section id="docs">
							<div class="clearfix padder">
								
								
<section class="panel">
	<header class="panel-heading">
		<nav class="m-crumb m-crumb-arr">
		<ul class="f-cb">
			<li><a href="#">GCMS</a></li>
			<li><a href="#">网站设置</a></li>
			<li>导航栏管理</li>
    </ul>
    </nav>
  </header>
</section>
	
<section class="panel">
	<header class="panel-heading">◆ 导航栏管理 <a href="{echo U('Admin/Index/addnav')}" style="float:right">添加链接</a></header>
	<div class="panel-body">



               	<table class="m-table m-table-row">
    <thead>
        <tr><th width="18%">排序</th><th width="18%">导航名称</th><th width="22%">URL</th><th width="14%">位置</th><th width="28%">操作</th></tr>
    </thead></table>
                	{loop $navdata $navlist}

													<form method="post" action="{echo U('Admin/Index/editnav')}" id="contactform">__TOKEN__
													
													<input name="navid" type="hidden" value="{$navlist['id']}"><input name="navcid" type="text" value="{$navlist['cid']}" style="min-width:100px;">
													
													<input name="linkname" type="text" value="{$navlist['linkname']}" style="min-width:100px;">
													
													<input name="link" type="text" value="{$navlist['link']}">
													    <select name="linkclass" style="min-width:100px;">
                                    <option value="0" {if $navlist['linkclass']=='0'}selected{/if}>主导航栏</option>
                                    <option value="1" {if $navlist['linkclass']=='1'}selected{/if}>顶部导航栏</option>
                                    <option value="2" {if $navlist['linkclass']=='2'}selected{/if}>底部导航栏</option>
                                </select>

													<input type="submit" class="button" name="submit" value="修改" style="line-height:20px;list-style-type: none;">&nbsp;&nbsp;<a href="javascript:DoEmpty('{$navlist['id']}');" class="button button-red" style="line-height:20px;list-style-type: none;">删除</a></td></tr>
</form>

   {/loop}
   
	
	</section>
	
<script language=JavaScript>
<!--
function DoEmpty(params)
{
if (confirm("真的要删除吗？！"))
window.location = "{echo U('Admin/Index/delnav',array('id'=>''))}" + params ;
}
//-->
</script>
</div></section></section></section></section></section></body></html>