Proyectos de Subversion LeadersLinked - Backend

Rev

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

Rev 8706 Rev 8742
Línea 1... Línea 1...
1
<?php
1
<?php
-
 
2
use LeadersLinked\Model\UserType;
-
 
3
 
2
$currentUser    = $this->currentUserHelper();
4
$currentUser    = $this->currentUserHelper();
3
$user = $currentUser->getUser();
5
$user = $currentUser->getUser();
4
$company = $currentUser->getCompany();
6
$company = $currentUser->getCompany();
Línea 5... Línea -...
5
 
-
 
6
use LeadersLinked\Model\UserType;
7
 
7
$notify = '';
8
$notify = '';
8
$messages = $this->flashMessenger()->getInfoMessages();
9
$messages = $this->flashMessenger()->getInfoMessages();
9
foreach ($messages as $message) {
10
foreach ($messages as $message) {
10
	$notify .= "$.fn.showInfo('$message')";
11
	$notify .= "$.fn.showInfo('$message')";
Línea 29... Línea 30...
29
	$this->inlineScript()->captureStart();
30
	$this->inlineScript()->captureStart();
30
	echo " jQuery( document ).ready(function( $ ) { $notify }); ";
31
	echo " jQuery( document ).ready(function( $ ) { $notify }); ";
31
	$this->inlineScript()->captureEnd();
32
	$this->inlineScript()->captureEnd();
32
}
33
}
Línea 33... Línea -...
33
 
-
 
34
 
-
 
35
$currentUserPlugin = $this->currentUserHelper();
-
 
36
$currentUser = $currentUserPlugin->getUser();
-
 
37
$currentCompany = $currentUserPlugin->getCompany();
-
 
38
 
34
 
39
if ($currentCompany) {
35
if ($company) {
40
  $menu = getAclMenuCompany();
36
	$menu = getAclMenuCompany();
41
} else {
37
} else {
-
 
38
	$menu = getAclMenuSystem();
-
 
39
}
-
 
40
 
-
 
41
if ($company) {
42
  $menu = getAclMenuSystem();
42
	$names = explode(' ', $company->name);
Línea -... Línea 43...
-
 
43
}
43
}
44
 
Línea 44... Línea 45...
44
 
45
 
45
$usertype_id = $currentUser->usertype_id;
46
$usertype_id = $user->usertype_id;
Línea 46... Línea 47...
46
 
47
 
Línea 60... Línea 61...
60
 
61
 
61
$jsonMenu = json_encode($menu);
62
$jsonMenu = json_encode($menu);
62
$companyId = $company->uuid;
63
$companyId = $company->uuid;
63
$companyName = $company->name;
64
$companyName = $company->name;
64
$companyImg = $company->image;
-
 
65
if ($company) :
-
 
66
	$names = explode(' ', $company->name);
-
 
Línea 67... Línea 65...
67
endif;
65
$companyImg = $company->image;
68
	
66
	
69
$js = <<<JS
67
$js = <<<JS
70
const backendVars= {
68
const backendVars= {