<%@ page language="C#" autoeventwireup="true" inherits="admin_5_indexedit, s1.chapk.com" validaterequest="false" %>

<%@ Register Assembly="YangControls" Namespace="YangControls" TagPrefix="yyc" %>
<!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 runat="server">
    <title>编辑广告</title>
    <link rel="stylesheet" href="../css/table.css" type="text/css" media="all" />
<script src="../editor/kindeditor-min.js"></script>
<script charset="utf-8" src="../editor/lang/zh_CN.js"></script>
<script>
			var editor;
			KindEditor.ready(function(K) {
				editor = K.create('textarea[name="s_details"]', {
					resizeType : 1,
					allowPreviewEmoticons : false,
					allowImageUpload : false,
					items : [
						'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
						'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
						'insertunorderedlist', '|', 'emoticons', 'image', 'link']
				});
			});
			KindEditor.ready(function(K) {
				var colorpicker;
				K('#colorpicker').bind('click', function(e) {
					e.stopPropagation();
					if (colorpicker) {
						colorpicker.remove();
						colorpicker = null;
						return;
					}
					var colorpickerPos = K('#colorpicker').pos();
					colorpicker = K.colorpicker({
						x : colorpickerPos.x,
						y : colorpickerPos.y + K('#colorpicker').height(),
						z : 19811214,
						selectedColor : 'default',
						noColor : '无颜色',
						click : function(color) {
							K('#s_ys').val(color);
							colorpicker.remove();
							colorpicker = null;
						}
					});
				});
				K(document).click(function() {
					if (colorpicker) {
						colorpicker.remove();
						colorpicker = null;
					}
				});
			});
		</script>    
</head>
<body>
    <form id="form1" runat="server">
        <asp:Label ID="lab_url" runat="server" Visible="false"></asp:Label>
        <div class="my_alt">
            编辑广告<asp:Label ID="LAB_ID" runat="server" Visible="False"></asp:Label></div>
        <table cellpadding="0" cellspacing="0" border="0" width="100%" class="tb">
            <tr>
                <td class="tl">
                    调用商品类别：</td>
                <td class="tr">
                    <asp:DropDownList ID="s_lb" runat="server">
                    </asp:DropDownList></td>
            </tr>
            <tr>
                <td class="tl">
                    板块色彩：</td>
                <td class="tr">
                    <asp:TextBox ID="s_ys" runat="server" Width="100px"></asp:TextBox><input type="button" id="colorpicker" value="打开取色器" /></td>
            </tr>            
            <tr>
                <td class="tl">
                    名称：</td>
                <td class="tr">
                    <asp:TextBox ID="s_mc" runat="server" Width="300px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="s_mc"
                        ErrorMessage="标题不能为空"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td class="tl">
                    图片：</td>
                <td class="tr">
                    <asp:TextBox ID="s_logo" runat="server" Style="display: none"></asp:TextBox>
                    <input id="File1" type="file" runat="server" style="width: 200px" /><asp:Button ID="BTN_UPFILE"
                        runat="server" Text="上  传" OnClick="BTN_UPFILE_Click" CausesValidation="false" />
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="s_logo"
                        ErrorMessage="请上传图片"></asp:RequiredFieldValidator>
                    <asp:Label ID="s_logo_ys" runat="server"></asp:Label></td>
            </tr>
            <tr>
                <td class="tl">
                    显示位置：</td>
                <td class="tr">
                    <asp:TextBox ID="sort" runat="server" Width="100px"></asp:TextBox></td>
            </tr>
            <tr>
                <td colspan="2" align="center" style="height: 24px">
                    <asp:Button ID="btn_ok" runat="server" Text=" 保存 " OnClick="btn_ok_Click" /></td>
            </tr>
        </table>
    </form>
</body>
</html>
