<%@ Page Language="C#" AutoEventWireup="true" Codebehind="devrequest.aspx.cs" Inherits="JuSNS.Web.system.app.devrequest" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title id="ptitle" runat="server">开发者申请</title>
    <link href="../images/css/style.css" rel="stylesheet" type="text/css" />

    <script language="javascript" type="text/javascript" src="../../js/ajax.js"></script>

    <script language="javascript" type="text/javascript" src="../../js/public.js"></script>

    <style type="text/css">
.current{color:red;}
</style>
</head>
<body>
    <table width="99%" border="0" align="center" cellpadding="5" cellspacing="1">
        <tr>
            <td width="120" align="center" valign="top">
                <div class="menu">
                    <ul>
                        <%=this.GetSystemMenu(sort)%>
                    </ul>
                </div>
            </td>
            <td valign="top">
                <div class="navip">
                    <span class="Blue"><a href="index.aspx">应用管理</a> <a href="devrequest.aspx">开发者申请</a>
                    </span>
                </div>
                <div style="padding: 6px 8px 0px 8px;">
                    <div id="giftClass" runat="server">
                    </div>
                    <form id="form1" runat="server">
                        <asp:Repeater runat="server" ID="rpt">
                            <HeaderTemplate>
                                <table width="100%" border="0" cellpadding="3" cellspacing="1" class="maintable">
                                    <tr class="maintablehead">
                                        <td style="width: 10%;">
                                            编号</td>
                                        <td align="center" style="width: 28%;">
                                            作者</td>
                                        <td align="center" style="width: 30%;">
                                            创建时间</td>
                                        <td align="center" style="width: 10%;">
                                            是否开通</td>
                                        <td align="center" style="width: 22%;">
                                            操作</td>
                                    </tr>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <tr class="maintablelist">
                                    <td>
                                        <%# Eval("ID") %>
                                    </td>
                                    <td align="center">
                                        <a href="../../user?r=<%# Eval("UserID") %>" target="_blank"><%# GetUserName(Eval("UserID"))%></a>
                                    </td>
                                    <td align="center">
                                        <%# Convert.ToDateTime(Eval("CreationTime")).ToString("yyyy-MM-dd")%>
                                    </td>
                                    <td align="center">
                                        <%# vEnable(Eval("Enabled"))%>
                                    </td>
                                    <td align="center">
                                        <a href="javascript:Del(<%# Eval("ID")%>);">删除</a> |
                                        <a href="javascript:Pass(<%# Eval("ID")%>,1);">开通</a> | <a href="javascript:Pass(<%# Eval("ID")%>,0);">
                                            关闭</a>
                                    </td>
                                </tr>
                            </ItemTemplate>
                            <FooterTemplate>
                                </table>
                            </FooterTemplate>
                        </asp:Repeater>
                        <div class="pagination" runat="server" id="DivPage" align="center" visible="false">
                        </div>
                    </form>
                </div>
            </td>
        </tr>
    </table>
</body>
</html>

<script language="javascript" type="text/javascript">
function Del(id)
{
    if(confirm('你确认删除此应用吗?'))
        self.location="?Type=del&id="+id;
}
function Pass(id,value)
{
    if(confirm('你确认锁定、解锁此应用吗?'))
        self.location="?Type=pass&id="+id+"&value="+value;
}
</script>

