您好,登錄后才能下訂單哦!
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link class="include" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="http://static.naughtycolt.com/js/jquery.validate.min.js"></script>
<!-- 系統(tǒng)公告發(fā)布刪除查詢頁(yè)面-->
<link class="include" rel="stylesheet" type="text/css" />
<div class="row">
<div id = "gm_query_title">系統(tǒng)公告</div>
<div id = "gm_query">
<div class="col-md-6 col-md-offset-3">
<form class="form-inline" role="form" action="" method="post" id="send_form" >
{% csrf_token %}
<input type="text" class="form-control" name="radio" id="radio" placeholder="系統(tǒng)公告內(nèi)容" ><select class="form-control" name = "server_name" id="server_name">
{% if server_dict %}
{% for k in server_dict %}
<option>` k`</option>
{% endfor %}
{% endif %}
</select>
</form>
<!--按鈕寫在form外防止 form自動(dòng)提交 提交時(shí) submit() id 要寫 對(duì)應(yīng)表單的id -->
<button id="send">發(fā)布</button><button id="query">查詢</button>
</div>
<div id = "gm_query_list">
<table class="table table-condensed">
{% if radios %}
<th class="success" >ID</th>
<th class="warning" >`show_server_name`</th>
{% for r in radios %}
<tr>
<td class="success" >` forloop`.`counter `</td>
<td class="warning" >` r `</td>
</tr>
{% endfor %}
{% endif %}
</table>
</div>
<!--彈出確認(rèn)窗口-->
<div id="radio_confirm" title="系統(tǒng)公告">
<table class="table table-condensed">
<tr>
<td class="info" >服務(wù)器名</td>
<td class="danger">操作</td>
<td class="warning">內(nèi)容</td>
</tr>
<tr>
<td id= "td_server" class="success" ></td>
<td id="td_op" class="danger"></td>
<td id="td_content" class="warning"></td>
</tr>
</table>
</div>
</div>
<script>
$( "#send,#query" ).button({ icons: { primary: "ui-icon-search"} });
$( "#radio_confirm" ).dialog({
autoOpen: false,
show: {
effect: "blind",
duration: 1000
},
hide: {
effect: "explode",
duration: 1000
},
// height:200,
modal: true,
buttons: {
"確定": function() {
$("#radio_confirm").dialog("close");
$('#send_form').submit();
},
"取消": function() {
$("#radio_confirm").dialog("close");
$("#send_form")[0].reset();
}
}
});
$( "#send" ).click(function() {
$("#send_form").validate({
rules: {
radio: "required"
},
messages: {
radio: "公告內(nèi)容不能為空"
}
});
$("#td_op").html("發(fā)布");
$("#td_server").html($("#server_name").val());
$("#td_content").html($("#radio").val());
$("#radio_confirm").dialog( "open" );
});
$( "#query" ).click(function() {
$("#send_form").submit();
});
</script>
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。