Changeset 150


Ignore:
Timestamp:
06/21/05 08:54:36 (17 years ago)
Author:
bastiaans
Message:

toga/search.php:

  • Form validation enabled
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/web/addons/toga/search.php

    r149 r150  
    1111        $none_set = 0;
    1212
    13         //if( $id == '' or $user == '' or $name == '' or $start_from_time == '' or $start_to_time == '' or $queue == '' or $end_from_time == '' or $end_to_time == '') $none_set = 1;
    14 
    15         //if (!isset($id) and !isset($user) and !isset($start_from_time) and !isset($start_to_time) and !isset($end_from_time) and !isset($end_to_time) and !isset($queue) ) $none_set = 0;
    16 
    17         if( $none_set ) {
     13        if( $id == '' or $user == '' or $name == '' or $start_from_time == '' or $start_to_time == '' or $queue == '' or $end_from_time == '' or $end_to_time == '') $none_set = 1;
     14
     15        if (!isset($id) and !isset($user) and !isset($start_from_time) and !isset($start_to_time) and !isset($end_from_time) and !isset($end_to_time) and !isset($queue) ) $none_set = 1;
     16
     17        if( $none_set == 1 ) {
    1818                $error = 1;
    1919                $error_msg = "<FONT COLOR=\"red\"><B>No search criteria set!</B></FONT>";
Note: See TracChangeset for help on using the changeset viewer.