Ejemplo n.º 1
0
             message('error', 'Invalid value for query window height');
             $err = TRUE;
         }
         if ($err) {
             show_window_form($vals);
         } else {
             $_SESSION['configuration'] = array_merge($_SESSION['configuration'], $vals);
             message('notice', 'Configuration changed');
             $show_info = TRUE;
         }
     } else {
         $show_info = TRUE;
     }
     break;
 case 'lay_window':
     show_window_form($_SESSION['configuration']);
     break;
     /* Template for new actions:
         case 'blah_real':
             if (isset($_POST['submit_save'])) {
                 $vals = grab_values('value1:bool;value2');
                 $err = FALSE;
                 if (somechekcfails) {
                     message('error', 'Invalid value for blah!');
                     $err = TRUE;
                 }
                 if ($err) {
                     show_blah_form($vals);
                 } else {
                     $_SESSION['configuration'] = array_merge($_SESSION['configuration'], $vals);
                     message('notice', 'Configuration changed');
Ejemplo n.º 2
0
             message('error', 'Invalid value for query window height');
             $err = TRUE;
         }
         if ($err) {
             show_window_form($vals);
         } else {
             $configuration = array_merge($configuration, $vals);
             message('notice', 'Configuration changed');
             $show_info = TRUE;
         }
     } else {
         $show_info = TRUE;
     }
     break;
 case 'lay_window':
     show_window_form($configuration);
     break;
     /* Template for new actions:
         case 'blah_real':
             if (isset($_POST['submit_save'])) {
                 $vals = grab_values('value1:bool;value2');
                 $err = FALSE;
                 if (somechekcfails) {
                     message('error', 'Invalid value for blah!');
                     $err = TRUE;
                 }
                 if ($err) {
                     show_blah_form($vals);
                 } else {
                     $configuration = array_merge($configuration, $vals);
                     message('notice', 'Configuration changed');