Example #1
0
 private function _adminConstruct()
 {
     $this->load->library('layout');
     //set layout
     $this->layout->setTemplate("layout/admin.php");
     $this->layout->setSkin(base_url() . 'themes/admin/');
     $skin = $this->layout->getSkin();
     // Site global resources
     $this->layout->js($skin . 'js/jquery-1.9.1.min.js');
     $this->layout->js($skin . 'js/admin.js');
     $this->layout->css($skin . 'css/style.css');
     $this->layout->css($skin . 'css/layout.css');
     $this->lang->load('en', 'admin');
     $currentUser = userdata("username");
     $action = $this->uri->segment(2);
     $controller = $this->uri->segment(1);
     if ($controller == "import_data") {
         $currentUser = "******";
     }
     if ($currentUser == 'admin') {
         if ($action == 'login') {
             redirect(site_url('admin'));
         }
     } else {
         if ($action != 'login') {
             redirect(site_url('admin/login'));
         }
     }
 }
Example #2
0
    function staff_permission($account_permission_id = '')
	{
		if(userdata('id')=='1')
		{
			return true;
		}
		else
		{
				$current_staff_account_role_id		=	$this->db->get_where('users',
														array('id'=>userdata('id')))
															->row()->account_role_id;
															
				$current_staff_account_permissions	=	$this->db->get_where('account_role',
																array('id'=>$current_staff_account_role_id))
																	->row()->account_permissions;
				 
				if (in_array($account_permission_id , explode(',' , $current_staff_account_permissions)))
				{
					return true;
				}
				else
				{
					return false;
				}
		}
		
	}  
Example #3
0
 function index()
 {
     if (userdata('admin_logged_in')) {
         redirect($this->admin_link . 'dashboard');
     }
     $data['title'] = $this->title;
     $this->load->view('backadmin/v_login', $data);
 }
Example #4
0
 public static function usuario_ligas_invitables($id)
 {
     $uid = userdata()->get('id');
     return array_filter(UIFacade::ligas(), function ($l) use($uid, $id) {
         return (has_auth('admin') || $l['creador'] == $uid) && !in_array($id, array_map(function ($p) {
             return $p->get('id');
         }, $l['participantes']));
     });
 }
Example #5
0
	function index()
	{
		   if(userdata('id') == 1)
			{	
				$this->load->view('header');			 
				$this->load->view('settings/general_settings');
				$this->load->view('footer');	
			}
		
	}
Example #6
0
 public function index($page = 'index')
 {
     if (!file_exists('application/views/admin_series/' . $page . '.php')) {
         show_404();
     }
     $temp = isset($_GET['rand']) ? $_GET['rand'] : '';
     if (isset($_POST['status'])) {
         $data = $_POST;
         set_userdata('admin_search_series_params', $data);
     } else {
         if (!empty($temp)) {
             unset_userdata('admin_search_series_params');
         }
     }
     $params = userdata('admin_search_series_params');
     //echo "<pre>"; print_r($params);
     $data['params'] = $params;
     $selectedStatus = isset($params['status']) ? intval($params['status']) : -1;
     $selectedCountry = isset($params['country']) ? intval($params['country']) : -1;
     $selectedType = isset($params['type']) ? intval($params['type']) : -1;
     $statusSelectbox = selectBox($this->_config['status'], array('Name' => 'status', 'Selected' => $selectedStatus, 'MainOption' => TRUE));
     $data['statusSelectbox'] = $statusSelectbox;
     $countrySelectbox = selectBox($this->_config['countries'], array('Name' => 'country', 'Selected' => $selectedCountry, 'MainOption' => TRUE));
     $data['countrySelectbox'] = $countrySelectbox;
     $typeSelectbox = selectBox($this->_config['video_type'], array('Name' => 'type', 'Selected' => $selectedType, 'MainOption' => TRUE));
     $data['typeSelectbox'] = $typeSelectbox;
     $offset = isset($_GET['o']) ? intval($_GET['o']) : 0;
     $this->layout->title('List series');
     $whereClause = "1";
     if (isset($params['keyword']) && !empty($params['keyword'])) {
         $keywork = addslashes($params['keyword']);
         $whereClause .= " AND title LIKE '%{$keywork}%' ";
     }
     if (isset($params['status']) && $params['status'] != -1) {
         $whereClause .= " AND status ='{$selectedStatus}' ";
     }
     if (isset($params['country']) && !empty($params['country']) && $params['country'] != -1) {
         $whereClause .= " AND country ='{$selectedCountry}' ";
     }
     if (isset($params['type']) && !empty($params['type']) && $params['type'] != -1) {
         $whereClause .= " AND type ='{$selectedType}' ";
     }
     $total = $this->Series_model->getTotal($whereClause);
     $listObject = $this->Series_model->getRange($whereClause, $offset, ITEM_PER_PAGE);
     $uri = "admin_series/index";
     $data['countries'] = $this->_config['countries'];
     $data['video_type'] = $this->_config['video_type'];
     $data['listObject'] = $listObject;
     $data['total'] = $total;
     $data['max'] = ITEM_PER_PAGE;
     $data['offset'] = $offset;
     $data['uri'] = $uri . '?o=';
     $this->layout->view('admin_series/' . $page, $data);
 }
Example #7
0
 function update_exec()
 {
     $admin_id = $this->input->post('admin_id');
     if ($admin_id == 1) {
         $this->_only_superadmin();
     }
     if ($admin_id != userdata('admin_id')) {
         $this->session->set_flashdata('log', 'Access denied');
         redirect($this->admin_link . 'admin', 'refresh');
     }
     $this->m_admins->update();
     redirect('backadmin/admin');
 }
function user_member($colom = "username")
{
    $ci =& get_instance();
    if (userdata("session_user")) {
        $user = userdata('session_user');
        if (isset($user->{$colom})) {
            return $user->{$colom};
        } else {
            return FALSE;
        }
    } else {
        return FALSE;
    }
}
Example #9
0
 function index()
 {
     $data['title'] = 'Home';
     $data['pageMetaDescription'] = 'webzero.in';
     $data['pageHeading'] = 'Services Home';
     $group = $this->ion_auth->get_groups(array('neglectgroup' => array('admin', 'nogroup'), 'visibility' => TRUE));
     $data['group'] = $group;
     $user_id = userdata('user_id');
     if (isset($_POST['group']) && $this->ion_auth->update_user_group($user_id, $_POST['group'])) {
         $this->session->set_flashdata('message', 'Your user group is update to ' . $data['group'][$_POST['group']]);
         redirect('/');
     }
     $data['css'] = array('<link rel="stylesheet" type="text/css" href="' . base_url() . 'assets/customer/css/style.css"/>');
     $this->template->load('main', 'services', 'services/index', $data);
 }
