EVOLUTION-NINJA
Edit File: view_other_digidocuments.php
<?php echo view('includes/header');?> <section class="content-header"> <h1><?php echo $projects->project_name.' - '; ?> Other Documents </h1> </section> <!--- section 1 --> <section class="content"> <div class="row"> <?php if(! empty($projects)) { if($projects->other_image != "") { $prev_con_docs = $projects->other_image; $prev_con_docs1 = json_decode($prev_con_docs); if(!empty($prev_con_docs1)) { foreach($prev_con_docs1 as $key=>$val) { if(!empty($val)) { if(!empty($val->image)) { $extenstion = substr(strrchr($val->image, "."), 1); //jpg if($extenstion == 'jpg' || $extenstion == 'png' || $extenstion == 'jfif' || $extenstion == 'txt') { ?> <div class="col-md-6" style="height:400px;margin-top:20px;margin-bottom:20px;"> <img width="100%" height="100%" src="<?php echo base_url('public/documentation_other_uploads')?>/<?php echo $val->image;?>"> <h3><?php echo $val->name; ?></h3> <a href="<?php echo base_url('public/documentation_other_uploads')?>/<?php echo $val->image;?>" class="btn btn-primary" style="padding: 2px 5px !important;" target="_blank">view more</a> </div><br/><br/> <?php } else if($extenstion == 'pdf') { ?> <div class="col-md-6" style="height:400px;margin-top:20px;margin-bottom:20px;"> <a href="<?php echo base_url('public/documentation_other_uploads')?>/<?php echo $val->image;?>" target="_blank"><embed type="application/pdf" style="width:100%;height:250px;" src="<?php echo base_url('documentation_other_uploads')?>/<?php echo $val->image;?>" ></embed></a> <h3><?php echo $val->name; ?></h3> <a href="<?php echo base_url('public/documentation_other_uploads')?>/<?php echo $val->image;?>" class="btn btn-primary" style="padding: 2px 5px !important;" target="_blank">view more</a> </div> <?php } } } } } } } else { echo "No Documents Found"; } ?> </div> </section> <!--- section 2 --> <script type="text/javascript"> </script> <style type="text/css"> </style> <?php echo view('includes/footer');?>