教程中国
PHOTOSHOP CS9.0中文版 MAYA 8.5 FOR WINDOWS Corel Painter v9.0 Flash MX2004 中文版 Illustrator cs2 中文版
VC++6.0含sp6 中英文版 VB6.0 +sp6 简体中文版 Borland Delphi 7汉化版 MSDN for vb6.0中文版 Visual Studio 2005简体
教程中国下属 文件存储共享专家BIBIDU.COM 提供大型软件,教材,源码,电影,音乐,图书等下载 更多精品请点此进入
  您目前所在位置: 教程中国 >> 编程基地 >> ASP >> 自己写的函数方便制作管理界面 RSS订阅
自己写的函数方便制作管理界面
自己写的函数方便制作管理界面(2)
教程(视频,书籍)下载:  ASP.NET AutoCAD 数据库 C# ASP java photoshop 网页设计 delphi 3dmax Flash C++ VB 张孝祥 实例   更多请进入BIBIDU搜索
IT搜索引擎   
    strExec=strExec&MyRequest(arrFieldName(iTmp),0)
   else
    strExec=strExec&"'"&MyRequest(arrFieldName(iTmp),0)&"'"
   end if
   if iTmp<>ubound(arrFieldName) then strExec=strExec&","
  end if
 next
 strExec=strExec&")"
 objConn.execute strExec
 response.redirect "?iPage="&iPage
end if

if iPage-5>0 then
 iPageStart=iPage-5
else
 iPageStart=1
end if
if 10+iPageStart<=iPageCount then
 iPageEnd=10+iPageStart
else
 iPageEnd=iPageCount
end if
if 10+iPage<=iPageCount then
 iNextTenPage=iPage+10
else
 iNextTenPage=iPageCount
end if
if iPage-10>0 then
 iLastTenPage=iPage-10
else
 iLastTenPage=1
end if

strExec="select top "&iPageSize*iPage&" "
strExec=strExec&strKeyName&","
for iTmp=0 to ubound(arrFieldName)
 strExec=strExec&arrFieldName(iTmp)
 if iTmp<>ubound(arrFieldName) then strExec=strExec&","
next
strExec=strExec&" from "&strTblName
objRs.open strExec,objConn,1,1
objRs.move iPageSize*(iPage-1)
response.write "<table border=""0"" cellpadding=""0"" cellspacing="""&iTableBorder&""" class="""&strTableCss&""">"&vbcrlf
response.write "<tr class="""&strHeaderCss&""">"&vbcrlf
for iTmp=0 to ubound(arrHeaderName)
 response.write "<td width="""&arrTdWidth(iTmp)&""">"&arrHeaderName(iTmp)&"</td>"&vbcrlf
next
if iModifyMethod=2 or iModifyMethod=5 or iModifyMethod=6 or iModifyMethod=7 then
 response.write "<td width=""50"">删除</td>"
end if
if iModifyMethod=3 or iModifyMethod=4 or iModifyMethod=5 or iModifyMethod=7 then
 response.write "<td width=""50"">修改</td>"
end if
response.write "</tr>"&vbcrlf
if iModifyMethod=1 or iModifyMethod=4 or iModifyMethod=6 or iModifyMethod=7 then
 response.write "<form name=""addnew"" method=""get""><tr class="""&strBodyCss&""">"&vbcrlf
 for iTmp=0 to ubound(arrHeaderName)
  if arrFieldName(iTmp)<>strKeyName then
   response.write "<td><input name="""&arrFieldName(iTmp)&""" type=""text"" size="""&arrTdWidth(iTmp)/10&"""></td>"&vbcrlf
  else
   response.write "<td>-</td>"&vbcrlf
  end if
 next
 response.write "<td colspan=""2""><input type=""hidden"" name=""iPage"" value="""&iPageCount&"""><input type=""hidden"" name=""Method"" value=""AddNew""><input type=""button"" value=""新增记录"" onclick=""addnew.submit()""></td>"
 response.write "</tr></form>"&vbcrlf
end if
for iTmp2=1 to iPageSize
 if objRs.Eof then Exit For
 response.write "<form name=""modify"&iTmp2&""" method=""get""><tr class="""&strBodyCss&""">"&vbcrlf
 for iTmp=0 to ubound(arrHeaderName)
  if arrFieldName(iTmp)<>strKeyName and MyRequest("Method",0)="Modify" and objRs(strKeyName)=MyRequest(strKeyName,1) then
   response.write "<td><input name="""&arrFieldName(iTmp)&""" type=""text"" size="""&arrTdWidth(iTmp)/10&""" value="""&objRs(arrFieldName(iTmp))&"""></td>"&vbcrlf
  else
   response.write "<td>"&objRs(arrFieldName(iTmp))&"</td>"&vbcrlf
  end if
 next
 if iModifyMethod=2 or iModifyMethod=5 or iModifyMethod=6 or iModifyMethod=7 then
  response.write "<td width=""50""><input type=""button"" onclick=""location.href='?iPage="&iPage&"&Method=Delete&"&strKeyName&"="&objRs(strKeyName)&"'"" value=""删除""></td>"
 end if
 if iModifyMethod=3 or iModifyMethod=3 or iModifyMethod=5 or iModifyMethod=7 then
  if MyRequest("Method",0)="Modify" and objRs(strKeyName)=MyRequest(strKeyName,1) then
   response.write "<td width=""50""><input type=""hidden"" name=""Method"" value=""ModifyPost""><input type=""hidden"" name="""&strKeyName&""" value="""&objRs(strKeyName)&"""><input type=""hidden"" name=""iPage"" value="""&iPage&"""><input type=""submit"" value=""确认""></td>"
  else
   response.write "<td width=""50""><input type=""button"" onclick=""location.href='?iPage="&iPage&"&Method=Modify&"&strKeyName&"="&objRs(strKeyName)&"'"" value=""修改""></td>"
  end if
 end if
 

;response.write "</tr></form>"&vbcrlf

来源:upschool.cn
作者:
关键字:自己写
发表日期:2006-7-26

网页显示有限 阅读全文请下载本文完整版WORD文档

上一篇:无限级目录树+记忆节点状态   下一篇:下载网页中的所有资源


共3页 9 7 [1] [2] [38 :>

2009-1-9 20:45:28
本文的相类似文章
  • 自己写个 C 程式
  • 自己写的备份服务器的脚本
  • 自己写的一个asp.net 的生成曲线图的过程
  • 自己写的一个asp.net的生成曲线图的过程
  • 自己写的一个链表综合程序
  • 自己写溢出的基础,溢出原理
  • 自己写的label 与 textBox 组合的控件
  • 如何 动态编译自己写的代码
  • 自己写的一个资料验证的asp.net程序,大家看看吧!
  • 我自己写的聊天室源代码(一)
  • 在学习中进步 在进步中成长 教程中国相随您的成长之路
    华腾联合科技股份有限公司版权所有
    广告联系:Rosibo@163.com