Example #10
0
	function index()
	{
			//checking permission for staff
			if (!check_staff_permission('opportunities_read'))	
			{
				redirect(base_url('admin/access_denied'), 'refresh');  
			} 
			
		    	$data['opportunities'] = $this->opportunities_model->opportunities_list(userdata('id'));
		    			    	 
				$this->load->view('header');
				$this->load->view('opportunities/index',$data);
				$this->load->view('footer');
			 
	}
Example #11
0
function flash_error()
{
    $ci =& get_instance();
    $flashmsg = userdata('error');
    $html = '';
    if (is_array($flashmsg)) {
        foreach ($flashmsg as $value) {
            $html .= '<li>' . $value . '</li>';
        }
    } else {
        $html = $flashmsg;
    }
    unset_userdata('error');
    return $html;
}
Example #12
0
	function index($customer_id='')
	{
		    	$data['email_list'] = $this->mailbox_model->email_list(userdata('id'),$customer_id);
		    	
		    	$data['sent_email_list'] = $this->mailbox_model->sent_email_list(userdata('id'),$customer_id);
		    	
		    	$data['staffs'] = $this->staff_model->staff_list(); 
				$data['customers'] = $this->customers_model->company_list(); 
		    	
		    	$data['customer_id']=$customer_id;
		    			    	 
				$this->load->view('header');
				$this->load->view('mailbox/index',$data);
				$this->load->view('footer');
			 
	}
Example #13
0
	function logged_calls_list($customer_id)
	{
		
		if($customer_id!="")
		{
			$this->db->where(array('company_id' => $customer_id) ); 
		} 
		if(userdata('id')!='1')
		{
			$this->db->where('resp_staff_id', userdata('id'));
		}
		
        $this->db->order_by("id", "desc");		
        $this->db->select('calls.*');
        $this->db->from('calls');
        return $this->db->get()->result();
	} 
Example #14
0
    function send_email()
    {
    	
    	$count_id = count($this->input->post('to_email_id'));
    	 
		for($i=0;$i<$count_id;$i++)
		{ 
    		$email_details = array( 
	            'assign_customer_id' => $this->input->post('assign_customer_id'),
	            'to' => $this->input->post('to_email_id')[$i],
	            'from' => userdata('id'),
	            'subject' => $this->input->post('subject'),
	            'message' => $this->input->post('message'),
	            'date_time' => strtotime( date('d F Y g:i a') ),
	            'ip_address' => $this->input->server('REMOTE_ADDR')
	            );
	                               
	       	 $mail_res= $this->db->insert('emails',$email_details);
	     }
		 return $mail_res;
	}
Example #15
0
 public function index()
 {
     $this->data['pageHeading'] = ucfirst($this->router->fetch_class());
     $this->data['pageMetaDescription'] = ucfirst($this->router->fetch_class());
     $sites_id = $this->sitemodel->getSiteId($this->ion_auth->get_user_id());
     $this->data['message'] = '';
     if (!empty($_POST)) {
         $this->pagemodel->updatePageData($_POST);
         $this->data['message'] = '<div class="alert alert-success">Page seo information successfuly updated.</br>Please re-publish your page to see the changes!</div>';
     }
     if (!$sites_id) {
         redirect(site_url('sites/create'), 'location');
     } else {
         userdata('redirect_url', 'seo');
         $this->data['siteData'] = $this->sitemodel->getSite($sites_id);
         $this->data['pagesData'] = $this->pagemodel->getPageData($sites_id);
         $this->data['css'] = array('<link href="' . base_url() . 'assets/sites/css/style.css" rel="stylesheet">', '<style>header{padding:0;}</style>');
         $this->data['js'] = array('<script type="text/javascript" src="' . base_url() . 'assets/js/jquery.blockUI.js"></script>');
         $this->template->load('main', 'seo', 'index', $this->data);
     }
 }
Example #16
0
                </div>
            </nav>
        </header>
        <div class="wrapper row-offcanvas row-offcanvas-left">
            <aside class="left-side sidebar-offcanvas">
                <section class="sidebar">
                    <div class="user-panel">
                        <div class="pull-left image">
                            <img src="<?php 
echo userdata('avatar') ? base_url('elements') . '/images/uploads/' . userdata('user_id') . '/' . userdata('avatar') . '?' . time() : base_url('assets') . '/sites/images/dude.png?' . time();
?>
" class="img-circle" />
                        </div>
                        <div class="pull-left info">
                            <p><?php 
echo ($fullName = ucwords(userdata('username'))) ? $fullName : 'Welcome';
?>
</p>
                        </div>
                    </div>
                    <ul class="sidebar-menu">
                        <?php 
if ($this->ion_auth->in_group(array('business', 'students', 'ecommerce', 'designer'))) {
    include_once 'user_menu.php';
} elseif ($this->ion_auth->in_group(array('employer'))) {
    include_once 'recruiter_menu.php';
} elseif ($this->ion_auth->in_group(array('admin'))) {
    include_once 'admin_menu.php';
}
?>
                    </ul>
