<%@ Page Language="C#" AutoEventWireup="true" CodeFile="InsertPicture.aspx.cs" Inherits="Admin_InsertPicture" %>



<html>
<head id="head">
    <link rel='stylesheet' type='text/css' href='./editer/Dialog.css'>
    <base target='_self' />
    <title></title>
</head>
<body>
    <form name="mainForm" method="post" action=""
        id="mainForm" enctype="multipart/form-data">
        <div>
        </div>




        <span>



        </span>
        <table id="MainTable" width="550px" class="MainTable" border="0" cellpadding="0"
            cellspacing="0">
            <tr>
                <th align="left" valign="bottom">
                    <table cellspacing="0" cellpadding="0">
                        <tr>
                            <td nowrap="nowrap">
                                <table id="TabHolder0" onclick="SelectViewer();" class='TabSelected' border="0"
                                    cellspacing="0" cellpadding="0">
                                    <tr>
                                        <td class='TabLeftSelected' nowrap>&nbsp;
                                            </td>
                                        <td nowrap class='TabCenterSelected'>
                                            <img src='./editer/Dialogs/ImageTab1.gif' width="17" height="16" border="0" align='absmiddle'>

                                            浏览文件

                                        </td>
                                        <td class='TabRightSelected'>&nbsp;
                                            </td>
                                    </tr>
                                </table>
                                <script>
                                 function SelectUpload()
                                 {
                                 // TabHolder0.className="Tab";
                                  // TabHolder1.className="TabSelected";
                                   ImageViewer.style.display='none';
                                   ImageUploader.style.display='block';
                                 }
                                function SelectViewer()
                                {
                               // TabHolder0.className="TabSelected";
                                 //  TabHolder1.className="Tab";
                                  ImageViewer.style.display='block';
                                   ImageUploader.style.display='none';
                                
                                }
                                 
                                </script>
                            </td>
                            <td nowrap="nowrap">
                                <table id="TabHolder1" onclick="SelectUpload();" class='Tab' border="0"
                                    cellspacing="0" cellpadding="0">
                                    <tr>
                                        <td class='TabLeft' nowrap>&nbsp;
                                            </td>
                                        <td nowrap class='TabCenterSelected'>
                                            <img align='absmiddle' src='./editer/Dialogs/ImageTab2.gif' border="0">

                                            上传文件

                                        </td>
                                        <td class='TabRight'>&nbsp;
                                            </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>




                </th>
            </tr>
            <tr>
                <td class="MainTableContentCell" valign="top">
                    <div id="ImageViewer" style="overflow: hidden; height: 300px">
                        <table cellspacing="0" cellpadding="0" border="0">
                            <tr>
                                <td colspan="3">
                                    <table cellpadding="0" cellspacing="0">
                                        <tr>
                                            <td nowrap class="Label">
                                                &nbsp;图片地址：</td>
                                            <td width="100%">
                                                <input type="text" style="width: 100%" class="RadETextBox" id="FolderPathBox"></td>
                                        </tr>
                                    </table>
                                </td>
                                <td rowspan="2" width="95" valign="top">
                                    <button class="Button" onclick="return OkClicked()" type="button">

                                        插入图片

                                    </button>
                                    <button class="Button" onclick="CloseDlg()" type="button">

                                        关闭窗口

                                    </button>
                                    <table id="MainTable_ctl00_ctl00_mainThumbLinkOptionSetter" cellpadding="0" cellspacing="0"
                                        border="0" width="100%">
                                        <tr>
                                            <td>
                                                <input type="checkbox" id="cbLink_ctl00_ctl00_mainThumbLinkOptionSetter" />
                                            </td>
                                            <td class="label" width="100%">

                                                dfgdfg

                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <input type="checkbox" id="cbTarget_ctl00_ctl00_mainThumbLinkOptionSetter" />
                                            </td>
                                            <td class="label">

                                               dfgdfgdfg

                                            </td>
                                        </tr>
                                    </table>


                                </td>
                            </tr>
                            <tr>
                                <td valign="top">
                               
                                    <table cellpadding="0" cellspacing="0">
                                        <tr>
                                            <td>
                                                <table border="0" align="left" height="10" id="FileBrowserImageButtonHolder" cellpadding="0"
                                                    cellspacing="0" class="ImageButtonHolder">
                                                    <tr>
                                                        <td>
                                                            <a href="#" id="ctl00_ctl00_fileBrowserrefreshButtonLink" onclick="document.forms[0].submit();">
                                                                <button class="ImageButton" type="button">
                                                                    <img src="./editer/Dialogs/refresh.gif" id="ctl00_ctl00_fileBrowser_refresh" align="absMiddle"
                                                                        border="0" /></button>
                                                            </a>

 

                                                        </td>
                                                        <td>
                                                            <a href="#">
                                                                <button class="ImageButton" id="NewFolderButton" onclick="return ctl00_ctl00_fileBrowser.CreateNewFolder()"
                                                                    type="button">
                                                                    <img src="./editer/Dialogs/newFolderIcon.gif" id="ctl00_ctl00_fileBrowser_newFolderIcon"
                                                                        align="absMiddle" border="0" /></button>
                                                            </a>

 

                                                        </td>
                                                        <td>
                                                            <a href="#">
                                                                <button language="javascript" onclick="javascript:if (ctl00_ctl00_fileBrowser.ConfirmDeletion()) __doPostBack('ctl00$ctl00$fileBrowser$DeleteButton','')"
                                                                    id="ctl00_ctl00_fileBrowser_DeleteButton" class="ImageButton" type="button">
                                                                    <img src="./editer/Dialogs/deleteIcon.gif" id="ctl00_ctl00_fileBrowser_deleteIcon"
                                                                        border="0" /></button>
                                                            </a>

                            
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <div id="ctl00_ctl00_fileBrowser_NewFolderDiv" class="DialogUtilityArea" style="display: none">
                                                    <table cellpadding="0" cellspacing="0" border="0">
                                                        <tr>
                                                            <td width="100%">
                                                                <input name="ctl00$ctl00$fileBrowser$newFolderNameHolder" type="text" id="ctl00_ctl00_fileBrowser_newFolderNameHolder"
                                                                    class="RadETextBox" />
                                                            </td>
                                                            <td>
                                                                <button language="javascript" onclick="__doPostBack('ctl00$ctl00$fileBrowser$NewButton','')"
                                                                    id="ctl00_ctl00_fileBrowser_NewButton" class="ImageButton" type="button">
                                                                    <img src="./editer/Dialogs/okIcon.gif" id="ctl00_ctl00_fileBrowser_okIcon" align="absMiddle"
                                                                        border="0" /></button>
                                                            </td>
                                                            <td>
                                                                <button class="ImageButton" onclick="return ctl00_ctl00_fileBrowser.CancelNewFolderCreation()"
                                                                    type="button">
                                                                    <img src="./editer/Dialogs/cancelIcon.gif" id="ctl00_ctl00_fileBrowser_cancelIcon" /></button>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </div>
                                                <div class="FileNodeTreeHolder">
                                                    <table width="100%" cellpadding="0" cellspacing="0" id="ctl00_ctl00_fileBrowserFileList">
                                                        <thead>
                                                            <tr>
                                                                <td width="19%" height="38" style="width: 1%">
                                                                    <button class="FileBrowserSortHeader" onclick="ctl00_ctl00_fileBrowser.Sort('Extension');"
                                                                        style="width: 100%">
                                                              <img id="ctl00_ctl00_fileBrowserSortExtensionDirection" src="./editer/Dialogs/empty.gif"></button></td>
                                                                <td width="30%" style="width: 99%">
                                                                    <button class="FileBrowserSortHeader" onclick="ctl00_ctl00_fileBrowser.Sort('Name');"
                                                                        style="width: 100%">
                                                              <img id="ctl00_ctl00_fileBrowserSortNameDirection" src="./editer/Dialogs/empty.gif">名称</button></td>
                                                                <td width="7%" style="width: 1%">
                                                                    <button class="FileBrowserSortHeader" onclick="ctl00_ctl00_fileBrowser.Sort('Size');"
                                                                        style="width: 100%">
                                                                        <img id="ctl00_ctl00_fileBrowserSortSizeDirection" src="./editer/Dialogs/empty.gif">大小</button></td>
                                                            </tr>
                                                        </thead>
                                                        <tbody>
                                                        </tbody>
                                                  </table>
                                                </div>
                                            </td>
                                        </tr>
                                    </table>


    

                                </td>
                                <td class="VerticalSeparator" nowrap>
                                </td>
                                <td valign="top">
                                    <table cellpadding="0" cellspacing="0" border="0">
                                        <tr>
                                            <td>
                                                <table align="left" border="0" cellpadding="0" cellspacing="0" class="ImageButtonHolder">
                                                    <tr>
                                                        <td>
                                                            <a href="#" id="bestFitButtonLink" onclick="previewer.HideThumbnailCreator();CallFitImage();">
                                                                <button class="ImageButton">
                                                                    <img src="./editer/Dialogs/bestFitIcon.gif" id="ctl00_ctl00_previewer_bestFitIcon"
                                                                        align="absMiddle" border="0" /></button>
                                                            </a>


                                                        </td>
                                                        <td>
                                                            <a href="#" id="actualSizeButtonLink" onclick="previewer.HideThumbnailCreator();ShowActualImageSize();">
                                                                <button class="ImageButton">
                                                                    <img src="./editer/Dialogs/actualSizeIcon.gif" id="ctl00_ctl00_previewer_actualSizeIcon"
                                                                        align="absMiddle" border="0" /></button>
                                                            </a>


                                                        </td>
                                                        <td>
                                                            <a href="#" id="zoomInButtonLink" onclick="previewer.HideThumbnailCreator();ScaleImage(80,true);">
                                                                <button class="ImageButton">
                                                                    <img src="./editer/Dialogs/zoomInIcon.gif" id="ctl00_ctl00_previewer_zoomInIcon"
                                                                        align="absMiddle" border="0" /></button>
                                                            </a>



                                                        </td>
                                                        <td>
                                                            <a id="zoomOutButtonLink" href="#" onclick="previewer.HideThumbnailCreator();ScaleImage(40);">
                                                                <button class="ImageButton">
                                                                    <img src="./editer/Dialogs/zoomOutIcon.gif" id="ctl00_ctl00_previewer_zoomOutIcon"
                                                                        align="absMiddle" border="0" /></button>
                                                            </a>



                                                        </td>
                                                        <td>
                                                            <a id="previewer_thumbnailCreatorLink" href="#" onclick="previewer.SwitchThumbnailCreator();">
                                                                <button class="ImageButton">
                                                                    <img src="./editer/Dialogs/ThumbnailCreatorIcon.gif" id="ctl00_ctl00_previewer_thumbnailCreatorIcon"
                                                                        align="absMiddle" border="0" /></button>
                                                            </a>

                   
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <div id="previewer_previewAreaHolder" class="PreviewAreaHolder">
                                                    <table height="100%" style="width: 100%;" align="center" border="0" cellpadding="0"
                                                        cellspacing="0">
                                                        <tr>
                                                            <td colspan="2" valign="center" id="PreviewArea">
                                                            </td>
                                                        </tr>
                                                        <tr id="previewer_altTextRow">
                                                            <td nowrap class="label">

    对齐方式

                                                            </td>
                                                            <td>
