topicSetOrder.html 1.93 KB
<!DOCTYPE html>
<div id="tt" class="easyui-layout" fit="true" style="overflow-y: scroll">
    <form name="setOrderForm" id="setOrderForm" 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>
                        <label>全部排序</label> <br>
                        <input type="text" min=0 id="topicOrder" name="topicOrder" class="easyui-numberbox" data-options="min:0,precision:0" style="width: 70%;" /><br>
                    </td>
                    <td>
                        <input type="checkbox"  id = "visibleOrder"/>全部用户可见
                    </td>


                </tr>
                <tr style="height: 60px">
                    <td>
                        <label>发布排序</label> <br>
                        <input type="text" min=0 id="publishOrder" name="topicOrder" class="easyui-numberbox" data-options="min:0,precision:0" style="width: 70%;" /><br>
                        <span style="color:red">说明:是否可见由上下架状态控制</span>
                    </td>
                </tr>
            </table>
        </div>
    </form>

</div>


<script>

    $(function () {
        $("#setOrderForm #topicOrder").textbox({
            required: false,
            prompt: "  填写序号,且为正整数"
        });

        $("#setOrderForm #publishOrder").textbox({
            required: false,
            prompt: "  填写序号,且为正整数"
        });

        var data = paramObject.mkData;
        $("#topicOrder").textbox("setValue", data.topicOrder);
        $("#publishOrder").textbox("setValue", data.publishOrder);
        if(data.visibleOrder == '1'){
            $("#visibleOrder").attr("checked",true);
        }else{
            $("#visibleOrder").attr("checked",false);
        }

    });


</script>

</html>