Proyectos de Subversion LeadersLinked - Backend

Rev

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