' type="text" class="keyboardInput ac_input">
value="all" name="meta"/> value="sc" name="rad" value="auth" name="meta"/> value="gu" name="rad" value="auth" name="meta"/> value="acc" name="rad" name="meta"/>       
1) $sPhrase .= ((strlen($sPhrase) > 0)? ' ' : null) . substr($sToken, 0, -1); $cPhraseQuote = null; } else { // If not, add the token to the phrase, with a single leading space if necessary $sPhrase .= ((strlen($sPhrase) > 0)? ' ' : null) . $sToken; } } else { // Will the current token start a phrase? if (strpos($sQuotes, $sToken[0]) !== false) { // Will the current token end the phrase? if ((strlen($sToken) > 1) && ($sToken[0] === substr($sToken, -1, 1))) { // The current token begins AND ends the phrase, trim the quotes $sPhrase = substr($sToken, 1, -1); } else { // Remove the leading quote $sPhrase = substr($sToken, 1); $cPhraseQuote = $sToken[0]; } } else $sPhrase = $sToken; } } // If, at this point, we are not within a phrase, the prepared phrase is complete and can be added to the array if (($cPhraseQuote === null) && ($sPhrase != null)) { $sPhrase = strtolower($sPhrase); if (!in_array($sPhrase, $arTags)) $arTags[] = $sPhrase; $sPhrase = null; } } while ($sToken !== false); // Stop when we receive FALSE from strtok() return $arTags; } /** * Reverses ParseTagString() */ function CreateTagString($arTags,$pre,$pos) { // Prepare each tag to be imploded for ($i = 0; $i < sizeof($arTags); $i++) { // Record findings $bContainsWhitespace = false; // Was whitespace found? $cRequiredQuote = '"'; // Use double-quote by default $cLastChar = null; // Search the tag for ($j = 0; $j < strlen($arTags[$i]); $j++) { $c = $arTags[$i][$j]; // If the current character is a space if ($c === ' ') { $bContainsWhitespace = true; // If the previous char was a double quote, we require single quotes round our phrase if ($cLastChar === '"') { $cRequiredQuote = "'"; break; // There is no more point in continuing our search, we cant handle double-mixed quotes } } // Record this char as the last char $cLastChar = $c; } // Quote if necessary if ($bContainsWhitespace) $arTags[$i] = $cRequiredQuote . $arTags[$i] . $cRequiredQuote; } return $pre.implode($pos.' '.$pre, $arTags).$pos; } function str_squeeze($test) { return trim(ereg_replace( ' +', ' ', $test)); } function fromtoyear(&$str) { $ar=ParseTagString(trim($_GET['search'])); $qr=""; for($i=0;$i=1980&&$ar[$i]<=2020) { $qr.=" and Thesis.Year >= ".$ar[$i]; $ar[$i]=""; break; } for($i=0;$i=1980&&$ar[$i]<=2020) { $qr.=" and Thesis.Year < ".$ar[$i]; $ar[$i]=""; break; } $str=CreateTagString($ar,'',''); return $qr; } if(isset($_GET['page'])) $p=$_GET['page']; $simplestring=ereg_replace("\"", "", stripslashes($_GET['search'])); $simplestring=ereg_replace("\*", " ", $simplestring); $simplestring=ereg_replace("\+", "", $simplestring); $simplestring=ereg_replace("\-", "", $simplestring); $str=split(" ",trim(str_squeeze($simplestring))); $qd=""; $wrds=""; for($i=0;$i"; else $strr[$i]="".ucFirst($str[$i]).""; if(strlen($str[$i])>3) $wrds.=" ".$str[$i].""; else $wrds.=" ".$str[$i]; } } $tsearch=$_GET['search']; $qyr=fromtoyear($tsearch); $sd=CreateTagString(ParseTagString(trim($tsearch)),'+','*'); $lim=($p-1)*15; if($_GET['start']=="All"||!isset($_GET['start'])) $wrds="All"; else $wrds=$_GET['start']; $st=($wrds=="All")?"":$wrds; $qd=""; if(isset($_GET['page'])) $p=$_GET['page']; else $p=1; $lim=($p-1)*30; $query="select SQL_CALC_FOUND_ROWS `AccNo`, `Scholar`, `Guide`, CId,`category`, Title, Year, College, ScAdd, `Department`, 'scholar' as 'type' from thesis where `Scholar`like '".$st."%'"." order by trim(Scholar) asc limit $lim,30 "; mysql_query("SET NAMES utf8 "); //print $query; $rs=mysql_query($query); //print mysql_error(); $qr2="SELECT FOUND_ROWS()"; $rs2=mysql_query($qr2); $r=mysql_fetch_row($rs2); $num=$r[0]; ?>



A B C D E F G H I J K L M N O P Q R S T U V W X Y Z


Query: of Results Guide';?> ", $ar[Guide])); $ts=str_ireplace($str,$strr,$ar[Scholar]); print ''; $tog=0; } else { $tt=str_ireplace($str,$strr,$ar['Title']); $tb=str_ireplace($str,$strr,$ar[Bookmark]); $tg=str_ireplace($str,$strr,str_replace("%", ",
", $ar[Guide])); $ts=str_ireplace($str,$strr,$ar[Scholar]); print ''; $tog=1; } } ?>
Online Theses Libraray of MG University
Scholar Title / Sections Branch of Study Guide Year
'.$ts.' '.$tb.' '.$ar[Title].' '.ucfirst(strtolower($ar[category])).' '.str_replace(";", ",
", $ar[Guide]).'
'.$ar[Year].'
'.$ts.' '.$tb.' '.$ar[Title].' '.ucfirst(strtolower($ar[category])).' '.str_replace("%", ",
", $ar[Guide]).'
'.$ar[Year].'



$cnt) $p=$cnt; print " |< "; if(intval($cnt)>1) { if($p!=1) print ' Previous Page '; if($p<=5 && $cnt>8) { $s=1; $e=9; } else if($p>$cnt-5 && $cnt>8) { $s=$cnt-7; $e=$cnt+1; } else if($p>5 && $cnt>8) { $s=$p-4; $e=$p+4; } else { $s=1; $e=intval($cnt)+1; } // print "e is $e and s is $s -"; for($i=$s;$i<$e;$i++){ if($p==$i) print " ".$i.""; else print " ".$i.""; } if($p!=intval($cnt)) print " Next Page "; } print " >|"; ?>

Website © copyright Mahatma Gandhi University and BeeHive Digital Concepts