include 'sitebar.php';
?>
            <div class="col-sm-9 padding-right">
                <div class="category-tab" ><!--category-tab-->
                    
                    <div class="tab-content">
                        <form id="form_background" action="#" method="POST" enctype="multipart/form-data">
                            <table height="680" align="center" width="80%">
                                <tr>  
                                    <td id="label">Choose the document types</td>
                                    <td >
                                        <select id="text" name="doc_type_id">
                                            <option  value="">Types of document</option>
                                            <?php 
$documentcategoeyObj = new DocumentCategory();
$rows = $documentcategoeyObj->getAll();
foreach ($rows as $row) {
    ?>
                                              <option value="<?php 
    echo $row['id'];
    ?>
"><?php 
    echo $row['name'];
    ?>
 </option>
                                              <?php 
}
?>
                                        </select>
                                    </td>   
                                </tr>
                        Add Data
                    </a><br/><br/>
                    <table class="table table-striped table-bordered bootstrap-datatable datatable responsive">
                        <thead>
                            <tr>
                                <th>Id</th>
                                <th>Type Document Name </th>
                                <th> Category Name</th>
                                <th>Status</th>
                                <th>Actions</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php 
$documentcategorytObj = new DocumentCategory();
$rows = $documentcategorytObj->getAll();
foreach ($rows as $row) {
    ?>
  

                                <tr>
                                    <td><?php 
    echo $row['id'];
    ?>
</td>
                                    <td class="center"><?php 
    echo $row['DocumentType_name'];
    ?>
</td>
                                    <td><?php 
    echo $row['name'];