<!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">◆ 文章管理</header>
	<div class="panel-body">
<br />
<select name="pageselect" onchange="self.location.href=options[selectedIndex].value" >
<option value="{echo U('Admin/Article/article')}">显示全部</option>	
{loop $classdata $classlist}
<option value="{echo U('Admin/Article/article',array('id'=>$classlist['id']))}" {if $classlist['id']==getGp('id')}selected{/if}>{$classlist['classname']}</option>
					{/loop}
</select>

<ul class="list-text-12-FCD-app">
	{loop $articledata $articlelist}
	<li><div class="lef">[ID:{$articlelist['id']}] [{$articlelist['gcmsclass']}]  [<a href="#">{$articlelist['gcmstitle']}</a>] </div><div class="rig">
		<a href="javascript:DoEmpty('{$articlelist['id']}');">【删除】</a><a href="{echo U('Admin/Article/editarticle',array('id'=>$articlelist['id']))}">【编辑】</a>
		{if $articlelist['status']==0}
		<a href="{echo U('Admin/Article/statusarticle',array('id'=>$articlelist['id'],'status'=>'1'))}">【推荐】</a>
		<a href="{echo U('Admin/Article/statusarticle',array('id'=>$articlelist['id'],'status'=>'2'))}">【头条】</a>
		{/if}
		{if $articlelist['status']==1}
		<a href="{echo U('Admin/Article/statusarticle',array('id'=>$articlelist['id'],'status'=>'0'))}">【普通】</a>
		<a href="{echo U('Admin/Article/statusarticle',array('id'=>$articlelist['id'],'status'=>'2'))}">【头条】</a>
		{/if}
		{if $articlelist['status']==2}
		<a href="{echo U('Admin/Article/statusarticle',array('id'=>$articlelist['id'],'status'=>'0'))}">【普通】</a>
		<a href="{echo U('Admin/Article/statusarticle',array('id'=>$articlelist['id'],'status'=>'1'))}">【推荐】</a>
		{/if}</div></li>
	{/loop}<li><div class="lef">{$ccpages}</div></li>
                </ul>
-
	
	</section>
	
<script language=JavaScript>
<!--
function DoEmpty(params)
{
if (confirm("真的要删除这篇文章吗？删除后无法恢复！"))
window.location = "{echo U('Admin/Article/delarticle',array('id'=>''))}" + params ;
}
//-->
</script>
</div></section></section></section></section></section></body></html>