⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mb_edit.asp

📁 在线点播系统
💻 ASP
📖 第 1 页 / 共 4 页
字号:
      <option value="山东" <%if var_u_add="山东" then%>selected<%end if%>>s 山东</option>
      <option value="新疆" <%if var_u_add="新疆" then%>selected<%end if%>>x 新疆</option>
      <option value="西藏" <%if var_u_add="西藏" then%>selected<%end if%>>x 西藏</option>
      <option value="云南" <%if var_u_add="云南" then%>selected<%end if%>>y 云南</option>
      <option value="浙江" <%if var_u_add="浙江" then%>selected<%end if%>>z 浙江</option>
                                        </select>
</td>
                      <td align="center" bgcolor="#F7F7F7"><table width="220" border="0" cellspacing="0" cellpadding="5">
                          <tr>
                            <td bgcolor="#F7F7F7">&nbsp;</td>
                          </tr>
                      </table></td>
                    </tr>
                </table></td>
              </tr>
          </table></td>
        </tr>
      </table>
      <table width="550" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td valign="top"><table width="550" border="0" cellpadding="0" cellspacing="1" bgcolor="#E7E7E7">
              <tr>
                <td bgcolor="#FFFFFF"><table width="550" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                      <td width="130" height="30" align="right" bgcolor="#F7F7F7">腾讯QQ:</td>
                      <td width="170" bgcolor="#F7F7F7"><input name="u_qq" type="text" class="input1" id="u_qq" style="ime-mode:disabled" onkeyup="value=value.replace(/[^\d]/g,'') " value="<%=var_u_qq%>" size="20" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"></td>
                      <td align="center" bgcolor="#F7F7F7"><table width="220" border="0" cellspacing="0" cellpadding="5">
                          <tr>
                            <td bgcolor="#F7F7F7">0-9的数字,长度为5-20个字符</td>
                          </tr>
                      </table></td>
                    </tr>
                </table></td>
              </tr>
          </table></td>
        </tr>
      </table>
      <table width="550" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td valign="top"><table width="550" border="0" cellpadding="0" cellspacing="1" bgcolor="#E7E7E7">
              <tr>
                <td bgcolor="#FFFFFF"><table width="550" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                      <td width="130" height="30" align="right" bgcolor="#F7F7F7">MSN账号:</td>
                      <td width="170" bgcolor="#F7F7F7"><input name="u_msn" type="text" class="input1" id="u_msn" value="<%=var_u_msn%>" size="20"></td>
                      <td align="center" bgcolor="#F7F7F7"><table width="220" border="0" cellspacing="0" cellpadding="5">
                          <tr>
                            <td bgcolor="#F7F7F7">格式为xxx@xxx.xxx</td>
                          </tr>
                      </table></td>
                    </tr>
                </table></td>
              </tr>
          </table></td>
        </tr>
      </table>
      <table width="550" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td valign="top"><table width="550" border="0" cellpadding="0" cellspacing="1" bgcolor="#E7E7E7">
              <tr>
                <td bgcolor="#FFFFFF"><table width="550" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                      <td width="130" height="30" align="right" bgcolor="#F7F7F7">E-Mail地址:</td>
                      <td width="170" bgcolor="#F7F7F7"><input name="u_email" type="text" class="input1" id="u_email" value="<%=var_u_email%>" size="20"></td>
                      <td align="center" bgcolor="#F7F7F7"><table width="220" border="0" cellspacing="0" cellpadding="5">
                          <tr>
                            <td bgcolor="#F7F7F7">格式为xxx@xxx.xxx</td>
                          </tr>
                      </table></td>
                    </tr>
                </table></td>
              </tr>
          </table></td>
        </tr>
      </table>
      <table width="550" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td valign="top"><table width="550" border="0" cellpadding="0" cellspacing="1" bgcolor="#E7E7E7">
              <tr>
                <td bgcolor="#FFFFFF"><table width="550" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                      <td width="130" height="30" align="right" bgcolor="#F7F7F7">固定电话:</td>
                      <td width="170" bgcolor="#F7F7F7"><input name="u_tel" type="text" class="input1" id="u_tel" style="ime-mode:disabled" onKeyUp="value=value.replace(/[^\d]/g,'') " value="<%=var_u_tel%>" size="20" maxlength="11" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"></td>
                      <td align="center" bgcolor="#F7F7F7"><table width="220" border="0" cellspacing="0" cellpadding="5">
                          <tr>
                            <td bgcolor="#F7F7F7">长度11位的数字,区号与电话号码之间不能用-等符号间隔</td>
                          </tr>
                      </table></td>
                    </tr>
                </table></td>
              </tr>
          </table></td>
        </tr>
      </table>
      <table width="550" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td valign="top"><table width="550" border="0" cellpadding="0" cellspacing="1" bgcolor="#E7E7E7">
              <tr>
                <td bgcolor="#FFFFFF"><table width="550" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                      <td width="130" height="30" align="right" bgcolor="#F7F7F7">手机号码:</td>
                      <td width="170" bgcolor="#F7F7F7"><input name="u_mtel" type="text" class="input1" id="u_mtel" style="ime-mode:disabled" onkeyup="value=value.replace(/[^\d]/g,'') " value="<%=var_u_mtel%>" size="20" maxlength="11" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"></td>
                      <td align="center" bgcolor="#F7F7F7"><table width="220" border="0" cellspacing="0" cellpadding="5">
                          <tr>
                            <td bgcolor="#F7F7F7">长度11位的数字。号码前无需加0或86+等字符</td>
                          </tr>
                      </table></td>
                    </tr>
                </table></td>
              </tr>
          </table></td>
        </tr>
      </table></td>
  </tr>
