Skip to main content
se añadió 1 carácter en el cuerpo; etiquetas editadas
Origen Enlace
Pikoh
  • 17.5k
  • 9
  • 41
  • 56

Notice (8): Undefined variable: gestor [APP\View\Vistas\browser2.ctp, line 133]

Notice (8): Undefined variable: gestor [APP\View\Vistas\browser2.ctp, line 133]

Notice (8): Undefined variable: gestor [APP\View\Vistas\browser2.ctp, line 133]

Notice (8): Undefined variable: gestor [APP\View\Vistas\browser2.ctp, line 133]

echo '<table>';
echo '<tr>';
    echo '<th></th>';
    foreach ($campos as $campo => $nombre){
        echo '<th>'.$paginator->sort($campo, $nombre).'</th>';
    }
echo '</tr>';
foreach ($leads as $lead){
    echo '<tr>';
    echo '<td>';
    echo $this->Html->link(
        'Editar',
        '#',
        array('class' => 'edit_button', 'target' => '',"onclick"=>'openWindow("'.$lead['Vista']['id'].'","90%","100%");')
    );  
    echo '</td>';

    foreach ($campos as $campo => $nombre){
        if (is_numeric ($lead['Vista'][$campo]) or in_array($campo,$dates)) $clase='numeric';
        else $clase='texto';
        if (in_array($campo,$modificables))  $clase='desplegable';
        
        echo '<td class="'.$clase.'">';
        
        if (in_array($campo,$modificables)){
    if ($campo == 'valid_status') {
      echo '<form action="javascript:save_text('.$lead['Vista']['id'].')">';
      echo $this->Form->input('valid_status', array('div'=>false, 'class'=>'selection_'.$lead['Vista']['id'],'label'=>false, 'selected'=>$lead['Vista'][$campo], 
        'name'=>$lead['Vista']['id'].'_select','options' => array($status),'onChange'=>'this.form.submit()'));
      echo '<div class="div_sta_'.$lead['Vista']['id'].'"></div>';
      echo '</form>';
    } else {
      echo '<form action="javascript:save_gestor('.$lead['Vista']['id'].')">';
      echo $this->Form->input('id_gestor', array('div'=>false, 'class'=>'gestor_'.$lead['Vista']['id'],'label'=>false, 'selected'=>$lead['Vista'][$campo], 
        'name'=>$lead['Vista']['id'].'_select','options' => array($gestor),'onChange'=>'this.form.submit()')); // ESTA ES LA LÍNEA DEL ERROR
      echo '<div class="div_ges_'.$lead['Vista']['id'].'"></div>';
      echo '</form>';
    }
        }else if (in_array($campo,$dates)){
            if ($lead['Vista'][$campo]=='') echo 'N/A';
            else echo date('d/m/Y', strtotime($lead['Vista'][$campo]));
        }else echo $lead['Vista'][$campo];
        
        echo '</td>';
        
    }
    echo '</tr>';
}
echo '<table>';
echo '<tr>';
    echo '<th></th>';
    foreach ($campos as $campo => $nombre){
        echo '<th>'.$paginator->sort($campo, $nombre).'</th>';
    }
