Mini Shell

Direktori : /home/athamevents/public_html/admin/
Upload File :
Current File : /home/athamevents/public_html/admin/work_view.php

<?php include'header.php'; ?>

        <?php include'menu.php'; ?>



<?php

 
 $id=$_REQUEST["pp1"];

?>
         <!-- /#Start -->
          
       <!-- /#Start -->
          
      </div><!-- /#left -->
        
      <div id="content">
        <div class="outer">
          <div class="inner bg-light lter">
            <style>
              .form-control.col-lg-6 {
                width: 50% !important;
              }
            </style>
              
              <script>
                    var cn=<?php  echo $id ?>;
                    
             function  workadd()
               {
                  
                 window.location.href="work_pic_view.php?pp1="+ cn; 
               }
              
             function  workview()
               {
                 window.location.href="work_pic_edit.php?wid="+ cn; 
               }
                  
                    function  workview_more()
               {
                 window.location.href="work_pic_view.php?pp1="+ cn; 
               }
              </script>
              
              
              <script>
             function  back()
               {
                 window.location.href="all_works.php";  
               }
              </script>
              
            <div class="row">
              <div class="col-lg-12">
                <div class="box">
                  <header class="dark">
                    <div class="icons">
                      <i class="fa fa-check"></i>
                    </div>
                  <h5>Work & Events View</h5>

                    <!-- .toolbar -->
                    <div class="toolbar">
                      <nav style="padding: 8px;">
                        <a href="javascript:;" class="btn btn-default btn-xs collapse-box">
                          <i class="fa fa-minus"></i>
                        </a> 
                        <a href="javascript:;" class="btn btn-default btn-xs full-box">
                          <i class="fa fa-expand"></i>
                        </a> 
                        <a href="javascript:;" class="btn btn-danger btn-xs close-box">
                          <i class="fa fa-times"></i>
                        </a> 
                      </nav>
                    </div><!-- /.toolbar -->
                  </header>
                    
  
                    
                    
                      <div id="collapse2" class="body">
                    <form class="form-horizontal" id="popup-validation" action="work_edit.php" method="post">
                        
                        
                      <?php
	 $produc1=mysql_query("select * from work where id='$id'");
while($produc1fetch=mysql_fetch_row($produc1))
{       		       	
	 
	 ?>
                        
                       <div class="form-group">
                        <label class="control-label col-lg-4">Image</label>
                        <div class="col-lg-8">
                          <div class="fileinput fileinput-new" data-provides="fileinput">
                            <div class="fileinput-preview thumbnail" data-trigger="fileinput" style="width: 200px; height: 150px;">
                              
                                 <?php 
if($produc1fetch[4])
{
   ?>   
	 <img src="work_pic/<?php echo $produc1fetch[4];?>"  align="right"  class="img"/>
	  <?php }
				   else
				   {?>  	<img src=""  align="right" class="img"/>
				   <?php }  ?>


                                
                              </div>
                            
                          </div>
                        </div>
                      </div>
                        
                      <div class="form-group">
                        <label class="control-label col-lg-4">Heading :</label>
                        <div class="col-lg-4">
                          <input type="text" value="<?php echo $produc1fetch[1];?>" class="validate[required] form-control" name="req" id="req" disabled>
                        </div>
                      </div>
                      
                      
                      
                     <div class="form-group">
                        <label class="control-label col-lg-4">Content:</label>
                        <div class=" col-lg-12">
                         
                          <textarea id="autosize" class="form-control" name="details" required disabled style="min-height:221px;"><?php echo $produc1fetch[2];?></textarea>
                        </div>
                      </div>
                    
                        
                        <div class="form-group">
                        <label class="control-label col-lg-4">Post By :</label>
                        <div class="col-lg-4">
                          <input type="text"  class="validate[required] form-control" name="postby" value="<?php echo $produc1fetch[5];?>"  id="req" required disabled>
                        </div>
                      </div>
                        
                        
                     <input type="hidden" value="<?php echo $id; ?>" name="id"/>
                      
                      <div class="form-actions no-margin-bottom" align="center">
                        <input type="submit" value="Edite" class="btn btn-primary">
                            <input type="hidden" value="Add Pictures" class="btn btn-primary" onclick="workadd();">
                            <input type="hidden" value="View Pictures" class="btn btn-primary" onclick="workview();">
                          
               <input type="button" value="Add More Pic" class="btn btn-success" onclick="workview_more();">
               <input type="button" value="Back" class="btn btn-primary" onclick="back();">
                      </div>
                    
                        
                        <?php
		}
		?>
                        
                        
                    </form>
                          
                          <form class="form-horizontal" id="popup-validation" action="work_delete.php" method="post">
                               <div class="form-actions no-margin-bottom" align="center">
                                   <input type="hidden" value="<?php echo $id; ?>" name="id"/>
                          <input type="submit" value="Delete" class="btn btn-primary" >
                              </div>
                          </form>
                          
                  </div>
                </div>
              </div><!-- /.col-lg-12 -->
            </div><!-- /.row -->
           
              
              
            
          </div><!-- /.inner -->
        </div><!-- /.outer -->
      </div><!-- /#content -->
      
    </div><!-- /#wrap -->


        
     

      
              <?php include'footer.php'; ?>
      
  

Zerion Mini Shell 1.0