<div class="main-right-box">
<h5>编辑专题</h5>
<div class="blank20"></div>
<div class="box">


<?php $root = config::get('base_url').'/ueditor';?>
    <script type="text/javascript" charset="utf-8" src="{$root}/ueditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="{$root}/ueditor.all.min.js"> </script>
    <script type="text/javascript" charset="utf-8" src="{$root}/lang/zh-cn/zh-cn.js"></script>
    <script type="text/javascript" charset="utf-8" src="{$root}/addCustomizeButton.js"></script>

<form method="post" name="form1" action="<?php if(front::$act=='edit') $id="/id/".$data[$primary_key]; else $id=''; echo modify("/act/".front::$act."/table/".$table.$id);?>" enctype="multipart/form-data" onsubmit="return checkform();">
<input type="hidden" name="onlymodify" value=""/>

    <script type="text/javascript" src="{$base_url}/js/upimg/dialog.js"></script>
    <link href="{$skin_admin_path}/css/dialog.css" rel="stylesheet" type="text/css" />
    
    
    
    
<script>
var base_url = '{$base_url}';
</script>


<ul class="nav nav-tabs" role="tablist">
<li role="presentation" class="active"><a href="#tag1" aria-controls="#tag1" role="tab" data-toggle="tab">基本信息</a></li>
<li role="presentation"><a href="#tag2" aria-controls="#tag2" role="tab" data-toggle="tab">SEO信息</a></li>
<li role="presentation"><a href="#tag3" aria-controls="#tag3" role="tab" data-toggle="tab">属性设置</a></li>
<li role="presentation"><a href="#tag4" aria-controls="#tag4" role="tab" data-toggle="tab">扩展信息</a></li>
<li role="presentation"><a href="#tag5" aria-controls="#tag5" role="tab" data-toggle="tab">权限审核</a></li>
</ul>



<div class="tab-content">

<!-- 基本信息 -->
<div role="tabpanel" class="tab-pane active" id="tag1">

<div class="row">
<div class="col-xs-4 col-sm-4 col-md-3 col-lg-2 text-right">标题</div>
<div class="col-xs-8 col-sm-7 col-md-7 col-lg-5 text-left">
{form::getform('title',$form,$field,$data)}
<span class="tips" data-toggle="tooltip" data-html="ture" data-placement="right" title="专题标题！"></span>
</div>
</div>
<div class="clearfix"></div>

<div class="row">
<div class="col-xs-4 col-sm-4 col-md-3 col-lg-2 text-right">专题副标题</div>
<div class="col-xs-8 col-sm-7 col-md-7 col-lg-5 text-left">
{form::getform('subtitle',$form,$field,$data)}
<span class="tips" data-toggle="tooltip" data-html="ture" data-placement="right" title="辅助性专题副标题！"></span>
</div>
</div>
<div class="clearfix blank20"></div>


</div>


<!-- SEO信息 -->
<div role="tabpanel" class="tab-pane" id="tag2">

<div class="row">
<div class="col-xs-4 col-sm-4 col-md-3 col-lg-2 text-right">关键词</div>
<div class="col-xs-8 col-sm-7 col-md-7 col-lg-5 text-left">
{form::getform('keyword',$form,$field,$data)}
<span class="tips" data-toggle="tooltip" data-html="ture" data-placement="right" title="辅助性专题网页关键词！"></span>
</div>
</div>
<div class="clearfix blank20"></div>

<div class="row">
<div class="col-xs-4 col-sm-4 col-md-3 col-lg-2 text-right">描述</div>
<div class="col-xs-8 col-sm-7 col-md-7 col-lg-5 text-left">
{form::getform('description',$form,$field,$data)}
<span class="tips" data-toggle="tooltip" data-html="ture" data-placement="right" title="辅助性专题网页描述！"></span>
</div>
</div>
<div class="clearfix blank20"></div>

</div>


<!-- 属性设置 -->
<div role="tabpanel" class="tab-pane" id="tag3">

<div class="row">
<div class="col-xs-4 col-sm-4 col-md-3 col-lg-2 text-right">模板</div>
<div class="col-xs-8 col-sm-7 col-md-7 col-lg-5 text-left">
{form::getform('template',$form,$field,$data)}
<span class="tips" data-toggle="tooltip" data-html="ture" data-placement="right" title="选择专题模板样式！"></span>
</div>
</div>
<div class="clearfix"></div>

<div class="row">
<div class="col-xs-4 col-sm-4 col-md-3 col-lg-2 text-right">是否生成</div>
<div class="col-xs-8 col-sm-7 col-md-7 col-lg-5 text-left">
{form::getform('ishtml',$form,$field,$data)}
<span class="tips" data-toggle="tooltip" data-html="ture" data-placement="right" title="选择专题是否生成HTML静态页面！"></span>
</div>
</div>
<div class="clearfix blank20"></div>



</div>


<!-- 扩展信息 -->
<div role="tabpanel" class="tab-pane" id="tag4">

<div class="row">
<div class="col-xs-4 col-sm-4 col-md-3 col-lg-2 text-right">专题文字内容</div>
<div class="col-xs-8 col-sm-8 col-md-9 col-lg-10 text-left">
{form::getform('specialcontent',$form,$field,$data)}

<div class="fieldset flash" id="fsUploadProgress">
<span class="legend"></span>
</div>
<div id="divStatus"></div>
</div>
<div class="blank30"></div>
</div>

<div class="row">
<div class="col-xs-4 col-sm-4 col-md-3 col-lg-2 text-right">横幅</div>
<div class="col-xs-8 col-sm-7 col-md-7 col-lg-5 text-left">
{form::getform('banner',$form,$field,$data)}
<span class="tips" data-toggle="tooltip" data-html="ture" data-placement="right" title="专题横幅图片！"></span>
</div>
</div>
<div class="clearfix"></div>


    
   <style type="text/css">
	#specialcontent {min-height:500px;}
</style>
</div>



<!-- 权限审核 -->
<div role="tabpanel" class="tab-pane" id="tag5">
<div class="table-responsive">
<table class="table table-hover">
<thead>
<tr class="th">
<th width="38%">用户组</th>
<th  width="30%">浏览</th>
<th  width="30%">下载</th>
</tr>
<thead>
<tbody>
{loop usergroup::getInstance()->group $group}
<?php if($group['groupid']=='888') continue; ?>
<tr>
<td align="center">{$group.name}</td>
<td align="center">{form::checkbox("_ranks[".$group['groupid']."][view]",-1, @$data['_ranks'][$group['groupid']]['view'])}</td>
<td align="center">{form::checkbox("_ranks[".$group['groupid']."][down]",-1, @$data['_ranks'][$group['groupid']]['down'])}</td>
</tr>
{/loop}
</tbody>
</table>
<div class="blank30"></div>
<div class="alert alert-warning alert-dismissible" role="alert">
  <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  <span class="glyphicon glyphicon-warning-sign"></span>	 勾选为该用户组禁止浏览或下载
</div>
</div>
</div>
</div>

<div class="line"></div>


<div class="blank20"></div>
<input type="submit" name="submit" value=" 提交 " class="btn btn-primary" />
</form>

</div>

<div class="blank30"></div>
</div>
</div>
