<%@ Page Language="C#" AutoEventWireup="true" Codebehind="index.aspx.cs" Inherits="JuSNS.Web.dev.index" %>

<!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>

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

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

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

    <link href="../template/<% Response.Write(JuSNS.Config.UiConfig.SkinStyle); %>/css/base.css"
        id="skinpath" type="text/css" rel="stylesheet" />
</head>
<body>
    <!--头部-->
    <%=this.GetHtmlShort()%>
    <div id="divhead">
        <%=this.GetHtmlHead()%>
    </div>
    <div id="divbody">
        <div id="body_first">
            <div class="body_menu">
                <%=this.GetHtmlLeft()%>
            </div>
        </div>
        <div id="body_sec">
            <div id="body_mid">
                <div class="body_frame">
                    <div class="body_frame_otherinfo">
                        <div class="title">
                            <div class="l">
                                <img src="../../template/<%Response.Write(JuSNS.Config.UiConfig.SkinStyle); %>/images/site/acc.gif"
                                    align="absmiddle" />
                                <span class="shenlan bold font14 ocolor">应用程序开发者</span></div>
                            <div class="r">
                                <a href="javascript:window.history.back();" title="返回上一页">返回上一页</a></div>
                            <div class="c">
                            </div>
                        </div>
                        <div class="nav-menu">
                            <ul>
                                <% if (isDeveloper)
                                   { %>
                                <li class="current"><a href="index.aspx">我的程序</a></li>
                                <li><a href="appnew.aspx">添加程序</a></li>
                                <%}
                                  else
                                  {%>
                                <li class="current"><a href="index.aspx?req=1">申请成为开发者</a></li>
                                <%}
                                %>
                                <li><a href="../help?r=developer" target="_blank">帮助文档</a></li>
                            </ul>
                        </div>
                    </div>
                    <div class="body_sec_all">
                        <div id="errmsg" runat="Server" class="msg-error">
                        </div>
                        <div id="sucmsg" runat="Server" class="msg-succ">
                        </div>      
                        <% if (!isDeveloper){ %>  
                        <a href="?req=1">点击这里成为开发者</a>
                                     <%} %>              
                        <asp:Repeater ID="rpt" runat="server">
                            <ItemTemplate>
                                <div id="id_<%# Eval("AppID") %>">
                                    <div style="background-color: #aaa; height: 1px; margin-bottom: 5px; margin-top: 10px;"></div>
                                    <div style="clear: both;">
                                        <div style="height:30px;">
                                            <div style="float: left;">
                                                <span class="bold">
                                                    <span class="blue font14"><%# Eval("AppName") %></span> <span class="font12 normal">(<%# vState(Eval("IsLock"))%>) <span class="blue" style="font-family:Arial;font-size:11px;">密钥(AppKey):<span style="border:1px dotted #999999;padding:0px 3px;"><%# getAppKey(Eval("AppID"))%></span></span> <input type="button" onclick="ResetAppKey('<%# Eval("AppID") %>')" class="f-button" value="重新生成密钥" /></span>
                                                </span>
                                            </div>
                                            <div style="float: right;">
                                                <%# vStateable(Eval("toAdmin"),Eval("IsLock"), Eval("UserID"), Eval("AppID"))%>
                                                </div>
                                                
                                        </div>
                                        <div style="clear: both;">
                                            <%# ReplaceSpace(Eval("Description")) %>
                                        </div>
                                        
                                    </div>
                                </div>
                            </ItemTemplate>
                        </asp:Repeater>
                        <div class="pagination" runat="server" id="DivPage">
                        </div>
                    </div>
                </div>
            </div>
            <!--底部-->
            <div class="divbottom">
                <%=this.GetHtmlFoot()%>
            </div>
        </div>
    </div>

</body>
</html>

<script type="text/javascript">
    function ResetAppKey(id)
    {
        location.href="?page=<%=Request.QueryString["Page"] %>&type=setkey&id="+id;
    }
    function toadmin(id)
    {
        location.href="toadmin.aspx?id="+id;
    }
</script>

