3-2
/templates/phone_book_index_b3.html
004 | <{if $now_op=="show_one_phone_book"}> |
008 | < h2 class = "text-center" id = "name" ><{$name}></ h2 > |
012 | < label class = "col-md-3 text-right" > |
013 | <{$smarty.const._MD_PHONEBOOK_CATE_SN}> |
015 | < div class = "col-md-9" id = "cate_sn" > |
022 | < label class = "col-md-3 text-right" > |
023 | <{$smarty.const._MD_PHONEBOOK_BIRTHDAY}> |
025 | < div class = "col-md-9" > |
032 | < label class = "col-md-3 text-right" > |
033 | <{$smarty.const._MD_PHONEBOOK_PHONE}> |
035 | < div class = "col-md-9" > |
042 | < label class = "col-md-3 text-right" > |
043 | <{$smarty.const._MD_PHONEBOOK_EMAIL}> |
045 | < div class = "col-md-9" > |
053 | < label class = "col-md-3 text-right" > |
054 | <{$smarty.const._MD_PHONEBOOK_ADDR}> |
056 | < div class = "col-md-9" > |
057 | <{$zip}><{$county}><{$city}><{$addr}> |
063 | < label class = "col-md-3 text-right" > |
064 | <{$smarty.const._MD_PHONEBOOK_NOTE}> |
066 | < div class = "col-md-9" > |
067 | < pre class = "well" id = "note" ><{$note}></ pre > |
071 | < div class = "text-right" > |
073 | < 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 > |
074 | < 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 > |
075 | < a href="<{$xoops_url}>/modules/phone_book/admin/main.php?op=phone_book_form" class="btn btn-primary"><{$smarty.const._TAD_ADD}></ a > |
077 | < a href="<{$action}>" class="btn btn-success"><{$smarty.const._TAD_HOME}></ a > |
082 | <{if $now_op=="list_phone_book"}> |
084 | < script type = "text/javascript" > |
086 | $(document).ready(function(){ |
088 | $( "#keyword" ).autocomplete({ |
089 | source: "get_name.php" |
092 | $("#search_bar").hide(); |
094 | // $("#open_bar").click(function(){ |
095 | // $("#search_bar").toggle('slow'); |
096 | // $("#open_bar").toggleClass("btn-danger"); |
099 | $("#open_bar").toggle(function() { |
100 | $("#open_bar").html("關閉搜尋").removeClass('btn-info').addClass('btn-danger'); |
101 | $("#search_bar").fadeIn("slow"); |
103 | $("#open_bar").html("開啟搜尋").removeClass('btn-danger').addClass('btn-info'); |
104 | $("#search_bar").fadeOut("slow"); |
107 | $("#cate_sn").change(function(){ |
108 | location.href = "index.php?cate_sn=" + $("#cate_sn").val() + "&city=" + $("#city").val(); |
111 | $("#county").change(function(){ |
112 | var county_val = $("#county").val(); |
113 | $.post("ajax.php", { "county": county_val} , |
115 | $("#city").html(data); |
120 | $("#city").change(function(){ |
121 | location.href = "index.php?cate_sn=" + $("#cate_sn").val() + "&city=" + $("#city").val(); |
127 | < form action = "index.php" > |
130 | < div class = "col-md-2" > |
131 | < button type = "button" id = "open_bar" class = "btn btn-info" >開啟搜尋</ button > |
134 | < div class = "col-md-10" > |
135 | < div class = "row" id = "search_bar" > |
137 | < div class = "col-md-3" > |
139 | < select name = "cate_sn" id = "cate_sn" class = "form-control" > |
140 | < option value = "" ></ option > |
141 | <{foreach from=$cate_arr item=cate}> |
142 | < option value="<{$cate.cate_sn}>" <{if $cate_sn==$cate.cate_sn}>selected<{/if}>><{$cate.cate_title}></ option > |
148 | < div class = "col-md-3" > |
150 | < select name = "county" id = "county" class = "form-control" > |
151 | < option value = "" >請選擇縣市</ option > |
152 | <{foreach from=$county_arr item=county}> |
153 | < option value="<{$county}>"><{$county}></ option > |
158 | < div class = "col-md-3" > |
160 | < select name = "city" id = "city" class = "form-control" > |
161 | < option value = "" >選擇鄉鎮市區</ option > |
166 | < div class = "col-md-3" > |
167 | < input type = "text" name = "keyword" id = "keyword" class = "form-control" placeholder = "請輸入關鍵字" > |
176 | < table id = "phone_table" class = "table table-striped table-hover" data-sorting = "true" data-filtering = "true" > |
181 | <{$smarty.const._MD_PHONEBOOK_NAME}> |
184 | < th data-breakpoints = "xs" > |
185 | <{$smarty.const._MD_PHONEBOOK_BIRTHDAY}> |
189 | <{$smarty.const._MD_PHONEBOOK_PHONE}> |
192 | < th data-breakpoints = "xs" > |
193 | <{$smarty.const._MD_PHONEBOOK_EMAIL}> |
196 | < th data-breakpoints = "xs sm md" > |
197 | <{$smarty.const._MD_PHONEBOOK_ADDR}> |
200 | < th data-breakpoints = "xs sm" > |
201 | <{$smarty.const._MD_PHONEBOOK_CATE_SN}> |
204 | < th data-breakpoints = "xs sm" ><{$smarty.const._TAD_FUNCTION}></ th > |
210 | <{foreach from=$all_content item=data}> |
215 | < a href="<{$action}>?sn=<{$data.sn}>"><{$data.name}></ a > |
251 | < a href="<{$xoops_url}>/modules/phone_book/admin/main.php?op=delete_phone_book&sn=<{$data.sn}>" class="btn btn-xs btn-danger"><{$smarty.const._TAD_DEL}></ a > |
252 | < 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 > |
262 | < div class = "text-right" > |
263 | < a href="<{$xoops_url}>/modules/phone_book/admin/main.php?op=phone_book_form" class="btn btn-info"><{$smarty.const._TAD_ADD}></ a > |
270 | < div class = "jumbotron text-center" > |
271 | < a href="<{$xoops_url}>/modules/phone_book/admin/main.php?op=phone_book_form" class="btn btn-info"><{$smarty.const._TAD_ADD}></ a > |