<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="../Global.Master" CodeBehind="DomainInto.aspx.cs" Inherits="Web.AdminManager.Product.DomainInto" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div runat="server" id="UI_Edit" visible="false">
        <form class="ui-form ui-form-vertical" method="post" action="">
            <div class="ui-form-group">
                <label class="ui-form-label">域名</label><div class="ui-form-ctrls">
                  <%=IntoDomain[0]["DomainName"] %>
                </div>
            </div>
            <div class="ui-form-group">
                <label class="ui-form-label">转移密码</label><div class="ui-form-ctrls">
                  <%=IntoDomain[0]["IntoPassWord"] %>
                </div>
            </div>
            <div class="ui-form-group">
                <label class="ui-form-label">转入服务商</label><div class="ui-form-ctrls">
                   <%=Enum.Parse(typeof(CommonLib.API.Pro_APIType),IntoDomain[0]["APIType"].ToString()) %>
                </div>
            </div>
            <div class="ui-form-group">
                <label class="ui-form-label">申请时间</label><div class="ui-form-ctrls">
                   <%=IntoDomain[0]["AddTime"] %>
                </div>
            </div>
            <div class="ui-form-group">
                <label class="ui-form-label">状态更新时间</label><div class="ui-form-ctrls">
                   <%=IntoDomain[0]["LastTime"] %>
                </div>
            </div>
            <div class="ui-form-group">
                <label class="ui-form-label">会员名</label><div class="ui-form-ctrls">
                   <%=IntoDomain[0]["UserName"] %>
                </div>
            </div>
            <div class="ui-form-group">
                <label class="ui-form-label">QQ</label><div class="ui-form-ctrls">
                   <%=IntoDomain[0]["QQ"] %>
                </div>
            </div>
            <div class="ui-form-group">
                <label class="ui-form-label">邮箱</label><div class="ui-form-ctrls">
                   <%=IntoDomain[0]["Email"] %>
                </div>
            </div>
            <div class="ui-form-group">
                <label class="ui-form-label">手机</label><div class="ui-form-ctrls">
                   <%=IntoDomain[0]["Mobile"] %>
                </div>
            </div>

            <div class="ui-form-group">
                <label class="ui-form-label">姓名</label><div class="ui-form-ctrls">
                   <%=IntoDomain[0]["UserName"] %>
                </div>
            </div>
            <div class="ui-form-group">
                <label class="ui-form-label">状态</label><div class="ui-form-ctrls">
                    <select name="IntoState">
                        <%=CommonLib.Helper.StringFromEnum(typeof(CommonLib.Enums.DomainIntoState),"<option value=\"{1}\" {2}>{0}</option>",(int)IntoDomain[0]["IntoState"],"selected") %>
                    </select>
                    <span class="ui-help-float">注意：当状态选择为失败或者完成时，将不能再次编辑本订单</span>
                </div>
            </div>
            <div class="ui-form-group">
                <label class="ui-form-label">备注</label>
                <div class="ui-form-ctrls">
                    <textarea name="remark"><%=IntoDomain[0]["Remark"] %></textarea>
                </div>
            </div>
            <div class="ui-form-group">
                <label class="ui-form-label">&nbsp;</label><div class="ui-form-ctrls">
                    <%if ((int)IntoDomain[0]["IntoState"] != CommonLib.Enums.DomainIntoState.完成.GetHashCode() && (int)IntoDomain[0]["IntoState"] != CommonLib.Enums.DomainIntoState.失败.GetHashCode())
                      { %>
                    <input type="submit" value="提交" class="ui-btn ui-btn-primary" name="save" />
                    <%} %>
                    <button class="ui-btn" type="button" onclick="history.back();">返回</button>
                </div>
            </div>
        </form>
    </div>
    <div runat="server" id="UI_List" visible="false">
        <table class="ui-table ui-table-striped">
            <thead>
                <tr>
                    <th>转入域名</th>
                    <th>转移密码</th>
                    <th>申请时间</th>
                    <th>更新时间</th>
                    <th>状态</th>
                    <th>客户</th>
                    <th>操作</th>
                </tr>
            </thead>
            <%foreach (System.Data.DataRow into in intoList)
              { %>
            <tr>
                <td><%=into["DomainName"] %></td>
                <td><%=into["IntoPassWord"] %></td>
                <td><%=into["AddTime"] %></td>
                <td><%=into["LastTime"] %></td>
                <td><%=Enum.Parse(typeof(CommonLib.Enums.DomainIntoState),into["IntoState"].ToString()) %></td>
                <td><%=into["UserName"] %><br />
                    <%=into["Email"] %><br />
                     <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=<%=into["QQ"] %>&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:<%=into["QQ"] %>:42" alt="点击这里给我发消息" title="点击这里给我发消息"></a>
                </td>
                <td><a href="domaininto.aspx?Action=Info&Id=<%=into["id"] %>">详细</a></td>
            </tr>
            <%} %>
            <tr>
                <td colspan="7" class="Pager" runat="server" id="Pager"></td>
            </tr>
        </table>
    </div>
</asp:Content>
