1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
|
<!DOCTYPE html><head> <meta http-equiv="Content-Type" content="text/html; charset=euc-kr"> <title>°è»ê¼ ±âº»Á¤º¸ µî·Ï/¼öÁ¤</title> <link rel='stylesheet' type='text/css' href='./css/reset.css'> <link rel='stylesheet' type='text/css' href='./css/point.css'> </head> <? @session_start(); include("category/opcommon.php"); ?>
<script> function billBasicChk(){ var b = document.billBasicFrm; if( b.companyNum.value == ""){ alert("»ç¾÷ÀÚ¹øÈ£¸¦ ÀÔ·ÂÇϼ¼¿ä"); b.companyNum.focus(); return; } if( b.companyName.value == ""){ alert("ȸ»ç¸íÀ» ÀÔ·ÂÇϼ¼¿ä"); b.companyName.focus(); return; } if( b.chiefName.value == ""){ alert("´ëÇ¥ÀÚ¸íÀ» ÀÔ·ÂÇϼ¼¿ä"); b.chiefName.focus(); return; } if( b.companyAddr.value == ""){ alert("»ç¾÷ÀÚ ÁÖ¼ÒÁö¸¦ ÀÔ·ÂÇϼ¼¿ä"); b.companyAddr.focus(); return; } if( b.opt_1.value == ""){ alert("¾÷Ÿ¦ ÀÔ·ÂÇϼ¼¿ä"); b.opt_1.focus(); return; } if( b.opt_2.value == ""){ alert("¾÷Á¾À» ÀÔ·ÂÇϼ¼¿ä"); b.opt_2.focus(); return; } if(confirm("ÀÌ Á¤º¸·Î ÀúÀåÇϽðڽÀ´Ï±î?")){ billBasicFrm.submit(); }
} </script>
<form name='billBasicFrm' method='post' action="billProcess.php"> <? $billQry = "select * from bill_mijin WHERE idx = 1"; $billResult = mysql_query($billQry); if( mysql_num_rows($billResult) > 0){ $billRow = mysql_fetch_array($billResult); ?> <input type='hidden' name='docType' value='1'> <input type='hidden' name='mode' value='update'> <input type='hidden' name='idx' value='<?=$billRow[idx];?>'> <? } else { ?> <input type='hidden' name='docType' value='1'> <input type='hidden' name='mode' value='insert'> <? } ?>
<div class="columnWarp" style="width:570px;margin:5px;"> <table class="columnTable"> <tr> <th rowspan="4" class="rightLine last">°ø<br /> ±Þ<br />ÀÚ</th> <th>µî·Ï¹øÈ£</th> <td colspan="3"><input type="text" name="companyNum" value='<?=$billRow['companyNum'];?>' size="20" maxlength="20" class="title"></td> </tr> <tr> <th style="line-height:1.25;">»óÈ£<br>(¹ýÀθí) </th> <td><input type="text" name="companyName" value='<?=$billRow['companyName'];?>'size="20" maxlength="20"></td> <th style="line-height:1.25;">¼º¸í<br />(´ëÇ¥ÀÚ) </th> <td><input type="text" name="chiefName" value='<?=$billRow['chiefName'];?>'size="10" maxlength="10"> </td> </tr> <tr> <th style="line-height:1.25;">»ç¾÷ÀÚ<br />ÁÖ¼Ò</th> <td colspan="3"><input name="companyAddr" type="text" value='<?=$billRow['companyAddr'];?>'size="70" maxlength="80"></td> </tr> <tr> <th class="last">¾÷ÅÂ</th> <td class="last"><input name="opt_1" type="text" value='<?=$billRow['opt_1'];?>'size="20" maxlength="20"></td> <th class="last">Á¾¸ñ</th> <td class="last"> <input name="opt_2" type="text" value='<?=$billRow['opt_2'];?>'size="20" maxlength="20"></td> </tr> </table><!-- //columnTable--> </form> </div><!--//columnWarp-->
<div class="btn1Warp"> <a href="javascript:billBasicChk();" class="grayBtn">Á¤º¸ÀúÀåÇϱâ</a> </div>
</div><!--//wrap--> </body> </html>
|