?? elec_fee_info_modify.jsp
字號:
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link rel="stylesheet" type="text/css"
href="/Imis/imis_elec/css/style.css">
<title>電價信息修改</title>
<%-- <script type="text/javascript" src="/Imis/imis_elec/js/ElecFeeInfoCheck.js"></script>--%>
<script type="text/javascript">
function checkValue() {
var priceUnit = document.form1.PriceUnit.value;
if (priceUnit!=""){
var regp = /(^[\d]{1,6}|^[\d]{1,6})($|[\.][\d]{0,4}$)/;
if (priceUnit.match(regp) == null || priceUnit.match(regp1) == null )
{
document.form1.PriceUnit.focus();
alert("電價如果是浮點數,整數位最多6位, 小數位最多4位 \n如果是整數,最多6位");
return false;
}
}
if (priceUnit=="") {
alert("電價不能為空!");
document.form1.PriceUnit.focus();
return false;
}
var memo = document.form1.Memo.value;
if (memo.length > 100){
alert("輸入備注長度超出,限定為50個中文字符或者100個英文字符。");
document.form1.Memo.focus();
return false;
}
return true;
}
</script>
</head>
<body BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0
MARGINHEIGHT=0 scrolling="auto"
background="/Imis/imis_elec/images/bg_main.png">
<%-- <h3 align="center">電價信息管理</h3>--%>
<form method="post"
action="/Imis/servlet/Elec_Fee_info?pattern=getElec_Fee_info&page=modify">
<table align="center" width="100%" border="0" class="ziti">
<tr>
<td width="100%" height="20" valign="center" align="left"
colspan="2" background="/Imis/imis_elec/images/bg_main2.png">
<font color="black">電價信息管理</font>
</td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td width="37%" align="right">
用電類型:
</td>
<td width="63%">
<select name="elecUseType" id="elecUseType" class="text1">
<option value="1" selected>
非居民照明
</option>
<option value="2">
居民照明
</option>
<option value="3">
商業用電
</option>
<option value="4">
非商業用電
</option>
<option value="5">
工業用電
</option>
<option value="6">
非工業用電
</option>
</select>
</td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td></td>
<td align="left">
<input type="submit" name="Submit" value="查 詢" class="anniu" />
</td>
</tr>
</table>
</form>
<c:if test="${requestScope.ElecUseTypeUnexisted!=null}">
<hr>
<font color="red"><h2 align="left">
${requestScope.ElecUseTypeUnexisted}
</h2>
</font>
</c:if>
<c:if test="${requestScope.Elec_Fee_info!=null}">
<form name="form1" method="post"
action="/Imis/servlet/Elec_Fee_info?pattern=modify">
<table align="center" width="460" border="0" class="ziti">
<tr>
<td width="30%" align="right">
電 價 ID:
</td>
<td width="75%">
<input type="text" name="FeeId"
value="${requestScope.Elec_Fee_info.feeId}" readonly="readonly"
class="text1" size="5" />
<font color="red"> *</font>
</td>
</tr>
<tr>
<td align="right">
用電類型:
</td>
<td>
<input type="text" name="ElecUseType"
value="${requestScope.Elec_Fee_info.elecUseType}"
readonly="readonly" class="text1" size="5" />
(1:非居民照明 2:居民照明 3:商業用電 4:非商業用電 5:工業用電 6:非工業用電)
<%-- <select name="ElecUseType" id="ElecUseType" class="text1"/>--%>
<%-- <option value="1" <c:if test="${requestScope.Elec_Fee_info.elecUseType==1}">selected</c:if>>非居民</option>--%>
<%-- <option value="2" <c:if test="${requestScope.Elec_Fee_info.elecUseType==2}">selected</c:if>>居民</option>--%>
<%-- <option value="3" <c:if test="${requestScope.Elec_Fee_info.elecUseType==3}">selected</c:if>>其他</option>--%>
<%-- --%>
<%-- </select> --%>
<font color="red"> *</font>
</td>
</tr>
<tr>
<td align="right">
單 價:
</td>
<td>
<input type="text" name="PriceUnit"
value="${requestScope.Elec_Fee_info.priceUnit}" class="text1"
size="12" />
<font color="red"> *</font>
</td>
</tr>
<tr>
<td align="right">
備 注:
</td>
<td>
<textarea name="Memo" rows="4" cols="25" class="text1">${requestScope.Elec_Fee_info.memo}</textarea>
</td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td></td>
<td align="left">
<input type="submit" name="Submit" value="修 改" class="anniu"
onClick="return checkValue()" />
</td>
</tr>
</table>
</form>
</c:if>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -