<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<!--#include virtual="/inc/conn.asp"-->
<!--#include virtual="/inc/sitecon.asp"-->
<!--#include virtual="/inc/chkuser.asp"-->

<script language="javascript">
function showtime(){
	var haha=document.getElementById("con").value;
	document.getElementById("con").value=haha+"<%=now%>";
}

</script>
<%
u=SafeRequest("u")
act=SafeRequestform("act")
cact=SafeRequest("cact")

if act="add" then
u=SafeRequestform("u")
con=trim(SafeRequestform("con"))
aybiaozhu=SafeRequestform("aybiaozhu")
cact=SafeRequestform("cact")
sql="select * from ayname where aynameid="&clng(u)&"" 
rs.open sql,conn,1,3
rs("aybeizhu")=trim(con)
rs("aybiaozhu")=aybiaozhu
rs.update
rs.close
if cint(aybiaozhu)=0 then bcon="未标注"
if cint(aybiaozhu)=1 then bcon="忠实商户"
if cint(aybiaozhu)=2 then bcon="重要商户"
if cint(aybiaozhu)=3 then bcon="跟进商户"
if cint(aybiaozhu)=4 then bcon="新商户"
if cint(aybiaozhu)=5 then bcon="挽回商户"
if cint(aybiaozhu)=6 then bcon="加入未激活队列"
if cint(aybiaozhu)=7 then bcon="加入待删除队列"


if cact="no" then%>
<script language="javascript">window.close();</script>
<%else
	if trim(con)<>"" then
	%>
	<script language="javascript">
	window.opener.document.getElementById("c"+<%=u%>).innerHTML='<a style=cursor:pointer;color:#009900 title=<%=con%> onClick=openwin(500,230,"open.asp?u=<%=u%>")>√</a>';
	</script>
	<%else%>
	<script language="javascript">
	window.opener.document.getElementById("c"+<%=u%>).innerHTML='<a style=cursor:pointer onClick=openwin(500,230,"open.asp?u=<%=u%>")>添加</a>';
	</script>
	<%end if%>

	<script language="javascript">
    window.opener.document.getElementById("b"+<%=u%>).innerHTML='<a style=cursor:pointer onClick=openwin(500,230,"open.asp?u=<%=u%>")><img src=<%=ossurl%>images/biaozhu/<%=aybiaozhu%>.png title=<%=bcon%> border=0></a>';
    window.close();
    </script>
<%end if
    
    


response.End()
end if


if u="" then
response.Write "错误"
response.End()
end if

sql="select * from ayname where aynameid="&clng(u)&"" 
rs.open sql,conn,1,1
%>
<style type="text/css">
body,td,th {
	font-size: 12px;
}
</style>


<form name="form1" method="post" action="">
  <table width="500" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td height="25"><%=trim(rs("aytrueuser"))%></td>
    </tr>
    <tr>
      <td height="25">
<input name="aybiaozhu" type="radio" id="radio0" value="0" <%if cint(rs("aybiaozhu"))=0 then response.Write "checked"%>/><img src="<%=ossurl%>images/biaozhu/0.png" border="0" ><label for="radio0" style="cursor:pointer">未标注</label>
<input name="aybiaozhu" type="radio" id="radio1" value="1" <%if cint(rs("aybiaozhu"))=1 then response.Write "checked"%>/><img src="<%=ossurl%>images/biaozhu/1.png" border="0" ><label for="radio1" style="cursor:pointer">忠实商户</label>
<input name="aybiaozhu" type="radio" id="radio2" value="2" <%if cint(rs("aybiaozhu"))=2 then response.Write "checked"%>/><img src="<%=ossurl%>images/biaozhu/2.png" border="0" ><label for="radio2" style="cursor:pointer">重要商户</label>
<input name="aybiaozhu" type="radio" id="radio3" value="3" <%if cint(rs("aybiaozhu"))=3 then response.Write "checked"%>/><img src="<%=ossurl%>images/biaozhu/3.png" border="0" ><label for="radio3" style="cursor:pointer">跟进商户</label>
<input name="aybiaozhu" type="radio" id="radio4" value="4" <%if cint(rs("aybiaozhu"))=4 then response.Write "checked"%>/><img src="<%=ossurl%>images/biaozhu/4.png" border="0" ><label for="radio4" style="cursor:pointer">新商户</label>
<input name="aybiaozhu" type="radio" id="radio5" value="5" <%if cint(rs("aybiaozhu"))=5 then response.Write "checked"%>/><img src="<%=ossurl%>images/biaozhu/5.png" border="0" ><label for="radio5" style="cursor:pointer">挽回商户</label>
      </td>
    </tr>
    <tr>
      <td height="25">
<input name="aybiaozhu" type="radio" id="radio6" value="6" <%if cint(rs("aybiaozhu"))=6 then response.Write "checked"%>/><img src="<%=ossurl%>images/biaozhu/6.png" border="0" ><label for="radio6" style="cursor:pointer">加入未激活队列</label>
<input name="aybiaozhu" type="radio" id="radio7" value="7" <%if cint(rs("aybiaozhu"))=7 then response.Write "checked"%>/><img src="<%=ossurl%>images/biaozhu/7.png" border="0" ><label for="radio7" style="cursor:pointer">加入待删除队列</label>
      </td>
    </tr>
    <tr>
      <td height="30"><br><%=trim(rs("aytrueuser"))%>-平台日志数据跟进：<span style="cursor:pointer" onclick=showtime()>[插入时间]</span><textarea name="con" cols="67" rows="6" id="con"><%=trim(rs("aybeizhu"))%></textarea></td>
    </tr>
    <tr>
      <td height="30" align="center"><input type="submit" name="Submit" value=" 提 交 ">
      <input name="act" type="hidden" id="act" value="add"> <input name="u" type="hidden" id="u" value="<%=u%>">
      <input name="cact" type="hidden" id="act" value="<%=cact%>">
      </td>
    </tr>
  </table>
</form>

<%rs.close%>