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.147.77.51
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 /
collportal_new /
Reports /
[ HOME SHELL ]
Name
Size
Permission
Action
EGOV_generateBillReport.php
24.08
KB
-rw-r--r--
QPPatternDet.php
10.24
KB
-rw-r--r--
attDateWiseExcelReport.php
4.25
KB
-rw-r--r--
attExcelReportDegwise.php
14.59
KB
-rw-r--r--
attMonthwiseExcelReport.php
7.18
KB
-rw-r--r--
attendanceFromA_B.php
11.95
KB
-rw-r--r--
attendanceReport.php
8.31
KB
-rw-r--r--
cmarksEntryQnWiseNewReport.php
13.15
KB
-rw-r--r--
createclassExcel.php
5.2
KB
-rw-r--r--
degreeListReportpdf.php
18.28
KB
-rw-r--r--
degreeWise_IA_Report.php
1.75
KB
-rw-r--r--
getAbstractForm.php
14.38
KB
-rw-r--r--
getQpSummaryReport.php
15.18
KB
-rw-r--r--
getReportClassStudExcel.php
6.4
KB
-rw-r--r--
getnumword.php
7.45
KB
-rw-r--r--
iaDegwiseReportXl.php
10.61
KB
-rw-r--r--
iaMarksQnWiseReportExcel.php
25.41
KB
-rw-r--r--
marksEntryQnWiseNewReport.php
13.13
KB
-rw-r--r--
omrQpReport.php
28.26
KB
-rw-r--r--
progReportDegwise.php
14.59
KB
-rw-r--r--
remunerationReportPdf.php
17.55
KB
-rw-r--r--
report_attendance_sheet.php
18.6
KB
-rwxr-xr-x
report_batch_wise_details.php
8.39
KB
-rwxr-xr-x
report_batch_worksheet_details...
14.76
KB
-rwxr-xr-x
report_practical_marks_details...
23.64
KB
-rwxr-xr-x
resetPasswordUser.php
2.69
KB
-rw-r--r--
resultSheetReports.php
12.33
KB
-rw-r--r--
subjectListReportpdf.php
8.07
KB
-rw-r--r--
subwiseGradewiseResultReport.p...
19.13
KB
-rw-r--r--
subwiseResultReport.php
70
B
-rw-r--r--
topsheet.php
6.67
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : getReportClassStudExcel.php
<?php $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'); ini_set('max_execution_time', 300); ini_set('memory_limit', '2G'); // 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); // 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_clean(); $objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel5'); $objWriter->save('php://output'); } function getReportClassStud($aobj_context) { $aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC); $teachcode = $aobj_context->mobj_data["teachcode"]; $classid = $aobj_context->mobj_data["clsid"]; $classname = $aobj_context->mobj_data["clsname"]; $type = $aobj_context->mobj_data["type"]; if($type == 'mob'){ $collcode = $_SESSION['collcode']; }else{ $collcode = $aobj_context->mobj_data['collcode']; } $querysub = "select fclassname from attclass where fclassid='{$classid}' and fteachcode='{$teachcode}' and fcollcode='{$collcode}'"; $res = $aobj_context->mobj_db->GetRow($querysub); $classname = $res['fclassname']; $query_reg = "select ifnull(FREGROLL,'')as FREGROLL from control"; $result = $aobj_context->mobj_db->GetRow($query_reg); $regno = $result['FREGROLL']; $usertype = $_SESSION['user_type']; $usr = $_SESSION['usr']; $cnd = ''; if(strtolower($usertype) == 'user') { $cnd = "and a.fteachcode = '{$usr}'"; } $query = "select ifnull(a.fclassid,'') as fclassid ,ifnull(a.fclassid,'') as fclassid, ifnull(a.fregno,'') as fregno,ifnull(s.FNAME,'') as fname from attendsum a inner join student s on a.fregno = s.fregno where a.fcollcode = '{$collcode}' and a.fclassid = '{$classid}' $cnd"; $result = $aobj_context->mobj_db->GetAll($query); $objPHPExcel = new PHPExcel(); $fileName = 'ClassStudentReport'; $objPHPExcel->getProperties()->setCreator("Uniclare") ->setLastModifiedBy("Me")->setTitle("My Excel Sheet") ->setSubject("My Excel Sheet")->setDescription("Excel Sheet") ->setKeywords("Excel Sheet")->setCategory("Me"); $objPHPExcel->setActiveSheetIndex(0); $styleArray = array( 'borders' => array( 'allborders' => array( 'style' => PHPExcel_Style_Border::BORDER_THIN, 'color' => array('argb' => '000000'), ), ), ); $objPHPExcel->getActiveSheet()->getStyle('1:1')->getFont()->setBold(true); $objPHPExcel->getActiveSheet()->getStyle('1:1')->getFont()->setSize(12); $objPHPExcel->getActiveSheet()->getColumnDimension('A1')->setwidth(30); $objPHPExcel->getActiveSheet()->getColumnDimension('D1')->setwidth(15); $objPHPExcel->getActiveSheet()->freezePane('A2'); $objPHPExcel->getActiveSheet()->setCellValue('A1', 'Sl. No.'); $objPHPExcel->getActiveSheet()->setCellValue('B1', 'Class ID') ->setCellValue('C1', 'Class Name') ->setCellValue('D1', $regno) ->setCellValue('E1', 'Student Name'); $objPHPExcel->getActiveSheet()->getStyle('A1:C1')->applyFromArray($styleArray); $objPHPExcel->getActiveSheet()->getColumnDimension('1')->setAutoSize(true); $objPHPExcel->getActiveSheet()->getRowDimension('1')->setRowHeight(40); $objPHPExcel->getActiveSheet()->getStyle('A1:E1')->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_CENTER); $objPHPExcel->getActiveSheet()->getStyle('A1:E1')->getAlignment()->setVertical(PHPExcel_Style_Alignment::VERTICAL_CENTER); foreach ($result as $key => $value) { $slNo = $key + 2; $objPHPExcel->getActiveSheet()->setCellValue('A' . $slNo, $slNo - 1)->getColumnDimension('A')->setwidth(6.63); $objPHPExcel->getActiveSheet()->setCellValue('B' . $slNo, $value['fclassid'])->getColumnDimension('B')->setwidth(15); $objPHPExcel->getActiveSheet()->setCellValue('C' . $slNo, $classname)->getColumnDimension('C')->setwidth(30); $objPHPExcel->getActiveSheet()->setCellValue('D' . $slNo, $value['fregno'])->getColumnDimension('D')->setwidth(15); $objPHPExcel->getActiveSheet()->setCellValue('E' . $slNo, $value['fname'])->getColumnDimension('E')->setwidth(40); $objPHPExcel->getActiveSheet()->getStyle('A' . $slNo . ':E'. $slNo)->applyFromArray($styleArray); $objPHPExcel->getActiveSheet()->getStyle('A' . $slNo . ':B' . $slNo)->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_CENTER); $objPHPExcel->getActiveSheet()->getStyle('D' . $slNo . ':D' . $slNo)->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_CENTER); $objPHPExcel->getActiveSheet()->getStyle('C' . $slNo . ':C' . $slNo)->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_LEFT); $objPHPExcel->getActiveSheet()->getRowDimension($slNo)->setRowHeight(25); } getheaders($objPHPExcel, $fileName); } ?>
Close