📄 callingadd.jsp
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ page import="com.doone.uurm.UserFactory,
com.doone.data.DataTable,
com.doone.data.DacClient,
com.doone.fj1w.common.CityBean,
com.doone.fj1w.fjmgr.config.CallingBean,
com.doone.uurm.WebAuth" %>
<%request.setCharacterEncoding("GBK");%>
<%String sPurvICode="NGB007013";%>
<%
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 = request.getParameter("CITYCODE");
String linkMan = request.getParameter("LINKMAN");
String phoNumber1 = request.getParameter("PHONUMBER1");
String phoNumber2 = request.getParameter("PHONUMBER2");
if(citycode != null){
String[] oParam = new String[4];
oParam[0] = citycode;
oParam[1] = linkMan;
oParam[2] = phoNumber1;
oParam[3] = phoNumber2;
CallingBean cb = new CallingBean();
boolean ok = cb.addCalling(new DacClient(),oParam);
if(ok){
out.write("<script language=javascript>window.location.href='"+request.getContextPath()+"/view/sysmgr/OperSuccess.jsp';</script>");
return;
}
else{
out.write("<script language=javascript>window.location.href='"+request.getContextPath()+"/view/sysmgr/OperFailure.jsp?error=服务器超时,请稍后再试.';</script>");
return;
}
}
%>
<html>
<head>
<title>地市联系电话配置</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link href="../../../common/style/main.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" src="../../../common/script/ChangeStyle.js"></script>
<script language="JavaScript">
function cltScript_Toolbar() {
if ( self.parent != self ){
var pel = parent.document.all.tags("frame");
for ( i=0; i< pel.length; i++)
{
if ( pel(i).name == "main") {
divTop.style.width = pel(i).width;
divMain.style.width = pel(i).width;
divMain.style.height = pel(i).height - divTop.clientHeight;
}
}
}
}
</script>
</head>
<body>
<form method="get" action="" name="callingAddList">
<table width="100%" height="30" border="0" cellpadding="0" cellspacing="0" class="OuterTable">
<tr>
<td class="InnerHead" colspan="7">
<jsp:include page="../../../common/inc_top.jsp" >
<jsp:param name="purvCode" value="<%=sPurvICode%>"/>
</jsp:include>
</td>
</tr>
</table>
<table width="100%" border="1" cellpadding="1" cellspacing="1" class="OuterTable">
<tr>
<td class="OuterHead" colspan="9">
<table width="100%" border="0" cellspacing="0" cellpadding="1">
<tr>
<td nowrap="nowrap" style="text-align:left">
<span id="ItemTitle"><font face="webdings">8</font>地市联系电话配置</span>
<span><font color="red">说明:联系电话必须要有区号,例如:059188853978。否则会导致发送短信失败。</font></span>
</td>
<td align="right" nowrap> </td>
</tr>
</table>
</td>
</tr>
<%
String cityCode = auth.getCityCode();
DataTable cityList = CityBean.getCityList();
if(cityCode == null || cityCode.equals("")){
%>
<tr class="InnerMain">
<td class="InnerHead" style="text-align:right" width="171" nowrap>
选择地市:
</td>
<td class="InnerMain" width="585">
<%
if(cityList != null && cityList.getRows().getCount() > 0){
%>
<select name="CITYCODE" id="CITYCODE" style="width:133">
<%
for(int i=0;i<cityList.getRows().getCount();i++){
String selected = "";
String reCitycode = cityList.getRow(i).getString("CITYCODE");
if(reCitycode.equals("0590")){
selected = "selected=\"selected\"";
}
String cityName = cityList.getRow(i).getString("CITYNAME");
%>
<option value="<%=reCitycode%>" <%=selected%>>
<%=cityName%>
</option>
<%
}
%>
</select>
<%
}
}
else{
%>
<input type="hidden" name="CITYCODE" id="CITYCODE" value="<%=cityCode%>"/>
<%
}
%>
</td>
</tr>
<tr class="InnerMain">
<td class="InnerHead" style="text-align:right" width="171" nowrap>
联系人姓名:
</td>
<td class="InnerMain" width="585">
<input type="text" name="LINKMAN" id="LINKMAN"/>
</td>
</tr>
<tr class="InnerMain">
<td class="InnerHead" style="text-align:right" nowrap>
联系电话1:
</td>
<td class="InnerMain" width="585">
<input type="text" name="PHONUMBER1" id="PHONUMBER1"/>
</td>
</tr>
<tr class="InnerMain">
<td class="InnerHead" style="text-align:right" nowrap>
联系电话2:
</td>
<td class="InnerMain" width="585">
<input type="text" name="PHONUMBER2" id="PHONUMBER2"/>
</td>
</tr>
<tr class="InnerMain"><td colspan="8" class="body_td" bgcolor="#e0e0e0"><img src="../../../common/images/spacer.gif"/></td></tr>
<tr>
<td class="OuterFoot" colspan="9">
<table width="100%" border="0" cellspacing="0" cellpadding="1">
<tr>
<td nowrap="nowrap" style="text-align:left"><span id="ItemTitle"></span></td>
<td align="right" nowrap>
<input type="submit" name="Submit" class="button" value="添加" style="width:40" >
<input type="button" class="button" value="关闭" style="width:40" onclick="self.close()">
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -