<%@ page language="C#" autoeventwireup="true" inherits="user_common_BatchUploadImage, DianCMS" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<!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/css.css" type="text/css" rel="stylesheet" />

    <script src="../../js/Common.js" language="javascript"></script>

    <script type="text/javascript">
        var api = frameElement.api, W = api.opener;
    </script>

    <style type="text/css">
        fieldset
        {
            padding: 5px;
            border: 1px solid #999999;
            width: 100%;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <table cellpadding="2" height="100%" cellspacing="0" border="0" width="600" align="center">
        <tr>
            <td>
                <asp:TextBox ID="FilePicPath" runat="server" Style="display: none"></asp:TextBox>
                <table width="590" align="center" cellpadding="0" cellspacing="0" border="0" id="Upload">
                    <tr>
                        <td valign="top">
                            <fieldset>
                                <legend>图片来源</legend>
                                <table cellpadding="4" cellspacing="0" border="0" width="100%">
                                    <tr>
                                        <td>
                                            <table cellpadding="1">
                                                <tr>
                                                    <td>
                                                        <asp:TextBox ID="txtName1" runat="server" Width="100%" Text="图片名称1" CssClass="in1"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <input class="in1" id="File1" style="height: 22px; line-height: 22px; float: left;
                                                            width: 100%" type="file" name="File1" runat="server">
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <asp:TextBox ID="txtContent1" runat="server" TextMode="MultiLine" Rows="3" Columns="30"
                                                            Text="简单描述"></asp:TextBox>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                        <td>
                                            <table cellpadding="1">
                                                <tr>
                                                    <td><asp:TextBox ID="txtName2" runat="server" Width="100%" Text="图片名称2" CssClass="in1"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td><input class="in1" id="File2" type="file" size="28" name="File2" runat="server" style="height: 22px; line-height: 22px; float: left;
                                                            width: 100%">
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td><asp:TextBox ID="txtContent2" runat="server" TextMode="MultiLine" Rows="3" Width="100%"
                                                Text="简单描述"></asp:TextBox>
                                                    </td>
                                                </tr>
                                            </table>                                            
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <table cellpadding="1">
                                                <tr>
                                                    <td><asp:TextBox ID="txtName3" runat="server" Width="100%" Text="图片名称3" CssClass="in1"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td><input class="in1" id="File3" type="file" size="28" name="File3" runat="server" style="height: 22px; line-height: 22px; float: left;
                                                            width: 100%">
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td><asp:TextBox ID="txtContent3" runat="server" TextMode="MultiLine" Rows="3" Width="100%"
                                                Text="简单描述"></asp:TextBox>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                        <td>
                                            <table cellpadding="1">
                                                <tr>
                                                    <td><asp:TextBox ID="txtName4" runat="server" Width="100%" Text="图片名称4" CssClass="in1"></asp:TextBox>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td><input class="in1" id="File4" type="file" size="28" name="File4" runat="server" style="height: 22px; line-height: 22px; float: left;
                                                            width: 100%">
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td><asp:TextBox ID="txtContent4" runat="server" TextMode="MultiLine" Rows="3" Width="100%"
                                                Text="简单描述"></asp:TextBox>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                            </fieldset>
                            <fieldset>
                                <legend>设置图片</legend>
                                <table cellpadding="2" cellspacing="0" border="0" align="left">
                                    <tr>
                                        <td>
                                            <div style="float: left">
                                                <asp:CheckBox ID="WaterMark" runat="server" Text="水印" /></div>
                                            <div id="ajax" style="float: left">
                                                <asp:CheckBox ID="NewSize" runat="server" Text="约束比例" onClick="chooseOne(this,'ajax');" /><asp:CheckBox
                                                    ID="Fastness" runat="server" Text="固定大小" onClick="chooseOne(this,'ajax');" /></div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="left">
                                            <asp:RadioButton ID="newsize1" runat="server" GroupName="NewSizeType" Text="按比例缩放：" /><asp:TextBox
                                                ID="txtBiLi" runat="server" Columns="4" onclick="SelectTextBox(this)" CssClass="in1">50</asp:TextBox>%
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:RadioButton ID="newsize2" runat="server" GroupName="NewSizeType" Text="按设置缩放：" />
                                            宽<asp:TextBox ID="txtWidth" runat="server" Columns="3" onclick="SelectTextBox(this)"
                                                CssClass="in1">200</asp:TextBox>
                                            高<asp:TextBox ID="txtHeight" runat="server" Columns="3" onclick="SelectTextBox(this)"
                                                CssClass="in1">200</asp:TextBox>
                                            单位：px
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                        </td>
                                    </tr>
                                </table>
                            </fieldset>
                            <fieldset>
                                <legend>确认提交</legend>
                                <table cellpadding="0" cellspacing="0" border="0" align="left">
                                    <tr>
                                        <td height="40">
                                            <asp:Button ID="Button1" runat="server" Text=" 确定 " OnClick="Button1_Click" CssClass="btn"
                                                Style="margin-left: 220px;" />
                                            <input id="Button3" type="button" value=" 取消 " onclick="api.close()" style="margin-left: 20px;"
                                                class="btn" />
                                        </td>
                                    </tr>
                                </table>
                            </fieldset>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>

    <script>
        DianCMS_$('FilePicPath').value = W.document.getElementById('FilePicPath').value;
    </script>

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