email_profile_detail.jsp
来源:互联网 发布:仓位在线的数据真实吗 编辑:程序博客网 时间:2024/06/09 18:50
<%@ page contentType="text/html; charset=utf-8" import="java.util.*,com.anlai.ticket.autoemail.*" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
EMAILProfileBean profileObj=new EMAILProfileBean(request,response);
//调用EMAILProfileBean 类初始化
//字段初始化
String profileId = "";
String profile_id_new = "no";
String profile_id_temp = "xxxxx";
EMAILProfileForm formObj = new EMAILProfileForm();
if (request.getParameter("action_flag") != null) {
if (request.getParameter("action_flag").equals("new")) {
profileId = profileObj.getProfileId();
profile_id_temp += profileId;
profile_id_new = "yes";
} else {
formObj = (EMAILProfileForm)profileObj.execute2();
if (formObj != null) {
profileId = formObj.getEmail_profile_id();
profile_id_temp = profileId;
} else {
formObj = new EMAILProfileForm();
}
}
}
%>
<%@ taglib uri="/WEB-INF/auth.tld" prefix="htmls" %>
<html>
<head>
<title>EMAIL Profile</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../inc/tickets.css" type="text/css" />
<style>
/* *{filter:gray;} */
table{width:1000}
a{text-decoration:none;}
a:hover{text-decoration:uderliner}
.STYLE1 {color: #990033}
</style>
</head>
<body leftmargin="0" topmargin="0" bottommargin="0" rightmargin="0"
marginheight="0" marginwidth="0" bgcolor="#f0f7dd" <htmls:se property='read' />>
<form name="form1" action="" method="get">
<input type="hidden" name="action_flag" value="no">
<table width="1000" border="0" cellpadding="1" cellspacing="1">
<tr >
<td height="24" colspan="6" align="left" nowrap class="title" >Email Profile Configuration >> </td>
<td height="24" colspan="3" align="left" nowrap class="title" ><a href="${pageContext.request.contextPath}/autoemail/set_getting_alarm_info.jsp" target="_blank" ><font color="#FFFFFF">Set getting alarm time</font></a></td>
<td height="24" colspan="3" align="left" nowrap class="title" ><a href="${pageContext.request.contextPath}/autoemail/email_report.jsp" target="_blank"><font color="#FFFFFF">Email Report</font></a></td>
<td height="24" colspan="3" align="left" nowrap class="title" ><a href="${pageContext.request.contextPath}/autoemail/listAutoEmailTemplate.jsp" target="_blank" ><font color="#FFFFFF">Email Temp</font></a></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="25">
<table border="0" class="" height="100%">
<tbody>
<tr style="height:25">
<td colspan="4" align="center">
</td>
</tr>
<tr style="background-color:#CCCCCC;height:25">
<td width="194" align="right">
<strong> Profile Id : </strong>
</td>
<td colspan="3">
<input type="text" name="profile_id" id="profile_id" size="30"
height="20" readonly="1" style="border:0" value="<%=profile_id_temp %>">
<input type="hidden" name="profile_id_new" id="profile_id_new" value="<%=profile_id_new %>">
</td>
</tr>
<tr style="background-color:#CCCCCC;height:25">
<td align="right">
<strong> Email Acceptant Period(Week) : </strong>
</td>
<td colspan="3">
<span class="STYLE1"> <input type="checkbox"
value="monday" name="monday" <%=formObj.getMonday().equals("1") ? "checked" : "" %> >Mon <input
type="checkbox" value="tuesday" name="tuesday" <%=formObj.getMonday().equals("1") ? "checked" : "" %>>Tue <input
type="checkbox" value="wednesday" name="wednesday" <%=formObj.getWednesday().equals("1") ? "checked" : "" %>>Wed
<input type="checkbox" value="thursday" name="thursday" <%=formObj.getThursday().equals("1") ? "checked" : "" %>>Thu
<input type="checkbox" value="friday" name="friday" <%=formObj.getFriday().equals("1") ? "checked" : "" %>>Fri
<input type="checkbox" value="saturday" name="saturday" <%=formObj.getSaturday().equals("1") ? "checked" : "" %>>Sat
<input type="checkbox" value="sunday" name="sunday" <%=formObj.getSunday().equals("1") ? "checked" : "" %>>Sun
</span>
</td>
</tr>
<tr style="background-color:#CCCCCC;height:25">
<td align="right">
<strong> Email Acceptant Period(Time) : </strong>
</td>
<td colspan="3">
<select name="fromHour">
<%
for (int i = 0; i < 24; i++) {
if (i < 10) {
%>
<option value="<%="0"+i%>" <%=formObj.getFromHour().equals("0"+i) ? "selected" : "" %> >
<%="0"+i%>
</option>
<%
} else {
%>
<option value="<%=i%>" <%=formObj.getFromHour().equals(""+i) ? "selected" : "" %> >
<%=i%>
</option>
<%
}
}
%>
</select>
:
<select name="fromMinute">
<%
for (int i = 0; i < 60; i++) {
if (i < 10) {
%>
<option value="<%="0"+i%>" <%=formObj.getFromMinute().equals("0"+i) ? "selected" : "" %>>
<%="0"+i%>
</option>
<%
} else {
%>
<option value="<%=i%>" <%=formObj.getFromMinute().equals(""+i) ? "selected" : "" %>>
<%=i%>
</option>
<%
}
}
%>
</select>
-->
<select name="toHour">
<%
for (int i = 0; i < 24; i++) {
if (i < 10) {
%>
<option value="<%="0"+i%>" <%=formObj.getToHour().equals("0"+i) ? "selected" : "" %>>
<%="0"+i%>
</option>
<%
} else {
%>
<option value="<%=i%>" <%=formObj.getToHour().equals(""+i) ? "selected" : "" %>>
<%=i%>
</option>
<%
}
}
%>
</select>
:
<select name="toMinute">
<%
for (int i = 0; i < 60; i++) {
if (i < 10) {
%>
<option value="<%="0"+i%>" <%=formObj.getToMinute().equals("0"+i) ? "selected" : "" %> >
<%="0"+i%>
</option>
<%
} else {
%>
<option value="<%=i%>" <%=formObj.getToMinute().equals(""+i) ? "selected" : "" %> >
<%=i%>
</option>
<%
}
}
%>
</select>
</td>
</tr>
<tr style="background-color:#CCCCCC;height:25">
<td align="right">
<strong> Status : </strong>
</td>
<td>
<select name="status">
<option value="1" <%=formObj.getStatus().equals("1") ? "selected":"" %> >
Active
</option>
<option value="0" <%=formObj.getStatus().equals("0") ? "selected":"" %> >
Inactive
</option>
</select>
</td>
<td align="">
<strong>Line Down Email Temp :</strong>
<input type="text" name="email_template_name"
id="email_template_name" height="20" size="65" readonly="1" value="<%=formObj.getEmailTemplateName() %>"
style="border:0"><font color="red"> *</font>
<input name="email_template" type="button" id="email_template"
style="height:20px;text-valign:center;"
onClick="setEMAILTemplate()" value="..." />
</td>
</tr>
<tr style="background-color:#CCCCCC;height:25">
<td align="right">
</td>
<td>
</td>
<td align="">
<strong>Recover Email Temp :</strong>
<input type="text" name="recover_email_template_name"
id="recover_email_template_name" height="20" size="65" readonly="1" value="<%=formObj.getRecoverEmailTemplateName() %>"
style="border:0"><font color="red"> *</font>
<input name="template_name1" type="button" id="email_template1"
style="height:20px;text-valign:center;"
onClick="setRecoverEmailTemplate()" value="..." />
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr height="5">
<td>
</td>
</tr>
<tr>
<td>
<table width="100%" border="0">
<tbody>
<tr style="background-color:#CCCCCC;height:25">
<td width="194" align="right" bgcolor="#CCCCCC">
<strong> Customer Id : </strong>
</td>
<td colspan="3">
<input type="text" name="customer_id" height="20" value="<%=formObj.getCustomerId() %>"
style="border:0" readonly="1"> <font color="red">*</font>
<input name="set_customer_id" type="button" id="set_customer_id" value="Set Customer Id"
onClick="setCustomerId()"
style="height:20px;text-valign:center;" />
<input name="set_circuit_info" type="button" id="set_circuit_info" value="Set Circuit Info"
onClick="setCircuitInfo()"
style="height:20px;text-valign:center;" disabled/>
<input type="text" name="circuit_ids" height="20" value=""
style="border:0;color:red;background-color:#CCCCCC" disable="none" size="40">
</td>
</tr>
<!--tr style="background-color:#CCCCCC;height:25">
<td align="right" bgcolor="#CCCCCC">
<strong>Customer Name(CN) : </strong>
</td>
<td>
<input type="text" name="customer_name_cn" height="20" value=""
size="30" readonly="1" style="border:0">
</td>
<td width="141" align="right" bgcolor="#CCCCCC">
<strong> Customer Name(Eng) : </strong>
</td>
<td width="225">
<input type="text" name="customer_name_eng" height="20" value=""
size="30" readonly="1" style="border:0">
</td>
</tr-->
</tbody>
</table>
</td>
</tr>
<tr>
<td height="5">
</td>
</tr>
<tr align="left" valign="top">
<td>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<strong>
<a name="circuit_info"
href="javascript:changeItem('div1');">Circuit
Info</a>
<a name="contact_info"
href="javascript:changeItem('div2');">Contact
Info</a>
<a name="exceptional_date" href="javascript:changeItem('div3');">Exceptional Date</a> </strong>
</td>
</tr>
<tr>
<td height="200" width="100%">
<table border="0" bgcolor="#FFFFFF" cellpadding="0"
scrolling="0" cellspacing="0">
<tr>
<td>
<table id="div1" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="200" valign="top" align="center">
<iframe width="100%" height="100%" frameborder="0"
scrolling="0" name="circuit_info_iframe" id="circuit_info"
id="exceptional_date" marginheight="0" marginwidth="0"
src="circuit_info.jsp?action_flag=get&email_profile_id=<%=profileId%>&disabledFlag=<%=request.getParameter("action_flag")%>&profile_id_new=<%=profile_id_new%>"></iframe>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table id="div2" border="0" cellpadding="0" cellspacing="0" style="display:none">
<tr>
<td height="200" valign="top" align="center">
<iframe width="100%" height="100%" frameborder="0"
scrolling="0" name="contact_info_iframe"
id="exceptional_date" marginheight="0" marginwidth="0"
src="contact_info.jsp?action_flag=get&email_profile_id=<%=profileId%>&disabledFlag=<%=request.getParameter("action_flag")%>&profile_id_new=<%=profile_id_new%>"></iframe>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table id="div3" style="display:none" border="0"
cellpadding="0" cellspacing="0">
<tr>
<td width="100%" height="200" valign="top" align="center">
<iframe width="100%" height="100%" frameborder="0"
name="contact_info" id="exceptional_date_iframe" marginheight="0"&
marginwidth="0"
src="exceptional_date.jsp?action_flag=get&email_profile_id=<%=profileId%>&disabledFlag=<%=request.getParameter("action_flag")%>&profile_id_new=<%=profile_id_new%>"></iframe>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="22" colspan="4" valign="bottom" class="txtLTBR">
</td>
</tr>
<tr>
<td height="22" colspan="4" valign="bottom" class="txtLTBR">
<div align="center">
<input name="View" type="button" class="btn" id="View"
value="View" width="160" onClick="onButtonAction('view')" />
<input name="New" type="button" class="btn" id="New" value="New"
width="160" onClick="onButtonAction('new')" <htmls:se property='add' /> >
<input name="Edit" id="Edit" type="button" class="btn"
value="Edit" width="160" onClick="onButtonAction('edit')" <htmls:se property='update' />
disabled="true" <htmls:se property='update' />>
<input name="Save" type="button" class="btn" id="Save"
value="Save" width="160" disabled="true" onClick="onButtonAction('save')" <htmls:se property='add' /> >
<input name="Cancel" type="button" class="btn" id="Cancel"
value="Cancel" width="160" onClick="onButtonAction('cancel')" disabled="true">
</div>
</td>
</tr>
</table>
</form>
</body>
<script language="javascript" type="text/javascript" src="../inc/autosms.js"></script>
<script language="javascript" type="text/javascript">
document.getElementsByName("circuit_info").item(0).style.background="#FFFFFF";
function changeItem(tableId) {
//alert(document.getElementsByName("aaaa").item(0).style);
document.getElementsByName("exceptional_date").item(0).style.background="#f0f7dd";
document.getElementsByName("circuit_info").item(0).style.background="#f0f7dd";
document.getElementsByName("contact_info").item(0).style.background="#f0f7dd";
var objName;
if (tableId == 'div1') {
objName = "circuit_info";
} else if (tableId == 'div2') {
objName = "contact_info";
} else {
objName = "exceptional_date";
}
document.getElementsByName(objName).item(0).style.background="#FFFFFF";
document.getElementById("div1").style.display = "none";
document.getElementById("div2").style.display = "none";
document.getElementById("div3").style.display = "none";
document.getElementById(tableId).style.display = "";
}
function setEMAILTemplate() {
var arr = winOpen("email_template.jsp","email_template_search",650,440,true);
}
function setRecoverEmailTemplate() {
var arr = winOpen("recover_email_template.jsp","email_template_search",650,440,true);
}
function setCustomerId() {
if (document.all["customer_id"].value != "") {
document.all["customer_id"].readOnly = "true";
document.all["set_circuit_info"].disabled = "";
document.all["set_customer_id"].disabled = "true";
} else {
alert("Pls input customer id!");
}
}
function setCircuitInfo() {
//var arr = winOpen("circuit_info.jsp","circuit_info_search",765,390,true);
if (document.all["customer_id"].value != "") {
var arr = winOpen("add_circuit_info.jsp?action_flag=search&profile_id_new="+document.all["profile_id_new"].value+"&customer_id="+document.all["customer_id"].value+"&email_profile_id=<%=profileId%>","circuit_info_search",860,510,true);
} else {
alert("Pls input customer id!");
}
}
function onButtonAction(buttonName) {
if (buttonName == 'view') {
var arr = winOpen("view_email_profile_info.jsp","profile_search",860,510,true);
} else {
if (buttonName == 'save') {
if (document.all["recover_email_template_name"].value == "") {
alert("Please select recover email template!");
return false;
} else if (document.all["customer_id"].value == "") {
alert("Please input customer id!");
return false;
}else if(document.all["email_template_name"].value == ""){
alert("Please select email template!");
return false;
}
}
document.all["action_flag"].value = buttonName;
document.forms[0].submit();
}
}
function changeItemStatus(value) {
document.all["fromHour"].disabled = value;
document.all["fromMinute"].disabled = value;
document.all["toHour"].disabled = value;
document.all["toMinute"].disabled = value;
document.all["monday"].disabled = value;
document.all["tuesday"].disabled = value;
document.all["wednesday"].disabled = value;
document.all["thursday"].disabled = value;
document.all["friday"].disabled = value;
document.all["saturday"].disabled = value;
document.all["sunday"].disabled = value;
document.all["set_customer_id"].disabled = value;
document.all["email_template"].disabled = value;
document.all["email_template1"].disabled = value;
}
function initItemStatus() {
document.all["toHour"].value = "23";
document.all["toMinute"].value = "59";
document.all["monday"].checked = "1";
document.all["tuesday"].checked = "1";
document.all["wednesday"].checked = "1";
document.all["thursday"].checked = "1";
document.all["friday"].checked = "1";
document.all["saturday"].checked = "1";
document.all["sunday"].checked = "1";
document.all["customer_id"].readOnly = "";
}
function changeButtonStatus(buttonAction) {
if (buttonAction == 'new' || buttonAction == 'edit') {
if (buttonAction == 'new') {
initItemStatus();
}
document.all["View"].disabled = "true";
document.all["New"].disabled = "true";
document.all["Edit"].disabled = "true";
document.all["Save"].disabled = "";
document.all["Cancel"].disabled = "";
changeItemStatus("");
if (buttonAction == 'edit') {
document.all["set_customer_id"].disabled = "true";
document.all["set_circuit_info"].disabled = "";
}
} else if (buttonAction == 'view' || buttonAction == 'save' || buttonAction == 'cancel') {
document.all["View"].disabled = "";
document.all["New"].disabled = "";
document.all["Edit"].disabled = "";
document.all["Save"].disabled = "true";
document.all["Cancel"].disabled = "true";
changeItemStatus("true");
} else {
changeItemStatus("true");
}
}
var action_flag = "<%=request.getParameter("action_flag") %>";
//alert(action_flag);
changeButtonStatus(action_flag);
</script>
</html>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
EMAILProfileBean profileObj=new EMAILProfileBean(request,response);
//调用EMAILProfileBean 类初始化
//字段初始化
String profileId = "";
String profile_id_new = "no";
String profile_id_temp = "xxxxx";
EMAILProfileForm formObj = new EMAILProfileForm();
if (request.getParameter("action_flag") != null) {
if (request.getParameter("action_flag").equals("new")) {
profileId = profileObj.getProfileId();
profile_id_temp += profileId;
profile_id_new = "yes";
} else {
formObj = (EMAILProfileForm)profileObj.execute2();
if (formObj != null) {
profileId = formObj.getEmail_profile_id();
profile_id_temp = profileId;
} else {
formObj = new EMAILProfileForm();
}
}
}
%>
<%@ taglib uri="/WEB-INF/auth.tld" prefix="htmls" %>
<html>
<head>
<title>EMAIL Profile</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../inc/tickets.css" type="text/css" />
<style>
/* *{filter:gray;} */
table{width:1000}
a{text-decoration:none;}
a:hover{text-decoration:uderliner}
.STYLE1 {color: #990033}
</style>
</head>
<body leftmargin="0" topmargin="0" bottommargin="0" rightmargin="0"
marginheight="0" marginwidth="0" bgcolor="#f0f7dd" <htmls:se property='read' />>
<form name="form1" action="" method="get">
<input type="hidden" name="action_flag" value="no">
<table width="1000" border="0" cellpadding="1" cellspacing="1">
<tr >
<td height="24" colspan="6" align="left" nowrap class="title" >Email Profile Configuration >> </td>
<td height="24" colspan="3" align="left" nowrap class="title" ><a href="${pageContext.request.contextPath}/autoemail/set_getting_alarm_info.jsp" target="_blank" ><font color="#FFFFFF">Set getting alarm time</font></a></td>
<td height="24" colspan="3" align="left" nowrap class="title" ><a href="${pageContext.request.contextPath}/autoemail/email_report.jsp" target="_blank"><font color="#FFFFFF">Email Report</font></a></td>
<td height="24" colspan="3" align="left" nowrap class="title" ><a href="${pageContext.request.contextPath}/autoemail/listAutoEmailTemplate.jsp" target="_blank" ><font color="#FFFFFF">Email Temp</font></a></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="25">
<table border="0" class="" height="100%">
<tbody>
<tr style="height:25">
<td colspan="4" align="center">
</td>
</tr>
<tr style="background-color:#CCCCCC;height:25">
<td width="194" align="right">
<strong> Profile Id : </strong>
</td>
<td colspan="3">
<input type="text" name="profile_id" id="profile_id" size="30"
height="20" readonly="1" style="border:0" value="<%=profile_id_temp %>">
<input type="hidden" name="profile_id_new" id="profile_id_new" value="<%=profile_id_new %>">
</td>
</tr>
<tr style="background-color:#CCCCCC;height:25">
<td align="right">
<strong> Email Acceptant Period(Week) : </strong>
</td>
<td colspan="3">
<span class="STYLE1"> <input type="checkbox"
value="monday" name="monday" <%=formObj.getMonday().equals("1") ? "checked" : "" %> >Mon <input
type="checkbox" value="tuesday" name="tuesday" <%=formObj.getMonday().equals("1") ? "checked" : "" %>>Tue <input
type="checkbox" value="wednesday" name="wednesday" <%=formObj.getWednesday().equals("1") ? "checked" : "" %>>Wed
<input type="checkbox" value="thursday" name="thursday" <%=formObj.getThursday().equals("1") ? "checked" : "" %>>Thu
<input type="checkbox" value="friday" name="friday" <%=formObj.getFriday().equals("1") ? "checked" : "" %>>Fri
<input type="checkbox" value="saturday" name="saturday" <%=formObj.getSaturday().equals("1") ? "checked" : "" %>>Sat
<input type="checkbox" value="sunday" name="sunday" <%=formObj.getSunday().equals("1") ? "checked" : "" %>>Sun
</span>
</td>
</tr>
<tr style="background-color:#CCCCCC;height:25">
<td align="right">
<strong> Email Acceptant Period(Time) : </strong>
</td>
<td colspan="3">
<select name="fromHour">
<%
for (int i = 0; i < 24; i++) {
if (i < 10) {
%>
<option value="<%="0"+i%>" <%=formObj.getFromHour().equals("0"+i) ? "selected" : "" %> >
<%="0"+i%>
</option>
<%
} else {
%>
<option value="<%=i%>" <%=formObj.getFromHour().equals(""+i) ? "selected" : "" %> >
<%=i%>
</option>
<%
}
}
%>
</select>
:
<select name="fromMinute">
<%
for (int i = 0; i < 60; i++) {
if (i < 10) {
%>
<option value="<%="0"+i%>" <%=formObj.getFromMinute().equals("0"+i) ? "selected" : "" %>>
<%="0"+i%>
</option>
<%
} else {
%>
<option value="<%=i%>" <%=formObj.getFromMinute().equals(""+i) ? "selected" : "" %>>
<%=i%>
</option>
<%
}
}
%>
</select>
-->
<select name="toHour">
<%
for (int i = 0; i < 24; i++) {
if (i < 10) {
%>
<option value="<%="0"+i%>" <%=formObj.getToHour().equals("0"+i) ? "selected" : "" %>>
<%="0"+i%>
</option>
<%
} else {
%>
<option value="<%=i%>" <%=formObj.getToHour().equals(""+i) ? "selected" : "" %>>
<%=i%>
</option>
<%
}
}
%>
</select>
:
<select name="toMinute">
<%
for (int i = 0; i < 60; i++) {
if (i < 10) {
%>
<option value="<%="0"+i%>" <%=formObj.getToMinute().equals("0"+i) ? "selected" : "" %> >
<%="0"+i%>
</option>
<%
} else {
%>
<option value="<%=i%>" <%=formObj.getToMinute().equals(""+i) ? "selected" : "" %> >
<%=i%>
</option>
<%
}
}
%>
</select>
</td>
</tr>
<tr style="background-color:#CCCCCC;height:25">
<td align="right">
<strong> Status : </strong>
</td>
<td>
<select name="status">
<option value="1" <%=formObj.getStatus().equals("1") ? "selected":"" %> >
Active
</option>
<option value="0" <%=formObj.getStatus().equals("0") ? "selected":"" %> >
Inactive
</option>
</select>
</td>
<td align="">
<strong>Line Down Email Temp :</strong>
<input type="text" name="email_template_name"
id="email_template_name" height="20" size="65" readonly="1" value="<%=formObj.getEmailTemplateName() %>"
style="border:0"><font color="red"> *</font>
<input name="email_template" type="button" id="email_template"
style="height:20px;text-valign:center;"
onClick="setEMAILTemplate()" value="..." />
</td>
</tr>
<tr style="background-color:#CCCCCC;height:25">
<td align="right">
</td>
<td>
</td>
<td align="">
<strong>Recover Email Temp :</strong>
<input type="text" name="recover_email_template_name"
id="recover_email_template_name" height="20" size="65" readonly="1" value="<%=formObj.getRecoverEmailTemplateName() %>"
style="border:0"><font color="red"> *</font>
<input name="template_name1" type="button" id="email_template1"
style="height:20px;text-valign:center;"
onClick="setRecoverEmailTemplate()" value="..." />
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr height="5">
<td>
</td>
</tr>
<tr>
<td>
<table width="100%" border="0">
<tbody>
<tr style="background-color:#CCCCCC;height:25">
<td width="194" align="right" bgcolor="#CCCCCC">
<strong> Customer Id : </strong>
</td>
<td colspan="3">
<input type="text" name="customer_id" height="20" value="<%=formObj.getCustomerId() %>"
style="border:0" readonly="1"> <font color="red">*</font>
<input name="set_customer_id" type="button" id="set_customer_id" value="Set Customer Id"
onClick="setCustomerId()"
style="height:20px;text-valign:center;" />
<input name="set_circuit_info" type="button" id="set_circuit_info" value="Set Circuit Info"
onClick="setCircuitInfo()"
style="height:20px;text-valign:center;" disabled/>
<input type="text" name="circuit_ids" height="20" value=""
style="border:0;color:red;background-color:#CCCCCC" disable="none" size="40">
</td>
</tr>
<!--tr style="background-color:#CCCCCC;height:25">
<td align="right" bgcolor="#CCCCCC">
<strong>Customer Name(CN) : </strong>
</td>
<td>
<input type="text" name="customer_name_cn" height="20" value=""
size="30" readonly="1" style="border:0">
</td>
<td width="141" align="right" bgcolor="#CCCCCC">
<strong> Customer Name(Eng) : </strong>
</td>
<td width="225">
<input type="text" name="customer_name_eng" height="20" value=""
size="30" readonly="1" style="border:0">
</td>
</tr-->
</tbody>
</table>
</td>
</tr>
<tr>
<td height="5">
</td>
</tr>
<tr align="left" valign="top">
<td>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<strong>
<a name="circuit_info"
href="javascript:changeItem('div1');">Circuit
Info</a>
<a name="contact_info"
href="javascript:changeItem('div2');">Contact
Info</a>
<a name="exceptional_date" href="javascript:changeItem('div3');">Exceptional Date</a> </strong>
</td>
</tr>
<tr>
<td height="200" width="100%">
<table border="0" bgcolor="#FFFFFF" cellpadding="0"
scrolling="0" cellspacing="0">
<tr>
<td>
<table id="div1" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="200" valign="top" align="center">
<iframe width="100%" height="100%" frameborder="0"
scrolling="0" name="circuit_info_iframe" id="circuit_info"
id="exceptional_date" marginheight="0" marginwidth="0"
src="circuit_info.jsp?action_flag=get&email_profile_id=<%=profileId%>&disabledFlag=<%=request.getParameter("action_flag")%>&profile_id_new=<%=profile_id_new%>"></iframe>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table id="div2" border="0" cellpadding="0" cellspacing="0" style="display:none">
<tr>
<td height="200" valign="top" align="center">
<iframe width="100%" height="100%" frameborder="0"
scrolling="0" name="contact_info_iframe"
id="exceptional_date" marginheight="0" marginwidth="0"
src="contact_info.jsp?action_flag=get&email_profile_id=<%=profileId%>&disabledFlag=<%=request.getParameter("action_flag")%>&profile_id_new=<%=profile_id_new%>"></iframe>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table id="div3" style="display:none" border="0"
cellpadding="0" cellspacing="0">
<tr>
<td width="100%" height="200" valign="top" align="center">
<iframe width="100%" height="100%" frameborder="0"
name="contact_info" id="exceptional_date_iframe" marginheight="0"&
marginwidth="0"
src="exceptional_date.jsp?action_flag=get&email_profile_id=<%=profileId%>&disabledFlag=<%=request.getParameter("action_flag")%>&profile_id_new=<%=profile_id_new%>"></iframe>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="22" colspan="4" valign="bottom" class="txtLTBR">
</td>
</tr>
<tr>
<td height="22" colspan="4" valign="bottom" class="txtLTBR">
<div align="center">
<input name="View" type="button" class="btn" id="View"
value="View" width="160" onClick="onButtonAction('view')" />
<input name="New" type="button" class="btn" id="New" value="New"
width="160" onClick="onButtonAction('new')" <htmls:se property='add' /> >
<input name="Edit" id="Edit" type="button" class="btn"
value="Edit" width="160" onClick="onButtonAction('edit')" <htmls:se property='update' />
disabled="true" <htmls:se property='update' />>
<input name="Save" type="button" class="btn" id="Save"
value="Save" width="160" disabled="true" onClick="onButtonAction('save')" <htmls:se property='add' /> >
<input name="Cancel" type="button" class="btn" id="Cancel"
value="Cancel" width="160" onClick="onButtonAction('cancel')" disabled="true">
</div>
</td>
</tr>
</table>
</form>
</body>
<script language="javascript" type="text/javascript" src="../inc/autosms.js"></script>
<script language="javascript" type="text/javascript">
document.getElementsByName("circuit_info").item(0).style.background="#FFFFFF";
function changeItem(tableId) {
//alert(document.getElementsByName("aaaa").item(0).style);
document.getElementsByName("exceptional_date").item(0).style.background="#f0f7dd";
document.getElementsByName("circuit_info").item(0).style.background="#f0f7dd";
document.getElementsByName("contact_info").item(0).style.background="#f0f7dd";
var objName;
if (tableId == 'div1') {
objName = "circuit_info";
} else if (tableId == 'div2') {
objName = "contact_info";
} else {
objName = "exceptional_date";
}
document.getElementsByName(objName).item(0).style.background="#FFFFFF";
document.getElementById("div1").style.display = "none";
document.getElementById("div2").style.display = "none";
document.getElementById("div3").style.display = "none";
document.getElementById(tableId).style.display = "";
}
function setEMAILTemplate() {
var arr = winOpen("email_template.jsp","email_template_search",650,440,true);
}
function setRecoverEmailTemplate() {
var arr = winOpen("recover_email_template.jsp","email_template_search",650,440,true);
}
function setCustomerId() {
if (document.all["customer_id"].value != "") {
document.all["customer_id"].readOnly = "true";
document.all["set_circuit_info"].disabled = "";
document.all["set_customer_id"].disabled = "true";
} else {
alert("Pls input customer id!");
}
}
function setCircuitInfo() {
//var arr = winOpen("circuit_info.jsp","circuit_info_search",765,390,true);
if (document.all["customer_id"].value != "") {
var arr = winOpen("add_circuit_info.jsp?action_flag=search&profile_id_new="+document.all["profile_id_new"].value+"&customer_id="+document.all["customer_id"].value+"&email_profile_id=<%=profileId%>","circuit_info_search",860,510,true);
} else {
alert("Pls input customer id!");
}
}
function onButtonAction(buttonName) {
if (buttonName == 'view') {
var arr = winOpen("view_email_profile_info.jsp","profile_search",860,510,true);
} else {
if (buttonName == 'save') {
if (document.all["recover_email_template_name"].value == "") {
alert("Please select recover email template!");
return false;
} else if (document.all["customer_id"].value == "") {
alert("Please input customer id!");
return false;
}else if(document.all["email_template_name"].value == ""){
alert("Please select email template!");
return false;
}
}
document.all["action_flag"].value = buttonName;
document.forms[0].submit();
}
}
function changeItemStatus(value) {
document.all["fromHour"].disabled = value;
document.all["fromMinute"].disabled = value;
document.all["toHour"].disabled = value;
document.all["toMinute"].disabled = value;
document.all["monday"].disabled = value;
document.all["tuesday"].disabled = value;
document.all["wednesday"].disabled = value;
document.all["thursday"].disabled = value;
document.all["friday"].disabled = value;
document.all["saturday"].disabled = value;
document.all["sunday"].disabled = value;
document.all["set_customer_id"].disabled = value;
document.all["email_template"].disabled = value;
document.all["email_template1"].disabled = value;
}
function initItemStatus() {
document.all["toHour"].value = "23";
document.all["toMinute"].value = "59";
document.all["monday"].checked = "1";
document.all["tuesday"].checked = "1";
document.all["wednesday"].checked = "1";
document.all["thursday"].checked = "1";
document.all["friday"].checked = "1";
document.all["saturday"].checked = "1";
document.all["sunday"].checked = "1";
document.all["customer_id"].readOnly = "";
}
function changeButtonStatus(buttonAction) {
if (buttonAction == 'new' || buttonAction == 'edit') {
if (buttonAction == 'new') {
initItemStatus();
}
document.all["View"].disabled = "true";
document.all["New"].disabled = "true";
document.all["Edit"].disabled = "true";
document.all["Save"].disabled = "";
document.all["Cancel"].disabled = "";
changeItemStatus("");
if (buttonAction == 'edit') {
document.all["set_customer_id"].disabled = "true";
document.all["set_circuit_info"].disabled = "";
}
} else if (buttonAction == 'view' || buttonAction == 'save' || buttonAction == 'cancel') {
document.all["View"].disabled = "";
document.all["New"].disabled = "";
document.all["Edit"].disabled = "";
document.all["Save"].disabled = "true";
document.all["Cancel"].disabled = "true";
changeItemStatus("true");
} else {
changeItemStatus("true");
}
}
var action_flag = "<%=request.getParameter("action_flag") %>";
//alert(action_flag);
changeButtonStatus(action_flag);
</script>
</html>
0 0
- email_profile_detail.jsp
- JSP
- JSP
- jsp
- JSP
- JSP
- jsp
- Jsp
- JSP
- jsp
- jsp
- jsp
- JSP
- JSP
- jsp
- jsp
- JSP
- jsp
- Hibernate 之QBC
- redis数据库定时保存
- 玩了一年的“假” AR,2017年你可能要认识一下“真”AR
- hdfs-文件上传告警脚本-编码开发
- yum安装的PHP卸载
- email_profile_detail.jsp
- 315. Count of Smaller Numbers After Self && 493. Reverse Pairs
- Android集成微信支付
- 错误The type XXX is deprecated解决
- Cygwin 安装好点击快捷方式闪退
- 新增系统级资源
- hive安装以及配置
- Java--API,Object类
- JavaScript总结