?
Path : /home/admin/public_html/modules/users/ |
Current File : /home/admin/public_html/modules/users/com_regis_tab.php |
<? require_once('function.php'); ?> <style> .tab_hover { color:#0A740A; cursor:pointer; width:131px; height:30px; background-image:url(./images/tab1.gif); border:0px; text-align:center; font-family:verdana; font-size:12px; font-weight:bold; } .tab { color:#0A740A; cursor:pointer; width:131px; height:30px; background-image:url(./images/tab2.gif); border:0px; text-align:center; font-family:verdana; font-size:12px; font-weight:none; } .data_tab { border:1px solid gray; width:800px; height:100px; text-align:left; font-family:verdana; font-size:12px; padding:.3em; } .tab_table_data { BORDER-RIGHT: #C1CDD8 1px solid; PADDING-RIGHT: 1px; BORDER-TOP: #C1CDD8 1px solid; PADDING-LEFT: 1px; PADDING-BOTTOM: 1px; BORDER-LEFT: #C1CDD8 1px solid; PADDING-TOP: 1px; BORDER-BOTTOM: #C1CDD8 1px solid; BACKGROUND-COLOR: #EFF5FB } </style> <script> last_tab = 'tab1'; function show(layerName) { document.getElementById(layerName).style.display = ''; } function hide(layerName) { document.getElementById(layerName).style.display = 'none'; } function show_next(tab_name) { document.getElementById(last_tab).className = 'tab'; var curr = document.getElementById(tab_name); curr.className='tab_hover'; hide(last_tab+'_data'); show(tab_name+'_data'); last_tab=tab_name; } </script> <form method=post action="<?echo$PHPSELF;?>?mod=user&ac=add_new_account" enctype=multipart/form-data> <br><table cellpadding=0 cellspacing=0 border=0 width="99%"><tr><td> <table cellpadding=0 cellspacing=0 border=0 > <tr> <td id=tab1 class=tab_hover onclick="javascript:show_next('tab1')">ข้อมูลเข้าสู่ระบบ</td> <td id=tab2 class=tab onclick="javascript:show_next('tab2')">ข้อมูลทั่วไป</td> </tr> </table> </tr></td></table> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td valign="top" width="100%"> <div id=tab1_data> <table width=650 height=102 class=tab_table_data> <tr> <td width=100% height=21><center><font size=3>ข้อมูลเข้าระบบ</font></center></td> </tr> <tr> <td width=450 height=77 align=center> <p align=center> <table border=0 cellpadding=0 cellspacing=0 style=border-collapse: collapse bordercolor=#111111 width=563 height=27> <tr> <td width=39 height=30></td> <td width=160 height=30 align=right>Username</td> <td width=20 height=30></td> <td width=344 height=30><input type=text name=username size=35 class=backend_inputbox> </td> </tr> <tr> <td width=39 height=30></td> <td width=160 height=30 align=right>Password</td> <td width=20 height=30></td> <td width=344 height=30><input type=password name=password size=35 class=backend_inputbox> </td> </tr> <tr> <td width=39 height=30></td> <td width=160 height=30 align=right>Re-Password</td> <td width=20 height=30></td> <td width=344 height=30><input type=password name=repassword size=35 class=backend_inputbox> </td> </tr> <tr> <td width=39 height=30></td> <td width=160 height=30 align=right>Group</td> <td width=20 height=30></td> <td width=344 height=30><?echo select_cat($user,$table='usertype',$name='usertype',$key_field='usertype_name',$value_field='usertype_id',$chk='');?></td> </tr> <tr> <td width=39 height=30></td> <td width=160 height=30 align=right>Block</td> <td width=20 height=30></td> <td width=344 height=30> <select size=1 name=block class=backend_inputbox> <option selected>No</option> <option>Yes</option> </select></td> </tr> <tr> <td width=39 height=30></td> <td width=160 height=30></td> <td width=20 height=30></td> <td width=344 height=30></td> </tr> </table></td></tr></table> </div> <div id=tab2_data style='display:none'> <table width=650 height=102 class=tab_table_data> <tr> <td width=100% height=21><center><font size=3>ข้อมูลทั่วไป</font></center></td> </tr> <tr> <td width=450 height=77 align=center> <p align=center> <table border=0 cellpadding=0 cellspacing=0 style=border-collapse: collapse bordercolor=#111111 width=563 height=27> <tr> <td width="39" height="6"></td> <td width="160" height="6" align="right">รูปถ่าย:</td> <td width="20" height="6"></td> <td width="600" height="6"><input type="file" name="photo[0]" size="35" class="backend_inputbox"> ประเภทไฟล์ JPG, GIF, PNG ขนาดไม่ควรเกิน 100 kb</td> </tr> <tr> <td width=39 height=30></td> <td width=160 height=30 align=right>ชื่อ</td> <td width=20 height=30></td> <td width=344 height=30 valign=left><input type=text name=name size=35 class=backend_inputbox></td> </tr> <tr> <td width=39 height=30></td> <td width=160 height=30 align=right>นามสกุล</td> <td width=20 height=30></td> <td width=344 height=30><input type=text name=lastname size=35 class=backend_inputbox> </td> </tr> <tr> <td width=39 height=30></td> <td width=160 height=30 align=right>ชื่อ-เล่น</td> <td width=20 height=30></td> <td width=344 height=30 valign=left><input type=text name=nickname size=35 class=backend_inputbox></td> </tr> <tr> <td width=39 height=30></td> <td width=160 height=30 align=right>วันเกิด</td> <td width=20 height=30></td> <td width=344 height=30> <select name=day> <? for($i=1;$i<32;$i++){ echo "<OPTION >".$i."</OPTION>"; } ?> </select> <select name=month> <? for($i=1;$i<=count($global_Month);$i++){ echo "<OPTION >".$global_Month[$i]."</OPTION>"; } ?> </select> <select name=year> <? foreach($global_Year as $k=>$v){ echo "<OPTION>".$v."</OPTION>"; } ?> </select> </td> </tr> <tr> <td width=39 height=30></td> <td width=160 height=30 align=right>เพศ</td> <td width=20 height=30></td> <td width=344 height=30> <input type="radio" value="mail" checked name="gender"> ชาย <input type="radio" value="female" checked name="gender">หญิง <input type="radio" value="not_specified" checked name="gender">ไม่ระบุ</td> </tr> <tr> <td width=39 height=20></td> <td width=160 height=20></td> <td width=20 height=20></td> <td width=344 height=20>--------------------------------------------------</td> </tr> <tr> <td width=39 height=30></td> <td width=160 height=30 align=right>ที่อยู่ <br>Address</td> <td width=20 height=30></td> <td width=344 height=30><input type=text name=address size=35 class=backend_inputbox> </td> </tr> <tr> <td width=39 height=30></td> <td width=160 height=30 align=right> ถนน<br>Road</td> <td width=20 height=30></td> <td width=344 height=30><input type=text name=road size=35 class=backend_inputbox> </td> </tr> <tr> <td width=39 height=30></td> <td width=160 height=30 align=right> ตำบล/แขวง <br>Sub-District</td> <td width=20 height=30></td> <td width=344 height=30><input type=text name=sub_district size=35 class=backend_inputbox> </td> </tr> <tr> <td width=39 height=30></td> <td width=160 height=30 align=right> อำเภอ/เขต <br>District</td> <td width=20 height=30></td> <td width=344 height=30><input type=text name=district size=35 class=backend_inputbox> </td> </tr> <tr> <td width=39 height=30></td> <td width=160 height=30 align=right> จังหวัด <br>Province</td> <td width=20 height=30></td> <td width=344 height=30><input type=text name=province size=35 class=backend_inputbox> </td> </tr> <tr> <td width=39 height=30></td> <td width=160 height=30 align=right> รหัสไปรษณีย์ <br>Zipcode</td> <td width=20 height=30></td> <td width=344 height=30><input type=text name=zipcode size=35 class=backend_inputbox> </td> </tr> <tr> <td width=39 height=20></td> <td width=160 height=20></td> <td width=20 height=20></td> <td width=344 height=20>--------------------------------------------------</td> </tr> <tr> <td width=39 height=30></td> <td width=160 height=30 align=right>โทรศัพท์บ้าน <br>Telephone</td> <td width=20 height=30></td> <td width=344 height=30><input type=text name=telephone size=35 class=backend_inputbox> </td> </tr> <tr> <td width=39 height=30></td> <td width=160 height=30 align=right>โทรศัพท์มือถือ <br>Mobile Phone</td> <td width=20 height=30></td> <td width=344 height=30><input type=text name=mobile size=35 class=backend_inputbox> </td> </tr> <tr> <td width=39 height=20></td> <td width=160 height=20></td> <td width=20 height=20></td> <td width=344 height=20>--------------------------------------------------</td> </tr> <tr> <td width=39 height=30></td> <td width=160 height=30 align=right>Wonderfulpackage Email</td> <td width=20 height=30></td> <td width=344 height=30><input type=text name=email1 size=35 class=backend_inputbox> </td> </tr> <tr> <td width=39 height=30></td> <td width=160 height=30 align=right>Email</td> <td width=20 height=30></td> <td width=344 height=30><input type=text name=email2 size=35 class=backend_inputbox> </td> </tr> <tr> <td width=39 height=30></td> <td width=160 height=30 align=right>ตำแหน่งงาน</td> <td width=20 height=30></td> <td width=344 height=30><input type=text name=job size=35 class=backend_inputbox> </td> </tr> <tr> <td width=39 height=30></td> <td width=160 height=30></td> <td width=20 height=30></td> <td width=344 height=30></td> </tr> </table></td></tr></table> </div> </td> </tr> <tr> <td><table width=650 height=30 class=tab_table_data> <tr> <td width=39 height=30></td> <td width=160 height=30></td> <td width=20 height=30></td> <td width=344 height=30> <input type=submit value=" บันทึก " name=submit> <input type=button value=" ยกเลิก " name=cancle onClick=javascript:window.history.back()></td> </tr> </table></td> </tr> </table> </form>