Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Apache
: 172.26.7.228 | : 3.142.198.148
Cant Read [ /etc/named.conf ]
5.6.40-24+ubuntu18.04.1+deb.sury.org+1
www-data
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
var /
www /
results /
dud /
src /
[ HOME SHELL ]
Name
Size
Permission
Action
PrinChallan.php
732
B
-rwxr-xr-x
Thumbs.db
19
KB
-rwxr-xr-x
applicationFormReport.php
10.17
KB
-rwxr-xr-x
applicationFormReportNEFT.php
10.86
KB
-rwxr-xr-x
applicationFormReportPOSTOFFIC...
21.18
KB
-rwxr-xr-x
applicationFormReportSBM.php
28.54
KB
-rwxr-xr-x
cappcontext.php
2.64
KB
-rwxr-xr-x
cappdu.php
4.09
KB
-rwxr-xr-x
code128.php
14.86
KB
-rwxr-xr-x
code39.php
6.38
KB
-rwxr-xr-x
coutput.php
1.96
KB
-rwxr-xr-x
crequestbroker.php
2.49
KB
-rwxr-xr-x
csessions.php
516
B
-rwxr-xr-x
cuser.php
3.41
KB
-rwxr-xr-x
customappcontext.php
2.34
KB
-rwxr-xr-x
getnumword.php
7.15
KB
-rwxr-xr-x
json.php
33.72
KB
-rwxr-xr-x
json_wait.php
33.22
KB
-rwxr-xr-x
mregistry.php
1.71
KB
-rwxr-xr-x
process_payment.php
3.64
KB
-rwxr-xr-x
results.php
35.88
KB
-rwxr-xr-x
revaluation.php
26.52
KB
-rwxr-xr-x
revaluation11.php
26.33
KB
-rwxr-xr-x
rotation.php
596
B
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : applicationFormReportSBM.php
<?php $main_src=substr($_SERVER['SCRIPT_FILENAME'],0,strlen($_SERVER['SCRIPT_FILENAME'])-7); //$pdf_writer_class =$main_src."/tarka_pdf/fpdf.php"; $pdf_writer_class =$main_src."/tcpdf/tcpdf.php"; require_once($pdf_writer_class); class applicationFormReport { function DefaultConstructor($aobj_context) { $this->aobj_context=$aobj_context; //$this->pdf= new FPDF(); $this->pdf= new TCPDF(); $this->pdf=$this; $this->app_no=trim($this->aobj_context->mobj_data["app_no"]); $this->ip=$_SERVER["REMOTE_ADDR"]; $get_date="select date_add(date_add(now(),INTERVAL 13 hour),interval 30 minute) as now_date"; $obj=$this->aobj_context->mobj_db->GetRow($get_date); require_once("getnumword.php"); $this->current_date=$obj[now_date]; //$this->pdf = new FPDF('L'); $this->pdf= new TCPDF('L'); $this->pdf->SetMargins(2,5,2); $this->pdf->addPage('L'); } function formcolldata() { $get_coll_name="select FUNIVNAME as 'FUNIVNAME', FUNIVADD1 as 'state', pdf_logo_path,ifnull(FEXAMAPPREQ,'F') as FEXAMAPPREQ From control"; $lobj_get_coll_name=$this->aobj_context->mobj_db->GetRow($get_coll_name); $this->FUNIVNAME=$lobj_get_coll_name['FUNIVNAME']; $this->s_state=$lobj_get_coll_name['state']; $this->f_year=$lobj_get_coll_name['f_year']; $this->pdf_logo_path=$lobj_get_coll_name['pdf_logo_path']; $this->FEXAMAPPREQ=$lobj_get_coll_name['FEXAMAPPREQ']; } function GetBankDetails() { /*$get_data="SELECT bank_name, acc_no, branch_name, branch_code, ifsc_code, cheque_favour, place,bank_charge FROM acc_mas where (payment_type = '{$this->FPAYMENTYPE}' or payment_type = 'BANK')"; $lobj_get_data= $this->aobj_context->mobj_db->GetRow($get_data);*/ if($this->FPAYMENTYPE == 'College Bank') { $get_data = "SELECT fbank as bank_name, fbankaccno as acc_no, fbankbranch as branch_name, fbranchcode as branch_code, fifsccode as ifsc_code, fchequefavour as cheque_favour, fbankplace as place ,fbankcharge as bank_charge FROM college where fcollcode = '{$this->college_code}'"; } else { $get_data = "SELECT bank_name, acc_no, branch_name, branch_code, ifsc_code, cheque_favour, place, bank_charge FROM acc_mas where payment_type='{$this->FPAYMENTYPE}'"; } $lobj_get_data= $this->aobj_context->mobj_db->GetRow($get_data); //var_dump($get_data); $this->bank_name=$lobj_get_data['bank_name']; $this->acc_no=$lobj_get_data['acc_no']; $this->branch_name=$lobj_get_data['branch_name']; $this->branch_code=$lobj_get_data['branch_code']; $this->ifsc_code=$lobj_get_data['ifsc_code']; $this->cheque_favour=$lobj_get_data['cheque_favour']; $this->place=$lobj_get_data['place']; $this->bank_charge=$lobj_get_data['bank_charge']; } function GetData() { $get_app_no = "SELECT FREGNO ,'' FRECPTNO,FAPPDATE AS FRECPTDATE,FTOTAL AS FTOTALFEE, FPAYMENTYPE,'' FFEETYPE,'' FCATEGORY FROM res_stud where APPNO='{$this->app_no}' group by APPNO "; $obj_get_app_no=$this->aobj_context->mobj_db->GetRow($get_app_no); $this->reg_no=$obj_get_app_no['FREGNO']; $this->FRECPTDATE=$obj_get_app_no['FRECPTDATE']; $this->FTOTALFEE=$obj_get_app_no['FTOTALFEE']; $this->FPAYMENTYPE=$obj_get_app_no['FPAYMENTYPE']; $this->FCATEGORY=$obj_get_app_no['FCATEGORY']; $this->FFEETYPE=$obj_get_app_no['FFEETYPE']; //lastdate $query = "select frvlastdate,frtlastdate,fcvlastdate,FXEROXLASTDATE from res_fee where fregno = '{$this->reg_no}'"; $results = $this->aobj_context->mobj_db->GetRow($query); $this->rvlastedate = $results['frvlastdate']; $this->rtlastdate = $results['frtlastdate']; $this->cvlastdate = $results['fcvlastdate']; $this->XEROXLASTDATE = $results['FXEROXLASTDATE']; $get_other_details = "select date_format(current_date,'%d/%m/%Y') as curr_date,FDEGREE,FCOLLCODE,FNAME,CONCAT(IFNULL(FCURRADD1,''),' ',FCURRADD2) AS s_address from student where FREGNO='{$this->reg_no}' "; $lobj_get_name = $this->aobj_context->mobj_db->GetRow($get_other_details); $this->college_code=$lobj_get_name['FCOLLCODE']; $this->degree=$lobj_get_name['FDEGREE']; $this->student_name=$lobj_get_name['FNAME']; $this->s_address=$lobj_get_name['s_address']; $this->curr_date=$lobj_get_name['curr_date']; $this->GetBankDetails(); } function WriteRect() { $width=96; $this->pdf->Rect(2,5,$width,200); $this->pdf->Rect(2+$width+2,5,$width,200); $this->pdf->Rect(2+$width+$width+4,5,$width,200); if(!empty($this->pdf_logo_path)) { $img_logo_path=$this->aobj_context->main_src.$this->pdf_logo_path; $this->pdf->Image($img_logo_path,4,7,15); $this->pdf->Image($img_logo_path,$width+6,7,15); $this->pdf->Image($img_logo_path,$width+$width+7,7,15); } $this->pdf->setY(5); } /*function formData($label) { $line_height=5; $width=96; $x_pos=2; if($this->pos==2) $x_pos=2+$width+2; if($this->pos==3) $x_pos=2+$width+2+$width+2; $jump_width=$width; if($this->pos==2) $jump_width=$width; else if($this->pos==3) $jump_width=$width; $this->pdf->SetX($x_pos); $this->old_y=$this->pdf->GetY(); $this->pdf->SetFont('Times','B',9); $this->pdf->Cell($jump_width,$line_height,$this->FUNIVNAME,'0',1,'C'); $this->pdf->SetX($x_pos); $this->pdf->Cell($jump_width,$line_height,$this->s_state,'0',1,'C'); $this->pdf->SetX($x_pos); $this->pdf->Cell($jump_width,$line_height,"CHALLAN",'0',1,'C'); $this->pdf->SetFont('Times','BU',9); $this->pdf->SetX($x_pos); $this->pdf->Cell($jump_width,$line_height,$label,'0',1,'C'); $this->pdf->SetFont('Times','B',9); $this->pdf->SetX($x_pos); $this->pdf->Cell($jump_width,$line_height,"A/C NO:{$this->acc_no}",'0',1,'C'); $this->pdf->SetX($x_pos); $this->pdf->Cell($jump_width,$line_height,"{$this->bank_name}",'0',1,'C'); $this->pdf->SetX($x_pos); $this->pdf->Cell($jump_width,$line_height,"BRANCH CODE:{$this->branch_code} IFSC CODE:{$this->ifsc_code}",'0',1,'C'); $this->pdf->SetX($x_pos); $this->pdf->Cell($jump_width,$line_height,"BANK USE ONLY",'0',1,'C'); //$this->pdf->SetFont('Times','B',10); $td1_width=$jump_width*(0.30)-1; $td2_width=$jump_width-$td1_width-2; $this->pdf->SetX($x_pos+1); $this->pdf->Cell($td1_width,$line_height,"Bank",'1',0,'L'); $this->pdf->Cell($td2_width,$line_height,"{$this->bank_name}",'1',1,'L'); $this->pdf->SetX($x_pos+1); $this->pdf->Cell($td1_width,$line_height,"Branch Name",'1',0,'L'); $this->pdf->Cell($td2_width,$line_height,"",'1',1,'L'); $this->pdf->SetX($x_pos+1); $this->pdf->Cell($td1_width,$line_height,"Branch Code",'1',0,'L'); $this->pdf->Cell($td2_width,$line_height,"",'1',1,'L'); $this->pdf->SetX($x_pos+1); $this->pdf->Cell($td1_width,$line_height,"Journal No",'1',0,'L'); $this->pdf->Cell($td2_width,$line_height,"",'1',1,'L'); $this->pdf->SetX($x_pos+1); $this->pdf->Cell($td1_width,$line_height,"Date",'1',0,'L'); $this->pdf->Cell($td2_width,$line_height,"",'1',1,'L'); $this->pdf->SetX($x_pos+1); $this->pdf->Cell($jump_width,$line_height,"Reference No: {$this->app_no}",'0',1,'L'); $this->pdf->SetX($x_pos+1); $this->pdf->Cell($jump_width,$line_height,"Applicant Name: {$this->student_name}",'0',1,'L'); $this->pdf->SetX($x_pos+1); $this->pdf->Cell($jump_width,$line_height,"Reg. No.: {$this->reg_no}",'0',1,'L'); $this->pdf->SetX($x_pos+1); $this->pdf->Cell($jump_width,$line_height,"College / Degree: {$this->college_code} / {$this->degree}",'0',1,'L'); $this->pdf->SetX($x_pos+1); $this->pdf->Cell($jump_width,$line_height,"Category / Fee Type: {$this->FCATEGORY} / {$this->FFEETYPE}",'0',1,'L'); $this->pdf->SetX($x_pos+1); $this->pdf->Cell($jump_width,$line_height,"Fee: {$this->FTOTALFEE}/-",'0',1,'L'); //$this->pdf->Cell($jump_width,$line_height,"Address: {$this->s_address}",'0',1,'L'); // $this->pdf->MultiCell($jump_width,6, "Reg. No.:".$this->reg_no,0,"L"); /* $this->pdf->SetX($x_pos+1); $tdd1_width=$jump_width*(0.25)-1; $tdd2_width=($jump_width)*.55 ; $tdd3_width=($jump_width-$tdd2_width)*.30+5; $this->pdf->Cell($tdd1_width,$line_height,"Course",'1',0,'L'); $this->pdf->Cell($tdd2_width,$line_height,"Exams",'1',0,'L'); $this->pdf->Cell($tdd3_width,$line_height,"Fee",'1',1,'L'); $this->pdf->SetX($x_pos+1); $this->pdf->Cell($tdd1_width,$line_height,$this->degree,'1',0,'L'); $this->pdf->Cell($tdd2_width,$line_height,$this->FEXAMNO,'1',0,'L'); $this->pdf->Cell($tdd3_width,$line_height,$this->FTOTALFEE,'1',1,'L'); // $this->pdf->SetX($x_pos+1); // $this->pdf->SetFont('Times','B',11); // $this->pdf->Cell($tdd1_width,$line_height,"Fee paid",'1',0,'L'); // $this->pdf->Cell($tdd2_width,$line_height,"Full Fee",'TLB',0,'L'); // $this->pdf->Cell($tdd3_width,$line_height,"",'TRB',1,'L'); $this->pdf->SetFont('Times','B',10); $this->pdf->SetX($x_pos+1); $in_words=getNumber($this->FTOTALFEE); $this->pdf->Cell($jump_width,$line_height,"Rupees {$in_words}",'0',1,'L'); $this->pdf->SetX($x_pos+1); $this->pdf->SetFont('Times','',8); $this->pdf->MultiCell($jump_width,$line_height,"PAID TO THE CREDIT OF {$this->cheque_favour} ",0,"L"); $this->pdf->SetX($x_pos+1); $this->pdf->SetFont('Times','B',10); $tdd1_width=$jump_width*(0.25)-1; $tdd2_width=($jump_width)*.25 ; $tdd3_width=($jump_width)*.25 ; $tdd4_width=($jump_width)*.25-1; $this->pdf->Cell($tdd1_width,$line_height,"Particulars",'1',0,'C'); $this->pdf->Cell($tdd2_width,$line_height,"Course Fee",'1',0,'C'); $this->pdf->Cell($tdd3_width,$line_height,"Bank Charges",'1',0,'C'); $this->pdf->Cell($tdd4_width,$line_height,"Total",'1',1,'C'); $this->pdf->SetX($x_pos+1); $this->pdf->Cell($tdd1_width,$line_height,"Amount",'1',0,'C'); $this->pdf->Cell($tdd2_width,$line_height,"Rs {$this->FTOTALFEE}/-",'1',0,'C'); $this->pdf->Cell($tdd3_width,$line_height,"Rs {$this->bank_charge}/-",'1',0,'C'); $total=($this->FTOTALFEE+$this->bank_charge); $this->pdf->Cell($tdd4_width,$line_height,"Rs {$total}/-",'1',1,'C'); $this->pdf->SetX($x_pos+1); $in_words=getNumber($total); $this->pdf->Cell($jump_width,$line_height,"Rupees {$in_words}",'0',1,'L'); $this->pdf->ln(3); $this->pdf->SetX($x_pos+1); $this->pdf->Cell($td1_width,$line_height,"Date",'0',0,'L'); $this->pdf->Cell($td2_width,$line_height,"Signature of Remitter ",'0',1,'R'); $this->pdf->ln(4); $this->pdf->SetX($x_pos+1); $this->pdf->Cell($jump_width,$line_height,"Received Rupees",'0',1,'L'); $this->pdf->ln(6); $this->pdf->SetX($x_pos+1); $this->pdf->Cell($td1_width,$line_height,"Date & Seal",'0',0,'L'); $this->pdf->Cell($td2_width,$line_height,"Signature of Receiver ",'0',1,'R'); $this->pdf->SetFont('Times','',9); $this->pdf->SetX($x_pos+1); $this->pdf->MultiCell($jump_width,$line_height,'1. Accepted at all branches of SBM ',0,"L"); $this->pdf->SetX($x_pos+1); $this->pdf->MultiCell($jump_width,$line_height,'2. Collecting Branch has to enter Reference No: & Name of the candidate for this transaction in core banking system',0,"L"); $this->pdf->SetX($x_pos+1); // $this->pdf->SetY(-6); $this->pdf->Cell($jump_width,$line_height,"3. Not Transferable",'0',1,'L'); $this->pdf->SetY($this->old_y); $img_path=$this->aobj_context->main_src.$this->photo_path; } ///////********************data ****************************/// function formData($label) { $line_height=5; $width=96; $x_pos=2; $style = array( 'position' => 'right', 'align' => 'C', 'stretch' => false, 'fitwidth' => true, 'cellfitalign' => '', 'border' => false, 'hpadding' => 'auto', 'vpadding' => 'auto', 'fgcolor' => array(0,0,0), 'bgcolor' => false, //array(255,255,255), 'text' => true, 'font' => 'helvetica', 'fontsize' => 8, 'stretchtext' => 4 ); if($this->pos==2) $x_pos=2+$width+2; if($this->pos==3) $x_pos=2+$width+2+$width+2; $jump_width=$width; if($this->pos==2) $jump_width=$width; else if($this->pos==3) $jump_width=$width; $this->pdf->SetX($x_pos); $this->old_y=$this->pdf->GetY(); /* $this->pdf->SetFont('Times','B',7); $this->pdf->Cell($jump_width,$line_height,'UNIVERSITY OF MYSORE','0',1,'C'); */ $this->pdf->SetX($x_pos); $this->pdf->SetFont('Times','B',8); $this->pdf->Cell($jump_width,4,$this->FUNIVNAME,'0',1,'C'); $this->pdf->SetFont('Times','B',6); $this->pdf->SetX($x_pos); $this->pdf->Cell($jump_width,4,$this->s_state,'0',1,'C'); $this->pdf->SetFont('Times','B',8); $this->pdf->SetX($x_pos); $this->pdf->Cell($jump_width,$line_height,"Challan - ".$label,'0',1,'C'); /* $this->pdf->SetFont('Times','BU',9); $this->pdf->SetX($x_pos); $this->pdf->Cell($jump_width,$line_height,$label,'0',1,'C'); */ $this->pdf->SetFont('Times','B',8); $this->pdf->SetX($x_pos); $this->pdf->Cell($jump_width,$line_height,"A/C No. : {$this->acc_no}"." / IFSC CODE: {$this->ifsc_code}",'0',1,'C'); $this->pdf->ln(2); /* $this->pdf->SetX($x_pos); $this->pdf->Cell($jump_width,$line_height,"{$this->bank_name}",'0',1,'C'); $this->pdf->SetX($x_pos); $this->pdf->Cell($jump_width,$line_height,"IFSC CODE: {$this->ifsc_code}",'0',1,'C'); //$this->pdf->Cell($jump_width,$line_height,"BRANCH CODE: {$this->branch_code} | IFSC CODE: {$this->ifsc_code}",'0',1,'C'); $this->pdf->SetX($x_pos); $this->pdf->Cell($jump_width,$line_height,"BANK USE ONLY",'0',1,'C'); */ $td1_width=$jump_width*(0.30)-1; $td2_width=$jump_width-$td1_width-2; $this->pdf->SetX($x_pos+1); $this->pdf->Cell($td1_width,$line_height,"Bank",'1',0,'L'); $this->pdf->Cell($td2_width,$line_height,"{$this->bank_name}",'1',1,'L'); $this->pdf->SetX($x_pos+1); $this->pdf->Cell($td1_width,$line_height,"Branch Name",'1',0,'L'); $this->pdf->Cell($td2_width,$line_height,"{$this->branch_name}",'1',1,'L'); $this->pdf->SetX($x_pos+1); $this->pdf->Cell($td1_width,$line_height,"Branch Code",'1',0,'L'); $this->pdf->Cell($td2_width,$line_height,"{$this->branch_code}",'1',1,'L'); $this->pdf->SetX($x_pos+1); $this->pdf->Cell($td1_width,$line_height,"Journal No",'1',0,'L'); $this->pdf->Cell($td2_width,$line_height,"",'1',1,'L'); $this->pdf->SetX($x_pos+1); $this->pdf->Cell($td1_width,$line_height,"Date",'1',0,'L'); $this->pdf->Cell($td2_width,$line_height,"{$this->curr_date}",'1',1,'L'); $line_height = 4; $this->pdf->SetX($x_pos+1); $this->pdf->Cell($jump_width,$line_height,"Reference No: {$this->app_no}",'0',1,'L'); $this->pdf->SetX($x_pos+1); $this->pdf->Cell($jump_width,$line_height,"Applicant Name: {$this->student_name}",'0',1,'L'); $this->pdf->SetX($x_pos+1); $this->pdf->Cell($jump_width,$line_height,"Reg. No.: {$this->reg_no}",'0',1,'L'); $this->pdf->SetX($x_pos+1); $this->pdf->Cell($jump_width,$line_height,"College / Degree: {$this->college_code} / {$this->degree}",'0',1,'L'); $this->pdf->SetX($x_pos+1); $this->pdf->Cell($jump_width,$line_height,"Category / Fee Type: {$this->FCATEGORY} / {$this->FFEETYPE}",'0',1,'L'); if($this->rvlastedate != '0000-00-00') { $this->pdf->SetX($x_pos+1); $this->pdf->Cell($jump_width,$line_height,"RV Valid Upto : {$this->rvlastedate}",'0',1,'L'); } if($this->rtlastdate != '0000-00-00') { $this->pdf->SetX($x_pos+1); $this->pdf->Cell($jump_width,$line_height,"RT Valid Upto : {$this->rtlastdate}",'0',1,'L'); } if($this->XEROXLASTDATE != '0000-00-00') { $this->pdf->SetX($x_pos+1); $this->pdf->Cell($jump_width,$line_height,"XR Valid Upto : {$this->XEROXLASTDATE}",'0',1,'L'); } if($this->cvlastdate != '0000-00-00') { $this->pdf->SetX($x_pos+1); $this->pdf->Cell($jump_width,$line_height,"CV Valid Upto : {$this->cvlastdate}",'0',1,'L'); } $this->pdf->SetX($x_pos+1); $this->pdf->Cell($jump_width,$line_height,"Fee: {$this->FTOTALFEE}/-",'0',1,'L'); $this->pdf->SetFont('Times','B',8); $this->pdf->SetX($x_pos+1); $in_words=getNumber($this->FTOTALFEE); $this->pdf->Cell($jump_width,$line_height,"Rupees {$in_words}",'0',1,'L'); $this->pdf->SetX($x_pos+1); $this->pdf->SetFont('Times','',8); $this->pdf->MultiCell($jump_width,$line_height,"PAID TO THE CREDIT OF {$this->cheque_favour} ",0,"L"); $line_height = 4; $this->pdf->SetX($x_pos+1); $this->pdf->SetFont('Times','B',8); $tdd1_width=$jump_width*(0.25)-1; $tdd2_width=($jump_width)*.25 ; $tdd3_width=($jump_width)*.25 ; $tdd4_width=($jump_width)*.25-1; $this->pdf->Cell($tdd1_width,$line_height,"Particulars",'1',0,'C'); $this->pdf->Cell($tdd2_width,$line_height,"Course Fee",'1',0,'C'); $this->pdf->Cell($tdd3_width,$line_height,"Bank Charges",'1',0,'C'); $this->pdf->Cell($tdd4_width,$line_height,"Total",'1',1,'C'); $this->pdf->SetX($x_pos+1); $this->pdf->Cell($tdd1_width,$line_height,"Amount",'1',0,'C'); $this->pdf->Cell($tdd2_width,$line_height,"Rs {$this->FTOTALFEE}/-",'1',0,'C'); $this->pdf->Cell($tdd3_width,$line_height,"Rs {$this->bank_charge}/-",'1',0,'C'); $total=($this->FTOTALFEE+$this->bank_charge); $this->pdf->Cell($tdd4_width,$line_height,"Rs {$total}/-",'1',1,'C'); $this->pdf->SetX($x_pos+1); $in_words=getNumber($total); $this->pdf->Cell($jump_width,$line_height,"Rupees In Words",'0',1,'L'); $this->pdf->ln(3); $this->pdf->SetX($x_pos+1); $this->pdf->Cell($td1_width,$line_height,"Date",'0',0,'L'); $this->pdf->Cell($td2_width,$line_height,"Signature of Remitter ",'0',1,'R'); $this->pdf->ln(3); $this->pdf->SetX($x_pos+1); $this->pdf->Cell($jump_width,$line_height,"Received Rupees",'0',1,'L'); $this->pdf->ln(4); $this->pdf->SetX($x_pos+1); $this->pdf->Cell($td1_width,$line_height,"Date & Seal",'0',0,'L'); $this->pdf->Cell($td2_width,$line_height,"Signature of Receiver ",'0',1,'R'); $this->pdf->SetFont('Times','',8); $this->pdf->SetX($x_pos+1); $this->pdf->Cell(30,4,"Denomination",'1',0,'L'); $this->pdf->Cell(10,4,"No.s",'1',0,'L'); $this->pdf->Cell(20,4,"Rs.",'1',1,'L'); $this->pdf->SetX($x_pos+1); $this->pdf->Cell(30,4,"2000x",'1',0,'L'); $this->pdf->Cell(10,4,"",'1',0,'L'); $this->pdf->Cell(20,4,"",'1',1,'L'); $this->pdf->SetX($x_pos+1); $this->pdf->Cell(30,4,"500x",'1',0,'L'); $this->pdf->Cell(10,4,"",'1',0,'L'); $this->pdf->Cell(20,4,"",'1',1,'L'); $this->pdf->SetX($x_pos+1); $this->pdf->Cell(30,4,"100x",'1',0,'L'); $this->pdf->Cell(10,4,"",'1',0,'L'); $this->pdf->Cell(20,4,"",'1',1,'L'); $this->pdf->SetX($x_pos+1); $this->pdf->Cell(30,4,"50x",'1',0,'L'); $this->pdf->Cell(10,4,"",'1',0,'L'); $this->pdf->Cell(20,4,"",'1',1,'L'); $this->pdf->SetX($x_pos+1); $this->pdf->Cell(30,4,"20x",'1',0,'L'); $this->pdf->Cell(10,4,"",'1',0,'L'); $this->pdf->Cell(20,4,"",'1',1,'L'); $this->pdf->SetX($x_pos+1); $this->pdf->Cell(30,4,"10x",'1',0,'L'); $this->pdf->Cell(10,4,"",'1',0,'L'); $this->pdf->Cell(20,4,"",'1',1,'L'); $this->pdf->SetX($x_pos+1); $this->pdf->Cell(30,4,"Total",'1',0,'L'); $this->pdf->Cell(10,4,"",'1',0,'L'); $this->pdf->Cell(20,4,"",'1',1,'L'); /* $this->pdf->SetX($x_pos+1); $this->pdf->MultiCell($jump_width,$line_height,'1. Accepted at all branches of ANDHRA BANK ',0,"L"); */ $this->pdf->SetX($x_pos+1); $this->pdf->MultiCell($jump_width,$line_height,'1. Collecting Branch has to enter Reference No: & Name of the candidate for this transaction in core banking system',0,"L"); $this->pdf->SetX($x_pos+1); $this->pdf->Cell($jump_width,$line_height,"2. Not Transferable",'0',1,'L'); $this->pdf->SetX($x_pos+5); $this->pdf->write1DBarcode($this->app_no, 'C39', '20', '173.9','100', 16, 0.3, $style, 'R'); $this->pdf->write1DBarcode($this->app_no, 'C39', '120', '173.9','100', 16, 0.3, $style, 'R'); $this->pdf->write1DBarcode($this->app_no, 'C39', '220', '173.9','100', 16, 0.3, $style, 'R'); $this->pdf->SetY($this->old_y); $img_path=$this->aobj_context->main_src.$this->photo_path; } function FooterManual22() { $this->pdf->SetY(-30); $this->pdf->SetFont('Times','B',8); //$this->Cell(140,6,'Entered : IP Address : '.$this->ip_address." Date ".$this->created_date,'0',0,'L'); $this->pdf->Cell(140,6,'Printed : IP Address : '.$this->ip." Date ".$this->current_date,'0',0,'L'); $this->pdf->Cell(50,6,'Page 1 of 1',0,1,'R'); } function formcolldata22() { $get_coll_name="select FUNIVNAME as 'college_name', FUNIVADD1 as 'state', pdf_logo_path From control"; $lobj_get_coll_name=$this->aobj_context->mobj_db->GetRow($get_coll_name); $this->college_name=$lobj_get_coll_name['college_name']; $this->s_state=$lobj_get_coll_name['state']; $this->f_year=$lobj_get_coll_name['f_year']; $this->pdf_logo_path=$lobj_get_coll_name['pdf_logo_path']; $get_app_no=" select FREGNO,FEXAMNO,FPAYMENTYPE from res_stud where APPNO='{$this->app_no}'"; $obj_get_app_no=$this->aobj_context->mobj_db->GetRow($get_app_no); $this->reg_no=$obj_get_app_no['FREGNO']; $this->exam=$obj_get_app_no['FEXAMNO']; $this->FPAYMENTYPE=$obj_get_app_no['FPAYMENTYPE']; $get_data="SELECT s.FDEGREE,d.FDESCPN, s.FEXAMNO,d.FEXAMNAME,s.FCOLLCODE, concat(c.FCOLLCODE, ' - ', c.FCOLLNAME,', ',c.FTOWN) AS FCOLLNAME,d.FRESEXAMDATE, s.FREGNO,s.FNAME,s.FAYEAR,d.FELIGREM01,d.FELIGREM02 FROM student s INNER JOIN college c ON c.FCOLLCODE=s.FCOLLCODE INNER JOIN degree d ON d.FDEGREE=s.FDEGREE where s.FREGNO='{$this->reg_no}' and d.fexamno = '{$this->exam}'"; $obj_student=$this->aobj_context->mobj_db->GetRow($get_data); $FEXAMNAME=$obj_student[FEXAMNAME]; $FDESCPN=$obj_student[FDESCPN]; $FEXAMDATE=$obj_student[FRESEXAMDATE]; $this->FDEGREE=$obj_student[FDEGREE]; $this->FCOLLNAME=$obj_student[FCOLLNAME]; $this->FNAME=$obj_student[FNAME]; $this->degree_details=" {$FEXAMNAME} {$FDESCPN} {$FEXAMDATE} Examinations"; } function formData22() { $this->pdf->SetMargins(10,12,10); $this->pdf->AddPage("P"); $img_path=$this->aobj_context->main_src.$this->photo_path; if(!empty($this->photo_path) && file_exists($img_path)) { $this->pdf->Image($img_path,166,50,50); } if(!empty($this->pdf_logo_path)) { $img_logo_path=$this->aobj_context->main_src.$this->pdf_logo_path; //echo $img_logo_path; die(); $this->pdf->Image($img_logo_path,10,10,20); } if($this->call_type=="Other") $this->pdf->setY(15); $this->pdf->SetFont('Times','B',15); $this->pdf->cell(180,3,$this->college_name,"0",1,"C"); $this->pdf->SetFont('Times','B',8); $this->pdf->cell(180,7, $this->s_state,"0",1,"C"); $this->pdf->SetFont('Times','B',13); $this->pdf->cell(180,7, $this->degree_details,"0",1,"C"); $this->pdf->SetFont('Times','B',11); $this->pdf->Cell(180,7,"Application for RV / RT / Photocopy of Answer Scripts","0",1,"C"); $this->pdf->SetFont('Times','B',15); $this->pdf->Cell(180,7,"Application Number : {$this->app_no}","0",1,"C"); $this->pdf->Ln(2); $this->pdf->SetFont('Times','',13); //$this->SetDrawColor(109,187,195); //$this->pdf->SetFillColor(63,55,55); $this->pdf->Cell(0,0.001,"","T",1,'C'); $this->pdf->cell(30,7, "Register No : ","0",0,"L"); $this->pdf->cell(124,7,strtoupper($this->reg_no),"0",0,"L"); $this->pdf->cell(50,7,"Date : {$this->app_date}","0",1,"L"); $this->pdf->cell(30,7, "Name : ","0",0,"L"); $this->pdf->cell(130,7,$this->FNAME,"0",1,"L"); $this->pdf->cell(30,7, "College : ","0",0,"L"); $this->pdf->cell(130,7,$this->FCOLLNAME,"0",1,"L"); $this->pdf->Cell(0,0.001,"","T",1,'C'); } function GetFullQry22() { $get_already_applied="SELECT FEXAMNAME,mr.FREGNO, APPNO,DATE_FORMAT(FAPPDATE,'%d/%m/%Y') AS app_date,CONCAT(s.FSUBCODE,s.FSSUBCODE) as FSUBCODE, FTOTAL, concat( s.FSUBNAME ,' ',s.FSSUBNAME ) as FSUBNAME, FCORRTYPE,FAMOUNT,mr.internal_code FROM res_stud mr inner JOIN student st ON st.FREGNO=mr.FREGNO INNER JOIN degree d ON d.FDEGREE=mr.FDEGREE AND d.FEXAMNO=mr.FEXAMNO INNER join subject s on mr.FSUBCODE=CONCAT(s.FSUBCODE,s.FSSUBCODE) AND s.FDEGREE=d.FDEGREE AND s.FEXAMNO=mr.FEXAMNO WHERE mr.FDEGREE='{$this->FDEGREE}' AND mr.FREGNO='{$this->reg_no}' and mr.FEXAMNO ='{$this->exam}' AND s.FDEGREE=mr.FDEGREE AND s.FEXAMNO=mr.FEXAMNO and APPNO='{$this->app_no}' group by APPNO,mr.FREGNO,mr.FSUBCODE,FCORRTYPE order by mr.FREGNO,APPNO,mr.FSUBCODE "; //echo $get_already_applied; die(); $this->lobj_get_already_applied= $this->aobj_context->mobj_db->GetAll($get_already_applied); $this->app_date=$this->lobj_get_already_applied[0][app_date]; $this->distinct_types=array(); $this->txt_arr["RV"]="RV"; $this->txt_arr["RT"]="RT"; $this->txt_arr["XR"]="PC"; $this->txt_arr["CV"]="CV"; } function GetQry22() { $i=0; $allready_applied_html_arr=array(); foreach($this->lobj_get_already_applied as $ak=>$av) { $this->app_date=$av['app_date']; $allready_applied_html_arr[$av['FSUBCODE']]['sub_name']=$av['FSUBNAME'] ; $allready_applied_html_arr[$av['FSUBCODE']]['row_tot']+=$av['FAMOUNT']; $allready_applied_html_arr[$av['FSUBCODE']]['details'][$av['FCORRTYPE']]=$av['FAMOUNT']; $i++; if(!in_array($av['FCORRTYPE'],$this->distinct_types)) array_push($this->distinct_types,$av['FCORRTYPE']); } $this->pdf->ln(6); $empty_cell_width=1; if(count($this->distinct_types)==1) { $empty_cell_width=20; } if(count($this->distinct_types)==2) { $empty_cell_width=15; } if(count($this->distinct_types)==3) { $empty_cell_width=10; } if(count($this->distinct_types)==4) { $empty_cell_width=5; } $this->pdf->SetFillColor(109,187,195); //$this->SetDrawColor(255,2,195); $this->pdf->SetFont('Times','B',10); $this->pdf->cell($empty_cell_width,7, ""," ",0,"C"); $this->pdf->cell(15,7, "Sl. No.","1",0,"C",true); $this->pdf->cell(20,7, "Sub. Code","1",0,"C",true); $this->pdf->cell(80,7, "Subject Title","1",0,"C",true); foreach($this->distinct_types as $dk) { $this->pdf->cell(15,7, $this->txt_arr[$dk],"1",0,"C",true); } $this->pdf->cell(15,7, "Total Fee","1",1,"C",true); $sl_no=1; $grand_tot=0; //$this->SetFillColor(0,0,0); foreach($allready_applied_html_arr as $ak=>$av) { $this->pdf->cell($empty_cell_width,7, ""," ",0,"C"); $sub_code=$ak; $row_tot=$av['row_tot']; $grand_tot+=$row_tot; $sub_name=$av['sub_name']; $details=$av['details']; $get_sx1=$this->pdf->GetX(); $get_sy1=$this->pdf->GetY(); $this->pdf->SetXY($get_sx1+15+20,$get_sy1); $this->pdf->MultiCell(80,7, $sub_name,'1','L'); $get_sy2=$this->pdf->GetY(); $height=$get_sy2-$get_sy1; $this->pdf->SetXY($get_sx1,$get_sy1); $this->pdf->cell(15,$height,$sl_no,"1",0,"C"); $this->pdf->cell(20,$height,$sub_code,"1",0,"C"); $this->pdf->SetXY($get_sx1+15+20+80,$get_sy1); $cell_width=0; foreach($this->distinct_types as $dk) { $cell_val=" - "; if($details[$dk]>0) $cell_val=$details[$dk]; $this->pdf->cell(15,$height, $cell_val,"1",0,"C"); $cell_width+=15; } $this->pdf->cell(15,$height, $row_tot,"1",1,"C"); $sl_no++; } $fi_w=115+$cell_width-15+$empty_cell_width; // $this->pdf->cell($empty_cell_width,7, ""," ",0,"C"); $this->pdf->cell($fi_w,7,"","0",0,"C"); //$this->MultiCell(80,7, $,'1','L'); $this->pdf->cell(15,7,"Total ","1",0,"C"); $this->pdf->cell(15,7,"{$grand_tot} ","1",1,"C"); $this->pdf->ln(3); if($this->FPAYMENTYPE=="POSTOFFICE") $this->pdf->cell(35,7,"Payment Mode : Through Post Office","0",0,"L"); else $this->pdf->cell(35,7,"Payment Mode : {$this->FPAYMENTYPE}","0",0,"L"); $this->pdf->ln(19); $this->pdf->cell(35,7,"Date : ","0",0,"L"); $this->pdf->ln(26); $this->pdf->cell(85,7,"Signature of the candidate","0",0,"L"); $this->pdf->cell(35,7,"","0",0,"L"); $this->pdf->cell(85,7,"Signature of the Principal with Seal","0",0,"L"); } function SendOutput() { $this->pdf->Output("bank_challan_{$this->app_no}.pdf","D"); } } function PrintApplicationFormSBM($aobj_context) { $aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC); $class_obj=new applicationFormReport(); $class_obj->DefaultConstructor($aobj_context); $class_obj->formcolldata(); $class_obj->GetData(); $class_obj->WriteRect(); $class_obj->pos=1; $class_obj->formData("Bank Copy"); $class_obj->pos=2; $class_obj->formData("College Copy"); $class_obj->pos=3; $class_obj->formData("Student Copy"); $class_obj->formcolldata22(); $class_obj->GetFullQry22(); $class_obj->formData22(); $class_obj->GetQry22(); $class_obj->SendOutput(); } ?>
Close