Subversion Repositories computer_asset_manager_v1

Rev

Rev 85 | Rev 88 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 85 Rev 87
Line 21... Line 21...
21
     if ( $_POST['postmaintenance'] ) {
21
     if ( $_POST['postmaintenance'] ) {
22
        postMaintenance();
22
        postMaintenance();
23
     }
23
     }
24
     if ($_POST['endDate']) { 
24
     if ($_POST['endDate']) { 
25
         $values = array();
25
         $values = array();
-
 
26
         $values[] = $_SESSION['where_clause'];
26
         $values[] = 'DATEDIFF(DATE_ADD(maintenance_performed.maintenance_date, INTERVAL schedule DAY), ' . $_POST['endDate'] . ') <= 0';
27
         $values[] = 'DATEDIFF(DATE_ADD(maintenance_performed.maintenance_date, INTERVAL schedule DAY), ' . $_POST['endDate'] . ') <= 0';
27
         $_SESSION['do_maintenance_endDate'] = $_POST['endDate'];
28
         $_SESSION['do_maintenance_endDate'] = $_POST['endDate'];
28
         if ($_POST['select_client']) {
29
         if ($_POST['select_client']) {
29
            $values[] = 'client.client_id = ' . $_POST['select_client'];
30
            $values[] = 'client.client_id = ' . $_POST['select_client'];
30
            $_SESSION['do_maintenance_select_client'] = $_POST['select_client'];
31
            $_SESSION['do_maintenance_select_client'] = $_POST['select_client'];