<!--#Include File="Connection.Asp"-->
<!--#Include File="Function.Asp"-->
<!--#Include File="JaClog.Asp"-->
<%
If Request.QueryString("action")="do" Then
Dim SqlA,Aid,TIt,M,T1,T2,T3,T4,T5,T6,T7,T8,T9
Aid = Cint(Trim(Request.Form("id")))
Tit = JaKillStr(Trim(Request.Form("Tit")))
M = JaKillStr(Trim(Request.Form("M")))
T1 = JaKillStr(Trim(Request.Form("T1")))
T2 = JaKillStr(Trim(Request.Form("T2")))
T3 = JaKillStr(Trim(Request.Form("T3")))
T4 = JaKillStr(Trim(Request.Form("T4")))
T5 = JaKillStr(Trim(Request.Form("T5")))
T6 = JaKillStr(Trim(Request.Form("T6")))
T7 = JaKillStr(Trim(Request.Form("T7")))
T8 = JaKillStr(Trim(Request.Form("T8")))
T9 = JaKillStr(Trim(Request.Form("T9")))

SqlA = "Update [JaBaal] Set JaUid='"&T8&"',JaName='"&Tit&"',JaBorn='"&T1&"',JaXin='"&T2&"',JaXue='"&T3&"',JaHigh="&T4&",JaWeight="&T5&",JaLove='"&T6&"',JaMemo='"&M&"',JaUrl='"&T7&"',IsShow="&T9&" WHERE ID="&Aid&""

Conn.ExeCute(SqlA)
Response.Write "<script language=javascript>alert('修改偶像成功!');"
  Response.Write "window.document.location.href='BaalEdit.Asp?baalID="&Aid&"';</script>"
  Response.End()
End If
Dim baalID,Rs
baalID = Trim(Request.QueryString("baalID"))
Set Rs = Conn.ExeCute("SELECT * FROM [JaBaal] WHERE ID = "&baalID&"")
If Not Rs.Eof Then
%>
<HTML><HEAD><TITLE>无标题文档</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">

<LINK href="JaImg/css.css" type=text/css rel=stylesheet>
<META content="MSHTML 6.00.2900.2180" name=GENERATOR></HEAD>
<BODY>
<FORM name=form action="?action=do" method=post>
<TABLE class=itemhead height=25 cellSpacing=0 cellPadding=0 width="100%" 
align=center border=0>
  <TBODY>
  <TR>
    <TD class=itemheadtd vAlign=bottom bgColor=#bcdbfe>
      <TABLE height=18 cellSpacing=0 cellPadding=0 width=250 border=0>
            <TBODY>
        <TR>
                <TD class=item>偶像信息 ID:<%=baalID%></TD>
              </TR></TBODY></TABLE>
        </TD>
      </TR></TBODY></TABLE>
<TABLE height=8 cellSpacing=0 cellPadding=0 width=100 border=0>
  <TBODY>
  <TR>
    <TD></TD></TR></TBODY></TABLE>
  <TABLE cellSpacing=1 cellPadding=3 width="100%" align=center bgColor=#164481 
border=0>
    <TBODY>
      <TR> 
        <TD align=middle width="19%" bgColor=#daebfe height=25><STRONG>偶 像 名 称：</STRONG></TD>
        <TD width="81%" bgColor=#ffffff><INPUT 
      name=Tit id="Tit" value=<%=Rs(3)%> maxLength=50> <INPUT 
       type=hidden name=id id="id" value="<%=baalID%>" size="40" maxLength=50></TD>
      </TR>
      <TR> 
        <TD align=middle bgColor=#daebfe height=25><STRONG>生 日：</STRONG></TD>
        <TD bgColor=#e7ebf1><INPUT 
      name=T1 id="T1" value=<%=Rs(4)%> maxLength=30> </TD>
      </TR>
      <TR> 
        <TD align=middle bgColor=#daebfe height=12><STRONG>星 座：</STRONG></TD>
        <TD bgColor=#ffffff><INPUT 
      name=T2 id="T2" value=<%=Rs(5)%> size=8 maxLength=8> </TD>
      </TR>
      <TR> 
        <TD align=middle bgColor=#daebfe height=12><strong>血 型：</strong></TD>
        <TD bgColor=#ffffff><input 
      name=T3 id="R2" value=<%=Rs(6)%> size="8" maxlength=10></TD>
      </TR>
      <TR> 
        <TD align=middle bgColor=#daebfe height=12><STRONG>身 高：</STRONG></TD>
        <TD bgColor=#e7ebf1> <INPUT 
      name=T4 id="T4" value=<%=Rs(7)%> maxLength=10> </TD>
      </TR>
      <TR> 
        <TD align=middle bgColor=#daebfe height=5><strong>体 重：</strong></TD>
        <TD bgColor=#e7ebf1><input name="T5" type="text" id="T5" value="<%=Rs(8)%>" maxlength="10"></TD>
      </TR>
      <TR> 
        <TD align=middle bgColor=#daebfe height=6><strong>爱 好：</strong></TD>
        <TD bgColor=#e7ebf1><input name="T6" type="text" id="T6" value="<%=Rs(9)%>" maxlength="50"></TD>
      </TR>
      <TR> 
        <TD align=middle bgColor=#daebfe height=12><strong>图 片 连 接：</strong></TD>
        <TD bgColor=#e7ebf1><input name="T7" type="text" id="T7" value="<%=Rs(11)%>" size="40" maxlength="50"></TD>
      </TR>
      <TR> 
        <TD align=middle bgColor=#daebfe height=25><strong>所 属 用 户：</strong></TD>
        <TD bgColor=#ffffff><input name="T8" type="text" id="T8" value="<%=Rs(2)%>" maxlength="20"></TD>
      </TR>
      <TR> 
        <TD align=middle bgColor=#daebfe height=25><strong>偶 像 显 示：</strong></TD>
        <TD bgColor=#ffffff><input 
      name=T9 id="T9" value=<%=Rs(12)%> maxlength=10>
          1 为显示偶像 0 为不显示偶像 </TD>
      </TR>
      <TR> 
        <TD align=middle bgColor=#daebfe height=25><STRONG>用 户 签 名：</STRONG></TD>
        <TD bgColor=#e7ebf1><SPAN class=font1 id=PreAddress></SPAN> <textarea name="M" cols="50" rows="10" id="M"><%=Rs(10)%></textarea> 
        </TD>
      </TR>
      <TR> 
        <TD align=middle bgColor=#daebfe height=35>&nbsp;</TD>
        <TD bgColor=#ffffff colSpan=2><INPUT class=button1 type=submit value=确认无误，我要修改 name=Submit23></TD>
      </TR>
    </TBODY>
  </TABLE>
</FORM>
</BODY></HTML>
<%
End If
Rs.Close
Set Rs = Nothing
%>