<%@ Page Language="C#" AutoEventWireup="True" Inherits=" LJCMS.Admin.SysSetting.FileManager._Default"
    MasterPageFile="~/Admin/MasterPage/Default.Master" Codebehind="Default.aspx.cs" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PageBody" runat="server">
    <table style="width: 100%">
        <tr>
            <td>
                <DataLayerWebControls:HeadMenuWebControls ID="HeadMenuWebControls1" runat="server"
                    HeadTitleTxt="模版管理">
                </DataLayerWebControls:HeadMenuWebControls>
                <DataLayerWebControls:TabOptionWebControls ID="TabOptionWebControls1" runat="server">
                    <DataLayerWebControls:TabOptionItem ID="TabOptionItem1" runat="server" Tab_Name="基本信息">
                        <link href="images/StyleSheet.css" rel="stylesheet" type="text/css" />

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

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

                        <link rel="stylesheet" type="text/css" href="<%=Page.ResolveUrl("~/") %>Admin/inc/FineMessBox/css/subModal.css" />

                        <script type="text/javascript" src="<%=Page.ResolveUrl("~/") %>Admin/inc/FineMessBox/js/common.js"></script>

                        <script type="text/javascript" src="<%=Page.ResolveUrl("~/") %>Admin/inc/FineMessBox/js/subModal.js"></script>

                        <script type="text/javascript" src="<%=Page.ResolveUrl("~/") %>Admin/js/main.js"></script>

<style type ="text/css">
#preview{
	position:absolute;
	border:1px solid #ccc;
	background-color:white;      
  filter:alpha(opacity=10);
  -moz-opacity:0.1;
  opacity:0.1;

	padding:5px;
	display:none;
	color:#fff;
	}
	img{border:none;}
</style>

<script type="text/javascript" language="javascript">  
    $(function() {
        $("#checkedAll").click(function() { 
            if ($(this).attr("checked") == true) { // 全选
                    $("input[@type='checkbox']").each(function() {
                    $(this).attr("checked", true);
                    });
                } else { // 取消全选
                    $("input[@type='checkbox']").each(function() {
                    $(this).attr("checked", false);
                });
            }
        });
    });

    $().ready(function() {
        $('#divCreate').jqm({trigger: '#create'});
        $('#divRename').jqm({trigger: '#rename'});
        $('#divDelete').jqm({trigger: '#delete'});
        $('#divUpload').jqm({trigger: '#upload'});
        $('#divCopy').jqm({trigger: '#copy'});
        $('#divPaste').jqm({trigger: '#paste'});
        $('#divEdit').jqm({trigger: '#edit'});
        $('#divCut').jqm({trigger: '#cut'});
        $('#divCreateFile').jqm({trigger: '#createfile'}); 
        $('#divErr').jqm();
        $('#divEditFile').jqm();     
    });
                        </script>

                        <div id="divErr" class="jqmWindow" style="display: none;">
                            <h3>
                                Error</h3>
                            <p>
                                <asp:Label ID="ErrText" Text="Err" Font-Bold="true" runat="server" Font-Names="Verdana"
                                    Font-Size="12px"></asp:Label><br />
                                <br />
                                <asp:Button ID="Button6" runat="server" Text="确定" /></p>
                        </div>
               
                        <div style="padding: 5px;">
                            <strong>路径: </strong>
                            <asp:Label ID="lblCurrentPath" Font-Bold="true" runat="server" Font-Names="Verdana"
                                Font-Size="12px"></asp:Label></div>
                        <div>
                            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" OnRowCommand="GridView1_RowCommand"
                                OnRowDataBound="GridView1_RowDataBound">
                                <Columns>
                                    <asp:TemplateField>
                                        <ItemTemplate>
                                            <asp:CheckBox ID="CheckBox1" runat="server" />
                                        </ItemTemplate>
                                        <HeaderTemplate>
                                            <input type="checkbox" name="checkedAll" id="checkedAll" />
                                        </HeaderTemplate>
                                        <ItemStyle Width="3%" Wrap="False" HorizontalAlign="Center" />
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="名称">
                                        <EditItemTemplate>
                                            <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Name") %>'></asp:TextBox>
                                        </EditItemTemplate>
                                        <ItemTemplate>
                                            <asp:LinkButton ID="LinkButton1" runat="server" CommandArgument='<%# Eval("FullName") %>'
                                                Text='<%# Eval("Name") %>'></asp:LinkButton>
                                            <asp:Literal ID="lbinfo" runat="server"></asp:Literal>
                                            <asp:Literal ID="lbli" runat="server"></asp:Literal>
                                            <asp:Literal ID ="lbrep" runat ="server"></asp:Literal>
                                        </ItemTemplate>
                                        <ItemStyle HorizontalAlign="left" />
                                    </asp:TemplateField>
                                    <asp:BoundField DataField="CreationDate" HeaderText="创建日期">
                                        <ItemStyle Width="12%" Wrap="False" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="Size" HeaderText="大小" DataFormatString="{0} KB">
                                        <ItemStyle HorizontalAlign="Right" Width="5%" Wrap="False" />
                                    </asp:BoundField>
                                </Columns>
                                <FooterStyle BackColor="White" ForeColor="#000066" />
                                <RowStyle ForeColor="#000066" />
                                <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                                <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                                <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
                            </asp:GridView>
                        </div>
                    </DataLayerWebControls:TabOptionItem>
                </DataLayerWebControls:TabOptionWebControls>
            </td>
        </tr>
    </table>
<script type="text/javascript">
  rnd.today=new Date(); 

    rnd.seed=rnd.today.getTime(); 

    function rnd() { 

　　　　rnd.seed = (rnd.seed*9301+49297) % 233280; 

　　　　return rnd.seed/(233280.0); 

    }; 

    function rand(number) { 

　　　　return Math.ceil(rnd()*number); 

    }; 

      function ShowDepartID(name)
        {
            var varname=escape(name); 
            showPopWin('编辑文件','EditFile.aspx?fullname='+varname+"&num="+rand(10000000), 900, 700, AlertClassBox,true,true)
        }
    function AlertClassBox(file_name)
    {
       
             if (file_name!=undefined){
	            var ShValues = file_name.split('||');
	            if (ShValues[1]!=0)
	            {
	           
	            }            
	        }
    }

    </script>

</asp:Content>
