:::

8-5 /templates/tad_ebook_adm_main.html

<div class="container-fluid">

  <script>
  function del_ebook_func(sn , title){
   var sure = window.confirm('確定要刪除編號 ' + title + ' 的資料?');
   if (!sure) return;
   location.href="main.php?op=del_ebook&ebook_sn=" + sn;
  }
  </script>


  <{if $all_data}>
    <{foreach from=$all_data item=ebook}>
      <div style="width: 160px; height:360px; float: left; margin:0px 10px; ">
        <{if $ebook.ebook_pic}>
          <div class="text-center" style="width:150px;height:200px;">
            <a href="<{$xoops_url}>/modules/tad_ebook/index.php?ebook_sn=<{$ebook.ebook_sn}>"><img src="<{$ebook.ebook_pic}>" alt="<{$ebook.ebook_title}>" title="<{$ebook.ebook_title}>"></a>
          </div>
        <{else}>
          <div class="text-center" style="width:150px;height:200px; background-color: #cfcfcf;">
            <a href="<{$xoops_url}>/modules/tad_ebook/index.php?ebook_sn=<{$ebook.ebook_sn}>">尚無圖片</a>
          </div>
        <{/if}>

        <div class="text-center">
          <a href="<{$xoops_url}>/modules/tad_ebook/index.php?ebook_sn=<{$ebook.ebook_sn}>"><{$ebook.ebook_title}></a>
        </div>
        <div class="text-center">截稿:<{$ebook.ebook_post_date}></div>
        <div class="text-center">出版:<{$ebook.ebook_publish_date}></div>
        <div class="text-center">
          <a href="javascript:del_ebook_func(<{$ebook.ebook_sn}>,'<{$ebook.del_title}>')" class="btn btn-danger btn-mini">刪除</a>
          <a href="main.php?op=edit_ebook&ebook_sn=<{$ebook.ebook_sn}>" class="btn btn-warning btn-mini">編輯</a>
        </div>
      </div>
    <{/foreach}>

  <{/if}>

  <div style="clear:both;"></div>

  <{$ebook_form}>

</div>

 


:::

搜尋

QR Code 區塊

https%3A%2F%2Ftad0616.net%2Fmodules%2Ftad_book3%2Fpage.php%3Ftbsn%3D37%26tbdsn%3D1176

書籍目錄

展開 | 闔起

線上使用者

58人線上 (9人在瀏覽線上書籍)

會員: 0

訪客: 58

更多…