Creating Customer Support Time Tracking Application with Codeigniter Part 4

In this article we are going to create Support Template for customers.

Creating Support Template

This template is used for customers. It has different sub-menus from admin. The reason to create this template is to make the navigation simple for customers when they log in. It could be done without this template but there will be unnecessary menus on the left column.

The following codes should be placed in system/application/views/support folder.

 

 

Demo

Note: Demo is available for Customer Pages Only.

Login details
email 1: cus7(a)gmail.com and pw: anneanne

email 2: cus2(a)gmail.com and pw: tonjetonje

Download page

// container.php
<?php
$this->load->view($this->config->item('backendpro_template_support') . 'header');
$this->load->view($this->config->item('backendpro_template_support') . 'content');
$this->load->view($this->config->item('backendpro_template_support') . 'footer');
?>
// content.php
<div id="navigation">
    <?php print $this->load->view($this->config->item('backendpro_template_support') . 'menu');?>
</div>
<div id="breadcrumb">
        <?php print $this->bep_site->get_breadcrumb();?>
    </div>
<div id="content">
    <a name="top"></a>
    <?php print displayStatus();?>
    <?php print (isset($content)) ? $content : NULL; ?>
    <?php
    if( isset($page)){
    if( isset($module)){
            $this->load->module_view($module,$page);
        } else {
            $this->load->view($page);
        }}
    ?>
    <br style="clear: both" />
</div>
//footer.php
    <div id="footer">
        <div id="copyright">
            <a href="http://www.kaydoo.co.uk/projects/backendpro">BackendPro</a> &copy; Copyright 2008 - <a href="http://www.kaydoo.co.uk">Adam Price</a> -  All rights Reserved
        </div>
        <div id="version">
            <a href="#top"><?php print $this->lang->line('general_top')?></a> |
            <a href="<?php print base_url()?>user_guide"><?php print $this->lang->line('general_documentation')?></a> |
            Version <?php print BEP_VERSION?></div>
    </div>
</div>
<?php print $this->bep_assets->get_footer_assets();?>
</body>
</html>
// header.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<?php print $this->bep_site->get_metatags();?>
	<title><?php print $header.' | '.$this->preference->item('site_name');?></title>
	<?php print $this->bep_site->get_variables();?>
	<?php print $this->bep_assets->get_header_assets();?>
	<?php print $this->bep_site->get_js_blocks();?>
</head>
<body>

<div id="wrapper">
    <div id="header">
        <div id="site"><?php print $this->preference->item('site_name')?></div>
        <div id="info">
            <?php print anchor('',$this->lang->line('backendpro_view_website'),array('class'=>'icon_world_go'))?>&nbsp;&nbsp;&nbsp;&nbsp;
            <?php print anchor('auth/logout',$this->lang->line('userlib_logout'),array('class'=>'icon_key_go'))?>
        </div>
    </div>
// home.php
<h2><?php print $header?></h2>

<?php print $dashboard ?>

<div class="buttons" style="clear: both">
	<a href="javascript:void(0);" id="edit_dashboard">
		<?php print $this->bep_assets->icon('pencil') ?>
		<?php print $this->lang->line('general_edit') ?> <?php print $this->lang->line('backendpro_dashboard') ?>
	</a>

	<a href="javascript:void(0);" id="save_dashboard">
		<?php print $this->bep_assets->icon('disk') ?>
		<?php print $this->lang->line('general_save') ?>
	</a>
</div>
// menu_support.php
 <?php if(check('Customer Support',NULL,FALSE)):?>
<li id="menu_bep_support"><span class="icon_user_green"><?php print $this->lang->line('customer_support')?></span>
        <ul>

            <?php if(check('Customer Record',NULL,FALSE)):?><li><?php print anchor('customersupport/admin','Support Home',array('class'=>'icon_user_orange'))?></li><?php echo "\n"; endif;?>
            <?php if(check('Purchase Support',NULL,FALSE)):?><li><?php print anchor('customersupport/admin/purchase_credit',$this->lang->line('customer_purchase_support'),array('class'=>'icon_user_orange'))?></li><?php echo "\n"; endif;?>

        </ul>
</li>
<?php endif;?>
// menu.php
<!--
When creating a new menu item on the top-most level
Please ensure that you assign the LI a unique ID

Examples can be seen below for menu_bep_system
-->
<ul id="menu">

    <?php
    $this->load->view($this->config->item('backendpro_template_support') . 'menu_support');
   ?>

</ul>
// popup.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title><?php print $header.' | '.$this->preference->item('site_name')?></title>
	<?php print $this->bep_site->get_variables()?>
	<?php print $this->bep_assets->get_header_assets();?>
</head>
<body style="padding: 2em;">
    <a name="top"></a>
    <?php print displayStatus();?>
    <?php print (isset($content)) ? $content : NULL; ?>
    <?php
    if( isset($page)){
    if( isset($module)){
            $this->load->module_view($module,$page);
        } else {
            $this->load->view($page);
        }}
    ?>
	<?php print $this->bep_assets->get_footer_assets();?>
</body>
</html>
//indes.html
<html>
<head>
	<title>403 Forbidden</title>
</head>
<body>

<p>Directory access is forbidden.</p>

</body>
</html>

2 comments to Creating Customer Support Time Tracking Application with Codeigniter Part 4

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>