<%@ page language="C#" masterpagefile="~/SiteServer/MasterPage/PageTemplate.Master" autoeventwireup="true" inherits="SiteServer_Template_DiskFile, v5star.Web" enableviewstate="false" theme="Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PageBody" runat="Server">
    <script type="text/javascript">function submit_onclick() {}</script>
    <aspx:HeadMenuWebControls ID="HeadMenuWebControls1" runat="server" HeadOPTxt="编辑"
        HeadTitleTxt="模板管理-方案管理">
    </aspx:HeadMenuWebControls>
    <aspx:TabOptionWebControls ID="TabOptionWebControls1" runat="server">
        <aspx:TabOptionItem ID="TabOptionItem1" runat="server" Tab_Name="现有方案">
          <table cellspacing="1" cellpadding="3" width="100%">
                <tr>
                    <td class="table_body table_body_NoWidth">
                        系统消息</td>
                    <td class="table_none">
                        <div class="box" style="display: none;" id="tips">
                            <span id="tipsMsg"></span>
                        </div>
                    </td>
                    <%= builder %>
                </tr>
                <tr>
                    <td class="table_body table_body_NoWidth">
                        目录名称</td>
                    <td class="table_none">                        
                            <input type="text" name="txtFolderName" id="txtFolderName" size="16" />
                            <input type="hidden" name="txtOldName" id="txtOldName" /> <%if(editor){%><input type="submit" name="submit"
                                id="submit" value="确定" class="btn" onclick="return submit_onclick()" />&nbsp;&nbsp;<input
                                    type="button" name="cancel" id="cancel" value="取消" class="btn" onclick="javascript:toCreate('<%= Server.UrlEncode(Request.QueryString["path"]) %>');" /><%} %>                       
                    </td>
                </tr>
                <tr>
                    <td class="table_body table_body_NoWidth">
                        上传文件</td>
                    <td class="table_none">
                    <input type="file" name="fileUpload" id="fileUpload" size="23" class="btn"/> <%if (add){%>  <input type="submit" class="btn" name="upload" value="添加" onclick="javascript:uploadMsg('<%= Server.UrlEncode(Request.QueryString["path"]) %>');" /><%} %> </td>
                </tr>
            </table>
        
            <asp:Repeater ID="rptList" runat="server">
                <HeaderTemplate>
                    <table border="0" cellspacing="1" cellpadding="3" width="100%">
                        <tr class="table_title">
                            <th>
                                <a href="DiskFile.aspx?path=<%= Server.UrlEncode(Request.QueryString["path"]) %>&amp;order=name">
                                    名称</a></th>
                            <th>
                                <a href="DiskFile.aspx?path=<%= Server.UrlEncode(Request.QueryString["path"]) %>&amp;order=ext">
                                    扩展名</a></th>
                            <th>
                                <a href="DiskFile.aspx?path=<%= Server.UrlEncode(Request.QueryString["path"]) %>&amp;order=size">
                                    大小</a></th>
                            <th>
                                <a href="DiskFile.aspx?path=<%= Server.UrlEncode(Request.QueryString["path"]) %>&amp;order=modifydate">
                                    修改时间</a></th>
                            <th>
                                操作选项</th>
                        </tr>
                        <%= backHtml %>
                </HeaderTemplate>
                <ItemTemplate>
                    <tr class="row">
                        <td>
                            <%# Eval("FormatName") %>
                        </td>
                        <td>
                            <%# Eval("Ext") %>
                        </td>
                        <td>
                            <%# Eval("FormatSize") %>
                        </td>
                        <td>
                            <%# Eval("FormatModifyDate") %>
                        </td>
                        <td>
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td><%if(editor){%>
                                        <a href="#" onclick="javascript:toRename('<%# Eval("Name") %>', '<%# Eval("FullName") %>', '<%= Server.UrlEncode(Request.QueryString["path"]) %>');">
                                            <img align="absmiddle" alt="重命名" src="../../Images/subModal/Ico/Add.gif" />重命名</a>
                                            <%}%>
                                            </td>
                                    <td><%if(delate){%>
                                        <a href="DiskFile.aspx?act=del&amp;path=<%= Server.UrlEncode(Request.QueryString["path"]) %>&amp;file=<%# Eval("FullName") %>&amp;type=<%# Eval("Type") %>"
                                            onclick="javascript:return confirm('确认删除 <%# Eval("Name") %> ?');">
                                            <img align="absmiddle" alt="删除" src="../../Images/subModal/Ico/Delete.gif" />删除</a>
                                            <%}%>
                                            </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </ItemTemplate>
                <AlternatingItemTemplate>
                    <tr class="row1">
                        <td>
                            <%# Eval("FormatName") %>
                        </td>
                        <td>
                            <%# Eval("Ext") %>
                        </td>
                        <td>
                            <%# Eval("FormatSize") %>
                        </td>
                        <td>
                            <%# Eval("FormatModifyDate") %>
                        </td>
                        <td>
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td><%if(editor){%>
                                        <a href="#" onclick="javascript:toRename('<%# Eval("Name")%>', '<%# Eval("FullName") %>', '<%= Server.UrlEncode(Request.QueryString["path"]) %>');">
                                            <img align="absmiddle" alt="重命名" src="../../Images/subModal/Ico/Add.gif" />重命名</a>
                                            <%}%>
                                    </td>
                                    <td><%if(delate){%>
                                        <a href="DiskFile.aspx?act=del&amp;path=<%= Server.UrlEncode(Request.QueryString["path"]) %>&amp;file=<%# Eval("FullName") %>&amp;type=<%# Eval("Type") %>"
                                            onclick="javascript:return confirm('确认删除 <%# Eval("Name") %> ?');">
                                            <img align="absmiddle" alt="删除" src="../../Images/subModal/Ico/Delete.gif" />删除</a>
                                            <%}%>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </AlternatingItemTemplate>
                <FooterTemplate>
                </table>
                </FooterTemplate>
            </asp:Repeater>
     
        </aspx:TabOptionItem>
    </aspx:TabOptionWebControls>
</asp:Content>
