<!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/Article/addclass')}" style="float:right">添加分类</a></header>
	<div class="panel-body">

  <table class="m-table m-table-row"><thead><tr><th width="18%">排序</th><th width="22%">分类名称</th><th width="22%">SEO名称</th><th width="38%">操作</th></tr></thead></table>
  {loop $classdata $classlist}
  <form method="post" action="{echo U('Admin/Article/editclass')}" id="contactform">__TOKEN__
  	<input name="classid"t type="hidden" value="{$classlist['id']}"><input name="classcid" type="text" value="{$classlist['cid']}" style="min-width:35px;">
  	<input name="classname" type="text" value="{$classlist['classname']}">
  	<input name="classseo" type="text" value="{$classlist['classseo']}">
  	<input type="submit" class="button" name="submit" value="修改" style="line-height:20px;list-style-type: none;">&nbsp;&nbsp;<a href="javascript:DoEmpty('{$classlist['id']}');" class="button button-red" style="line-height:20px;list-style-type: none;">删除</a></td></tr>
</form>
{/loop}
</div></section>
	
<script language=JavaScript>
<!--
function DoEmpty(params)
{
if (confirm("真的要删除分类吗？删除后此分类相关的所有内容都将被删除并且无法恢复！"))
window.location = "{echo U('Admin/Article/delclass',array('id'=>''))}" + params ;
}
//-->
</script>
</div></section></section></section></section></section></body></html>