%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Gallery extends MY_Controller { private $num_rows = 10; public function __construct() { parent::__construct(); //$this->load->library('form_validation','session'); $this->load->model(array('Common_model')); } /* * Function : index */ public function index($page = 0) { $data = array(); $head = array(); $head['title'] = 'Image Gallery | Sharda Group'; $head['description'] = 'Image Gallery | Sharda Group'; $head['keywords'] = str_replace(" ", ",", $head['title']); $data['schoolsArray'] = $this->Common_model->getAllRecords('tbl_schools','id,school_name,school_url',array('is_deleted'=>'0')); $data['school_url'] = ''; $search_array = array('is_deleted'=>'0'); if($this->uri->segment(3)!='') { $schoolArray = $this->Common_model->getAllRecords('tbl_schools','id,school_name,school_url',array('school_url'=>$this->uri->segment(3), 'is_deleted'=>'0')); $search_array = array('school_id'=>$schoolArray[0]->id, 'is_deleted'=>'0'); $data['school_url'] = $this->uri->segment(3); } else if($_POST['school_gallery']!='') { $schoolArray = $this->Common_model->getAllRecords('tbl_schools','id,school_name,school_url',array('school_url'=>$_POST['school_gallery'], 'is_deleted'=>'0'),'id,school_name,school_url'); $search_array = array('school_id'=>$schoolArray[0]->id, 'is_deleted'=>'0'); $data['school_url'] = $_POST['school_gallery']; } // Get gallery details $data['detailsArray'] = $this->Common_model->getAllRecords('su_eventsgallery_albums','id,album_title,album_image,album_url,album_date',$search_array,array('album_date'=>'desc'),'0','200'); // $data['countPhotos'] = $this->Common_model->getAllRecords('su_eventsgallery_images','*',NULL,array('album_date'=>'desc'),'0','200'); $arrSeo = $this->Public_model->getSeo('galleryalbum'); $head['title'] = @$arrSeo['title']; $head['description'] = @$arrSeo['description']; $head['keywords'] = @$arrSeo['keywords']; $this->render('galleryalbum', $head, $data); } /* * Function : videogallery */ public function videogallery($page = 0) { $data = array(); $head = array(); $head['title'] = 'Video Gallery | Sharda Group'; $head['description'] = 'Video Gallery | Sharda Group'; $head['keywords'] = str_replace(" ", ",", $head['title']); // Get video gallery details $data['vgalleryArray'] = $this->Common_model->getAllRecords('su_videos','id,video_name,video_text,youtube_url,status',array('is_deleted'=>'0','status'=>'1'),array('display_order'=>'ASC')); $arrSeo = $this->Public_model->getSeo('videogallery'); $head['title'] = @$arrSeo['title']; $head['description'] = @$arrSeo['description']; $head['keywords'] = @$arrSeo['keywords']; $this->render('video_gallery', $head, $data); } public function imagegallery($page = 0) { $data = array(); $head = array(); $album_id = $this->uri->segment(2); // Get gallery details $data['galleryArray'] = $this->Common_model->getAllRecords('su_eventsgallery_images','id,photo_title,photo_image,photo_url,photo_text,status',array('album_id'=>$album_id,'is_deleted'=>'0')); // Get Gallery Album Details //$albumDetails = $this->Common_model->getCommonSingleRow('su_eventsgallery_albums', array('id'=>$album_id,'is_deleted'=>'0'), $column = 'id,album_title'); $head['title'] = 'Image Gallery | Sharda Group'; $head['description'] = 'Image Gallery | Sharda Group'; $head['keywords'] = 'Image Gallery | Sharda Group'; $arrSeo = $this->Public_model->getSeo('imagegallery'); $head['title'] = @$arrSeo['title']; $head['description'] = @$arrSeo['description']; $head['keywords'] = @$arrSeo['keywords']; $this->load->view('_parts/gallery_header', $head); $this->load->view('gallery', $data); $this->load->view('_parts/gallery_footer'); //$this->render('gallery', $head, $data); } }