Files
crm-ms1/inc/header.php
2026-05-27 11:44:10 -04:00

248 lines
10 KiB
PHP

<?php
if ( $page_title!="Login"){
if ($this->session->logged_in!=1 ){
redirect('/login');
}}
$titre=$this->config->item('titre');
?>
<html lang="en-us" <?php echo implode(' ', array_map(function($prop, $value) {
return $prop.'="'.$value.'"';
}, array_keys($page_html_prop), $page_html_prop)) ;?>>
<head>
<meta charset="utf-8">
<!--<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">-->
<title> <?php echo $page_title != "" ? $page_title." - ".$titre : ""; ?></title>
<meta name="description" content="">
<meta name="author" content="">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<script src="https://kit.fontawesome.com/aa5c5a04e3.js"></script>
<!-- Basic Styles -->
<link rel="stylesheet" type="text/css" media="screen" href="<?php echo ASSETS_URL; ?>/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" media="screen" href="<?php echo ASSETS_URL; ?>/css/font-awesome.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<!-- SmartAdmin Styles : Caution! DO NOT change the order -->
<link rel="stylesheet" type="text/css" media="screen" href="<?php echo ASSETS_URL; ?>/css/smartadmin-production-plugins.min.css">
<link rel="stylesheet" type="text/css" media="screen" href="<?php echo ASSETS_URL; ?>/css/smartadmin-production.min.css">
<link rel="stylesheet" type="text/css" media="screen" href="<?php echo ASSETS_URL; ?>/css/smartadmin-skins.min.css">
<link href="<?php echo ASSETS_URL; ?>/js/toastr.css" rel="stylesheet"/>
<!-- SmartAdmin RTL Support is under construction-->
<link rel="stylesheet" type="text/css" media="screen" href="<?php echo ASSETS_URL; ?>/css/smartadmin-rtl.min.css">
<!-- We recommend you use "your_style.css" to override SmartAdmin
specific styles this will also ensure you retrain your customization with each SmartAdmin update.
<link rel="stylesheet" type="text/css" media="screen" href="<?php echo ASSETS_URL; ?>/css/your_style.css"> -->
<link href="<?php echo ASSETS_URL; ?>/js/toastr.css" rel="stylesheet">
<?php
if ($page_css) {
foreach ($page_css as $css) {
echo '<link rel="stylesheet" type="text/css" media="screen" href="'.ASSETS_URL.'/css/'.$css.'">';
}
}
?>
<!-- Demo purpose only: goes with demo.js, you can delete this css when designing your own WebApp -->
<link rel="stylesheet" type="text/css" media="screen" href="<?php echo ASSETS_URL; ?>/css/demo.min.css">
<!-- FAVICONS -->
<link rel="shortcut icon" href="<?php echo ASSETS_URL; ?>/img/favicon/favicon_<?php echo config_item('pw_client'); ?>.ico" type="image/x-icon">
<link rel="icon" href="<?php echo ASSETS_URL; ?>/img/favicon/favicon_<?php echo config_item('pw_client'); ?>.ico" type="image/x-icon">
<!-- GOOGLE FONT -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,300,400,700">
<!-- Specifying a Webpage Icon for Web Clip
Ref: https://developer.apple.com/library/ios/documentation/AppleApplications/Reference/SafariWebContent/ConfiguringWebApplications/ConfiguringWebApplications.html -->
<link rel="apple-touch-icon" href="<?php echo ASSETS_URL; ?>/img/splash/sptouch-icon-iphone.png">
<link rel="apple-touch-icon" sizes="76x76" href="<?php echo ASSETS_URL; ?>/img/splash/touch-icon-ipad.png">
<link rel="apple-touch-icon" sizes="120x120" href="<?php echo ASSETS_URL; ?>/img/splash/touch-icon-iphone-retina.png">
<link rel="apple-touch-icon" sizes="152x152" href="<?php echo ASSETS_URL; ?>/img/splash/touch-icon-ipad-retina.png">
<!-- iOS web-app metas : hides Safari UI Components and Changes Status Bar Appearance -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<!-- Startup image for web apps -->
<link rel="apple-touch-startup-image" href="<?php echo ASSETS_URL; ?>/img/splash/ipad-landscape.png" media="screen and (min-device-width: 481px) and (max-device-width: 1024px) and (orientation:landscape)">
<link rel="apple-touch-startup-image" href="<?php echo ASSETS_URL; ?>/img/splash/ipad-portrait.png" media="screen and (min-device-width: 481px) and (max-device-width: 1024px) and (orientation:portrait)">
<link rel="apple-touch-startup-image" href="<?php echo ASSETS_URL; ?>/img/splash/iphone.png" media="screen and (max-device-width: 320px)">
<!-- Link to Google CDN's jQuery + jQueryUI; fall back to local -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="<?php echo ASSETS_URL; ?>/js/toastr.js"></script>
<script>
if (!window.jQuery) {
document.write('<script src="<?php echo ASSETS_URL; ?>/js/libs/jquery-3.2.1.min.js"><\/script>');
}
</script>
<script>
if (!window.jQuery.ui) {
document.write('<script src="<?php echo ASSETS_URL; ?>/js/libs/jquery-ui.min.js"><\/script>');
}
</script>
</head>
<body class="desktop-detected pace-done smart-style-4" <?php echo implode(' ', array_map(function($prop, $value) {
return $prop.'="'.$value.'"';
}, array_keys($page_body_prop), $page_body_prop)) ;?>>
<!-- POSSIBLE CLASSES: minified, fixed-ribbon, fixed-header, fixed-width
You can also add different skin classes such as "smart-skin-1", "smart-skin-2" etc...-->
<?php
if (!$no_main_header) {
?>
<!-- HEADER -->
<header id="header">
<div id="logo-group">
<!-- PLACE YOUR LOGO HERE -->
<span id="logo"> <img src="<?php echo ASSETS_URL; ?>/img/logo.png" alt="ExpressGroupes"> </span>
<!-- END LOGO PLACEHOLDER -->
<!-- AJAX-DROPDOWN : control this dropdown height, look and feel from the LESS variable file -->
<div class="ajax-dropdown">
<!-- the ID links are fetched via AJAX to the ajax container "ajax-notifications" -->
<div class="btn-group btn-group-justified" data-toggle="buttons">
<label class="btn btn-default">
<input type="radio" name="activity" id="<?php echo APP_URL; ?>/ajax/notify/mail.php">
Msgs (14) </label>
<label class="btn btn-default">
<input type="radio" name="activity" id="<?php echo APP_URL; ?>/ajax/notify/notifications.php">
notify (3) </label>
<label class="btn btn-default">
<input type="radio" name="activity" id="<?php echo APP_URL; ?>/ajax/notify/tasks.php">
Tasks (4) </label>
</div>
<!-- notification content -->
<div class="ajax-notifications custom-scroll">
<div class="alert alert-transparent">
<h4>Click a button to show messages here</h4>
This blank page message helps protect your privacy, or you can show the first message here automatically.
</div>
<i class="fa fa-lock fa-4x fa-border"></i>
</div>
<!-- end notification content -->
</div>
<!-- END AJAX-DROPDOWN -->
</div>
<!-- projects dropdown -->
<div class="project-context hidden-xs">
<span class="label">Projects:</span>
</div>
<!-- end projects dropdown -->
<!-- pulled right: nav area -->
<div class="pull-right">
<!-- collapse menu button -->
<div id="hide-menu" class="btn-header pull-right">
<?php echo $this->session->username;?>
<span> <a href="javascript:void(0);" title="Collapse Menu" data-action="toggleMenu"><i class="fa fa-reorder"></i></a> </span>
</div>
<!-- end collapse menu -->
<!-- #MOBILE -->
<!-- Top menu profile link : this shows only when top menu is active -->
<!-- logout button -->
<div id="logout" class="btn-header transparent pull-right">
<span> <a href="<?php echo APP_URL; ?>/index.php/login/logout" title="Sign Out" data-action="userLogout" data-logout-msg=" "><i class="fa fa-sign-out"></i></a> </span>
</div>
<!-- end logout button -->
<!-- fullscreen button -->
<div id="fullscreen" class="btn-header transparent pull-right">
<span> <a href="javascript:void(0);" title="Full Screen" data-action="launchFullscreen"><i class="fa fa-arrows-alt"></i></a> </span>
</div>
<!-- end fullscreen button -->
</div>
<!-- end pulled right: nav area -->
<h1>
<?php
if ( $this->config->item('pw_verssion_entete')) ;
echo($this->config->item('pw_verssion_entete'));
?>
</h1>
</header>
<!-- END HEADER -->
<!-- SHORTCUT AREA : With large tiles (activated via clicking user name tag)
Note: These tiles are completely responsive,
you can add as many as you like
-->
<div id="shortcut">
<ul>
<li>
<a href="<?php echo APP_URL; ?>/inbox.php" class="jarvismetro-tile big-cubes bg-color-blue"> <span class="iconbox"> <i class="fa fa-envelope fa-4x"></i> <span>Mail <span class="label pull-right bg-color-darken">14</span></span> </span> </a>
</li>
<li>
<a href="<?php echo APP_URL; ?>/calendar.php" class="jarvismetro-tile big-cubes bg-color-orangeDark"> <span class="iconbox"> <i class="fa fa-calendar fa-4x"></i> <span>Calendar</span> </span> </a>
</li>
<li>
<a href="<?php echo APP_URL; ?>/gmap-xml.php" class="jarvismetro-tile big-cubes bg-color-purple"> <span class="iconbox"> <i class="fa fa-map-marker fa-4x"></i> <span>Maps</span> </span> </a>
</li>
<li>
<a href="<?php echo APP_URL; ?>/invoice.php" class="jarvismetro-tile big-cubes bg-color-blueDark"> <span class="iconbox"> <i class="fa fa-book fa-4x"></i> <span>Invoice <span class="label pull-right bg-color-darken">99</span></span> </span> </a>
</li>
<li>
<a href="<?php echo APP_URL; ?>/gallery.php" class="jarvismetro-tile big-cubes bg-color-greenLight"> <span class="iconbox"> <i class="fa fa-picture-o fa-4x"></i> <span>Gallery </span> </span> </a>
</li>
<li>
<a href="<?php echo APP_URL; ?>/profile.php" class="jarvismetro-tile big-cubes selected bg-color-pinkDark"> <span class="iconbox"> <i class="fa fa-user fa-4x"></i> <span>My Profile </span> </span> </a>
</li>
</ul>
</div>
<!-- END SHORTCUT AREA -->
<?php
}
?>