Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 6 | Rev 18 | 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
2
$currentUser    = $this->currentUserHelper();
3
$user = $currentUser->getUser();
4
$company = $currentUser->getCompany();
5
 
6
$notify = '';
7
$messages = $this->flashMessenger()->getInfoMessages();
8
foreach($messages as $message)
9
{
10
    $notify .= "$.fn.showInfo('$message')";
11
}
12
 
13
$messages = $this->flashMessenger()->getSuccessMessages();
14
foreach($messages as $message)
15
{
16
    $notify .= "$.fn.showSuccess('$message')";
17
}
18
 
19
$messages = $this->flashMessenger()->getWarningMessages();
20
foreach($messages as $message)
21
{
22
    $notify .= " $.fn.showWarning('$message')";
23
}
24
 
25
$messages = $this->flashMessenger()->getErrorMessages();
26
foreach($messages as $message)
27
{
28
    $notify .= " $.fn.showError('$message')";
29
}
30
 
31
if($notify) {
32
    $this->inlineScript()->captureStart();
33
    echo " jQuery( document ).ready(function( $ ) { $notify }); ";
34
    $this->inlineScript()->captureEnd();
35
}
36
 
37
 
38
 
39
?>
40
<!DOCTYPE html>
41
<html lang="es">
42
	<head>
43
		<?php
44
        echo $this->headTitle();
45
        echo $this->headMeta()->appendHttpEquiv('X-UA-Compatible', 'IE=edge')
46
            ->appendHttpEquiv('expires','0')
47
        	->appendHttpEquiv('expires','Tue, 01 Jan 1980 1:00:00 GMT')
48
        	->appendHttpEquiv('pragma', 'no-cache')
49
        	->appendHttpEquiv('Cache-Control', 'no-store')
50
        	->appendHttpEquiv('Cache-Control', 'max-age=0')
51
        	->appendHttpEquiv('Cache-Control', 'no-cache')
52
        	->appendHttpEquiv('charset', 'UTF-8')
53
        	->appendName('viewport', 'width=device-width, initial-scale=1.0');
54
        ?>
55
 
56
	    <!-- Google Font: Source Sans Pro -->
57
		<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback">
58
        <!-- Font Awesome -->
59
        <link rel="stylesheet" href="<?php echo $this->basePath('plugins/font-awesome/css/font-awesome.css') ?>">
60
        <!-- Theme style -->
61
      	<link rel="stylesheet" href="<?php echo $this->basePath('css/adminlte.min.css') ?>">
62
  	    <!-- App style -->
63
      	<link rel="stylesheet" href="<?php echo $this->basePath('css/app.css') ?>">
64
 
65
        <?php
66
        echo $this->headStyle();
67
        echo $this->headLink();
68
        echo $this->headScript();
69
        ?>
70
	</head>
71
	<body class="hold-transition sidebar-mini">
72
        <!-- Site wrapper -->
73
		<div class="wrapper">
74
 
75
            <!-- Main Sidebar Container -->
17 steven 76
  			<aside class="main-sidebar sidebar-light-primary elevation-4">
1 www 77
                <!-- Brand Logo -->
78
        		<a href="<?php echo $this->url('dashboard') ?>" class="brand-link">
79
        			<?php if($company)  :
80
        			$names = explode(' ', $company->name);
81
 
82
        			?>
83
        			<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">
84
    		    	<span class="brand-text font-weight-light"><?php echo $names[0] ?></span>
85
 
86
        			<?php else : ?>
87
          			<img src="<?php echo $this->basePath('img/logo-ll34x34.png') ?>" alt="Administrador" class="brand-image " style="opacity: .8; background-color: white">
88
    		    	<span class="brand-text font-weight-light">Admin</span>
89
    		    	<?php endif; ?>
90
    		    </a>
91
 
92
                <!-- Sidebar -->
93
    			<div class="sidebar">
94
                    <?php  echo $this->menuHelper() ?>
95
 
96
    		    </div>
97
                <!-- /.sidebar -->
98
  			</aside>
99
 
100
            <!-- Content Wrapper. Contains page content -->
101
  			<div class="content-wrapper">
102
      	  		<section class="content">
103
    				<?php echo $this->content ?>
104
        		</section>
105
       		   <!-- /.content -->
106
			</div>
107
            <!-- /.content-wrapper -->
108
		</div>
109
 
110
        <!-- jQuery -->
111
        <script src="<?php echo $this->basePath('plugins/jquery/jquery.js') ?>"></script>
112
        <!-- Bootstrap 4 -->
113
        <script src="<?php echo $this->basePath('plugins/bootstrap/js/bootstrap.bundle.min.js') ?>"></script>
114
        <!-- AdminLTE App -->
115
        <script src="<?php echo $this->basePath('js/adminlte.min.js') ?>"></script>
116
        <!--  Aplicacion -->
117
    	<script src="<?php echo $this->basePath('plugins/bootstrap-notify/bootstrap-notify.min.js') ?>"></script>
118
    	<script src="<?php echo $this->basePath('js/app.js') ?>"></script>
119
		<?php
120
        echo $this->inlineScript();
121
        ?>
122
    </body>
123
</html>