echo '</tr>';
foreach ($leads as $lead){
    echo '<tr>';
    echo '<td>';
    echo $this->Html->link(
        'Editar',
        '#',
        array('class' => 'edit_button', 'target' => '',"onclick"=>'openWindow("'.$lead['Vista']['id'].'","90%","100%");')
    );  
    echo '</td>';

    foreach ($campos as $campo => $nombre){
        if (is_numeric ($lead['Vista'][$campo]) or in_array($campo,$dates)) $clase='numeric';
        else $clase='texto';
        if (in_array($campo,$modificables))  $clase='desplegable';
        
        echo '<td class="'.$clase.'">';
        
        if (in_array($campo,$modificables)){
    if ($campo == 'valid_status') {
      echo '<form action="javascript:save_text('.$lead['Vista']['id'].')">';
      echo $this->Form->input('valid_status', array('div'=>false, 'class'=>'selection_'.$lead['Vista']['id'],'label'=>false, 'selected'=>$lead['Vista'][$campo], 
        'name'=>$lead['Vista']['id'].'_select','options' => array($status),'onChange'=>'this.form.submit()'));
      echo '<div class="div_sta_'.$lead['Vista']['id'].'"></div>';
      echo '</form>';
    } else {
      echo '<form action="javascript:save_gestor('.$lead['Vista']['id'].')">';
      echo $this->Form->input('id_gestor', array('div'=>false, 'class'=>'gestor_'.$lead['Vista']['id'],'label'=>false, 'selected'=>$lead['Vista'][$campo], 
        'name'=>$lead['Vista']['id'].'_select','options' => array($gestor),'onChange'=>'this.form.submit()'));
      echo '<div class="div_ges_'.$lead['Vista']['id'].'"></div>';
      echo '</form>';
    }
        }else if (in_array($campo,$dates)){
            if ($lead['Vista'][$campo]=='') echo 'N/A';
            else echo date('d/m/Y', strtotime($lead['Vista'][$campo]));
        }else echo $lead['Vista'][$campo];
        
        echo '</td>';
        
    }
    echo '</tr>';
}
echo '<table>';
echo '<tr>';
    echo '<th></th>';
    foreach ($campos as $campo => $nombre){
        echo '<th>'.$paginator->sort($campo, $nombre).'</th>';
    }
echo '</tr>';
foreach ($leads as $lead){
    echo '<tr>';
    echo '<td>';
    echo $this->Html->link(
        'Editar',
        '#',
        array('class' => 'edit_button', 'target' => '',"onclick"=>'openWindow("'.$lead['Vista']['id'].'","90%","100%");')
    );  
    echo '</td>';

    foreach ($campos as $campo => $nombre){
        if (is_numeric ($lead['Vista'][$campo]) or in_array($campo,$dates)) $clase='numeric';
        else $clase='texto';
        if (in_array($campo,$modificables))  $clase='desplegable';
        
        echo '<td class="'.$clase.'">';
        
        if (in_array($campo,$modificables)){
    if ($campo == 'valid_status') {
      echo '<form action="javascript:save_text('.$lead['Vista']['id'].')">';
      echo $this->Form->input('valid_status', array('div'=>false, 'class'=>'selection_'.$lead['Vista']['id'],'label'=>false, 'selected'=>$lead['Vista'][$campo], 
        'name'=>$lead['Vista']['id'].'_select','options' => array($status),'onChange'=>'this.form.submit()'));
      echo '<div class="div_sta_'.$lead['Vista']['id'].'"></div>';
      echo '</form>';
    } else {
      echo '<form action="javascript:save_gestor('.$lead['Vista']['id'].')">';
      echo $this->Form->input('id_gestor', array('div'=>false, 'class'=>'gestor_'.$lead['Vista']['id'],'label'=>false, 'selected'=>$lead['Vista'][$campo], 
        'name'=>$lead['Vista']['id'].'_select','options' => array($gestor),'onChange'=>'this.form.submit()')); // ESTA ES LA LÍNEA DEL ERROR
      echo '<div class="div_ges_'.$lead['Vista']['id'].'"></div>';
      echo '</form>';
    }
        }else if (in_array($campo,$dates)){
            if ($lead['Vista'][$campo]=='') echo 'N/A';
            else echo date('d/m/Y', strtotime($lead['Vista'][$campo]));
        }else echo $lead['Vista'][$campo];
        
        echo '</td>';
        
    }
    echo '</tr>';
}
se añadieron 42 caracteres en el cuerpo
Origen Enlace

Aquí les dejo el code... la línea 133 en el original aquí es la 35

Aquí les dejo el code...

Aquí les dejo el code... la línea 133 en el original aquí es la 35

Origen Enlace
Loading