Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 8914 | Rev 8922 | Ir a la última revisión | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 www 1
<?php
2
$currentUser    = $this->currentUserHelper();
3
$user = $currentUser->getUser();
4
$company = $currentUser->getCompany();
5
 
6
$notify = '';
7
$messages = $this->flashMessenger()->getInfoMessages();
4686 stevensc 8
foreach ($messages as $message) {
9
	$notify .= "$.fn.showInfo('$message')";
1 www 10
}
11
 
12
$messages = $this->flashMessenger()->getSuccessMessages();
4686 stevensc 13
foreach ($messages as $message) {
14
	$notify .= "$.fn.showSuccess('$message')";
1 www 15
}
16
 
17
$messages = $this->flashMessenger()->getWarningMessages();
4686 stevensc 18
foreach ($messages as $message) {
19
	$notify .= " $.fn.showWarning('$message')";
1 www 20
}
21
 
22
$messages = $this->flashMessenger()->getErrorMessages();
4686 stevensc 23
foreach ($messages as $message) {
24
	$notify .= " $.fn.showError('$message')";
1 www 25
}
26
 
4686 stevensc 27
if ($notify) {
28
	$this->inlineScript()->captureStart();
29
	echo " jQuery( document ).ready(function( $ ) { $notify }); ";
30
	$this->inlineScript()->captureEnd();
1 www 31
}
32
 
33
?>
34
<!DOCTYPE html>
35
<html lang="es">
36
 
4686 stevensc 37
<head>
38
	<?php
39
	echo $this->headTitle();
40
	echo $this->headMeta()->appendHttpEquiv('X-UA-Compatible', 'IE=edge')
41
		->appendHttpEquiv('expires', '0')
42
		->appendHttpEquiv('expires', 'Tue, 01 Jan 1980 1:00:00 GMT')
43
		->appendHttpEquiv('pragma', 'no-cache')
44
		->appendHttpEquiv('Cache-Control', 'no-store')
45
		->appendHttpEquiv('Cache-Control', 'max-age=0')
46
		->appendHttpEquiv('Cache-Control', 'no-cache')
47
		->appendHttpEquiv('charset', 'UTF-8')
48
		->appendName('viewport', 'width=device-width, initial-scale=1.0');
49
	?>
1 www 50
 
4686 stevensc 51
	<!-- Google Font: Source Sans Pro -->
52
	<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback">
53
	<!-- Font Awesome -->
54
	<link rel="stylesheet" href="<?php echo $this->basePath('plugins/font-awesome/css/font-awesome.css') ?>">
55
	<!-- Theme style -->
56
	<link rel="stylesheet" href="<?php echo $this->basePath('css/adminlte.min.css') ?>">
57
	<!-- App style -->
58
	<link rel="stylesheet" href="<?php echo $this->basePath('css/app.css') ?>">
59
	<link rel="stylesheet" href="<?php echo $this->basePath('/react-bundles/menu/main.css') ?>">
1 www 60
 
4686 stevensc 61
	<?php
62
	echo $this->headStyle();
63
	echo $this->headLink();
64
	echo $this->headScript();
65
	?>
66
</head>
67
 
68
<body class="hold-transition sidebar-mini">
69
	<!-- Site wrapper -->
8759 stevensc 70
	<div class="wrapper">
4686 stevensc 71
 
8759 stevensc 72
		<!-- Main Sidebar Container -->
8914 stevensc 73
		<aside class="main-sidebar sidebar-light-primary right-border">
74
			<!-- Brand Logo -->
75
			<a href="<?php echo $this->url('dashboard') ?>" class="brand-link">
76
				<?php if ($company) :
77
					$names = explode(' ', $company->name);
8759 stevensc 78
 
8914 stevensc 79
				?>
80
					<img src="<?php echo $this->url('storage', ['type' => 'company', 'code' => $company->uuid, 'filename' => $company->image]) ?>" alt="<?php echo $company->name ?>" class="brand-image " style="opacity: .8; background-color: white">
81
					<span class="brand-text font-weight-light"><?php echo $names[0] ?></span>
82
 
83
				<?php else : ?>
84
					<img src="<?php echo $this->basePath('img/logo-ll34x34.png') ?>" alt="Administrador" class="brand-image " style="opacity: .8; background-color: white">
85
					<span class="brand-text font-weight-light">Admin</span>
86
				<?php endif; ?>
87
			</a>
88
 
89
			<!-- Sidebar -->
90
			<div class="sidebar" id="menu-sidebar">
8915 stevensc 91
				<?php echo $this->menuHelper() ?>
8914 stevensc 92
			</div>
93
			<!-- /.sidebar -->
94
		</aside>
95
 
4686 stevensc 96
		<!-- Content Wrapper. Contains page content -->
97
		<div class="content-wrapper">
98
			<section class="content">
99
				<?php echo $this->content ?>
100
			</section>
101
			<!-- /.content -->
102
		</div>
103
		<!-- /.content-wrapper -->
104
	</div>
105
 
106
	<!-- jQuery -->
107
	<script src="<?php echo $this->basePath('plugins/jquery/jquery.js') ?>"></script>
108
	<!-- Bootstrap 4 -->
109
	<script src="<?php echo $this->basePath('plugins/bootstrap/js/bootstrap.bundle.min.js') ?>"></script>
110
	<!-- AdminLTE App -->
8906 stevensc 111
	<script src="<?php echo $this->basePath('js/adminlte.min.js') ?>"></script>
4686 stevensc 112
	<!--  Aplicacion -->
113
	<script src="<?php echo $this->basePath('plugins/bootstrap-notify/bootstrap-notify.min.js') ?>"></script>
114
	<script src="<?php echo $this->basePath('js/app.js') ?>"></script>
115
	<?php
116
	echo $this->inlineScript();
117
	?>
118
</body>
119
 
1 www 120
</html>