Ad Widget

Collapse

Invert Table of triggers

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • helio.campos
    Junior Member
    • Sep 2009
    • 5

    #1

    Invert Table of triggers

    Hi all,

    - I need to invert a table of triggers. I need to see all the content of the table transposed in a screen. Are there another way to do that instead rewrite code? If not, where is this file that i need to modify?

    Thanks...
  • helio.campos
    Junior Member
    • Sep 2009
    • 5

    #2
    I will change my question because i found in the code something that does exactly what i want.

    PHP Code:
    if($view_style == STYLE_TOP){
        
    $header=array(new CCol(S_TRIGGERS,'center'));
        foreach(
    $hosts as $hostname){
            
    $header=array_merge($header,array(new CImg('vtext.php?text='.$hostname)));
        }
        
    $table->setHeader($header,'vertical_header');

        foreach(
    $triggers as $descr => $trhosts){
            
    $table_row = array(nbsp($descr));
            foreach(
    $hosts as $hostname){
                
    $table_row=get_trigger_overview_cells($table_row,$trhosts,$hostname);
            }
            
    $table->AddRow($table_row);
        }
    }
    else{
        
    $header=array(new CCol(S_HOSTS,'center'));
        foreach(
    $triggers as $descr => $trhosts){
            
    $descr = array(new CImg('vtext.php?text='.$descr));
            
    array_push($header,$descr);
        }
        
    $table->SetHeader($header,'vertical_header');

        foreach(
    $hosts as $hostname){
            
    $table_row = array(nbsp($hostname));
            foreach(
    $triggers as $descr => $trhosts){
                
    $table_row=get_trigger_overview_cells($table_row,$trhosts,$hostname);
            }
        
    $table->AddRow($table_row);

    I just need to know if there is a way to set the variable $view_style in the webpage and what are the values defined for it.

    Thanks...

    Originally posted by helio.campos
    Hi all,

    - I need to invert a table of triggers. I need to see all the content of the table transposed in a screen. Are there another way to do that instead rewrite code? If not, where is this file that i need to modify?

    Thanks...

    Comment

    Working...