Test ip direct

This commit is contained in:
Bernie Chiu 2013-09-27 16:30:36 +08:00
parent 5432238816
commit 2777b92589
1 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
<script type="text/javascript"> <script type="text/javascript">
var local_host = "<%= request.ip %>:<%= request.port %>"; var local_host = "<%= request.host %>:<%= request.port %>";
function hide_current_host_name(localhost) { function hide_current_host_name(localhost) {
$('input[type=checkbox]').each(function() { $('input[type=checkbox]').each(function() {
@ -80,9 +80,9 @@ $(document).ready(function() {
<tr> <tr>
<td colspan="5" class="dept_options"> <td colspan="5" class="dept_options">
<div class="dept_options"> <div class="dept_options">
<%= check_box("school", "depts", {:multiple => true}, "118.163.60.152:14180", nil) %><%= label_tag("118.163.60.152:14180", "測試站14180") %> <%= check_box("school", "depts", {:multiple => true}, "<%= request.host %>:14180", nil) %><%= label_tag("<%= request.host %>:14180", "測試站14180") %>
<%= check_box("school", "depts", {:multiple => true}, "118.163.60.152:14280", nil) %><%= label_tag("118.163.60.152:14280", "測試站14280") %> <%= check_box("school", "depts", {:multiple => true}, "<%= request.host %>:14280", nil) %><%= label_tag("<%= request.host %>:14280", "測試站14280") %>
<%= check_box("school", "depts", {:multiple => true}, "總務長室暨總務處秘書室", nil) %><%= label_tag(:dep1, "總務長室暨總務處秘書室") %> <%= check_box("school", "depts", {:multiple => true}, "", nil) %><%= label_tag(:dep1, "總務長室暨總務處秘書室") %>
<%= check_box("school", "depts", {:multiple => true}, "文書組", nil) %><%= label_tag(:dep2, "文書組") %> <%= check_box("school", "depts", {:multiple => true}, "文書組", nil) %><%= label_tag(:dep2, "文書組") %>
<%= check_box("school", "depts", {:multiple => true}, "事務組", nil) %><%= label_tag(:dep3, "事務組") %> <%= check_box("school", "depts", {:multiple => true}, "事務組", nil) %><%= label_tag(:dep3, "事務組") %>
<%= check_box("school", "depts", {:multiple => true}, "保管組", nil) %><%= label_tag(:dep4, "保管組") %> <%= check_box("school", "depts", {:multiple => true}, "保管組", nil) %><%= label_tag(:dep4, "保管組") %>