Exemplo n.º 1
0
Arquivo: menu.php Projeto: flub78/GVV3
		<div id="navbar" class="collapse navbar-collapse">

			<?php 
echo bootstrap_menu($menubar);
?>

			<ul id="main-menu" class="nav navbar-nav navbar-right">
            <?php 
if ($this->ion_auth->logged_in()) {
    $user = $this->ion_auth->user()->row();
    echo $user->email;
    $username = $user->first_name . ' ' . $user->last_name;
    echo "<li class=\"nav-welcome\"><h5>" . translation('login_welcome') . " " . $username . "</h5></li>";
    echo "<li>&nbsp;</li>";
    echo "<li><a id=\"logout\" href=\"" . controller_url("welcome/logout") . "\">" . translation('button_logout') . "</a></li>";
} else {
    echo "<li><a href=\"login\">" . translation('button_login') . "</a></li>";
    if ($this->config->item('autoregister')) {
        echo "<li><a href=\"register\">" . translation('button_register') . "</a></li>";
    }
}
?>

            </ul>
		</div>
		<!--container-fluid -->

	</div>
	<!-- container-fluid -->
</nav>
Exemplo n.º 2
0
<div id="user">
	<?php if ($this->acl->is_auth()) : ?>
	<ul>
		<li id="UserName"><?=greeting().', '.$this->profile->current()->name->friendly?></li>
		<li id="Logout"><a href="<?=site_url("login/destroy")?>"><span>Logout</span></a></li>
	</ul>
	<?php endif; ?>
</div>
<div id="bd" class="fancy_corners">
	<div id="bd-inner">
		<h2><?=ucwords(method_clean($this->router->fetch_class()))?></h2>
		<div id="crumbtrail">
			<a href="<?=site_url()?>" title="Go to Dashboard" class="tip">&nbsp;<span>Home</span></a>
			<a href="<?=controller_url()?>"><?=ucwords(method_clean($this->router->fetch_class()))?></a>
			<?php if($this->router->fetch_method() != 'index'): ?>
			<a href="<?=controller_url().'/'.$this->router->fetch_method()?>"><?=ucwords(method_clean($this->router->fetch_method()))?></a>
			<?php endif; if (isset($content['nav']['title'])) : ?>
			<a href="<?php if (isset($content['nav']['uri'])) echo site_url($content['nav']['uri']); else echo current_url()?>"><?=$content['nav']['title']?></a>
			<?php endif ?>
		</div>
		<?php foreach (User_Notice::fetch_array() as $notice) : ?>
		<div class="notice <?=$notice->type?>">
			<?=$notice?>
		</div>
		<?php endforeach; ?>
		<div id="target"><?=$content['body'] ?></div>
	</div>
	<div id="bd-side">
		<?=$content['side'] ?>
	</div>
	<div class="clear"></div>
Exemplo n.º 3
0
Arquivo: FFVV.php Projeto: flub78/GVV3
 /**
  * Get licences information from HEVA
  */
 public function licences()
 {
     $request = $this->heva_request("/persons");
     if (!$request->success) {
         echo "status_code = " . $request->status_code . br();
         echo "success = " . $request->success . br();
         return;
     }
     $result = json_decode($request->body, true);
     /**
     		 * array (size=79)
       0 =>
         array (size=17)
           'civility' => string 'M.' (length=2)
           'first_name' => string 'Jérome' (length=7)
           'last_name' => string 'DELABRE' (length=7)
           'licence_number' => string '28256' (length=5)
           'date_of_birth' => string '1966-10-24' (length=10)
           'comment' => string '' (length=0)
           'city_of_birth' => string 'ABBEVILLE' (length=9)
           'country_of_birth' => string 'FR' (length=2)
           'insee_category' => string 'Chef d'entreprise/commerçant' (length=29)
           'nationality' => string 'Français(e)' (length=12)
           'is_commercial_use' => boolean false
           'card_sent_at' => null
           'address' =>
             array (size=9)
               'delivery_point' => string '' (length=0)
               'localisation' => string '' (length=0)
               'address' => string '6 rue des Moines' (length=16)
               'distribution' => string '' (length=0)
               'postal_code' => string '80100' (length=5)
               'cedex' => string '' (length=0)
               'city' => string 'ABBEVILLE' (length=9)
               'country' => string 'FR' (length=2)
               'receiver' => null
           'email' =>
             array (size=2)
               'value' => string '*****@*****.**' (length=20)
               'is_private' => boolean false
           'mobile' =>
             array (size=2)
               'value' => string '0607279764' (length=10)
               'is_private' => boolean true
           'phone' =>
             array (size=2)
               'value' => string '0322249907' (length=10)
               'is_private' => boolean true
           'players' =>
             array (size=1)
               0 =>
                 array (size=7)
                   ...
     */
     $table = array();
     foreach ($result as $row) {
         if (isset($row['first_name']) && isset($row['last_name'])) {
             $row['image'] = $row['first_name'] . ' ' . $row['last_name'];
         }
         $row['linked'] = false;
         $row['create'] = anchor(controller_url($this->controller) . "/edit/" . $row['licence_number'], 'Créer');
         $row['associe'] = anchor(controller_url($this->controller) . "/edit/" . $row['licence_number'], 'Associe');
         $row['info'] = anchor(controller_url($this->controller) . "/edit/" . $row['licence_number'], 'Info');
         $row['sales'] = anchor(controller_url($this->controller) . "/sales_pilote/" . $row['licence_number'], 'Ventes');
         $row['qualifs'] = anchor(controller_url($this->controller) . "/qualif_pilote/" . $row['licence_number'], 'Qualifications');
         $actions = array('Info' => $row['info'], 'Ventes' => $row['sales']);
         $row['actions'] = form_dropdown('target_level', $actions);
         $table[] = $row;
     }
     $attrs['fields'] = array('civility', 'first_name', 'last_name', 'licence_number', 'date_of_birth', 'comment', 'linked', 'info', 'sales', 'qualifs');
     $attrs['controller'] = $this->controller;
     $data['controller'] = $this->controller;
     $data['data_table'] = datatable('heva_licences', $table, $attrs);
     $data['table_title'] = 'Licenciés HEVA';
     $this->load->view('default_table', $data);
 }
Exemplo n.º 4
0
<div class="console">
	<div class="navbar">
		<ul>
			<?php if (isset($this->cmenu) && is_array($this->cmenu)) foreach ($this->cmenu as $mitem) : ?>
				<?php if (!isset($mitem['attr'])) $mitem['attr'] = null ?>
				<?php if (isset($mitem['count']) && $mitem['count'] > 0) $mitem['text'] .= '<span class="count">'.number_format($mitem['count']).'</span>'; ?>
				<li><?=anchor($mitem['url'], $mitem['text'], $mitem['attr'])?></li>
			<?php endforeach; ?>
		</ul>
		<h2><a href="<?=controller_url()?>"><?=ucwords(method_clean($this->router->fetch_class()))?></a></h2>
	</div>
	<div class="header mid">
		<div class="header_rt">
			<?php if(isset($header)) echo $header?>
		</div>
		<h3><?=ucwords(method_clean($this->router->fetch_method()))?></h3>
	</div>
	<?=$body?>
	<div class="footer">
		<div class="footer_rt">
			<?php if(isset($footer_rt)) echo $footer_rt?>
		</div>
		<div class="footer_lt">
			<?php if(isset($footer_lt)) echo $footer_lt?>
		</div>
	</div>
</div>
Exemplo n.º 5
0
<ul>
	<li><a href="<?php 
echo controller_url('edit_users');
?>
"><?php 
echo lang('edit_users');
?>
</a></li>
</ul>