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.118.10.75
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
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
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
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 : teachersList.php
<?php ini_set('max_execution_time', 60); $main_src = substr($_SERVER['SCRIPT_FILENAME'], 0, strlen($_SERVER['SCRIPT_FILENAME']) - 7); error_reporting(E_ALL); ini_set('display_errors', TRUE); ini_set('display_startup_errors', TRUE); date_default_timezone_set('GMT+5:30'); // PHPExcel_Shared_Font::setAutoSizeMethod(PHPExcel_Shared_Font::AUTOSIZE_METHOD_EXACT); if (PHP_SAPI == 'cli') die('This example should only be run from a Web Browser'); /** Include PHPExcel */ $pdf_writer_class = $main_src . '/PHPExcel/Classes/PHPExcel.php'; require_once($pdf_writer_class); function getheaders($objPHPExcel, $fileName) { //To Fit To Page while printing $objPHPExcel->getActiveSheet()->getPageSetup()->setRowsToRepeatAtTopByStartAndEnd(1); $objPHPExcel->getActiveSheet()->getPageSetup()->setFitToWidth(1); $objPHPExcel->getActiveSheet()->getPageSetup()->setFitToHeight(0); $objPHPExcel->getActiveSheet()->getPageSetup()->setHorizontalCentered(true); $objPHPExcel->getActiveSheet()->getPageSetup()->setVerticalCentered(false); ob_end_clean(); // ob_start(); // Redirect output to a client’s web browser (Excel5) header('Content-Type: application/vnd.ms-excel'); header('Content-Disposition: attachment;filename="' . $fileName . '.xls"'); header('Cache-Control: max-age=0'); // If you're serving to IE 9, then the following may be needed header('Cache-Control: max-age=1'); // If you're serving to IE over SSL, then the following may be needed header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); // Date in the past header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); // always modified header('Cache-Control: cache, must-revalidate'); // HTTP/1.1 header('Pragma: public'); // HTTP/1.0 ob_end_clean(); $objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel5'); $objWriter->save('php://output'); } function reportAdmFeeSummary($result, $aobj_context) { $objPHPExcel = new PHPExcel(); $fileName = 'TeachersList'; $objPHPExcel->getProperties()->setCreator("Me") ->setLastModifiedBy("Me")->setTitle("My Excel Sheet") ->setSubject("My Excel Sheet")->setDescription("Excel Sheet") ->setKeywords("Excel Sheet")->setCategory("Me"); // $objPHPExcel->setOutputEncoding('UTF-8'); // Set active sheet index to the first sheet, so Excel opens this as the first sheet $objPHPExcel->setActiveSheetIndex(0); $objPHPExcel->getActiveSheet()->setTitle($fileName); $objPHPExcel->getActiveSheet()->getPageSetup() ->setOrientation(PHPExcel_Worksheet_PageSetup::ORIENTATION_LANDSCAPE); $get_coll_name = "select FUNIVNAME as 'FUNIVNAME',FUNIVCODE, FUNIVADD1 as 'state', pdf_logo_path, ifnull(FEXAMAPPREQ,'F') as FEXAMAPPREQ From control"; $lobj_get_coll_name = $aobj_context->mobj_db->GetRow($get_coll_name); $objPHPExcel->getActiveSheet()->getHeaderFooter() ->setOddHeader('&C&H&"-,Bold"&16' . $aobj_context->FUNIVNAME); $objPHPExcel->getActiveSheet()->getHeaderFooter()->setOddFooter('&RPage &P of &N'); // Add column headers and make them bold $styleArray = array( 'borders' => array( 'allborders' => array( 'style' => PHPExcel_Style_Border::BORDER_THIN, 'color' => array('argb' => '000000'), ), ), ); $alpha = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'AA', 'AB', 'AC', 'AD', 'AF', 'AE', 'AF', 'AG', 'AH' ]; $objPHPExcel->getActiveSheet()->getStyle('1:1')->getFont()->setBold(true); $objPHPExcel->getActiveSheet()->getStyle('1:1')->getFont()->setSize(12); $objPHPExcel->getActiveSheet()->freezePane('A1'); $objPHPExcel->getActiveSheet()->setCellValue('A1', 'Sl. No.'); $objPHPExcel->getActiveSheet()->setCellValue('B1', 'College Code'); $objPHPExcel->getActiveSheet()->setCellValue('C1', 'College Name'); $objPHPExcel->getActiveSheet()->setCellValue('D1', 'Teach. Code'); $objPHPExcel->getActiveSheet()->setCellValue('E1', 'Title'); $objPHPExcel->getActiveSheet()->setCellValue('F1', 'Teacher Name'); $objPHPExcel->getActiveSheet()->setCellValue('G1', 'Gender'); $objPHPExcel->getActiveSheet()->setCellValue('H1', 'Designation'); $objPHPExcel->getActiveSheet()->setCellValue('I1', 'Qualification'); $objPHPExcel->getActiveSheet()->setCellValue('J1', 'Salary Scale'); $objPHPExcel->getActiveSheet()->setCellValue('K1', 'Fulltime'); $objPHPExcel->getActiveSheet()->setCellValue('L1', 'Permanent'); $objPHPExcel->getActiveSheet()->setCellValue('M1', 'Date of Birth'); $objPHPExcel->getActiveSheet()->setCellValue('N1', 'Date of Join'); $objPHPExcel->getActiveSheet()->setCellValue('O1', 'Date of Join(UGC)'); $objPHPExcel->getActiveSheet()->setCellValue('P1', 'Experience'); $objPHPExcel->getActiveSheet()->setCellValue('Q1', 'Experience (UGC)'); $objPHPExcel->getActiveSheet()->setCellValue('R1', 'Mobile No.'); $objPHPExcel->getActiveSheet()->setCellValue('S1', 'Phone No.'); $objPHPExcel->getActiveSheet()->setCellValue('T1', 'Email ID'); $objPHPExcel->getActiveSheet()->setCellValue('U1', 'Address'); $objPHPExcel->getActiveSheet()->setCellValue('V1', 'Update Date'); $objPHPExcel->getActiveSheet()->setCellValue('W1', 'Remarks'); $objPHPExcel->getActiveSheet()->setCellValue('X1', 'Status'); $objPHPExcel->getActiveSheet()->getStyle('A1:X1')->applyFromArray($styleArray); // $objPHPExcel->getActiveSheet()->getColumnDimension('G1')->setAutoSize(true); $objPHPExcel->getActiveSheet()->getRowDimension('1')->setRowHeight(40); $objPHPExcel->getActiveSheet()->getStyle('A1:X1')->getAlignment()->setWrapText(true); $objPHPExcel->getActiveSheet()->getStyle('A1:X1')->getAlignment() ->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_CENTER); $objPHPExcel->getActiveSheet()->getStyle('A1:X1')->getAlignment() ->setVertical(PHPExcel_Style_Alignment::VERTICAL_CENTER); // $objPHPExcel->getActiveSheet()->freezePane('A1'); $objPHPExcel->getActiveSheet()->freezePane('A2'); $j = 2; $slNo = 1; $sum = array(); $totamt=0; $totapp=0; // setlocale(LC_ALL, 'hi_IN'); // var_dump($result);die(); foreach ($result as $key => $value) { $objPHPExcel->getActiveSheet()->setCellValue('A' . $j, $slNo) ->getColumnDimension('A')->setwidth(5); $objPHPExcel->getActiveSheet()->setCellValue('B' . $j, $value['fcollcode']) ->getColumnDimension('B')->setwidth(10.43); $objPHPExcel->getActiveSheet()->setCellValue('C' . $j, $value['fcollname']) ->getColumnDimension('C')->setwidth(50); $objPHPExcel->getActiveSheet()->setCellValue('D' . $j, $value['fteachcode']) ->getColumnDimension('D')->setwidth(10); $objPHPExcel->getActiveSheet()->setCellValue('E' . $j, $value['ftitle']) ->getColumnDimension('E')->setwidth(7); $objPHPExcel->getActiveSheet()->setCellValue('F' . $j, $value['fteachname']) ->getColumnDimension('F')->setwidth(35); $objPHPExcel->getActiveSheet()->setCellValue('G' . $j, $value['fgender']) ->getColumnDimension('G')->setwidth(10); $objPHPExcel->getActiveSheet()->setCellValue('H' . $j, $value['fdegndesc']) ->getColumnDimension('H')->setwidth(17); $objPHPExcel->getActiveSheet()->setCellValue('I' . $j, $value['fqual']) ->getColumnDimension('I')->setwidth(17); $objPHPExcel->getActiveSheet()->setCellValue('J' . $j, $value['fscale']) ->getColumnDimension('J')->setwidth(12); $objPHPExcel->getActiveSheet()->setCellValue('K' . $j, $value['ffulltime']) ->getColumnDimension('K')->setwidth(10); $objPHPExcel->getActiveSheet()->setCellValue('L' . $j, $value['fpermanent']) ->getColumnDimension('L')->setwidth(10); $objPHPExcel->getActiveSheet()->setCellValue('M' . $j, $value['fdob']) ->getColumnDimension('M')->setwidth(12); $objPHPExcel->getActiveSheet()->setCellValue('N' . $j, $value['fdoa']) ->getColumnDimension('N')->setwidth(12); $objPHPExcel->getActiveSheet()->setCellValue('O' . $j, $value['FDOJUGC']) ->getColumnDimension('O')->setwidth(12); $objPHPExcel->getActiveSheet()->setCellValue('P' . $j, $value['FEXP']) ->getColumnDimension('P')->setwidth(15); $objPHPExcel->getActiveSheet()->setCellValue('Q' . $j, $value['FEXPUGC']) ->getColumnDimension('Q')->setwidth(15); $objPHPExcel->getActiveSheet()->setCellValue('R' . $j, $value['fmobile']) ->getColumnDimension('R')->setwidth(12); $objPHPExcel->getActiveSheet()->setCellValue('S' . $j, $value['fphone']) ->getColumnDimension('S')->setwidth(12); $objPHPExcel->getActiveSheet()->setCellValue('T' . $j, $value['femail']) ->getColumnDimension('T')->setwidth(30); $objPHPExcel->getActiveSheet()->setCellValue('U' . $j, $value['faddress']) ->getColumnDimension('U')->setwidth(50); $objPHPExcel->getActiveSheet()->setCellValue('V' . $j, $value['fmoddate']) ->getColumnDimension('V')->setwidth(17); $objPHPExcel->getActiveSheet()->setCellValue('W' . $j, $value['fremarks']) ->getColumnDimension('W')->setwidth(30); $objPHPExcel->getActiveSheet()->setCellValue('X' . $j, $value['fstatus']) ->getColumnDimension('X')->setwidth(12); $objPHPExcel->getActiveSheet()->getRowDimension($j)->setRowHeight(30); $j++;$slNo++; $totamt += $value['fee']; $totapp += $value['fcnt']; } // var_dump($totamt);die(); $objPHPExcel->getActiveSheet()->getStyle('A2' . ':X' . $j)->applyFromArray($styleArray); $objPHPExcel->getActiveSheet()->getStyle('A2'.':X' . $j)->getAlignment() ->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_CENTER); $objPHPExcel->getActiveSheet()->getStyle('A2'.':X' . $j)->getAlignment() ->setVertical(PHPExcel_Style_Alignment::VERTICAL_CENTER); $objPHPExcel->getActiveSheet()->getStyle('C2'.':C' . $j)->getAlignment() ->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_LEFT); $objPHPExcel->getActiveSheet()->getStyle('F2'.':F' . $j)->getAlignment() ->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_LEFT); $objPHPExcel->getActiveSheet()->getStyle('U2'.':U' . $j)->getAlignment() ->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_LEFT); $objPHPExcel->getActiveSheet()->getStyle('W2'.':W' . $j)->getAlignment() ->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_LEFT); $objPHPExcel->getActiveSheet()->getStyle('I2'.':I' . $j)->getAlignment() ->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_LEFT); $objPHPExcel->getActiveSheet()->getStyle('T2'.':T' . $j)->getAlignment() ->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_LEFT); $objPHPExcel->getActiveSheet()->getStyle('A3' . ':X' . $j)->getAlignment() ->setVertical(PHPExcel_Style_Alignment::HORIZONTAL_CENTER); // $objPHPExcel->getActiveSheet()->getStyle('A1:X1')->getAlignment() // ->setVertical(PHPExcel_Style_Alignment::VERTICAL_CENTER); $objPHPExcel->getActiveSheet()->getRowDimension($j)->setRowHeight(30); $objPHPExcel->getActiveSheet()->getStyle('A3' . ':X' . $j)->getAlignment() ->setWrapText(true); // $objPHPExcel->getActiveSheet()->setCellValue('G'.$j, moneyFormatIndia($totamt)); // $objPHPExcel->getActiveSheet()->setCellValue('F'.$j, moneyFormatIndia($totapp)); // $objPHPExcel->getActiveSheet()->getStyle('A'.$j.':G'.$j)->getFont()->setBold(true); // $objPHPExcel->getActiveSheet()->getStyle('A'.$j.':G'.$j)->getFont()->setSize(12); // $objPHPExcel->getActiveSheet()->mergeCells('A'.$j.':E'.$j)->setCellValue('A'.$j, 'Total'); // $objPHPExcel->getActiveSheet()->getStyle('G2:G'.$j)->getNumberFormat()->setFormatCode("#,##0"); // $objPHPExcel->getActiveSheet()->getStyle('F'.$j)->getNumberFormat()->setFormatCode("#,##0"); getheaders($objPHPExcel, $fileName); } function teachersList($aobj_context) { $deggrp = $aobj_context->mobj_data["deggrp"]; $fboard = $aobj_context->mobj_data["fboard"]; $fdeggrpfrm = $aobj_context->mobj_data["fdeggrpfrm"]; $fdeggrpto = $aobj_context->mobj_data["fdeggrpto"]; $fboardfrm = $aobj_context->mobj_data["fboardfrm"]; $fboardto = $aobj_context->mobj_data["fboardto"]; $query = "select a.fcollcode, concat(c.fcollname, ', ', c.ftown) as fcollname, a.fteachcode, a.ftitle, a.fteachname, a.fgender, b.fdegndesc, a.fqual, a.fscale,a.ffulltime, a.fpermanent, date_format(a.fdob,'%d/%m/%Y') as fdob,date_format(a.fdoa, '%d/%m/%Y') as fdoa, if(ifnull(FDOJUGC,'-undefined') = '-undefined', '', date_format(FDOJUGC, '%d/%m/%Y')) as FDOJUGC, concat(TIMESTAMPDIFF( YEAR, FDOA, now()), ' Yr., ', TIMESTAMPDIFF( MONTH, FDOA, now()) % 12, ' Mon.') as FEXP, if(ifnull(FDOJUGC,'-undefined') <> '-undefined', concat(TIMESTAMPDIFF(YEAR, FDOJUGC, now()), ' Yr., ', TIMESTAMPDIFF( MONTH, FDOJUGC, now()) % 12, ' Mon.'), '') as FEXPUGC, a.fmobile, a.fphone, a.femail, concat( faddr1, ' \n', faddr2, ' \n', faddr3, ' \n', faddr4 ) as faddress, date_format(a.flogdate, '%d/%m/%Y %h:%i') as fmoddate, a.fremarks, fstatus from masteach a inner join college c on a.fcollcode = c.fcollcode inner join masdegn b on a.fdegncode = b.fdegncode where ifnull(fdeggrp,'') between '{$fdeggrpfrm}' and '{$fdeggrpto}' and fstatus = 'WORKING' and fboard between '{$fboardfrm}' and '{$fboardto}' order by a.fcollcode, a.fteachcode;"; $result = $aobj_context->pobj_db->GetAll($query); // var_dump($result);die(); reportAdmFeeSummary($result, $aobj_context); } function moneyFormatIndia($num) { $explrestunits = ""; if (strlen($num) > 3) { $lastthree = substr($num, strlen($num) - 3, strlen($num)); $restunits = substr($num, 0, strlen($num) - 3); // extracts the last three digits $restunits = (strlen($restunits) % 2 == 1) ? "0" . $restunits : $restunits; // explodes the remaining digits in 2's formats, adds a zero in the beginning to maintain the 2's grouping. $expunit = str_split($restunits, 2); for ($i = 0; $i < sizeof($expunit); $i++) { // creates each of the 2's group and adds a comma to the end if ($i == 0) { $explrestunits .= (int) $expunit[$i] . ","; // if is first value , convert into integer } else { $explrestunits .= $expunit[$i] . ","; } } $thecash = $explrestunits . $lastthree; } else { $thecash = $num; } return $thecash; // writes the final format where $currency is the currency symbol. }
Close