1041 XOOPS模組開發
<{$toolbar}>
<{if $op=="show_my_page"}>
共 <{$total}> 篇文章
<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-danger">退稿</span>
<{elseif $page.page_status=='1'}>
<span class="label label-success">採用</span>
<{else}>
<span class="label label-dafault">待審核</span>
<{/if}>
<a href="index.php?page_sn=<{$page.page_sn}>"><{$page.page_title}></a>
</li>
<{/foreach}>
</ul>
<{$bar}>
<a href="post.php?op=edit_form" class="btn btn-primary pull-right">我要投稿</a>
<{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" role="form">
<div class="form-group">
<label class="col-md-2 control-label" for="page_tag">選擇投稿單元</label>
<div class="col-md-10">
<select name="page_tag" id="page_tag" class="form-control">
<option disabled selected style="display:no-ne;">選擇單元</option>
<option value="小說">小說單元</option>
<option value="散文">散文單元</option>
<option value="笑話">笑話單元</option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label" for="page_title">文章標題</label>
<div class="col-md-10">
<input type="text" name="page_title" id="page_title" placeholder="請輸入文章標題" class="form-control">
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label" for="page_content">文章內容</label>
<div class="col-md-10">
<{$editor}>
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label"></label>
<div class="col-md-10 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-lg">儲存</button>
</div>
</div>
</form>
<{else}>
<div class="well">
目前不開放投稿!
</div>
<{/if}>
<{/if}>