Şuanki Dizin: /home/wwwdreamtechnolo/www/kpmim.org/ |
Şuanki Dosya : /home/wwwdreamtechnolo/www/kpmim.org/data.php |
<?php /*ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL);*/ require_once("admin/lib/functions.php"); $db = new login_function(); $page_id_code = ""; if(isset($_GET['pno'])) { $page_id_code = $_GET['pno']; } $var_title = ""; $var_contents = ""; $data = $db->get_page1_data_from_id($page_id_code); if(!empty($data)) { $var_title = $data[3]; $var_contents= $data[4]; } $docs_data = $db->get_all_docs_data($page_id_code); $links_data = $db->get_all_links_info($page_id_code); $img_gallery_data = $db->get_all_crm_gallery_data($page_id_code); $youtube_links_data = $db->get_all_crm_youtube_links_info($page_id_code); ?> <!DOCTYPE html> <html lang="en"> <?php require_once('header-data.php'); ?> <head> <meta charset="UTF-8"> <meta name="description" content=""> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script> <!-- The above 4 meta tags *must* come first in the head; any other head content must come *after* these tags --> <!-- Title --> <title><?php echo $var_title; ?></title> <!-- Core Stylesheet --> <link rel="stylesheet" href="style.css"> <style> .criterion_data_m { margin-top:20px; text-transform:uppercase; color:#FF0000; font-size:25px; } .data_table_main { width:100%; margin-top:20px; margin-bottom:100px; text-transform:capitalize; font-weight:bold; } .data_table_main thead th { background-color:#D3D5F5; padding:10px; color:#000000; font-weight:bold; font-size:17px; border:1px solid #999999; text-align:center; } .data_table_main tr td { padding:7px; color:#0B6890; font-size:17px; font-weight:bold; text-align:center; border:1px solid #999999; } .data_table_main tr td a { font-size:17px; text-decoration:none; } .bottom_table { margin-top:25px; } </style> </head> <body> <!-- ##### Preloader ##### --> <!--<div id="preloader"> <i class="circle-preloader"></i> </div>--> <!-- ##### Header Area Start ##### --> <?php include('headernew.php'); ?> <!-- ##### Header Area End ##### --> <section class="about-us-area mt-20 section-padding-100" style="padding:0px;background-color:#FAFAFA !important;"> <div class="container"> <!--<div class="row"> <div class="col-12"> <div class="section-heading text-center mx-auto wow fadeInUp" data-wow-delay="300ms"> <h3><?php echo $var_title; ?></h3> </div> </div> </div>--> <div class="row"> <?php include('left-panel.php'); ?> <div class="col-md-9 col-sm-12 wow fadeInUp" data-wow-delay="400ms" style="background-color:#FFFFFF;"> <div class="bg-img main_breadcrumb_area" style="border-bottom:2px dashed #333333; padding-top:15px;"> <h2><?php echo $var_title; ?></h2> </div> <div style="font-size:18px; font-family:Arial; line-height:25px; margin-top:25px; padding-left:25px;"> <?php echo $var_contents; ?> </div> <?php if(!empty($docs_data)) { ?> <div class="bg-img main_breadcrumb_area bottom_table"> <h2><?php echo $var_title; ?> Documents</h2> </div> <table cellspacing='0' class="data_table_main"> <thead> <tr> <th width="20" class="tab_data">Sr.No</th> <th width="100" class="tab_data" >Title</th> <th width="30" class="tab_data">View</th> </tr> </thead> <tbody> <?php $report_details = $docs_data; if(!empty($report_details)) { $counter =0; foreach($report_details as $record) { $id = $report_details[$counter][0]; $image = $report_details[$counter][1]; $title = $report_details[$counter][2]; ?> <tr> <td><?php echo $counter+1; ?></td> <td style="text-align:left"><?php echo $title; ?></td> <td><a href="crmdocs/<?php echo $image; ?>" target="_blank">View</a></td> </tr> <?php $counter++; } } else { ?> <tr> <td colspan="3">No data to list</td> </tr> <?php } ?> </tbody> </table> <?php } ?> <?php if(!empty($links_data)) { ?> <div class="bg-img main_breadcrumb_area bottom_table"> <h2><?php echo $var_title; ?> - Links</h2> </div> <table cellspacing='0' class="data_table_main"> <thead> <tr> <th width="10" class="tab_data">Sr.No</th> <th width="200" class="tab_data" >Title</th> <th width="30" class="tab_data">Link</th> </tr> </thead> <tbody> <?php $report_details = $links_data; if(!empty($report_details)) { $counter =0; foreach($report_details as $record) { $id = $report_details[$counter][0]; $title = $report_details[$counter][1]; $links = $report_details[$counter][2]; ?> <tr> <td><?php echo $counter+1; ?></td> <td style="text-align:left"><?php echo $title; ?></td> <td><a href="<?php echo $links; ?>" target="_blank">Click / Visit Link </a></td> </tr> <?php $counter++; } } else { ?> <tr> <td colspan="3">No data to list</td> </tr> <?php } ?> </tbody> </table> <?php } ?> <?php /********************************************************************************/ //If faculty page code then show faculty list $faculty_data_page_codes = array("110","120","130","140","150","160","170","180","190","200","210","220","230","240","250","260","270","280","290","300","310"); if(in_array($page_id_code, $faculty_data_page_codes)) { $print_counter=0; $staff_data = array(); $appionment_date=""; $type = "Teaching Staff"; //$page_id_code $report_details = $db->get_all_staff_info_by_dept_code($page_id_code); if(!empty($report_details)) { ?> <div class="bg-img main_breadcrumb_area bottom_table"> <h2><?php echo $var_title; ?> Profiles</h2> </div> <table cellspacing='0' class="data_table_main"> <thead> <tr rowspan="2" > <th>Sr. <br />No</th> <th>Name</th> <th>Designation</th> <th>Department</th> <th>Qualification</th> <th>Appointment Date</th> <th>Photo</th> <th>Profile</th> </tr> </thead> <?php $counter =0; foreach($report_details as $record) { $id = $report_details[$counter][0]; $full_name = $report_details[$counter][1]; $last_name = $report_details[$counter][2]; $department = $report_details[$counter][3]; $gender = $report_details[$counter][4]; $address = $report_details[$counter][5]; $dob = $report_details[$counter][6]; $contact_no = $report_details[$counter][7]; $email_id = $report_details[$counter][8]; $password = $report_details[$counter][9]; $image = $report_details[$counter][10]; $qualification = $report_details[$counter][11]; $designation = $report_details[$counter][12]; $appionment_date= $report_details[$counter][13]; $staff_profile = $report_details[$counter][14]; switch($department) { case 110: $department = "Chemistry"; break; case 120: $department = "Physics"; break; case 130: $department = "Botany"; break; case 140: $department = "Zoology"; break; case 150: $department = "Mathematics"; break; case 160: $department = "Computer Science"; break; case 170: $department = "Electronics"; break; case 180: $department = "Commerce"; break; case 190: $department = "B.C.A."; break; case 200: $department = "Marathi"; break; case 210: $department = "Hindi"; break; case 220: $department = "English"; break; case 230: $department = "Sociology"; break; case 240: $department = "History"; break; case 250: $department = "Economics"; break; case 260: $department = "Political Science"; break; case 270: $department = "NCC"; break; case 280: $department = "NSS"; break; case 290: $department = "Physical Education"; break; case 300: $department = "Gymkhana"; break; case 310: $department = "Cultural"; break; } ?> <tr class="main_row"> <td><?php echo $print_counter+1; ?></td> <td><?php echo $full_name." ".$last_name; ?></td> <td><?php echo $designation; ?></td> <td><?php echo $department; ?></td> <td><?php echo $qualification; ?></td> <td><?php echo $appionment_date; ?></td> <td> <img src="staffdata/<?php echo $image; ?>" class="sp_img" style="height:80px; margin:10px;" /></td> <td> <br /> <?php if($staff_profile!="") { ?> <center><a href="/staffdata/<?php echo $staff_profile; ?>" class="btn btn-primary" style="color:white;font-size:16px;" target="_blank">View Profile</a> </center> <?php } else { ?> <center><a href="#" class="btn btn-primary" style="color:white;font-size:16px; width:200px !important;">View Profile</a> </center> <?php } ?> </td> </tr> <?php $print_counter++; $counter++; } ?> </table> <?php } } ?> <?php $ssr_pages = array("122"); if(in_array($page_id_code, $ssr_pages)) { $ssr_table_data = array(); if($page_id_code=="322") { $ssr_type_id = "8"; $ssr_table_data = $db->get_ssr_doc_data($ssr_type_id); } elseif($page_id_code=="122") { $ssr_type_id = "0"; $ssr_table_data = $db->get_ssr_doc_data($ssr_type_id); } /*if(!empty($ssr_table_data)) { ?> <table cellspacing='0' class="data_table_main ssr_doc_table" style="font-family:Cambria;"> <thead> <tr> <th width="10" class="tab_data">Sr.No</th> <th width="50" class="tab_data" >Serial No</th> <th width="200" class="tab_data" >Title</th> <th width="30" class="tab_data">View File</th> </tr> </thead> <tbody> <?php $countr_n = 0; foreach($ssr_table_data as $record) { $serial_no = $record[2]; $title = $record[3]; $cfile = $record[4]; $sequence = $record[7]; ?> <tr class="ssr_docs"> <td><?php echo $countr_n+1; ?></td> <td style="text-align:left"><?php echo $serial_no; ?></td> <td style="text-align:left"><?php echo $title; ?></td> <td><a href="docs_pdf/<?php echo $cfile; ?>" target="_blank">View</a></td> </tr> <?php $countr_n++; } ?> </tbody> </table> <?php }*/ /******************************Show Criterion 1 To 7 data*********************/ if($page_id_code=="122") { /* $ssr_type_id = "1"; $ssr_table_data_crt_1 = $db->get_ssr_doc_data($ssr_type_id); $ssr_type_id = "2"; $ssr_table_data_crt_2 = $db->get_ssr_doc_data($ssr_type_id); $ssr_type_id = "3"; $ssr_table_data_crt_3 = $db->get_ssr_doc_data($ssr_type_id); $ssr_type_id = "4"; $ssr_table_data_crt_4 = $db->get_ssr_doc_data($ssr_type_id); $ssr_type_id = "5"; $ssr_table_data_crt_5 = $db->get_ssr_doc_data($ssr_type_id); $ssr_type_id = "6"; $ssr_table_data_crt_6 = $db->get_ssr_doc_data($ssr_type_id);*/ function criterion_ssr_table_wise_data($criterion_id) { $db = new login_function(); $ssr_table_data = $db->get_ssr_doc_data($criterion_id); ?> <table cellspacing='0' class="data_table_main ssr_doc_table" style="font-family:Cambria;"> <thead> <tr> <th width="5" class="tab_data">Sr.No</th> <th width="50" class="tab_data" >Serial No</th> <th width="250" class="tab_data" >Title</th> <th width="30" class="tab_data">Descriptive Content</th> <th width="30" class="tab_data">Data Template</th> <th width="30" class="tab_data">Supportive Document</th> </tr> </thead> <tbody> <?php if(!empty($ssr_table_data)) { $countr_n = 0; foreach($ssr_table_data as $record) { $serial_no = $record[2]; $title = $record[3]; $cfile = $record[4]; $sequence = $record[7]; $data_template = $record[9]; $supportive_doc = $record[10]; ?> <tr class="ssr_docs"> <td><?php echo $countr_n+1; ?></td> <td style="text-align:left"><?php echo $serial_no; ?></td> <td style="text-align:left"><?php echo $title; ?></td> <td> <?php if($cfile!="") { ?> <a href="docs_pdf/<?php echo $cfile; ?>" target="_blank">View</a> <?php } else { ?> -- <?php } ?> </td> <td> <?php if($data_template!="") { ?> <a href="docs_pdf/<?php echo $data_template; ?>" target="_blank">View</a> <?php } else { ?> -- <?php } ?> </td> <td> <?php if($supportive_doc!="") { ?> <a href="docs_pdf/<?php echo $supportive_doc; ?>" target="_blank">View</a> <?php } else { ?> -- <?php } ?> </td> </tr> <?php $countr_n++; } } else { ?> <tr class="ssr_docs"> <td colspan="4">No Table Data</td> </tr> <?php } ?> </tbody> </table> <?php } ?> <div class="tabs_container"> <button class="criterion_tab_heads" onclick="openCity('CRITERION 1')">CRITERION I</button> <button class="criterion_tab_heads" onclick="openCity('CRITERION 2')">CRITERION II</button> <button class="criterion_tab_heads" onclick="openCity('CRITERION 3')">CRITERION III</button> <button class="criterion_tab_heads" onclick="openCity('CRITERION 4')">CRITERION IV</button> <button class="criterion_tab_heads" onclick="openCity('CRITERION 5')">CRITERION V</button> <button class="criterion_tab_heads" onclick="openCity('CRITERION 6')">CRITERION VI</button> <button class="criterion_tab_heads" onclick="openCity('CRITERION 7')">CRITERION VII</button> </div> <div id="CRITERION 1" class="w3-container city"> <h1 class="criterion_data_m">Criterion I</h1> <?php $criterion_id_no = 1; criterion_ssr_table_wise_data($criterion_id_no); ?> </div> <div id="CRITERION 2" class="w3-container city" style="display:none"> <h1 class="criterion_data_m">Criterion II</h1> <?php $criterion_id_no = 2; criterion_ssr_table_wise_data($criterion_id_no); ?> </div> <div id="CRITERION 3" class="w3-container city" style="display:none"> <h1 class="criterion_data_m">Criterion III</h1> <?php $criterion_id_no = 3; criterion_ssr_table_wise_data($criterion_id_no); ?> </div> <div id="CRITERION 4" class="w3-container city" style="display:none"> <h1 class="criterion_data_m">Criterion IV</h1> <?php $criterion_id_no = 4; criterion_ssr_table_wise_data($criterion_id_no); ?> </div> <div id="CRITERION 5" class="w3-container city" style="display:none"> <h1 class="criterion_data_m">Criterion V</h1> <?php $criterion_id_no = 5; criterion_ssr_table_wise_data($criterion_id_no); ?> </div> <div id="CRITERION 6" class="w3-container city" style="display:none"> <h1 class="criterion_data_m">Criterion VI</h1> <?php $criterion_id_no = 6; criterion_ssr_table_wise_data($criterion_id_no); ?> </div> <div id="CRITERION 7" class="w3-container city" style="display:none"> <h1 class="criterion_data_m">Criterion VII</h1> <?php $criterion_id_no = 7; criterion_ssr_table_wise_data($criterion_id_no); ?> </div> <script> function openCity(cityName) { var i; var x = document.getElementsByClassName("city"); for (i = 0; i < x.length; i++) { x[i].style.display = "none"; } document.getElementById(cityName).style.display = "block"; } </script> <?php } /******************************End Show Criterion 1 To 7 data*********************/ } ?> <?php if(!empty($img_gallery_data)) { ?> <div class="bg-img main_breadcrumb_area bottom_table"> <h2><?php echo $var_title; ?> Gallery Images</h2> </div> <?php $img_report_details = $img_gallery_data; if(!empty($img_report_details)) { $counter =0; foreach($img_report_details as $img_record) { $id = $img_report_details[$counter][0]; $image = $img_report_details[$counter][1]; $title = $img_report_details[$counter][2]; ?> <div style="display:inline-table; width:400px; padding:5px; margin:5px; color:red; font-weight:bold; border:1px solid #999999; text-align:center;"> <a href="crm_img_gallery/<?php echo $image; ?>"><img src="crm_img_gallery/<?php echo $image; ?>" style="height:300px; width:100%; margin-bottom:10px;" /></a> <?php echo $title; ?> </div> <?php $counter++; } } else { ?> <tr> <td colspan="3">No data to list</td> </tr> <?php } ?> <?php } if(!empty($youtube_links_data)) { ?> <div class="bg-img main_breadcrumb_area bottom_table"> <h2><?php echo $var_title; ?> Youtube Links</h2> </div> <table cellspacing='0' class="data_table_main"> <thead> <tr> <th width="20" class="tab_data">Sr.No</th> <th width="350" class="tab_data" >Title</th> <th width="70" class="tab_data">View</th> </tr> </thead> <tbody> <?php $youtube_link_report_details = $youtube_links_data; if(!empty($youtube_link_report_details)) { $counter =0; foreach($youtube_link_report_details as $yl_record) { $l_id = $youtube_link_report_details[$counter][0]; $l_title = $youtube_link_report_details[$counter][1]; $l_url = $youtube_link_report_details[$counter][2]; ?> <tr> <td><?php echo $counter+1; ?></td> <td style="text-align:left"><?php echo $l_title; ?></td> <td><a href="<?php echo $l_url; ?>" target="_blank"> View Link</a></td> </tr> <?php $counter++; } } else { ?> <tr> <td colspan="3">No data to list</td> </tr> <?php } ?> </tbody> </table> <?php } ?> <style> .criterion_data_m { margin-top:20px; text-transform:uppercase; } .tabs_container { background-color:#e6ffe6; padding:15px; border-radius:15px; text-align:center; } .criterion_tab_heads { background-color:#333333; padding:7px; border:1px solid #CCCCCC; font-size:18px; font-family:Cambria; border-radius:10px; color:#FFFFFF; margin-left:7px; } .criterion_tab_heads:hover { background-color:#BB5108; } thead tr th { font-size:16px; font-weight:bold; font-family:Cambria; } .main_row td { font-size:15px; font-family:Cambria; } .ssr_docs td { color:#333333 !important; } .ssr_doc_table thead th { background-color:#7A297B !important; color:#FFFFFF; } </style> </div> </div> </div> </section> <!-- ##### About Us Area End ##### --> <!-- ##### Team Area Start ##### --> <!-- ##### Footer Area Start ##### --> <?php require_once('footernew.php'); ?> <!-- ##### Footer Area Start ##### --> <!-- ##### All Javascript Script ##### --> <!-- jQuery-2.2.4 js --> <script src="js/jquery/jquery-2.2.4.min.js"></script> <!-- Popper js --> <script src="js/bootstrap/popper.min.js"></script> <!-- Bootstrap js --> <script src="js/bootstrap/bootstrap.min.js"></script> <!-- All Plugins js --> <script src="js/plugins/plugins.js"></script> <!-- Active js --> <script src="js/active.js"></script> </body> </html>
Linux 65-254-81-4.cprapid.com 5.14.0-284.11.1.el9_2.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 9 05:49:00 EDT 2023 x86_64
Apache
65.254.81.4