@using GBLab.Entities
@using GBLab.Common.Utils
@using GBLab.Common.Expand

@model GBLab.Entities.T_CmsAdItem
@{
    Layout = "~/Areas/Manage/Views/DefaultSkin/Shared_Back/_Layout_ContentBase.cshtml";

    // 权限列表
    var actions = ViewData["actions"] as Dictionary<string, string>;

    // 树形链接
    string dataTreeUrl = ViewData["dataTreeUrl"].ToString();
}

@section Head{
}

@section JavaScript{
    @Html.Partial("~/Areas/Manage/Views/DefaultSkin/Shared_Back/_Layout_Head_Edit.cshtml")
    <script language="javascript" type="text/javascript">
        seajs.use(
            [
                // 全局配置
                "/App_Themes/Skin_Manage/Extend/helper/global/global_config.js?v=@(ViewBag.Version)"

                @* 可放大和触控的相册 *@
                , "/App_Themes/Skin_Manage/Extend/helper/plus/plus_images.js?v=@(ViewBag.Version)"
            ]
            , function (main) {

                var F_Image = new gblab_images.func();
                F_Image.controls.$imgs = $('#F_Image>div>img');
                F_Image.config.bgOpacity = 1;
                F_Image.init();

            }
        );
    </script>
}

<div data-options="region:'center',border:true">
    @Html.Hidden("IsNew", false)
    @Html.Hidden("ActionGUID", "")
    @Html.Hidden("Template", ViewData["Template"])
    @Html.Hidden("MvcMarkName", ViewData["MvcMarkName"])
    @Html.Hidden("MvcClassID", ViewData["MvcClassID"])
    @Html.HiddenFor(m => m.F_Id)
    @Html.HiddenFor(m => m.F_Guid)
    @Html.HiddenFor(m => m.F_MarkName)
    <div class="easyui-tabs" data-options="border:false,fit:true,plain:true">

        <div title="基本信息" style="padding:6px;">
            <table class="table">

                <tr>
                    <th class="tdright" style="width: 100px;">
                        ID GUID：<em></em>
                    </th>
                    <td colspan="5">
                        @(Model.F_Id) 【@(Model.F_Guid.ToString().ToUpper())】
                    </td>
                </tr>

                <tr>
                    <th class="tdright">
                        所属栏目：<em>*</em>
                    </th>
                    <td colspan="5">
                        @(Html.TextBoxFor(t => t.F_TypeId, "", new { @class = "easyui-combotree textbox", @style = "width:300px;", @required = "false", @url = dataTreeUrl, @disabled = @"disabled" }))
                        排序：@(Html.TextBoxFor(t => t.F_SortOrder, new { Class = "easyui-numberspinner w60 ", required = "true" }))（由高 -> 低）
                    </td>
                </tr>

                <tr>
                    <th class="tdright">
                        相关栏目：<em>*</em>
                    </th>
                    <td colspan="5">
                        @(Html.TextBoxFor(m => m.F_TypeIds, new { @class = "easyui-combotree textbox", @style = "width:500px;", @url = dataTreeUrl, @multiple = "true", @disabled = @"disabled" }))<span class="ico-Tree"></span>
                        <script>$(function () { $('#F_FromClassID').combotree('setValues', [@(Model.F_TypeIds)]); });</script>
                    </td>
                </tr>

                <tr>
                    <th class="tdright">
                        名称：<em>*</em>
                    </th>
                    <td colspan="5">
                        @(Model.F_Name)
                    </td>
                </tr>

                <tr>
                    <th class="tdright">
                        信息状态：
                    </th>
                    <td>
                        @Html.DropDownListFor(t => t.F_MarkStatus, GBLab.Common.Helper.SelectItem.GetSelectListItem(GBLab.Common.Utils.Dictionarys.IsStatus), new { @class = "easyui-combobox", @style = "width:120px;", @editable = "false", @disabled = @"disabled" })
                    </td>
                </tr>

                <tr>
                    <th class="tdright">
                        描述：<em></em>
                    </th>
                    <td colspan="5">
                        <div style="width:550px; height:120px; text-align:left;overflow:auto;">
                            @Html.Raw(Model.F_SubTitle)
                        </div>
                    </td>
                </tr>

                <tr>
                    <th class="tdright" style="width: 100px;">
                        广告位：<em></em>
                    </th>
                    <td colspan="5">
                        @(Model.F_CmsAdId)
                    </td>
                </tr>

                <tr>
                    <th class="tdright" style="width: 100px;">
                        广告链接：<em></em>
                    </th>
                    <td colspan="5">
                        @(Model.F_Url)
                    </td>
                </tr>

                <tr>
                    <th class="tdright" style="width: 100px;">
                        开始时间：<em></em>
                    </th>
                    <td colspan="5">
                        @(Model.F_TimeBegin)
                    </td>
                </tr>

                <tr>
                    <th class="tdright" style="width: 100px;">
                        结束时间：<em></em>
                    </th>
                    <td colspan="5">
                        @(Model.F_TimeEnd)
                    </td>
                </tr>

                <tr>
                    <th class="tdright">
                        广告图片：<em></em>
                    </th>
                    <td>
                        @Html.Raw(WebAction.GetViewImage_V2("F_Image", Model.F_Image, 100, 100))
                    </td>
                </tr>

                <tr>
                    <th class="tdright" style="width: 100px;">
                        全屏色值：<em></em>
                    </th>
                    <td colspan="5">
                        @(Model.F_ImageColor)
                    </td>
                </tr>

            </table>
        </div>

        <div title="辅助信息" style="padding:6px;">
            <table class="table">

                <tr>
                    <th class="tdright" style="width: 100px;">
                        添加人：<em></em>
                    </th>
                    <td colspan="5">
                        @(Html.TextBox("F_AddUserId", Model.T_AddUser == null ? "" : Model.T_AddUser.F_Name, new { Class = "easyui-textbox w500", @disabled = "disabled" }))
                    </td>
                </tr>

                <tr>
                    <th class="tdright" style="width: 100px;">
                        添加日期：<em></em>
                    </th>
                    <td colspan="5">
                        @Html.TextBox("F_AddDate", Convert.ToDateTime(Model.F_AddDate).ToString("yyyy-MM-dd HH:mm:ss"), new { @class = "easyui-datetimebox textbox w160", @required = "true", @disabled = "disabled" })
                    </td>
                </tr>

                <tr>
                    <th class="tdright" style="width: 100px;">
                        更新人：<em></em>
                    </th>
                    <td colspan="5">
                        @(Html.TextBox("F_UpdateUserId", Model.T_UpdateUser == null ? "" : Model.T_UpdateUser.F_Name, new { Class = "easyui-textbox w500", @disabled = "disabled" }))
                    </td>
                </tr>

                <tr>
                    <th class="tdright" style="width: 100px;">
                        更新日期：<em></em>
                    </th>
                    <td colspan="5">
                        @Html.TextBox("F_UpdateDate", Convert.ToDateTime(Model.F_UpdateDate).ToString("yyyy-MM-dd HH:mm:ss"), new { @class = "easyui-datetimebox textbox w160", @required = "true", @disabled = "disabled" })
                    </td>
                </tr>

                <tr>
                    <th class="tdright" style="width: 100px;">
                        浏览数量：<em></em>
                    </th>
                    <td colspan="5">
                        @(Model.F_ViewNum)
                    </td>
                </tr>

            </table>
        </div>

    </div>
</div>
<div id="form-windowEdit" title="查看" class="easyui-window" data-options="modal:true,closed:true,fit:true" style="width: 88%; height: 88%; padding: 6px;"></div>
