class clsbase { var $include_path; var $loginurl; var $loginpageurl; var $returl; var $error; var $connect; var $submitted; var $implementclassname; var $DisplayMessage; var $SiteDomainName; var $refmonth; var $enc_password ; /// to Encrypt and Decrypt The Data this is Static var $perpagerecord; var $numofpages; var $currentpage; var $recordfrom; var $recordto; var $sortby; var $sortorder; var $languageid; // 1 = Polish. 2 = English. 3 = Russian. var $uploadimagepath; var $uploadimagepath100; var $uploadimagepath250; var $extensionlist; var $imagemaxsize; var $imagelocation; var $imagelocation100; var $imagelocation250; var $bannerimagepath; var $pagesize; var $NewKey; function clsbase($connect,$include_path,$implementclassname) { $this->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 :
foreach($error as $err)
echo " ".$err; echo " |
Check :
foreach($error as $err)
echo " ".$err; echo " |
|
|
if($this->currentpage > 1) {?> << First | < Prev } else {?><< First | < Prev }?> | Page if($this->currentpage<=$this->numofpages) echo $this->currentpage; else echo "1";?> of echo $this->numofpages;?> | if($this->currentpage < $this->numofpages){?>Next > | |