Commit 2592d7e4 by 丁伟

1、解决部分bug

parent 7768c160
......@@ -169,7 +169,6 @@ public class UploadFileController extends BaseController {
}
} catch (FileUploadException e) {
e.printStackTrace();
return "上传文件过大,不要超过1M";
} catch (IOException e) {
e.printStackTrace();
} catch (Exception e) {
......
......@@ -122,7 +122,7 @@
</table>
<!-- datagrid工具栏 -->
<div id="toolbar">
<security:url uri="/admin/business/registerManage/add"><a class="easyui-linkbutton" iconCls="icon-edit_add" plain="true" onclick="openAddWin()"><span >新增</span></a></security:url>
<%-- <security:url uri="/admin/business/registerManage/add"><a class="easyui-linkbutton" iconCls="icon-edit_add" plain="true" onclick="openAddWin()"><span >新增</span></a></security:url>--%>
<security:url uri="/admin/business/registerManage/update"><a class="easyui-linkbutton" iconCls="icon-pencil" plain="true" onclick="openEditWin()"><span >修改</span></a></security:url>
<security:url uri="/admin/business/registerManage/delete"><a class="easyui-linkbutton" iconCls="icon-remove" plain="true" onclick="deleteNews()"><span >删除</span></a></security:url>
<security:url uri="/admin/business/registerManage/export"><a class="easyui-linkbutton" iconCls="icon-export" plain="true" onclick="openExportWin()"><span >导出</span></a></security:url>
......@@ -813,12 +813,6 @@
<td align="left" >
<textarea id="remarkId" name="remark" rows="7"></textarea>
</td>
<td align="right"><span>证书照:</span></td>
<td align="left" >
<img id="img_1" class="certificatePhoto" style="width:130px;height:100px">
<img id="img_2" class="certificatePhoto" style="width:130px;height:100px">
<img id="img_3" class="certificatePhoto" style="width:130px;height:100px">
</td>
</tr>
<tr>
<td colspan="4">&nbsp;</td>
......
......@@ -57,7 +57,7 @@
<div style="float:left; width:157px">&nbsp;</div><div style="font-weight:bold;color:red;" class="message"></div>
</td></tr>
<tr><td></td><td colspan="1" align="left"><div >&nbsp;</div>
<input type="button" class="index_login fl button" id="submit" name=btnLogin onclick="javascript:;" value="登"/>
<input type="button" class="index_login fl button" id="submit" name=btnLogin onclick="javascript:;" value="登"/>
<input type="button" onclick="javascript:location.href='/training/regp'" class="index_login fl button" id=btnReg name=btnReg value="注册" />
</td></tr>
</table>
......
......@@ -20,7 +20,7 @@
<div class="pp"></div>
<table width="100%" align="center" border="0" cellspacing="0" cellpadding="0">
<tr>
<td background="/resource/front/img/borderc_04.gif"></td>
<%-- <td background="/resource/front/img/borderc_04.gif"></td>--%>
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
......
......@@ -41,8 +41,8 @@ $(function() {
bodyWidth = document.body.clientWidth;
bodyHeight = document.documentElement.clientHeight;
addWinWidth = (bodyWidth/100)*80;
addWinHeight = (addWinWidth/16)*9;
addWinWidth = (bodyWidth/5)*4;
addWinHeight = addWinWidth;
$("#addNewsWinId").window('close');
$("#exportWindow").window('close');
......@@ -101,6 +101,7 @@ function initDataTable(){
striped : true,
pagination : true,
rownumbers : true,
singleSelect : true,
pageList : [15,20,30,40,50],
autoRowHeight : false,
fitColumns : true,
......@@ -181,13 +182,13 @@ function openAddWin(){
$('#newsForm')[0].reset();
operation = "add";
$("#main_area").height(addWinHeight);
$("#main_area").height(addWinHeight/8);
$("#addNewsWinId").window({
title : '新增期数信息',
width : addWinWidth/2,
height : addWinHeight/3,
left : (dataGridWidth - addWinWidth)/2,
top : (bodyHeight - addWinHeight)/2,
height : addWinHeight/5,
left : (dataGridWidth - addWinWidth/2)/2,
top : (bodyHeight - addWinHeight/5)/2,
closable : true, // 否显示关闭按钮
collapsible : false, // 是否显示折叠按钮
minimizable : false, // 是否显示最小化按钮
......@@ -237,14 +238,14 @@ function openEditWin(){
$("#newsForm").form('load', data);
//$('#eventDateId').datebox('setValue',timestampformat(data.eventDate));
formatDateField("#date1",data.time);
$("#main_area").height((bodyHeight/5)*4);
$("#main_area").height(addWinHeight/8);
});
$("#addNewsWinId").window({
title : '修改报名信息',
width : addWinWidth/2,
height : addWinHeight/3,
left : (dataGridWidth - addWinWidth)/2,
top : (bodyHeight - addWinHeight)/2,
height : addWinHeight/5,
left : (dataGridWidth - addWinWidth/2)/2,
top : (bodyHeight - addWinHeight/5)/2,
closable : true, // 否显示关闭按钮
collapsible : false, // 是否显示折叠按钮
minimizable : false, // 是否显示最小化按钮
......
......@@ -85,6 +85,13 @@ $(function() {
initInputWidth();
initExportWindow();
initShowPhoto();
$("#showPhotoWinId").window({
onBeforeClose:function (){
$("#showPhotoId").attr('src','');
}
})
$("#showPhotoWinId").window('close');
// $.each(subjectArray,function(n,v){
......@@ -99,6 +106,7 @@ $(function() {
* 初始化查看图片窗口
*/
function initShowPhoto(){
$("#showPhotoWinId").window({
title : '查看图片',
width : addWinWidth/1.5,
......
......@@ -25,11 +25,11 @@ function ajaxFileUpload(target) {
data = data.substring(data.indexOf(">") + 1, data.lastIndexOf("<"));
data = eval("(" + data + ")");
if (status) {
if (null != data.fileSavePath) {
imagePath = data.fileSavePath;
$("img[data-target='"+target+"']").attr("src", '/base/upload/show?path=' + imagePath);
} else {
alert("图片上传失败,请重新上传!");
alert("图片大小超过1M,请重新上传!");
}
}
},
......
*{font-size:12px; font-family:Tahoma,Verdana,΢ź,}
*{font-size:12px; font-family:Tahoma,Verdana,΢���ź�,������}
body{background:#D2E0F2; }
a{ color:Black; text-decoration:none;}
a:hover{ color:Red; text-decoration:underline;}
.textbox03 {border: #878787 1px solid;padding: 4px 3px;font:Verdana, Geneva, sans-serif,;line-height: 14px; background-color: #fff; height: auto; font-size: 14px; font-weight: bold; width: 190px; }
.textbox03 {border: #878787 1px solid;padding: 4px 3px;font:Verdana, Geneva, sans-serif,����;line-height: 14px; background-color: #fff; height: auto; font-size: 14px; font-weight: bold; width: 190px; }
.txt01{font:Verdana, Geneva, sans-serif,;padding:3px 2px 2px 2px; border-width:1px; border-color:#ddd; color:#000;}
.txt {border: #878787 1px solid;padding: 4px 3px;font:Verdana, Geneva, sans-serif,;line-height: 14px; background-color: #fff; height: auto; font-size: 14px;}
.txt01{font:Verdana, Geneva, sans-serif,����;padding:3px 2px 2px 2px; border-width:1px; border-color:#ddd; color:#000;}
.txt {border: #878787 1px solid;padding: 4px 3px;font:Verdana, Geneva, sans-serif,����;line-height: 14px; background-color: #fff; height: auto; font-size: 14px;}
.footer{text-align:center;color:#15428B; margin:0px; padding:0px;line-height:23px; font-weight:bold;}
.head a{color:White;text-decoration:underline;}
......@@ -40,7 +40,7 @@ a:hover{ color:Red; text-decoration:underline;}
.icon-collapse{ background:url('/images/coll3.gif') no-repeat;}
.icon-class{background-position:-200px -40px;)}
.icon-page{background-position:0 -60px;)}
#topHurdleID{background: url("/project/resource/home/images/layout-browser-hd-bg.gif") #7f99be repeat-x center 50%;overflow: hidden; height: 30px; line-height: 20px; color: #fff; font-family: Verdana, ΢ź, }
#topHurdleID{background: url("/resource/home/images/layout-browser-hd-bg.gif") #7f99be repeat-x center 50%;overflow: hidden; height: 30px; line-height: 20px; color: #fff; font-family: Verdana, ΢���ź�, ����}
.button_area_absolute {
position: absolute;
......
......@@ -2,10 +2,10 @@
body{background:#D2E0F2; margin:0;height:100%}
a{ color:Black; text-decoration:none;}
a:hover{ color:Red; text-decoration:underline;}
.textbox03 {border: #878787 1px solid;padding: 4px 3px;font:Verdana, Geneva, sans-serif,宋体;line-height: 14px; background-color: #fff; height: auto; font-size: 14px; font-weight: bold; width: 190px; }
.textbox03 {border: #878787 1px solid;padding: 4px 3px;font:Verdana, Geneva, sans-serif,����;line-height: 14px; background-color: #fff; height: auto; font-size: 14px; font-weight: bold; width: 190px; }
.txt01{font:Verdana, Geneva, sans-serif,宋体;padding:3px 2px 2px 2px; border-width:1px; border-color:#ddd; color:#000;}
.txt {border: #878787 1px solid;padding: 4px 3px;font:Verdana, Geneva, sans-serif,宋体;line-height: 14px; background-color: #fff; height: auto; font-size: 14px;}
.txt01{font:Verdana, Geneva, sans-serif,����;padding:3px 2px 2px 2px; border-width:1px; border-color:#ddd; color:#000;}
.txt {border: #878787 1px solid;padding: 4px 3px;font:Verdana, Geneva, sans-serif,����;line-height: 14px; background-color: #fff; height: auto; font-size: 14px;}
.footer{text-align:center;color:#15428B; margin:0px; padding:0px;line-height:23px; font-weight:bold;}
.head a{color:White;text-decoration:underline;}
......@@ -21,7 +21,7 @@ a:hover{ color:Red; text-decoration:underline;}
/**
* 左侧像素改变是图片左右移动,右侧像素改变是图像上下移动,每次移动单位是'+'或'-'20
* ������ظı���ͼƬ�����ƶ����Ҳ����ظı���ͼ�������ƶ���ÿ���ƶ���λ��'+'��'-'20
*/
.icon{ background:url(../../home/images/tabicons.png) no-repeat;width:18px; line-height:18px; display:inline-block;}
.icon-sys{ background-position:0px -200px;}
......@@ -44,7 +44,7 @@ a:hover{ color:Red; text-decoration:underline;}
.icon-collapse{ background:url('/images/coll3.gif') no-repeat;}
.icon-class{background-position:-200px -40px;)}
.icon-page{background-position:0 -60px;)}
#topHurdleID{background: url("/project/resource/home/images/layout-browser-hd-bg.gif") #7f99be repeat-x center 50%;overflow: hidden; height: 30px; line-height: 20px; color: #fff; font-family: Verdana, 寰蒋闆呴粦, 榛戜綋}
#topHurdleID{background: url("/resource/home/images/layout-browser-hd-bg.gif") #7f99be repeat-x center 50%;overflow: hidden; height: 30px; line-height: 20px; color: #fff; font-family: Verdana, 微软雅黑, 黑体}
.mult-selections{
......
......@@ -40,4 +40,4 @@ a:hover{ color:Red; text-decoration:underline;}
.icon-collapse{ background:url('/images/coll3.gif') no-repeat;}
.icon-class{background-position:-200px -40px;)}
.icon-page{background-position:0 -60px;)}
#topHurdleID{background: url("/project/resource/home/images/layout-browser-hd-bg.gif") #7f99be repeat-x center 50%;overflow: hidden; height: 30px; line-height: 20px; color: #fff; font-family: Verdana, 微软雅黑, 黑体}
#topHurdleID{background: url("/resource/home/images/layout-browser-hd-bg.gif") #7f99be repeat-x center 50%;overflow: hidden; height: 30px; line-height: 20px; color: #fff; font-family: Verdana, 微软雅黑, 黑体}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment