<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Set_Photo.aspx.cs" Inherits="Csc_aspx_admin_Set_Photo" %>
<%@ Import Namespace="D.Common" %>
<%@ Import Namespace="D.BLL" %>
<!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 id="CssName" rel="stylesheet" type="text/css" runat="server" />
    <script type="text/javascript" src="/js/jquery-1.4.2.min.js"></script>
    <script type="text/javascript" src="/js/date/date.js"></script>
    <script type="text/javascript" src="/js/common.js"></script>
    <script type="text/javascript" src="/js/color.js"></script>
    <script type="text/javascript" src="/js/Linkage.js"></script>
    <script type="text/javascript" src="/js/zh-cn/listbox.js"></script>
    <script type="text/javascript" src="/js/zh-cn/Shop.js"></script>
    <script type="text/javascript" charset="utf-8" src="/editor/ueditor/ueditor.config.js"></script>
    <script type="text/javascript" src="/editor/ueditor/ueditor.all.min.js"></script>
    <script type="text/javascript" language="javascript" src="/js/info/Photo.js"></script>
    <script type="text/javascript" language="javascript" src="/js/lhgdialog/lhgcore.lhgdialog.min.js?self=true&skin=<%=Function.GetCssNameColor()%>"></script>
</head>
<body>
    <form id="form1" runat="server"><asp:TextBox ID="FilePicPath" runat="server" style="display:none">user|0</asp:TextBox><asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
    <table class="dh" cellpadding="0" cellspacing="0" border="0" align="center">
        <tr>
            <td>
                <asp:Image ID="P_Go" runat="server" ImageAlign="AbsMiddle" />
                您现在的位置：<a href="../info.aspx">后台管理</a> >>
                <asp:Literal ID="LitModelName" runat="server"></asp:Literal>
                >>
                <asp:Literal ID="LitSetName" runat="server"></asp:Literal>
            </td>
        </tr>
    </table>
    <table class="border" cellspacing="1" cellpadding="0" width="99%" border="0" align="center">        
        <tr>
<td class="bqleft">图片名称：</td>
<td class="bqright"><asp:TextBox ID="DianCMS_Name" runat="server" CssClass="in1" style="width:300px" Text=""></asp:TextBox> </td>
</tr>
<tr>
<td class="bqleft">关键字：</td>
<td class="bqright"><asp:TextBox ID="DianCMS_Tag" runat="server" CssClass="in1" style="width:200px" Text=""></asp:TextBox> 多个关键字请用空格隔开</td>
</tr>
<tr>
<td class="bqleft">作者：</td>
<td class="bqright"><asp:TextBox ID="DianCMS_Author" runat="server" CssClass="in1" style="width:200px" Text=""></asp:TextBox> </td>
</tr>
<tr>
<td class="bqleft">图片来源：</td>
<td class="bqright"><asp:TextBox ID="DianCMS_Source" runat="server" CssClass="in1" style="width:200px" Text=""></asp:TextBox> </td>
</tr>
<tr>
<td class="bqleft">图片属性：</td>
<td class="bqright"><asp:CheckBox ID="DianCMS_IsRecommend" runat="server" Text="推荐" /><asp:CheckBox ID="DianCMS_IsFocus" runat="server" Text="焦点" /><asp:CheckBox ID="DianCMS_IsHeader" runat="server" Text="头条" /><asp:CheckBox ID="DianCMS_IsTop" runat="server" Text="置顶" /><asp:CheckBox ID="DianCMS_IsComment" runat="server" Text="允许评论" /><asp:CheckBox ID="DianCMS_IsCreate" runat="server" Text="是否生成" /></td>
</tr>
<tr>
<td class="bqleft">图片简介：</td>
<td class="bqright">                <asp:TextBox ID="DianCMS_Content" runat="server" TextMode="MultiLine"></asp:TextBox>
                <script type="text/javascript">
                    UE.getEditor('DianCMS_Content', {
                        //这里可以选择自己需要的工具按钮名称
                        toolbars: [['FullScreen', 'Source', 'Undo', 'Redo','bold','italic', 'underline', '|', 'strikethrough', 'superscript', 'subscript', '|','justifyleft', 'justifycenter', 'justifyright', 'justifyjustify']],
                        initialFrameWidth:'100%',
                        initialFrameHeight:200,
                        serverUrl:'/editor/ueditor/net/controller.ashx?FilePicPath=<%=FilePicPath.Text%>'
                    })
                </script>
 
