Line 25... |
Line 25... |
25 |
$values = array();
|
25 |
$values = array();
|
26 |
$values[] = $_SESSION['where_clause'];
|
26 |
$values[] = $_SESSION['where_clause'];
|
27 |
$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';
|
28 |
$_SESSION['do_maintenance_endDate'] = $_POST['endDate'];
|
28 |
$_SESSION['do_maintenance_endDate'] = $_POST['endDate'];
|
29 |
if ($_POST['select_client']) {
|
29 |
if ($_POST['select_client']) {
|
30 |
$values[] = 'client.client_id = ' . $_POST['select_client'];
|
30 |
$values[] = 'client_id = ' . $_POST['select_client'];
|
31 |
$_SESSION['do_maintenance_select_client'] = $_POST['select_client'];
|
31 |
$_SESSION['do_maintenance_select_client'] = $_POST['select_client'];
|
32 |
}
|
32 |
}
|
33 |
if ($_POST['select_tech']) {
|
33 |
if ($_POST['select_tech']) {
|
34 |
$values['endDate'] = 'login.login_id = ' . $_POST['select_tech'];
|
34 |
$values['endDate'] = 'login.login_id = ' . $_POST['select_tech'];
|
35 |
$_SESSION['do_maintenance_select_tech'] = $_POST['select_tech'];
|
35 |
$_SESSION['do_maintenance_select_tech'] = $_POST['select_tech'];
|