</li>
    </ul>
</div>

<div class="row">
    <div class="box col-md-12">
        <div class="box-inner">
            <div class="box-header well" data-original-title="">
                <h2><i class="glyphicon glyphicon-edit"></i>Type Of Document Form</h2>
                
            </div>
            <div class="box-content">
                  <?php 
$id = Request::get("id");
if (is_numeric($id) && $id > 0) {
    $TypeOfDocumentObj = new TypeOfDocument();
    $TypeOfDocumentObj->set("id", $id);
    $result = $TypeOfDocumentObj->getName();
    if (count($result)) {
        $row = $result[0];
        $id = $row['id'];
        $name = $row['name'];
        $active = $row['active'];
    }
}
?>
                <form action="" method="POST">
                    <table style="margin-left: 20%;" width="100%" >
                        <tr>
                            <td><label class="control-label" for="selectError">Type Of Document</label></td>
                            <td><div class="input-group" style="width: 50%">
        <a class="btn btn-info" href="add doc_type.php">
                <i class="glyphicon glyphicon-edit icon-white"></i>
                Add Data
            </a><br/><br/>
    <table class="table table-striped table-bordered bootstrap-datatable datatable responsive">
    <thead>
    <tr>
        <th>Id</th>
        <th>Category </th>
        <th>Status</th>
        <th>Actions</th>
    </tr>
    </thead>
    <tbody>
        <?php 
$TypeOfDocumentObj = new TypeOfDocument();
$rows = $TypeOfDocumentObj->getAll();
foreach ($rows as $row) {
    ?>
  

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