<?php
class Template_eshop_admin {
 protected $_ci;
 private $library_src='';
 private $script_head='';
 private $bootstrap_only='';
 private $flexslider='';
 function __construct()
 {
    $this->_ci =&get_instance();
              
    
    $this->_ci->load->library(array('javascript','sysvar'));
	$base=base_url();
	
	$this->bootstrap_only="<link rel='stylesheet' type='text/css' href='$base//assets/bootstrap/css/bootstrap.css'>";
	$this->bootstrap_only.=$this->_ci->jquery->script(base_url().'js/jquery/jquery-1.9.min.js',true);
    $this->bootstrap_only.=$this->_ci->jquery->script(base_url().'assets/bootstrap/js/bootstrap.js',true);
    $this->bootstrap_only.=$this->_ci->jquery->script(base_url().'js/lib.js',true);
    $this->flexslider=$this->_ci->jquery->script(base_url().'assets/flexslider/jquery.flexslider.js',true);
    $this->bootstrap_only.=$this->_ci->jquery->script(base_url().'assets/datepicker/bootstrap-datepicker.js',true);
	$this->bootstrap_only.="<link rel='stylesheet' type='text/css' href='$base//assets/datepicker/datepicker.css'>";
	$themes=$this->_ci->sysvar->getvar('themes','standard');
}

 function display($template,$data=null){
  	$data['library_src']=$this->bootstrap_only;
  	$data['script_head']="";
	$data['file_content']=$template;
	$this->_ci->load->view("eshop/admin/layout",$data);		 
 }
 
}
