- 注册时间
- 2013-4-27
- 最后登录
- 2013-8-26
- 阅读权限
- 10
- 积分
- 103
- 精华
- 0
- 帖子
- 27
|
niko 发表于 2013-5-14 09:18
能否提供重现问题的示例html,我们本地重现后才能定位是什么问题。
网站示例和其他客户没有报告过此问题。 ...
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DocList.aspx.cs" Inherits="EPDoc_hg.DocList" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>广西宏冠工程咨询有限公司企业数据库</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<script src="../Scripts/boot.js" type="text/javascript"></script>
<%--<link href="../Styles/demo.css" rel="stylesheet" type="text/css" />--%>
<%--<script src="../core.js" type="text/javascript"></script>--%>
<script language="javascript" type="text/javascript">
mini.parse();
function upload1() {
mini.open({
url: "../DocUpload.aspx?Code="+"<%=Request["code"].ToString() %>",
title: "添加文件", width: 400, height: 200,
allowResize: false,
showModal:false,
onload: function () {
var iframe = this.getIFrameEl();
iframe.style.overflow = "hidden";
var data = { action: "new" };
}
});
}
</script>
<link href="../Styles/miniui.css" rel="stylesheet" type="text/css" />
<style type="text/css">
html, body{
margin:0;padding:0;border:0;width:100%;height:100%;overflow:hidden;
}
.header
{
background:url(header.gif) repeat-x;
}
.header div
{
font-family:'Trebuchet MS',Arial,sans-serif;
font-size:25px;line-height:60px;padding-left:10px;font-weight:bold;color:#333;
}
body .header .topNav
{
position:absolute;right:8px;top:10px;
font-size:12px;
line-height:25px;
}
.header .topNav a
{
text-decoration:none;
color:#222;
font-weight:normal;
font-size:12px;
line-height:25px;
margin-left:3px;
margin-right:3px;
}
.header .topNav a:hover
{
text-decoration:none;
color:Blue;
}
body .header .MeauNav
{
position:absolute;right:8px;top:50px;
font-size:12px;
line-height:25px;
}
.header .MeauNav a
{
text-decoration:none;
color:#222;
font-weight:normal;
font-size:12px;
line-height:25px;
margin-left:3px;
margin-right:3px;
}
.header .MeauNav a:hover
{
text-decoration:none;
color:Blue;
}
.mini-layout-region-south img
{
vertical-align:top;
}
</style>
</head>
<body>
<div class="mini-layout" style="width: 100%; height: 100%;" borderstyle="border:0;">
<div title="center" region="center" showheader="false" showspliticon="false" showsplit="false"
style="border: 0;">
<div id="toolbar1" class="mini-toolbar" style="padding: 2px; border-bottom: 0;">
<table style="width: 100%;">
<tr>
<td style="width: 100%;">
<%--<img src="../Images/pic15.gif"/>--%>
<div class="mini-button" onclick="upload1()" text="添加文件"></div>
</td>
<td style="white-space: nowrap;">
<input class="mini-textbox" />
<a class="mini-button" plain="true">查询</a>
</td>
</tr>
</table>
</div>
<%--grid--%>
<div class="mini-fit">
<div id="datagrid1" class="mini-datagrid" style="width: 100%; height: 100%;" sizelist="[5,10,20,50]"
pagesize="20" url="../data/AjaxService.aspx?method=serchtendering&code=<%=Request["code"].ToString() %>" idfield="id"
emptytext="数据为空,<a href='javascript:newRow()'>增加一条</a>" showemptytext="true"
<%--onrowclick="onrowclick"--%>
onrowdblclick="onrowdblclick"
<%--onselectionchanged="onSelectionChanged"--%>
>
<div property="columns">
<%--<div type="indexcolumn" ></div>--%>
<div field="Titles" width="250" headeralign="center" allowsort="true">
标题
<input property="editor" class="mini-textbox" style="width: 100%;" />
</div>
<div field="FileExt" width="120" align="center" headeralign="center">
扩展名</div>
<div field="Uploader" width="120" align="center" headeralign="center">
上传者用户名</div>
<div field="UploadDate" width="100" headeralign="center" align="center" dateformat="yyyy-MM-dd HH:mm"
allowsort="true">
上传时间</div>
<div field="Clicks" width="120" align="center" headeralign="center">
浏览量</div>
<%--<div field="Modifytime" width="100" headeralign="center" align="center" dateformat="yyyy-MM-dd HH:mm"
allowsort="true">
更新时间</div>
<div field="Modifyperson" width="120" headeralign="center">
最后修改人</div>--%>
<%-- <div field="action" width="30" align="center" headerAlign="center">操作</div>
<div name="action" field="action" align="center" headerAlign="center">操作2</div>--%>
<div name="action" width="120" headeralign="center" align="center" renderer="onActionRenderer"
cellstyle="padding:0;">
操作</div>
</div>
</div>
</div>
</div>
</div>
<%-- </div>--%>
<script type="text/javascript">
mini.parse();
var grid = mini.get("datagrid1");
grid.load();
grid.sortBy("UploadDate", "desc");
//获取index中的tab
var tabs = mini.get("mainTabs");
///////////////////////////////////////////////////////
function onActionRenderer(e) {
var grid = e.sender;
var record = e.record;
var uid = record._uid;
var rowIndex = e.rowIndex;
var s = '<a class="Delete_Button" style="text-decoration:none;" href="javascript:delRow(\'' + uid + '\')">删除</a>';
return s;
}
function onActionRenderer1(e) {
var grid = e.sender;
var record = e.record;
var uid = record._uid;
var text = record.title;
var rowIndex = e.rowIndex;
var s = '<a class="Delete_Button" href="javascript:addtab(\'' + uid + '\')"> 删除</a>';
return s;
}
function delRow(row_uid) {
// alert("删除");
var row = grid.getRowByUID(row_uid);
if (row) {
if (confirm("确定删除此记录?")) {
grid.loading("删除中,请稍后......");
$.ajax({
url: "../data/AjaxService.aspx?method=Removetendering&id=" + row.id,
success: function (text) {
grid.reload();
},
error: function () {
}
});
}
}
}
function onSelectionChanged(e) {
var grid = e.sender;
var record = grid.getSelected();
if (record) {
addtab(record._uid);
}
else {
//form.reset();
}
}
function onrowdblclick(e) {
var grid = e.sender;
var record = grid.getSelected();
if (record) {
addtab(record._uid);
}
else {
//form.reset();
}
}
function addtab(row_uid) {
var row = grid.getRowByUID(row_uid);
if (row) {
var tabid = "tab1$" + row.Id;
var tabtitle = row.Titles;
var showclose = true;
//这里拼接了url,实际项目,应该从后台直接获得完整的url地址
var url = "../DocView.aspx?DOCID=" + row.id;
window.Owner.showaddtab(tabid, tabtitle, showclose, url);
}
}
);
</script>
</body>
</html>
<%--<script src="../scripts/tongji.js" type="text/javascript"></script>--%>
|
|