<%@ Page Language="C#" validateRequest="false" Inherits="SiteServer.BackgroundPages.BackgroundContentEdit" %>
<%@ Register TagPrefix="bairong" Namespace="BaiRong.Controls" Assembly="BaiRong.Controls" %>
<%@ Register TagPrefix="user" Namespace="UserCenter.Controls" Assembly="UserCenter.Pages" %>
<%@ Register TagPrefix="site" Namespace="SiteServer.Controls" Assembly="SiteServer.Controls" %>

<html>
<head>
<!--#include file="../inc/html_head.inc"-->
<user:custom type="style" runat="server"></user:custom>

<meta http-equiv="content-type" content="text/html;charset=gb2312">
<META HTTP-EQUIV="pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">
<META HTTP-EQUIV="expires" CONTENT="0">
<bairong:Code type="Calendar" runat="server" />
<bairong:Code type="Prototype" runat="server" />
<bairong:Code type="Scriptaculous" runat="server" />
<script language="javascript" src="../Inc/auxiliary.js"></script>
<script language="javascript" src="../Inc/contentpicker.js"></script>
<script language="javascript" src="../../sitefiles/bairong/Scripts/validate.js"></script>
</head><body>
<user:custom type="showpopwin" runat="server" />
<form id="myForm" enctype="multipart/form-data" runat="server">
  <bairong:Message runat="server"></bairong:Message>
  <DIV class="column">
    <div class="columntitle">修改内容 </div>
    <asp:Literal ID="ltlScripts" runat="server"></asp:Literal>
    <table cellpadding="0" cellspacing="0" width="100%" border="0" align="center" >
      <tr height="120">
        <td class="tdbg"><table width="98%" align="center" cellpadding="3" cellspacing="3">
            <tr>
              <td width="150"><bairong:help HelpText="包含此信息的栏目名称" Text="栏目名：" runat="server" ></bairong:help>
              </td>
              <td colspan="2"><asp:Literal ID="ltlNodeName" runat="server"/>
              </td>
            </tr>
            <site:AuxiliarySingleControl ID="Title" isValidate="true" isRequire="true" formatString="<tr><td>{0}</td><td colspan=3>{1} <A onclick='toggleTitleFormat(); return false' href='javascript:undefined;'>文字格式↓</A></td></tr>" runat="server"/>
            <tr id="titleFormatRow" style="<%=GetTitleFormatRowStyle()%>">
              <td width="150"><bairong:help HelpText="设置文字格式" Text="文字格式：" runat="server"></bairong:help>
              </td>
              <td colspan="2"> 样式:
                <asp:CheckBox ID="formatStrong" runat="server" Text="<STRONG>粗体</STRONG>"></asp:CheckBox>
                <asp:CheckBox ID="formatEM" runat="server" Text="<EM>斜体</EM>"></asp:CheckBox>
                <asp:CheckBox ID="formatU" runat="server" Text="<U>下划线</U>"></asp:CheckBox>
                &nbsp;&nbsp;
                颜色:
                <asp:TextBox class="colorblur" onfocus="this.className='colorfocus';" onblur="this.className='colorblur';" ID="formatColor" Size="7" runat="server"/>
                <select name="highlight_colorselect" ID="highlight_colorselect" onChange="selectoptioncolor(this)">
                  <option value="">默认</option>
                  <option style="background:#FF0000" value="#FF0000"></option>
                  <option style="background:#FFA500" value="#FFA500"></option>
                  <option style="background:#FFFF00" value="#FFFF00"></option>
                  <option style="background:#008000" value="#008000"></option>
                  <option style="background:#00FFFF" value="#00FFFF"></option>
                  <option style="background:#0000FF" value="#0000FF"></option>
                  <option style="background:#800080" value="#800080"></option>
                  <option style="background:#808080" value="#808080"></option>
                </select>
                <img class="img" title="选择颜色" src="../../sitefiles/bairong/Icons/colorpicker.gif" id=s_bgcolor onClick="IsShowColorPanel(this);" style="cursor:hand; border:0px;" /> </td>
            </tr>
            <tr id="RowSubTitle" runat="server">
              <td width="150"><bairong:help id="HelpSubTitle" runat="server" ></bairong:help>
              </td>
              <td colspan="2"><asp:TextBox class="colorblur" onfocus="this.className='colorfocus';" onblur="this.className='colorblur';" id="SubTitle"
				MaxLength="500"
				Size="60"
				runat="server"/>
              </td>
            </tr>
            <tr id="RowImageUrl" runat="server">
              <td width="150"><bairong:help id="HelpImageUrl" runat="server" ></bairong:help>
              </td>
              <td><nobr>
                <asp:TextBox class="colorblur" onfocus="this.className='colorfocus';" onblur="this.className='colorblur';" id="ImageUrl"
				MaxLength="100"
				Size="40"
				runat="server"/>
                <asp:HyperLink ID="SelectImage" NavigateUrl="javascript:undefined;" runat="server">选择</asp:HyperLink>
                <asp:HyperLink ID="UploadImage" NavigateUrl="javascript:undefined;" runat="server">上传</asp:HyperLink>
                </nobr> </td>
                <td rowspan="3" align="left" width="320">&nbsp;<IMG src="<%=PreviewImageSrc%>" class="preview" alt=图片预览 name="preview_ImageUrl" id="preview_ImageUrl" align="absmiddle"></td>
            </tr>
            <tr id="RowCheckBoxList" runat="server">
              <td width="150"><bairong:help HelpText="设置此信息的显示属性。“推荐”表示此信息为推荐信息；“头条”表示此信息为头条信息；“标题醒目”表示此信息为标题醒目信息；“分类固顶”表示设置此信息的位置在顶端。" Text="显示属性：" runat="server" ></bairong:help>
              </td>
              <td><asp:CheckBox ID="IsRecommend" runat="server" Text="推荐"></asp:CheckBox>
                <asp:CheckBox ID="IsHot" runat="server" Text="热点"></asp:CheckBox>
                <asp:CheckBox ID="IsColor" runat="server" Text="醒目"></asp:CheckBox>
                <asp:CheckBox ID="IsTop" runat="server" Text="置顶"></asp:CheckBox>
              </td>
            </tr>
            <tr id="RowLinkUrl" runat="server">
              <td width="150"><bairong:help id="HelpLinkUrl" runat="server" ></bairong:help>
              </td>
              <td><asp:TextBox class="colorblur" onfocus="this.className='colorfocus';" onblur="this.className='colorblur';" id="LinkUrl"
				maxlength="200"
				Size="50"
				runat="server"/> </td>
            </tr>
            <tr id="RowFileUrl" runat="server">
              <td width="150"><bairong:help id="HelpFileUrl" runat="server" ></bairong:help>
              </td>
              <td colspan="2"><asp:TextBox class="colorblur" onfocus="this.className='colorfocus';" onblur="this.className='colorblur';" id="FileUrl"
				Size="60"
				runat="server"/> <span id="add_FileUrl" runat="server"></span><span id="del_FileUrl" runat="server"></span>
              </td>
            </tr>
            <site:AuxiliarySingleControl ID="Content" runat="server"/>
            <tr id="RowAuthor" runat="server">
              <td width="150"><bairong:help id="HelpAuthor"  runat="server" ></bairong:help>
              </td>
              <td colspan="2"><asp:TextBox class="colorblur" onfocus="this.className='colorfocus';" onblur="this.className='colorblur';" id="Author"
				MaxLength="50" Size="60" runat="server"/>
              </td>
            </tr>
            <tr id="RowSource" runat="server">
              <td width="150"><bairong:help id="HelpSource" runat="server" ></bairong:help>
              </td>
              <td colspan="2"><asp:TextBox class="colorblur" onfocus="this.className='colorfocus';" onblur="this.className='colorblur';" id="Source"
				MaxLength="50" Size="60" runat="server"/>
              </td>
            </tr>
            <tr id="RowSummary" runat="server">
              <td width="150"><bairong:help id="HelpSummary" runat="server" ></bairong:help>
              </td>
              <td colspan="2"><asp:TextBox class="colorblur" onfocus="this.className='colorfocus';" onblur="this.className='colorblur';" id="Summary"
				TextMode="MultiLine"
				Columns="60"
				Rows="5" style="overflow-y:visible;"
				runat="server" />
              </td>
            </tr>
            <tr id="RowAddDate" runat="server">
              <td width="150"><bairong:help id="HelpAddDate" runat="server" ></bairong:help>
              </td>
              <td colspan="2"><user:DateTimeTextBox class="colorblur" id="AddDate" ShowTime="true" Now="true" Size="30" runat="server"/>
              </td>
            </tr>
            <site:AuxiliaryControl ID="ControlForAuxiliary" FormatTextEditor="<tr><td colspan='4' align='left'>{0}</td></tr><tr><td colspan='4' align='left'>{1}</td></tr>" FormatImage="<tr height='80' valign='middle'><td>{0}</td><td colspan='3'>{1}</td></tr>" FormatDefault="<tr><td>{0}</td><td colspan='3'>{1}</td></tr>" runat="server"/>
            <tr id="RowTags" runat="server">
              <td width="150"><bairong:help HelpText="设置此内容的标签" Text="内容标签：" runat="server"></bairong:help>
              </td>
              <td colspan="2"><asp:TextBox class="colorblur" onfocus="this.className='colorfocus';ShowTagsPanel();" onblur="this.className='colorblur';" id="Tags"	MaxLength="50" Size="47" runat="server"/>
                (请用“,”或“;”分隔多个标签) </td>
            </tr>
            <tr id="RowContentGroup" runat="server">
              <td colspan="3"><bairong:help HelpText="此信息所属的内容组" Text='所属内容组：<input type="checkbox" id="check_groups" onClick=_checkAll(document.getElementById("ContentGroup"),this.checked);><label for="check_groups">全选</label>'  runat="server" ></bairong:help>
                <span id="ContentGroup">
                <asp:CheckBoxList ID="ContentGroupNameCollection" RepeatDirection="Horizontal" RepeatColumns="5" runat="server"/>
                </span> </td>
            </tr>
            <tr>
              <td colspan="3" align="center" height="40" valign="middle">
              <asp:Button class="button" id="Submit" text="修 改" onclick="Submit_OnClick" runat="server"/>
                &nbsp;&nbsp;
                <input class="button" type="button" onClick="submitPreview();" value="预 览" />
                &nbsp;&nbsp;
                <input class="button" type="button" onClick="location.href='<%=ReturnUrl%>';return false;" value="返 回" />
              </td>
            </tr>
          </table></td>
      </tr>
    </table>
  </DIV>
