線上書籍

Home

1041 XOOPS模組開發

<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> <h1>輸入表單</h1> <{$ebook_form}> <{if $all_data}> <table class="table table-striped table-bordered table-hover"> <tr> <th>刊物流水號</th> <th>刊物主題</th> <th>投稿截止日</th> <th><{$smarty.const._MA_TADEBOOK_PUBLIC_DATE}></th> <th>功能</th> </tr> <{foreach from=$all_data item=ebook}> <tr> <td><{$ebook.ebook_sn}></td> <td><{$ebook.ebook_title}></td> <td><{$ebook.ebook_post_date}></td> <td><{$ebook.ebook_publish_date}></td> <td> <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> </td> </tr> <{/foreach}> </table> <{/if}> </div>