Advertisement
dewa_01

Untitled

Dec 15th, 2019
334
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.19 KB | None | 0 0
  1. <div class="container-fluid">
  2.  
  3.   <!-- Brand and toggle get grouped for better mobile display -->
  4.   <div class="navbar-header">
  5.     <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
  6.       <span class="sr-only">Toggle navigation</span>
  7.       <span class="icon-bar"></span>
  8.       <span class="icon-bar"></span>
  9.       <span class="icon-bar"></span>
  10.     </button>
  11.  
  12.     <div class="navbar-form navbar-left">
  13.       <ul class="nav navbar-nav navbar-left">
  14.         <a href="http://localhost/ecotani/"><img src="<?php echo base_url() ?>assets/image/kecil.png"></a>
  15.         &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  16.         <div class="input-group">
  17.           <input type="text" class="form-control" placeholder="Cari">
  18.           <div class="input-group-btn">
  19.             <button class="btn btn-default" type="submit">
  20.                 <i class="glyphicon glyphicon-search"></i>
  21.             </button>
  22.           </div>
  23.         </div>
  24.       </ul>
  25.  
  26.       <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
  27.         <div class="container" style="padding-right:80px ">
  28.           <b>
  29.             <ul class="nav navbar-nav navbar-right">
  30.               <li><?php echo anchor(base_url(), 'Home');?></li>
  31.              
  32.               <li>
  33.                 <?php
  34.                   $text_cart_url  = '<span class="glyphicon glyphicon-shopping-cart" aria-hidden="true"></span>';
  35.                   $text_cart_url .= ' Pemesanan : '. $this->cart->total_items() .' Item';
  36.                 ?>
  37.                 <?=anchor('welcome/cart', $text_cart_url)?>
  38.               </li>
  39.               <?php if($this->session->userdata('username')) { ?>
  40.               <li><div style="line-height:50px;">&nbsp;Anda :&nbsp;<?=$this->session->userdata('username')?>&nbsp;&nbsp;&nbsp;&nbsp;</div></li>
  41.               <li><?php echo anchor('logout', 'Keluar');?></li>
  42.               <?php } else { ?>
  43.               <li><?php echo anchor('login', 'Masuk');?></li>
  44.               <?php } ?>
  45.               <li><a href="<?php echo base_url();?>index.php/regis">Daftar</a></li>
  46.             </ul>
  47.           </b>
  48.         </div>
  49.       </div>
  50.     </div>
  51.   </div>
  52. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement