function addEditS1() { //--------------------------------------------------------------------- // //--------------------------------------------------------------------- if (!bTestForURLHack('editPeopleBizVol')) { return; } $displayData = array(); $this->load->library('js_build/js_verify'); $this->load->model('util/msearch_single_generic', 'clsSearch'); $this->load->model('people/mpeople', 'clsPeople'); $this->load->helper('js/simple_search'); $this->js_verify->clearEmbedOpts(); $this->js_verify->bShow_bVerifyString = $this->js_verify->bShow_trim = true; $displayData['js'] = $this->js_verify->loadJavaVerify(); $displayData['js'] .= simpleSearch(); //----------------------------- // breadcrumbs & page setup //----------------------------- $displayData['title'] = CS_PROGNAME . ' | Add New Volunteer'; $displayData['pageTitle'] = anchor('main/menu/vols', 'Volunteers', 'class="breadcrumb"') . ' | Add New Volunteers'; $displayData['mainTemplate'] = 'vols/add_new_search_view'; $displayData['nav'] = $this->mnav_brain_jar->navData(); $this->load->vars($displayData); $this->load->view('template'); }
function literalSearch($search) { global $t; if (($index = strpos($search, '"')) !== false && ($lastindex = strpos(substr($search, $index + 1), '"')) !== false) { $t[] = addslashes(substr($search, $index + 1, $lastindex)); simpleSearch(substr($search, 0, $index)); literalSearch(substr($search, $index + $lastindex + 2)); } else { simpleSearch($search); } }
function literalSearch($search) { $t = array(); if (($index = strpos($search, '"')) !== false && ($lastindex = strpos(substr($search, $index + 1), '"')) !== false) { $t[] = addslashes(substr($search, $index + 1, $lastindex)); $t = array_merge($t, simpleSearch(substr($search, 0, $index))); return array_merge($t, literalSearch(substr($search, $index + $lastindex + 2))); } else { return simpleSearch($search); } }
function addS1($lVolID) { //--------------------------------------------------------------------- // //--------------------------------------------------------------------- $this->load->helper('dl_util/verify_id'); verifyID($this, $lVolID, 'volunteer ID'); if (!bTestForURLHack('dataEntryPeopleBizVol')) { return; } if (!bTestForURLHack('showClients')) { return; } $displayData = array(); $displayData['lVolID'] = $lVolID = (int) $lVolID; //------------------------------------------------ // libraries and utilities //------------------------------------------------ $params = array('enumStyle' => 'terse'); $this->load->library('generic_rpt', $params); $this->load->library('util/dl_date_time', '', 'clsDateTime'); $this->load->library('js_build/js_verify'); $this->load->model('vols/mvol', 'clsVol'); $this->load->model('people/mpeople'); $this->load->model('util/msearch_single_generic', 'clsSearch'); $this->load->helper('js/simple_search'); $this->js_verify->clearEmbedOpts(); $this->js_verify->bShow_bVerifyString = $this->js_verify->bShow_trim = true; $displayData['js'] = $this->js_verify->loadJavaVerify(); $displayData['js'] .= simpleSearch(); $this->clsVol->loadVolRecsViaVolID($lVolID, false); $displayData['contextSummary'] = $this->clsVol->volHTMLSummary(0); //----------------------------- // breadcrumbs & page setup //----------------------------- $displayData['title'] = CS_PROGNAME . ' | Volunteers'; $displayData['pageTitle'] = anchor('main/menu/vols', 'Volunteers', 'class="breadcrumb"') . ' | ' . anchor('volunteers/vol_record/volRecordView/' . $lVolID, 'Volunteer Record', 'class="breadcrumb"') . ' | Add Volunteer/Client Association'; $displayData['mainTemplate'] = 'vols/vol_client_assoc_s1_view'; $displayData['nav'] = $this->mnav_brain_jar->navData(); $this->load->vars($displayData); $this->load->view('template'); }
function addNewS1($lBizID) { //--------------------------------------------------------------------- // //--------------------------------------------------------------------- $this->load->helper('dl_util/verify_id'); verifyID($this, $lBizID, 'business ID'); if (!bTestForURLHack('dataEntryPeopleBizVol')) { return; } $displayData = array(); $displayData['lBizID'] = $lBizID = (int) $lBizID; //------------------------------------------------ // libraries and utilities //------------------------------------------------ $params = array('enumStyle' => 'terse'); $this->load->library('generic_rpt', $params); $this->load->library('util/dl_date_time', '', 'clsDateTime'); $this->load->model('admin/madmin_aco', 'clsACO'); $this->load->model('biz/mbiz', 'clsBiz'); $this->load->library('js_build/js_verify'); $this->load->model('util/msearch_single_generic', 'clsSearch'); // $this->load->helper ('dl_util/email_web'); $this->load->helper('js/simple_search'); $this->js_verify->clearEmbedOpts(); $this->js_verify->bShow_bVerifyString = $this->js_verify->bShow_trim = true; $displayData['js'] = $this->js_verify->loadJavaVerify(); $displayData['js'] .= simpleSearch(); $this->clsBiz->loadBizRecsViaBID($lBizID); $displayData['contextSummary'] = $this->clsBiz->strBizHTMLSummary(); //----------------------------- // breadcrumbs & page setup //----------------------------- $displayData['title'] = CS_PROGNAME . ' | Business'; $displayData['pageTitle'] = anchor('main/menu/biz', 'Businesses/Organizations', 'class="breadcrumb"') . ' | ' . anchor('biz/biz_record/view/' . $lBizID, 'Business Record', 'class="breadcrumb"') . ' | Add Business Contact'; $displayData['mainTemplate'] = 'biz/contact_s1_view'; $displayData['nav'] = $this->mnav_brain_jar->navData(); $this->load->vars($displayData); $this->load->view('template'); }
function addAssoc01($lVolID) { //--------------------------------------------------------------------- // //--------------------------------------------------------------------- global $glChapterID; if (!bTestForURLHack('volMgr')) { return; } $this->load->helper('dl_util/verify_id'); verifyID($glChapterID, $lVolID, 'volunteer ID'); $displayData = array(); $displayData['lVolID'] = $lVolID = (int) $lVolID; //------------------------------------------------ // libraries and utilities //------------------------------------------------ $params = array('enumStyle' => 'terse'); $this->load->library('generic_rpt', $params); $this->load->library('util/dl_date_time', '', 'clsDateTime'); $this->load->library('js_build/js_verify'); $this->load->model('vols/mvol', 'clsVol'); $this->load->model('util/msearch_single_generic', 'clsSearch'); $this->load->helper('js/simple_search'); $this->load->helper('hospice/link_hospice'); $this->js_verify->clearEmbedOpts(); $this->js_verify->bShow_bVerifyString = $this->js_verify->bShow_trim = true; $displayData['js'] = $this->js_verify->loadJavaVerify(); $displayData['js'] .= simpleSearch(); $this->clsVol->loadVolRecsViaVolID($lVolID, false); $displayData['contextSummary'] = $this->clsVol->volHTMLSummary(0); //----------------------------- // breadcrumbs & page setup //----------------------------- $displayData['title'] = CS_PROGNAME . ' | Volunteers'; $displayData['pageTitle'] = 'Add Volunteer/Client Association'; $displayData['mainTemplate'] = 'hospice/vols/vol_patient_assoc_s1_view'; $displayData['nav'] = $this->mnav_brain_jar->navData(); $this->load->vars($displayData); $this->load->view('template'); }
function addNewS1($lSponID) { //--------------------------------------------------------------------- // //--------------------------------------------------------------------- if (!bTestForURLHack('showSponsors')) { return; } $displayData = array(); $displayData['lSponID'] = $lSponID = (int) $lSponID; //------------------------------------------------ // libraries and utilities //------------------------------------------------ $params = array('enumStyle' => 'terse'); $this->load->library('generic_rpt', $params); $this->load->library('util/dl_date_time', '', 'clsDateTime'); $this->load->model('sponsorship/msponsorship', 'clsSpon'); $this->load->library('js_build/js_verify'); $this->load->model('util/msearch_single_generic', 'clsSearch'); $this->load->model('people/mpeople', 'clsPeople'); $this->load->helper('js/simple_search'); $this->js_verify->clearEmbedOpts(); $this->js_verify->bShow_bVerifyString = $this->js_verify->bShow_trim = true; $displayData['js'] = $this->js_verify->loadJavaVerify(); $displayData['js'] .= simpleSearch(); $this->clsSpon->sponsorInfoViaID($lSponID); $displayData['sponRec'] =& $this->clsSpon->sponInfo[0]; $displayData['contextSummary'] = $this->clsSpon->sponsorshipHTMLSummary(); //----------------------------- // breadcrumbs & page setup //----------------------------- $displayData['title'] = CS_PROGNAME . ' | Sponsors'; $displayData['pageTitle'] = anchor('main/menu/sponsorship', 'Sponsorship', 'class="breadcrumb"') . ' | ' . anchor('sponsors/view_spon_rec/viewViaSponID/' . $lSponID, 'Sponsorship Record', 'class="breadcrumb"') . ' | Add Sponsorship Honoree'; $displayData['mainTemplate'] = 'sponsorship/honoree_s1_view'; $displayData['nav'] = $this->mnav_brain_jar->navData(); $this->load->vars($displayData); $this->load->view('template'); }
<?php $text = $_POST['livro']; if (isset($_POST['submitSimple'])) { $con = createCon(); simpleSearch($con, $text); } function createCon() { $conn = new mysqli("localhost", "root", "", "acad"); if ($conn->connect_errno) { echo "Erro"; } return $conn; } function simpleSearch($con, $text) { $table = $con->query("SELECT titulo, autor, editora FROM acervo WHERE titulo='{$text}' OR autor='{$text}' ORDER BY titulo"); $row = $table->fetch_array(MYSQLI_NUM); for ($i = 0; $i < sizeof($row); $i++) { echo $row[$i] . " "; } echo sizeof($row); }
function addNewS1($lHouseholdID) { //--------------------------------------------------------------------- // //--------------------------------------------------------------------- $this->load->helper('dl_util/verify_id'); verifyID($this, $lHouseholdID, 'household ID'); $displayData = array(); $displayData['lHouseholdID'] = $lHouseholdID = (int) $lHouseholdID; $this->load->library('js_build/js_verify'); $this->load->model('util/msearch_single_generic', 'clsSearch'); $this->load->model('people/mpeople', 'clsPeople'); $this->load->helper('js/simple_search'); $this->js_verify->clearEmbedOpts(); $this->js_verify->bShow_bVerifyString = $this->js_verify->bShow_trim = true; $displayData['js'] = $this->js_verify->loadJavaVerify(); $displayData['js'] .= simpleSearch(); $this->clsPeople->lHouseholdID = $lHouseholdID; $displayData['strHouseholdName'] = $this->clsPeople->strHouseholdNameViaHID($lHouseholdID); //----------------------------- // breadcrumbs & page setup //----------------------------- $displayData['title'] = CS_PROGNAME . ' | Add to household'; $displayData['pageTitle'] = anchor('main/menu/people', 'People', 'class="breadcrumb"') . ' | ' . anchor('people/household/view/' . $lHouseholdID . '/0', 'Household', 'class="breadcrumb"') . ' | Add To Household'; $displayData['mainTemplate'] = array('people/household_summary_view', 'people/add_to_household_sel_house_view'); $displayData['nav'] = $this->mnav_brain_jar->navData(); $this->load->vars($displayData); $this->load->view('template'); }