function __construct() { parent::__construct(); $this->load->helper('auth'); $this->load->library('pagination'); $this->load->helper('form'); $this->load->helper('url'); if (!isAdminLoggedIn()) { redirect("index.php/admin/admin_login"); } $sess_data = $this->session->userdata('language'); if (!empty($sess_data)) { if ($this->session->userdata('language') == 'english') { $this->lang->load('landing', 'english'); } if ($this->session->userdata('language') == 'arabic') { $this->lang->load('landing', 'arabic'); } } else { $this->session->set_userdata('language', 'english'); $this->lang->load('landing', 'english'); } }
function view_booking($bid) { if (!isAdminLoggedIn()) { redirect("index.php/admin/admin_login"); } $this->load->model('packagemodel', 'package'); $data['bookings'] = $this->package->view_booking($bid); $this->load->view('admin/header'); $this->load->view('admin/view_booking', $data); $this->load->view('admin/footer'); }
<footer> <div class="pull-left"> Copyleft - 2013. Released Under <a href="http://www.gnu.org/licenses/gpl.html" target="_blank">GPLv3</a>.<br /> All Images Are Copyrighted By Their Respective Owners. </div> <div class="pull-right" style="text-align: right;"> <a href="http://www.bgpanel.net/" target="_blank">Bright Game Panel</a> @Admin<br /> Built with <a href="http://getbootstrap.com/" target="_blank">Bootstrap</a>. </div> </footer> </div><!--/container--> <!--Powered By Bright Game Panel--> <?php if (isAdminLoggedIn() == TRUE) { ?> <script type="text/javascript"> $(document).ready(function() { <!-- Header Tooltips --> $('#gototop').tooltip({placement: 'bottom'}); $('#clock').tooltip({placement: 'bottom'}); $('#notificationsPopover').popover({placement: 'bottom', trigger: 'hover'}); $('#me').tooltip({placement: 'bottom'}); $('#logout').tooltip({placement: 'bottom'}); }); <!-- nav-scripts --> function doScript(id, name, action) { if (confirm("Are you sure you want to "+action+" script: "+name+"?")) {
function view_package($pkg_id) { if (!isAdminLoggedIn()) { redirect("index.php/admin/admin_login"); } $this->load->model('country'); $data['country_list'] = $this->country->get_country_ids(); $this->load->model('packagemodel', 'package'); $this->load->model('admin/adminmodel', 'admin'); $data['package_details'] = $this->admin->view_package($pkg_id); $data['images'] = $this->package->get_images($pkg_id); $data['amenities_list'] = $this->admin->fetch_amenities(); $this->load->view('admin/header'); $this->load->view('admin/view_package', $data); $this->load->view('admin/footer'); }