<input type="text" class="RadETextbox" id="previewer_altText" />                                                                
<img src="./editer/Dialogs/Accessibility.gif" id="ctl00_ctl00_previewer_accessibilityIcon"
                                                                    border="0" />
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </div>
                                                <div id="previewer_thumbnailCreatorHolder" style="display: none;">
                                                    <fieldset>
                                                        <legend>

                                                            创建图片

                                                        </legend>
                                                        <table border="0" cellpadding="0" cellspacing="0">
                                                            <tr id="ctl00_ctl00_previewer_theThumbnailCreator_htrMessage">
                                                                <td class="ErrorMessage" colspan="2" id="ctl00_ctl00_previewer_theThumbnailCreator_htcMessage">
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="Label">

 新图片名

                                                                    :
                                                                </td>
                                                                <td>
                                           
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="Label">

     宽：

                                                                </td>
                                                                <td>
                                                      
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="Label">

     高：

                                                                </td>
                                                                <td>
                                                         
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td class="Label">

大小：

                                                                </td>
                                                                <td>
                                                    
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td colspan="2">
                                                              
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td colspan="2">
                                                     
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td colspan="2" align="center">
                      

      创建

                                                       
                                                                </td>
                                                            </tr>
                                                        </table>
                                                    </fieldset>

                                                

                                                </div>
                                            </td>
                                        </tr>
                                    </table>


                                </td>
                            </tr>
                        </table>
                    </div>
                    <div id="ImageUploader" style="overflow: hidden;">
                        <table border="0" cellpadding="3" cellspacing="0" >
                            <tr>
                                <td nowrap class="label">

                                    目录：

                                </td>
                                <td colspan="2">
                                    <input type="text" id="CurrentDirectoryBox" style="width: 350px" size="50" class="RadETextBox">
                                </td>
                                <td rowspan="4" valign="top">
                                    <button language="javascript" onclick="buttonAction(submitButtonAction, event);if (!submitForUpload) return false; __doPostBack('ctl00$ctl00$fileUploader$btnUpload','')"
                                        id="ctl00_ctl00_fileUploader_btnUpload" class="Button" type="button">

                                        上传图片</button>
                                </td>
                            </tr>
                            <tr>
                                <td nowrap class="label" valign="top">

                                   文件：

                                </td>
                                <td id="frameHolderTemp" colspan="2" class="Label">
                                    <input name="ctl00$ctl00$fileUploader$FileUpload" type="file" id="ctl00_ctl00_fileUploader_FileUpload"
                                        style="width: 340px" size="50" class="File" />
                                    <input name="ctl00$ctl00$fileUploader$fileDir" type="hidden" id="ctl00_ctl00_fileUploader_fileDir" />
                                    <br>
                                    <br>
                                    <b>

                                      大小限制 </b><span id="ctl00_ctl00_fileUploader_maxFileSize">200</span>KB <span id="ctl00_ctl00_fileUploader_lblfileExtensionsHolder">
                                        <br>
                                        <b>

                                          图片格式</b><span id="ctl00_ctl00_fileUploader_allowedFileExtensions">*.gif, *.png,
                                            *.jpg,  *.jpeg
                                            </span></span>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2" class="label">
                                    <span id="loader" style="display: none; padding-left: 5px">Loading</span>
                                </td>
                            </tr>
                        </table>
                    </div>
                </td>
            </tr>
        </table>


    </form>
</body>
</html>

