:::

3-4 /templates/phone_book_adm_cate_b3.html

001<div class="container-fluid">
002 
003  <!--顯示表單-->
004  <{if $now_op=="phone_book_cate_form"}>
005 
006    <div class="container">
007 
008      <form action="<{$action}>" method="post" id="myForm" enctype="multipart/form-data" class="form-horizontal" role="form">
009 
010        <!--分類標題-->
011        <div class="form-group">
012          <label class="col-md-2 control-label">
013            <{$smarty.const._MA_PHONEBOOK_CATE_TITLE}>
014          </label>
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}>">
017          </div>
018        </div>
019 
020        <!--分類排序-->
021        <div class="form-group">
022          <label class="col-md-2 control-label">
023            <{$smarty.const._MA_PHONEBOOK_CATE_SORT}>
024          </label>
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}>">
027          </div>
028        </div>
029 
030        <!--狀態-->
031        <div class="form-group">
032          <label class="col-md-2 control-label">
033            <{$smarty.const._MA_PHONEBOOK_CATE_ENABLE}>
034          </label>
035          <div class="col-md-10">
036 
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}>
039              </label>
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}>
042              </label>
043          </div>
044        </div>
045 
046        <div class="text-center">
047 
048          <!--分類編號-->
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>
052        </div>
053      </form>
054    </div>
055  <{/if}>
056 
057 
058  <!--列出所有資料-->
059 
060  <{if $now_op=="list_phone_book_cate"}>
061 
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);
069            });
070        }
071        });
072    });
073  </script>
074 
075 
076    <{if $all_content}>
077      <div id="save_msg"></div>
078      <table class="table table-striped table-hover">
079        <thead>
080          <tr>
081            <th>
082              <!--分類標題-->
083              <{$smarty.const._MA_PHONEBOOK_CATE_TITLE}>
084            </th>
085            <th>
086              <!--狀態-->
087              <{$smarty.const._MA_PHONEBOOK_CATE_ENABLE}>
088            </th>
089            <th>
090              <{$smarty.const._TAD_FUNCTION}>
091            </th>
092          </tr>
093        </thead>
094 
095        <tbody id="sort">
096          <{foreach from=$all_content item=data}>
097            <tr id="cate_sn_<{$data.cate_sn}>">
098              <td>
099                <!--分類標題-->
100                <a href="<{$action}>?cate_sn=<{$data.cate_sn}>"><{$data.cate_title}></a>
101              </td>
102 
103              <td>
104                <!--狀態-->
105                <{$data.cate_enable}>
106              </td>
107 
108              <td>
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}>">
112              </td>
113            </tr>
114          <{/foreach}>
115        </tbody>
116      </table>
117 
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>
120      </div>
121 
122      <{$bar}>
123    <{else}>
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>
126      </div>
127    <{/if}>
128  <{/if}>
129 
130</div>

 


:::

搜尋

QR Code 區塊

https%3A%2F%2Ftad0616.cp22.secserverpros.com%2Fmodules%2Ftad_book3%2Fpage.php%3Ftbdsn%3D1224%26tbsn%3D39

書籍目錄

展開 | 闔起

線上使用者

21人線上 (5人在瀏覽線上書籍)

會員: 0

訪客: 21

更多…