$row[] = '<div class="callapp_checkbox"> <input type="checkbox" id="callapp_checkbox_' . $aRow[$hidden] . '" name="check_' . $aRow[$hidden] . '" value="' . $aRow[$hidden] . '" class="check" /> <label for="callapp_checkbox_' . $aRow[$hidden] . '"></label> </div>'; } } $data['aaData'][] = $row; } break; case 'save_department': $department_id = $_REQUEST['id']; $department_name = $_REQUEST['name']; if ($department_name != '') { if (!CheckdepartmentExist($department_name, $department_id)) { if ($department_id == '') { Adddepartment($department_id, $department_name); } else { Savedepartment($department_id, $department_name); } } else { $error = '"' . $department_name . '" უკვე არის სიაში!'; } } break; case 'disable': $department_id = $_REQUEST['id']; Disabledepartment($department_id); break; default: $error = 'Action is Null'; }
<input type="checkbox" id="callapp_checkbox_' . $aRow[$hidden] . '" name="check_' . $aRow[$hidden] . '" value="' . $aRow[$hidden] . '" class="check" /> <label for="callapp_checkbox_' . $aRow[$hidden] . '"></label> </div>'; } } $data['aaData'][] = $row; } break; case 'save_department': $department_id = $_REQUEST['id']; $department_name = $_REQUEST['name']; $message = $_REQUEST['message']; if ($department_name != '') { if (!CheckdepartmentExist($department_name, $department_id)) { if ($department_id == '') { Adddepartment($department_id, $department_name, $message); } else { Savedepartment($department_id, $department_name, $message); } } else { $error = '"' . $department_name . '" უკვე არის სიაში!'; } } break; case 'disable': $department_id = $_REQUEST['id']; Disabledepartment($department_id); break; default: $error = 'Action is Null'; }
<input type="checkbox" id="callapp_checkbox_' . $aRow[$hidden] . '" name="check_' . $aRow[$hidden] . '" value="' . $aRow[$hidden] . '" class="check" /> <label for="callapp_checkbox_' . $aRow[$hidden] . '"></label> </div>'; } } $data['aaData'][] = $row; } break; case 'save_department': $department_id = $_REQUEST['id']; $user = $_REQUEST['user']; $password = $_REQUEST['password']; $link = $_REQUEST['link']; $service_center_id = $_REQUEST['sc_id']; if ($department_id == '') { Adddepartment($department_id, $user, $password, $link, $service_center_id); } else { Savedepartment($department_id, $user, $password, $link, $service_center_id); } break; case 'disable': $department_id = $_REQUEST['id']; Disabledepartment($department_id); break; default: $error = 'Action is Null'; } $data['error'] = $error; echo json_encode($data); /* ****************************** * Category Functions
<input type="checkbox" id="callapp_checkbox_' . $aRow[$hidden] . '" name="check_' . $aRow[$hidden] . '" value="' . $aRow[$hidden] . '" class="check" /> <label for="callapp_checkbox_' . $aRow[$hidden] . '"></label> </div>'; } } $data['aaData'][] = $row; } break; case 'save_department': $department_id = $_REQUEST['id']; $department_name = $_REQUEST['name']; $type = $_REQUEST['type']; if ($department_name != '') { if (!CheckdepartmentExist($department_name, $department_id)) { if ($department_id == '') { Adddepartment($department_id, $department_name, $type); } else { Savedepartment($department_id, $department_name, $type); } } else { $error = '"' . $department_name . '" უკვე არის სიაში!'; } } break; case 'disable': $department_id = $_REQUEST['id']; Disabledepartment($department_id); break; default: $error = 'Action is Null'; }
$row[] = '<div class="callapp_checkbox"> <input type="checkbox" id="callapp_checkbox_' . $aRow[$hidden] . '" name="check_' . $aRow[$hidden] . '" value="' . $aRow[$hidden] . '" class="check" /> <label for="callapp_checkbox_' . $aRow[$hidden] . '"></label> </div>'; } } $data['aaData'][] = $row; } break; case 'save_department': $department_id = $_REQUEST['id']; $quest = mysql_real_escape_string($_REQUEST['quest']); $answer = mysql_real_escape_string($_REQUEST['answer']); if ($quest != '') { if ($department_id == '') { Adddepartment($department_id, $quest, $answer); } else { Savedepartment($department_id, $quest, $answer); } } break; case 'disable': $department_id = $_REQUEST['id']; Disabledepartment($department_id); break; default: $error = 'Action is Null'; } $data['error'] = $error; echo json_encode($data); /* ******************************