Commit 8450c0b4 by 周添尉

修改下载乱码

parent fe6cf87e
......@@ -298,21 +298,15 @@
.icon-ext-34_40{
background:url('../../../../images/icons/(34,40).png') no-repeat left center;
}
.icon-ext-11_10{
background:url('../../../../images/icons/(11,10).png') no-repeat left center;
.icon-ext-01_07{
background:url('../../../../images/icons/(01,07).png') no-repeat left center;
}
.icon-ext-02_25{
background:url('../../../../images/icons/(02,25).png') no-repeat left center;
.icon-ext-29_22{
background:url('../../../../images/icons/(29,22).png') no-repeat left center;
}
.icon-ext-04_14{
background:url('../../../../images/icons/(04,14).png') no-repeat left center;
.icon-ext-26_01{
background:url('../../../../images/icons/(26,01).png') no-repeat left center;
}
.icon-ext-10_34{
background:url('../../../../images/icons/(10,34).png') no-repeat left center;
}
.icon-ext-10_36{
background:url('../../../../images/icons/(10,36).png') no-repeat left center;
}
.icon-ext-13_12{
background:url('../../../../images/icons/(13,12).png') no-repeat left center;
.icon-ext-27_01{
background:url('../../../../images/icons/(27,01).png') no-repeat left center;
}
\ No newline at end of file
......@@ -11,13 +11,13 @@
<html>
<head>
<title>V5 | PC</title>
<title>V5 | XXX系统</title>
<%-- 富客户端环境引用文件 --%>
<%@ include file="/gaowj/header-simple-1.0.jsp"%>
<link rel="shortcut icon" href="images/main/logo.ico" />
<link rel="icon" type="image/gif" href="images/main/logo.png" />
<link rel="icon" type="image/gif" href="images/main/logo.png" />
</head>
<body class="easyui-layout" data-options="fit:true">
<body id="cc" class="easyui-layout" data-options="fit:true">
<div id="layout_north" data-options="region:'north'" style="height:80px;background:url('${ctx}/images/main/nbjwtop.jpg') no-repeat;"></div>
<div id="layout_south" data-options="region:'south',split:true" style="height:30px;overflow:hidden;border-top:none;">
<div id="foot" ></div>
......@@ -31,6 +31,8 @@
</div>
</div>
<div id="tab-tools">
<a href="javascript:void(0)" class="easyui-linkbutton" style = "text-decoration:none;"
data-options="plain:true,iconCls:'icon-ext-26_01'" id="cc_layout_button" onclick="maxPanel()"><font id="cc_layout_text" style="color:#ccc;">最大化</font></a>
<a href="javascript:void(0)" class="easyui-linkbutton" style = "text-decoration:none;"
data-options="plain:true,iconCls:'icon-ext-22_27_undo'" onclick="removeAllPanel()"><font style="color:#ccc;">全部关闭</font></a>
</div>
......@@ -121,5 +123,33 @@
href : '${ctx}/system/pages/frameEasyui/top.jsp'
});
});
var cc_layout_status='0';
function maxPanel(){
if(cc_layout_status=='1'){
cc_layout_status='0';
$("#cc_layout_text").html("最大化");
$('#cc_layout_button').linkbutton({
iconCls: 'icon-ext-26_01'
});
$('#cc').layout('add',{
region: 'north',
height: 80});
$('#cc').layout('expand','west');
$('#cc').layout('panel','north').css("background","url('${ctx}/images/main/nbjwtop.jpg') no-repeat").css("overflow","hidden");
$('#cc').layout('panel','north').panel({
href : '${ctx}/system/pages/frameEasyui/top.jsp'
});
}else{
cc_layout_status='1';
$('#cc_layout_button').linkbutton({
iconCls: 'icon-ext-27_01'
});
$('#cc').layout('remove','north');
$('#cc').layout('collapse','west');
$("#cc_layout_text").html("恢复");
}
}
</script>
</html>
......@@ -68,7 +68,7 @@ A:link {
</tr>
</table>
<div id="SendProduct" > </div>
<div id="modifypassDialog">
<div id="modifypassDialog" style="overflow:auto;">
<form id="modifypassForm" method="post">
<table align="center" style="margin-top:10px;">
<tr>
......@@ -148,6 +148,7 @@ A:link {
<script type="text/javascript">
$(function() {
//如果是v5原始版本那就显示换肤功能
var localPath = '<%=localPath %>';
if(localPath=='/jfV5'){
......@@ -161,16 +162,13 @@ $(function() {
$("#personInfo").hide();
$("#modifypassDialog").hide();
function doMain(idx){
function doMain(idx){
if(idx=='quit'){
if(window.confirm('<fmt:message key="common.quit.click" bundle="${p1}"/>?')){
window.top.location = "<%=localPath %>/logout";
//window.top.location = WebContextPath + "/logoutcas.jsp";
return true;
}else{
return false;
}
$.messager.confirm('提示', '<fmt:message key="common.quit.click" bundle="${p1}"/>?', function(r) {
if (r) {
window.top.location = "<%=localPath %>/logout";
}
});
}else{
window.top.location = "<%=localPath %>/login";
}
......@@ -181,6 +179,9 @@ $(function() {
$("#modifypassDialog").show();
$("#modifypassForm")[0].reset();
$("#OLDPASS").textbox("setValue","");
$("#NEWPASS").textbox("setValue","");
$("#AGAINNEWPASS").textbox("setValue","");
$('#modifypassDialog')
.dialog(
{
......@@ -213,6 +214,7 @@ $(function() {
text : '返回',
iconCls : 'icon-back',
handler : function() {
$("#modifypassDialog").hide();
$('#modifypassDialog').dialog('close');
}
} ]
......
......@@ -282,7 +282,7 @@ input[type="checkbox"] {
<input type="button" id="b_login" class="Login_button" value="登&nbsp;&nbsp;&nbsp;录" />
<!-- 找回密码开始 -->
<span class="Login_passwordBack"> <a href="#"> 找回密码 </a></span>
<span class="Login_passwordBack" style="display:none;"> <a href="#"> 找回密码 </a></span>
</div>
<!-- 记住帐户开始 -->
......@@ -296,7 +296,7 @@ input[type="checkbox"] {
<!-- 底部文字开始 -->
<div class="Login_lastword">
Powered By © 2014-2018 <a href="http://www.jfbrother.com"> <span>www.jfbrother.com </span></a>
Powered By © 2014-2018 <a target="_blank" href="http://www.jfbrother.com"> <span>www.jfbrother.com </span></a>
</div>
</div>
</div>
......
......@@ -345,10 +345,11 @@ public class actAction extends BasicAction {
String uuid = request.getParameter("uuid");
String uploadnew=request.getParameter("uploadnew");
String uploadpath=request.getParameter("uploadpath");
String downloadFilenameEncode1 = PropUtil.getValue("downloadFilenameEncode1", "quartz_service", "gbk");
String downloadFilenameEncode2 = PropUtil.getValue("downloadFilenameEncode2", "quartz_service", "iso8859-1");
super.setEncoding1(downloadFilenameEncode1);
super.setEncoding2(downloadFilenameEncode2);
// String downloadFilenameEncode1 = PropUtil.getValue("downloadFilenameEncode1", "quartz_service", "gbk");
// String downloadFilenameEncode2 = PropUtil.getValue("downloadFilenameEncode2", "quartz_service", "iso8859-1");
// super.setEncoding1(downloadFilenameEncode1);
// super.setEncoding2(downloadFilenameEncode2);
response.setCharacterEncoding("utf-8");
if(new File(uploadpath+"/"+uploadnew).exists()==false){
db2file(uuid,uploadpath,uploadnew,false);
ret_download = super.download();
......
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