Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 16929 | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 www 1
<?php
11565 efrain 2
$currentUserHelper    = $this->currentUserHelper();
3
$user = $currentUserHelper->getUser();
4
$company = $currentUserHelper->getCompany();
1 www 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
 
15089 efrain 33
 
34
 
8922 stevensc 35
 
36
 
1 www 37
?>
38
<!DOCTYPE html>
16822 efrain 39
<html lang="en">
1 www 40
 
16848 stevensc 41
<head>
42
	<?php
43
	echo $this->headTitle();
44
	?>
45
	<link rel="shortcut icon" href="<?php echo $this->networkFavicoHelper(); ?>">
46
	<?php
47
	echo $this->headMeta()->appendHttpEquiv('X-UA-Compatible', 'IE=edge')
48
		->appendHttpEquiv('expires', '0')
49
		->appendHttpEquiv('expires', 'Tue, 01 Jan 1980 1:00:00 GMT')
50
		->appendHttpEquiv('pragma', 'no-cache')
51
		->appendHttpEquiv('Cache-Control', 'no-store')
52
		->appendHttpEquiv('Cache-Control', 'max-age=0')
53
		->appendHttpEquiv('Cache-Control', 'no-cache')
54
		->appendHttpEquiv('charset', 'UTF-8')
55
		->appendName('viewport', 'width=device-width, initial-scale=1.0');
56
	?>
1 www 57
 
16848 stevensc 58
	<!-- Fonts -->
59
	<link rel="preconnect" href="https://fonts.googleapis.com">
60
	<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
61
	<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap" rel="stylesheet">
62
	<!-- End fonts -->
16845 efrain 63
 
16848 stevensc 64
	<!-- core:css -->
65
	<link rel="stylesheet" href="<?php echo $this->basePath('assets/vendors/core/core.css') ?>">
66
	<!-- endinject -->
16845 efrain 67
 
16848 stevensc 68
	<!-- Plugin css for this page -->
69
	<!-- End plugin css for this page -->
1 www 70
 
16848 stevensc 71
	<!-- inject:css -->
72
	<link rel="stylesheet" href="<?php echo $this->basePath('assets/fonts/feather-font/css/iconfont.css') ?>">
73
	<link rel="stylesheet" href="<?php echo $this->basePath('assets/vendors/flag-icon-css/css/flag-icon.min.css') ?>">
74
	<!-- endinject -->
16806 efrain 75
 
16848 stevensc 76
	<link rel="stylesheet" href="<?php echo $this->basePath('assets/vendors/perfect-scrollbar/perfect-scrollbar.css') ?>" />
77
	<link rel="stylesheet" href="<?php echo $this->basePath('assets/vendors/toastr/toastr.min.css') ?>" />
78
 
79
 
80
	<link rel="stylesheet" href="<?php echo $this->basePath('assets/vendors/font-awesome/css/all.css') ?>">
81
 
82
	<!-- Layout styles -->
83
	<link rel="stylesheet" href="<?php echo $this->basePath('assets/css/style.css') ?>">
84
	<!-- End layout styles -->
85
 
86
 
87
	<link rel="stylesheet" href="<?php echo $this->basePath('assets/css/cesa.css'); ?>">
88
 
89
	<!--
16845 efrain 90
      	<link rel="stylesheet" href="<?php echo $this->basePath('assets/css/old/style.css') ?>">
91
      	<link rel="stylesheet" href="<?php echo $this->basePath('assets/css/old/style-cesa.css') ?>">
92
      	 -->
16848 stevensc 93
 
94
 
95
	<?php if ($currentUserHelper->hasIdentity()) :  ?>
96
		<!--
16822 efrain 97
		<link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('assets/css/icons.css') ?>" />
98
		<link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('assets/vendors/smiley/assets/sprites/emojione.sprites.css') ?>" />
99
		<link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('assets/vendors/uploader/jquery.ui.plupload/css/jquery-ui.css') ?>" />
100
		<link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('assets/vendors/uploader/jquery.ui.plupload/css/jquery.ui.plupload.css') ?>" />
14575 stevensc 101
 
15762 stevensc 102
 
16822 efrain 103
		<link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('assets/css/chat.css') ?>" />
16811 stevensc 104
 
16822 efrain 105
		<link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('assets/css/style-cesa.css') ?>" />
106
		<link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('assets/css/responsive-cesa.css') ?>" />
16811 stevensc 107
 
108
 
15158 stevensc 109
		<link rel="stylesheet" href="<?php echo $this->basePath('css/main.css') ?>">
16822 efrain 110
		-->
15762 stevensc 111
 
16811 stevensc 112
 
16848 stevensc 113
	<?php endif; ?>
114
 
115
	<?php
116
	echo $this->headStyle();
117
	echo $this->networkStylesAndColorsHelper();
118
	echo $this->headLink();
119
	echo $this->headScript();
120
	?>
121
</head>
122
 
123
<body>
124
	<div class="main-wrapper">
125
		<div class="page-wrapper">
126
 
127
			<nav class="sidebar">
128
				<div class="sidebar-header">
129
					<a href="<?php echo $this->url('dashboard') ?>" class="sidebar-brand">
130
						<?php if ($company) : ?>
17003 efrain 131
							<img src="<?php echo $currentUserHelper->getCompanyImage() ?>" alt="LABEL_ADMINISTRATION" class="wd-auto ht-50" style="opacity: .8">
16848 stevensc 132
						<?php else : ?>
133
							<img src="/assets/images/ll-logo.png" alt="LABEL_ADMINISTRATION" class="wd-auto ht-50" style="opacity: .8">
134
						<?php endif; ?>
135
					</a>
136
 
137
					<!--
16840 efrain 138
                    	<div class="sidebar-toggler not-active">
