Skip to content

Commit 78b95eb

Browse files
committed
调整窗口大小,增加一些打印信息
1 parent ca569e3 commit 78b95eb

File tree

3 files changed

+23
-19
lines changed

3 files changed

+23
-19
lines changed

src/main/webapp/WEB-INF/views/home.jsp

+16-16
Original file line numberDiff line numberDiff line change
@@ -129,21 +129,21 @@
129129

130130
</div>
131131

132-
<div id="zkweb_add_cfg" class="easyui-window" title="添加配置信息" data-options="iconCls:'icon-add',modal:true,closed:true,maximizable:false" style="width:280px;height:170px;padding:10px;">
132+
<div id="zkweb_add_cfg" class="easyui-window" title="添加配置信息" data-options="iconCls:'icon-add',modal:true,closed:true,maximizable:false" style="width:500px;height:170px;padding:10px;">
133133

134134
<form id="zkweb_add_cfg_form" method="post" action="zkcfg/addZkCfg">
135-
<table>
135+
<table width="100%">
136136
<tr>
137-
<td>DESC:</td>
138-
<td><input name="desc" type="text"></input></td>
137+
<td width="100px">DESC:</td>
138+
<td ><input name="desc" type="text" style="width:100%"></input></td>
139139
</tr>
140140
<tr>
141-
<td>CONNECTSTR:</td>
142-
<td><input name="connectstr" type="text"></input></td>
141+
<td width="100px">CONNECTSTR:</td>
142+
<td ><input name="connectstr" type="text" style="width:100%"></input></td>
143143
</tr>
144144
<tr>
145-
<td>SESSIONTIMEOUT:</td>
146-
<td><input name="sessiontimeout" type="text"></input></td>
145+
<td width="100px">SESSIONTIMEOUT[ms]:</td>
146+
<td ><input name="sessiontimeout" type="text" style="width:100%"></input></td>
147147
</tr>
148148
<tr>
149149
<td>
@@ -158,22 +158,22 @@
158158

159159
</div>
160160

161-
<div id="zkweb_up_cfg" class="easyui-window" title="更新配置信息" data-options="iconCls:'icon-update',modal:true,closed:true,maximizable:false" style="width:280px;height:170px;padding:10px;">
161+
<div id="zkweb_up_cfg" class="easyui-window" title="更新配置信息" data-options="iconCls:'icon-update',modal:true,closed:true,maximizable:false" style="width:500px;height:170px;padding:10px;">
162162

163163
<form id="zkweb_up_cfg_form" method="post" action="zkcfg/updateZkCfg">
164164
<input type="hidden" name="id"/>
165-
<table>
165+
<table width="100%">
166166
<tr>
167-
<td>DESC:</td>
168-
<td><input name="desc" type="text"></input></td>
167+
<td width="100px">DESC:</td>
168+
<td><input name="desc" type="text" style="width:100%"></input></td>
169169
</tr>
170170
<tr>
171-
<td>CONNECTSTR:</td>
172-
<td><input name="connectstr" type="text"></input></td>
171+
<td width="100px">CONNECTSTR:</td>
172+
<td><input name="connectstr" type="text" style="width:100%"></input></td>
173173
</tr>
174174
<tr>
175-
<td>SESSIONTIMEOUT:</td>
176-
<td><input name="sessiontimeout" type="text"></input></td>
175+
<td width="100px">SESSIONTIMEOUT[ms]:</td>
176+
<td><input name="sessiontimeout" type="text" style="width:100%"></input></td>
177177
</tr>
178178
<tr>
179179
<td>

src/main/webapp/resources/zkweb-language.js

+6-3
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ var getLanguageFromCookie=function(language){
8383
var webLanguage = ['zh_CN', 'zh_TW', 'en'];
8484
if (getCookie(i18nCookiename)) {
8585
i18nLanguage = getCookie(i18nCookiename);
86+
console.log("i18nLanguage1 is "+i18nLanguage);
8687
} else {
8788
if(!language)
8889
language=i18nSettings.language;
@@ -93,9 +94,11 @@ var getLanguageFromCookie=function(language){
9394
var charSize = $.inArray(navLanguage, webLanguage);
9495
if (charSize > -1) {
9596
i18nLanguage = navLanguage;
97+
console.log("i18nLanguage2 is "+i18nLanguage);
9698
// 存到缓存中
9799
getCookie(i18nCookiename,navLanguage);
98100
};
101+
console.log("i18nLanguage3 is "+i18nLanguage);
99102
} else{
100103
console.log("not navigator,default is "+i18nLanguage);
101104

@@ -118,12 +121,12 @@ var setLanguage=function(node){
118121
language=node.value
119122
cookielanguage=getCookie(i18nCookiename);
120123
if (cookielanguage&&cookielanguage!=language) {
121-
console.log('cookielanguage='+cookielanguage+',newlanguage='+language)
124+
console.log('1.cookielanguage='+cookielanguage+',newlanguage='+language)
122125
getCookie(i18nCookiename,language);
123126
}else if (cookielanguage&&cookielanguage==language){
124-
console.log('cookielanguage='+cookielanguage+',newlanguage='+language)
127+
console.log('2.cookielanguage='+cookielanguage+',newlanguage='+language)
125128
}else{
126-
console.log('cookie['+i18nCookiename+']='+language)
129+
console.log('3.cookie['+i18nCookiename+']='+language)
127130
getCookie(i18nCookiename,language);
128131
}
129132
console.log('active cookie['+i18nCookiename+']='+getCookie(i18nCookiename))

src/main/webapp/resources/zkweb.js

+1
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ $(function(){
8484
});
8585
}
8686
function refreshConnectState(row){
87+
//return;
8788
$.post("zk/queryZKOk", {cacheId:row.ID},function(data){$('#connstaterefresh').html(data);});
8889
if($('#lastRefreshConn').val()){
8990
clearInterval($('#lastRefreshConn').val());

0 commit comments

Comments
 (0)