One Hat Cyber Team
Your IP :
3.129.17.245
Server IP :
192.185.194.254
Server :
Linux raider.websitewelcome.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
Server Software :
Apache
PHP Version :
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home2
/
glenar
/
public_html
/
web
/
Panel
/
Pages
/
Users
/
View File Name :
users.php
<?php ob_start(); session_start(); include("../../fanction.php"); $General->AjaxCheckLogin('1'); ?> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <link rel="stylesheet" href="../../css/bootstrap.min.css"> <link rel="stylesheet" href="../../css/bootstrap-rtl.min.css"> <link rel="stylesheet" href="../../css/reset.css"> <link rel="stylesheet" href="../../css/dataTables.bootstrap.min.css"> <link rel="stylesheet" href="../../css/bootstrap-datepicker.min.css" /> <link rel="stylesheet" href="../../css/index.css"> <link rel="stylesheet" href="../../css/font-awesome.css" media="screen"> <title>Vblog - Author</title> </head> <body> <?php include("../../header.php"); ?> <div class="container" style="width: 100%; min-height: 100%;"> <div class="row" style="border-right: 72px solid #383A3F;"> <!-- tools start --> <?php include("../../menu.php"); ?> <!-- tools end --> <!-- main start --> <div class="pull-left main-content"> <div class="clear" style="padding-bottom: 20px;"></div> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading">Users</div> <div class="panel-body"> <!-- --> <?php if(isset($_GET['action'],$_GET['CID']) && $_GET['CID'] != "" && $_GET['action'] == "del"){ $result = $Users->DeleteAdmin($_GET['CID'],''); $array = json_decode($result,true); echo $array['message']; } ?> <div id="w1" class="grid-view"> <div class="col-md-12"> <form class="do-ajax" method="post" action="../../ajax/user_option.php" name="login_form" enctype="multipart/form-data"> <div class="row"> <?php if(isset($_GET['action'],$_GET['CID']) && $_GET['CID'] != "" && $_GET['action'] == "edit") { $ID = $_GET['CID']; $Category_select = $Users->SelectAdmins($ID,'','','','','','','1'); $row_Category_select = mysqli_fetch_assoc($Category_select); ?> <div class="col-md-6"> <div class="form-group"> <label for="inputState">نام </label> <input type="text" name="Name" class="form-control" id="usr" value="<?php echo $row_Category_select['Name']; ?>" placeholder=" Name"> </div> </div> <div class="col-md-6"> <div class="form-group"> <label for="inputState">درباره نویسنده </label> <textarea type="text" name="About" class="form-control" id="usr" placeholder=""><?php echo $row_Category_select['About']; ?></textarea> </div> </div> <div class="col-md-6"> <div class="form-group"> <label>انتخاب پروفایل</label> <input type="file" class="form-control" name="Pic"> </div> </div> <input name="ID" type="hidden" value="<?php echo $_GET['CID']; ?>"/> <input name="action" type="hidden" value="edit"/> <?php }else{ ?> <div class="col-md-6"> <div class="form-group"> <label for="inputState">نام </label> <input type="text" name="Name" class="form-control" id="usr" placeholder=" Name"> </div> </div> <div class="col-md-6"> <div class="form-group"> <label for="inputState">درباره نویسنده </label> <textarea type="text" name="About" class="form-control" id="usr" placeholder=""></textarea> </div> </div> <div class="col-md-6"> <div class="form-group"> <label>انتخاب پروفایل</label> <input type="file" class="form-control" name="Pic"> </div> </div> <input name="action" type="hidden" value="insert"/> <?php } ?> </div> <button href="#" class="btn btn-login" role="button">Insert</button> <hr> </form> </div> </div> <!-- --> </div> </div> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"> Users List </div> <div class="panel-body"> <!-- --> <div id="w1" class="grid-view"> <div class="col-md-12"> <table id="example" class="table table-striped table-bordered" style="width:100%"> <thead> <tr> <th>عنوان</th> <th>تصویر</th> <th>عملیات</th> </tr> </thead> <tbody> <?php $list_Category = $Users->SelectAdmins('','','2','','','','',''); $i = 0; while ($row_Category = mysqli_fetch_assoc($list_Category)){ $i++;?> <tr> <td> <?php echo $row_Category['Name']; ?> </td> <td><img src="../../../upload/<?php echo $row_Category['Profile']; ?>" alt="" width="80" height="80" class="avatar photo"></td> <td> <a href="?action=del&CID=<?php echo $row_Category['ID']; ?>" > <button type="button" class="btn btn-danger">حذف</button></a> <a href="?action=edit&CID=<?php echo $row_Category['ID']; ?>" > <button type="button" class="btn btn-info">ویرایش</button></a> </td> </tr> <?php } ?> </tfoot> </table> </div> </div> <!-- --> </div> </div> </div> </div> </div> <!-- main end --> </div> </div> <?php include('../../footer.php'); ?> <script src="../../js/jquery-2.2.3.min.js"></script> <script src="../../js/bootstrap.min.js"></script> <script src="../../js/chart.bundle.min.js"></script> <!-- <script src="js/chart_config.js"></script> --> <script src="../../js/mycode.js"></script> <script src="../../js/jquery.dataTables.min.js"></script> <script src="../../js/dataTables.bootstrap.min.js"></script> <script> $(document).ready(function() { $('#example').DataTable(); } ); $(document).ready(function() { $(".datepicker0").datepicker(); }); $(document).ready(function () { var counter = 1; var datecounter = 5; $("#addrow").on("click", function () { var newRow = $("<tr>"); var cols = ""; cols += '<td></td>'; cols += '<td><input type="text" class="form-control" name="sessions['+counter+'][]"/></td>'; cols += '<td><input type="number" class="form-control" name="sessions['+counter+'][]"/></td>'; cols += '<td><input type="button" class="ibtnDel btn btn-md btn-danger" value=" - "></td>'; newRow.append(cols); $("table.order-list").append(newRow); counter++; datecounter++; $(".datepicker1").datepicker(); }); $("table.order-list").on("click", ".ibtnDel", function (event) { $(this).closest("tr").remove(); counter -= 1 }); }); function calculateRow(row) { var price = +row.find('input[name^="price"]').val(); } function calculateGrandTotal() { var grandTotal = 0; $("table.order-list").find('input[name^="price"]').each(function () { grandTotal += +$(this).val(); }); $("#grandtotal").text(grandTotal.toFixed(2)); } </script> </body> </html>