uawdijnntqw1x1x1
IP : 216.73.216.26
Hostname : server.wtmmart.in
Kernel : Linux server.wtmmart.in 4.18.0-553.45.1.el8_10.x86_64 #1 SMP Wed Mar 19 09:44:46 EDT 2025 x86_64
Disable Function : exec,passthru,shell_exec,system
OS : Linux
PATH:
/
home2
/
wtmwscom
/
public_html
/
themes8356.wtmwebshop.com
/
..
/
admin
/
news.php
/
/
<?php $title = "News"; include 'header.php'; include_once('lib/ps_pagination.php'); ?> <div class="container-fluid"> <?php echo getMessage(); ?> <div class="row"> <div class="col-sm-12"> <div class="page-title-box"> <h4 class="page-title"><b>Add News</b></h4> <ol class="breadcrumb"> <li class="breadcrumb-item"><a href="index.php">Home</a></li> <li class="breadcrumb-item"><a href="">News</a></li> <li class="breadcrumb-item active">Add News</li> </ol> </div> </div> </div> <!-- end row --> <div class="row"> <div class="col-12"> <div class="card m-b-20"> <div class="card-body"> <form name="form" id="form" action="news_model.php" method="post" enctype="multipart/form-data"> <div class="form-group row"> <!-- <label for="example-text-input" class="col-sm-2 col-form-label">Text</label>--> <label class="col-sm-2 col-form-label"for="title">Title<span>*</span></label> <!-- <label class="col-sm-2 col-form-label" for="dob"> Name<span>*</span></label>--> <div class="col-sm-10"> <input class="form-control" type="text" name="title" id="title" required="required" maxlength="50"> </div> </div> <div class="form-group row"> <label class="col-sm-2 col-form-label" for="news">News </label> <div class="col-sm-10"> <textarea class="form-control"name="news" id="news" required="required" maxlength="500" style="width: 300px;"></textarea> </div> </div> <div class="form-group"> <div> <button name="submit" type="submit" id="submit" value="Add" class="btn btn-primary waves-effect waves-light"> Submit </button> </div> </div> </form> </div> </div> </div> <!-- end col --> </div> <!-- end row --> </div> <!-- container-fluid --> <div class="container-fluid"> <?php echo getMessage(); ?> <div class="row"> <div class="col-sm-12"> <div class="page-title-box"> <h4 class="page-title">View News</h4> <ol class="breadcrumb"> <li class="breadcrumb-item"><a href="index.php">Home</a></li> <li class="breadcrumb-item"><a href="">News</a></li> <li class="breadcrumb-item active">View News</li> </ol> <!-- <div class="state-information d-none d-sm-block"> <div class="state-graph"> <div id="header-chart-1"></div> <div class="info">Balance $ 2,317</div> </div> <div class="state-graph"> <div id="header-chart-2"></div> <div class="info">Item Sold 1230</div> </div> </div>--> </div> </div> </div> <div class="row"> <div class="col-lg-12"> <div class="card m-b-20"> <div class="card-body"> <!-- <h4 class="mt-0 header-title">Basic example</h4> <p class="text-muted m-b-30">For basic styling—light padding and only horizontal dividers—add the base class <code>.table</code> to any <code><table></code>. </p>--> <table class="table mb-0 table-bordered table-striped"> <thead> <tr> <th>Title</th> <th>News</th> <th>Date</th> <th>Delete</th> </tr> </thead> <tbody> <?php $query = "SELECT recid, title, news, datetime FROM `news` ORDER BY `datetime` DESC"; $rs = mysqli_query($connection, $query); $i = 1; if ($rs) { while ($row = mysqli_fetch_object($rs)) { // $name = mysqli_fetch_object(mysqli_query($connection, "SELECT login_id, name FROM user WHERE uid='" . $row->by . "'")); ?> <tr> <!--<td><?php echo $i++; ?></td>--> <td><?php echo $row->title; ?></td> <td><?php echo $row->news; ?></td> <td><?php echo date("d/m/Y H:i A", strtotime($row->datetime)); ?></td> <td><a href="news_model.php?delete=<?php echo $row->recid; ?>" onclick="return confirm('Are you sure for delete.');">Delete</a></td> </tr> <?php } } ?> </tbody> </table> <?php //echo $pager->renderFullNav(); ?> </div> </div> </div> <!-- end col --> </div> <!--table content ends here--> </div> <?php include 'footer.php'; ?>
/home2/wtmwscom/public_html/themes8356.wtmwebshop.com/../admin/news.php