Changeset 1353
- Timestamp:
- 08/19/09 17:39:01 (15 years ago)
- Location:
- trunk/workflow
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/workflow/inc/class.so_orgchart.inc.php
r1305 r1353 147 147 $organizations = $this->acl->getUserPermissions("ORG", $this->userID); 148 148 $organizations[] = -1; 149 $query = "SELECT organizacao_id, nome, descricao, url_imagem, ativaFROM 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"; 150 150 } 151 151 $result = $this->db->query($query); … … 1120 1120 } 1121 1121 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 1122 1133 $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']) ) 1128 1135 { 1129 1136 $jobTitleInfo = $orgchart->getJobTitle($employeeInfo['cargo_id']); … … 1131 1138 } 1132 1139 1133 if ( $cargo )1134 $cargo .= ( !empty($employeeInfo['nivel']) ? " (Nível: {$employeeInfo['nivel']})" : '' );1135 1136 1140 $outputInfo[] = array( 1137 1141 'name' => 'Cargo', 1138 1142 '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 : '' ) 1139 1154 ); 1140 1155 -
trunk/workflow/js/userinterface/orgchart.js
r1313 r1353 266 266 return; 267 267 268 var content = '<center><strong>Lo talidades</strong></center>';268 var content = '<center><strong>Localidades</strong></center>'; 269 269 for ( var i = 0; i < data.length; i++ ) 270 270 content += '<br/>' + ' <a href="javascript:void(0)" id="localidade_' + data[i]['localidade_id'] + '" onclick="tmp = $$(\'div#orgchartAreas a.destaque\'); if (tmp[0]) tmp[0].removeClassName(\'destaque\'); this.addClassName(\'destaque\');loadManningEmployees(' + data[i]['localidade_id'] + ')">' + data[i]['descricao'] + '</a>'; … … 489 489 } 490 490 491 if ( card_data[ ' Cargo' ] )492 var role = card.appendChild( document.createTextNode( card_data[ ' Cargo' ] ) );491 if ( card_data[ 'Título' ] ) 492 var role = card.appendChild( document.createTextNode( card_data[ 'Título' ] ) ); 493 493 494 494 if ( card_data[ 'Área' ] ) … … 555 555 phone.appendChild( document.createTextNode( card_data[ 'Telefone' ] ) ); 556 556 phone.style.paddingLeft = '20px'; 557 phone.style.paddingRight = '10px';558 557 phone.style.whiteSpace = 'nowrap'; 559 558 phone.style.background = 'url(templateFile.php?file=images/phone.png) no-repeat 0 0';
Note: See TracChangeset
for help on using the changeset viewer.