<?php
session_start();
if(!isset ($_SESSION['user_id'])){
    header("Location:../login.php?msg=Log in first");
    exit();
}else{
	include('../Server/connection.php');
	include('includes/session.php');
	echo "<div class='div-request div-hide'>add</div>";		
?>
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <!-- Meta, title, CSS, favicons, etc. -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <?php
  include 'title.php';
         ?>
   
	 <link type = "image/png" rel="icon" href="images/brvision.png" />
	
	
    <!-- Bootstrap must-->
    <link href="../vendors/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
	
    <!-- Font Awesome must-->
    <link href="../vendors/font-awesome/css/font-awesome.min.css" rel="stylesheet">
	
	<!-- custom css -->
    <link rel="stylesheet" href="custom/css/custom.css">
	
    <!-- NProgress must-->
    <link href="../vendors/nprogress/nprogress.css" rel="stylesheet">
	
    <!-- Custom Theme Style must-->
    <link href="../build/css/custom.min.css" rel="stylesheet">
	
	<!-- must-->
	<script src="assests/jquery/jquery.min.js"></script>
	
  <!-- jquery ui -->  
  <link rel="stylesheet" href="assests/jquery-ui/jquery-ui.min.css">
  <script src="assests/jquery-ui/jquery-ui.min.js"></script>
	
  <!-- Must Bootstrap -->
    <script src="../vendors/bootstrap/dist/js/bootstrap.min.js"></script>
	
	
   <!-- Must -->
    <script src="custom/js/addFiles.js"></script>

<style>	
	.text-center {
  font-size: 20px;
  /*font-weight: 100;*/
  font-family: "Roboto", sans-serif;
  text-transform: uppercase;
  color: #3366cc;
}
</style>
	
  </head>

  <body class="nav-md">
  
    <div class="container body">
	
      <div class="main_container">
        <div class="col-md-3 left_col">
          <div class="left_col scroll-view">
		  
            <?php  
		include 'includes/role.php';
               ?>

            <div class="clearfix"></div>
            
			<?php
            include 'includes/profile.php';
			print '</br></br>';
			include 'includes/menu.php';
			$staff_id = $_GET['i'];
			?>
			
			

           

        <!-- page content -->
        <div class="right_col" role="main">
          <div class="">
		  
			
			
            <div class="clearfix"></div>

            <div class="row">
              <div class="col-md-12 col-sm-12 col-xs-12">
                <div class="x_panel">
                  <div class="x_title">
				  
                    <a href="staffDocs.php?i=<?php echo $staff_id; ?>">  <h2><span class="glyphicon glyphicon-step-backward"></span> Back</h2></a>
					
					
                    <ul class="nav navbar-right panel_toolbox">
                      <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
                      </li>
                      
                      
                    </ul>
                    <div class="clearfix"></div>
                  </div>
				  
				  <div class="text-center mt-5 mb-5">
				  <u> Add File (s) </u>
				  </div>
				  
				</br></br>
				  
                 <div class="x_content" style="overflow: auto;">
				 
				 <?php if (isset($_SESSION['success_message']) && !empty($_SESSION['success_message'])) { ?>
                        <div class="success-message" style="margin-bottom: 20px;font-size: 20px;color: green;"><?php echo $_SESSION['success_message']; ?></div>
                        <?php
                        unset($_SESSION['success_message']);
                    }
                    ?>
				 
			                    
				 <div class="success-messages"></div> <!--/success-messages-->
				 
			  <form class="form-horizontal" method="POST" enctype="multipart/form-data" action="php_action/addStaffFiles.php" id="createOrderForm">
			  
		      <input type="hidden" name="staff_id" value="<?php echo $staff_id; ?>">
			  
			  <div class="controls">
			  <div class="row">
			  
			  <div class="col-sm-3">
			  <div class="form-group">
		      
			  </div>
			  </div>

			  <div class="col-sm-6">
			  <div class="form-group">
			  
              <label for="form_name">Upload File (s) - Optional </label>
			  <input  type="file" name="file[]"   class="form-control" style="width:100%;margin-left:0%;" multiple>

			  
              </div>
			  </div>
			  
			  
			  <div class="col-sm-3">
			  <div class="form-group">
			  


			  
              </div>
			  </div>
			  
			  
			  
			  </div>	  
              </div>
			  
			</br></br>
			
			  <div class="form-group submitButtonFooter">
			    <div class="col-sm-12">
				 <!--<button type="button" class="btn btn-default" onclick="addRow()" id="addRowBtn" data-loading-text="Loading..."> <i class="glyphicon glyphicon-plus-sign"></i> Add Row </button>-->
			     <button type="submit" id="createOrderBtn" data-loading-text="Loading..." class="btn btn-success"><i class="glyphicon glyphicon-ok-sign"></i> Upload </button>
                 
			    </div>
			  </div>
			  
			  
			</form>
	
					
				</div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <!-- /page content -->
		
		
		<?php
		include 'includes/footer.php';
		?>
		
        
      </div>
    </div>

    <!-- Must Custom Theme Scripts -->
    <script src="../build/js/custom.min.js"></script>
	
	<!-- file input -->
	<script src="assests/plugins/fileinput/js/plugins/canvas-to-blob.min.js'); ?>" type="text/javascript"></script>	
	<script src="assests/plugins/fileinput/js/plugins/sortable.min.js" type="text/javascript"></script>	
	<script src="assests/plugins/fileinput/js/plugins/purify.min.js" type="text/javascript"></script>
	<script src="assests/plugins/fileinput/js/fileinput.min.js"></script>	


	<!-- DataTables -->
	<script src="assests/plugins/datatables/jquery.dataTables.min.js"></script>
    
	
    

  </body>
</html>



<?php
}
?>