|
1313 | 1313 |
|
1314 | 1314 | $calendar_id = intval($_POST['calendar']);
|
1315 | 1315 | $title = trim(strip_tags(mysqli_real_escape_string($mysqli,$_POST['title'])));
|
| 1316 | + $description = trim(strip_tags(mysqli_real_escape_string($mysqli,$_POST['description']))); |
1316 | 1317 | $start = trim(strip_tags(mysqli_real_escape_string($mysqli,$_POST['start'])));
|
1317 | 1318 | $end = trim(strip_tags(mysqli_real_escape_string($mysqli,$_POST['end'])));
|
1318 | 1319 | $repeat = trim(strip_tags(mysqli_real_escape_string($mysqli,$_POST['repeat'])));
|
1319 | 1320 | $client = intval($_POST['client']);
|
1320 | 1321 | $email_event = intval($_POST['email_event']);
|
1321 | 1322 |
|
1322 |
| - mysqli_query($mysqli,"INSERT INTO events SET event_title = '$title', event_start = '$start', event_end = '$end', event_repeat = '$repeat', event_created_at = NOW(), event_calendar_id = $calendar_id, event_client_id = $client, company_id = $session_company_id"); |
| 1323 | + mysqli_query($mysqli,"INSERT INTO events SET event_title = '$title', event_description = '$description', event_start = '$start', event_end = '$end', event_repeat = '$repeat', event_created_at = NOW(), event_calendar_id = $calendar_id, event_client_id = $client, company_id = $session_company_id"); |
1323 | 1324 |
|
1324 | 1325 | //If email is checked
|
1325 | 1326 | if($email_event == 1){
|
|
1389 | 1390 | $event_id = intval($_POST['event_id']);
|
1390 | 1391 | $calendar_id = intval($_POST['calendar']);
|
1391 | 1392 | $title = trim(strip_tags(mysqli_real_escape_string($mysqli,$_POST['title'])));
|
| 1393 | + $description = trim(strip_tags(mysqli_real_escape_string($mysqli,$_POST['description']))); |
1392 | 1394 | $start = trim(strip_tags(mysqli_real_escape_string($mysqli,$_POST['start'])));
|
1393 | 1395 | $end = trim(strip_tags(mysqli_real_escape_string($mysqli,$_POST['end'])));
|
1394 | 1396 | $repeat = trim(strip_tags(mysqli_real_escape_string($mysqli,$_POST['repeat'])));
|
1395 | 1397 | $client = intval($_POST['client']);
|
1396 | 1398 | $email_event = intval($_POST['email_event']);
|
1397 | 1399 |
|
1398 |
| - mysqli_query($mysqli,"UPDATE events SET event_title = '$title', event_start = '$start', event_end = '$end', event_repeat = '$repeat', event_updated_at = NOW(), event_calendar_id = $calendar_id, event_client_id = $client WHERE event_id = $event_id AND company_id = $session_company_id"); |
| 1400 | + mysqli_query($mysqli,"UPDATE events SET event_title = '$title', event_description = '$description', event_start = '$start', event_end = '$end', event_repeat = '$repeat', event_updated_at = NOW(), event_calendar_id = $calendar_id, event_client_id = $client WHERE event_id = $event_id AND company_id = $session_company_id"); |
1399 | 1401 |
|
1400 | 1402 | //If email is checked
|
1401 | 1403 | if($email_event == 1){
|
|
0 commit comments