Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
application
/
libraries
/
res_forms
:
teachers.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<!-- Start main-content --> <div class="main-content"> <!-- Section: inner-header --> <section style="background-color: #dcebf5"> <div class="container pt-10 pb-10"> <!-- Section Content --> <div class="section-content"> <div class="row"> <div class="col-md-12 text-center"> <h4 class="title">Teachers</h4> <hr style="border-top: 1px solid #6cb4e2 !important"> </div> </div> </div> <h3 style="margin-left:5px; width:120px; border-bottom:2px solid #0d5189;">Science</h3> <div class="section-content text-center"> <div class="row"> <?php foreach ($tr_data as $tr){ if ($tr->dept_id==1){ $default_image_link=base_url()."idcm/img/teachers/user.png"; $base_path='/home/ichhrkpd/public_html/idcm/system/'; $folder_name = base_url().'idcm/img/teachers/'; $down_link_img = $folder_name . $tr->teacher_id .'.jpg'; $down_file_name = $tr->teacher_id.'.jpg'; $physical_link_img = $base_path."../img/teachers/$down_file_name"; $folder_name_cv = base_url().'files/cv/'; $down_link_cv = $folder_name_cv . $tr->teacher_id .'.pdf'; $down_file_name_cv = $tr->teacher_id.'.pdf'; $physical_link_cv = $base_path."../files/cv/$down_file_name_cv"; ?> <div class="col-sm-6 col-md-3 mb-sm-30"> <div class="team-member bg-light pt-5 pb-5 mb-10" style="min-height:390px;"> <?php if(file_exists($physical_link_img)){ ?> <div class="thumb"><img style="width:50%" src="<?php echo $down_link_img; ?>" alt=""> </div> <?php } else{ ?> <div class="thumb"><img style="width:50%" src="<?php echo $default_image_link; ?>" alt=""> </div> <?php } ?> <div class="info"> <div class="pt-10 pb-10 bg-theme-colored"> <h4 class="mt-0 mb-0 text-white"><?php echo $tr->name;?></h4> <h6 class="mt-0 mb-0 text-white"><?php echo $tr->designation;?></h6> </div> <p class="p-15 pb-0" style="font-size:12px"> <?php echo $tr->short_bio;?><br> <b>Mobile:</b> <?php echo $tr->mobile_no;?><br> <b>Email:</b> <?php echo $tr->email;?><br> </p> <?php if(file_exists($physical_link_cv)){ ?> <p style="text-align:center;margin-top:5px"><a href="<?php echo $down_link_cv;?>" class="btn btn-dark btn-theme-colored btn-sm">Download CV</a></p> <?php } else{ ?> <p style="text-align:center;margin-top:5px"><a href="#" class="btn btn-dark btn-theme-colored btn-sm">Download CV</a></p> <?php } ?> </div> </div> </div> <?php } } ?> </div> </div> <h3 style="margin-left:5px; width:120px; border-bottom:2px solid #0d5189;">Humanities</h3> <div class="section-content text-center"> <div class="row"> <?php foreach ($tr_data as $tr){ if ($tr->dept_id==2){ $default_image_link=base_url()."idcm/img/teachers/user.png"; $base_path='/home/ichhrkpd/public_html/idcm/system/'; $folder_name = base_url().'idcm/img/teachers/'; $down_link_img = $folder_name . $tr->teacher_id .'.jpg'; $down_file_name = $tr->teacher_id.'.jpg'; $physical_link_img = $base_path."../img/teachers/$down_file_name"; $folder_name_cv = base_url().'files/cv/'; $down_link_cv = $folder_name_cv . $tr->teacher_id .'.pdf'; $down_file_name_cv = $tr->teacher_id.'.pdf'; $physical_link_cv = $base_path."../files/cv/$down_file_name_cv"; ?> <div class="col-sm-6 col-md-3 mb-sm-30"> <div class="team-member bg-light pt-5 pb-5 mb-10" style="min-height:390px;"> <?php if(file_exists($physical_link_img)){ ?> <div class="thumb"><img style="width:50%" src="<?php echo $down_link_img; ?>" alt=""> </div> <?php } else{ ?> <div class="thumb"><img style="width:50%" src="<?php echo $default_image_link; ?>" alt=""> </div> <?php } ?> <div class="info"> <div class="pt-10 pb-10 bg-theme-colored"> <h4 class="mt-0 mb-0 text-white"><?php echo $tr->name;?></h4> <h6 class="mt-0 mb-0 text-white"><?php echo $tr->designation;?></h6> </div> <p class="p-15 pb-0" style="font-size:12px"> <?php echo $tr->short_bio;?><br> <b>Mobile:</b> <?php echo $tr->mobile_no;?><br> <b>Email:</b> <?php echo $tr->email;?><br> </p> <?php if(file_exists($physical_link_cv)){ ?> <p style="text-align:center;margin-top:5px"><a href="<?php echo $down_link_cv;?>" class="btn btn-dark btn-theme-colored btn-sm">Download CV</a></p> <?php } else{ ?> <p style="text-align:center;margin-top:5px"><a href="#" class="btn btn-dark btn-theme-colored btn-sm">Download CV</a></p> <?php } ?> </div> </div> </div> <?php } } ?> </div> </div> <h3 style="margin-left:5px; width:120px; border-bottom:2px solid #0d5189;">Commerce</h3> <div class="section-content text-center"> <div class="row"> <?php foreach ($tr_data as $tr){ if ($tr->dept_id==4){ $default_image_link=base_url()."idcm/img/teachers/user.png"; $base_path='/home/ichhrkpd/public_html/idcm/system/'; $folder_name = base_url().'idcm/img/teachers/'; $down_link_img = $folder_name . $tr->teacher_id .'.jpg'; $down_file_name = $tr->teacher_id.'.jpg'; $physical_link_img = $base_path."../img/teachers/$down_file_name"; $folder_name_cv = base_url().'files/cv/'; $down_link_cv = $folder_name_cv . $tr->teacher_id .'.pdf'; $down_file_name_cv = $tr->teacher_id.'.pdf'; $physical_link_cv = $base_path."../files/cv/$down_file_name_cv"; ?> <div class="col-sm-6 col-md-3 mb-sm-30"> <div class="team-member bg-light pt-5 pb-5 mb-10" style="min-height:390px;"> <?php if(file_exists($physical_link_img)){ ?> <div class="thumb"><img style="width:50%" src="<?php echo $down_link_img; ?>" alt=""> </div> <?php } else{ ?> <div class="thumb"><img style="width:50%" src="<?php echo $default_image_link; ?>" alt=""> </div> <?php } ?> <div class="info"> <div class="pt-10 pb-10 bg-theme-colored"> <h4 class="mt-0 mb-0 text-white"><?php echo $tr->name;?></h4> <h6 class="mt-0 mb-0 text-white"><?php echo $tr->designation;?></h6> </div> <p class="p-15 pb-0" style="font-size:12px"> <?php echo $tr->short_bio;?><br> <b>Mobile:</b> <?php echo $tr->mobile_no;?><br> <b>Email:</b> <?php echo $tr->email;?><br> </p> <?php if(file_exists($physical_link_cv)){ ?> <p style="text-align:center;margin-top:5px"><a href="<?php echo $down_link_cv;?>" class="btn btn-dark btn-theme-colored btn-sm">Download CV</a></p> <?php } else{ ?> <p style="text-align:center;margin-top:5px"><a href="#" class="btn btn-dark btn-theme-colored btn-sm">Download CV</a></p> <?php } ?> </div> </div> </div> <?php } } ?> </div> </div> <h3 style="margin-left:5px; width:120px; border-bottom:2px solid #0d5189;">Others</h3> <div class="section-content text-center"> <div class="row"> <?php foreach ($tr_data as $tr){ if ($tr->dept_id==5){ $default_image_link=base_url()."idcm/img/teachers/user.png"; $base_path='/home/ichhrkpd/public_html/idcm/system/'; $folder_name = base_url().'idcm/img/teachers/'; $down_link_img = $folder_name . $tr->teacher_id .'.jpg'; $down_file_name = $tr->teacher_id.'.jpg'; $physical_link_img = $base_path."../img/teachers/$down_file_name"; $folder_name_cv = base_url().'files/cv/'; $down_link_cv = $folder_name_cv . $tr->teacher_id .'.pdf'; $down_file_name_cv = $tr->teacher_id.'.pdf'; $physical_link_cv = $base_path."../files/cv/$down_file_name_cv"; ?> <div class="col-sm-6 col-md-3 mb-sm-30"> <div class="team-member bg-light pt-5 pb-5 mb-10" style="min-height:390px;"> <?php if(file_exists($physical_link_img)){ ?> <div class="thumb"><img style="width:50%" src="<?php echo $down_link_img; ?>" alt=""> </div> <?php } else{ ?> <div class="thumb"><img style="width:50%" src="<?php echo $default_image_link; ?>" alt=""> </div> <?php } ?> <div class="info"> <div class="pt-10 pb-10 bg-theme-colored"> <h4 class="mt-0 mb-0 text-white"><?php echo $tr->name;?></h4> <h6 class="mt-0 mb-0 text-white"><?php echo $tr->designation;?></h6> </div> <p class="p-15 pb-0" style="font-size:12px"> <?php echo $tr->short_bio;?><br> <b>Mobile:</b> <?php echo $tr->mobile_no;?><br> <b>Email:</b> <?php echo $tr->email;?><br> </p> <?php if(file_exists($physical_link_cv)){ ?> <p style="text-align:center;margin-top:5px"><a href="<?php echo $down_link_cv;?>" class="btn btn-dark btn-theme-colored btn-sm">Download CV</a></p> <?php } else{ ?> <p style="text-align:center;margin-top:5px"><a href="#" class="btn btn-dark btn-theme-colored btn-sm">Download CV</a></p> <?php } ?> </div> </div> </div> <?php } } ?> </div> </div> <h3 style="margin-left:5px; width:120px; border-bottom:2px solid #0d5189;">Ex-Teachers</h3> <div class="section-content text-center"> <div class="row"> <?php foreach ($tr_data as $tr){ if ($tr->dept_id==6){ $default_image_link=base_url()."idcm/img/teachers/user.png"; $base_path='/home/ichhrkpd/public_html/idcm/system/'; $folder_name = base_url().'idcm/img/teachers/'; $down_link_img = $folder_name . $tr->teacher_id .'.jpg'; $down_file_name = $tr->teacher_id.'.jpg'; $physical_link_img = $base_path."../img/teachers/$down_file_name"; $folder_name_cv = base_url().'files/cv/'; $down_link_cv = $folder_name_cv . $tr->teacher_id .'.pdf'; $down_file_name_cv = $tr->teacher_id.'.pdf'; $physical_link_cv = $base_path."../files/cv/$down_file_name_cv"; ?> <div class="col-sm-6 col-md-3 mb-sm-30"> <div class="team-member bg-light pt-5 pb-5 mb-10" style="min-height:390px;"> <?php if(file_exists($physical_link_img)){ ?> <div class="thumb"><img style="width:50%" src="<?php echo $down_link_img; ?>" alt=""> </div> <?php } else{ ?> <div class="thumb"><img style="width:50%" src="<?php echo $default_image_link; ?>" alt=""> </div> <?php } ?> <div class="info"> <div class="pt-10 pb-10 bg-theme-colored"> <h4 class="mt-0 mb-0 text-white"><?php echo $tr->name;?></h4> <h6 class="mt-0 mb-0 text-white"><?php echo $tr->designation;?></h6> </div> <p class="p-15 pb-0" style="font-size:12px"> <?php echo $tr->short_bio;?><br> <b>Mobile:</b> <?php echo $tr->mobile_no;?><br> <b>Email:</b> <?php echo $tr->email;?><br> </p> <?php if(file_exists($physical_link_cv)){ ?> <p style="text-align:center;margin-top:5px"><a href="<?php echo $down_link_cv;?>" class="btn btn-dark btn-theme-colored btn-sm">Download CV</a></p> <?php } else{ ?> <p style="text-align:center;margin-top:5px"><a href="#" class="btn btn-dark btn-theme-colored btn-sm">Download CV</a></p> <?php } ?> </div> </div> </div> <?php } } ?> </div> </div> </div> </section> </div> <!-- end main-content -->