線上書籍

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> <{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>