</table>
<table width="550" height="50" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#E7E7E7">
  <tr>
    <td align="center" bgcolor="#FFFFFF"><input name="botton" type="submit" class="button1" id="botton" value="保存用户资料">
       
      <input name="send_webmsg" type="button" class="button1" id="send_webmsg" value="向该用户发送站内短信" onclick="self.location='webmsg_send.asp?userid=<%=var_userid%>';">
      <input name="userid" type="hidden" id="userid" value="<%=var_userid%>">
      <input name="u_type" type="hidden" id="u_type" value="<%=var_u_type%>">
      <input name="e_time" type="hidden" id="e_time" value="<%=formatdatetime(var_end_time,3)%>">
      <%if var_bd_time<>"" then%><input name="b_time" type="hidden" id="b_time" value="<%=formatdatetime(var_bd_time,3)%>"><%end if%>
      <input name="id" type="hidden" id="id" value="<%=request.QueryString("id")%>"></td>
  </tr>
</table>
</form>
<table width="550" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>

<%end sub%>
<%
sub save_edit()
if request.form("id")="" or myobj.ChkNum(request.form("id"))=false then
response.write"<script language=javascript>alert('用户ID值错误');history.back();</Script>"
response.end
end if
set rs=server.createobject("adodb.recordset")
rs.open "select * from member where id="&request.form("id")&"",conn,1,1
if rs.eof then
rs.close
set rs=nothing
conn.close
set conn=nothing
response.write"<script>alert('该用户不存在');history.back();</Script>"
response.end
end if
if request.Form("userid")="" then
response.write"<script language=javascript>alert('无法获取用户账号');history.back();</Script>"
response.end
end if
if myobj.ChkLen(request.Form("userid"))<3 or myobj.ChkLen(request.Form("userid"))>12 then
response.write"<script language=javascript>alert('用户账号值错误');history.back();</Script>"
response.end
end if
if myobj.ChkID(request.Form("userid"))=false then
response.write"<script language=javascript>alert('用户账号值错误');history.back();</Script>"
response.end
end if
if request.Form("u_type")="" then
response.write"<script language=javascript>alert('无法获取用户类型信息');history.back();</Script>"
response.end
end if
if myobj.ChkLen(request.form("u_type"))>1 then
response.write"<script language=javascript>alert('用户类型的值错误');history.back();</Script>"
response.end
end if
if myobj.ChkNum(request.form("u_type"))=false then
response.write"<script language=javascript>alert('用户类型的值错误');history.back();</Script>"
response.end
end if
if cint(request.form("u_type"))<1 or cint(request.form("u_type"))>3 then
response.write"<script language=javascript>alert('用户类型的值错误');history.back();</Script>"
response.end
end if
if request.form("u_pwd")<>"" then
	if myobj.ChkLen(request.form("u_pwd"))<6 or myobj.ChkLen(request.form("u_pwd"))>24 then
	response.write"<script language=javascript>alert('用户密码长度必须为6-24个字符');history.back();</Script>"
	response.end
	end if
	if request.form("u_pwd")<>request.form("re_u_pwd") then
	response.write"<script language=javascript>alert('两次输入的用户密码必须相同');history.back();</Script>"
	response.end
	end if
end if
if request.form("pwd_qu")="" then
response.write"<script language=javascript>alert('请填写密码提示问题');history.back();</Script>"
response.end
end if
if myobj.ChkLen(request.form("pwd_qu"))<8 or myobj.ChkLen(request.form("pwd_qu"))>50 then
response.write"<script language=javascript>alert('密码提示问题长度必须为8-50个字符(汉字占两个字符)');history.back();</Script>"
response.end
end if
if request.form("pwd_qu")=request.form("u_pwd") then
response.write"<script language=javascript>alert('密码提示问题不能与用户密码相同');history.back();</Script>"
response.end
end if
if request.form("pwd_an")<>"" then
	if myobj.ChkLen(request.form("pwd_an"))<8 or myobj.ChkLen(request.form("pwd_an"))>50 then
	response.write"<script language=javascript>alert('密码提示答案长度必须为8-50个字符(汉字占两个字符)');history.back();</Script>"
	response.end
	end if
	if request.form("pwd_an")=request.form("pwd_qu") then
	response.write"<script language=javascript>alert('密码提示的答案不能与密码提示问题相同');history.back();</Script>"
	response.end
	end if
	if request.form("pwd_an")=request.form("u_pwd") then
	response.write"<script language=javascript>alert('密码提示答案不能与用户密码相同');history.back();</Script>"
	response.end
	end if
end if
if request.form("is_vip")="" then
response.write"<script language=javascript>alert('VIP用户值类型错误');history.back();</Script>"
response.end
end if
if myobj.chkbool(request.form("is_vip"))=false then
response.write"<script language=javascript>alert('VIP用户值类型错误');history.back();</Script>"
response.end
end if
if myobj.chkbool(request.form("is_free"))=false then
response.write"<script language=javascript>alert('免费用户值类型错误');history.back();</Script>"
response.end
end if

if request.form("u_type")=1 then
	if request.form("point")="" then
	response.write"<script language=javascript>alert('请填写用户可用的影币数量');history.back();</Script>"
	response.end
	end if
	if myobj.ChkNum(request.form("point"))=false then
	response.write"<script language=javascript>alert('影币数量只能是0-9的数字');history.back();</Script>"
	response.end
	end if

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -