php生成xml 类

  • 栏目:编程 时间:2020-04-06 00:02
<返回列表

?phpclass majax extends blogadmin {var $result = '?xml version=1.0 encoding=gb2312?';function majax($db) {$this-db = $db;$this-adminname = $_SESSION['adminname'];}

function checkLogin() {if($this-islogin()) {Return 0;}else{Return 1;}}function addCatResult($cTitle) {$cId = $this-addCat($cTitle);if($cId0) {$this-result .=succes id=$cId$cTitle/succes;}else {$this-result .=loss id=$cId$cTitle/loss;}Return $this-result;}

function upCatResult($cId,$cTitle) {if($this-upCat($cId,$cTitle)) {$this-result .=succes id=$cId$cTitle/succes;}else {$this-result .=loss id=$cId$cTitle/loss;}Return $this-result;}

function delCat($cId,$cNum) {if($this-delCat($cId,$cNum)) {$this-result .=succes id=$cId$cTitle/succes;}else {$this-result .=loss id=$cId$cTitle/loss;}Return $this-result;}

function delReviewResult($rId,$aId) {if($this-delReview($rId,$aId)) {$this-result .=succes id=$rId$cTitle/succes;}else {$this-result .=loss id=$rId$cTitle/loss;}Return $this-result;}

function addLinkResult($ln,$lu,$lc) {$lId = $this-addLink($ln,$lu,$lc);if($lId0) {$this-result .=succes id=$lIdyes/succes;}else {$this-result .=lossno/loss;}Return $this-result;}function editLinkResult($lid,$ln,$lu,$lc) {if($this-editLink($lid,$ln,$lu,$lc)) {$this-result .=succes id=$lidyes/succes;}else {$this-result .=lossno/loss;}Return $this-result;}

/*function

addBokeResult($cId,$cTitle,$aAuthor,$isCmd,$aContent,$isOpen,$bokeUrl){$aId

$this-addBoke($cId,$cTitle,$aAuthor,$isCmd,$aContent,$isOpen,$bokeUrl);if($aId0) {$this-result .=succes id=$cId$cTitle/succes;}else{$this-result .=loss id=$cId$cTitle/loss;}Return $this-result;}*/ }?

上一篇:韦德体育以后建立编辑数据库可以靠它了 下一篇:没有了

更多阅读

php生成xml 类

编程 2020-04-06
?phpclass majax extends blogadmin {var $result = '?xml version=1.0encoding=gb2312?';function majax($db) {$this-db = $db;$...
查看全文

韦德体育以后建立编辑数据库可以靠它了

编程 2020-04-06
学习目的:学会构建数据库 在ASP中,如果是ACCESS数据库你可以直接打开ACCESS来编辑MDB文件,如...
查看全文

php分页程序及简单实例说明

编程 2020-04-04
$sql=select * from my_note wherenote_url='4';$result=mysql_query($sql) ordie('Error'.mysql_error());$allrecord=mysql_num_...
查看全文

友情链接: 网站地图

Copyright © 2015-2019 http://www.koi-bumi.com. 韦德体育有限公司 版权所有