<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Admin/AdminMain.Master" Inherits="System.Web.Mvc.ViewPage<MvcEnterprise.Services.Setting>" %>

<asp:Content ID="Content0" ContentPlaceHolderID="HeadContent" runat="server">
    <script src="../../Scripts/MicrosoftAjax.js" type="text/javascript"></script>
    <script src="../../Scripts/MicrosoftMvcAjax.js" type="text/javascript"></script>
    <script src="../../Scripts/MicrosoftMvcValidation.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script src="../../Scripts/jquery.loading.js" type="text/javascript"></script>
    <script src="../../Scripts/Admin.js" type="text/javascript"></script>
	<script src="../../Scripts/AjaxSubmitForm.js" type="text/javascript"></script>
    <% Html.EnableClientValidation(); %>
    <style type="text/css">
        .classCommon {
            background: url(../../Content/QQ/images/qq.gif) no-repeat;
            width: 120px;
            height: 190px;
            display: inline-block;
        }
        .class1 {
            background-position: top left;
        }
        .class2 {
            background-position:-125px 21px;
        }
        .class3 {
            background-position: -248px 28px;
        }
        .class4 {
            background-position: -372px 28px;
        }
        .class5 {
            background-position: -496px 32px;
        }
        div.image {
            margin:0 0 20px 0;
        }
    </style>
</asp:Content>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    在线QQ设置
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <%
        using (Html.BeginForm("Setting","Admin"))
		//using (Ajax.BeginForm("Setting", "Admin", new AjaxOptions { OnBegin = "function(){$.showLoading('form', '#ajaxLoading');}", OnComplete = "function(){$.hideLoading();}" }))
		{%>
    <div>
        <span class="editor-label"><%= Html.LabelFor(m=>m.QQstatus) %>：</span>
        <span class="editor-field">
            <label><%= Html.RadioButtonFor(m => m.QQstatus,"Show")%>显示</label>
            <label><%= Html.RadioButtonFor(m => m.QQstatus,"Hide")%>隐藏</label>
            <%= Html.DisplayToolTipFor(m => m.QQstatus) %> </span>
    </div>
    <div style="display: none">
        <span class="editor-label"><%= Html.LabelFor(m=>m.QQposition) %>：</span>
        <span class="editor-field">
            <label><%= Html.RadioButtonFor(m => m.QQposition, "QQonLeft")%>左侧</label>
            <label><%= Html.RadioButtonFor(m => m.QQposition, "QQonLT")%>左上</label>
            <label><%= Html.RadioButtonFor(m => m.QQposition, "QQonLB")%>左下</label>
            <label><%= Html.RadioButtonFor(m => m.QQposition, "QQonRight")%>右侧</label>
            <label><%= Html.RadioButtonFor(m => m.QQposition, "QQonRT")%>右上</label>
            <label><%= Html.RadioButtonFor(m => m.QQposition, "QQonRB")%>右下</label>
            <%= Html.DisplayToolTipFor(m => m.QQposition) %></span>
    </div>
    <div>
        <span class="editor-label"><%= Html.LabelFor(m=>m.QQnum) %>：</span>
        <span class="editor-field"><%= Html.TextBoxFor(m => m.QQnum)%> <%=Html.DisplayToolTipFor(m=>m.QQnum) %>
            <%=Html.ValidationMessageFor(m => m.QQnum)%></span>
    </div>
    <div>
        <span class="editor-label"><%= Html.LabelFor(m=>m.QQname) %>：</span>
        <span class="editor-field"><%= Html.TextBoxFor(m => m.QQname)%> <%=Html.DisplayToolTipFor(m => m.QQname)%>
            <%=Html.ValidationMessageFor(m => m.QQname)%></span>
    </div>
    <div>
        <span class="editor-label"><%= Html.LabelFor(m => m.QQImageAlt)%>：</span>
        <span class="editor-field"><%= Html.TextBoxFor(m => m.QQImageAlt)%> <%= Html.DisplayToolTipFor(m => m.QQImageAlt)%></span>
    </div>
    <fieldset>
        <legend><%= Html.LabelFor(m=>m.QQimage) %> <%= Html.DisplayToolTipFor(m=>m.QQimage) %></legend>
        <ul style="list-style:none;margin:0;padding:0">
            <%for (int i = 41; i <= 50; i++)
              {
            %>
            <li style="width: 70px; height: 65px; display: inline">
                <label><%= Html.RadioButtonFor(m=>m.QQimage,i) %><img src="../../Content/QQ/images/style_<%=i%>.jpg" align="absmiddle" /></label>
            </li>
            <%
                } %>
        </ul>
    </fieldset>
    <fieldset style="display: none">
        <legend><%= Html.LabelFor(m=>m.QQstyle) %> <%= Html.DisplayToolTipFor(m=>m.QQstyle) %></legend>
        <span class="editor-field">
        <%for (int i = 1; i <= 5; i++)
          {
        %>
            <label><%= Html.RadioButtonFor(m=>m.QQstyle,i)%><span class="classCommon class<%=i%>"></span></label>
        <%
            } %>
        </span>
        <%= Html.DisplayToolTipFor(m=>m.QQstyle) %>
    </fieldset>
    <p><input type="submit" value="保 存" /></p>
    <% } %>
</asp:Content>

