<? 
 require_once('bbs.php');
 require_once('bb.php');
?>
     <div class="content-page">
      <div class="container-fluid">
     <div class="container-fluid add-form-list">
         
        <div class="row">
            <div class="col-sm-12">

               
               
             <?
                      $dbc=mysqli_connect("localhost", "theulti4_3020p", "@@@2050@@ultim#&!#","theulti4_pos");                          
				$y = mysqli_query($dbc,("select * from categories"));

				echo '  <div class="card-body">
                                                                        <form method="POST" action="best_ccb.php" autocomplete="off">
                                                                        <div class="col-sm-6">
                                    <div class="form-group">
																		        <label class="text-success">Category</label>
                                                                     <select name="id" class="form-control" required title="Client type">
                                                       
                                                            <option></option>
                                                    ';

				while ($row = mysqli_fetch_array($y))
				{
								$id = $row['id'];
								$name = $row['name'];
								echo "<option value=$id>$name</option>";
				}
				echo '</select></div></div>';

				echo ' <div class="col-sm-6">
                                    <div class="form-group">
                                                                            <label class="text-success">Start Date</label>
                                                                            <input type="date" class="form-control" name="date1" autofocus value=""  placeholder="Enter Account name."
																			title="Enter Account name." required  />
                                                                                    
                                                                   </div></div>';

																	echo ' <div class="col-sm-6">
                                    <div class="form-group">
                                                                            <label class="text-success">End Date</label>
                                                                            <input type="date" class="form-control" name="date2" autofocus value=""  placeholder="Enter Account name."
																			title="Enter Account name." required  />
                                                                                    
                                                                   </div></div>	

                                                         
                                                                            <input type="hidden" name="submitted" value="TRUE">
                                                                            <button name="ledger" class="btn btn-secondary mr-2">Proceed</button>
                                                                        </form>';
                                                                    
                                                        
														mysqli_close($dbc);
                                                        ?>
                                                                    
                    </div></div>  </div></div>   </div>   </div></div>  </div>                          
													
       
       </div>
      </div>
    </div>
    <!-- Wrapper End-->
    <footer class="iq-footer">
        <div class="container-fluid">
            <div class="row">
                <div class="col-lg-6">
                    <ul class="list-inline mb-0">
                        <li class="list-inline-item"><a href="../backend/privacy-policy.html">Privacy Policy</a></li>
                        <li class="list-inline-item"><a href="../backend/terms-of-service.html">Terms of Use</a></li>
                    </ul>
                </div>
                <div class="col-lg-6 text-right">
                    <span class="mr-1">
                        Copyright
                        <script>document.write(new Date().getFullYear())</script>© <a href="#" class="">Datum</a>
                        All Rights Reserved.
                    </span>
                </div>
            </div>
        </div>
    </footer>    <!-- Backend Bundle JavaScript -->
    <script src="js/backend-bundle.min.js"></script>
    <!-- Chart Custom JavaScript -->
    <script src="js/customizer.js"></script>
    
    <script src="js/sidebar.js"></script>
    
    <!-- Flextree Javascript-->
    <script src="js/flex-tree.min.js"></script>
    <script src="js/tree.js"></script>
    
    <!-- Table Treeview JavaScript -->
    <script src="js/table-treeview.js"></script>
    
    <!-- SweetAlert JavaScript -->
    <script src="js/sweetalert.js"></script>
    
    <!-- Vectoe Map JavaScript -->
    <script src="js/vector-map-custom.js"></script>
    
    <!-- Chart Custom JavaScript -->
    <script src="js/chart-custom.js"></script>
    <script src="js/charts/01.js"></script>
    <script src="js/charts/02.js"></script>
    
    <!-- slider JavaScript -->
    <script src="js/slider.js"></script>
    
    <!-- Emoji picker -->
    <script src="vendor/emoji-picker-element/index.js" type="module"></script>
    
    
    <!-- app JavaScript -->
    <script src="js/app.js"></script>  </body>
</html>