Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 18 | Rev 8696 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

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