Changeset 1353 for trunk/workflow/inc


Ignore:
Timestamp:
08/19/09 17:39:01 (15 years ago)
Author:
viani
Message:

Ticket #589 - Atualizacao do organograma do workflow. Modificacao de imagem e layout cartao visita

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/workflow/inc/class.so_orgchart.inc.php

    r1305 r1353  
    147147                        $organizations = $this->acl->getUserPermissions("ORG", $this->userID); 
    148148                        $organizations[] = -1; 
    149                         $query = "SELECT organizacao_id, nome, descricao, url_imagem, ativa FROM organizacao WHERE (organizacao_id IN (" . implode(',', $organizations)  . ")) ORDER BY nome"; 
     149                        $query = "SELECT organizacao_id, nome, descricao, ativa, url_imagem, sitio FROM organizacao WHERE (organizacao_id IN (" . implode(',', $organizations)  . ")) ORDER BY nome"; 
    150150                } 
    151151                $result = $this->db->query($query); 
     
    11201120                } 
    11211121 
     1122                $titulo = NULL; 
     1123                if ( !empty( $employeeInfo['titulo'] ) ) 
     1124                { 
     1125                        $titulo = $employeeInfo['titulo']; 
     1126                } 
     1127 
     1128                $outputInfo[] = array( 
     1129                        'name' => 'Título', 
     1130                        'value' => ( $titulo ? $titulo : '' ) 
     1131                ); 
     1132 
    11221133                $cargo = NULL; 
    1123                 if ( !empty( $employeeInfo['titulo'] ) ) 
    1124                 { 
    1125                         $cargo = $employeeInfo['titulo']; 
    1126                 } 
    1127                 else if ( !empty($employeeInfo['cargo_id']) ) 
     1134                if ( !empty($employeeInfo['cargo_id']) ) 
    11281135                { 
    11291136                        $jobTitleInfo = $orgchart->getJobTitle($employeeInfo['cargo_id']); 
     
    11311138                } 
    11321139 
    1133                 if ( $cargo ) 
    1134                         $cargo .= ( !empty($employeeInfo['nivel']) ? " (Nível: {$employeeInfo['nivel']})" : '' ); 
    1135  
    11361140                $outputInfo[] = array( 
    11371141                        'name' => 'Cargo', 
    11381142                        'value' => ( $cargo ? $cargo : '' ) 
     1143                ); 
     1144 
     1145                $nivel = NULL; 
     1146                if ( !empty($employeeInfo['nivel']) ) 
     1147                { 
     1148                        $nivel = $employeeInfo['nivel']; 
     1149                } 
     1150 
     1151                $outputInfo[] = array( 
     1152                        'name' => 'Nível', 
     1153                        'value' => ( $nivel ? $nivel : '' ) 
    11391154                ); 
    11401155 
Note: See TracChangeset for help on using the changeset viewer.