topic.csdn.net/u/20111110/23/bf5bb3ab-8f51-4258-9ce1-075f2c8f5f62.html
<title>欢迎光临!</title><script src="../javascript/common.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
function QueryData() {
var curpage = document.getElementById("curPage").value;
var content = document.getElementById("Text");
var navi = document.getElementById("naviga");
content.innerHTML = WebUI_MainLogin.GetContent(curpage).value;
navi.innerHTML = WebUI_MainLogin.GetList(curpage).value;
}
function Add() {
winOpen1("AddNew.aspx?type=add&id=0", 600, 600, 200, 200);
}
function Update() {
var updateItem = UpdatItem('del');
if (updateItem != null && updateItem != "") {
winOpen1("UpdateNew.aspx?type=update&id=" + updateItem, 600, 600, 200, 200);
}
}
function Delete() {
var array = GetDeleteItems('del');
if (array == null || array == ',' || array == "") {
alert("要删除项未选或系统问题,请刷新重试!");
return;
}
else {
var afterDelStr = WebUI_MainLogin.GetDeleteInfo(array).value;
alert(afterDelStr);
}
QueryData();
}
<div style="position:relative; top:0px; left:70%;">
<ul style="">
<li style="position:absolute; top:0px; left:20px;"><input type="checkbox" id="checkBox" onclick="ChooseAll(this,'del');" /><span><a href="#" onclick="ChooseAll(this,'del');">全选</a></span></li>
<li style="position:absolute; top:0px; left:80px; margin-top:3px;"><img src="../images/001.gif" alt="新增" /><span><a href="#" onclick="Add();">新增</a></span></li>
<li style="position:absolute; top:0px; left:140px;margin-top:3px;"><img src="../images/114.gif" alt="修改" /><span><a href="#" onclick="Update();" >修改</a></span></li>
<li style="position:absolute; top:0px; left:200px;margin-top:3px;"><img src="../images/083.gif" alt="删除" /><span><a href="#" onclick="Delete();" >删除</a></span></li>
</ul>
</div>
public string GetTableBeginHtml()
{
return "<table border='0' cellpadding='0' cellspacing='1' style='width:100%; border:solid 0px pink;'> ";
}
public string GetTableEndHtml()
{
return "</table>";
}
public string GetTrBeginHtml()
{
return "<tr style='width:99%; height:24px; '>";
}
public string GetTrEndHtml()
{
return "</tr>";
}
public string GetThHtml(int width, string text)
{
string context = "<th style='width:{0}%;'>{1}</th>";
context = string.Format(context, width, text);
return context;
}
public string GetTdHtml(int width, string text)
{
string context = "<td style='width:{0}%;'>{1}</td>";
context = string.Format(context, width, text);
return context;
}
public string GetTdWithCheckBoxHtml(int width, int i, string text)
{
string content = "<td style='width:{0}%; '><input type='checkbox' style='width:12px;' name='del' value='{2}' /> {1}</td>";
content = string.Format(content, width, i, text);
return content;
}
--------------------编程问答-------------------- hehe --------------------编程问答-------------------- 你要说神马? --------------------编程问答-------------------- lz在散分? --------------------编程问答-------------------- 友情帮顶。
补充:.NET技术 , 非技术区