📄 addaccount.jsp
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ page import="com.doone.uurm.WebAuth"%>
<%@ page import="com.doone.data.DataTable"%>
<%@ page import="com.doone.fj1w.common.TD_Area"%>
<%@ page import="com.doone.fj1w.common.CityBean"%>
<%@ page import="com.doone.fj1w.common.ProductBean"%>
<%@ page import="com.doone.fj1w.fjmgr.order.OrderService"%>
<%@ page import="com.doone.fj1w.fjmgr.sysmgr.ForgetCihper"%>
<%@ page import="com.doone.fj1w.fjmgr.sysmgr.Register"%>
<%@ taglib uri="/WEB-INF/curstom-tags.tld" prefix="custom" %>
<%
request.setCharacterEncoding("GBK");
//true表示帐号类型不可选主要是用于四川4008网上报税帐号
String disabled=request.getParameter("disabled");
if(disabled==null || disabled.equals("")) disabled="true";
String sPurvICode = request.getParameter("purvicode");
if(sPurvICode==null || sPurvICode.equals("")) sPurvICode="NGB005005";
WebAuth auth = WebAuth.getInstance(request);
if ( ! auth.IsAuthed() ) {
out.write("<script language=\"javascript\">self.parent.location.replace(\"" + request.getContextPath() + "/view/login/login.jsp" + "\");</script>");
return;
}else if ( ! auth.CheckPurv(sPurvICode) ) {
out.write("<script language=javascript src=\"../../common/script/RightForbidden.js\"></script>");
return;
}
String cityCode = auth.getCityCode();
DataTable oArea = null;
if (cityCode == null || cityCode.equals("") ) cityCode = "0590";
if (! cityCode.equals("0590") ) {
java.util.Map map = new java.util.HashMap();
map.put("CITYCODE", cityCode);
oArea = OrderService.getAreaList(request, response, map);
pageContext.setAttribute("AREA", oArea);
}
DataTable oCity = CityBean.getCityList();
pageContext.setAttribute("CITY",oCity);
DataTable oCustType=Register.getCustType();
pageContext.setAttribute("CUSTTYPEID",oCustType);
%>
<html>
<head>
<title>用户帐号管理--添加帐号</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link href="../../common/style/main.css" type="text/css" rel="stylesheet" />
<script language="JavaScript" src="../../common/script/ChangeStyle.js"></script>
<script language="JavaScript" src="../../common/mainTool.js"></script>
<script language="JavaScript" src="../../common/XMLHttpClient.js"></script>
<link rel="stylesheet" type="text/css" media="all" href="../calendar/calendar-blue2.css"/>
<script type="text/javascript" src="../calendar/calendar.js"></script>
<script type="text/javascript" src="../calendar/calendar-zh.js"></script>
<script type="text/javascript" src="../calendar/calendar-action.js"></script>
<script type="text/javascript" src="../netstore/js/cityandarea.js"></script>
<script type="text/javascript" src="../netstore/js/submitform.js"></script>
<script type="text/javascript" src="Register_index.js"></script>
<script type="text/javascript" src="index4008.js"></script>
<script language="JavaScript">
setCityCode('<%=cityCode%>');
</script>
<meta name="Microsoft Theme" content="compass 1011, default">
<meta name="Microsoft Border" content="tlb, default">
</head>
<script language="javascript">
function check(){
var pwd=document.getElementById("PWD");
var enterpwd=document.getElementById("ENTERPWD");
var accountid=document.getElementById("USERID");
var name=document.getElementById("NAME");
var email=document.getElementById("EMAIL");
if(accountid.value=="" || name.value=="" || email.value=="")
{
alert("信息不完整!");
accountid.focus();
return false;
}
if(pwd.value == "" ||pwd.value.length < 5){
alert("请输入密码,您的密码不足5位,字符长度应在5-15位!");
pwd.value = "";
pwd.focus();
return false;
}
if(enterpwd.value == "" || enterpwd.value.length < 5){
alert("请输入确认密码,您的确认密码不足5位,字符长度应在5-15位!");
enterpwd.value = "";
enterpwd.focus();
return false;
}
if(pwd.value != enterpwd.value){
alert("您输入的密码与确认密码不一致!");
pwd.value = "";
enterpwd.value = "";
pwd.focus();
return false;
}
if(confirm("确定添加帐号:"+accountid.value+" ?")==true)
{
fn_OnSubmitAdd(this);
}
}
</script>
<body onload="return fn_onload() ;">
<script id="event_id"></script>
<form id="Default" method="post" action="" onsubmit="return fn_OnSubmitAdd(this);">
<div onresize="cltScript_Toolbar();" style="width: 100%">
<div id="divTop" style="overflow: hidden">
<jsp:include page="../../common/inc_top.jsp" >
<jsp:param name="purvCode" value="<%=sPurvICode%>"/>
</jsp:include>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="OuterTable">
<tr>
<td width="100%" colspan="2" class="OuterHead" align="left">
<span id="ItemTitle"><font face="webdings">8</font>添加帐号:</span>
</td>
</tr>
<tr>
<td width="100%" colspan="2" class="InnerMain" align="left">
<table id="QueryTable" border="0" cellspacing="0" cellpadding="0" width="100%">
<caption style="display:none;">
</caption>
<tbody>
<!--常用简单的查询条件-->
<tr>
<td width="8%" class="Caption_Td" align="right" nowrap="nowrap">帐号类型:</td>
<td width="15%" class="body_td" align="left" nowrap="nowrap">
<custom:HtmlSelect disabled="<%=disabled%>" dataSource="CUSTTYPEID"
styleId="CUSTTYPE"
name="CUSTTYPE"
style="width: 100%"
textFieldName="DESCRICTPION"
valueFieldName="CUSTTYPEID"
value="14">
<custom:HtmlOption value="" disabled='<%= (oCustType != null)?! oCustType.getTableName().equalsIgnoreCase("TD_CUSTTYPEID"):false%>'>--请选择--</custom:HtmlOption><!---->
</custom:HtmlSelect>
</td>
<td width="8%" class="Caption_Td" align="right" nowrap="nowrap">客户帐号:</td>
<td width="15%" class="body_td" align="left" nowrap="nowrap">
<input type="text" id="USERID" name="USERID" style="width: 100%;">
</td>
<tr>
<td width="8%" class="Caption_Td" align="right" nowrap="nowrap">帐号密码:</td>
<td width="15%" class="body_td" align="left" nowrap="nowrap">
<input type="password" id="PWD" name="PWD" style="width: 100%;">
</td>
<td width="8%" class="Caption_Td" align="right" nowrap="nowrap">确认密码:</td>
<td width="15%" class="body_td" align="left" nowrap="nowrap">
<input type="password" id="ENTERPWD" name="ENTERPWD" style="width: 100%;">
</td>
</tr>
<tr>
<td width="8%" class="Caption_Td" align="right" nowrap="nowrap">客户名称:</td>
<td width="15%" class="body_td" nowrap="nowrap">
<input type="text" id="NAME" name="NAME" style="width: 100%;"></td>
<td width="10%" class="Caption_Td" align="right" nowrap="nowrap">客户Email:</td>
<td width="15%" class="body_td" nowrap="nowrap">
<input type="text" id="EMAIL" name="EMAIL" style="width: 100%;">
</td>
</tr>
<tr>
<td class="Caption_Td" align="right" nowrap="nowrap">选择地区:</td>
<td class="body_td" nowrap="nowrap">
<custom:HtmlSelect name="CITY" style="width:100%" styleId="CITY" dataSource="CITY"
textFieldName="CITYNAME" valueFieldName="CITYCODE"
onChange="loadArea(this);"
value='<%= cityCode%>'>
<custom:HtmlOption value="">--请选择--</custom:HtmlOption>
</custom:HtmlSelect>
</td>
<td width="5%" class="Caption_Td" align="right" nowrap="nowrap">选择区域:</td>
<td width="8%" class="body_td" nowrap="nowrap">
<custom:HtmlSelect dataSource="AREA"
styleId="AREA"
name="AREA"
style="width: 100%"
textFieldName="AREANAME"
valueFieldName="AREACODE"
value="059000">
<custom:HtmlOption value="" disabled='<%= (oArea != null)?! oArea.getTableName().equalsIgnoreCase("TD_AREA"):false%>'>全部</custom:HtmlOption>
</custom:HtmlSelect>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr id="">
<input type="hidden">
</tr>
<tr class="OuterFoot">
<td width="100%" align="center" class="Caption_Td">
<input type="submit" class="button" value="确定" onMouseDown="check()" style="cursor:hand ">
<input type="hidden" >
<input type="reset" class="button" value="重填" style="cursor:hand ">
</td>
</tr>
<tr height="5"><td colspan="2"><img src="../../common/images/spacer.gif"></td></tr>
</table>
</div>
<div id="divMain" style="overflow: auto">
<!--service表的服务名--><!--dataService表的内容--><!--rcService表的行数-->
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="OuterTable">
</table>
</div>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -