<!--#include file="conn.asp"-->
<!--#include file="check.asp"-->
<%
	useflag=2
%>
<!--#include file="flag.asp"-->
<!--#include file="../inc/setup.asp"-->
<!--#include file="../inc/sql.asp"-->
<%
	end if
	action=Trim(Request.QueryString("action"))
	if action="save" then
		TitleFontColor=Trim(Request.Form("TitleFontColor"))
		TitleFontColor_begin=Trim(Request.Form("TitleFontColor_begin"))
		TitleFontColor_end=Trim(Request.Form("TitleFontColor_end"))
		shunxu=Trim(Request.Form("shunxu"))
		maxfont=int(Trim(Request.Form("maxfont")))
		maxfont_begin=Trim(Request.Form("maxfont_begin"))
		maxfont_end=Trim(Request.Form("maxfont_end"))
		id=int(Trim(Request.Form("id")))
		sql="update company set TitleFontColor='"&TitleFontColor&"',TitleFontColor_begin='"&TitleFontColor_begin&"',TitleFontColor_end='"&TitleFontColor_end&"',shunxu="&shunxu&" ,maxfont="&maxfont&" ,maxfont_begin='"&maxfont_begin&"' ,maxfont_end='"&maxfont_end&"' where id="&id
		conn.execute sql
		response.write "<script language=JavaScript>" &  "alert('帐户修改成功');" & "window.close()" & "</script>"
		response.end
	end if

	set rs = server.CreateObject("adodb.recordset")
	sql="select * from company where id="&Trim(Request.QueryString("id"))
	rs.open sql,conn,1,1
	if rs.recordcount=0 then
		rs.close
		set rs=nothing
		response.write "<script language=JavaScript>" &  "alert('非法数据提交！');" & "window.close()" & "</script>" 
		Response.End
	end if
	TitleFontColor=rs("TitleFontColor")
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>标签类型</title>
</head>
<link href="Include/ModeWindow.css" rel="stylesheet">
<script language="JavaScript" src="Include/Common.js"></script>
<script language="JavaScript" src="Include/Mymodify.js"></script>
<body  topmargin="0" leftmargin="0">
<br>
<form action="?action=save" method="post">
<input name="id" type="hidden" value="<%= Trim(Request.QueryString("id")) %>">
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class='border'>
  <tr class='title'>
    <td colspan=2 align=center height=25>修改企业展示信息</td>
  </tr>
  <tr class='tdbg'>
    <td width="118" height="30" align="right">用 户 名:</td>
    <td width="840" height="30"><%=rs("uname")%></td>
  </tr>
  <tr class='tdbg'>
    <td align="right">字体颜色:</td>
    <td height="30"><select id='TitleFontColor' name="TitleFontColor">
                      <option value='#000000' selected>颜色</option>
                      <option value='#000000' style='background-color:#000000' <% If TitleFontColor="#000000" Then Response.Write("selected")%>></option>
                      <option value='#FFFFFF' style='background-color:#FFFFFF' <% If TitleFontColor="#FFFFFF" Then Response.Write("selected")%>></option>
                      <option value='#008000' style='background-color:#008000' <% If TitleFontColor="#008000" Then Response.Write("selected")%>></option>
                      <option value='#800000' style='background-color:#800000' <% If TitleFontColor="#800000" Then Response.Write("selected")%>></option>
                      <option value='#808000' style='background-color:#808000' <% If TitleFontColor="#808000" Then Response.Write("selected")%>></option>
                      <option value='#000080' style='background-color:#000080' <% If TitleFontColor="#000080" Then Response.Write("selected")%>></option>
                      <option value='#800080' style='background-color:#800080' <% If TitleFontColor="#800080" Then Response.Write("selected")%>></option>
                      <option value='#808080' style='background-color:#808080' <% If TitleFontColor="#808080" Then Response.Write("selected")%>></option>
                      <option value='#FFFF00' style='background-color:#FFFF00' <% If TitleFontColor="#FFFF00" Then Response.Write("selected")%>></option>
                      <option value='#00FF00' style='background-color:#00FF00' <% If TitleFontColor="#00FF00" Then Response.Write("selected")%>></option>
                      <option value='#00FFFF' style='background-color:#00FFFF' <% If TitleFontColor="#00FFFF" Then Response.Write("selected")%>></option>
                      <option value='#FF00FF' style='background-color:#FF00FF' <% If TitleFontColor="#FF00FF" Then Response.Write("selected")%>></option>
                      <option value='#FF0000' style='background-color:#FF0000' <% If TitleFontColor="#FF0000" Then Response.Write("selected")%>></option>
                      <option value='#0000FF' style='background-color:#0000FF' <% If TitleFontColor="#0000FF" Then Response.Write("selected")%>></option>
                      <option value='#008080' style='background-color:#008080' <% If TitleFontColor="#008080" Then Response.Write("selected")%>></option>
                  </select> 
      &nbsp;开始时间： 
      <input type="text" name="TitleFontColor_begin" size="10" maxLength=40 value="<%=rs("TitleFontColor_begin")%>" onFocus="show_cele_date(TitleFontColor_begin,'','',TitleFontColor_begin)"> 
      &nbsp;&nbsp;结束时间：
      <input type="text" name="TitleFontColor_end" size="10" maxLength=40 value="<%=rs("TitleFontColor_end")%>" onFocus="show_cele_date(TitleFontColor_end,'','',TitleFontColor_end)"></td>
  </tr>
  <tr class='tdbg'>
    <td align="right">排列顺序:</td>
    <td height="30"><input type="text" name="shunxu" size="10" maxLength=40 value="<%=rs("shunxu")%>" onkeypress="if (event.keyCode < 45 || event.keyCode > 57) event.returnValue = false;"> 
      &nbsp;（仅能输入数字，数字越大，排列越前）</td>
  </tr>
  <tr class='tdbg'>
    <td align="right">字体加粗:</td>
    <td><input type="radio" name="maxfont" value="0" <% If rs("maxfont")<>1 Then Response.Write("checked")%>>不加粗&nbsp;<input type="radio" name="maxfont" value="1" <% If rs("maxfont")=1 Then Response.Write("checked")%>>
    加粗&nbsp;&nbsp;　&nbsp;开始时间：
      <input type="text" name="maxfont_begin" size="10" maxLength=40 value="<%=rs("maxfont_begin")%>" onFocus="show_cele_date(maxfont_begin,'','',maxfont_begin)">
结束时间：
<input type="text" name="maxfont_end" size="10" maxLength=40 value="<%=rs("maxfont_end")%>" onFocus="show_cele_date(maxfont_end,'','',maxfont_end)"></td>
  </tr>
</table>
<table width="100%" height="30" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="40" align="center"><input type="submit" name="Submit" class='textbox' value=" 确 定 ">        
<input type="button" name="Submit2" class='textbox' onClick="window.close()" value=" 取 消 "></td>
</tr>
</table>
</form>
</body>
</html>
<%
	rs.close
	set rs=nothing
%>
