{template "nheader.html"}
<script type="text/javascript">
$(function() {
	{if $error}
	dr_tips('<font color=red>{$error.msg}</font>', 3);
	d_tips('{$error.error}', 0);
	{/if}
});
// 修改栏目时的页面跳转
function show_category_field(catid) {
    {if $is_category_field}
        window.location.href = '{dr_url(APP_DIR."/home/".$ci->router->method, array("id"=>$data.id))}&catid='+catid;
    {/if}
}
function setflag(i) {
    if (i == -1) {
        $('.flag_back').show();
        $('#flag_back').show();
    } else {
        $('#flag_back').hide();
        $('.flag_back').hide();
    }
}
</script>
<form class="form-horizontal" action="" method="post" id="myform" name="myform">
<input name="action" id="dr_action" type="hidden" value="back" />
<input name="page" id="page" type="hidden" value="{$page}" />
<input name="backurl" type="hidden" value="{$backurl}" />
<input name="dr_id" id="dr_id" type="hidden" value="{$data.id}" />
<input name="dr_module" id="dr_module" type="hidden" value="{APP_DIR}" />
    <div class="page-bar">
        <ul class="page-breadcrumb mylink">
            {$menu.link}
        </ul>
        <ul class="page-breadcrumb myname">
            {$menu.name}
        </ul>
        <div class="page-toolbar">
            <div class="btn-group pull-right">
                <button type="button" class="btn green btn-sm btn-outline dropdown-toggle" data-toggle="dropdown" aria-expanded="false" data-hover="dropdown"> {fc_lang('操作菜单')}
                    <i class="fa fa-angle-down"></i>
                </button>
                <ul class="dropdown-menu pull-right" role="menu">
                    {loop $menu.quick $t}
                    <li>
                        <a href="{$t.url}">{$t.icon} {$t.name}</a>
                    </li>
                    {/loop}
                    <li class="divider"> </li>
                    <li>
                        <a href="javascript:window.location.reload();">
                            <i class="icon-refresh"></i> {fc_lang('刷新页面')}</a>
                    </li>
                </ul>
            </div>
        </div>
    </div>

    <div class="row" style="margin-top:20px;margin-bottom: 50px;">
        <div class="col-md-9">
            <div class="portlet light bordered">
                <div class="portlet-title">
                    <div class="caption">
                        <span class="caption-subject font-green sbold uppercase">{fc_lang('基本内容')}</span>
                    </div>
                </div>
                <div class="portlet-body">
                    <div class="form-body">
                        <div class="form-group">
                            <label class="col-md-2 control-label">{fc_lang('栏目分类')}：</label>
                            <div class="col-md-9">
                                <label>{$select}</label>
                            </div>
                        </div>
                        {str_replace('col-md-9', 'col-md-10', $myfield)}
                    </div>
                </div>
            </div>

            <div class="portlet light bordered">
                <div class="portlet-title">
                    <div class="caption">
                        <span class="caption-subject font-green sbold uppercase">{fc_lang('审核处理')}</span>
                    </div>
                </div>
                <div class="portlet-body">
                    <div class="form-body">
                        <div class="form-group">
                            <label class="col-md-2 control-label">{fc_lang('状态')}：</label>
                            <div class="col-md-9">
                                <div class="radio-list">
                                    <label class="radio-inline"><input type="radio" onclick="setflag(this.value)" name="flagid" value="1"  {if !$data['backinfo']}checked{/if} /> {fc_lang('通过')} </label>
                                    <label class="radio-inline"><input type="radio" onclick="setflag(this.value)" name="flagid" value="-1"  {if $data['backinfo']}checked{/if} /> {fc_lang('退回')} </label>

                                </div>
                            </div>
                        </div>
                        <div class="form-group flag_back" style="{if !$data.backinfo}display:none;{/if}">
                            <label class="col-md-2 control-label">{fc_lang('退回理由')}：</label>
                            <div class="col-md-9">
                                <textarea style="height:80px;width:100%" id="flag_back" name="backcontent">{$data.backinfo.backcontent}</textarea>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-md-3">
            <div class="portlet light bordered">
                <div class="portlet-body">
                    <div class="form-body">
                        {$sysfield}
                    </div>
                </div>
            </div>
        </div>
    </div>


    <div class="myfooter">
        <div class="row">
            <div class="portlet-body form">
                <div class="form-body">
                    <div class="form-actions">
                        <div class="row">
                            <div class="col-md-12 text-center">
                                <button type="submit" class="btn green"> <i class="fa fa-save"></i> {fc_lang('提交')}</button>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

</form>
{template "footer.html"}