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.144.40.90
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 : 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