3-6
/templates/phone_book_adm_main_b3.html
001 | < div class = "container-fluid" > |
004 | <{if $now_op=="phone_book_form"}> |
006 | <{$formValidator_code}> |
007 | <{$formValidator_code2}> |
009 | < div class = "container" > |
011 | < form action="<{$action}>" method="post" id="myForm" enctype="multipart/form-data" class="form-horizontal" role="form"> |
014 | < div class = "form-group" > |
015 | < label class = "col-md-2 control-label" > |
016 | <{$smarty.const._MA_PHONEBOOK_CATE_SN}> |
018 | < div class = "col-md-5" > |
019 | < select name = "cate_sn" class = "form-control " size = 1 > |
020 | < option value = "" ></ option > |
021 | <{foreach from=$cate_sn_options item=opt}> |
022 | < option value="<{$opt.cate_sn}>" <{if $cate_sn==$opt.cate_sn}>selected<{/if}>><{$opt.cate_title}></ option > |
029 | < div class = "form-group" > |
030 | < label class = "col-md-2 control-label" > |
031 | <{$smarty.const._MA_PHONEBOOK_NAME}> |
033 | < div class = "col-md-5" > |
034 | < input type = "text" name = "name" id = "name" class = "form-control validate[required, minSize[2] , maxSize[4]]" value="<{$name}>" placeholder="<{$smarty.const._MA_PHONEBOOK_NAME}>"> |
039 | < div class = "form-group" > |
040 | < label class = "col-md-2 control-label" > |
041 | <{$smarty.const._MA_PHONEBOOK_BIRTHDAY}> |
043 | < div class = "col-md-5" > |
044 | < input type = "text" name = "birthday" id = "birthday" class = "form-control validate[past[NOW], custom[date]]" value="<{$birthday}>" placeholder="<{$smarty.const._MA_PHONEBOOK_BIRTHDAY}>"> |
049 | < div class = "form-group" > |
050 | < label class = "col-md-2 control-label" > |
051 | <{$smarty.const._MA_PHONEBOOK_PHONE}> |
053 | < div class = "col-md-5" > |
054 | < input type = "text" name = "phone" id = "phone" class = "form-control validate[required, custom[phone]]" value="<{$phone}>" placeholder="<{$smarty.const._MA_PHONEBOOK_PHONE}>"> |
059 | < div class = "form-group" > |
060 | < label class = "col-md-2 control-label" > |
061 | <{$smarty.const._MA_PHONEBOOK_EMAIL}> |
063 | < div class = "col-md-5" > |
064 | < input type = "text" name = "email" id = "email" class = "form-control validate[custom[email]]" value="<{$email}>" placeholder="<{$smarty.const._MA_PHONEBOOK_EMAIL}>"> |
069 | < div class = "form-group" > |
070 | < label class = "col-md-2 control-label" > |
071 | <{$smarty.const._MA_PHONEBOOK_ZIP}> |
073 | < div class = "col-md-5" > |
074 | < input type = "text" name = "zip" id = "zip" class = "form-control " value="<{$zip}>" placeholder="<{$smarty.const._MA_PHONEBOOK_ZIP}>"> |
079 | < div class = "form-group" > |
080 | < label class = "col-md-2 control-label" > |
081 | <{$smarty.const._MA_PHONEBOOK_COUNTY}> |
083 | < div class = "col-md-5" > |
084 | < input type = "text" name = "county" id = "county" class = "form-control " value="<{$county}>" placeholder="<{$smarty.const._MA_PHONEBOOK_COUNTY}>"> |
089 | < div class = "form-group" > |
090 | < label class = "col-md-2 control-label" > |
091 | <{$smarty.const._MA_PHONEBOOK_CITY}> |
093 | < div class = "col-md-5" > |
094 | < input type = "text" name = "city" id = "city" class = "form-control " value="<{$city}>" placeholder="<{$smarty.const._MA_PHONEBOOK_CITY}>"> |
099 | < div class = "form-group" > |
100 | < label class = "col-md-2 control-label" > |
101 | <{$smarty.const._MA_PHONEBOOK_ADDR}> |
103 | < div class = "col-md-10" > |
104 | < input type = "text" name = "addr" id = "addr" class = "form-control " value="<{$addr}>" placeholder="<{$smarty.const._MA_PHONEBOOK_ADDR}>"> |
109 | < div class = "form-group" > |
110 | < label class = "col-md-2 control-label" > |
111 | <{$smarty.const._MA_PHONEBOOK_NOTE}> |
113 | < div class = "col-md-10" > |
114 | < textarea name = "note" rows = 8 id = "note" class = "form-control " placeholder="<{$smarty.const._MA_PHONEBOOK_NOTE}>"><{$note}></ textarea > |
118 | < div class = "text-center" > |
121 | < input type = 'hidden' name = "sn" value="<{$sn}>"> |
123 | < input type = "hidden" name = "op" value="<{$next_op}>"> |
124 | < button type = "submit" class = "btn btn-primary" ><{$smarty.const._TAD_SAVE}></ button > |
132 | <{if $now_op=="show_one_phone_book"}> |
134 | < h2 class = "text-center" ><{$name}></ h2 > |
138 | < label class = "col-md-3 text-right" > |
139 | <{$smarty.const._MA_PHONEBOOK_CATE_SN}> |
141 | < div class = "col-md-9" > |
148 | < label class = "col-md-3 text-right" > |
149 | <{$smarty.const._MA_PHONEBOOK_BIRTHDAY}> |
151 | < div class = "col-md-9" > |
158 | < label class = "col-md-3 text-right" > |
159 | <{$smarty.const._MA_PHONEBOOK_PHONE}> |
161 | < div class = "col-md-9" > |
168 | < label class = "col-md-3 text-right" > |
169 | <{$smarty.const._MA_PHONEBOOK_EMAIL}> |
171 | < div class = "col-md-9" > |
178 | < label class = "col-md-3 text-right" > |
179 | <{$smarty.const._MA_PHONEBOOK_ZIP}> |
181 | < div class = "col-md-9" > |
188 | < label class = "col-md-3 text-right" > |
189 | <{$smarty.const._MA_PHONEBOOK_COUNTY}> |
191 | < div class = "col-md-9" > |
198 | < label class = "col-md-3 text-right" > |
199 | <{$smarty.const._MA_PHONEBOOK_CITY}> |
201 | < div class = "col-md-9" > |
208 | < label class = "col-md-3 text-right" > |
209 | <{$smarty.const._MA_PHONEBOOK_ADDR}> |
211 | < div class = "col-md-9" > |
218 | < label class = "col-md-3 text-right" > |
219 | <{$smarty.const._MA_PHONEBOOK_NOTE}> |
221 | < div class = "col-md-9" > |
229 | < div class = "text-right" > |
230 | < a href="<{$xoops_url}>/modules/phone_book/admin/main.php?op=delete_phone_book&sn=<{$sn}>" class="btn btn-danger"><{$smarty.const._TAD_DEL}></ a > |
231 | < a href="<{$xoops_url}>/modules/phone_book/admin/main.php?op=phone_book_form&sn=<{$sn}>" class="btn btn-warning"><{$smarty.const._TAD_EDIT}></ a > |
232 | < a href="<{$xoops_url}>/modules/phone_book/admin/main.php?op=phone_book_form" class="btn btn-primary"><{$smarty.const._TAD_ADD}></ a > |
233 | < a href="<{$action}>" class="btn btn-success"><{$smarty.const._TAD_HOME}></ a > |
239 | <{if $now_op=="list_phone_book"}> |
242 | < table class = "table table-striped table-hover" > |
248 | <{$smarty.const._MA_PHONEBOOK_NAME}> |
252 | <{$smarty.const._MA_PHONEBOOK_BIRTHDAY}> |
256 | <{$smarty.const._MA_PHONEBOOK_PHONE}> |
260 | <{$smarty.const._MA_PHONEBOOK_EMAIL}> |
264 | <{$smarty.const._MA_PHONEBOOK_ZIP}> |
268 | <{$smarty.const._MA_PHONEBOOK_COUNTY}> |
272 | <{$smarty.const._MA_PHONEBOOK_CITY}> |
276 | <{$smarty.const._MA_PHONEBOOK_ADDR}> |
279 | <{$smarty.const._TAD_FUNCTION}> |
285 | <{foreach from=$all_content item=data}> |
290 | < a href="<{$action}>?sn=<{$data.sn}>"><{$data.name}></ a > |
329 | < a href="javascript:delete_sn_func(<{$data.sn}>)" class="btn btn-xs btn-danger"><{$smarty.const._TAD_DEL}></ a > |
330 | < a href="<{$xoops_url}>/modules/phone_book/admin/main.php?op=phone_book_form&sn=<{$data.sn}>" class="btn btn-xs btn-warning"><{$smarty.const._TAD_EDIT}></ a > |
337 | < div class = "text-right" > |
338 | < a href="<{$xoops_url}>/modules/phone_book/admin/main.php?op=phone_book_form" class="btn btn-info"><{$smarty.const._TAD_ADD}></ a > |
343 | < div class = "jumbotron text-center" > |
344 | < a href="<{$xoops_url}>/modules/phone_book/admin/main.php?op=phone_book_form" class="btn btn-info"><{$smarty.const._TAD_ADD}></ a > |