loginpageurl=""; //login page URL $this->error=array(); $this->returl=""; $this->DisplayMessage = ""; $this->connect=$connect; $this->include_path=$include_path; $this->submitted=false; $this->implementclassname=$implementclassname; $this->SiteDomainName = "http:/pecon-india.com."; $this->perpagerecord =12; // Original Value 10 $this->numofpages = 1; $this->currentpage = 1; $this->recordfrom = 0; $this->recordto = 0; $this->refmonth = 0; $this->pagesize = 10; // No of page display on pagaenavigation $this->enc_password = "networld"; $this->sortby=""; $this->sortorder=" ASC "; $this->languageid = 1; $this->extensionlist=" image/gif , image/bmp , image/pjpeg , image/png, image/swf, image/application/x-shockwave-flash "; $this->imagemaxsize = 409600; $this->NewKey = "test"; } function SetGetVars() { if(isset($_GET['loginurl'])) $this->loginurl=$_GET['loginurl']; if(isset($_GET['returl'])) $this->returl=$_GET['returl']; } function SetPostVars() { if(isset($_POST[$this->implementclassname.'_hdnloginurl'])) $this->loginurl=$_POST[$this->implementclassname.'_hdnloginurl']; if(isset($_POST[$this->implementclassname.'_hdnreturl'])) $this->returl=$_POST[$this->implementclassname.'_hdnreturl']; if(isset($_POST[$this->implementclassname."_hdnsubmitted"])) { if($_POST[$this->implementclassname."_hdnsubmitted"] != "") $this->submitted = true; } if(isset($_POST[$this->implementclassname.'_currentpage'])) $this->currentpage=trim($_POST[$this->implementclassname.'_currentpage']); if(isset($_POST[$this->implementclassname.'_recordfrom'])) $this->recordfrom=trim($_POST[$this->implementclassname.'_recordfrom']); if(isset($_POST[$this->implementclassname.'_recordto'])) $this->recordto=trim($_POST[$this->implementclassname.'_recordto']); if(isset($_POST[$this->implementclassname.'_perpagerecord'])) $this->perpagerecord=trim($_POST[$this->implementclassname.'_perpagerecord']); if(isset($_POST[$this->implementclassname.'_sortby'])) $this->sortby=trim($_POST[$this->implementclassname.'_sortby']); if(isset($_POST[$this->implementclassname.'_sortorder'])) $this->sortorder=trim($_POST[$this->implementclassname.'_sortorder']); if(isset($_POST[$this->implementclassname.'_pagesize'])) $this->pagesize = trim($_POST[$this->implementclassname.'_pagesize']); } function HTMLVarConv($var) { Return stripslashes(HTMLSpecialChars($var)); } function DBVarConv($var) { return addslashes($var); } function JAVAVarConv($var) { Return addslashes($var); } function mkshortstr($str,$lngth) { $retstr=trim($str); if (strlen($retstr)>$lngth) $retstr=substr($retstr,0,$lngth)."..."; return $retstr; } function PathHost() { return "http"."://".$_SERVER['SERVER_NAME']; } function GetURLString() { $i=0; $tmparray = array_keys($_GET); $strvariable=""; foreach($_GET as $tmp) { $strvariable = $strvariable."&".$tmparray[$i]."=".$tmp; $i++; } return $strvariable; } function CurrencyFormat($var) { return number_format($var,2,',',''); } function InitNullVar($var,$initvalue) { $retval=$initvalue; if(!is_null($var)) $retval=$var; return $retval; } function HTMLWriteerror($error) { if(is_array($error) and count($error)>0) { ?>
 Following Information Required :  ".$err; echo "

"; } } function HTMLWriteerrorFront($error) { if(is_array($error) and count($error)>0) { ?>
 Check :  ".$err; echo "

"; } } function HTMLDisplayMessage($DisplayMessage) { if(strlen($DisplayMessage)) { ?>
 
 
 
 
0) { if($totalrecord < $perpagerecord) $pprecord = $totalrecord; else $pprecord = $perpagerecord; if($currentpage==1) { $recordfrom = 0; $recordto = $pprecord; } else { $recordfrom = $perpagerecord*($currentpage-1); $recordto = $perpagerecord; } $quotioentvalue = (int)((int)($totalrecord)/(int)($perpagerecord)); $modulusvalue = $totalrecord%$perpagerecord; if($totalrecord > $perpagerecord) { if($quotioentvalue > 0) $numofpages = $quotioentvalue; if($modulusvalue > 0) $numofpages++; } // echo $recordfrom."-->".$recordto; $limit = " LIMIT ".$recordfrom.", ".$recordto; } } function GetPageNavigationHTML() { ?>