Conjunto 9a143ba en sipes


Ignorar:
Fecha y hora:
19/08/2016 17:05:13 (hace 8 años)
Autor:
lhernandez <lhernandez@…>
Branches:
stable, version-3.0
Children:
a544281
Parents:
51860d3
Mensaje:

se agregaron los iconos de documentación

Fichero:
1 editado

Leyenda

No modificado
Añadido
Eliminado
  • 0.3-modules/principal_inicio_sipp/principal_inicio_sipp.module

    r498b89c r9a143ba  
    383383
    384384function menu_principal_documentacion_page() {
    385  
     385  global $user;
     386  $ente = usuario_tiene_ente($user->uid);
     387  $ente_planificador = 0;
     388  if ($ente && $ente->nid) {
     389    $ente_planificador = ente_planificador_leer_ente_planificadores($ente->nid);
     390  }
     391
    386392  $path_modulo_menu_principal = drupal_get_path('module', 'principal_inicio_sipp');
    387393 
     
    390396  $page_content .= '<table align=\"center\" border=\"0\"><tr>';
    391397 
    392   //$image_tag = theme_image($path_modulo_menu_principal.'/img/menu/por_asignar.png').'<br>'.'<b>'.t('Descripción del sistema').'</b>';
    393   $image_tag = '<b>'.t('Manual del Usuario').'</b>';
     398  $image_tag = theme_image($path_modulo_menu_principal.'/img/menu/planners.png').'<br>'.'<b>'.t('Manual del Usuario').'</b>';
    394399  $page_content .= "<td width=\"50%\" align=\"center\">".l($image_tag, 'https://sipes.mppp.gob.ve/sites/default/files/ManualdeUsuario.pdf', array('html'=>TRUE))."</td>";
    395400   
    396   //$image_tag = theme_image($path_modulo_menu_principal.'/img/menu/por_asignar.png').'<br>'.'<b>'.t('Sobre la fase de desarrollo').'</b>';
    397   $image_tag = '<b>'.t('Video tutoriales').'</b>';
     401  $image_tag = theme_image($path_modulo_menu_principal.'/img/menu/plannersearch.png').'<br>'.'<b>'.t('Video tutoriales').'</b>';
    398402  $page_content .= "<td width=\"50%\" align=\"center\">".l($image_tag, 'https://planificacion.cenditel.gob.ve/productos/formacion-en-linea-en-el-area-de-planificacion/', array('html'=>TRUE))."</td>";
    399    
     403
    400404  $page_content .= '</tr></table>';
    401405  $page_content .= '<br><br>';
    402  
     406
     407  $page_content .= '<h4>Reportes:</h4>';
     408  $page_content .= '<table align=\"center\" border=\"0\"><tr>';
     409
     410  if ($ente && $ente->nid) {
     411    $ente_planificador = ente_planificador_leer_ente_planificadores($ente->nid);
     412  }
     413
     414  //$image_tag = theme_image($path_modulo_menu_principal.'/img/reportes/reports.png').'<br>'.'<b>'.t('Reporte General').'</b>';
     415  //$page_content .= "<td width=\"25%\" align=\"center\">".l($image_tag, 'sipp_report_mpp/sectorial', array('html'=>TRUE))."</td>";
     416
     417  if (user_access('edit own planificador')) {
     418    $image_tag = theme_image($path_modulo_menu_principal.'/img/reportes/reports.png').'<br>'.'<b>'.t('Reporte Para la Coordinación General').'</b>';
     419    $page_content .= "<td width=\"25%\" align=\"center\">".l($image_tag, 'sipp_report_mpp/corrdgen', array('html'=>TRUE))."</td>";
     420    //reportes revisores
     421    $image_tag = theme_image($path_modulo_menu_principal.'/img/reportes/reports.png').'<br>'.'<b>'.t('Reporte Para el Enlace revisor').'</b>';
     422    $page_content .= "<td width=\"25%\" align=\"center\">".l($image_tag, 'sipp_report_mpp/revisor', array('html'=>TRUE))."</td>";
     423    //reportes supervisores
     424    $image_tag = theme_image($path_modulo_menu_principal.'/img/reportes/reports.png').'<br>'.'<b>'.t('Reporte Para el Coordinador de Ambito').'</b>';
     425    $page_content .= "<td width=\"25%\" align=\"center\">".l($image_tag, 'sipp_report_mpp/cooamb', array('html'=>TRUE))."</td>";
     426  }
     427  else {
     428    if ($ente->nid && $user->ambito_user) {
     429      $ambito = taxonomy_get_term($user->ambito_user);
     430      $terms = taxonomy_get_children($ambito->tid);
     431      foreach ($terms as $term) {
     432        $image_tag = theme_image($path_modulo_menu_principal.'/img/reportes/unidadejecutora.png').'<br>'.'<b>' . t('Reporte de proyectos de la %unidad', array("%unidad" => $term->name)).'</b>';
     433      }
     434    }
     435    $page_enlace = '';
     436    if ($ente_planificador && $ente_planificador->tipo == 1) {
     437      $roles_type = _ente_planificador_hierarchical_get_roles_type($ente_planificador->tipo);
     438      foreach($roles_type as $rol => $text) {
     439        $text1 = t('Ente tipo @number (@type)', array('@number' => $ente_planificador->tipo, '@type' => $text));
     440        if ($text1 ==  $user->roles[key($user->roles)] && $rol == 'enl') {
     441          $page_enlace = "<td width=\"50%\" align=\"center\">".l($image_tag, 'sipp_report_mpp/revisor', array('html'=>TRUE))."</td>";
     442        }
     443        elseif ($text1 ==  $user->roles[key($user->roles)] && $rol == 'sup') {
     444          $page_enlace = "<td width=\"50%\" align=\"center\">".l($image_tag, 'sipp_report_mpp/cooamb', array('html'=>TRUE))."</td>";
     445        }
     446      }
     447    }
     448    $page_content .= $page_enlace;
     449  }
     450
     451  $page_content .= '</tr></table>';
     452  $page_content .= '<br><br>';
     453
    403454  return $page_content;
    404455}
Nota: Vea TracChangeset para ayuda en el uso del visor de conjuntos de cambios.