12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- {include file="public/header" /}
- <div class="page">
- <div class="fixed-bar">
- <div class="item-title">
- <div class="subject">
- <h3>{$Think.lang.wechat_bind_list}</h3>
- </div>
- </div>
- </div>
- <div class="ncap-form-default">
- <form method="post" id="m_form" enctype="multipart/form-data">
- <dl>
- <dt>{$Think.lang.message_type}</dt>
- <dd>
- <input type="radio" name="type" value="text" onclick="shownews(2)" title="{$Think.lang.message_type_text}" checked>{$Think.lang.message_type_text}
- <input type="radio" name="type" value="news" onclick="shownews(1)" title="{$Think.lang.message_type_news}" >{$Think.lang.message_type_news}
- </dd>
- </dl>
- <div id="menu1">
- <dl>
- <dt><span class="error">*</span> {$Think.lang.k_value}</dt>
- <dd><textarea name="text" id="text" placeholder="{$Think.lang.k_value}"></textarea></dd>
- </dl>
- </div>
- <div id="menu2" style="display: none">
- <!-- <dl>
- <dt><label class="layui-form-label" style="color: #d15b47">{$Think.lang.message_type_news}:</label></dt>
- <dd>
- <button class="btn btn-sm btn-info" onclick="" type="button"><i class="iconfont"></i>{$Think.lang.message_type_news_add}</button>
- </dd>
- </dl>-->
- <dl>
- <dt>{$Think.lang.wechat_title}</dt>
- <dd>
- <input type="text" name="title" id="Title" style="width: 300px">
- </dd>
- </dl>
- <dl>
- <dt>{$Think.lang.wechat_digest}</dt>
- <dd>
- <input type="text" name="description" id="Description" style="width: 300px">
- </dd>
- </dl>
- <dl>
- <dt>{$Think.lang.wechat_file}</dt>
- <dd>
- <input type="file" name="s_pic">
- </dd>
- </dl>
- <dl>
- <dt>{$Think.lang.wechat_content_source_url}</dt>
- <dd>
- <input type="text" name="url" id="Url" style="width: 300px">
- </dd>
- </dl>
- </div>
- <dl>
- <dt></dt>
- <dd><input class="btn" type="submit" value="{$Think.lang.ds_submit}"/></dd>
- </dl>
- </form>
- </div>
- </div>
- <script>
- $(document).ready(function(){
- $('#m_form').validate({
- errorPlacement: function (error, element) {
- },
- rules : {
- text : {
- required : true,
- }
- }
- });
- });
- function shownews(t){
- if (t == 2) {
- document.getElementById('menu1').style.display = "";
- document.getElementById('menu2').style.display = "none";
- }else{
- document.getElementById('menu1').style.display = "none";
- document.getElementById('menu2').style.display = "";
- }
- }
- </script>
|