1 : {&¶
2 : /* file: insert.fom¶
3 : author: 서광현¶
4 : ¶
5 : Copyright (c) 2001/02/22 by Wesoft¶
6 : All Rights Reserved.¶
7 : */¶
8 : ¶
9 : WIDTH= 555;¶
10 : BARCOLOR= bar_boardcolor;¶
11 : ARG= strform("list={$list}&k={$k}&n={$n}&o={$o}",¶
12 : "&pi={$pi}&pw={$pw}&pm={$pm}&ps={$ps}&pd={$pd}");¶
13 : }¶
14 : <html>¶
15 : <head>¶
16 : <!-- {$PROGRAM_NAME} {$PROGRAM_VERSION} -->¶
17 : <meta http-equiv="Content-Type" content="text/html; charset=euc-kr">¶
18 : <meta http-equiv="Pragma" content="no-cache">¶
19 : <title>개인 주소록 입력</title>¶
20 : <link rel=stylesheet type="text/css" href="form/addrbook.css">¶
21 : <script language="JavaScript">¶
22 : <!--¶
23 : function call_addr(formname, zip1, zip2, addr1, addr2)¶
24 : {¶
25 : url= "{$zipcode_url}/zipcode.wel?fn=" + formname + "&z1=" + zip1¶
26 : + "&z2=" + zip2 + "&a1=" + addr1 + "&a2=" + addr2;¶
27 : option= "left=10,top=10,width=500,height=300"¶
28 : + ",toolbar=no,menubar=no,status=no,resizable=no,scrollbars=yes";¶
29 : window.open(url,"zipcode",option);¶
30 : }¶
31 : ¶
32 : function clear_haddr()¶
33 : {¶
34 : document.addrbook.hzip1.value= "";¶
35 : document.addrbook.hzip2.value= "";¶
36 : document.addrbook.haddr1.value= "";¶
37 : document.addrbook.haddr2.value= "";¶
38 : }¶
39 : ¶
40 : function clear_oaddr()¶
41 : {¶
42 : document.addrbook.ozip1.value= "";¶
43 : document.addrbook.ozip2.value= "";¶
44 : document.addrbook.oaddr1.value= "";¶
45 : document.addrbook.oaddr2.value= "";¶
46 : }¶
47 : ¶
48 : function Check()¶
49 : {¶
50 : if(document.addrbook.name.value=="" && document.addrbook.office.value=="")¶
51 : {¶
52 : alert("이름 또는 직장명을 입력하여주십시오!");¶
53 : document.addrbook.name.focus();¶
54 : return false;¶
55 : }¶
56 : document.addrbook.submit();¶
57 : return true;¶
58 : }¶
59 : ¶
60 : function golist()¶
61 : {¶
62 : url= "addrbook.wel?{$ARG}";¶
63 : location.replace(url);¶
64 : }¶
65 : //-->¶
66 : </script>¶
67 : </head>¶
68 : <body {$background} topmargin=2 onload="document.addrbook.name.focus()">¶
69 : <center>¶
70 : <table border=1 cellspacing=0>¶
71 : <tr>¶
72 : <td id=tdb bgcolor={$titlebgcolor}>¶
73 : <font size=3 color={$titlecolor}><b> {$us_title} </b></font></td>¶
74 : </tr>¶
75 : </table>¶
76 : <table><tr><td height=2></td></tr></table>¶
77 : <table border=1 cellspacing=0 cellpadding=0 width={$WIDTH} bgcolor={$BARCOLOR}¶
78 : style="border-width:1px; border-color:#000000">¶
79 : <form name="addrbook" method="post" action="insert.wel">¶
80 : <input type=hidden name="writeflag" value=1>¶
81 : <input type=hidden name="k" value="{$k}">¶
82 : <input type=hidden name="n" value="{$n}">¶
83 : <input type=hidden name="o" value="{$o}">¶
84 : <input type=hidden name="pi" value="{$pi}">¶
85 : <input type=hidden name="pw" value="{$pw}">¶
86 : <input type=hidden name="pm" value="{$pm}">¶
87 : <input type=hidden name="ps" value="{$ps}">¶
88 : <input type=hidden name="pd" value="{$pd}">¶
89 : <tr>¶
90 : <td valign=bottom id=tdb width=70%>{$ckid} 의 주소록 신규 등록</td>¶
91 : <td align=right id=tdb width=30%>¶
92 : {&button(1,"golist()","등록 취소","")}</td>¶
93 : </tr>¶
94 : </table>¶
95 : <p style="margin:1px 0 0 0;line-height:0"></p>¶
96 : <table border=1 cellspacing=0 width={$WIDTH} bordercolordark=white bordercolorlight=#c8c8c8>¶
97 : <tr>¶
98 : <td id=tdh>이름/생일</td>¶
99 : <td id=tdl>¶
100 : 이름: <input type=text name="name" maxlength=30 size=30 id=it> ¶
101 : 생일: <input type=text name="birth" maxlength=16 size=16 id=it></td>¶
102 : </tr>¶
103 : <tr>¶
104 : <td id=tdh>핸드폰번호</td>¶
105 : <td id=tdl><input type=text name="hdphone" maxlength=16 size=16 id=it></td>¶
106 : </tr>¶
107 : <tr>¶
108 : <td id=tdh>집 연락처</td>¶
109 : <td id=tdl>¶
110 : 전화번호: <input type=text name="hphone" maxlength=16 size=16 id=it> ¶
111 : 팩스번호: <input type=text name="hfax" maxlength=16 size=16 id=it></td>¶
112 : </tr>¶
113 : <tr>¶
114 : <td id=tdh>홈페이지 주소</td>¶
115 : <td id=tdl><input type=text name="homepage" maxlength=40 size=40 id=it></td>¶
116 : </tr>¶
117 : <tr>¶
118 : <td id=tdh>전자우편 주소</td>¶
119 : <td id=tdl><input type=text name="email" maxlength=40 size=40 id=it></td>¶
120 : </tr>¶
121 : <tr>¶
122 : <td id=tdh>집 주소<br>¶
123 : <p align=center width=100% style="margin:8px 0 0 0">¶
124 : {&button(1,"clear_haddr()","집주소 지우기","width:95")}</p></td>¶
125 : <td id=tdl>¶
126 : <input type=text name="hzip1" maxlength=3 size=3 id=it readonly>¶
127 : - <input type=text name="hzip2" maxlength=3 size=3 id=it readonly> ¶
128 : {&button(1,"call_addr('addrbook','hzip1','hzip2','haddr1','haddr2')","집 주소찾기","")}<br>¶
129 : <input type=text name="haddr1" maxlength=68 size=68 id=it readonly><br>¶
130 : <input type=text name="haddr2" maxlength=50 size=50 id=it> ※ 나머지 주소</td>¶
131 : </tr>¶
132 : <tr>¶
133 : <td id=tdh>직장(학교) 이름</td>¶
134 : <td id=tdl><input type=text name="office" maxlength=40 size=40 id=it></td>¶
135 : </tr>¶
136 : <tr>¶
137 : <td id=tdh>부서(과) 및 직위</td>¶
138 : <td id=tdl>¶
139 : 부서(과): <input type=text name="buseo" maxlength=20 size=20 id=it> ¶
140 : 직위(학년/반): <input type=text name="position" maxlength=10 size=10 id=it></td>¶
141 : </tr>¶
142 : <tr>¶
143 : <td id=tdh>직장(학교) 연락처</td>¶
144 : <td id=tdl>¶
145 : 전화번호: <input type=text name="ophone" maxlength=16 size=16 id=it> ¶
146 : 팩스번호: <input type=text name="ofax" maxlength=16 size=16 id=it></td>¶
147 : </tr>¶
148 : <tr>¶
149 : <td id=tdh>직장(학교) 주소<br>¶
150 : <p align=center width=100% style="margin:8px 0 0 0">¶
151 : {&button(1,"clear_oaddr()","직장주소 지우기","width:95")}</p></td>¶
152 : <td id=tdl>¶
153 : <input type=text name="ozip1" maxlength=3 size=3 id=it readonly>¶
154 : - <input type=text name="ozip2" maxlength=3 size=3 id=it readonly> ¶
155 : {&button(1,"call_addr('addrbook','ozip1','ozip2','oaddr1','oaddr2')","직장 주소찾기","")}<br>¶
156 : <input type=text name="oaddr1" maxlength=68 size=68 id=it readonly><br>¶
157 : <input type=text name="oaddr2" maxlength=50 size=50 id=it> ※ 나머지 주소</td>¶
158 : </tr>¶
159 : <tr>¶
160 : <td id=tdh>메 모</td>¶
161 : <td id=tdl><input type=text name="memo" maxlength=100 size=68 id=it></td>¶
162 : </tr>¶
163 : </table>¶
164 : <p style="margin:1px 0 0 0;line-height:0"></p>¶
165 : <table border=1 cellspacing=0 cellpadding=0 width={$WIDTH} bgcolor={$BARCOLOR}¶
166 : style="border-width:1px; border-color:#000000">¶
167 : <tr>¶
168 : <td id=tdb width=20%>¶
169 : <td align=center id=tdb width=60%>{$cpright}</td>¶
170 : <td align=right id=tdb width=20%>¶
171 : {&button(1,"Check()","저 장 하 기","")}</td>¶
172 : </tr>¶
173 : </table>¶
174 : </form>¶
175 : </center>¶
176 : </body>¶
177 : </html>¶
|