<!--#include file="conn.asp"-->
<!--#include file="chkadmin.asp"-->
<!--#include file="config.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<link href="../style.css" rel="stylesheet" type="text/css">
<STYLE>
BODY {
	    scrollbar-face-color : #96A2AD;
	    scrollbar-shadow-color : #96A2AD;
	    scrollbar-highlight-color : #96A2AD;
	    scrollbar-3dlight-color : #96A2AD;
	    scrollbar-darkshadow-color : #96A2AD;
	    scrollbar-track-color : #CCCCCC;
	    scrollbar-arrow-color : #FFFFFF;
}
</STYLE>
<SCRIPT language=JScript>
function del(skin)
{
    if ( confirm("您确定要删除此配色方案吗？"))
        {
            window.location.href = "skin_del.asp?skin=" + skin
        }
}
</SCRIPT>
</head>

<body>
<table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td width="120" valign="top"> 
      <table width="100%" border="0" cellspacing="0" cellpadding="2">
        <tr>
          <td align="center" bgcolor="#708090" class="TdBorderB"><font color="#FFFFFF">网页配色方案</font></td>
        </tr>
<%dim sql,rs,id
id=Trim(Request.QueryString("id"))
if id="" then
	id=cint(SiteSetting(4))
end if
sql="select ID,SkinName from Skin"
set rs=conn.execute(sql)
if rs.eof and rs.bof then
	response.Write("<tr><td bgcolor=#EEEEEE class=TdBorderB align=center>没有配色方案</td></tr>")
else
	do while not rs.eof
		if rs(0)=Cint(id) then
			response.Write("<tr><td bgcolor=#EEEEEE class=TdBorderB align=center><a href=skin_list.asp?id="&rs(0)&">"&rs(1)&"</a> [<a href=javascript:del('"&rs(1)&"')>删</a>]</td></tr>")
		else
			response.Write("<tr><td bgcolor=#CCCCCC class=TdBorderB align=center><a href=skin_list.asp?id="&rs(0)&">"&rs(1)&"</a> [<a href=javascript:del('"&rs(1)&"')>删</a>]</td></tr>")
		end if
		rs.movenext
	loop
end if

sql="select * from Skin where ID="&id
set rs=conn.execute(sql)
SkinSetting=split(rs(2),",")%>
      </table>
<br>
      <form name="form2" method="post" action="skin_add_save.asp">
        <table width="100%" border="0" cellpadding="2" cellspacing="0" bgcolor="#EEEEEE">
          <tr> 
            <td align="center" bgcolor="#708090" class="TdBorderB"><font color="#FFFFFF">添加新方案</font></td>
          </tr>
          <tr> 
            <td align="center" class="TdBorderB"><input name="SkinName" type="text" class="input" id="SkinName" size="12" maxlength="10"></td>
          </tr>
          <tr> 
            <td align="center">
<%if power(5)="0" then
	response.write "<font color=red>没有权限</font>"
else
	response.write "<input name='Submit' type='submit' class='button' value=' 提 交 '>&nbsp;&nbsp;"