</form>
<!--标题颜色-->
<div  id="ColorPicker" title="ColorPicker" style="display:none;cursor:crosshair;border: black 1px solid;position: absolute; z-index: 10;background-color: aliceblue; width:250px;background: #FFFFFF;padding: 4px; margin-left:150px;" onMouseOver="ShowColorPanel();">
  <table border="0" cellPadding="0" cellSpacing="10" onMouseOver="ShowColorPanel();">
    <tr>
      <td><table border="0" cellPadding="0" cellSpacing="0" id="ColorTable" style="cursor:crosshair;"  onmouseover="ShowColorPanel();">
          <script type="text/javascript">outputColor1();</script>
        </table></td>
      <td><table border="0" cellPadding="0" cellSpacing="0" id="GrayTable" style="CURSOR: hand;cursor:crosshair;"  onmouseover="ShowColorPanel();">
          <script type="text/javascript">outputColor2();</script>
        </table></td>
    </tr>
  </table>
  <table border="0" cellPadding="0" cellSpacing="10" onMouseOver="ShowColorPanel();">
    <tr>
      <td rowSpan="2">选中色彩
        <table border="1" cellPadding="0" cellSpacing="0" height="30" id="ShowColor" width="40" bgcolor="">
          <tr>
            <td></td>
          </tr>
        </table></td>
      <td rowSpan=2>基色: <span id="RGB"></span><br />
        亮度: <span id="GRAY">120</span><br />
        代码:
        <input id="SelColor" size="7" value="" border="0" name="SelColor" /></TD>
      <td><input type="button" onClick="javascript:ColorPickerOK();" value="确定" ID="ok" class="lightbutton" /></td>
    </tr>
    <tr>
      <td><input type="button" onClick="javascript:document.getElementById('formatColor').value='';document.getElementById('s_bgcolor').style.background='#FFFFFF';HideColorPanel();" value="取消" ID="Button2" NAME="Button2" class="lightbutton"  /></td>
    </tr>
  </table>
