최초커밋
This commit is contained in:
72
project/project_total_cost.asp
Normal file
72
project/project_total_cost.asp
Normal file
@@ -0,0 +1,72 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
Dim p_sn
|
||||
p_sn = request("p_sn")
|
||||
|
||||
%>
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
<meta http-equiv="content-type" content="text/html; charset=EUC-KR" />
|
||||
<link rel="stylesheet" type="text/css" href="/css/basic.css">
|
||||
|
||||
<script language="javascript" type="text/javascript">
|
||||
|
||||
function setFormatPrice() {
|
||||
strNum = document.tofrm.p_total_cost.value;
|
||||
strNum = strNum.replace(/,/g, "");
|
||||
var result = '';
|
||||
|
||||
for (var i = 0; i < strNum.length; i++) {
|
||||
if (i % 3 == 0 && i != 0) result = ',' + result;
|
||||
|
||||
result = strNum.charAt(strNum.length - (i + 1)) + result;
|
||||
}
|
||||
document.tofrm.p_total_cost.value = result;
|
||||
}
|
||||
|
||||
function total_cost_save(){
|
||||
var frm = document.tofrm;
|
||||
var p_total_cost = frm.p_total_cost.value;
|
||||
if(p_total_cost != "" && p_total_cost * 1 != 0){
|
||||
frm.action = "./project_total_cost_ok.asp";
|
||||
frm.submit();
|
||||
}else{
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>Ȯ<EFBFBD><C8AE> <20>Է<EFBFBD><D4B7>ϼ<EFBFBD><CFBC><EFBFBD>.");
|
||||
}
|
||||
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<form name="tofrm" method="post">
|
||||
<table width="350" cellpadding="3" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr>
|
||||
<td colspan="2" height="4" ></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="40%" align="center" ><3E><><EFBFBD><EFBFBD> <20><>ȣ</td>
|
||||
<td width="60%" >
|
||||
<input type="text" style="width:100;" name="p_sn_code" value="<%=p_sn %>" readonly>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" >
|
||||
<09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<28><>ü<EFBFBD><C3BC><EFBFBD>ֱݾ<D6B1>)
|
||||
</td>
|
||||
<td >
|
||||
<input class="input" type="text" name="p_total_cost" value="" style="width:100;text-align:right;" onkeyup="setFormatPrice()" onkeypress="if (event.keyCode < 48 || event.keyCode > 57) event.returnValue = false;" /> <20><> (<font class="tahoma_red">VAT <20><><EFBFBD><EFBFBD></font>)
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" height="4" ></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" colspan="3" style="padding:10 0 0 0">
|
||||
<img src="/images/project/btn_save.jpg" align="absmiddle" style="cursor:pointer" onclick="total_cost_save()"> <!-- <20><><EFBFBD><EFBFBD><EFBFBD>ϱ<EFBFBD> -->
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user