php生成xml文件|php生成xml 类

时间:2015-06-27  来源:代码生成  阅读:

 class majax extends blogadmin {
  
  var $result = "";
  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($cId>0) {
    $this->result .="$cTitle";
   }else {
    $this->result .="$cTitle";
   }
   Return $this->result;
  }

  function upCatResult($cId,$cTitle) {
   if($this->upCat($cId,$cTitle)) {
    $this->result .="$cTitle";
   }else {
    $this->result .="$cTitle";
   }
   Return $this->result;
  }

  function delCat($cId,$cNum) {
   if($this->delCat($cId,$cNum)) {
    $this->result .="$cTitle";
   }else {
    $this->result .="$cTitle";
   }
   Return $this->result;
  }

  function delReviewResult($rId,$aId) {
   if($this->delReview($rId,$aId)) {
    $this->result .="$cTitle";
   }else {
    $this->result .="$cTitle";
   }
   Return $this->result;
  }

  function addLinkResult($ln,$lu,$lc) {
   $lId = $this->addLink($ln,$lu,$lc);
   if($lId>0) {
    $this->result .="yes";
   }else {
    $this->result .="no";
   }
   Return $this->result;
  }
  function editLinkResult($lid,$ln,$lu,$lc) {
   if($this->editLink($lid,$ln,$lu,$lc)) {
    $this->result .="yes";
   }else {
    $this->result .="no";
   }
   Return $this->result;
  }

  /*function addBokeResult($cId,$cTitle,$aAuthor,$isCmd,$aContent,$isOpen,$bokeUrl){
   $aId = $this->addBoke($cId,$cTitle,$aAuthor,$isCmd,$aContent,$isOpen,$bokeUrl);
   if($aId>0) {
    $this->result .="$cTitle";
   }else{
    $this->result .="$cTitle";
   }
   Return $this->result;
  }*/
    }
?>

php生成xml文件|php生成xml 类

http://m.bbyears.com/wangyetexiao/16141.html

推荐访问:php随机生成数字 php生成二维码 php生成随机数
相关阅读 猜你喜欢
本类排行 本类最新