<div class="main">

    <form method="post" id="form" class=" form-control-sm form form-lg">
        <div class="form-group">
            <label class="control-label">栏目缓存方案<input type="checkbox" name="_HttpcacheSolutionId" /></label>
            <div class="controls form-inline">
                <select name="HttpcacheSolutionId" id="HttpcacheSolutionId" class="form-control form-control-sm ui-convertSelect" data-custom-params="url:'@Url.Action("LoadListByIds","HttpCacheSolution")',textField:'Name'">
                    <option value="0">不缓存</option>
                </select>
                <button type="button" class="btn btn-default ui-dialog" data-custom-params="title:'选择http缓存方案',url:'@Url.Action("Select","HttpCacheSolution")?objname=#HttpcacheSolutionId',width:'80%',height:'90%',target:'_self'">选择方案</button>
                <span class="help-block">http缓存方案请到系统>系统配置>http缓存方案中设置</span>
            </div>
        </div>

        <div class="form-group box_model">
            <label class="control-label" field="tableId">
                信息来源表
                <input type="checkbox" name="_tableId" />
            </label>
            <div class="controls form-inline">
                <select name="tableId" id="tableId" class="form-control form-control-sm ui-convertSelect" data-custom-params="url:'@Url.Action("LoadListByIds","InfoTable")',textField:'Remark'">
                    <option value="">请选择信息表</option>
                </select>
                <button type="button" class="btn btn-default ui-dialog" data-custom-params="title:'选择信息表',url:'@Url.Action("Select","InfoTable")?siteid=@ViewBag.CurrentSiteId&objname=#tableId',width:'80%',height:'90%',target:'_self'">选择信息表</button>
                <span class="help-block">只对信息页栏目有效</span>
            </div>
        </div>


        <div class="box_template">
            <div class="box_pc">
                <div class="form-group box_template">
                    <label class="control-label">
                        栏目模板
                        <input type="checkbox" name="_template_set_template" />
                    </label>
                    <div class="controls form-inline">
                        <input type="text" placeholder="栏目页的模板文件" maxlength="100" id="template_set_template" name="template_set_template" class="form-control" />
                        <button type="button" class="btn btn-default btn-sm ui-dialog" data-custom-params="title:'选择栏目模板',url:'@Url.Action("Select","TemplateManager")?objname=#template_set_template',width:'80%',height:'90%',target:'self'">选择</button>
                        <span class="help-block"></span>
                    </div>
                </div>

                <div class="form-group box_template_detail">
                    <label class="control-label">
                        内容页模版
                        <input type="checkbox" name="_template_set_templateDetail" />
                    </label>
                    <div class="controls form-inline">
                        <input type="text" placeholder="内容页的模板文件" maxlength="100" id="template_set_templateDetail" name="template_set_templateDetail" class="form-control" />
                        <button type="button" class="btn btn-default btn-sm ui-dialog" data-custom-params="title:'选择内容页模板',url:'@Url.Action("Select","TemplateManager")?objname=#template_set_templateDetail',width:'80%',height:'90%',target:'self'">选择</button>
                        <span class="help-block"></span>
                    </div>
                </div>

            </div>
        </div>


        <div class="form-group">
            <label class="control-label">
                目标窗口
                <input type="checkbox" name="_target" />
            </label>
            <div class="controls">
                <label class="radio-inline">
                    <input type="radio" name="target" id="target" checked value="_self">本窗口
                </label>
                <label class="radio-inline">
                    <input type="radio" name="target" id="target" value="_blank">新窗口
                </label>
                <span class="help-block"></span>
            </div>
        </div>


        @*<div class="form-group">
            <label class="control-label">
                栏目应用<input type="checkbox" name="_is_pc_wap" />
            </label>
            <div class="controls">
                <label class="checkbox-inline">
                    <input type="checkbox" name="isPc" id="isPc" value="1" checked>PC端
                </label>
                <label class="checkbox-inline">
                    <input type="checkbox" name="isWap" id="isWap" value="1" checked>手机端
                </label>
                <span class="help-block"></span>
            </div>
        </div>*@

        <div class="form-group box_show">
            <label class="control-label">
                是否显示
                <input type="checkbox" name="_show" />
            </label>
            <div class="controls">
                <label class="radio-inline">
                    <input type="radio" name="show" id="show" checked value="1">显示
                </label>
                <label class="radio-inline">
                    <input type="radio" name="show" id="show" value="0">隐藏
                </label>
                <span class="help-block"></span>
            </div>
        </div>

        <div class="postarea">
            <div class="form-group">
                <div class="controls">
                    <input type="hidden" name="ids" id="ids" />
                    <button type="button" class="btn btn-sm btn-primary ui-pagePost" data-custom-params="url:'@Url.Action()',callBack:'PostBack',beforeExecute:'BeforePost',accordingObj:'#form'">提交</button>
                    <button type="button" class="btn btn-sm btn-default ui-closeDialog">关闭</button>
                </div>
            </div>
        </div>
    </form>
</div>
<script type="text/javascript">
    var $ids = $("#ids");
    var $parentIds = parent.$(".checked-item");
    var ids = $parentIds.GetValue();
    $ids.val(ids)

    function BeforePost()
    {
        var ids = $ids.val();
        if(ids=="")
        {
            Msg("请选择要设置的栏目!");
            return false;
        }
        return true;
    }
</script>
