Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 15158 Rev 15202
Línea 34... Línea 34...
34
$menu = [];
34
$menu = [];
Línea 35... Línea 35...
35
 
35
 
36
if ($company) {
36
if ($company) {
37
	$baseMenu = getAclMenuCompany();
37
	$baseMenu = getAclMenuCompany();
38
} else {
38
} else {
39
	$baseMenu= getAclMenuSystem();
39
	$baseMenu = getAclMenuSystem();
Línea 40... Línea 40...
40
}
40
}
41
 
41
 
42
if ($company) {
42
if ($company) {
Línea 48... Línea 48...
48
 
48
 
49
$session_usertype_id = $user->usertype_id;
49
$session_usertype_id = $user->usertype_id;
Línea 50... Línea 50...
50
$acl = $this->viewModel()->getCurrent()->getVariable('acl');
50
$acl = $this->viewModel()->getCurrent()->getVariable('acl');
51
 
-
 
52
 
51
 
53
foreach($baseMenu as $menuLevel1) 
52
 
54
{
53
foreach ($baseMenu as $menuLevel1) {
55
    if(!$acl->isAllowed($session_usertype_id ,  $menuLevel1['route'])) {
54
	if (!$acl->isAllowed($session_usertype_id,  $menuLevel1['route'])) {
56
        continue;
55
		continue;
57
    }
56
	}
58
    
57
 
59
    
58
 
60
    $optionLevel1 = [
59
	$optionLevel1 = [
61
        'label' => $menuLevel1['label'], 
60
		'label' => $menuLevel1['label'],
62
        'route' => $menuLevel1['route'], 
61
		'route' => $menuLevel1['route'],
63
        'class' => empty($menuLevel1['class']) ? '' :  $menuLevel1['class'], 
62
		'class' => empty($menuLevel1['class']) ? '' :  $menuLevel1['class'],
64
       
63
 
65
    ];
64
	];
66
    
65
 
67
    
66
 
68
    if(!empty($menuLevel1['pages'])) {
67
	if (!empty($menuLevel1['pages'])) {
69
        
68
 
70
        
69
 
71
 
70
 
72
        
71
 
73
        $optionLevel1['pages'] = [];
72
		$optionLevel1['pages'] = [];
74
        
73
 
75
        
-
 
76
        
74
 
77
        foreach($menuLevel1['pages'] as $menuLevel2)
75
 
78
        {
76
		foreach ($menuLevel1['pages'] as $menuLevel2) {
79
            
77
 
80
            $optionLevel2 = [
78
			$optionLevel2 = [
81
                'label' => $menuLevel2['label'],
79
				'label' => $menuLevel2['label'],
82
                'route' => $menuLevel2['route'],
80
				'route' => $menuLevel2['route'],
83
                'class' => empty($menuLevel2['class']) ? '' :  $menuLevel2['class'],
81
				'class' => empty($menuLevel2['class']) ? '' :  $menuLevel2['class'],
84
            ];
82
			];
85
            
83
 
86
            if(!$acl->isAllowed($session_usertype_id ,  $menuLevel2['route'])) {
84
			if (!$acl->isAllowed($session_usertype_id,  $menuLevel2['route'])) {
87
               continue;
85
				continue;
88
            }
86
			}
89
            
87
 
90
            if(!empty($menuLevel2['pages'])) {
88
			if (!empty($menuLevel2['pages'])) {
91
                $optionLevel2['pages'] = [];
-
 
92
                
89
				$optionLevel2['pages'] = [];
93
                foreach($menuLevel2['pages'] as $menuLevel3)
90
 
94
                {
91
				foreach ($menuLevel2['pages'] as $menuLevel3) {
95
                    
92
 
96
                    $optionLevel3 = [
93
					$optionLevel3 = [
97
                        'label' => $menuLevel3['label'],
94
						'label' => $menuLevel3['label'],
98
                        'route' => $menuLevel3['route'],
95
						'route' => $menuLevel3['route'],
99
                        'class' => empty($menuLevel3['class']) ? '' :  $menuLevel3['class'],
96
						'class' => empty($menuLevel3['class']) ? '' :  $menuLevel3['class'],
100
                    ];
97
					];
101
                    
98
 
102
                    if(!$acl->isAllowed($session_usertype_id ,  $menuLevel3['route'])) {
99
					if (!$acl->isAllowed($session_usertype_id,  $menuLevel3['route'])) {
103
                        continue;
100
						continue;
104
                    }
101
					}
105
                    
-
 
106
                    array_push($optionLevel2['pages'], $optionLevel3);
102
 
107
                    
103
					array_push($optionLevel2['pages'], $optionLevel3);
108
                }
104
				}
109
            }
105
			}
110
            
-
 
111
            
-
 
112
            array_push($optionLevel1['pages'], $optionLevel2);
106
 
113
        
107
 
114
        }
-
 
115
        
108
			array_push($optionLevel1['pages'], $optionLevel2);
116
        
109
		}
117
    }
110
	}
118
    
111
 
119
    
112
 
120
    
113
 
Línea 121... Línea 114...
121
    
114
 
122
    array_push($menu, $optionLevel1);
115
	array_push($menu, $optionLevel1);
Línea 199... Línea 192...
199
 
192
 
200
		<link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('css/chat.css') ?>" />
193
		<link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('css/chat.css') ?>" />
201
		<link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('css/style-cesa.css') ?>" />
194
		<link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('css/style-cesa.css') ?>" />
202
		<link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('css/responsive-cesa.css') ?>" />
195
		<link rel="stylesheet" type="text/css" href="<?php echo $this->basePath('css/responsive-cesa.css') ?>" />
-
 
196
		<link rel="stylesheet" href="<?php echo $this->basePath('css/main.css') ?>">
-
 
197
		<style>
-
 
198
			:root {
-
 
199
				--bg-color: #fff;
-
 
200
				--body-bg-color: #f2f2f2;
-
 
201
				--bg-color-secondary: #D9D9D9;
-
 
202
				--font-color: #16283c;
-
 
203
				--font-color-hover: #1d315c;
-
 
204
				--title-color: #000;
-
 
205
				--subtitle-color: #626d7a;
-
 
206
				--icons-color: #666666;
-
 
207
				--button-bg: #16283c;
-
 
208
				--button-bg-hover: #1d315c;
-
 
209
				--button-text-color: #fff;
-
 
210
				--button-bg-secondary: #0000;
-
 
211
				--button-bg-secondary-hover: #909090;
-
 
212
				--button-text-color-secondary: #000;
-
 
213
				--button-bg-tertiary: #f4f4f4;
-
 
214
				--button-text-color-tertiary: #909090;
-
 
215
				--border-primary: #e8e8e8;
-
 
216
				--border-trasnparent: #0000;
-
 
217
				--chat-received: #fff;
-
 
218
				--chat-send: #d8f1e4;
-
 
219
				--chat-color: #626d7a;
-
 
220
 
-
 
221
				--dark-blue: #01245d;
-
 
222
				--primary-green: #1eb89e;
-
 
223
				--light-font: #bebebe;
-
 
224
				--light-gray: #bebebe;
-
 
225
				--dark-white: #e7e7e7;
-
 
226
				--gray: #909090;
-
 
227
				--primary-lightblue: #0961bf;
-
 
228
				--primary-lightblue-hover: #1e5591;
-
 
229
				--yellow-highlight: #ecec0e;
-
 
230
				--yellow-darker: #decd00;
-
 
231
				--background-gray: #f5f5f7;
-
 
232
				--danger: #e20808;
-
 
233
				--danger-hover: #a10707;
-
 
234
				--shadow-gray: rgb(0 0 0 / 5%);
-
 
235
				--online-green: #42b72a;
-
 
236
				--blue: #0860bf;
-
 
237
				--border-gray: #e8e8e8;
-
 
238
				--border-gray-primary: #b3b3b3;
-
 
239
				--white: #ffffff;
-
 
240
				--black: #000000;
-
 
241
				--dark-blue-pr: #16283c;
-
 
242
 
-
 
243
				--white-backdrop: rgba(255, 255, 255, 0.4);
-
 
244
				--grayline-border: 1px solid #e5e5e5;
-
 
245
				--border-radius: 10px;
-
 
246
				--light-shadow: 0px 0px 11px 0px rgb(0 0 0 /10%);
-
 
247
				--shadow: 0px 4px 14px -2px rgb(0 0 0 / 12%);
-
 
248
			}
203
		<link rel="stylesheet" href="<?php echo $this->basePath('css/main.css') ?>">
249
		</style>
204
	<?php endif; ?>
250
	<?php endif; ?>
205
	<?php
251
	<?php
206
	echo $this->headStyle();
252
	echo $this->headStyle();
207
	echo $this->headLink();
253
	echo $this->headLink();
208
	echo $this->headScript();
254
	echo $this->headScript();
209
	?>
255
	?>
210
	
256
 
Línea 211... Línea 257...
211
</head>
257
</head>
212
 
258
 
213
<body class="hold-transition sidebar-mini">
259
<body class="hold-transition sidebar-mini">