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 |
|
4686 |
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') ?>">
|
|
|
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') ?>">
|
1 |
www |
62 |
|
4686 |
stevensc |
63 |
<?php
|
|
|
64 |
echo $this->headStyle();
|
|
|
65 |
echo $this->headLink();
|
|
|
66 |
echo $this->headScript();
|
|
|
67 |
?>
|
|
|
68 |
</head>
|
|
|
69 |
|
|
|
70 |
<body class="hold-transition sidebar-mini">
|
|
|
71 |
<!-- Site wrapper -->
|
8759 |
stevensc |
72 |
<div class="wrapper">
|
4686 |
stevensc |
73 |
|
8759 |
stevensc |
74 |
<!-- Main Sidebar Container -->
|
8914 |
stevensc |
75 |
<aside class="main-sidebar sidebar-light-primary right-border">
|
|
|
76 |
<!-- Brand Logo -->
|
|
|
77 |
<a href="<?php echo $this->url('dashboard') ?>" class="brand-link">
|
|
|
78 |
<?php if ($company) :
|
|
|
79 |
$names = explode(' ', $company->name);
|
8759 |
stevensc |
80 |
|
8914 |
stevensc |
81 |
?>
|
|
|
82 |
<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">
|
|
|
83 |
<span class="brand-text font-weight-light"><?php echo $names[0] ?></span>
|
|
|
84 |
|
|
|
85 |
<?php else : ?>
|
|
|
86 |
<img src="<?php echo $this->basePath('img/logo-ll34x34.png') ?>" alt="Administrador" class="brand-image " style="opacity: .8; background-color: white">
|
|
|
87 |
<span class="brand-text font-weight-light">Admin</span>
|
|
|
88 |
<?php endif; ?>
|
|
|
89 |
</a>
|
|
|
90 |
|
|
|
91 |
<!-- Sidebar -->
|
8922 |
stevensc |
92 |
<div class="sidebar">
|
8915 |
stevensc |
93 |
<?php echo $this->menuHelper() ?>
|
8922 |
stevensc |
94 |
|
8914 |
stevensc |
95 |
</div>
|
|
|
96 |
<!-- /.sidebar -->
|
|
|
97 |
</aside>
|
|
|
98 |
|
4686 |
stevensc |
99 |
<!-- Content Wrapper. Contains page content -->
|
|
|
100 |
<div class="content-wrapper">
|
|
|
101 |
<section class="content">
|
|
|
102 |
<?php echo $this->content ?>
|
|
|
103 |
</section>
|
|
|
104 |
<!-- /.content -->
|
|
|
105 |
</div>
|
|
|
106 |
<!-- /.content-wrapper -->
|
|
|
107 |
</div>
|
|
|
108 |
|
|
|
109 |
<!-- jQuery -->
|
|
|
110 |
<script src="<?php echo $this->basePath('plugins/jquery/jquery.js') ?>"></script>
|
|
|
111 |
<!-- Bootstrap 4 -->
|
|
|
112 |
<script src="<?php echo $this->basePath('plugins/bootstrap/js/bootstrap.bundle.min.js') ?>"></script>
|
|
|
113 |
<!-- AdminLTE App -->
|
8906 |
stevensc |
114 |
<script src="<?php echo $this->basePath('js/adminlte.min.js') ?>"></script>
|
4686 |
stevensc |
115 |
<!-- Aplicacion -->
|
|
|
116 |
<script src="<?php echo $this->basePath('plugins/bootstrap-notify/bootstrap-notify.min.js') ?>"></script>
|
|
|
117 |
<script src="<?php echo $this->basePath('js/app.js') ?>"></script>
|
|
|
118 |
<?php
|
|
|
119 |
echo $this->inlineScript();
|
|
|
120 |
?>
|
|
|
121 |
</body>
|
|
|
122 |
|
1 |
www |
123 |
</html>
|