$faxObjCon = new faxController(); if (isset($_REQUEST['submit'])) { $faxId = $faxObjCon->copyFiles($_POST, $_FILES); if (isset($_POST['hidd_values'])) { $arrToUserIds = explode(",", $_POST['hidd_values']); for ($i = 0; $i < count($arrToUserIds); $i++) { $faxObjCon->insertToFaxIds($arrToUserIds[$i], $faxId); } } else { $arrToId = $_POST['hidd_values']; $faxObjCon->insertToFaxIds($arrToId, $faxId); } header("location:inbox.php"); } if ($_GET['action'] == "delete" && $_GET['faxsId'] != "") { $faxObjCon->deleteFax($_GET['faxsId']); header("location:inbox.php"); } ?> <style> /*for autocomplete css*/ .ui-widget-content { z-index: 9999 !important; } </style> <div id="page_content"> <div id="page_content_inner"> <div class="md-card-list-wrapper" id="mailbox">
$verify = $userContObj->checkEmail($_GET['email']); if ($verify > 0) { echo "Email id exists!."; } else { echo ""; } } // adding tags to faxs if ($_GET['section'] == "tagsAdd" && isset($_GET['tagfaxs'])) { $faxObjCon->updateFaxTags($_GET); } // adding tags to Outbox faxs if ($_GET['section'] == "Outbox_tagsAdd" && isset($_GET['tagfaxs'])) { $faxObjCon->updateOutboxTags($_GET); } // checking for duplicate tags if ($_POST['Section'] == "tagsDup" && $_POST['tagNam'] != "") { echo $rees = $faxObjCon->checktags($_POST); } // checking for duplicate groups if ($_POST['Section'] == "groupsDup" && $_POST['groupNam'] != "") { echo $grpstot = $faxObjCon->checkgroupsNam($_POST); } // Inbox Delete if ($_GET['section'] == "inboxdel" && $_GET['inb_fax_id'] != "") { $faxObjCon->deleteFax($_GET['inb_fax_id']); } // checking for Contact Names if ($_POST['Section'] == "grpContactCheck" && $_POST['ContName'] != "") { echo $grpres = $faxObjCon->checkEmail($_POST); }