Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 8922 | Rev 9056 | 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
 
8922 stevensc 33
 
34
 
1 www 35
?>
36
<!DOCTYPE html>
37
<html lang="es">
38
 
4686 stevensc 39
<head>
40
	<?php
41
	echo $this->headTitle();
42
	echo $this->headMeta()->appendHttpEquiv('X-UA-Compatible', 'IE=edge')
43
		->appendHttpEquiv('expires', '0')
44
		->appendHttpEquiv('expires', 'Tue, 01 Jan 1980 1:00:00 GMT')
45
		->appendHttpEquiv('pragma', 'no-cache')
46
		->appendHttpEquiv('Cache-Control', 'no-store')
47
		->appendHttpEquiv('Cache-Control', 'max-age=0')
48
		->appendHttpEquiv('Cache-Control', 'no-cache')
49
		->appendHttpEquiv('charset', 'UTF-8')
50
		->appendName('viewport', 'width=device-width, initial-scale=1.0');
51
	?>
1 www 52
 
9002 stevensc 53
<!-- Google Font: Source Sans Pro -->
54
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback">
55
<!-- Font Awesome -->
56
<link rel="stylesheet" href="<?php echo $this->basePath('plugins/font-awesome/css/font-awesome.css') ?>">
4686 stevensc 57
	<!-- Theme style -->
58
	<link rel="stylesheet" href="<?php echo $this->basePath('css/adminlte.min.css') ?>">
59
	<!-- App style -->
60
	<link rel="stylesheet" href="<?php echo $this->basePath('css/app.css') ?>">
61
	<link rel="stylesheet" href="<?php echo $this->basePath('/react-bundles/menu/main.css') ?>">
9002 stevensc 62
	<script src="<?php echo $this->basePath('plugins/ckeditor/ckeditor.js') ?>"></script>
1 www 63
 
4686 stevensc 64
	<?php
65
	echo $this->headStyle();
66
	echo $this->headLink();
67
	echo $this->headScript();
68
	?>
69
</head>
70
 
71
<body class="hold-transition sidebar-mini">
72
	<!-- Site wrapper -->
8759 stevensc 73
	<div class="wrapper">
4686 stevensc 74
 
8759 stevensc 75
		<!-- Main Sidebar Container -->
8914 stevensc 76
		<aside class="main-sidebar sidebar-light-primary right-border">
77
			<!-- Brand Logo -->
78
			<a href="<?php echo $this->url('dashboard') ?>" class="brand-link">
79
				<?php if ($company) :
80
					$names = explode(' ', $company->name);
8759 stevensc 81
 
8914 stevensc 82
				?>
83
					<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">
84
					<span class="brand-text font-weight-light"><?php echo $names[0] ?></span>
85
 
86
				<?php else : ?>
87
					<img src="<?php echo $this->basePath('img/logo-ll34x34.png') ?>" alt="Administrador" class="brand-image " style="opacity: .8; background-color: white">
88
					<span class="brand-text font-weight-light">Admin</span>
89
				<?php endif; ?>
90
			</a>
91
 
92
			<!-- Sidebar -->
8922 stevensc 93
			<div class="sidebar">
8915 stevensc 94
				<?php echo $this->menuHelper() ?>
8922 stevensc 95
 
8914 stevensc 96
			</div>
97
			<!-- /.sidebar -->
98
		</aside>
99
 
4686 stevensc 100
		<!-- Content Wrapper. Contains page content -->
101
		<div class="content-wrapper">
102
			<section class="content">
103
				<?php echo $this->content ?>
104
			</section>
105
			<!-- /.content -->
106
		</div>
107
		<!-- /.content-wrapper -->
108
	</div>
109
 
110
	<!-- jQuery -->
111
	<script src="<?php echo $this->basePath('plugins/jquery/jquery.js') ?>"></script>
112
	<!-- Bootstrap 4 -->
113
	<script src="<?php echo $this->basePath('plugins/bootstrap/js/bootstrap.bundle.min.js') ?>"></script>
114
	<!-- AdminLTE App -->
8906 stevensc 115
	<script src="<?php echo $this->basePath('js/adminlte.min.js') ?>"></script>
4686 stevensc 116
	<!--  Aplicacion -->
117
	<script src="<?php echo $this->basePath('plugins/bootstrap-notify/bootstrap-notify.min.js') ?>"></script>
118
	<script src="<?php echo $this->basePath('js/app.js') ?>"></script>
119
	<?php
120
	echo $this->inlineScript();
121
	?>
122
</body>
123
 
1 www 124
</html>