<%@ page language="C#" autoeventwireup="true" inherits="Admin_FunctionCodeList, App_Web_qxuvifui" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>

<!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 id="Head1" runat="server">
    <title>项目列表</title>
    <link href="../CSS/All.css" rel="stylesheet" type="text/css" />
    <link href="../CSS/pager.css" rel="stylesheet" type="text/css" />
    <script src="../JS/xzOper.js" type="text/javascript"></script>
    <script src="../JS/jquery.min.js" type="text/javascript"></script>
     <script src="../JS/Popup.js" type="text/javascript"></script>
    <style>
    .popupPanel{
        z-index: 101;
        left: 200px;  width: 364px; 
        position: absolute;
        top: 190px; 
        height: 63px; 
        display:none;
        background-color: whitesmoke; 
        border-right: #5d7b9d 10px solid;
        border-top: #5d7b9d 10px solid; 
        border-left: #5d7b9d 10px solid; 
        border-bottom: #5d7b9d 10px solid;
    }
     .close{
        border-right: medium none;
        border-top: medium none; float: right; border-left: medium none; border-bottom: medium none;
        background-color: darkgray
    }


    </style>
</head>
<body>
    <form id="Myform" runat="server">
        <div class="title" >
            功能上传代码列表</div>
        <div >
            <br />
            &nbsp;</div>    
        <fieldset>
        <legend>内容区域</legend>
        <div  id="view" style="overflow-x:auto">
        <asp:GridView
            ID="TableView" runat="server" AutoGenerateColumns="False"
             EmptyDataText="没有可显示的数据记录。" Width="100%" BorderStyle="Solid" DataKeyNames="CID">
             <Columns>
                 <asp:TemplateField HeaderText="选择"> 
                     <ItemTemplate>
                         <asp:CheckBox ID="CBSelect" runat="server" />
                     </ItemTemplate>
                     <HeaderStyle Height="30px"  Wrap="False"/>
                     <ItemStyle Height="30px"  Wrap="False" />
                 </asp:TemplateField>
                 <asp:TemplateField HeaderText="操作" SortExpression="EID">
                     <ItemTemplate>
                            <a href="javascript:void(0)" onclick="showPanel( $('#EditPanel'));$('#hfEditID').val('<%#Eval("CID") %>')">文件替换</a>
                     </ItemTemplate>
                     <HeaderStyle Height="30px"  Wrap="False"/>
                     <ItemStyle Height="30px"  Wrap="False" />
                 </asp:TemplateField>
                 <asp:TemplateField HeaderText="功能描述">
                     <ItemTemplate>
                         <asp:Label ID="labBeizhu" runat="server" Text='<%# Bind("FunctionBeizhu") %>'></asp:Label>
                     </ItemTemplate>
                       <HeaderStyle Height="30px"  Wrap="False"/>
                     <ItemStyle Height="30px"  Wrap="False" />
                 </asp:TemplateField>
                 <asp:TemplateField HeaderText="文件" SortExpression="FilePath">
                     <ItemTemplate>
                     <a href='<%=this.ResolveUrl("~/ProjectCode/") %><%#Eval("FilePath") %>' ><%#Eval("FilePath") %></a>
                     </ItemTemplate>
                 </asp:TemplateField>
                <asp:BoundField DataField="IDate" HeaderText="上传时间" SortExpression="IDate" DataFormatString="{0:yyyy-MM-dd}" />
                <asp:BoundField DataField="Beizhu" HeaderText="备注" SortExpression="Beizhu" />
                </Columns>
                  <FooterStyle CssClass="GridViewFooterStyle" />
                 <RowStyle CssClass="GridViewRowStyle" />   
                 <SelectedRowStyle CssClass="GridViewSelectedRowStyle" />
                 <PagerStyle CssClass="GridViewPagerStyle" />
                 <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                 <HeaderStyle CssClass="GridViewHeaderStyle" />
                 
        </asp:GridView>
        </div>
        <div style="border-top:ridge 1px #F6F6F6; margin-top:10px" >
        
            <input id="Button12" class="btn" onclick="Opposite('view')" type="button" value="反选" />
            <asp:Button ID="btnPTestAll" runat="server" CssClass="btn" OnClick="btnDeleteAll_Click"
                OnClientClick="if(confirm('确定删除所有选中吗？')){return isSelect('view')}else{return false;}"
                Text="删除选中" />&nbsp;
      
        </div>  
      </fieldset>
        &nbsp; &nbsp;
        <div id="EditPanel" class="popupPanel" style="height:101px; width: 359px;">
            <table border="0" cellspacing="5"  width="100%">
                <tr>
                    <td colspan="3" style="height: 33px">
                        <div id="_addCoursePanelDorp" style="width: 100%; border-bottom: gray 1px solid;
                            height: 25px; background-color: whitesmoke">
                            <input id="btnAddCourseClose" class="close" onclick='$("#EditPanel").hide();' type="button"
                                value="关闭" />
                        </div>
                    </td>
                </tr>
                <tr>
                    <td colspan="3" style="height: 22px" valign="top" align="center">
                        <asp:FileUpload ID="FileUpload" runat="server" />
                        <asp:Button ID="btnRep" runat="server" CssClass="btn" Text="替换" OnClick="btnRep_Click" /></td>
                </tr>
            </table>
        </div>
        <asp:HiddenField ID="hfEditID" runat="server" />
        <div align="center" style="width: 100%; background-color: lightgrey">
            &nbsp;<asp:Button ID="btnBack" runat="server" CssClass="btn" OnClick="btnback_Click"
                Text="返回" Width="133px" /></div>
    </form>
    <script>


    </script>
</body>
</html>