ok

Mini Shell

Direktori : /home2/selectio/public_html/srivarielevators.net/application/models/admin/
Upload File :
Current File : //home2/selectio/public_html/srivarielevators.net/application/models/admin/Model_dashboard.php

<?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Model_dashboard extends CI_Model 
{
	public function show_total_news_category()
	{
		$sql = 'SELECT * from tbl_news_category';
        $query = $this->db->query($sql);
        return $query->num_rows();
    }
    public function show_total_news()
	{
		$sql = 'SELECT * FROM tbl_news';
        $query = $this->db->query($sql);
        return $query->num_rows();
    }
    public function show_total_team_member()
    {
        $sql = 'SELECT * from tbl_team_member';
        $query = $this->db->query($sql);
        return $query->num_rows();
    }
    public function show_total_portfolio()
    {
        $sql = 'SELECT * from tbl_portfolio';
        $query = $this->db->query($sql);
        return $query->num_rows();
    }
    public function show_total_testimonial()
    {
        $sql = 'SELECT * from tbl_testimonial';
        $query = $this->db->query($sql);
        return $query->num_rows();
    }
    public function show_total_slider()
	{
		$sql = 'SELECT * from tbl_slider';
        $query = $this->db->query($sql);
        return $query->num_rows();
    }
    
}

Zerion Mini Shell 1.0