end if
%>
            </td>
          </tr>
        </table>
      </form>
      
    </td>
    <td valign="top"><form name="form1" method="post" action="skin_edit_save.asp">
        <table width="80%" border="0" align="center" cellpadding="2" cellspacing="0" bgcolor="#EEEEEE">
          <tr align="center"> 
            <td colspan="2" bgcolor="#708090" class="TdBorderB"><font color="#FFFFFF"> 
              <input name="id" type="hidden" id="id" value="<%=rs(0)%>">
              配色方案：<%=rs(1)%></font></td>
          </tr>
          <tr> 
            <td align="right" class="TdBorderRB">方案名称</td>
            <td class="TdBorderB"><input name="SkinName" type="text" class="input" id="SkinName" value="<%=rs(1)%>" size="12"></td>
          </tr>
          <tr> 
            <td width="50%" align="right" class="TdBorderRB">网页背景色</td>
            <td width="50%" class="TdBorderB"> <input name="BodyBgColor" type="text" class="input" id="BodyBgColor" value="<%=SkinSetting(0)%>" size="8"> 
              <input name="textfield" type="text" class="input2" style="background-color:<%=SkinSetting(0)%>" size="2"> 
            </td>
          </tr>
          <tr> 
            <td align="right" class="TdBorderRB">表格边框颜色</td>
            <td class="TdBorderB"><input name="TableBorderColor" type="text" class="input" id="TableBorderColor" value="<%=SkinSetting(2)%>" size="8"> 
              <input name="textfield2" type="text" class="input2" style="background-color:<%=SkinSetting(2)%>" size="2"></td>
          </tr>
          <tr> 
            <td align="right" class="TdBorderRB">左边单元格背景颜色</td>
            <td class="TdBorderB"><input name="TdBgColor1" type="text" class="input" id="TdBgColor1" value="<%=SkinSetting(3)%>" size="8"> 
              <input name="textfield3" type="text" class="input2" style="background-color:<%=SkinSetting(3)%>" size="2"></td>
          </tr>
          <tr> 
            <td align="right" class="TdBorderRB">右边单元格背景颜色</td>
            <td class="TdBorderB"><input name="TdBgColor2" type="text" class="input" id="TdBgColor2" value="<%=SkinSetting(4)%>" size="8"> 
              <input name="textfield4" type="text" class="input2" style="background-color:<%=SkinSetting(4)%>" size="2"></td>
          </tr>
          <tr> 
            <td align="right" class="TdBorderRB">左边标题颜色</td>
            <td class="TdBorderB"><input name="TdBgColor3" type="text" class="input" id="TdBgColor3" value="<%=SkinSetting(5)%>" size="8"> 
              <input name="textfield5" type="text" class="input2" style="background-color:<%=SkinSetting(5)%>" size="2"></td>
          </tr>
          <tr> 
            <td align="right" class="TdBorderRB">右边标题颜色</td>
            <td class="TdBorderB"><input name="TitleColor" type="text" class="input" id="TitleColor" value="<%=SkinSetting(6)%>" size="8"> 
              <input name="textfield6" type="text" class="input2" style="background-color:<%=SkinSetting(6)%>" size="2"></td>
          </tr>
          <tr> 
            <td align="right" class="TdBorderRB">右边标题背景颜色</td>
            <td class="TdBorderB"><input name="TitleBgColor" type="text" class="input" id="TitleBgColor" value="<%=SkinSetting(7)%>" size="8"> 
              <input name="textfield7" type="text" class="input2" style="background-color:<%=SkinSetting(7)%>" size="2"></td>
          </tr>
          <tr> 
            <td align="right" class="TdBorderRB">链接翻转背景颜色</td>
            <td class="TdBorderB"><input name="LinkBgColor" type="text" class="input" id="LinkBgColor" value="<%=SkinSetting(8)%>" size="8"> 
              <input name="textfield8" type="text" class="input2" style="background-color:<%=SkinSetting(8)%>" size="2"></td>
          </tr>
          <tr> 
            <td align="right" class="TdBorderRB">链接翻转边框颜色</td>
            <td class="TdBorderB"><input name="LinkBorderColor" type="text" class="input" id="LinkBorderColor" value="<%=SkinSetting(9)%>" size="8"> 
              <input name="textfield9" type="text" class="input2" style="background-color:<%=SkinSetting(9)%>" size="2"></td>
          </tr>
          <tr> 
            <td align="right" class="TdBorderRB">滚动条face-color</td>
            <td class="TdBorderB"><input name="S_FaceColor" type="text" class="input" id="S_FaceColor" value="<%=SkinSetting(10)%>" size="8"> 
              <input name="textfield10" type="text" class="input2" style="background-color:<%=SkinSetting(10)%>" size="2"></td>
          </tr>
          <tr> 
            <td align="right" class="TdBorderRB">滚动条shadow-color</td>
            <td class="TdBorderB"><input name="S_ShadowColor" type="text" class="input" id="S_ShadowColor" value="<%=SkinSetting(11)%>" size="8"> 
              <input name="textfield11" type="text" class="input2" style="background-color:<%=SkinSetting(11)%>" size="2"> 
            </td>
          </tr>
          <tr> 
            <td align="right" class="TdBorderRB">滚动条highlight-color</td>
            <td class="TdBorderB"><input name="S_HighlightColor" type="text" class="input" id="S_HighlightColor" value="<%=SkinSetting(12)%>" size="8"> 
              <input name="textfield12" type="text" class="input2" style="background-color:<%=SkinSetting(12)%>" size="2"></td>
          </tr>
          <tr> 
            <td align="right" class="TdBorderRB">滚动条3dlight-color</td>
            <td class="TdBorderB"><input name="S_3dlightColor" type="text" class="input" id="S_3dlightColor" value="<%=SkinSetting(13)%>" size="8"> 
              <input name="textfield13" type="text" class="input2" style="background-color:<%=SkinSetting(13)%>" size="2"></td>
          </tr>
          <tr> 
            <td align="right" class="TdBorderRB">滚动条darkshadow-color</td>
            <td class="TdBorderB"><input name="S_DarkshadowColor" type="text" class="input" id="S_DarkshadowColor" value="<%=SkinSetting(14)%>" size="8"> 
              <input name="textfield14" type="text" class="input2" style="background-color:<%=SkinSetting(14)%>" size="2"></td>
          </tr>
          <tr> 
            <td align="right" class="TdBorderRB">滚动条track-color</td>
            <td class="TdBorderB"><input name="S_TrackColor" type="text" class="input" id="S_TrackColor" value="<%=SkinSetting(15)%>" size="8"> 
              <input name="textfield15" type="text" class="input2" style="background-color:<%=SkinSetting(15)%>" size="2"></td>
          </tr>
          <tr> 
            <td align="right" class="TdBorderRB">滚动条arrow-color</td>
            <td class="TdBorderB"><input name="S_ArrowColor" type="text" class="input" id="S_ArrowColor" value="<%=SkinSetting(16)%>" size="8"> 
              <input name="textfield16" type="text" class="input2" style="background-color:<%=SkinSetting(16)%>" size="2"></td>
          </tr>
          <tr> 
            <td align="right" class="TdBorderRB">网站Logo地址</td>
            <td class="TdBorderB"><input name="SiteLogo" type="text" class="input" id="SiteLogo" value="<%=SkinSetting(17)%>" size="20"></td>
          </tr>
          <tr> 
            <td align="right" class="TdBorderRB">Logo区背景图</td>
            <td class="TdBorderB"><input name="LogoBgImage" type="text" class="input" id="LogoBgImage" value="<%=SkinSetting(18)%>" size="20"></td>
          </tr>
          <tr> 
            <td align="right" class="TdBorderRB">网页背景图</td>
            <td class="TdBorderB"><input name="BackGround" type="text" class="input" id="BackGround" value="<%=SkinSetting(1)%>" size="20"></td>
          </tr>
          <tr align="center"> 
            <td colspan="2"> <%if power(5)="0" then
	response.write "<font color=red>您没有网页配色的权限</font>&nbsp;&nbsp;"
else
	response.write "<input name='Submit' type='submit' class='button' value=' 提 交 '>&nbsp;&nbsp;"
end if
response.write "<input name='Submit' type='button' class='button' value=' 返 回 ' onclick='javascript:history.back()'>"
%> </td>
          </tr>
        </table>
      </form> 
      
    </td>
  </tr>
</table>
</body>
</html>
<%set rs=nothing
conn.close
set conn=nothing%>