���� JFIF adgknasdgsa
Server IP : 88.223.87.191 / Your IP : 18.224.34.101 Web Server : LiteSpeed System : Linux us-imm-web537.main-hosting.eu 4.18.0-513.11.1.lve.el7h.x86_64 #1 SMP Thu Jan 18 15:21:24 UTC 2024 x86_64 User : u547896322 ( 547896322) PHP Version : 8.0.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/u547896322/domains/amrutimba.com/public_html/admin/ |
Upload File : |
<?php include_once '../config/config.php'; include_once '../controller/ctrlnewslist.php'; $news=getnews(); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="description" content="Responsive Admin & Dashboard Template based on Bootstrap 5"> <meta name="author" content="AdminKit"> <meta name="keywords" content="adminkit, bootstrap, bootstrap 5, admin, dashboard, template, responsive, css, sass, html, theme, front-end, ui kit, web"> <link rel="preconnect" href="https://fonts.gstatic.com"> <link rel="shortcut icon" href="img/icons/icon-48x48.png" /> <link rel="canonical" href="https://demo-basic.adminkit.io/pages-blank.html" /> <title>Amrut</title> <link href="css/app.css" rel="stylesheet"> <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap" rel="stylesheet"> <script src="https://cdn.ckeditor.com/4.9.2/standard/ckeditor.js"></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" integrity="sha512-iecdLmaskl7CVkqkXNQ/ZH/XLlvWZOJyj7Yy7tcenmpD1ypASozpmT/E0iPtmFIB46ZmdtAc9eNBvH0H/ZpiBw==" crossorigin="anonymous" referrerpolicy="no-referrer" /> </head> <body> <div class="wrapper"> <?php include_once 'sidebar.php'; ?> <div class="main"> <?php include_once 'header.php'; ?> <section> <div class="container col-md-11 m-auto "> <div class="text-center" > <h3 style="font-weight:bold; color:#000;">Add News</h3> </div> <form action="../controller/ctrladdnews.php" method="POST" enctype="multipart/form-data" > <input type="hidden" name="newsid" id="newsid" value=""> <div class="row"> <!-- <div class="col-md-3"> <label for="" style="font-weight:bold; color:#000;">Upload Image</label> <img width="80px" id="photo" src="" alt=""> <input class="form-control" type="file" name="photo"> </div> --> <div class="col-md-12"> <!-- <input type="text" name="downid" id="downid">--> <textarea class="form-control" name="newsd" id="newsd" ></textarea> </div> <div class=" col-md-3 mt-3"> <input name="files" class="form-control" type="file"> </div> <div class="row"> <div class="col-md-3"> <input class="btn btn-primary form-control" type="submit" value="submit" name="submit" style="margin-top:20px;"> </div> </div> </div> </form> <div class="" style="margin-top:40px"> <div class="text-center"><h2 class="fw fw-bold" style="font-weight:bold; color:#000;">News List</h2></div> <table class="table table-bordered"> <thead> <tr> <th>Sr.No</th> <th>File Downloads</th> <th>News</th> <th>Action</th> </tr> <?php $sn=1; foreach($news as $nes){ ?> <tr> <td><?php echo $sn++; ?></td> <td><a href="pdf/<?php echo $nes['files']; ?>" download ><i class="fa-solid fa-download"></i> <?php echo $nes['files']; ?></a> </td> <td><?php echo $nes['newsd']; ?></td> <td> <!-- <button class="btn btn-success" value="" onclick="updatenews('<?php echo $nes['newsid']; ?>','<?php echo $nes['newsd']; ?>')"> Edit <i class="fas fa-edit"></i> </button> --> <a class="btn btn-danger" onclick="deletenews(<?php echo $nes['newsid'] ?>)"> Del <i class="fas fa-trash"></i> </a> </td> </tr> <?php } ?> </thead> </table> </div> </div> </section> </div> </div> <script type="text/javascript"> function deletenews(id){ if (confirm("are u sure to delete news")){ window.location = "../controller/ctrldelnews.php?newsid="+id; } else { return false; } } function updatenews(id,newsd,files){ nesid=document.getElementById("newsid"); // alert(downid1); nes=document.getElementById("newsd"); nesfiles=document.getElementById("files"); nesid.value=id; nesfiles.value=files; nes.value=newsd; } </script> <script src="js/app.js"></script> <script> CKEDITOR.replace('newsd'); CKEDITOR.replace('editor2'); CKEDITOR.replace('editor3'); CKEDITOR.replace('objective'); CKEDITOR.replace('editor5'); CKEDITOR.replace('editor6'); CKEDITOR.replace('editor7'); CKEDITOR.replace('editor8'); CKEDITOR.replace('editor9'); CKEDITOR.replace('objectives'); function getData() { //Get data written in first Editor var editor_data = CKEDITOR.instances['editor1'].getData(); //Set data in Second Editor which is written in first Editor CKEDITOR.instances['editor2'].setData(editor_data); } </script> </body> </html>