当前位置:首页 » 服务器技术
开发技术指南» 文章正文
    引言: <%´====================
 

 

 ·windows2000 config    »显示摘要«
    摘要:windows2000的系统日志,分为应用程序日志,安全日志,系统日志,dns服务器日志。。位置在%systemroot%\system32\config 默认大小为512k 相对应为 security %systemroot%\system32\config\secevent.evt system %systemroot%\system32\config\sysevent.evt application %systemroot%\system\co......
    摘要:动态禁用/启用window 2000下的ctrl+alt+delete组合键(终结版) 作者: 湖北 李桂生 ligs2001@163.com 鸣谢: 1:jiangsheng 在windows2000中动态禁用/启用ctrl-alt-delete 2:robert kuster three ways to inject your code into another process 图片如下: 使用......


ASP模板类[实现一维循环和二维循环,可以从文件、数据库、变量取摸板]

<%

´========================================================= 【相关文章:.NET客户端应用程序:.NET应用程序

【扩展阅读:创建可编辑的xml文档(之五)执行中的t

´ file: class_template.asp 【扩展信息:DirectShow中常见的RGB/YU

´ version:1.0

´ date: 2004-5-7

´ script written by r.h

´ description: asp template class

´=========================================================

´ copyright (c) 2004 interflower studios. all rights reserved.

´ web: http://www.interflower.cn

´ need help? contact: ranhuan@msn.com

´=========================================================

´=========================================================

´模板中替换的部分用{{%}}表示

´模板中的循环用<!-- begin % -->开始 <!-- end % -->结束 支持一次嵌套

class template

     private tmp

     private tpl_dir, tpl, tpl_blk

     private var_list, blk_list, blk_var_list

     private re, match, matchs

     private sub class_initialize

           sql = ""

           tpl_dir = "templates/"

           tpl = ""

           blk=""

           set var_list = server.createobject("scripting.dictionary")

           set blk_list = server.createobject("scripting.dictionary")

           set blk_var_list = server.createobject("scripting.dictionary")

           set re = new regexp  

     end sub

´取得主体模板      

´========================

´从变量取出

     public sub settpl(tplvar)

           tpl = tplvar

     end sub

     

´ 从db中取出,自己修改sql语句

     public sub settpldb(tplname)

           dim sql, rs

           set rs = server.createobject("adodb.recordset")

           sql = "select content from templates where name = ´"&tplname&"´"

           rs.open sql,conn,1,1

           if rs.recordcount <> 1 then

                 response.write("数据库错误!<br>")

                 response.end()

           end if

           tpl = rs("content")

           rs.close

           set rs = nothing

     end sub

     

´从文件取出

     public sub settplfile(tplfile)

           dim fso, ofile

           set fso = server.createobject("scripting.filesystemobject")

           if fso.fileexists(server.mappath(tpl_dir & tplfile)) then

                 set ofile = fso.opentextfile(server.mappath(tpl_dir & tplfile))

                 tpl = ofile.readall

                 ofile.close

                 set ofile = nothing

           else

                 response.write "模板文件不存在!<br>"

           end if

           set fso = nothing

     end sub

´取得区块模板      

´========================

´从变量取出

     public sub setblk(blkname, tplvar)

           re.ignorecase = true

           re.global = true

           re.pattern = {{ & blkname & }}

           tpl = re.replace(tpl, tplvar)

           rs.close

     end sub

´从数据库取出

     public sub setblkdb(blkname, tplname)

           dim sql, rs

           set rs = server.createobject("adodb.recordset")

           sql = "select * from templates where name = ´"&tplname&"´"

           rs.open sql,conn,1,1

           tmp = rs("content")

           rs.close

           setblk blkname, tmp

           set rs = nothing

     end sub

´从文件取出

     public sub setblkfile(blkname, tplfile)

           dim fso, ofile

           set fso = createobject("scripting.filesystemobject")

           if fso.fileexists(server.mappath(tpl_dir &tplfile)) then

                 set ofile = fso.opentextfile(server.mappath(tpl_dir &tplfile))

                 tmp = ofile.readal

                 setblock blkname, tmp

                 ofile.close


...   下一页
    摘要: 浅谈权限管理的对象模型和实现 beegee(原作) 关键字 权限管理 对象模型 acl 电子政务 浅谈权限管理的对象模型和实现 beegee (2003-7-16) 目录: 1.权限管理问题的分析 1.1权限管理简要分析 1.2电子政务系统的权限管理 1.3商业化应用系统的权限管理 1.4他山之石 2.权限管理子系统设计 2.1权限管理子系统的总体目标 2.2权限管理子系......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE