} $view = PostVar("view"); $Data = PostVar("Data"); $iReportId = PostVar("iReportId"); $date = date("Y-m-d H:i:s"); $iAdminID = $_SESSION['B2B_SESS_USERID']; /** This is for Check Duplicate Record------------------------------------------- */ $generalobj->getRequestVars(); $redirect_file = "index.php?file={$file}&view={$view}&iReportId={$iReportId}"; // $generalobj->checkDuplicate('iSMID', PRJ_DB_PREFIX . "_security_manager", Array('vUserName' => $Data['vUserName']), $redirect_file, USER_ALREADY_EXISTS, $iSMID); if ($view == "add") { // $Data['iAdminID'] = $_SESSION['B2B_SESS_USERID']; //prints($Data);exit; $id = 0; if (is_array($Data) && count(array_filter($Data)) > 0) { $id = $rptreportObj->insert($Data); } if ($id) { $var_msg = "Record Added Successfully."; unset($Data); } else { $var_msg = "Eror-in Add."; } } else { if ($view == "edit") { // $arr = $secManObj->select($iReportId); $where = " iReportId = '" . $iReportId . "'"; $res = $rptreportObj->updateData($Data, $where); if ($res) { $var_msg = "Record Updated Successfully."; } else {