topicSetTop.html 1.27 KB
<!DOCTYPE html>
<div id="tt" class="easyui-layout" fit="true" style="overflow-y: scroll">
    <form name="setTopForm" id="setTopForm" method="post">
        <div style="margin-top: 20px;margin-left: 30px">
            <table border="0" style="width:95%;margin-top:5px;line-height:30px;" id="tab">
                <tr style="height: 60px">
                    <td>
                        <span style="color:red">*</span><label>内容ID</label> <br>
                        <input id="topArticleIds" name="topArticleIds" class="easyui-textbox" style="width: 500px;" /><br>
                        <span style="color:red">注:至多填写5个,设置的内容必须关联该话题</span>
                    </td>
                </tr>
            </table>
        </div>
    </form>

</div>


<script>

    $(function () {
        $("#setTopForm #topArticleIds").textbox({
            required: true,
            missingMessage: "内容ID不能为空",
            prompt: "  填写置顶的内容ID,且以半角逗号隔开"
        });

        var data = paramObject.mkData;
        if (data) {//编辑窗口
            $("#topArticleIds").textbox("setValue", data.topArticles);
        }else{
            $("#topArticleIds").textbox("setValue", "");
        }



    });


</script>

</html>