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.237.52
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 /
sdu /
src /
[ HOME SHELL ]
Name
Size
Permission
Action
system
[ DIR ]
drwxr-xr-x
Dispatch_ans_script_setup.php
5.84
KB
-rwxr-xr-x
Dispatch_ans_script_setup_qp.p...
5.18
KB
-rwxr-xr-x
DownloadExamAppFormApplication...
5.12
KB
-rwxr-xr-x
FormulaEvaluate.php
14.15
KB
-rwxr-xr-x
MarkEntry-Setup.php
24.41
KB
-rwxr-xr-x
MarkEntry-Setup22.php
21.76
KB
-rwxr-xr-x
MarkEntry-SetupTEST.php
21.01
KB
-rwxr-xr-x
TAGMAY2013.pdf
331.03
KB
-rwxr-xr-x
TarkaFormatStyles.php
15.37
KB
-rwxr-xr-x
TarkaFormatStyles_old.php
3.71
KB
-rwxr-xr-x
absent_entry_setup.php
8.13
KB
-rwxr-xr-x
absent_entry_setupQp.php
7.25
KB
-rwxr-xr-x
absent_entry_setupQpold.php
7.03
KB
-rwxr-xr-x
absententrysubjectwiseQP.js
16.34
KB
-rwxr-xr-x
ack_exam_app_form.php
15.86
KB
-rwxr-xr-x
ack_exam_app_form_bulk.php
12.58
KB
-rwxr-xr-x
ack_exam_app_form_oldformat.ph...
12.53
KB
-rwxr-xr-x
ack_rv_rt_application.php
8.52
KB
-rwxr-xr-x
ack_rv_rt_application_before_l...
6.02
KB
-rwxr-xr-x
actClass.php
6.21
KB
-rwxr-xr-x
admapprove.php
9.24
KB
-rwxr-xr-x
admission_entry_status.php
2.73
KB
-rwxr-xr-x
admissionapplist.php
9.9
KB
-rwxr-xr-x
ansbookcancel.php
9.49
KB
-rwxr-xr-x
answer_book_issued.php
10.34
KB
-rwxr-xr-x
approve.php
23.86
KB
-rwxr-xr-x
attendance.php
10.23
KB
-rwxr-xr-x
attendance_freez.php
8.45
KB
-rwxr-xr-x
attendance_freez_mth.php
8.24
KB
-rwxr-xr-x
attendance_freez_old.php
8.55
KB
-rwxr-xr-x
attshort.php
6.29
KB
-rwxr-xr-x
auto-complete.php
4.89
KB
-rwxr-xr-x
backup.js
2.73
KB
-rwxr-xr-x
backup.php
2.74
KB
-rwxr-xr-x
backup_restore.php
8.14
KB
-rwxr-xr-x
backupandrestore.php
10.18
KB
-rwxr-xr-x
basic_old.css
13.33
KB
-rwxr-xr-x
batch_close.php
4.31
KB
-rwxr-xr-x
boeselection.php
1.64
KB
-rwxr-xr-x
bundle_dispatch.php
2.93
KB
-rwxr-xr-x
bundlereceive.php
1.08
KB
-rwxr-xr-x
bundlestatus.php
5.3
KB
-rwxr-xr-x
cManualMailer.php
2.54
KB
-rwxr-xr-x
caccesscontext.php
1.24
KB
-rwxr-xr-x
candidate-entry.php
45.51
KB
-rwxr-xr-x
candidate-entry_new.php
42.85
KB
-rwxr-xr-x
candidate-entry_without_iapr_i...
34.88
KB
-rwxr-xr-x
candidate-entrybefore yearexam...
34.55
KB
-rwxr-xr-x
candidate-entrykus.php
33.23
KB
-rwxr-xr-x
candidate-entrynewformat.php
44.16
KB
-rwxr-xr-x
candidate-entryold.php
34.55
KB
-rwxr-xr-x
candidate_list.js
39.62
KB
-rwxr-xr-x
cappcontext.php
2.64
KB
-rwxr-xr-x
cconfig_wait.php
1.12
KB
-rwxr-xr-x
challan_entries.php
15.41
KB
-rwxr-xr-x
challan_preparation.php
11.69
KB
-rwxr-xr-x
cmailer.php
6.83
KB
-rwxr-xr-x
colldesp_ack.php
4
KB
-rwxr-xr-x
college.php
4.61
KB
-rwxr-xr-x
college_BEFORE_LOGINPOPUP.php
3.5
KB
-rwxr-xr-x
college_approve.php
5.61
KB
-rwxr-xr-x
college_degree_status.php
5.65
KB
-rwxr-xr-x
connect.php
2.11
KB
-rwxr-xr-x
convdet.php
8.02
KB
-rwxr-xr-x
coutput.php
1.75
KB
-rwxr-xr-x
create_all_grid_files.php
8.57
KB
-rwxr-xr-x
create_all_grid_group_files.ph...
9.94
KB
-rwxr-xr-x
create_all_grid_group_files_ol...
9.61
KB
-rwxr-xr-x
create_all_popup_files.php
5.93
KB
-rwxr-xr-x
create_all_schema_files.php
4.31
KB
-rwxr-xr-x
create_all_views.php
16.52
KB
-rwxr-xr-x
create_html_files.php
52.03
KB
-rwxr-xr-x
create_html_files_without_tab....
44.49
KB
-rwxr-xr-x
create_module_meta_columns.php
5.16
KB
-rwxr-xr-x
crequestbroker.php
2.49
KB
-rwxr-xr-x
csessions.php
514
B
-rwxr-xr-x
cuser.php
3.41
KB
-rwxr-xr-x
custom_mregistry.php
122
B
-rwxr-xr-x
datadictionary.php
3.96
KB
-rwxr-xr-x
daterange.php
7.36
KB
-rwxr-xr-x
degree.php
6.49
KB
-rwxr-xr-x
display_details_in_grid.php
105.86
KB
-rwxr-xr-x
display_details_in_grid22.php
104.95
KB
-rwxr-xr-x
display_details_in_grid_custom...
2.6
KB
-rwxr-xr-x
display_details_in_grid_studta...
96.56
KB
-rwxr-xr-x
display_details_in_grid_withde...
97.45
KB
-rwxr-xr-x
display_details_in_gridold.php
102.19
KB
-rwxr-xr-x
doc_verify.php
6.99
KB
-rwxr-xr-x
downloadFeeStatement.php
5.32
KB
-rwxr-xr-x
download_misc_files.php
4.59
KB
-rwxr-xr-x
download_misc_files_old.php
4.3
KB
-rwxr-xr-x
download_photo.php
3.54
KB
-rwxr-xr-x
download_photo22.php
6.83
KB
-rwxr-xr-x
download_photo_new.php
4.82
KB
-rwxr-xr-x
download_photo_sikkim.php
5.07
KB
-rwxr-xr-x
download_photoold.php
3.58
KB
-rwxr-xr-x
download_upload.php
3.86
KB
-rwxr-xr-x
dynamicmastersdetails.php
117.45
KB
-rwxr-xr-x
dynamicmastersdetails_one.php
119.36
KB
-rwxr-xr-x
entryexitevents.php
3.09
KB
-rwxr-xr-x
execute_query.php
2.5
KB
-rwxr-xr-x
export_import_setup.php
7.62
KB
-rwxr-xr-x
export_import_utility.php
2.67
KB
-rwxr-xr-x
format.php
7.43
KB
-rwxr-xr-x
freeze_Ad_Cl_Me.php
6.63
KB
-rwxr-xr-x
freeze_module_at_admin_college...
9.74
KB
-rwxr-xr-x
freeze_module_at_admin_college...
7.76
KB
-rwxr-xr-x
freeze_module_at_admin_college...
7.81
KB
-rwxr-xr-x
freeze_module_at_university_co...
7.45
KB
-rwxr-xr-x
general_report_format.php
11
KB
-rwxr-xr-x
getAutoCompleteFromFrameWork.p...
2.97
KB
-rwxr-xr-x
getdata.php
35.88
KB
-rwxr-xr-x
getdata22.php
32.91
KB
-rwxr-xr-x
getdataold.php
28.7
KB
-rwxr-xr-x
getfeeinformation.php
7.03
KB
-rwxr-xr-x
getmoduledetails.php
23.59
KB
-rwxr-xr-x
getnumword.php
7.43
KB
-rwxr-xr-x
getreportdetails.php
3.21
KB
-rwxr-xr-x
getreportfilefordisplay.php
1.37
KB
-rwxr-xr-x
getsearchcondition.php
1.3
KB
-rwxr-xr-x
ggridmodel.php
9.27
KB
-rwxr-xr-x
golden_palm_payslip.php
12.48
KB
-rwxr-xr-x
helptext.php
5.38
KB
-rwxr-xr-x
hidden.php
239.01
KB
-rwxr-xr-x
identify_transactions.php
6.4
KB
-rwxr-xr-x
import_marks.php
4.11
KB
-rwxr-xr-x
index.php
5.06
KB
-rwxr-xr-x
json.php
33.22
KB
-rwxr-xr-x
krvw.html
1.5
KB
-rwxr-xr-x
login.php
10.94
KB
-rwxr-xr-x
login_BEFORE_LOGINPOPUP.php
3.25
KB
-rwxr-xr-x
login_old.php
3.15
KB
-rwxr-xr-x
mascomb.php
10.02
KB
-rwxr-xr-x
mcverifydet.php
14.26
KB
-rwxr-xr-x
message_board.php
4.7
KB
-rwxr-xr-x
messagetext.php
980
B
-rwxr-xr-x
module_setup.php
2.48
KB
-rwxr-xr-x
mregistry.php
90.13
KB
-rwxr-xr-x
mregistry_09012020.php
73.81
KB
-rwxr-xr-x
mregistry_beforedownload.php
53.04
KB
-rwxr-xr-x
mrn_approval.php
9
KB
-rwxr-xr-x
payment_gateway.php
7.78
KB
-rwxr-xr-x
pclzip.lib.php
192.53
KB
-rwxr-xr-x
photoupload.php
9.28
KB
-rwxr-xr-x
printexamform.php
11.54
KB
-rwxr-xr-x
receive_rv_rt_application.php
8.57
KB
-rwxr-xr-x
report_admission_ticket.php
46.77
KB
-rwxr-xr-x
report_iamarks_pending.php
12.04
KB
-rwxr-xr-x
report_marks_entry_subwise_lis...
11.84
KB
-rwxr-xr-x
report_setup.php
25.12
KB
-rwxr-xr-x
report_tool.php
73.03
KB
-rwxr-xr-x
result.php
5.06
KB
-rwxr-xr-x
revaluation.php
16.66
KB
-rwxr-xr-x
revaluation_oldtype.php
8.45
KB
-rwxr-xr-x
revaluation_withdegree.php
16.77
KB
-rwxr-xr-x
room_allotment.php
15.43
KB
-rwxr-xr-x
room_allotment_datewise.php
15.59
KB
-rwxr-xr-x
room_allotment_datewise_090120...
15.37
KB
-rwxr-xr-x
room_allotmentnew.php
9.24
KB
-rwxr-xr-x
room_allotmentold.php
15.27
KB
-rwxr-xr-x
roomdeclaration.php
1.77
KB
-rwxr-xr-x
rvdates.php
6.46
KB
-rwxr-xr-x
sendLoginPassword.php
3.09
KB
-rwxr-xr-x
serchbygrid.php
822
B
-rwxr-xr-x
servfeehead.php
3.84
KB
-rwxr-xr-x
services.php
3.47
KB
-rwxr-xr-x
sfeehead.php
5.45
KB
-rwxr-xr-x
stringspliter.php
693
B
-rwxr-xr-x
student.php
43.89
KB
-rwxr-xr-x
student_entry.php
45.88
KB
-rwxr-xr-x
student_entry24.php
56.54
KB
-rwxr-xr-x
student_entry_24112017.php
42.7
KB
-rwxr-xr-x
student_entryold.php
30.33
KB
-rwxr-xr-x
subjectList_display.php
11.05
KB
-rwxr-xr-x
subject_freshExam.php
18.98
KB
-rwxr-xr-x
subjectfreez.php
13.16
KB
-rwxr-xr-x
subjectwise_freezing_sectionwi...
9.95
KB
-rwxr-xr-x
subshort.php
5.83
KB
-rwxr-xr-x
system_utility.php
1.84
KB
-rwxr-xr-x
systemsetup.php
79.94
KB
-rwxr-xr-x
teachers.php
16.85
KB
-rwxr-xr-x
teachersOLD.php
10.33
KB
-rwxr-xr-x
teachersnew.php
16.83
KB
-rwxr-xr-x
transaction-series.php
4.86
KB
-rwxr-xr-x
updateSection.php
4.79
KB
-rwxr-xr-x
update_defined_flag.php
3.41
KB
-rwxr-xr-x
updateexamcnt.php
2.92
KB
-rwxr-xr-x
upload_studentPhoto.php
10.06
KB
-rwxr-xr-x
upload_studentPhoto_before_dow...
8.02
KB
-rwxr-xr-x
uploadmoduledetails.php
39.65
KB
-rwxr-xr-x
uploadzip.php
8.46
KB
-rwxr-xr-x
usersetup.php
25.06
KB
-rwxr-xr-x
usersetupold.php
24.36
KB
-rwxr-xr-x
usersubj_identification.php
4.88
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : report_admission_ticket.php
<?php class AdmissionTicket { public $aobj_context; public $degree_code; public $registor_no_starts; public $registor_no_ends; public $print_per_page; public $sub_appearing_count; public $std_adm_count; public $sub_arr; public $std_arr; // university public $std_FUNIVNAME ; public $std_FUNIVCODE ; public $std_FTOWN; // college info public $college_code; public $college_name; public $college_address; // student info public $STD_RegNo; public $STD_CollCode; public $STD_Course; public $STD_Name; public $STD_FAT; public $STD_MAT; public $STD_DOB; public $CollDetails; public $ADMNUM; public $bth_flag; public $FUNIVCODE; function __construct($aobj_context) { $this->aobj_context=$aobj_context; $aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC); session_start(); $this->college_code = $_SESSION['collcode']; $bth_flag=0; $main_src_obj=(explode("/",$_SERVER["REQUEST_URI"])); $this->main_src=$main_src_obj[1]; } function getUniversityDetails() { $page_header_university = "select FUNIVNAME,FTOWN,FHTTEXT,FUNIVADD1 from control"; $lobj_page_header_university = $this->aobj_context->mobj_db->GetRow($page_header_university); $this->std_FUNIVNAME = $lobj_page_header_university[FUNIVNAME]; $this->std_FTOWN = $lobj_page_header_university[FTOWN]; $this->std_FHTTEXT = $lobj_page_header_university[FHTTEXT]; $this->std_FUNIVADD1 = $lobj_page_header_university[FUNIVADD1]; //var_dump($this->std_FHTTEXT); } function getCollegeDetails() { $page_header_college = "select c.FCOLLCODE, c.FCOLLNAME, c.FEXAMCNTR, ec.FCOLLNAME AS exam_center_name, CONCAT(c.FCOLLADD1,SPACE(2), c.FTOWN,'\n',c.FEXAMCNTR) AS COLLEGE_ADRS FROM college c LEFT JOIN college ec ON ec.FCOLLCODE=c.FEXAMCNTR WHERE c.FCOLLCODE='{$this->college_code}'"; $lobj_page_header_college = $this->aobj_context->mobj_db->GetRow($page_header_college); $this->college_code = $lobj_page_header_college['FCOLLCODE']; $this->FEXAMCNTR = $lobj_page_header_college['FEXAMCNTR']; $this->exam_center_name = $lobj_page_header_college['exam_center_name']; $this->college_name = $lobj_page_header_college['FCOLLNAME']; $this->college_address = $lobj_page_header_college['COLLEGE_ADRS']; } function getStudentDetails() { session_start(); $FUNIVCODE = $_SESSION['FUNIVCODE']; if($FUNIVCODE == '008') { $fyear = "1=1"; }else { $fyear = "D.fmeyear = cs.fyear"; } $get_student_data = "SELECT distinct S.FDEGREE,S.FREGNO,S.FCOLLCODE,ifnull(S.FPHOTOPATH,'') as photo_path, concat(left(col.FCOLLNAME,100),',',space(1), left(col.FTOWN,100)) as CollDetails , concat(ec.FCOLLNAME,', ',ec.ftown) AS exam_center_name,col.FCOLLNAME as FCOLLNAME, cs.FCNTRCODE AS FEXAMCNTR,col.FCOLLCODE,CONCAT(D.FDESCPN) AS COURSE, D.FEXAMDATE, S.FNAME,S.FFATNAME,S.FMOTNAME,S.fstudid,DATE_FORMAT(S.FDOB,'%d/%m/%Y') AS FDOB FROM student S INNER JOIN degree D ON S.FDEGREE=D.FDEGREE INNER JOIN college col ON S.FCOLLCODE=col.FCOLLCODE INNER join candsum cs on S.fdegree = cs.fdegree and S.fregno = cs.fregno LEFT JOIN college ec ON ec.FCOLLCODE=cs.FCNTRCODE INNER join colldeg on colldeg.fdegree = cs.fdegree and colldeg.fcollcode = cs.fcollcode WHERE S.FREGNO>='{$this->registor_no_starts}' AND S.FREGNO<='{$this->registor_no_ends}' AND S.FDEGREE='{$this->degree_code}' and cs.FCOLLCODE='{$this->college_code}' and cs.frecptdate is not null and ifnull(S.fexamappblk,'') <> 'T' and ifnull(S.fmp,'') <> 'T' and {$fyear} and left(D.fmeexamtyp,1) = left(cs.fexamtype,1) order by S.FREGNO"; //var_dump($get_student_data); $lobj_get_student_data = $this->aobj_context->mobj_db->GetAll($get_student_data); $this->std_adm_count = count($lobj_get_student_data); //var_dump($get_student_data); $query = "select distinct r.FDESCPN from degree d,reason r where r.FREASONCD = d.FFACULTY and d.FDEGREE='{$this->degree_code}'"; $this->result = $this->aobj_context->mobj_db->GetRow($query); $this->FFACULTY = $this->result['FDESCPN']; foreach($lobj_get_student_data as $rek=>$rev) { $full_photo_path=""; $full_photo_path = trim($this->aobj_context->main_src."/".$rev['photo_path']); if($this->rptype == 'wp') { if(file_exists($full_photo_path) && !empty($rev['photo_path'])) { $this->std_arr[$rev['FREGNO']]['FREGNO'] = $rev['FREGNO']; $this->std_arr[$rev['FREGNO']]['FCOLLCODE'] = $rev['FCOLLCODE']; $this->std_arr[$rev['FREGNO']]['FCOLLCODE'] = $rev['FCOLLCODE']; $this->std_arr[$rev['FREGNO']]['COURSE'] = $rev['COURSE']; $this->std_arr[$rev['FREGNO']]['FNAME'] = $rev['FNAME']; $this->std_arr[$rev['FREGNO']]['FFATNAME'] = $rev['FFATNAME']; $this->std_arr[$rev['FREGNO']]['FMOTNAME'] = $rev['FMOTNAME']; $this->std_arr[$rev['FREGNO']]['FDOB'] = $rev['FDOB']; $this->std_arr[$rev['FREGNO']]['EXAMDATE'] = $rev['FEXAMDATE']; $this->std_arr[$rev['FREGNO']]['FCOLLNAME'] = $rev['FCOLLNAME']; $this->std_arr[$rev['FREGNO']]['CollDetails'] = $rev['CollDetails']; $this->std_arr[$rev['FREGNO']]['photo_path'] = $rev['photo_path']; $this->std_arr[$rev['FREGNO']]['fstudid'] = $rev['fstudid']; $this->std_arr[$rev['FREGNO']]['FEXAMCNTR'] = $rev['FEXAMCNTR']; $this->std_arr[$rev['FREGNO']]['exam_center_name'] = $rev['exam_center_name']; } } else if($this->rptype == 'wop') { if(!file_exists($full_photo_path)) { $this->std_arr[$rev['FREGNO']]['FREGNO'] = $rev['FREGNO']; $this->std_arr[$rev['FREGNO']]['FCOLLCODE'] = $rev['FCOLLCODE']; $this->std_arr[$rev['FREGNO']]['FCOLLCODE'] = $rev['FCOLLCODE']; $this->std_arr[$rev['FREGNO']]['COURSE'] = $rev['COURSE']; $this->std_arr[$rev['FREGNO']]['FNAME'] = $rev['FNAME']; $this->std_arr[$rev['FREGNO']]['FFATNAME'] = $rev['FFATNAME']; $this->std_arr[$rev['FREGNO']]['FMOTNAME'] = $rev['FMOTNAME']; $this->std_arr[$rev['FREGNO']]['FDOB'] = $rev['FDOB']; $this->std_arr[$rev['FREGNO']]['EXAMDATE'] = $rev['FEXAMDATE']; $this->std_arr[$rev['FREGNO']]['FCOLLNAME'] = $rev['FCOLLNAME']; $this->std_arr[$rev['FREGNO']]['CollDetails'] = $rev['CollDetails']; $this->std_arr[$rev['FREGNO']]['photo_path'] = $rev['photo_path']; $this->std_arr[$rev['FREGNO']]['fstudid'] = $rev['fstudid']; $this->std_arr[$rev['FREGNO']]['FEXAMCNTR'] = $rev['FEXAMCNTR']; $this->std_arr[$rev['FREGNO']]['exam_center_name'] = $rev['exam_center_name']; } } else { $this->std_arr[$rev['FREGNO']]['FREGNO'] = $rev['FREGNO']; $this->std_arr[$rev['FREGNO']]['FCOLLCODE'] = $rev['FCOLLCODE']; $this->std_arr[$rev['FREGNO']]['FCOLLCODE'] = $rev['FCOLLCODE']; $this->std_arr[$rev['FREGNO']]['COURSE'] = $rev['COURSE']; $this->std_arr[$rev['FREGNO']]['FNAME'] = $rev['FNAME']; $this->std_arr[$rev['FREGNO']]['FFATNAME'] = $rev['FFATNAME']; $this->std_arr[$rev['FREGNO']]['FMOTNAME'] = $rev['FMOTNAME']; $this->std_arr[$rev['FREGNO']]['FDOB'] = $rev['FDOB']; $this->std_arr[$rev['FREGNO']]['EXAMDATE'] = $rev['FEXAMDATE']; $this->std_arr[$rev['FREGNO']]['FCOLLNAME'] = $rev['FCOLLNAME']; $this->std_arr[$rev['FREGNO']]['CollDetails'] = $rev['CollDetails']; $this->std_arr[$rev['FREGNO']]['photo_path'] = $rev['photo_path']; $this->std_arr[$rev['FREGNO']]['fstudid'] = $rev['fstudid']; $this->std_arr[$rev['FREGNO']]['FEXAMCNTR'] = $rev['FEXAMCNTR']; $this->std_arr[$rev['FREGNO']]['exam_center_name'] = $rev['exam_center_name']; $this->std_arr[$rev['FREGNO']]['FFACULTY'] = $this->FFACULTY; } } } function getSubjectAppearing() //date_format(FDOE,'%d/%m/%Y') { session_start(); $FUNIVCODE = $_SESSION['FUNIVCODE']; /* if($FUNIVCODE == '008') { $present = "1=1"; }else { $present = "c.fpresent = 'P'"; } */ if($FUNIVCODE == '026') { $order = "ORDER BY s.FTHEORY desc, s.FCSUBCODE"; } else { $order = "ORDER BY s.FTHEORY desc,s.FDOE, s.FSESSION,d.FEXAMNO"; } //var_dump($query); /* if() { 2236 d 5 bba } */ if($FUNIVCODE == '029') { $sub = "GROUP_CONCAT(c.FEXAMNO,'->',s.FCSUBCODE ,'->',s.FSUBNAME,' ',s.FSSUBNAME,'->', s.FSHORTNAME,'->',if(s.fcsubcode = a.fsubcode,a.fremarks,''),'->', concat(if(date_format(FDOE,'%d/%m/%Y')!='00/00/0000', date_format(FDOE,'%d/%m/%Y'),''),'',ifnull(rs.fdescpn,''),'->',FQPCODE) ORDER BY s.FTHEORY desc,s.FCSUBCODE SEPARATOR '~')"; $subsidary = " and ifnull(s.FSUBSIDARY,'') <> 'T'"; //$subsidary = " "; }else { $sub = "GROUP_CONCAT(c.FEXAMNO,'->',s.FCSUBCODE ,'->',s.FSUBNAME,' ',concat('[',s.FSSUBNAME,']'),'->',if(s.fcsubcode = a.fsubcode,a.fremarks,''),'->', s.FSHORTNAME,'->',concat(if(date_format(FDOE,'%d/%m/%Y')!='00/00/0000', date_format(FDOE,'%d/%m/%Y'),''),' - ',ifnull(rs.fdescpn,''),'->',if('{$FUNIVCODE}' = '018',FSUBSHORT,FQPCODE)) {$order} SEPARATOR '~')"; $subsidary = ""; } $get_subject_appearing = "SELECT c.FDEGREE, cs.FREGNO AS FREGNO , GROUP_CONCAT(d.FEXAMNAME ORDER BY s.FTHEORY desc, s.FDOE, s.FSESSION,d.FEXAMNO) EXAMNAME,a.FREMARKS, GROUP_CONCAT(c.FEXAMNO ORDER BY c.FEXAMNO,c.FSUBCODE) FEXAMNO, c.FREGNO, {$sub} AS SUBCODE , GROUP_CONCAT(ifnull(s.FSUBNAME,''),' ',ifnull(s.FSSUBNAME,''), ' [',ifnull(FSUBSHORT,''),']' ORDER BY s.FCSUBCODE) AS SUBDECPN, ifnull(FRECPTDATE,'') as receipt_date FROM canddet c INNER JOIN subject s ON c.FDEGREE=s.FDEGREE AND c.FEXAMNO=s.FEXAMNO AND c.FSUBCODE=s.FSUBCODE AND s.FINTASS!='T' AND INSTR(ifnull(c.fthpr,''), s.ftheory) <= 0 left outer join reason rs on s.fsession = rs.freasoncd inner join degree d on c.FDEGREE= d.FDEGREE AND c.FEXAMNO=d.FEXAMNO and d.FADYEAR=c.FYEAR and left(d.FADEXAMTYP,1)=left(c.FEXAMTYPE,1) inner join candsum cs on cs.FDEGREE=c.FDEGREE AND cs.FREGNO=c.FREGNO AND cs.FCOLLCODE=c.FCOLLCODE left join attshort a on a.fregno = c.fregno and s.fcsubcode = a.fsubcode AND c.FYEAR=cs.FYEAR and left(c.FEXAMTYPE,1)=left(cs.FEXAMTYPE,1) WHERE c.FDEGREE='{$this->degree_code}' AND c.FCOLLCODE='{$this->college_code}' AND ifnull(c.FPASSMTH,'') = '' AND c.fpresent = 'P' and c.FREGNO >= '{$this->registor_no_starts}' AND c.FREGNO <='{$this->registor_no_ends}' and cs.frecptdate is not null is not null {$subsidary} GROUP BY c.FREGNO, c.FDEGREE"; //var_dump($get_subject_appearing); $this->aobj_context->mobj_db->execute("SET @@session.group_concat_max_len=100000"); $this->lobj_get_subject_appearing = $this->aobj_context->mobj_db->GetAll($get_subject_appearing); $this->receipt_date_arr=array(); foreach($this->lobj_get_subject_appearing as $suk=>$suv) { //var_dump($suv['SUBCODE']); $this->std_arr[$suv[FREGNO]]['SUBCODE']=$suv['SUBCODE']; $this->std_arr[$suv[FREGNO]]['FEXAMNO']=$suv['FEXAMNO']; $this->std_arr[$suv[FREGNO]]['EXAMNAME']=$suv['EXAMNAME']; $this->std_arr[$suv[FREGNO]]['FREMARKS']=$suv['FREMARKS']; if(!empty($suv['receipt_date'])) $this->receipt_date_arr[$suv[FREGNO]]=$suv['receipt_date']; } } } function generateAdmissionTicket($aobj_context) { include_once("stringspliter.php"); session_start(); $FUNIVCODE = $_SESSION['FUNIVCODE']; $class_obj=new AdmissionTicket($aobj_context); ini_set("memory_limit",-1); ini_set('max_execution_time',3300); $class_obj->degree_code = $aobj_context->mobj_data["degree_code"]; if(preg_match('[^BTH]', $class_obj->degree_code)) $class_obj->bth_flag=1; $class_obj->registor_no_starts= $aobj_context->mobj_data["reg_starts"]; $class_obj->registor_no_ends= $aobj_context->mobj_data["reg_ends"]; $class_obj->rptype = $aobj_context->mobj_data["rptype"]; /* $main_src_obj=(explode("/",$_SERVER["REQUEST_URI"])); $main_src=$main_src_obj[1]; $pdf_reader_class=$aobj_context->main_src."/maya-pdf/fpdi/FPDI_Protection.php"; $pdf_psw_function=$aobj_context->main_src."/maya-pdf/TarkaPDFEncryption.php"; $pdf_writer_class=$aobj_context->main_src."/maya-pdf/fpdf.php"; $root_pdf_file_download=$aobj_context->main_src."/Report_details/output/report_adm_ticket.pdf"; */ $main_src=substr($_SERVER['SCRIPT_FILENAME'],0,strlen($_SERVER['SCRIPT_FILENAME'])-7); $pdf_writer_class =$main_src."/tcpdf/tcpdf.php"; //$pdf_writer_class =$main_src."/tarka_pdf/fpdf.php"; include_once("stringspliter.php"); require_once($pdf_writer_class); //include($pdf_writer_class); //$pdf= new FPDF(); $pdf= new TCPDF();; $pdf->SetMargins(9,3,15); $pdf->aobj_context =$aobj_context ; $pdf->WhichReport = 'AdmissionTicket'; $pdf->SetFillColor(248, 248 ,255); $pdf->SetFont('Times','',10); $pdf->AddPage(); $pdf->SetMargins(9,3,15); if($FUNIVCODE != '027') $pdf->Rect(2,05,200,280,'D'); $adm_details=$class_obj->getUniversityDetails(); $adm_details=$class_obj->getCollegeDetails(); $adm_details=$class_obj->getStudentDetails(); $adm_details=$class_obj->getSubjectAppearing(); $page_cnt=1; foreach($class_obj->std_arr as $reg_k=>$reg_v) { $curexamtitle = ''; if($FUNIVCODE != '008') { if(!array_key_exists($reg_v['FREGNO'],$class_obj->receipt_date_arr)) continue; } //for gcm edited on 15/11/2016 for no photo /with photo $full_photo_path=""; $full_photo_path=trim($aobj_context->main_src."/".$reg_v[photo_path]); if($FUNIVCODE == '027') $funivname = $class_obj->std_FUNIVNAME.', '.$class_obj->std_FTOWN; else $funivname = $class_obj->std_FUNIVNAME; if($FUNIVCODE != '030' && $FUNIVCODE != '031') { $pdf->Ln(2); $pdf->SetLineWidth(0.01); $pdf->SetFont('Times','B',14); $img_path = $aobj_context->main_src."/img/report_uni_logo.jpg"; if(file_exists($img_path)) $pdf->Image($img_path,10,6,25); $pdf->Ln(1); if($FUNIVCODE == '003D') { $pdf->Cell(0,4,'KUVEMPU UNIVERSITY',0,1,'C'); $pdf->Ln(2); $pdf->SetFont('Times','B',10); $pdf->Cell(0,4,'Distance Education' ,'0',1,'C'); $pdf->Ln(1); }else $pdf->Cell(0,4,$funivname,0,1,'C'); $pdf->SetFont('Times','B',9); if( $FUNIVCODE == '005' || $FUNIVCODE == '034'|| $FUNIVCODE == '017' || $FUNIVCODE == '035' || $FUNIVCODE == '011'|| $FUNIVCODE == '037' || $FUNIVCODE == '036') $pdf->Cell(0,4,$class_obj->std_FUNIVADD1,0,1,'C'); } if($FUNIVCODE == '030' || $FUNIVCODE == '031') { $pdf->SetLineWidth(0.01); //$pdf->Ln(5); $img_path=$aobj_context->main_src."/img/report_uni_logo.jpg"; if($FUNIVCODE == '030') { if(file_exists($img_path)) $pdf->Image($img_path,70,3,52); } else { if(file_exists($img_path)) $pdf->Image($img_path,65,4,75); } $pdf->SetFont('Times','',12); $pdf->Ln(11); $pdf->SetFont('Times','',12); if($FUNIVCODE == '030') $pdf->Cell(0,4,'Rukmini Knowledge Park, Kattigenahalli, Yelahanka, Bengaluru-560 064',0,1,'C'); $pdf->SetFont('Times','',8); $pdf->Cell(0,4,'' ,'0',1,'C'); $pdf->SetFont('Times','B',14); $pdf->Ln(1); $pdf->Cell(0,5,'ADMISSION TICKET ' ,'0',1,'C'); $pdf->SetFont('Times','B',10); } else { if($FUNIVCODE == '003' || $FUNIVCODE == '003U' || $FUNIVCODE == '003D' || $FUNIVCODE == '034'|| $FUNIVCODE == '017' || $FUNIVCODE == '035' || $FUNIVCODE == '011'|| $FUNIVCODE == '037' || $FUNIVCODE == '036') { $pdf->SetFont('Times','B',10); $pdf->Cell(0,5,'ADMISSION TICKET ' ,'0',1,'C'); } else $pdf->Cell(0,5,'HALL TICKET ' ,'0',1,'C'); } $pdf->SetFont('Times','',10); $pdf->Cell(0,5,$reg_v['EXAMDATE'].' EXAMINATION ' ,'0',1,'C'); $pdf->SetFont('Times','',10); $pdf->Ln(3); $width = 124; //////////////////////////////////// $nb =0; $pdf->SetFont('Times','',8); $value = $reg_v['FCOLLCODE']." - ".$reg_v['CollDetails']; $nb=max($nb,NbLines(50,$value,'')); $yH = 7*$nb; if(file_exists($full_photo_path) && !empty($reg_v[photo_path])) { $pdf->Image($full_photo_path,165,30,30,32); } /* else if($FUNIVCODE == '017') { continue; } */ else { $pdf->Image($aobj_context->main_src."/img/nophotoborder.jpg",165.5,31,27,28); } $pdf->Ln(2); if($FUNIVCODE == '027') { $pdf->SetFont('Times','B',10); $pdf->Cell(27,6,' Course',1,0,'L'); //$pdf->Cell(3,6,' : ',0,0,'L'); $pdf->SetFont('Times','',9); $pdf->Cell(128.5,6,''.$reg_v['COURSE'],1,0,'L'); $pdf->Cell(28.5,6,'','TR',1,'L'); $pdf->SetFont('Times','B',9); $pdf->Cell(27,6,' Reg. No.',1,0,'L'); $pdf->SetFont('Times','',9); $pdf->Cell(46,6,$reg_v['FREGNO'],1,0,'L'); $pdf->SetFont('Times','B',9); $pdf->Cell(40,6,"Student Id.",1,0,'R'); $pdf->SetFont('Times','',9); $pdf->Cell(42.5,6,$reg_v['fstudid'],1,0,'L'); $pdf->Cell(28.5,6,'','R',1,'L'); $pdf->SetFont('Times','B',9); $pdf->Cell(27,6," Student Name",1,0,'L'); $pdf->SetFont('Times','',9); $pdf->Cell(128.5,6,''.$reg_v['FNAME'],1,0,'L'); $pdf->Cell(28.5,6,'','R',1,'L'); $pdf->SetFont('Times','B',9); $pdf->Cell(27,6," Father's Name",1,0,'L'); $pdf->SetFont('Times','',9); $pdf->Cell(128.5,6,''.$reg_v['FFATNAME'],1,0,'L'); $pdf->Cell(28.5,6,'','R',1,'L'); $pdf->SetFont('Times','B',9); $pdf->Cell(27,6," Mother's Name",1,0,'L'); $pdf->SetFont('Times','',9); $pdf->Cell(128.5,6,''.$reg_v['FMOTNAME'],1,0,'L'); $pdf->Cell(28.5,6,'','R',1,'L'); $pdf->SetFont('Times','B',9); $pdf->Cell(27,8,' College',1,0,'L'); $pdf->SetFont('Times','',9); $pdf->Cell(157,8,''. $reg_v['FCOLLCODE']." - ".$reg_v['CollDetails'],1,'1',"L"); $pdf->SetFont('Times','B',9); $pdf->Cell(27,8,' Exam Center',1,0,'L'); $pdf->SetFont('Times','',9); $pdf->Cell(157,8,''. $reg_v['FEXAMCNTR']." - ".$reg_v['exam_center_name'],1,'1','L'); } else if($FUNIVCODE == '016' || $FUNIVCODE == '033' || $FUNIVCODE == '017' || $FUNIVCODE == '034' ||$FUNIVCODE == '008' ||$FUNIVCODE == '003' ||$FUNIVCODE == '018'|| $FUNIVCODE == '035'|| $FUNIVCODE == '029'|| $FUNIVCODE == '011'|| $FUNIVCODE == '036' || $FUNIVCODE == '037') { $pdf->SetFont('Times','B',9); $pdf->Cell(25,6,' Course',0,0,'L'); $pdf->Cell(3,6,' : ',0,0,'L'); $pdf->SetFont('Times','',9); $pdf->Cell(120,6,''.$reg_v['COURSE'],0,1,'L'); if($FUNIVCODE == '029') { $pdf->SetFont('Times','B',9); $pdf->Cell(25,6,' Faculty',0,0,'L'); $pdf->Cell(3,6,' : ',0,0,'L'); $pdf->SetFont('Times','',9); $pdf->Cell(120,6,''.$reg_v['FFACULTY'],0,1,'L'); } $pdf->SetFont('Times','B',9); $pdf->Cell(25,6,' College',0,0,'L'); $pdf->Cell(3,6,' : ',0,0,'L'); $pdf->SetFont('Times','',9); if($FUNIVCODE == '029') $pdf->Cell(96,6,''.$reg_v['CollDetails'],0,1,"L"); else $pdf->Cell(96,6,''. $reg_v['FCOLLCODE']." - ".$reg_v['CollDetails'],0,1,"L"); $pdf->SetFont('Times','B',9); $pdf->Cell(25,6," Student's Name",0,0,'L'); $pdf->Cell(3,6,' : ',0,0,'L'); $pdf->SetFont('Times','B',9); $pdf->Cell(120,6,''.$reg_v['FNAME'],0,1,'L'); if($FUNIVCODE == '029') { $pdf->SetFont('Times','B',9); $pdf->Cell(25,6,' USN No.',0,0,'L'); $pdf->Cell(3,6,' : ',0,0,'L'); $pdf->SetFont('Times','B',9); $pdf->Cell(120,6,'NU'.$reg_v['FREGNO'],0,1,'L'); }else { $pdf->SetFont('Times','B',9); $pdf->Cell(25,6,' Reg. No.',0,0,'L'); $pdf->Cell(3,6,' : ',0,0,'L'); $pdf->SetFont('Times','B',9); $pdf->Cell(120,6,''.$reg_v['FREGNO'],0,1,'L'); } $pdf->SetFont('Times','B',9); $pdf->Cell(25,6,' Exam Center',0,0,'L'); $pdf->Cell(3,6,' : ',0,0,'L'); $pdf->SetFont('Times','',9); if($FUNIVCODE == '029') $pdf->Cell(120,6,''. $reg_v['exam_center_name'],0,1,'L'); else $pdf->Cell(120,6,''. $reg_v['FEXAMCNTR']." - ".$reg_v['exam_center_name'],0,1,'L'); if($FUNIVCODE == '008' || $FUNIVCODE == '035') { $pdf->SetFont('Times','B',10); $pdf->Cell(25,6," Father's Name",0,0,'L'); $pdf->Cell(3,6,' : ',0,0,'L'); $pdf->SetFont('Times','',10); $pdf->Cell(120,6,''.$reg_v['FFATNAME'],0,1,'L'); $pdf->SetFont('Times','B',10); $pdf->Cell(25,6," Mother's Name",0,0,'L'); $pdf->Cell(3,6,' : ',0,0,'L'); $pdf->SetFont('Times','',9); $pdf->Cell(120,6,''.$reg_v['FMOTNAME'],0,1,'L'); } } else { $pdf->SetFont('Times','B',9); $pdf->Cell(36,6,' Course',1,0,'L'); //$pdf->Cell(3,6,' : ',0,0,'L'); $pdf->SetFont('Times','',9); $pdf->Cell(124,6,''.$reg_v['COURSE'],1,1,'L'); $pdf->SetFont('Times','B',9); if($FUNIVCODE == '031') { $pdf->Cell(36,6,' Department',1,0,'L'); //$pdf->Cell(3,6,' : ',0,0,'L'); } else { $pdf->Cell(36,$yH,' College',1,0,'L'); //$pdf->Cell(3,6,' : ',0,0,'L'); } $pdf->SetFont('Times','',9); $pdf->MultiCell(124,$yH,''. $reg_v['FCOLLCODE']." - ".$reg_v['CollDetails'],1,"L"); $pdf->SetFont('Times','B',9); if($FUNIVCODE == '030' || $FUNIVCODE == '003U' || $FUNIVCODE == '003D' || $FUNIVCODE == '026') { $width = '152'; $pdf->Cell(36,6,' Exam Center',1,0,'L'); //$pdf->Cell(3,6,' : ',0,0,'L'); $pdf->SetFont('Times','',9); if($FUNIVCODE == '003U' || $FUNIVCODE == '003D') $pdf->Cell(124,6,'As per the notification',1,1,'L'); else $pdf->Cell(124,6,''. $reg_v['FEXAMCNTR']." - ".$reg_v['exam_center_name'],1,1,'L'); } if($FUNIVCODE == '003') { $pdf->Cell(36,6,'Cluster Exam Center',1,0,'L');// $pdf->Cell(3,6,' : ',0,0,'L'); $pdf->SetFont('Times','',9); $pdf->Cell(124,6,''. $reg_v['FEXAMCNTR']." - ".$reg_v['exam_center_name'],1,1,'L'); $width = '152'; } $pdf->SetFont('Times','B',9); if($FUNIVCODE == '030') { $pdf->Cell(36,6,' SRN',1,0,'L'); //$pdf->Cell(3,6,' : ',1,0,'L'); } else { $pdf->Cell(36,6,' Reg. No.',1,0,'L'); //$pdf->Cell(3,6,' : ',0,0,'L'); } //$pdf->Cell(25,6,' Reg. No.',0,0,'L'); $pdf->Cell(3,6,' : ',0,0,'L'); $pdf->SetFont('Times','B',9); if($FUNIVCODE == '030' || $FUNIVCODE == '031') $pdf->Cell(124,6,''.$reg_v['FREGNO'],1,1,'L'); else { //$pdf->Cell(124,6,''.$reg_v['FREGNO']. ' Student Id.: '.$reg_v['fstudid'],1,1,'L'); $pdf->Cell(44,6,$reg_v['FREGNO'],1,0,'L'); $pdf->Cell(40,6,"Student Id.",1,0,'L'); $pdf->Cell(40,6,$reg_v['fstudid'],1,1,'L'); } $pdf->SetFont('Times','B',9); $pdf->Cell(36,6," Student Name",1,0,'L'); //$pdf->Cell(3,6,' : ',0,0,'L'); $pdf->SetFont('Times','',9); $pdf->Cell($width,6,''.$reg_v['FNAME'],1,1,'L'); } //$pdf->Ln(10); $style = array( 'position' => 'right', 'align' => 'C', 'stretch' => false, 'fitwidth' => true, 'cellfitalign' => '', 'border' => false, 'hpadding' => 'auto', 'vpadding' => 'auto', 'fgcolor' => array(0,0,0), 'bgcolor' => false, //array(255,255,255), 'text' => true, 'font' => 'helvetica', 'fontsize' => 8, 'stretchtext' => 4 ); if($FUNIVCODE == '017') $pdf->write1DBarcode($reg_v['FREGNO'], 'C39', '145', '65','130', 16, 0.3, $style, 'R'); if($FUNIVCODE == '026' || $FUNIVCODE == '027') { $title1 = array('Sl.','Exam','Sub','Subject / Paper Title','QP','Answer','Invigilator'); $title2 = array('No.','','Code','','Code','Book No.','Signature'); $w = array('7','9','10','110','15','13','20'); }else if($FUNIVCODE == '005') { $title1 = array('Sl.','Sem /','Sub','Subject Title','Date and Time'); $title2 = array('No.','Year','Code','',''); $w = array('10','7','15','70','45'); }else if($FUNIVCODE == '029') { $title1 = array('Sl.No.','Date','Time','Sub Code','Subject Title','Invigilator`s Signature'); $title2 = array('','','','',''); $w = array('9','15','29','16','85','33'); //10 }else if($FUNIVCODE == '030') { $title1 = array('Sl.','Sem /','Sub','Subject Title','Date','Time','Invigilator'); $title2 = array('No.','Year','Code','','','','Signature'); $w = array('8','7','15','70','16','29','30'); }else { $title1 = array('Sl.','Sem /','Sub','Subject Title','QP','Date and Time','Answer','Invigilator'); $title2 = array('No.','Year','Code','','Code','','Book No.','Signature'); $w = array('7','7','10','70','14','43','18','18'); } $length = $w[6]+$w[5]+$w[0]+$w[1]+$w[2]+$w[3]+$w[4]; $pdf->Ln(1); $pdf->SetFont('Times','B',10); if($FUNIVCODE == '029') $pdf->Cell($length,5,"SUBJECT'S APPEARING",0,1,'C'); else $pdf->Cell($length,5,'SUBJECTS / PAPERS APPEARING',0,1,'C'); $pdf->SetFont('Times','B',9); $length = (count($w) -1); for($i = 0;$i<count($w);$i++) { if($FUNIVCODE != '029') { if($i == $length) $pdf->Cell($w[$i],6,$title1[$i],"LRT",1,"C"); else $pdf->Cell($w[$i],6,$title1[$i],"LRT",0,"C"); } else { if($i == $length) $pdf->Cell($w[$i],6,$title1[$i],"1",1,"C"); else $pdf->Cell($w[$i],6,$title1[$i],"1",0,"C"); } } if($FUNIVCODE != '029') { for($i = 0;$i<count($w);$i++) { if($i == $length) $pdf->Cell($w[$i],4,$title2[$i],"LRB",1,"C"); else $pdf->Cell($w[$i],4,$title2[$i],"LRB",0,"C"); } } $pdf->SetFont('Times','',9); // Mark start coords $x = $pdf->GetX(); $y = $pdf->GetY(); $sub_arr = $reg_v['SUBCODE']; //var_dump($sub_arr); $subj_arr = explode("~",$sub_arr); //var_dump($subj_arr); $sl_no=1; $j = 0; $curexam = ''; $fremarks = $reg_v['FREMARKS']; foreach($subj_arr as $ek) { $explode_arr = explode("->",$ek); //var_dump($explode_arr); //var_dump($explode_arr[4]);die(); /* $examname = explode(",",$reg_v['EXAMNAME']); if($curexam != $examname[$j]) { $length = $w[6]+$w[5]+$w[0]+$w[1]+$w[2]+$w[3]+$w[4]; $pdf->SetFont('Times','B',9); $pdf->Cell($length,4,$examname[$j],'1',1,"C"); } $curexam = $examname[$j]; */ $sem = ''; //var_dump($explode_arr[0]); if($explode_arr[0] == 'A') { $sem = 'I'; }else if($explode_arr[0] == 'B') { $sem = 'II'; }else if($explode_arr[0] == 'C') { $sem = 'III'; }else if($explode_arr[0] == 'D') { $sem = 'IV'; }else if($explode_arr[0] == 'E') { $sem = 'V'; }else if($explode_arr[0] == 'F') { $sem = 'VI'; }else if($explode_arr[0] == 'G') { $sem = 'VII'; }else if($explode_arr[0] == 'H') { $sem = 'VIII'; }else if($explode_arr[0] == 'I') { $sem = 'IX'; }else if($explode_arr[0] == 'J') { $sem = 'X'; } if($FUNIVCODE == '029') { $nb =0; $pdf->SetFont('Times','',8); $nb=max($nb,NbLines($w[3],$explode_arr[2],'')); $yH = 7*$nb; $pdf->Cell($w[0],$yH, $sl_no,"1",0,"C"); $date = substr($explode_arr[5],0,10); $time = substr($explode_arr[5],10,100); $pdf->Cell($w[1],$yH, $date,"1",0,"C"); $pdf->Cell($w[2],$yH, $time,"1",0,"C"); $pdf->Cell($w[3],$yH, $explode_arr[6],"1",0,"C"); $sub_short=$explode_arr[6]; $x=$pdf->GetX(); $y=$pdf->GetY(); $subjectname = str_splitf($explode_arr[2],49); $pdf->Rect($x,$y,$w[4],$yH); $pdf->MultiCell($w[4],$yH,$explode_arr[2],0,'L', 0, 0, '', '', true); }else { $nb =0; $pdf->SetFont('Times','',9); $nb=max($nb,NbLines($w[2],$explode_arr[2],'')); $yH = 8*$nb; $pdf->Cell($w[0],$yH, $sl_no,"1",0,"C"); $pdf->Cell($w[1],$yH,$sem,"1",0,"C"); $pdf->Cell($w[2],$yH, $explode_arr[1],"1",0,"C"); $sub_short=$explode_arr[6]; $x=$pdf->GetX(); $y=$pdf->GetY(); $subjectname = str_splitf($explode_arr[2],49); $pdf->Rect($x,$y,$w[3],$yH); $pdf->MultiCell($w[3],$yH,$explode_arr[2],0,'L', 0, 0, '', '', true); } //$pdf->Cell($w[3],$yH,$explode_arr[2],'1','0','L'); /*if($subjectname[1] != '') $x = 1; else $x = 0; //$pdf->Cell($w[3],$yH, $subjectname[0],"0",0,"L"); //var_dump($subjectname[1]); //55, 5, '[CENTER] '.$txt, 1, if($subjectname[1] != '') { $pdf->Cell($w[0],$yH,'',"1",0,"C"); $pdf->Cell($w[1],$yH,'',"1",0,"C"); $pdf->Cell($w[2],$yH,'',"1",0,"C"); $pdf->Cell($w[3],$yH, $subjectname[1],"0",0,"L"); $pdf->Cell($w[4], $yH,'','LRB', 1, 'C'); $pdf->SetXY($x+$w[3]+$w[4],$y); $pdf->Cell($w[5], $yH,'', 'LB', 1, 'C'); $pdf->SetXY($x+$w[4]+$w[3]+$w[5],$y); $pdf->Cell($w[6], $yH,'', 'LRB', 1, 'C'); $pdf->SetXY($x+$w[5]+$w[4]+$w[3]+$w[6],$y); $pdf->Cell($w[7], $yH,'', 'LRB', 1, 'C'); } */ $pdf->SetXY($x+$w[3],$y); //var_dump($explode_arr[2]); if($FUNIVCODE == '005' || $FUNIVCODE == '018') { $pdf->Cell($w[4], $yH, $explode_arr[4], 'LBR', 1, 'C'); } else if($FUNIVCODE == '026' || $FUNIVCODE == '027') { $pdf->Cell($w[4], $yH, $sub_short, 'LRB', 1, 'C'); $pdf->SetXY($x+$w[3]+$w[4],$y); $pdf->Cell($w[5], $yH,'', 'LRB', 1, 'C'); $pdf->SetXY($x+$w[4]+$w[3]+$w[5],$y); $pdf->Cell($w[6], $yH,'', 'LRB', 1, 'C'); } else if($FUNIVCODE == '029') { //var_dump($explode_arr); //$pdf->SetXY($x+$w[2],$y); $pdf->SetFont('Times','',9); //$pdfCell($w[3], $yH,$explode_arr[5], 'LRB', 1, 'L'); $pdf->SetXY($x+$w[4],$y); $pdf->Cell($w[5], $yH,'', 'LRB', 1, 'L'); } else { $pdf->SetFont('Times','B',8); //if($fremarks == 'NULL') //{ $fremarks = $explode_arr[3]; $pdf->Cell($w[4], $yH, $sub_short, 'LRB', 1, 'C'); $pdf->SetFont('Times','',8); if($fremarks == '') { $pdf->SetXY($x+$w[3]+$w[4],$y); $pdf->Cell($w[5], $yH, $explode_arr[5], 'LB', 1, 'C'); $pdf->SetXY($x+$w[4]+$w[3]+$w[5],$y); $pdf->Cell($w[6], $yH,'', 'LRB', 1, 'C'); $pdf->SetXY($x+$w[5]+$w[4]+$w[3]+$w[6],$y); $pdf->Cell($w[7], $yH,'', 'LRB', 1, 'C'); }else { $pdf->SetFont('Times','',9); $pdf->SetXY($x+$w[3]+$w[4],$y); $pdf->Cell($w[5]+$w[6]+$w[7], $yH, $fremarks, 'LBR', 1, 'C'); //$pdf->SetXY($x+$w[4]+$w[3]+$w[5],$y); //$pdf->Cell($w[6], $yH,'', 'LRB', 1, 'C'); //$pdf->SetXY($x+$w[5]+$w[4]+$w[3]+$w[6],$y); //$pdf->Cell($w[7], $yH,'', 'LRB', 1, 'C'); } } $sl_no++; $j++; } if($FUNIVCODE == '016' || $FUNIVCODE == '033' || $FUNIVCODE == '017' || $FUNIVCODE == '034' || $FUNIVCODE == '008' || $FUNIVCODE == '003' || $FUNIVCODE == '011' || $FUNIVCODE == '037') { $pdf->SetFont('Times','',7); $pdf->Ln(2); $pdf->SetFont('Times','',9); $date_str = $class_obj->std_FHTTEXT; $text1 = str_replace("<br>","\n",$class_obj->std_FHTTEXT); $text = str_replace("<r>","\t",$text1); $pdf->writeHTML($date_str, $ln=true, $fill=false, $reseth=true, $cell=true, $align='L'); } if($FUNIVCODE == '027') { $pdf->SetFont('Times','B',10); /* $pdf->Cell(130,5,'Student Signature ','0',0,'L'); $pdf->Cell(55,6,'Registrar(Evaluation)','0',1,'R'); $pdf->Ln(2); */ /* $pdf->Rect($x,$y,184,25);*/ $pdf->Ln(3); $pdf->SetFont('Times','',9); $pdf->Cell(36,5,' I certify that, this candidate is eligible to appear for the current examination as per the details mentioned above.','0',1,'L'); $pdf->Ln(10); $pdf->SetFont('Times','',10); $date=date("F j, Y, g:i a"); $pdf->Cell(148,5,"Date: ".$date,'0',0,'L'); $pdf->Cell(36,5,'Principal Sign. (with seal)','0',1,'R'); $x=$pdf->GetX(); $y=$pdf->GetY(); $pdf->Line($x,$y,$x+184,$y); $pdf->Ln(16); $img_x=($pdf->getX()+150);; $img_y=$pdf->getY()-13; } else if($FUNIVCODE == '034' ||$FUNIVCODE == '017'|| $FUNIVCODE == '035'|| $FUNIVCODE == '029' || $FUNIVCODE == '011' || $FUNIVCODE == '037' || $FUNIVCODE == '036' ) { $pdf->SetFont('Times','B',9); $img_x=($pdf->getX()+150);; $img_y=$pdf->getY(); $img_path = $aobj_context->main_src."/img/controler_sign.jpg"; if(file_exists($img_path)) $pdf->Image($img_path,$img_x,$img_y+3,30); $pdf->Ln(25); $pdf->Cell(130,5,'Student Signature','0',0,'L'); $pdf->Cell(0,5,'Controller of Examinations','0',1,'R'); $pdf->SetFont('Times','',9); $pdf->Ln(4); //$pdf->Cell(110,5,'','0',0,'L'); if($FUNIVCODE == '029') $pdf->Cell(0,5,'I certify that this candidate is eligible to appear for the current examination','0',1,'C'); else $pdf->Cell(0,5,'I certify that this candidate is eligible to appear for the current examination','0',1,'R'); //$pdf->Cell(36,5,'I certify that this candidate is eligible to appear for the','0',0,'L'); //$pdf->Ln(5); //$pdf->Cell(36,5,' current examination as per the details mentioned above','0',1,'L'); $img_x=($pdf->getX()+140);; $img_y=$pdf->getY()-1; $img_path=$aobj_context->main_src."/img/signature_principal.jpg"; if(file_exists($img_path)) $pdf->Image($img_path,$img_x,$img_y,25); $pdf->Ln(8); $pdf->SetFont('Times','B',9); //$pdf->Cell(36,5,' Principal Signature with seal','0',1,'R'); $date = date("F j, Y, g:i a"); $pdf->Cell(140,5,"Date: {$date}",'0',0,'L'); if($FUNIVCODE == '029') $pdf->Cell(0,5,'Signature of the Head of the Institution with College Seal','0',1,'R'); else $pdf->Cell(0,5,'Principal Signature with seal','0',1,'R'); $pdf->SetFont('Times','',9); //if($FUNIVCODE != '029') //$pdf->Cell(140,5,"Date: {$date}",'0',0,'L'); //$pdf->Ln(1); } if($FUNIVCODE != '034' and $FUNIVCODE != '035' and $FUNIVCODE != '029' and $FUNIVCODE != '011' and $FUNIVCODE != '037' and $FUNIVCODE != '036') { $img_x=($pdf->getX()+159);; $img_y=$pdf->getY()-1; $img_path = $aobj_context->main_src."/img/controler_sign.jpg"; if(file_exists($img_path)) $pdf->Image($img_path,$img_x,$img_y,30); } if($FUNIVCODE == '027') { $x=$pdf->GetX(); $y=$pdf->GetY(); $pdf->Line($x,$y,$x+184,$y); } //$pdf->Ln(2); if($FUNIVCODE != '027' && $FUNIVCODE != '034'&& $FUNIVCODE != '017'&& $FUNIVCODE != '035'&& $FUNIVCODE != '029' && $FUNIVCODE != '011' && $FUNIVCODE != '037' && $FUNIVCODE != '036') { $pdf->Ln(12); $pdf->Cell(140,5,'','0',0,'L'); IF($class_obj->std_FUNIVCODE=='021' || $FUNIVCODE == '005' || $FUNIVCODE == '021' || $FUNIVCODE == '032' || $FUNIVCODE == '016' || $FUNIVCODE == '018' || $FUNIVCODE == '033' || $FUNIVCODE == '017' || $FUNIVCODE == '034' ) $pdf->Cell(50,6,'Controller of Examinations','0',0,'R'); ELSE $pdf->Cell(50,6,'Registrar (Evaluation)','0',0,'R'); if($FUNIVCODE == '005') { $pdf->Ln(4); $pdf->Cell(140,5,'Student Signature','0',0,'L'); //$pdf->Cell(36,6,'Controller of Examinations','0',0,'L'); $pdf->Ln(15); $pdf->MultiCell(80,5,'I certify that this candidate is eligible to appear for the current examination as per the details mentioned above ',0,'L'); $pdf->Ln(10); $pdf->Cell(110,5,'Principal Signature','0',1,'L'); }else { $pdf->Ln(7); $pdf->SetFont('Times','B',10); $pdf->Cell(36,6,'I certify that this candidate is eligible to appear for the current examination','0',1,'L'); $pdf->SetFont('Times','',8); /* $pdf->Cell(110,4,'','0',0,'L'); $pdf->Cell(30,4,'1. He / She has satisfactory attendance (>=75%).','0',1,'L'); $pdf->Cell(110,4,'','0',0,'L'); $pdf->Cell(30,4,'2. He / She has passed in lower semester examination as per ','0',1,'L'); $pdf->Cell(110,2,'','0',0,'L'); $pdf->Cell(30,2,' University Regulation (Min. 40% subjects).','0',1,'L'); $pdf->Cell(110,4,'','0',0,'L'); $pdf->Cell(30,4,'3. His / Her admission has been approved by the University.','0',1,'L'); $pdf->Cell(110,4,'','0',0,'L'); $pdf->Cell(30,4,"4. He / She is not belongs to 'Double the Duration' period.",'0',1,'L'); $pdf->SetFont('Times','B',10); $pdf->Cell(36,6,'I certify that this candidate is eligible to appear for','0',0,'L'); $pdf->Ln(4); $pdf->Cell(36,5,' the current examination ','0',1,'L'); */ if($FUNIVCODE == '003') { $pdf->Cell(30,4,'1. He / She has satisfactory attendance (>=75%).','0',1,'L'); $pdf->Cell(30,4,'2. He / She has passed in lower semester examination as per University Regulation (Min. 40% subjects).','0',1,'L'); $pdf->Cell(30,4,'3. His / Her admission has been approved by the University.','0',1,'L'); //$pdf->Cell(30,4,"4. He / She is not belongs to 'Double the Duration' period.",'0',1,'L'); $pdf->SetFont('Times','',10); $pdf->Ln(9); } if($FUNIVCODE == '030') $pdf->Cell(36,5,' HOS Signature with seal','0',1,'L'); else { if($FUNIVCODE == '003U') $pdf->Cell(36,5,' Principal / Coordinator Signature with seal','0',1,'L'); else if($FUNIVCODE == '003D') $pdf->Cell(36,5,' Co-ordinator Signature with seal','0',1,'L'); else { if($FUNIVCODE == '033') { $img_x=($pdf->getX()+140);; $img_y=$pdf->getY()-5; $img_path=$aobj_context->main_src."/img/Sign Principal.jpg"; if(file_exists($img_path)) $pdf->Image($img_path,$img_x,$img_y,25); } $pdf->Cell(36,5,'Principal / H.O.D. Signature with seal','0',1,'L'); } } } $pdf->Cell(0,5,'Signature of the Student','0',1,'R'); $date = date("F j, Y, g:i a"); if($FUNIVCODE == '003' || $FUNIVCODE == '008' || $FUNIVCODE == '003U' || $FUNIVCODE == '003D') { $pdf->Cell(160,5,"Date: ",'0',0,'R'); } else $pdf->Cell(0,5,"Date: {$date}",'0',1,'R'); } if($FUNIVCODE != '016' && $FUNIVCODE != '008' && $FUNIVCODE != '034' && $FUNIVCODE != '033' && $FUNIVCODE != '017' && $FUNIVCODE != '003' && $FUNIVCODE != '035' && $FUNIVCODE != '011' && $FUNIVCODE != '037') { $style = array('width' => 0.3, 'cap' => 'butt', 'join' => 'miter', 'dash' => '2,2', 'phase' => 0, 'color' => 'black'); $x=$pdf->GetX(); $y=$pdf->GetY(); $pdf->Line($x,$y,$x+184,$y); $pdf->Ln(1); $pdf->SetFont('Times','',6.5); $date_str = $class_obj->std_FHTTEXT; $text1 = str_replace("<br>","\n",$class_obj->std_FHTTEXT); $text = str_replace("<r>","\t",$text1); $pdf->writeHTML($date_str, $ln=true, $fill=false, $reseth=true, $cell=true, $align='L'); } //$style = array('width' => 0.3, 'cap' => 'butt', 'join' => 'miter', 'phase' => 2, 'color' => 'white'); //$style = array('width' => 0.3, 'cap' => 'butt', 'join' => 'miter', 'line' => '2,2', 'phase' => 2, 'color' => 'white'); //$pdf->Line($x,$y,$x+184,$y,$style); //var_dump($page_cnt); //var_dump(count($class_obj->std_arr)); if($page_cnt!=count($class_obj->std_arr)) { $pdf->AddPage(); if($FUNIVCODE != '027') { //$pdf->Line($x,$y,$x+184,$y); $pdf->Rect(02,03,200,280); } }$page_cnt++; //var_dump($page_cnt); } /* }else { foreach($class_obj->std_arr as $reg_k=>$reg_v) { //var_dump($reg_v['FREGNO']); if(!array_key_exists($reg_v['FREGNO'],$class_obj->receipt_date_arr)) continue; $full_photo_path=""; $full_photo_path=trim($aobj_context->main_src."/".$reg_v[photo_path]); $pdf->Ln(3); //$pdf->SetLineWidth(0.01); $pdf->SetLineWidth(0.01); $pdf->SetFont('Times','B',16); $img_path=$aobj_context->main_src."/img/report_uni_logo.jpg"; if(file_exists($img_path)) $pdf->Image($img_path,15,12,22); $pdf->Ln(5); if($FUNIVCODE == '018') { $pdf->SetFont('Times','B',13); $pdf->Cell(0,4,$class_obj->std_FUNIVNAME,0,1,'C'); $pdf->SetFont('Times','B',10); $pdf->Cell(0,4,$class_obj->std_FTOWN,0,1,'C'); } else $pdf->Cell(0,4,$class_obj->std_FUNIVNAME.', '.$class_obj->std_FTOWN,0,1,'C'); //$pdf->Cell(0,4,$class_obj->std_FUNIVNAME,0,1,'C'); $pdf->SetFont('Times','',10); $pdf->Cell(0,4,'' ,'0',1,'C'); $pdf->SetFont('Times','B',13); $pdf->Ln(1); $pdf->Cell(0,5,'HALL TICKET.' ,'0',1,'C'); $pdf->SetFont('Times','B',10); $pdf->Cell(0,5,$reg_v['EXAMDATE'].' EXAMINATION ' ,'0',1,'C'); $pdf->SetFont('Times','',12); $pdf->Ln(6); $pdf->SetFont('Times','',12); if(file_exists($full_photo_path) && !empty($reg_v[photo_path])) //$pdf->Image($img_path,15,12,22); { $pdf->Image($full_photo_path,165,$pdf->GetY(),27,27); } else { $pdf->Image($aobj_context->main_src."/img/nophoto.jpg",165,$pdf->GetY(),27,27); } $pdf->SetFont('Times','B',11); $pdf->Cell(30,6,' Course',0,0,'L'); $pdf->Cell(6,6,' : ',0,0,'L'); $pdf->SetFont('Times','',11); $pdf->Cell(120,6,''.$reg_v['COURSE'],0,1,'L'); $pdf->SetFont('Times','B',11); $pdf->Cell(30,6,' Exam Center',0,0,'L'); $pdf->Cell(6,6,' : ',0,0,'L'); $pdf->SetFont('Times','',11); $pdf->MultiCell(90,6,'Examination Hall, 3rd Floor, KSHEMA',0,"L"); $pdf->SetFont('Times','B',11); $pdf->Cell(30,6,' College',0,0,'L'); $pdf->Cell(6,6,' : ',0,0,'L'); $pdf->SetFont('Times','',11); $pdf->MultiCell(90,6,''.$reg_v['CollDetails'],0,"L"); $pdf->SetFont('Times','B',11); $pdf->Cell(30,6,' Reg. No.',0,0,'L'); $pdf->Cell(6,6,' : ',0,0,'L'); $pdf->SetFont('Times','',11); if($FUNIVCODE == '029') $pdf->Cell(120,6,'NU'.$reg_v['FREGNO'],0,1,'L'); else $pdf->Cell(120,6,$reg_v['FREGNO'],0,1,'L'); $pdf->SetFont('Times','B',11); $pdf->Cell(30,6," Student's Name",0,0,'L'); $pdf->Cell(6,6,' : ',0,0,'L'); $pdf->SetFont('Times','',11); $pdf->Cell(120,6,''.$reg_v['FNAME'],0,1,'L'); $pdf->Ln(1); $pdf->SetFont('Times','B',11); $pdf->Cell(0,5,'Subject Appearing',0,1,'C'); $pdf->Cell(15,6,"Sl. No.","1",0,"C"); $pdf->Cell(20,6,"Sub. Code","1",0,"C"); $pdf->Cell(100,6,"Subject Title","1",0,"C"); if($class_obj->bth_flag==1) $pdf->Cell(30,6,"Date and Session","1",1,"C"); else { if($FUNIVCODE == '018') $pdf->Cell(30,6,"Short Name","1",1,"C"); else $pdf->Cell(30,6,"Inv. Sign","1",1,"C"); } $pdf->SetFont('Times','',11); $sub_arr=$reg_v[SUBCODE]; $subj_arr = explode("~",$sub_arr); $sl_no=1; foreach($subj_arr as $ek) { if($FUNIVCODE == '018') { $explode_arr=explode("->",$ek); $pdf->Cell(15,6, $sl_no,"1",0,"C"); $pdf->Cell(20,6, $explode_arr[0],"1",0,"C"); $sub_short=$explode_arr[4]; if($class_obj->bth_flag==1) { $pdf->Cell(100,6,$explode_arr[1]." [{$sub_short}]","1",0,"L"); $pdf->Cell(30,6,$explode_arr[3],"1",1,"C"); } else { $pdf->Cell(100,6,$explode_arr[1],"1",0,"L"); $pdf->Cell(30,6,$sub_short,"1",1,"C"); } $sl_no++; }else { $explode_arr=explode("->",$ek); $sub_short=$explode_arr[4]; if($class_obj->bth_flag==1) { $pdf->Cell(100,6,$explode_arr[1]." [{$sub_short}]","1",0,"L"); $pdf->Cell(20,6,$explode_arr[3],"1",1,"C"); } else { $get_x1=$pdf->GetX(); $get_y1=$pdf->GetY(); //$pdf->Cell(80,6,$explode_arr[1],"1",0,"L"); $width=15+20+100; $pdf->SetXY($get_x1+15+20,$get_y1); $pdf->MultiCell(100,6,$explode_arr[1],1,"L"); $get_x2=$pdf->GetX(); $get_y2=$pdf->GetY(); $height=$get_y2-$get_y1; $pdf->SetXY($get_x1+15+20+100,$get_y1); //echo $height;die(); //$pdf->Cell(20,$height,$sub_short,"1",0,"C"); $pdf->Cell(30,$height,'',"1",1,"C"); } $pdf->SetXY($get_x1,$get_y1); $pdf->Cell(15,$height, $sl_no,"1",0,"C"); $pdf->Cell(20,$height, $sub_short,"1",1,"C"); $sl_no++; } } $pdf->Ln(15); $img_x=($pdf->getX()+100);; $img_y=$pdf->getY()-10; $img_path=$aobj_context->main_src."/img/controler_sign.jpg"; if(file_exists($img_path)) $pdf->Image($img_path,$img_x,$img_y,30); //$pdf->Cell(90,5,'Student Signature ','0',0,'L'); //$pdf->Cell(36,5,'Controller of Examinations','0',1,'L'); $pdf->Cell(90,5,'','0',0,'L'); $pdf->Cell(46,6,'Controller of Examinations','0',0,'R'); $pdf->Ln(10); $pdf->Cell(90,5,'Student Signature ','0',0,'L'); $pdf->Cell(46,5,'Principal Signature and Seal','0',1,'R'); $date=date("F j. Y"); $pdf->Cell(90,5,"Date: ".$date,'0',0,'L'); $pdf->Ln(2); $pdf->SetFont('Times','',9); $date_str = $class_obj->std_FHTTEXT; $text1 = str_replace("<br>","\n",$class_obj->std_FHTTEXT); $text = str_replace("<r>","\t",$text1); $pdf->MultiCell(0,5,$text); if($page_cnt!=count($class_obj->std_arr)) { $pdf->AddPage(); $pdf->Rect(2,08,200,280); }$page_cnt++; } */ //} $pdf->Output("report_adm_ticket.pdf","D"); } function NbLines($w,$txt,$pdf) { //Computes the number of lines a MultiCell of width w will take $cw=&$pdf->CurrentFont['cw']; if($w==0) $w=$pdf->w-$pdf->rMargin-$pdf->x; $wmax=($w-2*$pdf->cMargin)*1000/$pdf->FontSize; $s=str_replace("\r",'',$txt); $nb=strlen($s); if($nb>0 and $s[$nb-1]=="\n") $nb--; $sep=-1; $i=0; $j=0; $l=0; $nl=1; while($i<$nb){ $c=$s[$i]; if($c=="\n"){ $i++; $sep=-1; $j=$i; $l=0; $nl++; continue; } if($c==' ') $sep=$i; $l+=$cw[$c]; if($l>$wmax) { if($sep==-1){ if($i==$j) $i++; } else $i=$sep+1; $sep=-1; $j=$i; $l=0; $nl++; } else $i++; } return $nl; } ?>
Close