
<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />    
<title>
	<?php echo $layout_title; ?></title>
    <?php echo put_headers();
			   ?>
	<?php echo $this->layouts->print_includes(); ?>
<script type="text/javascript">
$(document).ready(function(){
	$('#en').click(function(){
  		var urls =  "<?php echo base_url(); ?>admin/session/en";
 		$.ajax({
  			type: "POST",
  			url: urls,
  			success: function(){
				location.reload();
			},
		});       // Here your ajax action after delete confirmed
		});
	$('#ms').click(function(){
  		var urls =  "<?php echo base_url(); ?>admin/session/ms";
 		$.ajax({
  			type: "POST",
  			url: urls,
  			success: function(){
				location.reload();
			},
		});       // Here your ajax action after delete confirmed
	});
});
</script>
</head>
<body data-baseurl="<?php echo base_url(); ?>">

  
<!-- Modals -->
  <div id="popupModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
       <div id="popuHeader" class="modal-header">
           <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
           <h3 id="_popupTitle">Modal header</h3>
       </div>
       <div id="_popupContent" class="modal-body">
            <p>no Content</p>
       </div>
       <div id="_popupFooter" class="modal-footer">
         <button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
         <button class="btn btn-primary">Save changes</button>
       </div>
  </div>
<!--end modals -->
        
   <div id="_msgbox" style="display: block; margin-left: -210px; width: 500px;" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
		
			<div id="_msgbody" class="modal-body">
			      <div id="_msgicon" class="conformCritical" ></div>
			      <div id="_msgcontent">
			       <h3 id="_title" style="margin-left: 150px; margin-top: -35px; font-size: 23px;">defaut</h3>
                               <p id="_message" style="margin-left: 10px; font-size: 13.5px; line-height: 1.3;">
			         defauft
			        </p>
			      </div>
			</div>
			<div style="padding:10px 11px 11px;" id="_msgfooter" class="modal-footer">
				<button class="btn" data-dismiss="modal" aria-hidden="true">Fermer</button>
			</div>
		</div>      
        
        
<div id="wrapper">
        <div id="header">
            
            <div class="wrap">
                
                <a href="" class="logo"></a>
              <div class="buttons fl">
                    <div class="item">
                        <a href="#" class="btn btn-primary btn-small c_layout">
                            <span class="i-layout-8"></span>                            
                        </a>
                    </div>
                    <div class="item">
                        <div align="center"><a href="#" class="btn btn-primary btn-small c_screen">
                          <span class="i-stretch"></span>                            
                        </a>
                          </div>
                    </div>                    
              </div> <!-- button fl -->
			    <div class="buttons fr">
                    <div class="item">
                        <a href="#" class="btn btn-primary btn-small">
                            <span class="i-cog"></span>
                        </a>
                        <div class="popup">
                            <div class="head">
                                <h2>Settings</h2>
                            </div>
                            <div class="content np">      
                                <div class="row-fluid">
                                    <div class="controls-row">
                                        <div class="span3">Themes:</div>
                                        <div class="span9 themes">
                                            <a href="#" class="default tip" data-theme="" title="Default"></a>
                                            <a href="#" class="dark tip" data-theme="themeDark" title="Dark"></a>
                                            <a href="#" class="simple tip" data-theme="themeSimple" title="Simple"></a>
                                            <div class="help-block">On click theme will changed and saved settings</div>
                                        </div>
                                    </div>               
                                    <div class="controls-row">
                                        <div class="span3">Backgrounds:</div>
                                        <div class="span9 backgrounds">
                                            <a href="#" class="default tip" data-theme="" title="Default"></a>                                            
                                            <a href="#" class="b_bcrosshatch" data-back="b_bcrosshatch"></a>
                                            <a href="#" class="b_crosshatch" data-back="b_crosshatch"></a>
                                            <a href="#" class="b_cube" data-back="b_cube"></a>
                                            <a href="#" class="b_dots" data-back="b_dots"></a>
                                            <a href="#" class="b_grid" data-back="b_grid"></a>
                                            <a href="#" class="b_hline" data-back="b_hline"></a>
                                            <a href="#" class="b_simple" data-back="b_simple"></a>
                                            <a href="#" class="b_vline" data-back="b_vline"></a>
                                            <div class="help-block">On click background will changed and saved settings</div>
                                        </div>
                                    </div>                                    
                                </div>
                            </div>
                            <div class="footer">
                                <div class="side fr">
                                    <button class="btn btn-primary popup-close">Close</button>
                                </div>                                
                            </div>
                        </div>                        
                    </div>
                    <div class="item">                        
                        <div class="btn-group">                        
                            <a href="#" class="btn btn-primary btn-small dropdown-toggle" data-toggle="dropdown">
                                <span class="i-forward"></span>
                            </a>
                            <ul class="dropdown-menu">
                                <li><a href="<?php echo base_url()?>UserSetting/UserMaster"><span class="i-profile"></span> Profile</a></li>
                                <li><a href='<?php echo base_url()."logout" ?>'><span class="i-forward"></span> Logout</a></li>
                            </ul> 
                        </div>
                    </div>   <!-- item -->  
                               
                    <div class="item">                        
                        <div class="btn-group">                        
                            <a href="#" class="btn btn-primary btn-small dropdown-toggle" data-toggle="dropdown">
                                <?php if ($this->session->userdata('language') == 'en'){?>
                       		<img src="<?php echo base_url() ?>img/english.png" title="English"/>
                                    <?php }else{ ?>
                                		<img src="<?php echo base_url() ?>img/malay.png" title="Bahasa Melayu"/>
                                    <?php } ?>
                            </a>
                            <ul class="dropdown-menu">
                                <li id="en" title="English"><a href="#" ><img src="<?php echo base_url() ?>img/english.png"/> English</a></li>
                                <li id="ms" title="Bahasa Melayu"><a href="#" ><img src="<?php echo base_url() ?>img/malay.png"/> Bahasa Melayu</a></li>
                            </ul> 
                        </div>
                    </div>   <!-- item -->             
            	</div> <!-- button -->
            </div> <!-- Wrap -->           
        </div> <!-- header -->
