3-4
/templates/phone_book_adm_cate_b3.html
001 | < div class = "container-fluid" > |
004 | <{if $now_op=="phone_book_cate_form"}> |
006 | < div class = "container" > |
008 | < form action="<{$action}>" method="post" id="myForm" enctype="multipart/form-data" class="form-horizontal" role="form"> |
011 | < div class = "form-group" > |
012 | < label class = "col-md-2 control-label" > |
013 | <{$smarty.const._MA_PHONEBOOK_CATE_TITLE}> |
015 | < div class = "col-md-5" > |
016 | < input type = "text" name = "cate_title" id = "cate_title" class = "form-control" value="<{$cate_title}>" placeholder="<{$smarty.const._MA_PHONEBOOK_CATE_TITLE}>"> |
021 | < div class = "form-group" > |
022 | < label class = "col-md-2 control-label" > |
023 | <{$smarty.const._MA_PHONEBOOK_CATE_SORT}> |
025 | < div class = "col-md-2" > |
026 | < input type = "text" name = "cate_sort" id = "cate_sort" class = "form-control " value="<{$cate_sort}>" placeholder="<{$smarty.const._MA_PHONEBOOK_CATE_SORT}>"> |
031 | < div class = "form-group" > |
032 | < label class = "col-md-2 control-label" > |
033 | <{$smarty.const._MA_PHONEBOOK_CATE_ENABLE}> |
035 | < div class = "col-md-10" > |
037 | < label class = "radio-inline" > |
038 | < input type = "radio" name = "cate_enable" id = "cate_enable_1" value = "1" <{if $cate_enable == "1"}>checked="checked"<{/if}>><{$smarty.const._YES}> |
040 | < label class = "radio-inline" > |
041 | < input type = "radio" name = "cate_enable" id = "cate_enable_0" value = "0" <{if $cate_enable == "0"}>checked="checked"<{/if}>><{$smarty.const._NO}> |
046 | < div class = "text-center" > |
049 | < input type = 'hidden' name = "cate_sn" value="<{$cate_sn}>"> |
050 | < input type = "hidden" name = "op" value="<{$next_op}>"> |
051 | < button type = "submit" class = "btn btn-primary" ><{$smarty.const._TAD_SAVE}></ button > |
060 | <{if $now_op=="list_phone_book_cate"}> |
062 | < script type = "text/javascript" > |
063 | $(document).ready(function(){ |
064 | $('#sort').sortable({ opacity: 0.6, cursor: 'move', update: function() { |
065 | var order = $(this).sortable('serialize'); |
066 | $.post('save_sort.php', order, function(theResponse){ |
067 | //$('#save_msg').html(theResponse); |
068 | swal("Good job!", theResponse); |
077 | < div id = "save_msg" ></ div > |
078 | < table class = "table table-striped table-hover" > |
083 | <{$smarty.const._MA_PHONEBOOK_CATE_TITLE}> |
087 | <{$smarty.const._MA_PHONEBOOK_CATE_ENABLE}> |
090 | <{$smarty.const._TAD_FUNCTION}> |
096 | <{foreach from=$all_content item=data}> |
097 | < tr id="cate_sn_<{$data.cate_sn}>"> |
100 | < a href="<{$action}>?cate_sn=<{$data.cate_sn}>"><{$data.cate_title}></ a > |
105 | <{$data.cate_enable}> |
109 | < a href="<{$xoops_url}>/modules/phone_book/admin/cate.php?op=delete_phone_book_cate&cate_sn=<{$data.cate_sn}>" class="btn btn-xs btn-danger"><{$smarty.const._TAD_DEL}></ a > |
110 | < a href="<{$xoops_url}>/modules/phone_book/admin/cate.php?op=phone_book_cate_form&cate_sn=<{$data.cate_sn}>" class="btn btn-xs btn-warning"><{$smarty.const._TAD_EDIT}></ a > |
111 | < img src="<{$xoops_url}>/modules/tadtools/treeTable/images/updown_s.png" style="cursor: s-resize;margin:0px 4px;" alt="<{$smarty.const._TAD_SORTABLE}>" title="<{$smarty.const._TAD_SORTABLE}>"> |
118 | < div class = "text-right" > |
119 | < a href="<{$xoops_url}>/modules/phone_book/admin/cate.php?op=phone_book_cate_form" class="btn btn-info"><{$smarty.const._TAD_ADD}></ a > |
124 | < div class = "jumbotron text-center" > |
125 | < a href="<{$xoops_url}>/modules/phone_book/admin/cate.php?op=phone_book_cate_form" class="btn btn-info"><{$smarty.const._TAD_ADD}></ a > |