139
                      		<span></span>
140
                      		<span></span>
141
                      		<span></span>
142
                    	</div>
143
                    	 -->
16848 stevensc 144
				</div>
145
				<div class="sidebar-body ps ps--active-y">
146
					<ul class="nav">
147
						<?php echo $this->menuHelper() ?>
148
					</ul>
149
					<div class="ps__rail-x" style="left: 0px; bottom: 0px;">
150
						<div class="ps__thumb-x" tabindex="0" style="left: 0px; width: 0px;"></div>
151
					</div>
152
					<div class="ps__rail-y" style="top: 0px; height: 497px; right: 0px;">
153
						<div class="ps__thumb-y" tabindex="0" style="top: 0px; height: 301px;"></div>
154
					</div>
155
				</div>
156
			</nav>
15202 stevensc 157
 
16848 stevensc 158
			<nav class="navbar">
159
				<a href="#" class="sidebar-toggler">
160
					<i data-feather="menu"></i>
161
				</a>
162
 
163
 
164
				<div class="navbar-content">
165
 
166
					<ul class="navbar-nav">
167
 
168
 
169
 
170
 
171
						<li class="nav-item dropdown">
172
							<a class="nav-link dropdown-toggle" href="#" id="profileDropdown" role="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
17003 efrain 173
								<img class="wd-30 ht-30 rounded-circle" src="<?php echo $currentUserHelper->getUserImage() ?>" alt="profile">
16848 stevensc 174
							</a>
175
							<div class="dropdown-menu p-0" aria-labelledby="profileDropdown">
176
								<div class="d-flex flex-column align-items-center border-bottom px-5 py-3">
177
									<div class="">
17003 efrain 178
										<img class="wd-80 ht-80 rounded-circle" src="<?php echo $currentUserHelper->getUserImage() ?>" alt="">
16848 stevensc 179
									</div>
180
									<div class="text-center">
181
										<p class="tx-16 fw-bolder"><?php echo $user->first_name . ' ' . $user->last_name ?></p>
182
										<p class="tx-12 text-muted"><?php echo $user->email ?></p>
183
									</div>
184
								</div>
185
								<ul class="list-unstyled p-1">
186
 
187
									<li class="dropdown-item py-2">
188
										<a href="<?php echo $this->url('signout') ?>" class="text-body ms-0">
189
											<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-log-out me-2 icon-md">
190
												<path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"></path>
191
												<polyline points="16 17 21 12 16 7"></polyline>
192
												<line x1="21" y1="12" x2="9" y2="12"></line>
193
											</svg>
194
											<span>LABEL_LOGOUT</span>
195
										</a>
196
									</li>
197
								</ul>
198
							</div>
199
						</li>
200
					</ul>
16822 efrain 201
				</div>
4686 stevensc 202
 
16846 efrain 203
 
16848 stevensc 204
			</nav>
205
			<div class="page-content">
206
				<?php echo $this->content ?>
207
			</div>
14575 stevensc 208
 
16848 stevensc 209
 
210
			<footer class="footer d-flex flex-column flex-md-row align-items-center justify-content-between px-4 py-3 border-top small">
211
				<p class="text-muted mb-1 mb-md-0">Copyright © <?php echo date('Y') ?> <a href="https://www.cesams.com" target="_blank">CESA Management Solutions</a>.</p>
212
 
213
			</footer>
214
 
4686 stevensc 215
		</div>
14575 stevensc 216
 
16848 stevensc 217
	</div>
14575 stevensc 218
 
16848 stevensc 219
	<!-- core:js -->
16894 stevensc 220
	<script src="<?php echo $this->basePath('assets/vendors/core/core.js') ?>"></script>
16848 stevensc 221
	<!-- endinject -->
222
 
223
	<!-- Plugin js for this page -->
224
	<!-- End plugin js for this page -->
225
 
226
	<!-- inject:js -->
227
	<script src="<?php echo $this->basePath('assets/vendors/feather-icons/feather.min.js') ?>"></script>
228
	<script src="<?php echo $this->basePath('assets/js/template.js') ?>"></script>
229
	<!-- endinject -->
230
 
231
 
232
	<script src="<?php echo $this->basePath('assets/vendors/jquery/jquery.js') ?>"></script>
233
	<script src="<?php echo $this->basePath('assets/vendors/popper/popper.js') ?>"></script>
234
 
235
	<script src="<?php echo $this->basePath('assets/vendors/perfect-scrollbar/perfect-scrollbar.js') ?>"></script>
236
	<script src="<?php echo $this->basePath('assets/vendors/sweetalert2/sweetalert2.all.js') ?>"></script>
237
	<script src="<?php echo $this->basePath('assets/vendors/toastr/toastr.min.js') ?>"></script>
16929 efrain 238
 
239
	<script src="<?php echo $this->basePath('assets/vendors/jquery-validation/jquery.validate.js') ?>"></script>
240
	<script src="<?php echo $this->basePath('assets/vendors/jquery-validation/additional-methods.js') ?>"></script>
241
   	<script src="<?php echo $this->basePath('assets/vendors/jquery-validation/localization/messages_es.js') ?>"></script>
16848 stevensc 242
 
243
	<script src="<?php echo $this->basePath('assets/js/cesa.js') ?>"></script>
244
 
245
	<?php if ($currentUserHelper->hasIdentity()) :  ?>
246
		<script type="text/javascript" src="<?php echo $this->basePath('assets/vendors/smiley/smiley.js') ?>"></script>
247
		<script type="text/javascript" src="<?php echo $this->basePath('assets/vendors/smiley/js/emojione.min.js') ?>"></script>
248
	<?php endif; ?>
249
	<?php
250
	echo $this->inlineScript();
251
	?>
252
 
253
</body>
254
 
1 www 255
</html>