Example #17
0
} elseif (isset($_GET['fave'])) {
    if (empty($_GET['fave']) || !is_numeric($_GET['fave'])) {
        header('Content-Type: image/png');
        readfile('images/frown.png');
        exit;
    }
    $trainer = (int) $_GET['fave'];
    $userdata = userdata($trainer);
    if (empty($userdata[0]['fave'])) {
        header('Content-Type: image/png');
        readfile('images/nopoke.png');
    } else {
        header('Content-Type: image/gif');
        readfile('img/anim2/' . (is_shiny($userdata[0]['fave']) ? 'shiny/' : '') . sprintf("%03d", round($userdata[0]['fave'])) . '.gif');
    }
} elseif (isset($_GET['faveback'])) {
    if (empty($_GET['faveback']) || !is_numeric($_GET['faveback'])) {
        header('Content-Type: image/png');
        readfile('images/frown.png');
        exit;
    }
    $trainer = (int) $_GET['faveback'];
    $userdata = userdata($trainer);
    if (empty($userdata[0]['fave'])) {
        header('Content-Type: image/png');
        readfile('images/nopoke.png');
    } else {
        header('Content-Type: image/png');
        readfile('img/back/' . (is_shiny($userdata[0]['fave']) ? 'shiny/' : '') . sprintf("%03d", round($userdata[0]['fave'])) . '.png');
    }
}
Example #18
0
	function index()
	{
    	$data['salesteams']=$this->dashboard_model->total_salesteams();
    	$data['leads']=$this->dashboard_model->total_leads();		    	
    	$data['opportunities']=$this->dashboard_model->total_opportunities();
    	$data['products']=$this->dashboard_model->total_products();	
    	$data['quotations']=$this->dashboard_model->total_quotations();
    	$data['salesorders']=$this->dashboard_model->total_salesorders();
    	$data['calls']=$this->dashboard_model->total_calls();
    	$data['customers']=$this->dashboard_model->total_customers();
    	$data['meetings']=$this->dashboard_model->total_meetings();    
    	$data['emails']=$this->dashboard_model->total_email();
    	$data['contracts']=$this->dashboard_model->total_contracts();
    		
    	/*Invoicing Details*/
    	$data['open_invoice_total'] = $this->invoices_model->open_invoices_total_collection();
		    	
    	$data['overdue_invoices_total'] = $this->invoices_model->overdue_invoices_total_collection();
    	
    	$data['paid_invoices_total'] = $this->invoices_model->paid_invoices_total_collection();
    	
    	$data['invoices_total_collection'] = $this->invoices_model->invoices_total_collection();
    	
    	/*SALES STATISTICS*/
    	$data['sales_today_total'] = $this->dashboard_model->sales_today_total();
    	
    	$data['sales_yesterday_total'] = $this->dashboard_model->sales_yesterday_total();
    	
    	$data['sales_this_week_total'] = $this->dashboard_model->sales_this_week_total();
    	
    	$data['sales_this_month_total'] = $this->dashboard_model->sales_this_month_total();
    	
    	$data['top_selling_team'] = $this->dashboard_model->top_selling_team();
    	
    	$data['salesteams_performance_list'] = $this->dashboard_model->salesteams_performance_list();
    	
    	/*LIST*/
    	
    	$salesteam_id = $this->dashboard_model->get_staff_salesteam(userdata('id'));
    	
    	$data['staff_leads_list'] = $this->dashboard_model->staff_leads_list(userdata('id'));  	  
    	
    	$data['staff_leads_by_team'] = $this->dashboard_model->staff_leads_by_team($salesteam_id);
    	
    	$data['staff_opportunities_list'] = $this->dashboard_model->staff_opportunities_list(userdata('id'));  	  
    	
    	$data['staff_opportunities_by_team'] = $this->dashboard_model->staff_opportunities_by_team($salesteam_id);
    
    	$data['staff_call_log_list'] = $this->dashboard_model->staff_call_log_list(userdata('id'));
    	
    	$data['staff_contracts_list'] = $this->dashboard_model->staff_contracts_list(userdata('id'));  	  
    
    	$data['staff_quotations_list'] = $this->dashboard_model->staff_quotations_list(userdata('id'));  	  
    	
    	$data['staff_quotations_by_team'] = $this->dashboard_model->staff_quotations_by_team($salesteam_id);
    	
    	$data['staff_invoices_list'] = $this->dashboard_model->staff_invoices_list(userdata('id'));  	  
    	
    	$data['staff_invoices_by_team'] = $this->dashboard_model->staff_invoices_by_team($salesteam_id);
    	
    	/*EVENTS*/
    	$data['staff_leads_event_list'] = $this->dashboard_model->staff_leads_event_list(userdata('id'));
    	
    	$data['staff_opportunities_event_list'] = $this->dashboard_model->staff_opportunities_event_list(userdata('id'));
    	
    	$data['staff_logged_call_event_list'] = $this->dashboard_model->staff_logged_call_event_list(userdata('id'));
    	
    	$data['staff_meetings_event_list'] = $this->dashboard_model->staff_meetings_event_list(userdata('id'));
    	$data['staff_contracts_event_list'] = $this->dashboard_model->staff_contracts_event_list(userdata('id'));
    	
		$this->load->view('header');			 
		$this->load->view('dashboard/index',$data);
		$this->load->view('footer');	
			  
	}
Example #19
0
	function all_meetings_list()
	{
		
		if(userdata('id')!='1')
		{
			$this->db->where('responsible', userdata('id'));
		} 
        $this->db->order_by("id", "desc");		
        $this->db->select('meetings.*');
        $this->db->from('meetings'); 
        
        return $this->db->get()->result();
	} 
Example #20
0
 public function upload_avatar()
 {
     $userID = userdata('user_id');
     //if the upload path does not exist, create it
     if (!file_exists('./' . $this->config->item('images_uploadDir') . '/' . $userID)) {
         mkdir('./' . $this->config->item('images_uploadDir') . '/' . $userID, 0777, true);
     }
     $config['upload_path'] = './' . $this->config->item('images_uploadDir') . '/' . $userID . '/';
     $config['allowed_types'] = $this->config->item('upload_allowed_types');
     $config['max_size'] = $this->config->item('upload_max_size');
     $config['max_width'] = $this->config->item('upload_max_width');
     $config['max_height'] = $this->config->item('upload_max_height');
     $this->load->library('upload', $config);
     if (!$this->upload->do_upload('uploadfile')) {
         $return['status'] = 'error';
         $return['message'] = html_escape($this->upload->display_errors());
     } else {
         $imageData = $this->upload->data();
         $data['avatar'] = $imageData['raw_name'] . $imageData['file_ext'];
         if ($this->ion_auth->update($userID, $data)) {
             $avatar = userdata('avatar');
             if (!empty($avatar)) {
                 unlink($config['upload_path'] . $avatar);
             }
             $this->session->unset_userdata('avatar');
             $this->session->set_userdata(array('avatar' => $data['avatar']));
             $return['status'] = 'success';
             $return['message'] = $data['avatar'];
         }
     }
     echo json_encode($return);
 }
Example #21
0
 public function delete_block_content()
 {
     $userID = userdata('user_id');
     if (isset($_POST['content_id'])) {
         if ($this->sitemodel->deleteblockcontent($_POST['content_id'])) {
             $block_data = $this->sitemodel->get_block_content($_POST['site_id'], $userID);
             $return = array();
             $return['responseCode'] = 1;
             $return['responseHTML'] = $this->load->view('partials/loadcontent', array('block_content' => $block_data), true);
             die(json_encode($return));
         } else {
             return FALSE;
         }
     }
 }
Example #22
0
					<img src="<?php 
        echo userdata(avatar, $muro[id_autor]);
        ?>
" alt="">
				</a>
				<!-- Actividad / Publicacion -->
				<div class="gadget-ct activity-content">
					<div class="activity-head clearfix"> <!-- Usuario -->
						<?php 
        if ($muro[tipo] == 5) {
            $var = "a creado un nuevo vox.";
        }
        ?>
					
						<a href="#" class="activity-user-name"><?php 
        echo userdata(usuario_nombre, $muro[id_autor]);
        ?>
 </a>
						<?php 
        if ($muro[tipo] == 5) {
            echo $var;
        }
        ?>
						<span>
						
						
						</span>
						<span class="activity-time-ago"><?php 
        echo timeago(strtotime($muro['fecha']));
        ?>
</span>
Example #23
0
<?php

