Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 16811 | Rev 16840 | 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') ?>" />
77
		<link rel="stylesheet" href="<?php echo $this->basePath('assets/vendors/font-awesome/css/font-awesome.css') ?>">
78
 
79
        <!-- Layout styles -->
80
    	<link rel="stylesheet" href="<?php echo $this->basePath('assets/css/style.css') ?>">
81
        <!-- End layout styles -->
1 www 82
 
16806 efrain 83
 
16822 efrain 84
      	<link rel="stylesheet" href="<?php echo $this->basePath('assets/css/cesa.css'); ?>">
85
 
86
    	<?php if ($currentUserHelper->hasIdentity()) :  ?>
87
    	<!--
88
		<link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('assets/css/icons.css') ?>" />
89
		<link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('assets/vendors/smiley/assets/sprites/emojione.sprites.css') ?>" />
90
		<link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('assets/vendors/uploader/jquery.ui.plupload/css/jquery-ui.css') ?>" />
91
		<link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('assets/vendors/uploader/jquery.ui.plupload/css/jquery.ui.plupload.css') ?>" />
14575 stevensc 92
 
15762 stevensc 93
 
16822 efrain 94
		<link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('assets/css/chat.css') ?>" />
16811 stevensc 95
 
16822 efrain 96
		<link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('assets/css/style-cesa.css') ?>" />
97
		<link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('assets/css/responsive-cesa.css') ?>" />
16811 stevensc 98
 
99
 
15158 stevensc 100
		<link rel="stylesheet" href="<?php echo $this->basePath('css/main.css') ?>">
16822 efrain 101
		-->
15762 stevensc 102
 
16811 stevensc 103
 
16822 efrain 104
		<?php endif; ?>
105
 
106
    	<?php
107
        echo $this->headStyle();
108
        echo $this->networkStylesAndColorsHelper();
109
        echo $this->headLink();
110
        echo $this->headScript();
111
        ?>
112
    </head>
113
	<body>
114
		<div class="main-wrapper">
115
			<div class="page-wrapper">
116
    			<nav class="sidebar">
117
          			<div class="sidebar-header">
118
            			<a href="<?php echo $this->url('dashboard') ?>" class="sidebar-brand">
119
            				<?php if ($company) : ?>
120
            					<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">
121
            				<?php else : ?>
122
            					<img src="/assets/images/ll-logo.png" alt="LABEL_ADMINISTRATION" class="wd-auto ht-50" style="opacity: .8">
123
            				<?php endif; ?>
124
 
125
 
126
 
127
            			</a>
128
            			<div class="sidebar-toggler not-active">
129
              				<span></span>
130
              				<span></span>
131
              				<span></span>
132
            			</div>
133
          			</div>
134
          			<div class="sidebar-body">
135
          			<!--  ps ps--active-y  -->
136
          				<div class="sidebar-body ps ps--active-y">
137
            				<ul class="nav">
138
            					<?php echo $this->menuHelper() ?>
139
    						</ul>
140
    					</div>
141
          			</div>
142
    			</nav>
143
 
144
				<nav class="navbar">
145
					<a href="#" class="sidebar-toggler">
146
						<i data-feather="menu"></i>
147
					</a>
148
 
149
 
150
					<div class="navbar-content">
15202 stevensc 151
 
16822 efrain 152
						<ul class="navbar-nav">
153
 
154
 
155
 
156
 
157
    						<li class="nav-item dropdown">
158
    							<a class="nav-link dropdown-toggle" href="#" id="profileDropdown" role="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
159
    								<img class="wd-30 ht-30 rounded-circle" src="<?php echo $this->url('storage', ['type' => 'user', 'code' => $user->uuid, 'filename' => $user->image]) ?>" alt="profile">
160
    							</a>
161
    							<div class="dropdown-menu p-0" aria-labelledby="profileDropdown">
162
    								<div class="d-flex flex-column align-items-center border-bottom px-5 py-3">
163
    									<div class="mb-3">
164
    										<img class="wd-80 ht-80 rounded-circle" src="<?php echo $this->url('storage', ['type' => 'user', 'code' => $user->uuid, 'filename' => $user->image]) ?>" alt="">
165
    									</div>
166
    									<div class="text-center">
167
    										<p class="tx-16 fw-bolder"><?php echo $user->first_name . ' ' . $user->last_name ?></p>
168
    										<p class="tx-12 text-muted"><?php echo $user->email ?></p>
169
    									</div>
170
    								</div>
171
                					<ul class="list-unstyled p-1">
172
 
173
                                  		<li class="dropdown-item py-2">
174
                                    		<a href="<?php echo $this->url('signout')?>" class="text-body ms-0">
175
                                          		<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>
176
                                          		<span>LABEL_LOGOUT</span>
177
                                    		</a>
178
                                  		</li>
179
                                	</ul>
180
    							</div>
181
    						</li>
182
    					</ul>
183
    				</div>
184
 
185
 
186
				</nav>
187
				<div class="page-content">
188
					<?php echo $this->content ?>
189
				</div>
4686 stevensc 190
 
16822 efrain 191
 
192
        		<footer class="footer d-flex flex-column flex-md-row align-items-center justify-content-between px-4 py-3 border-top small">
193
            		<p class="text-muted mb-1 mb-md-0">Copyright © 2022 <a href="https://www.nobleui.com" target="_blank">NobleUI</a>.</p>
194
        			<p class="text-muted">Handcrafted With <i class="mb-1 text-primary ms-1 icon-sm" data-feather="heart"></i></p>
195
        		</footer>
14575 stevensc 196
 
16807 stevensc 197
			</div>
16822 efrain 198
 
4686 stevensc 199
		</div>
14575 stevensc 200
 
16822 efrain 201
    	<!-- core:js -->
202
    	<script src="<?php echo $this->basePath('assets/vendors/core/core.js') ?>"></script>
203
    	<!-- endinject -->
204
 
205
    	<!-- Plugin js for this page -->
206
    	<!-- End plugin js for this page -->
207
 
208
    	<!-- inject:js -->
209
    	<script src="<?php echo $this->basePath('assets/vendors/feather-icons/feather.min.js') ?>"></script>
210
    	<script src="<?php echo $this->basePath('assets/js/template.js') ?>"></script>
211
    	<!-- endinject -->
212
 
213
 
214
	    <script src="<?php echo $this->basePath('assets/vendors/jquery/jquery.js') ?>"></script>
215
	    <script src="<?php echo $this->basePath('assets/vendors/popper/popper.js') ?>"></script>
216
 
217
	    <script src="<?php echo $this->basePath('assets/vendors/perfect-scrollbar/perfect-scrollbar.js') ?>"></script>
218
    	<script src="<?php echo $this->basePath('assets/vendors/sweetalert2/sweetalert2.all.js') ?>"></script>
219
    	<script src="<?php echo $this->basePath('assets/vendors/toastr/toastr.min.js') ?>"></script>
220
 
221
 		<script src="<?php echo $this->basePath('assets/js/cesa.js') ?>"></script>
222
 
223
	  	<?php if ($currentUserHelper->hasIdentity()) :  ?>
224
    		<script type="text/javascript" src="<?php echo $this->basePath('assets/vendors/smiley/smiley.js') ?>"></script>
225
    		<script type="text/javascript" src="<?php echo $this->basePath('assets/vendors/smiley/js/emojione.min.js') ?>"></script>
226
    	<?php endif; ?>
227
    	<?php
228
    	echo $this->inlineScript();
229
    	?>
14575 stevensc 230
 
16822 efrain 231
	</body>
1 www 232
</html>