線上書籍

Home

1041 XOOPS模組開發

<{$toolbar}> <{if $op=="show_my_page"}> <ul> <{foreach from=$all_page item=page}> <li> <span><{$page.ebook_sn}></span> <span class="label label-info"><{$page.page_tag}></span> <{if $page.page_status=='0'}> <span class="label label-important">退稿</span> <{elseif $page.page_status=='1'}> <span class="label label-success">採用</span> <{else}> <span class="label">待審核</span> <{/if}> <a href="index.php?page_sn=<{$page.page_sn}>"><{$page.page_title}></a> </li> <{/foreach}> </ul> <{else}> <{if $ebook.ebook_title}> <h1>編輯「<{$ebook.ebook_title}>」文章</h1> <div class="alert alert-info"> 「<{$ebook.ebook_title}>」 投稿截止時間:<{$ebook.ebook_post_date}> 本期出刊時間:<{$ebook.ebook_publish_date}> </div> <form action="post.php" method="post" id="my_form" class="form-horizontal"> <div class="control-group"> <label class="control-label" for="page_tag">選擇投稿單元</label> <div class="controls"> <select name="page_tag" id="page_tag"> <option disabled selected style="display:no-ne;">選擇單元</option> <option value="小說">小說單元</option> <option value="散文">散文單元</option> <option value="笑話">笑話單元</option> </select> </div> </div> <div class="control-group"> <label class="control-label" for="page_title">文章標題</label> <div class="controls"> <input type="text" name="page_title" id="page_title" placeholder="請輸入文章標題" class="span12"> </div> </div> <div class="control-group"> <label class="control-label" for="page_content">文章內容</label> <div class="controls"> <{$editor}> </div> </div> <div class="control-group"> <label class="control-label"></label> <div class="controls text-center"> <{$HiddenToken}> <input type="hidden" name="op" value="insert_page"> <input type="hidden" name="ebook_sn" value="<{$ebook.ebook_sn}>"> <button type="submit" class="btn btn-primary btn-large">儲存</button> </div> </div> </form> <{else}> <div class="well"> 目前不開放投稿! </div> <{/if}> <{/if}>