LBS开发参考

类 lbsArticle(){
////// 属性 //////////////////////////////////////////
this.id=0; //文章编号
this.authorID=0; //作者ID编号
this.author=""; //作者名字
this.category; //所属分类
this.categoryID=0; //所属分类编号
this.title=""; //文章标题
this.content0=""; //文章内容
this.content1=""; //文章内容
this.comments; //文章评论
this.trackbacks; //文章Trackback Ping
this.editMark=""; //文章修改标记
this.postTime=new Date(); //文章发表时间
this.IP=""; //最后一次编辑IP
this.mode; //文章模式
this.locked = false; //是否文章锁定
this.selected = false; //是否推荐文章
this.ubbFlags=""; //是否UBB标记
this.viewCount; //查看次数
this.commentCount; //评论数
this.trackbackURL=""; //Trackback URL
this.trackbackCount; //Trackback数
this.trackbackAgain = false; //是否再Trackback
this.nextArticle; //下一篇文章
this.prevArticle; //上一篇文章

////// 方法 //////////////////////////////////////////
this.load(strSelect, strWhere) //载入文章
this.loadByID(intID, bLoadSideArticle) //通过文章编号载入
this.fill(arr) //以arr数组填充文章对象
this.loadSideArticle //载入上一篇/下一篇文章
this.getSideArticle(bNext) //同上
this.loadComments(bTimeOrder, bWithTrackBack, intTrackbackPos, intPageSize, intCurrentPage) //载入评论
//参数说明: 是否按时间顺序, 是否有TB, TB位置, 分页大小, 当前页
this.fillFromPost(bEdit) //获取表单数据并填充
this.update() //更新文章
this.insert() //插入到DB
this.doDelete() 删除文章

类 DBConn(strDBPath){
////// 属性 ////////////////////////////////////////
this.connString //连接字符串
this.opened //是否打开数据库
this.recordCount //记录计数
this.returnRecordCount //返回记录计数
this.queryCount //数据库查询次数
this.debugData //调试数据模式
////// 方法 ///////////////////////////////////////
this.open() //打开数据库
this.close() //关于数据库
this.query = function(strSQL, intPageSize, intCurrentPage, bRawArray) //查询并返回记录集数组
//参数说明: SQL语句, 分页大小, 当前页码, 元数组
this.update = function(strTable, arrValue, strWhere)
//参数说明: 表名, 值, Where子句
this.updateSQL = function(strTable, strValue, strWhere)
//参数说明: 表名, 值, Where子句
this.insert = function(strTable, arrValue)
//参数说明: 表名, 值
this.doDelete = function(strTable, strWhere, strRange)
//参数说明: 表名, Where子句, 范围
this.exec = function(strSQL)
//参数说明: SQL语句

随机日志

此条目发表在 书自己-Mine 分类目录。将固定链接加入收藏夹。

发表评论

电子邮件地址不会被公开。

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

:biggrin :exclaim :razz :idea :surprised :question :twisted :mrgreen :neutral :smile more »