posts - 66,  comments - 40,  trackbacks - 0
<script language=javascript>
function dountake(protypeid,mobile){
 window.open("quickOperating.do?method=untake&mobile="+mobile+"&id="+protypeid,"_self","");
}
function doopenaudit(){
 window.open("listMmsUser.do?method=listAll","_blank","width=0,height=0");
}
function AutomateExcel()
{
var oXL = new ActiveXObject("Excel.Application");
var oWB = oXL.Workbooks.Add();
var oSheet = oWB.ActiveSheet;
var hang = tablel.rows.length;
var lie = tablel.rows(0).cells.length;
for (i=0;i<hang;i++)
{
for (j=0;j<lie;j++)
{
oSheet.Cells(i+1,j+1).value = tablel.rows(i).cells(j).innerText;
}
}
oXL.Visible = true;
oXL.UserControl = true;
}
</script>



使用方法:
<input type="button" name="out_excel" onclick="AutomateExcel();" value="导出当前页用户到excel" class="notPrint">
 <input type="button"  onclick="doopenaudit()" value="导出所有用户到excel" class="notPrint">
posted on 2006-05-12 11:26 happytian 阅读(113) 评论(0)  编辑  收藏

只有注册用户登录后才能发表评论。


网站导航:
 
<2024年5月>
2829301234
567891011
12131415161718
19202122232425
2627282930311
2345678

Welcome here, my friend!

常用链接

留言簿(12)

随笔档案(66)

文章分类

文章档案(63)

web

最新随笔

搜索

  •  

积分与排名

  • 积分 - 87925
  • 排名 - 645

最新评论

阅读排行榜

评论排行榜