Proyectos de Subversion LeadersLinked - Backend

Rev

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