<?php include("parent/callMe.php"); ?>
<?php include("sessioncheck.php"); ?>

<?php include('RootMe/css_links.php');?>

<?php 

$m->where("suggest_id", $_REQUEST['suggest_id']);  

$WorkAssignListings = $m->get("eduportal_suggestions_center");

$query="select * From eduportal_modules_detail where modules_id=".$WorkAssignListings[0]['module_id'];
$modules = $m->query($query);

$cell_number=$WorkAssignListings[0]['cell_no'];

?>
<style type="text/css">

h1 {

  text-align: center;

  font-family: Tahoma, Arial, sans-serif;

  color: #333333;

  margin: 16px 0;

}

.popup .content {

  max-height: 30%;

  overflow: auto;

}

</style>



<h3><?php echo $WorkAssignListings[0]['suggest_title'];?></h3>

<div class="content">

  
         <div class="col-md-12" style="padding: 8px;">

          <div style="font-size: 14px;">
            <div class="col-md-4" style="float: left;"> Module: <?php echo $modules[0]['modules_name'];?> </div>
            <div class="col-md-3" style="float: left;">Priority: <?php echo $WorkAssignListings[0]['priority'];?></div>
            <div class="col-md-3" style="float: left;">Staus: 

                <?php if($WorkAssignListings[0]['status']==0 || $WorkAssignListings[0]['status']=="0"){ ?>    

                        <a style="padding: 0px 5px;"  class="btn btn-danger">Pending</a> 
                  
                   <?php } else { ?>    

                    <a style="padding: 0px 5px;" class="btn btn-success">Done </a>  &nbsp;&nbsp;

                  Completed:  <?php echo date("d-M-Y",strtotime($WorkAssignListings[0]['approval_date'])); } ?>  

            </div>
          </div>

          <br><br>

          <h3>Description</h3>
          <p style="text-align: justify;"><?php echo $WorkAssignListings[0]['description'];?></p>



          <h3>View Image/File</h3>
             

            <a target="_blank" href="https://apps.eduportal-pk.com/EduPortal/Production/Ticketimages/<?php echo $WorkAssignListings[0]['images'];?>" >       
                
                <?php
             $extention=substr($WorkAssignListings[0]['images'],-4);        
              if($extention==".jpg" || $extention==".JPEG") { ?>

                <img style="height:250px;width:100%;" src="https://apps.eduportal-pk.com/EduPortal/Production/Ticketimages/<?php echo $WorkAssignListings[0]['images'];?>"  />
                
              <?php }  else if($extention==".png" || $extention==".PNG") {?>

            <img style="height:250px;width:100%;" src="https://apps.eduportal-pk.com/EduPortal/Production/Ticketimages/<?php echo $WorkAssignListings[0]['images'];?>"  />

              <?php  } else if($extention==".pdf" || $extention==".PDF") { ?> 
              
              </a>


          <a class="btn btn-success" target="_blank" href="https://apps.eduportal-pk.com/EduPortal/Production/Ticketimages/<?php echo $WorkAssignListings[0]['images'];?>">Download file</a>
          <?php } else {echo "No Attachment..."; }?>


                
          </div> 

        




</div>




