Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 15768 | Rev 16806 | 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>
39
<html lang="es">
40
 
4686 stevensc 41
<head>
15762 stevensc 42
	<?php
43
	echo $this->headTitle();
44
	?>
45
	<link rel="icon" href="<?php echo $this->networkFavicoHelper(); ?>">
46
	<?php
4686 stevensc 47
	echo $this->headMeta()->appendHttpEquiv('X-UA-Compatible', 'IE=edge')
48
		->appendHttpEquiv('expires', '0')
49
		->appendHttpEquiv('expires', 'Tue, 01 Jan 1980 1:00:00 GMT')
50
		->appendHttpEquiv('pragma', 'no-cache')
51
		->appendHttpEquiv('Cache-Control', 'no-store')
52
		->appendHttpEquiv('Cache-Control', 'max-age=0')
53
		->appendHttpEquiv('Cache-Control', 'no-cache')
54
		->appendHttpEquiv('charset', 'UTF-8')
55
		->appendName('viewport', 'width=device-width, initial-scale=1.0');
56
	?>
1 www 57
 
14575 stevensc 58
	<!-- Google Font: Source Sans Pro -->
59
	<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback">
60
	<!-- Font Awesome -->
61
	<link rel="stylesheet" href="<?php echo $this->basePath('plugins/font-awesome/css/font-awesome.css') ?>">
4686 stevensc 62
	<!-- Theme style -->
63
	<link rel="stylesheet" href="<?php echo $this->basePath('css/adminlte.min.css') ?>">
64
	<!-- App style -->
65
	<link rel="stylesheet" href="<?php echo $this->basePath('/react-bundles/menu/main.css') ?>">
9002 stevensc 66
	<script src="<?php echo $this->basePath('plugins/ckeditor/ckeditor.js') ?>"></script>
1 www 67
 
11578 nelberth 68
	<?php if ($currentUserHelper->hasIdentity()) :  ?>
14575 stevensc 69
		<link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('css/icons.css') ?>" />
70
		<link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('vendors/smiley/assets/sprites/emojione.sprites.css') ?>" />
71
		<link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('vendors/uploader/jquery.ui.plupload/css/jquery-ui.css') ?>" />
72
		<link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('vendors/uploader/jquery.ui.plupload/css/jquery.ui.plupload.css') ?>" />
73
 
15762 stevensc 74
 
15768 stevensc 75
		<link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('css/chat.css') ?>" />
14575 stevensc 76
		<link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('css/style-cesa.css') ?>" />
14900 stevensc 77
		<link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('css/responsive-cesa.css') ?>" />
15158 stevensc 78
		<link rel="stylesheet" href="<?php echo $this->basePath('css/main.css') ?>">
15762 stevensc 79
 
11565 efrain 80
	<?php endif; ?>
11578 nelberth 81
	<?php
82
	echo $this->headStyle();
15337 efrain 83
	echo $this->networkStylesAndColorsHelper();
11578 nelberth 84
	echo $this->headLink();
85
	echo $this->headScript();
86
	?>
15202 stevensc 87
 
4686 stevensc 88
</head>
89
 
90
<body class="hold-transition sidebar-mini">
91
	<!-- Site wrapper -->
14150 stevensc 92
	<div class="wrapper">
14575 stevensc 93
 
16805 efrain 94
		<nav class="main-header navbar navbar-expand navbar-white navbar-light">
95
			<div class="w-100 text-center">
96
				<h4><?php  echo $company ? $company->name : 'LABEL_SUPER_ADMIN' ?></h4>
97
			</div>
98
		</nav>
8759 stevensc 99
 
16805 efrain 100
		<div id="menu-sidebar">
101
			<?php
102
			if ($currentUserHelper->hasIdentity()) {
103
				echo $this->menuHelper();
104
			}
105
			?>
106
		</div>
107
 
4686 stevensc 108
		<!-- Content Wrapper. Contains page content -->
14143 stevensc 109
		<div class="content-wrapper">
4686 stevensc 110
			<section class="content">
111
				<?php echo $this->content ?>
112
			</section>
14575 stevensc 113
 
114
 
115
			<?php
11565 efrain 116
			if ($currentUserHelper->hasIdentity()) {
14575 stevensc 117
				echo $this->chatHelper($user->id);
11565 efrain 118
			}
119
			?>
14575 stevensc 120
 
4686 stevensc 121
			<!-- /.content -->
122
		</div>
123
		<!-- /.content-wrapper -->
124
	</div>
125
	<!-- jQuery -->
126
	<script src="<?php echo $this->basePath('plugins/jquery/jquery.js') ?>"></script>
127
	<!-- Bootstrap 4 -->
128
	<script src="<?php echo $this->basePath('plugins/bootstrap/js/bootstrap.bundle.min.js') ?>"></script>
129
	<!-- AdminLTE App -->
8906 stevensc 130
	<script src="<?php echo $this->basePath('js/adminlte.min.js') ?>"></script>
4686 stevensc 131
	<!--  Aplicacion -->
132
	<script src="<?php echo $this->basePath('plugins/bootstrap-notify/bootstrap-notify.min.js') ?>"></script>
133
	<script src="<?php echo $this->basePath('js/app.js') ?>"></script>
11577 nelberth 134
	<?php if ($currentUserHelper->hasIdentity()) :  ?>
135
		<script type="text/javascript" src="<?php echo $this->basePath('vendors/smiley/smiley.js') ?>"></script>
136
		<script type="text/javascript" src="<?php echo $this->basePath('vendors/smiley/js/emojione.min.js') ?>"></script>
137
	<?php endif; ?>
4686 stevensc 138
	<?php
139
	echo $this->inlineScript();
140
	?>
14575 stevensc 141
 
142
 
4686 stevensc 143
</body>
144
 
1 www 145
</html>