include 'class.ezpdf.php';
include 'db_connection.php';
$v = base64_decode($_REQUEST['v']);
$v = explode("-", $v);
if ($v[2] == md5(date("mdy")) && check_data($v[3], $v[0])) {
    $datatest = check_data($v[3], $v[0]);
    $userdata = userdata($v[0]);
    $coursedata = coursedata($v[1]);
    stampa($userdata, $coursedata, $datatest);
} else {
    echo "Stampa non permessa";
}
function idelemento_to_idcorso($idelemento)
{
    $query = "\n\tSELECT\n\t\tjos_tt_corsi.id  as result\n\tFROM\n\t\tjos_tt_corsi\n\tLEFT JOIN jos_tt_moduli ON jos_tt_moduli.id_corso = jos_tt_corsi.id\n\tLEFT JOIN jos_tt_elementi ON jos_tt_elementi.id_modulo = jos_tt_moduli.id\n\tWHERE\n\t\tjos_tt_elementi.id = '" . $idelemento . "'\n\tLIMIT 1\n\t";
    $db_query = mysql_query($query) or die(mysql_error());
    $riga = mysql_fetch_array($db_query);
    return $riga['result'];
}
function check_data($id_elemento, $id_utente)
{
    $query = "SELECT\njos_quiz_r_student_quiz.c_date_time,\nDATE_FORMAT(jos_quiz_r_student_quiz.c_date_time, '%d/%m/%Y') as timemodified\nFROM\njos_quiz_r_student_quiz\nWHERE\njos_quiz_r_student_quiz.c_quiz_id = '" . $id_elemento . "' AND\njos_quiz_r_student_quiz.c_student_id = '" . $id_utente . "' AND\njos_quiz_r_student_quiz.c_passed = 1\n";
    /*
    	$query="
    			SELECT
    				DATE_FORMAT(jos_tt_track.data, '%d/%m/%Y') as timemodified
    			FROM
    				jos_tt_track
    			WHERE
Example #24
0
                        <th><?php echo $this->lang->line('email'); ?></th>
                        <th><?php echo $this->lang->line('register_time'); ?></th>
                        <th><?php echo $this->lang->line('options'); ?></th>     
                      </tr>
                    </thead>
                    <tbody>
                      
                      <?php if( ! empty($staffs) ){?>
					    <?php foreach( $staffs as $staff){ ?>
	                      <tr id="staff_id_<?php echo $staff->id; ?>">
	                        <td><?php echo $staff->first_name.' '.$staff->last_name; ?></td>
	                        <td><?php echo $staff->email; ?></td>
	                        <td><?php echo date('d F Y g:i a',$staff->register_time); ?></td>
	                        <td>
	                        <?php if (check_staff_permission('staff_write')){?>
	                        <a href="<?php if(userdata('id')==$staff->id){echo base_url('admin/account_settings/');}else{ echo base_url('admin/staff/update/'.$staff->id);}?>" class="edit btn btn-sm btn-default dlt_sm_table"><i class="icon-note"></i></a> 
	                        <?php }?>
	                        
	                        <?php if (check_staff_permission('staff_delete')){?>
	                        <a href="javascript:void(0)" class="delete btn btn-sm btn-danger dlt_sm_table" data-toggle="modal" data-target="#modal-basic<?php echo $staff->id; ?>"><i class="glyphicon glyphicon-trash"></i></a>
	                        <?php }?>
	                        </td> 
	                      </tr>
	                      <div class="modal fade" id="modal-basic<?php echo $staff->id; ?>" tabindex="-1" role="dialog" aria-hidden="true">
            				<div class="modal-dialog">
              					<div class="modal-content">
					                <div class="modal-header">
					                  <button type="button" class="close" data-dismiss="modal" aria-hidden="true"><i class="icons-office-52"></i></button>
					                  <h4 class="modal-title"><strong>Confirm</strong></h4>
					                </div>
					                <div class="modal-body">
Example #25
0
?>
";
            var domain_ok = "<?php 
echo $siteData['site']->domain_ok == 1 ? 1 : 0;
?>
";
            var display_ecom = '<?php 
echo userdata('eccommerce') == 'inactive' ? 'no' : 'yes';
?>
';
            var plan = '<?php 
echo userdata('plan_id');
?>
';
            var pdf_flag = <?php 
$p_flag = userdata('pdf_path');
if (!empty($p_flag)) {
    echo 1;
} else {
    echo 0;
}
?>
;
<?php 
if (isset($siteData)) {
    ?>
                var siteID = <?php 
    echo $siteData['site']->sites_id;
    ?>
;
<?php 
Example #26
0
<?php 
} else {
    ?>
<li><a <?php 
    echo userdata('plan_id') != 1 ? 'href="' . site_url('resume-settings') . '"' : 'data-href="' . site_url('account/plans') . '" data-toggle="modal" data-target="#confirm-acc-upgrad"';
    ?>
><i class="glyphicon glyphicon-share"></i> <span>Become Popular</span></a></li>
<?php 
}
?>
<li><a href="<?php 
echo site_url('account/plans');
?>
"><i class="glyphicon glyphicon-briefcase"></i> <span>Account</span></a></li>
<li><a <?php 
echo userdata('plan_id') != 1 ? 'href="' . site_url('domain') . '"' : 'data-href="' . site_url('account/plans') . '" data-toggle="modal" data-target="#confirm-acc-upgrad"';
?>
><i class="glyphicon glyphicon-globe"></i> <span>Premium Domain</span></a></li>
<li><a <?php 
echo userdata('plan_id') != 1 ? 'href="' . site_url('services') . '"' : 'data-href="' . site_url('account/plans') . '" data-toggle="modal" data-target="#confirm-acc-upgrad"';
?>
><i class="glyphicon glyphicon-bullhorn"></i> <span>Support</span></a></li>
<?php 
if ($this->ion_auth->in_group('ecommerce') && userdata('eccommerce') != 'inactive') {
    ?>
    <li><a href="<?php 
    echo site_url('ecomreport');
    ?>
"><i class="glyphicon glyphicon-briefcase"></i> <span>Ecommerce Report</span></a></li>
<?php 
}
Example #27
0
 public function imageDelete()
 {
     if (isset($_POST['bucket']) && isset($_POST['uri'])) {
         $response = $this->s3->deleteObject($_POST['bucket'], $_POST['uri']);
         if ($response) {
             $user_id = userdata('user_id');
             $temp = array();
             $temp['header'] = $this->lang->line('assets_imageDelete_heading');
             $temp['content'] = $this->lang->line('assets_imageDeleteAjax_success_message');
             $exp_array = explode('/', $_POST['uri']);
             $media_name = end($exp_array);
             $uri = $exp_array[0] . '/' . $exp_array[1];
             $this->media_storage_model->deleteMedia($media_name, $user_id);
             $userImages = $this->s3->getBucket($_POST['bucket'], $uri);
             if ($userImages) {
                 $return['myImages'] = $this->load->view('partials/myimagetab', array('userImages' => $userImages, 'bucket' => $_POST['bucket']), true);
             } else {
                 $return['myImages'] = '<div class="alert alert-info">
                                         <button type="button" class="close fui-cross" data-dismiss="alert"></button>
                                         ' . $this->lang->line('modal_imagelibrary_message_noimages') . '
                                     </div>';
             }
             $return['responseCode'] = 1;
             $return['responseHTML'] = $this->load->view('partials/success', array('data' => $temp), true);
             die(json_encode($return));
         } else {
             $temp = array();
             $temp['header'] = $this->lang->line('assets_imageDelete_heading');
             $temp['content'] = $this->lang->line('assets_imageDeleteAjax_error1_message');
             $return['responseCode'] = 0;
             $return['responseHTML'] = $this->load->view('partials/error', array('data' => $temp), true);
             die(json_encode($return));
         }
     } else {
         $temp = array();
         $temp['header'] = $this->lang->line('assets_imageDelete_heading');
         $temp['content'] = $this->lang->line('assets_imageDeleteAjax_error1_message');
         $return['responseCode'] = 0;
         $return['responseHTML'] = $this->load->view('partials/error', array('data' => $temp), true);
         die(json_encode($return));
     }
 }
    function content_55363f2189a018_62519913($_smarty_tpl)
    {
        ?>
<!DOCTYPE html>
<html lang="en">

<meta http-equiv="content-type" content="text/html;charset=UTF-8"/>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1, maximum-scale=1">
    <title>PT Medika Sejahtera</title>

    <?php 
        echo css('bootstrap.min.css');
        ?>

    <?php 
        echo css('londinium-theme.css');
        ?>

    <?php 
        echo css('styles.css');
        ?>

    <?php 
        echo css('icons.css');
        ?>

    <?php 
        echo css('jqClock.css');
        ?>

    
          

    <?php 
        echo '<script';
        ?>
 type="text/javascript"
            src="<?php 
        echo theme_url();
        ?>
ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"><?php 
        echo '</script';
        ?>
>
    <?php 
        echo '<script';
        ?>
 type="text/javascript"
            src="<?php 
        echo theme_url();
        ?>
ajax.googleapis.com/ajax/libs/jqueryui/1.10.2/jquery-ui.min.js"><?php 
        echo '</script';
        ?>
>
    <?php 
        echo '<script';
        ?>
 type="text/javascript"
            src="<?php 
        echo theme_url();
        ?>
ajax.googleapis.com/ajax/libs/jquery/1.10.1/jqClock.min.js"><?php 
        echo '</script';
        ?>
>
    <link rel="stylesheet" type="text/css" href="<?php 
        echo theme_url();
        ?>
css/print.css" media="print" />
    <?php 
        echo js('plugins/charts/sparkline.min.js');
        ?>


    <?php 
        echo js('plugins/forms/uniform.min.js');
        ?>

    <?php 
        echo js('plugins/forms/select2.min.js');
        ?>

    <?php 
        echo js('plugins/forms/inputmask.js');
        ?>

    <?php 
        echo js('plugins/forms/autosize.js');
        ?>

    <?php 
        echo js('plugins/forms/inputlimit.min.js');
        ?>

    <?php 
        echo js('plugins/forms/listbox.js');
        ?>

    <?php 
        echo js('plugins/forms/multiselect.js');
        ?>

    <?php 
        echo js('plugins/forms/validate.min.js');
        ?>

    <?php 
        echo js('plugins/forms/tags.min.js');
        ?>

    <?php 
        echo js('plugins/forms/switch.min.js');
        ?>


    <?php 
        echo js('plugins/forms/uploader/plupload.full.min.js');
        ?>

    <?php 
        echo js('plugins/forms/uploader/plupload.queue.min.js');
        ?>


    <?php 
        echo js('plugins/forms/wysihtml5/wysihtml5.min.js');
        ?>

    <?php 
        echo js('plugins/forms/wysihtml5/toolbar.js');
        ?>


    <?php 
        echo js('plugins/interface/daterangepicker.js');
        ?>

    <?php 
        echo js('plugins/interface/fancybox.min.js');
        ?>

    <?php 
        echo js('plugins/interface/moment.js');
        ?>

    <?php 
        echo js('plugins/interface/jgrowl.min.js');
        ?>

    <?php 
        echo js('plugins/interface/datatables.min.js');
        ?>

    <?php 
        echo js('plugins/interface/colorpicker.js');
        ?>

    <?php 
        echo js('plugins/interface/fullcalendar.min.js');
        ?>

    <?php 
        echo js('plugins/interface/timepicker.min.js');
        ?>


    <?php 
        echo js('bootstrap.min.js');
        ?>

    <?php 
        echo js('application.js');
        ?>

    
</head>

<body>

<!-- Navbar -->
<div class="navbar navbar-inverse" role="navigation">
    <div class="navbar-header">
        <a class="navbar-brand" href="#"><img src="<?php 
        echo theme_url('images/logo.png');
        ?>
" alt="Londinium"></a>
        <a class="sidebar-toggle"><i class="icon-paragraph-justify2"></i></a>
        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-icons">
            <span class="sr-only">Toggle navbar</span>
            <i class="icon-grid3"></i>
        </button>
        <button type="button" class="navbar-toggle offcanvas">
            <span class="sr-only">Toggle navigation</span>
            <i class="icon-paragraph-justify2"></i>
        </button>
    </div>
    <ul class="nav navbar-nav navbar-right collapse" id="navbar-icons">
        <li>
            <a href="#" id="clock"></a>
        </li>
        <li>
            <a href="#"> <strong><?php 
        echo userdata('name');
        ?>
 / <?php 
        echo userdata('name_group');
        ?>
</strong></a>
        </li>
        <li class="dropdown">
            <a class="dropdown-toggle icons-right" data-toggle="dropdown">
                <i class="icon-settings pull-right"></i>
            </a>
            <ul class="dropdown-menu dropdown-menu-right icons-right">
                <li><a href="#"><i class="icon-user"></i> Profile</a></li>
                <li><a href="#"><i class="icon-cog"></i> Settings</a></li>
                <li><a href="<?php 
        echo base_url('login/logout');
        ?>
"><i class="icon-exit"></i> Logout</a></li>
            </ul>
        </li>
    </ul>
</div>
<!-- /navbar -->


<!-- Page container -->
<div class="page-container">


    <!-- Sidebar -->
    <div class="sidebar">
        <div class="sidebar-content">

            <!-- Main navigation -->
            <?php 
        echo userdata('menu');
        ?>

            
                
                    
                        
                            
                            
                        
                        
                            
                                
                                    
                                        
                                            
                                            
                                        
                                    
                                
                            
                        
                    
                
            
            <!-- /main navigation -->

        </div>
    </div>
    <!-- /sidebar -->


    <!-- Page content -->
    <div class="page-content">

        

    <?php 
        if ($_smarty_tpl->tpl_vars['success']->value) {
            ?>
        <div class="callout callout-success fade in">
            <button type="button" class="close" data-dismiss="alert">×</button>
            <p><?php 
            echo $_smarty_tpl->tpl_vars['success']->value;
            ?>
</p>
        </div>
    <?php 
        }
        ?>
        <div class="panel panel-default">

            <div class="panel-heading"><h6 class="panel-title">Hutang</h6></div>

            <div class="panel-body">
                <div class="block-inner">
                    <h6 class="heading-hr">
                        <i class="icon-coin"></i> Hutang Info <small class="display-block">Informasi umum tentang proposal</small>
                    </h6>
                </div>

                <form action="<?php 
        echo current_url();
        ?>
" method="post" role="form">
                    <div class="form-group">
                        <label>Hutang:</label>
                        <div class="row">
                            <div class="col-md-4">
                                <?php 
        echo form_dropdown('date', $_smarty_tpl->tpl_vars['date']->value, set_value('date'), 'data-placeholder="Date" class="select-full" tabindex="1" autofocus');
        ?>

                                <?php 
        if (form_error('date')) {
            ?>
                                    <span class="label label-block label-danger text-left"><?php 
            echo form_error('date');
            ?>
</span>
                                <?php 
        }
        ?>
                            </div>
                            <div class="col-md-8">
                                    <input type="submit" value="Pilih" class="btn btn-success">
                            </div>
                        </div>
                    </div>
                </form>

                <hr>




            </div><!-- /panel body -->



            <div class="table-responsive pre-scrollable">
                <table class="table table-striped table-bordered">
                    <thead>
                    <tr>
                        <th>No</th>
                        <th>No Faktur</th>
                        <th>Nama Principal</th>
                        <th>Tanggal Transaksi</th>
                        <th>Jatuh Tempo</th>
                        <th>Tagihan</th>
                        <th>Terbayar</th>
                        <th>Hutang</th>
                        <th>Bayar</th>
                    </tr>
                    </thead>
                    <tbody>

                    <?php 
        $_smarty_tpl->tpl_vars['total'] = new Smarty_variable(0, null, 0);
        ?>
                    <?php 
        $_smarty_tpl->tpl_vars['val'] = new Smarty_variable(1, null, 0);
        ?>
                    <?php 
        $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['key']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['po']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['key']->key => $_smarty_tpl->tpl_vars['key']->value) {
            $_smarty_tpl->tpl_vars['key']->_loop = true;
            ?>

                        <tr>
                            <td><?php 
            echo $_smarty_tpl->tpl_vars['val']->value;
            ?>
</td>
                            <td><?php 
            echo $_smarty_tpl->tpl_vars['key']->value->id_purchase_order;
            ?>
</td>
                            <td><?php 
            echo $_smarty_tpl->tpl_vars['key']->value->name;
            ?>
</td>
                            <td><?php 
            echo $_smarty_tpl->tpl_vars['key']->value->date;
            ?>
</td>
                            <td><?php 
            echo $_smarty_tpl->tpl_vars['key']->value->due_date;
            ?>
</td>
                            <td>Rp <?php 
            echo number_format($_smarty_tpl->tpl_vars['key']->value->grand_total, 0);
            ?>
</td>
                            <td>Rp <?php 
            echo number_format($_smarty_tpl->tpl_vars['key']->value->paid, 0);
            ?>
</td>
                            <td>Rp <?php 
            echo number_format($_smarty_tpl->tpl_vars['key']->value->grand_total - $_smarty_tpl->tpl_vars['key']->value->paid, 0);
            ?>
</td>
                            <td>
                                <div class="table-controls">
                                    <a href="<?php 
            echo base_url('credit/bill/');
            ?>
/<?php 
            echo $_smarty_tpl->tpl_vars['key']->value->id_purchase_order;
            ?>
"
                                       class="btn btn-link btn-icon btn-xs tip" title="Bayar">
                                        <i class="icon-coin"></i>
                                    </a>
                                    <a href="<?php 
            echo base_url('credit/detail/');
            ?>
/<?php 
            echo $_smarty_tpl->tpl_vars['key']->value->id_purchase_order;
            ?>
"
                                       class="btn btn-link btn-icon btn-xs tip" title="Detail">
                                        <i class="icon-list"></i>
                                    </a>

                                </div>
                            </td>
                        </tr>
                        <?php 
            $_smarty_tpl->tpl_vars['val'] = new Smarty_variable($_smarty_tpl->tpl_vars['val']->value + 1, null, 0);
            ?>
                        <?php 
            $_smarty_tpl->tpl_vars['total'] = new Smarty_variable($_smarty_tpl->tpl_vars['total']->value + ($_smarty_tpl->tpl_vars['key']->value->grand_total - $_smarty_tpl->tpl_vars['key']->value->paid), null, 0);
            ?>
                    <?php 
        }
        ?>

                    </tbody>
                </table>
            </div>

            <div class="panel-body">

                <div class="col-sm-6">
                    <table class="table">
                        <tbody>
                        <tr>
                            <th>Total Hutang Bulan " <?php 
        echo set_value('date');
        ?>
 ":</th>
                            <td class="text-right">Rp <?php 
        echo number_format($_smarty_tpl->tpl_vars['total']->value, 0);
        ?>
</td>
                        </tr>
                        <tr>
                            <th>Total Hutang:</th>
                            <td class="text-right"><h6>Rp <?php 
        echo number_format($_smarty_tpl->tpl_vars['credit_total']->value, 0);
        ?>
</h6></td>
                        </tr>
                        </tbody>
                    </table>

                </div>
                
                


            </div>


        </div><!-- /default panel -->



        <!-- Footer -->
        <div class="footer clearfix">
            <div class="pull-left">&copy; 2015. Copyrights <a href="">Nanomites</a></div>
            <div class="pull-right icons-group">
                <a href="#"><i class="icon-arrow-up5"></i></a>
            </div>
        </div>
        <!-- /footer -->


    </div>
    <!-- /page content -->
    <div style="display: none;">

        
    </div>
    <?php 
        echo js('form/custom.js');
        ?>

</div>
<!-- /content -->

</body>
</html><?php 
    }
Example #29
0
				<div class="vox-stats clearfix">
					<a class="vox-likes" id="like_<?php 
    echo $vox["id"];
    ?>
" onclick="javascript:marcar(<?php 
    echo $vox["id"];
    ?>
);"><?php 
    echo $vox["marcas"];
    ?>
</a>
					<?php 
    $resultado = mysql_query("SELECT * FROM comentarios WHERE id_vox = '{$vox['id']}'");
    $var = mysql_num_rows($resultado);
    ?>
					<a class="vox-comments" href="#"><?php 
    echo $var;
    ?>
</a>
					<a class="vox-author" href="perfil.php?id=<?php 
    echo $vox["id_autor"];
    ?>
"><?php 
    echo userdata(usuario_nombre, $vox["id_autor"]);
    ?>
</a>
				</div>
			</li>
			<?php 
}
$_SESSION["cantidadcargadas"] += 3;
    function content_5538808ca22d85_28239982($_smarty_tpl)
    {
        ?>
<!DOCTYPE html>
<html lang="en">

<meta http-equiv="content-type" content="text/html;charset=UTF-8"/>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1, maximum-scale=1">
    <title>PT Medika Sejahtera</title>


    <?php 
        echo css('bootstrap.min.css');
        ?>

    <?php 
        echo css('londinium-theme.css');
        ?>

    <?php 
        echo css('styles.css');
        ?>

    <?php 
        echo css('icons.css');
        ?>

    <?php 
        echo css('jqClock.css');
        ?>

    <link href="http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700&amp;subset=latin,cyrillic-ext"
          rel="stylesheet" type="text/css">

    <?php 
        echo '<script';
        ?>
 type="text/javascript"
            src="<?php 
        echo theme_url();
        ?>
ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"><?php 
        echo '</script';
        ?>
>
    <?php 
        echo '<script';
        ?>
 type="text/javascript"
            src="<?php 
        echo theme_url();
        ?>
ajax.googleapis.com/ajax/libs/jqueryui/1.10.2/jquery-ui.min.js"><?php 
        echo '</script';
        ?>
>
    <?php 
        echo '<script';
        ?>
 type="text/javascript"
            src="<?php 
        echo theme_url();
        ?>
ajax.googleapis.com/ajax/libs/jquery/1.10.1/jqClock.min.js"><?php 
        echo '</script';
        ?>
>

    <?php 
        echo js('plugins/charts/sparkline.min.js');
        ?>


    <?php 
        echo js('plugins/forms/uniform.min.js');
        ?>

    <?php 
        echo js('plugins/forms/select2.min.js');
        ?>

    <?php 
        echo js('plugins/forms/inputmask.js');
        ?>

    <?php 
        echo js('plugins/forms/autosize.js');
        ?>

    <?php 
        echo js('plugins/forms/inputlimit.min.js');
        ?>

    <?php 
        echo js('plugins/forms/listbox.js');
        ?>

    <?php 
        echo js('plugins/forms/multiselect.js');
        ?>

    <?php 
        echo js('plugins/forms/validate.min.js');
        ?>

    <?php 
        echo js('plugins/forms/tags.min.js');
        ?>

    <?php 
        echo js('plugins/forms/switch.min.js');
        ?>


    <?php 
        echo js('plugins/forms/uploader/plupload.full.min.js');
        ?>

    <?php 
        echo js('plugins/forms/uploader/plupload.queue.min.js');
        ?>


    <?php 
        echo js('plugins/forms/wysihtml5/wysihtml5.min.js');
        ?>

    <?php 
        echo js('plugins/forms/wysihtml5/toolbar.js');
        ?>


    <?php 
        echo js('plugins/interface/daterangepicker.js');
        ?>

    <?php 
        echo js('plugins/interface/fancybox.min.js');
        ?>

    <?php 
        echo js('plugins/interface/moment.js');
        ?>

    <?php 
        echo js('plugins/interface/jgrowl.min.js');
        ?>

    <?php 
        echo js('plugins/interface/datatables.min.js');
        ?>

    <?php 
        echo js('plugins/interface/colorpicker.js');
        ?>

    <?php 
        echo js('plugins/interface/fullcalendar.min.js');
        ?>

    <?php 
        echo js('plugins/interface/timepicker.min.js');
        ?>


    <?php 
        echo js('bootstrap.min.js');
        ?>

    <?php 
        echo js('application.js');
        ?>

    
</head>

<body>

<!-- Navbar -->
<div class="navbar navbar-inverse" role="navigation">
    <div class="navbar-header">
        <a class="navbar-brand" href="#"><img src="<?php 
        echo theme_url('images/logo.png');
        ?>
" alt="Londinium"></a>
        <a class="sidebar-toggle"><i class="icon-paragraph-justify2"></i></a>
        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-icons">
            <span class="sr-only">Toggle navbar</span>
            <i class="icon-grid3"></i>
        </button>
        <button type="button" class="navbar-toggle offcanvas">
            <span class="sr-only">Toggle navigation</span>
            <i class="icon-paragraph-justify2"></i>
        </button>
    </div>
    <ul class="nav navbar-nav navbar-right collapse" id="navbar-icons">
        <li>
            <a href="#" id="clock"></a>
        </li>
        <li>
            <a href="#"> <strong><?php 
        echo userdata('name');
        ?>
 / <?php 
        echo userdata('name_group');
        ?>
</strong></a>
        </li>
        <li class="dropdown">
            <a class="dropdown-toggle icons-right" data-toggle="dropdown">
                <i class="icon-settings pull-right"></i>
            </a>
            <ul class="dropdown-menu dropdown-menu-right icons-right">
                <li><a href="#"><i class="icon-user"></i> Profile</a></li>
                <li><a href="#"><i class="icon-cog"></i> Settings</a></li>
                <li><a href="<?php 
        echo base_url('login/logout');
        ?>
"><i class="icon-exit"></i> Logout</a></li>
            </ul>
        </li>
    </ul>
</div>
<!-- /navbar -->


<!-- Page container -->
<div class="page-container">


    <!-- Sidebar -->
    <div class="sidebar">
        <div class="sidebar-content">

            <!-- Main navigation -->
            <ul class="navigation">
                <?php 
        $_smarty_tpl->tpl_vars['menu'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['menu']->_loop = false;
        $_from = userdata('menu');
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['menu']->key => $_smarty_tpl->tpl_vars['menu']->value) {
            $_smarty_tpl->tpl_vars['menu']->_loop = true;
            ?>
                    <li>
                        <a href="<?php 
            if (!$_smarty_tpl->tpl_vars['menu']->value['child']) {
                echo base_url();
                echo $_smarty_tpl->tpl_vars['menu']->value['url'];
            } else {
                ?>
#<?php 
            }
            ?>
" <?php 
            echo $_smarty_tpl->tpl_vars['menu']->value['attr'];
            ?>
>
                            <span> <?php 
            echo $_smarty_tpl->tpl_vars['menu']->value['title'];
            ?>
</span>
                            <i class="<?php 
            echo $_smarty_tpl->tpl_vars['menu']->value['icon'];
            ?>
"></i>
                        </a>
                        <?php 
            if ($_smarty_tpl->tpl_vars['menu']->value['child']) {
                ?>
                            <ul class="icons-right">
                                <?php 
                $_smarty_tpl->tpl_vars['child'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['child']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['menu']->value['child'];
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['child']->key => $_smarty_tpl->tpl_vars['child']->value) {
                    $_smarty_tpl->tpl_vars['child']->_loop = true;
                    ?>
                                    <li>
                                        <a href="<?php 
                    echo base_url();
                    echo $_smarty_tpl->tpl_vars['child']->value['url'];
                    ?>
">
                                            <span><?php 
                    echo $_smarty_tpl->tpl_vars['child']->value['title'];
                    ?>
</span>
                                            <i class="<?php 
                    echo $_smarty_tpl->tpl_vars['child']->value['icon'];
                    ?>
" <?php 
                    echo $_smarty_tpl->tpl_vars['child']->value['attr'];
                    ?>
></i>
                                        </a>
                                    </li>
                                <?php 
                }
                ?>
                            </ul>
                        <?php 
            }
            ?>
                    </li>
                <?php 
        }
        ?>
            </ul>
            <!-- /main navigation -->

        </div>
    </div>
    <!-- /sidebar -->


    <!-- Page content -->
    <div class="page-content">

        
    <!-- Default panel -->
    <?php 
        echo js('form/custom.js');
        ?>

    <div class="panel panel-default">

        <div class="panel-heading"><h6 class="panel-title">Product Conversion</h6></div>

        <div class="panel-body">
            <div class="block-inner">
                <h6 class="heading-hr">
                    <i class="icon-clipboard"></i> Product Conversion
                    <small class="display-block">Informasi umum tentang Product Conversion</small>
                </h6>
            </div>
            <div class="col-md-6">
                <div class="panel panel-default">
                    <div class="panel-heading"><h6 class="panel-title">Product Conversion</h6></div>
                    <div class="panel-body">
                        <form action="<?php 
        echo base_url('product-conversion/save');
        ?>
" role="form" method="post">
                            <?php 
        if ($_smarty_tpl->tpl_vars['error']->value) {
            ?>
                                <div class="callout callout-danger fade in">
                                    <button type="button" class="close" data-dismiss="alert">×</button>
                                    <p><?php 
            echo $_smarty_tpl->tpl_vars['error']->value;
            ?>
</p>
                                </div>
                            <?php 
        }
        ?>
                            <div class="col-sm-12">
                                <h6>Konversi Dar Produk:</h6>
                                <table class="table">
                                    <tbody>
                                    <tr>
                                        <th>Barcode:</th>
                                        <td class="text-right"><?php 
        echo $_smarty_tpl->tpl_vars['product']->value->barcode;
        ?>
</td>
                                    </tr>
                                    <tr>
                                        <th>Nama Produk:</th>
                                        <td class="text-right"><?php 
        echo $_smarty_tpl->tpl_vars['product']->value->name;
        ?>
</td>
                                    </tr>
                                    <tr>
                                        <th>Merek:</th>
                                        <td class="text-right"><?php 
        echo $_smarty_tpl->tpl_vars['product']->value->brand;
        ?>
</td>
                                    </tr>
                                    <tr>
                                        <th>Satuan / Isi:</th>
                                        <td class="text-right">
                                            <?php 
        echo $_smarty_tpl->tpl_vars['product']->value->unit;
        ?>
 / <?php 
        echo $_smarty_tpl->tpl_vars['product']->value->value;
        ?>

                                        </td>
                                    </tr>
                                    <tr>
                                        <th>Stok:</th>
                                        <td class="text-right"><?php 
        echo $_smarty_tpl->tpl_vars['product']->value->stock;
        ?>
</td>
                                    </tr>
                                    <tr>
                                        <th>Qty:</th>
                                        <td class="text-right">
                                            <div class="col-sm-8 pull-right <?php 
        if (form_error('qty')) {
            ?>
has-warning<?php 
        }
        ?>
">
                                                <input type="number" value="<?php 
        echo set_value('qty');
        ?>
" class="form-control"
                                                       name="qty" id="qty"
                                                       onblur="inputQty(this.value,<?php 
        echo $_smarty_tpl->tpl_vars['product']->value->value;
        ?>
)"
                                                       placeholder="0" autofocus>
                                            </div>
                                            <input type="hidden" name="id_product" value="<?php 
        echo $_smarty_tpl->tpl_vars['product']->value->id_product;
        ?>
">
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>
                            </div>
                            <div class="col-sm-12">
                                <input type="submit" class="btn btn-block btn-success" value="Submit">
                            </div>
                        </form>
                    </div>

                </div>
            </div>
            <div class="col-md-6">
                <div class="panel panel-default">

                    <div class="panel-heading"><h6 class="panel-title">Konversi Ke Produk</h6></div>
                    <div class="panel-body">
                        <div class="col-sm-12">
                            <h6>Rincian Produk:</h6>
                            <table class="table">
                                <tbody>
                                <tr>
                                    <th>Barcode:</th>
                                    <td class="text-right" id="result-barcode"><?php 
        echo $_smarty_tpl->tpl_vars['product_conversion']->value->barcode;
        ?>
</td>
                                </tr>
                                <tr>
                                    <th>Nama Produk:</th>
                                    <td class="text-right" id="result-name"><?php 
        echo $_smarty_tpl->tpl_vars['product_conversion']->value->name;
        ?>
</td>
                                </tr>
                                <tr>
                                    <th>Merek:</th>
                                    <td class="text-right" id="result-brand"><?php 
        echo $_smarty_tpl->tpl_vars['product_conversion']->value->brand;
        ?>
</td>
                                </tr>
                                <tr>
                                    <th>Satuan / Isi:</th>
                                    <td class="text-right" id="result-unit">
                                        <?php 
        echo $_smarty_tpl->tpl_vars['product_conversion']->value->unit;
        ?>
/<?php 
        echo $_smarty_tpl->tpl_vars['product_conversion']->value->value;
        ?>

                                    </td>
                                </tr>
                                <tr>
                                    <th>Stok:</th>
                                    <td class="text-right" id="result-stock"><?php 
        echo $_smarty_tpl->tpl_vars['product_conversion']->value->stock;
        ?>
</td>
                                </tr>
                                <tr>
                                    <th>Stok Tambahan:</th>
                                    <td class="text-right" id="result-qty"></td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>

                </div>
            </div>
        </div>
    </div>


        <!-- Footer -->
        <div class="footer clearfix">
            <div class="pull-left">&copy; 2015. Copyrights <a href="">Nanomites</a></div>
            <div class="pull-right icons-group">
                <a href="#"><i class="icon-arrow-up5"></i></a>
            </div>
        </div>
        <!-- /footer -->


    </div>
    <!-- /page content -->
    <div style="display: none;">

        
    </div>
    <?php 
        echo js('form/custom.js');
        ?>

</div>
<!-- /content -->

</body>
</html><?php 
    }