<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PhotoManger.aspx.cs" MasterPageFile="../../MasterPage/Default.Master" Inherits="LJCMS.Admin.SysSetting.Photo.PhotoManger" %>
<asp:Content ID="Content1" ContentPlaceHolderID="PageBody" runat="server">
    <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>
    <table style="width:100%">
        <tr>
            <td>
                <DataLayerWebControls:HeadMenuWebControls ID="HeadMenuWebControls1" runat="server"
                    HeadTitleTxt="">
                    <DataLayerWebControls:HeadMenuButtonItem ButtonPopedom="List" ButtonUrl="News.aspx"
                        ButtonUrlType="Href" ButtonVisible="True" ButtonName="图片" />
                </DataLayerWebControls:HeadMenuWebControls>
                <DataLayerWebControls:TabOptionWebControls ID="TabOptionWebControls1" runat="server">
                    <DataLayerWebControls:TabOptionItem ID="TabOptionItem1" runat="server" Tab_Name="基本信息">
                        <table width="100%" border="0" cellspacing="1" cellpadding="3" align="center">
                            <tr>
                                <td class="table_body">
                                    图片标题</td>
                                <td class="table_none">
                                    <asp:TextBox ID="PhotoName_Input" runat="server" CssClass="text_input" Width="300px"></asp:TextBox>
                                  </td>
                            </tr>
                            <tr>
                                <td class="table_body">
                                    图片地址</td>
                                <td class="table_none">
                                    <asp:TextBox ID="PhotoPath_Input" runat="server" CssClass="text_input" Width="300px"></asp:TextBox>
                                    <input id="Buttonb" type="button" runat="server" class="cbutton" value="上传图片"
                                        style="cursor: pointer" onclick="javascript:showPopWin('上传产品图片','../../UploadPic.aspx?'+rand(10000000), 300, 150, AlertMessageBox,true);" />
                                  </td>
                            </tr>
                            <tr>
                                <td class="table_body">
                                    导航地址</td>
                                <td class="table_none">
                                    <asp:TextBox ID="PhotoUrl_Input" runat="server" CssClass="text_input" Width="300px"></asp:TextBox>
                                    </td>
                            </tr>
                            <tr>
                                <td class="table_body">
                                    添加时间</td>
                                <td class="table_none">
                                    <asp:TextBox ID="AddDate_Input" runat="server" CssClass="text_input" Width="300px"></asp:TextBox>
                                    </td>
                            </tr>
                            <tr>
                                <td class="table_body">
                                    图片说明</td>
                                <td class="table_none">
                                    <asp:TextBox ID="PhotoDescp_Input" runat="server" CssClass="text_input" Width="300px"></asp:TextBox>
                                    </td>
                            </tr>
                        </table>
                    </DataLayerWebControls:TabOptionItem>
                </DataLayerWebControls:TabOptionWebControls>
                <table width="100%" border="0" cellspacing="1" cellpadding="3" align="center" id="PostButton"
                    runat="server">
                    <tr>
                        <td align="right">
                            <asp:Button ID="Button1" runat="server" CssClass="button_bak" Text="确定"  OnClick ="Button1_Click"/>
                            <input id="Reset1" class="button_bak" type="reset" value="重填" />
                        </td>
                    </tr>
                </table>
            </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); 

    }; 
    // end central randomizer. --> 
    function AlertMessageBox(file_name)
    {
       
          if (file_name!=undefined){
	            var ShValues = file_name.split('||');
	            if (ShValues[1]!=0)
	            {
	                document.all.<%=this.PhotoPath_Input.ClientID %>.value=ShValues[0];
	            }            
	        }
    }
   
    </script>

</asp:Content>

