<!--#include file="../../p_inc/Include_func.asp"-->
<!--#include file="../inc/public.asp"-->
<!--#include file="../inc/openconn.asp"-->
<%
header("基本信息 &gt; 网站全局配置")
select case Request.QueryString("action")
case "submit"

	w_taoke_nick=request.Form("w_taoke_nick")
	w_taoke_key=request.Form("w_taoke_key")
	w_taoke_secret=request.Form("w_taoke_secret")
	
	
	set rs=server.CreateObject("adodb.recordset")
	rs.open "select top 1 * from p3t_config order by w_id asc",conn,1,3
	rs("w_taoke_nick")=w_taoke_nick
	rs("w_taoke_key")=w_taoke_key
	rs("w_taoke_secret")=w_taoke_secret
	rs.update
	rs.close
	set rs=nothing
	
	p3t "<script>alert('操作成功');</script>"
response.Redirect "ok.html" 

	p3t_end
case else
	call main_()
end select
footer()

sub main_()
%>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="../css/style.css" rel=stylesheet type=text/css>
<TABLE width=100% border="0" cellPadding=2 cellSpacing=1 class="tableBorder">

    <form name="form1" action="?action=submit" method="post" target="main">
    <%
	set rs=conn.execute("select top 1 * from p3t_config order by w_id asc")
	if rs.eof then
	%>
      <tr>
        <td colspan="2">配置文件丢失</td>
      </tr>
    <%
	else
	%>
      <tr>
  <tr> 
     <th height=25 colspan="2" class="tableHeaderText">淘宝客参数设置</th> 
  </tr>
<TR> 
<TD width="17%" height="28" align="right" class=forumRow>淘宝账号：</td>
<TD width="83%"><font color="#FFFFFF">&nbsp;&nbsp;<input type="text" name="w_taoke_nick" size="40" class="smallInput" value="<%=rs("w_taoke_nick")%>"></font>暂不支持中文用户名，不能带有特殊符号如@!否则使用将不正常！</TD>
</TR>
<TR>
<TD align="right" height="28" class=forumRow>淘宝APP_KEY：</TD>
<TD><font color="#FFFFFF">&nbsp;&nbsp;<input type="text" name="w_taoke_key" size="40" class="smallInput" value="<%=rs("w_taoke_key")%>"></font>申请地址：http://my.open.taobao.com</TD>
</TR>
<TR>
<TD align="right" height="28" class=forumRow>淘宝APP_SECRET：</TD>
<TD><font color="#FFFFFF">&nbsp;&nbsp;<input type="text" name="w_taoke_secret" size="40" class="smallInput" value="<%=rs("w_taoke_secret")%>"></font>申请地址：http://my.open.taobao.com</TD>
</TR>
      <tr>
        <td></td>
        <td>
        	<input type="submit" name="submit" class="button" value=" 提 交 " />
        	<input type="reset" name="reset" class="button" value=" 重 置 " />
        </td>
      </tr>
</TABLE>
</FORM>
</TD>
</TR>
</TABLE>
<%
end if
set rs=nothing
%>
<%
end sub
%>