Location: PHPKode > projects > MembersGear > membersgear/includes/themepages_class.php
<?php
 
 require_once "peardb_class.php";
    
 class themespages_class extends peardb_class
 {   
    function View($pQuery, $pValues=false, $types=true, $pStart=0, $pEnd=0)
    {
        /*
        global $mdb2;    
        $result;  
 
        $query      = 'SELECT * FROM tbluser1 t limit 10;';
        $resultset  = $mdb2->query($query);
        
        if(PEAR::isError($resultset)) 
        {
            die("Failed to issue query, error message : " . $resultset->getMessage());
        }
        
        while($row = $resultset->fetchRow(MDB2_FETCHMODE_ASSOC))
        {
            $result[] = $row;
        }
                                                                                                                 
        return  $result;   
        */
        //print_r($pParameters);
        
        return $this->BaseView($pQuery,$pValues,$types,$pStart,$pEnd);
        
    }
    
    function Update($pQuery, $pValues=false, $types=true)
    { 
       
        return $this->BaseUpdate($pQuery, $pValues, $types);
    
    }

    
    function Insert($pQuery, $pValues=false, $types=true)
    { 
    
        return $this->BaseInsert($pQuery, $pValues, $types);
    
    }
    
    function GetQuery($pThemeID,$pName,$pContent,$pIsVisible,$pCreatedOn,$pCreatedBy,$pCreatedIPAddress)
    {
          $query = 'INSERT INTO '.TABLE_PREFIX.'theme_pages (`themeid`,`name`,`content`,`isvisible`,`createdon`,`createdby`,`createdipaddress`,`modifiedon`,`modifiedby`,`modifiedipaddress`) VALUES';   
          $query .= "($pThemeID,'$pName','$pContent',$pIsVisible,$pCreatedOn,$pCreatedBy,'$pCreatedIPAddress',0,0,0);";
        /*  $query .= "(?,'UserLeftPane',?,?,?,?,?,?,?,?),";
          $query .= "(?,'UserRightPane',?,?,?,?,?,?,?,?),";
          $query .= "(?,'WebsiteLogo',?,?,?,?,?,?,?,?),";
          $query .= "(?,'UserFooter',?,?,?,?,?,?,?,?),";
          $query .= "(?,'LoginForm',?,?,?,?,?,?,?,?),";
          $query .= "(?,'ForgotPassword',?,?,?,?,?,?,?,?);";
         */ 
          return $query;
    }
    
     function Delete($pQuery, $pValues=false, $types=true)
    {
        
      return $this->BaseDelete($pQuery, $pValues,null);
        
    }
    
 }   
   
   
 
    

?>
Return current item: MembersGear