<?php



	class Functions 

	{

		function __construct()

		{

			$this->obj =& get_instance(); 

		}



		//--------------------------------------------------------

		// Paginaiton function 

		public function pagination_config($url,$count,$perpage) 

		{

			$config = array();

			$config["base_url"] = $url;

			$config["total_rows"] = $count;

			$config["per_page"] = $perpage;

			$config['full_tag_open'] = '<ul class="pagination pagination-split">';

			$config['full_tag_close'] = '</ul>';

			$config['prev_link'] = '&lt;';

			$config['prev_tag_open'] = '<li>';

			$config['prev_tag_close'] = '</li>';

			$config['next_link'] = '&gt;';

			$config['next_tag_open'] = '<li>';

			$config['next_tag_close'] = '</li>';

			$config['cur_tag_open'] = '<li class="active"><a href="#">';

			$config['cur_tag_close'] = '</a></li>';

			$config['num_tag_open'] = '<li>';

			$config['num_tag_close'] = '</li>';

			$config['first_tag_open'] = '<li>';

			$config['first_tag_close'] = '</li>';

			$config['last_tag_open'] = '<li>';

			$config['last_tag_close'] = '</li>';



			$config['first_link'] = '&lt;&lt;';

			$config['last_link'] = '&gt;&gt;';

			return $config;

		}



	}







?>