File manager - Edit - /home/u608250662/domains/ptfecables.in/public_html/media/uploads/models.tar
Back
index.php 0000644 00000000000 15252251463 0006357 0 ustar 00 Pages.php 0000644 00000001405 15252251463 0006321 0 ustar 00 <?php defined('BASEPATH') OR exit('No direct script access allowed'); class Pages extends CI_Model { function selectdetailsbyurl($url) { $this->db->where('url',$url); $result=$this->db->get('dushyant_page'); return $result->result(); } function selectdetailsbyid($id) { $this->db->where('id',$id); $result=$this->db->get('dushyant_page'); return $result->result(); } function selectallpage() { $result=$this->db->get('dushyant_page'); return $result->result(); } public function selectallseopage($url) { $this->db->where('url',$url); $result=$this->db->get('dushyant_seo'); return $result->result(); } function update($id,$data,$table) { $this->db->where('id',$id); return $this->db->update($table,$data); } } Siteeditingss.php 0000644 00000001237 15252251463 0010103 0 ustar 00 <?php defined('BASEPATH') OR exit('No direct script access allowed'); class Siteeditingss extends CI_Model { function insert($table,$data) { $result=$this->db->insert($table,$data); return $result; } function update($id,$data,$table) { $this->db->where('id',$id); return $this->db->update($table,$data); } function delete($id,$table) { $this->db->where('id',$id); return $this->db->delete($table); } function selectdetailsbyid($id) { $this->db->where('id',$id); $result=$this->db->get($table); return $result->result(); } function selectallsitedetail() { $result=$this->db->get('dushyant_site-setting'); return $result->result(); } } Services.php 0000644 00000004225 15252251463 0007050 0 ustar 00 <?php defined('BASEPATH') OR exit('No direct script access allowed'); class Services extends CI_Model { public function selectservicesbyid($id) { $this->db->where('id',$id); $result=$this->db->get('dushyant_services'); return $result->result(); } public function selectservicesbyurl($url) { $this->db->where('url',$url); $result=$this->db->get('dushyant_services'); return $result->result(); } public function selectimmigrationservicesbylimit($limit) { $this->db->where('show_immigration','1'); $this->db->where('status','1'); $this->db->limit($limit); $result=$this->db->get('dushyant_services'); return $result->result(); } public function selectimmigrationservicesbyhome() { $this->db->where('shomepage','1'); $result=$this->db->get('dushyant_services'); return $result->result(); } public function selectimmigrationservicesbymenu() { $this->db->where('smenu','1'); $this->db->order_by('id','desc'); $result=$this->db->get('dushyant_services'); return $result->result(); } public function selectconsultantservicesbylimit($limit) { $this->db->where('show_consultant','1'); $this->db->where('status','1'); $this->db->limit($limit); $result=$this->db->get($table); return $result->result(); } public function selectallhomeserviceslist() { $this->db->order_by('orderby','desc'); $this->db->limit(6); $this->db->where('shomepage','1'); $result=$this->db->get('dushyant_services'); return $result->result(); } public function selectallhomeservicescnp() { $this->db->limit(9); $this->db->where('shomepage','1'); $result=$this->db->get('dushyant_services'); return $result->result(); } public function selectallserviceslist() { $result=$this->db->get('dushyant_services'); return $result->result(); } public function selectseobyurl($url) { $this->db->where('url',$url); $result=$this->db->get('dushyant_seo'); return $result->result(); } public function selectseobycatcourse($catcourse) { $this->db->where('catcourse',$catcourse); $result=$this->db->get('dushyant_services'); return $result->result(); } } Blogs.php 0000644 00000002135 15252251463 0006331 0 ustar 00 <?php defined('BASEPATH') OR exit('No direct script access allowed'); class Blogs extends CI_Model { public function selectsliderbyurl($url) { $this->db->where('url',$url); $result=$this->db->get('dushyant_blog'); return $result->result(); } public function selectproductbyurl($url,$table) { $this->db->where('url',$url); $result=$this->db->get($table); return $result->result(); } public function selectsliderbyid($id) { $this->db->where('id',$id); $result=$this->db->get('dushyant_blog'); return $result->result(); } public function selectallbloglist() { $result=$this->db->get('dushyant_blog'); return $result->result(); } public function selectablogbylimit($limit) { $this->db->limit($limit); $result=$this->db->get('dushyant_blog'); return $result->result(); } function update($url,$data,$table) { $this->db->where('url',$url); return $this->db->update($table,$data); } public function selectblogdetailbyheading($heading) { $this->db->where('heading',$heading); $result=$this->db->get('dushyant_blog'); return $result->result(); } } Productid.php 0000644 00000001561 15252251463 0007222 0 ustar 00 <?php defined('BASEPATH') OR exit('No direct script access allowed'); class Productid extends CI_Model { public function myjoin() { // $query= $this->db->select('* from wire_products INNER JOIN wire_product_image on wire_products.pro=wire_product_image.proid'); // $this->db->from('wire_products'); // $query= $this->db->JOIN('wire_product_image' on 'wire_products.proid=wire_product_image.proid'); // $query=$this->db->on('wire_products.proid=wire_product_image.proid'); $this->db->select('*'); $this->db->from('wire_products'); $this->db->join('wire_product_image','wire_product_image.proid = wire_products.proid') $query = $this->db->get(); if($query->num_rows() != 0) { return $query->result(); } else { return false; } } } Gallerys.php 0000644 00000001544 15252251463 0007050 0 ustar 00 <?php class Gallerys extends CI_Model { function selectallbanner() { $data= $this->db->get("dushyant_gallery"); return $data->result(); } function selectactivebanner() { $this->db->order_by('id','desc'); $this->db->where('status','1'); $data= $this->db->get("dushyant_gallery"); return $data->result(); } function selectbannerbyid($id) { $this->db->where('id', $id); $data= $this->db->get('dushyant_gallery'); return $data->result(); } function insert($data) { $result= $this->db->insert('dushyant_gallery', $data); return $result; } function update($id,$data) { $this->db->where('id', $id); return $this->db->update('dushyant_gallery',$data); } function delete($id) { $this->db->where('id', $id); return $this->db->delete('dushyant_gallery'); } } ?>