#### 留言板標簽
適用范圍:全站任意地方均可使用
標簽作用:用于用戶提交留言和調取留言記錄
#### 1、留言提交表單
```
<form action="{pboot:msgaction}" ?method="post">
????聯系人:<input type="text" name="contacts" >
????手機:<input type="text" name="mobile" >
????內容:<input type="text" name="content" >
? 驗證碼:<input type="text" name="checkcode" ><img ? title="點擊刷新" ?src="{pboot:checkcode}" onclick="this.src='{pboot:checkcode}?'+Math.round(Math.random()*10);" />
????<button type="submit">提交</button>
</form>`
```
表單提交方式為post,表單中提交的字段名稱需要與后臺自定義表單中添加的字段一致,否則會導致提交失敗。
需要更多字段時請在后臺自定義表單中新增留言表單字段,然后再在前臺新增form字段.
標簽說明:
{pboot:msgaction} 為留言表單接收地址
{pboot:checkcode} 為驗證碼圖片地址
#### 2、留言記錄列表
```
{pboot:message num=*}
????<p>[message:contacts]</p>
????<p>[message:content]</p>
{/pboot:message}
```
調取的留言記錄默認執行分頁,使用內容列表的分頁代碼即可.
內容隱私,使用截取功能: \[message:mobile substr=1,3\]\*\*\*\*\[message:mobile substr=8\] ?輸出效果:187\*\*\*\*6563
控制參數:
num=\* 數量,非必填,為調取的留言分頁大小
page=\* 是否分頁1或0,非必填,用于關閉分頁
lg=\* 調取指定語言留言,非必填,設置all則所有語言,不添加該參數則默認為當前語言(V1.3.7+)
#### 3、留言記錄列表可用標簽
<table class="table table-bordered table-light"><tbody><tr class="firstRow"><td>[message:n]</td><td>序號從0開始</td></tr><tr><td>[message:i]</td><td>序號從1開始</td></tr><tr><td>[message:contacts]</td><td>聯系人</td></tr><tr><td>[message:mobile]</td><td>手機</td></tr><tr><td>[message:content]</td><td>內容</td></tr><tr><td>[message:recontent]</td><td>回復內容</td></tr><tr><td>[message:ip]</td><td>用戶IP</td></tr><tr><td>[message:os]</td><td>用戶操作系統</td></tr><tr><td>[message:bs]</td><td>用戶瀏覽器</td></tr><tr><td>[message:askdate]</td><td>留言時間</td></tr><tr><td>[message:replydate]</td><td>回復時間</td></tr><tr><td style="word-break: break-all;">[message:***]</td><td style="word-break: break-all;">自定義的其它字段</td></tr><tr><td style="word-break: break-all;">[message:nickname]</td><td style="word-break: break-all;">會員昵稱(V3.0+)<br></td></tr><tr><td style="word-break: break-all;">[message:username]</td><td style="word-break: break-all;">會員賬號(V3.0+)</td></tr><tr><td style="word-break: break-all;">[message:headpic]</td><td style="word-break: break-all;">會員頭像(V3.0+)</td></tr></tbody></table>