</div>
<!--标签-->
<style type="text/css">
.set-r{ float:left; width:230px; margin:12px 15px 0 0}
.trigon{ width:9px; border-right:1px solid #ccc; height:318px; float:left; position:relative;}
.trigonar { width:10px; height:18px; background:url(../pic/tags_bg_ico.gif) no-repeat; overflow:hidden; position:absolute; bottom:55px;}
.se{ float:left; height:318px; border-top:1px solid #ccc; border-right:1px solid #ccc; border-bottom:1px solid #ccc; background:white; width:220px; overflow:auto; word-break:break-all; overflow-x:hidden; padding:4px;}
.se h2{ width:210px; line-height:25px; border-bottom:1px dotted #a9a9a9; font-size:12px; font-weight:normal;margin-top:5px;}
.se h2 span{ color:#666;}
.se p{ width:210px; margin:5px auto; padding-right:10px; line-height:20px; text-align:left;font-family:arial} 
.se p a:link, .se p a:visited{ FONT-WEIGHT: bold;	FONT-SIZE: 12px; COLOR: #104d6c;}

.tag_popularity_1{	FONT-SIZE: 12px; font-weight:normal !important; COLOR: #104d6c;}
.tag_popularity_2 {FONT-WEIGHT: bold; COLOR: #104d6c;}
.tag_popularity_3 {FONT-WEIGHT: bold; COLOR: #ff0f6f !important; font-size:14px !important;}
.tag_popularity_4 {FONT-WEIGHT: bold; font-size:16px !important;  COLOR: #ff0f6f !important}

.se p a:hover{background:#104d6c !important; color:white; text-decoration:none;}
.selected {background:#104d6c !important; color:white  !important; text-decoration:none;}
</style>
<div  id="TagPicker" style="position: absolute; z-index: 10;display:none">
  <table border="0" cellPadding="0" cellSpacing="0">
    <tr>
      <td><div class="set-r">
          <div class="trigon">
            <div class="trigonar"></div>
          </div>
          <div class="se">
            <p><img src="../../sitefiles/bairong/Icons/tags.gif" align="absmiddle">&nbsp;选择标签</p>
            <p>
              <asp:Literal ID="TagsList" runat="server"></asp:Literal>
            </p>
            <p style="text-align:center">
              <input class="button" type="button" onClick="HideTagsPanel();return false;" value="关 闭" />
            </p>
          </div>
        </div></td>
    </tr>
  </table>
</div>
<br />
<script>
document.body.onkeydown = function (moz_ev) 
{ 
		var ev = null; 
		if (window.event){ 
				ev = window.event; 
		}else{ 
				ev = moz_ev; 
		} 
		if (ev != null && ev.ctrlKey && ev.keyCode == 13) 
	    { 
			   document.getElementById("Submit").click(); 
	    } 
}
</script>
</body>
</html>
