阅读:278
评论:0
function print_r(array, return_val) { var output = '', pad_char = ' ', pad_val = 4, d = this.window.document, getFuncName = function (fn) { var name = (/\W*function\s+([\w\$]+)\s*\(/).exec(fn); if (!name) { return '(Anonymous)'; } return name[1]; }, repeat_char = function (len, pad_char) { var str = ''; for (var i = 0; i < len; i++)...
阅读:133
评论:0
阅读:216
评论:0
/*MSSql的操作类*/ class MSSql { var $link; var $querynum = 0; /*连接MSSql数据库,参数:dbsn->数据库服务器地址,dbun->登陆用户名,dbpw->登陆密码,dbname->数据库名字*/ function Connect($dbsn, $dbun, $dbpw, $dbname) { if($this->link = @mssql_connect($dbsn, $dbun, $dbpw, true)) { $query = $this->Query('SET TEXTSIZE 2147483647'); if (@mssql_select_db($dbname, $this->link)...
阅读:250
评论:0
阅读:274
评论:0
阅读:213
评论:0
/* Powered By CMSDream Copyright (c) All rights reserved. 通用分页存储过程 */ CREATE proc [dbo].[cmsdream_SP_MultiPage]( @sql varchar(8000)='', @PageSize int=1, @CurrentPage int=1, @RecordCount int=0 output, @PageCount int=1 output )AS if @PageSize < 1 set @PageSize = 1 if @CurrentPage < 1 set @CurrentPage = 1 begin set nocount on declare @p1 int, @rowcount int exec...
阅读:320
评论:0
function querystring(){ this.params = new Object(); this.initialize = function(){ var param=this.paramstring(); if(param.length == 0) return; if(param.substring(0,1)=='?'){ param=param.substring(1); } param = param.replace(/\+/g, ' '); var args = param.split('&'); for (var i=0;i<a...
阅读:932
评论:0
阅读:1209
评论:0
/** Powered By CMSDream Copyright © 2007-2008 All rights reserved. 14:21 2008-5-10 **/ function CMSDreamAjaxLib(){ /**//** 成员变量 */ this.XMLHttpReq = null; //XML对象 this.method = "post"; //执行的方法(post/get) this.url = ""; //异步调用的页面地址 this.responseText = ""; //异步返回的响应字符串 this.responseXML = ""; //异步返回的响应XM...
阅读:117
评论:0