<!--#include file="mdb.asp"-->
<%
if session("User")="" then
	response.write"<SCRIPT language=JavaScript>alert('您尚未登录！');"
	response.write"location.href=""sd_admin_login.asp"";</SCRIPT>"
end if
%>
<%
sd_id=request.QueryString("id")
if trim(sd_id)="" then
	Response.Write ("<script language=javascript>alert('无法获得相关ID！');history.back(-1);</script>")
	response.end
end if
%>
<HTML>
<HEAD>
<TITLE>爱链接友情链接交换交易网站—雨过天晴工作室 www.adminchn.com</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"> 
<LINK href="images/Admin_css.css" type=text/css rel=stylesheet>
</HEAD>
<BODY>
<script language="javascript">
<!--
function submit_check()
{
if (document.submit_form.bi.value<100){

if (!confirm('标注颜色需要消耗 100 个金币,您的金币不够。'))
	{
		return false;
	}
	else
	{
		return false;
    }
	}
if (!confirm('标注颜色,这将消耗您 100 个金币？'))
	{
		return false;
	}
	else
	{
document.submit_form.submit();
    }
}
//-->
</script>
<form action="sd_my_color_item.asp" method="post" name="submit_form" id="submit_form" target="main">
<%
set rs=server.CreateObject("adodb.recordset")
sql="select * from [sd_web] where sd_id="& sd_id
rs.open sql,conn,1,1 
if not rs.eof and not rs.bof then
%>
<table height="1" border="0" cellpadding="3"  cellspacing="1" bgcolor="#F2F9E8" class="admintable1">
  <tr>
    <td colspan="2" class="admintitle">网站标色修改</td>
  </tr>
  <tr>
    <td width="20%" height="30" align="right" bgcolor="#FFFFFF">该会员金币：</td>
<%
set rs1=server.CreateObject("adodb.recordset")
sql1="select * from [sd_user] where sd_userid="& rs("sd_userid")
rs1.open sql1,conn,1,1 
if not rs.eof and not rs.bof then
%>
              <input name="bi" type="hidden" id="bi" value="<%=rs1("sd_Points")%>" />
              <td width="80%" bgcolor="#FFFFFF"><font color="#FF0000"><%=rs1("sd_Points")%></font></b> 个</td>
<%else%>
              <input name="bi" type="hidden" id="bi" value="0" />
              <td width="80%" bgcolor="#FFFFFF"><font color="#FF0000">0</font></b> 个&nbsp;&nbsp;&nbsp;<a href="../get_aibi.asp" target="_blank"><u>查看获得金币的三种方法</u></a></td>
<%end if
rs1.close
set rs1=nothing
%>
  </tr>
  <tr>
    <td height="30" align="right" bgcolor="#FFFFFF">链接名称：</td>
              <input name="id" type="hidden" id="id" value="<%=sd_id%>" />
              <input name="userid" type="hidden" id="userid" value="<%=rs("sd_userid")%>" />
    <td bgcolor="#FFFFFF"><%=rs("sd_webname")%>&nbsp;&nbsp; http://<%=rs("sd_weburl")%></td>
  </tr>
  <tr>
    <td height="30" align="right" bgcolor="#FFFFFF">标题颜色：</td>
    <td bgcolor="#FFFFFF"><input name="sd_rgb" type="radio" value="0"<%if r("sd_rgb")=0 then Response.Write " checked=checked" %> />黑色　<input name="sd_rgb" type="radio" value="1"<%if r("sd_rgb")=1 then Response.Write " checked=checked" %> />红色　<input name="sd_rgb" type="radio" value="2"<%if r("sd_rgb")=2 then Response.Write " checked=checked" %> />蓝色</td>(需要花费100个金币)</td>
  </tr>
  <tr>
    <td height="30" align="right" bgcolor="#FFFFFF"></td>
    <td bgcolor="#FFFFFF"><input type="submit" value="确认修改" onclick="submit_check();"></td>
  </tr>
</table>
<%
else
	Response.Write ("<script language=javascript>alert('无法获取相关ID信息！');history.back(-1);</script>")
	response.end
end if
rs.close
set rs=nothing
%>
</form>
<!--#include file="sd_copy.asp"-->
</BODY>
</HTML>