</td>
</tr>
<tr>
<td class="bqleft">首页图片：</td>
<td class="bqright"><table border="0" cellpadding="0" cellspacing="0"><tr><td><asp:TextBox ID="DianCMS_Pic" runat="server" CssClass="in1" style="width:300px;float:left"></asp:TextBox><asp:TextBox ID="DianCMS_Pic_small" runat="server" CssClass="in1" style="display:none;float:left"></asp:TextBox><input id="DianCMS_Pic_Btu" type="button" value="上传图片" class="btn" style="float:left" onclick="WinOpenLhgDialog('上传图片','../common/uploadpic.aspx?ControlId=DianCMS_Pic&FieldId=78',620,280,'')" /><input id="DianCMS_Pic_Btu_2" type="button" value="从服务器上选择" style="float:left" class="btn" onclick="SelectFile('../common/SelectUploadFile2.aspx?filetype=image&ControlId=DianCMS_Pic','')" /> </td></tr></table></td>
</tr>
<tr>
<td class="bqleft">图片地址：</td>
<td class="bqright">                <table cellpadding="0" border="0" cellspacing="0">
                    <tr>
                        <td><span id="DianCMS_Image_showpic"></span></td>
                    </tr>
                    <tr><td>
<table cellpadding="0" cellspacing="0" border="0"><tr><td><asp:ListBox ID="DianCMS_Image" runat="server" Height="150px" Width="500px" SelectionMode="Multiple"></asp:ListBox><asp:TextBox ID="DianCMS_Image_Text" style="display:none" runat="server"></asp:TextBox></td><td><input id="DianCMS_Image_BtuEdit" type="button" value="修改选中图片" class="btn" onclick="EditOneListBox('','DianCMS_Image','<%=Function.GetCssName()%>')" /><br/><input id="DianCMS_Image_BtuDel" type="button" value="删除选中图片" class="btn" style="margin-top:5px;" onclick="DelOneListBox('DianCMS_Image')" /><br/><input id="DianCMS_Image_BtuDel" type="button" value="清空所有图片" class="btn" style="margin-top:5px;" onclick="DelAllListBox('DianCMS_Image')" /><br/><input id="DianCMS_Image_BtuUp" type="button" value="向上移动" style="margin-top:5px;" class="btn" onclick="MoveListBox('DianCMS_Image','up')" /><br/><input id="DianCMS_Image_BtuDown" type="button" value="向下移动" class="btn" style="margin-top:5px;" onclick="MoveListBox('DianCMS_Image','down')" /> </td></tr><tr><td><input id="DianCMS_Image_Btu_Upload" type="button" value="上传图片" class="btn" onclick="WinOpenLhgDialog('上传图片','../common/BatchUploadImage.aspx?ControlId=DianCMS_Image&FieldId=79',655,450,'<%=Function.GetCssName()%>')" /><input id="DianCMS_Image_Btu_Upload" type="button" value="批量上传" class="btn" onclick="WinOpenLhgDialog('批量上传图片','../common/swfupload/default.aspx?ControlId=DianCMS_Image&FieldId=79',755,500,'<%=Function.GetCssName()%>')" /><input id="DianCMS_Image_Btu_SelServer" type="button" value="从服务器上选择图片" class="btn" style="margin-left:5px;" onclick="SelectFile('../common/SelectUploadFile.aspx?filetype=image&ControlId=DianCMS_Image','')" /><input id="DianCMS_Image_Btu_OutUrl" type="button" value="添加外部地址" class="btn" style="margin-left:5px;"  onclick="WinOpenLhgDialog('添加外部地址','/common/BatchEditUrl.aspx?ControlId=DianCMS_Image',600,280,'<%=Function.GetCssName()%>')" /><script>showmorepic('DianCMS_Image');</script></td></tr></table>                    </td></tr></table>
</td>
</tr>
<tr>
<td class="bqleft">评分等级：</td>
<td class="bqright"><asp:DropDownList ID="DianCMS_Start" runat="server"><asp:ListItem Value="0">请选择</asp:ListItem></asp:DropDownList> </td>
</tr>
        <tr>
            <td class="bqleft">
            </td>
            <td class="bqright" height="50">
                <asp:button id="Button1" runat="server" text=" 确认 " cssclass="btn" onclick="Button1_Click" OnClientClick="return ReturnIsOk()"/>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
