<?php 
include ('../ro_head.php'); 

include ('methodlist.php');

if($newarr[6]=="NO") {
	  header('location:dashboard.php');  
}

?>

<!-- BEGIN PAGE LEVEL STYLES -->




<!-- END THEME STYLES -->



<link rel="shortcut icon" href="favicon.ico"/>



</head>



<script type="text/javascript">





</script>

<!-- END HEAD -->


<?php //include("ro_header.php"); ?>


<!-- BEGIN CONTAINER -->



<div class="page-container">



<?php include_once("../ro_sidebar.php"); ?>



	



	<!-- BEGIN CONTENT -->



	<div class="page-content-wrapper">



		<div class="page-content">



			<!-- BEGIN SAMPLE PORTLET CONFIGURATION MODAL FORM-->
	

			<!-- BEGIN PAGE CONTENT-->



			<div class="row">



				<div class="col-md-12">	



				<?php 



									if(isset($_GET['msg'])){	



										



										if($_GET['msg']==2){





								echo "<div class='note note-success'><p>



								All document status has been updated.



								</p></div>";



								} 



							}          		

							 



						?>					



					<form name="addproduct" class="form-horizontal form-row-seperated" action="docposstatusall.php" method="post">



						<div class="portlet">



							<div class="portlet-body">



								<div class="tabbable">



									<ul class="nav nav-tabs">



										<li class="active">



											<a href="#tab_general" data-toggle="tab">



											Update Document Status </a>



										</li>

									</ul>



									<div class="tab-content no-space">



										<div class="tab-pane active" id="tab_general">



											<div class="form-body">






					<div class="form-group">
								
                            <div class="form-group">



								<label class="col-md-3 control-label">
									Document Status: <span class="required">* </span>
								</label>



								<div class="col-md-4">
									<?php 
									//include('../db_con.php');

// 									if (mysqli_ping($con)) {
//     printf ("Our connection is ok!\n");
// } else {
//     printf ("Error: %s\n", mysqli_error($link));
// }


// 									 $rs22 = mysqli_query($con,"select * from doc_position_table");
//                                 $row22=mysqli_fetch_array($rs22);
//                                 echo "Hello".$row22["docp_name"];
                                ?>
									<select name="docpos_id" class="form-control" required>
                                  	<option value="">- select -</option>
                                <?php    
                                //echo $con;

                                $rs2 = mysqli_query($con,"select * from doc_position_table where docp_status=1 order by docp_name ASC");
                                while($row2=mysqli_fetch_array($rs2)){ 

                                  
                                        echo "<option value='".$row2["docp_id"]."'";

                                       // if($row["pstatus"]==$row2["docp_id"]) echo " selected";

                                        echo ">".$row2["docp_name"]."</option>";

                                         } 
                                         ?>
                                    </select>
								</div>

							</div>


                        </div>

                        
                        <div class="form-group">


							<div class="form-group">



								<label class="col-md-3 control-label">
									IDs: <span class="required">* </span>
								</label>



								<div class="col-md-4">
									<select name="idtype" class="form-control" required>
                                  		<option value="">- select -</option>
                                  		<option value="1"> UID </option>
                                  		<option value="2"> Passport No </option>
                                    </select>
								</div>

							</div>
							
						</div>

						<div class="form-group">


							<div class="form-group">



								<label class="col-md-3 control-label">
									Separated by new lines: <span class="required">* </span>
								</label>



								<div class="col-md-4">
									<textarea class="form-control" name="updateids" rows="8" required></textarea>
								</div>

							</div>
							
						</div>
						 	
						
		                <div class="form-group">



		                	<label class="col-md-3 control-label" ></label>



		                	<input type='hidden' name='actionid' value='docstsupdate'>



		                  <div class="col-md-4"><button class="btn green"><i class="fa fa-check"></i> Update</button></div>



		                </div>	

					</div>



				</div>





									</div>



								</div>



							</div>



						</div>



					</form>



				</div>



			</div>



			<!-- END PAGE CONTENT-->



		</div>



	</div>



	<!-- END CONTENT -->






	</div>



<!-- END CONTAINER -->



<!-- BEGIN FOOTER -->



<?php include_once("../ro_footer.php"); ?>







<!-- END FOOTER -->



<!-- BEGIN JAVASCRIPTS(Load javascripts at bottom, this will reduce page load time) -->



<!-- BEGIN CORE PLUGINS -->



<!--[if lt IE 9]>



<script src="../assets/global/plugins/respond.min.js"></script>



<script src="../assets/global/plugins/excanvas.min.js"></script> 



<![endif]-->

<?php include_once("../ro_js.php"); ?>

<!-- END PAGE LEVEL SCRIPTS -->



<script>



        jQuery(document).ready(function() {    



           Metronic.init(); // init metronic core components



Layout.init(); // init current layout



QuickSidebar.init(); // init quick sidebar



Demo.init(); // init demo features





        });



    </script>



<!-- END JAVASCRIPTS -->



</body>



<!-- END BODY -->



</html>
