Backups Created:
/home/japatmex/public_html/wp-content/edit-wolf.php
Savvy
W
olf -
MANAGER
Edit File: viewnews.php
<!-- Page header --> <div class="page-header border-bottom-0"> <div class="page-header-content header-elements-md-inline"> <div class="page-title d-flex"> <h4><a href="javascript:void(0)" class="BackButton-Link" onclick="goBack()"><i class="icon-arrow-left52 mr-2"></i></a> <?php echo $this->lang->line('BE_N_HD_1'); ?></h4> </div> <div class="form-group" align="right"> <input type="button" <?php if ($IS_DEMO) echo 'disabled="disabled"'; ?> value="+ <?php echo $this->lang->line('BE_GNRL_14') . ' ' . $this->lang->line('BE_N_HD_1'); ?>" onclick="window.location.href='<?php base_url(); ?>news?type=<?php echo $type; ?>&frmId=<?php echo $_GET['frmId']; ?>&fTypeId=<?php echo $_GET['fTypeId'] ?>'" class="btn "/> </div> </div> </div> <!-- /page header --> <!-- Content area --> <div class="content pt-0"> <div class="card"> <div class="row"> <div class="col-12 col-sm-12 col-md-12 col-lg-12 col-xl-12"> <div class="card-body"> <!-- Our Working Area Start --> <?php if (isset($message) && $message != '') { ?> <div class="form-group row"> <div class="col-lg-12"> <div class="alert alert-success"><?php echo $message; ?></div> </div> </div> <?php } ?> <div class="form-group row"> <div class="col-lg-12"> <div class="table-responsive"> <table class="table table-striped table-bordered table-advance table-hover"> <thead> <tr class="bg-primary"> <th><?php echo $this->lang->line('BE_CAT_1'); ?></th> <th nowrap="nowrap"><?php echo $this->lang->line('BE_N_1'); ?></th> <th><?php echo $this->lang->line('BE_N_2'); ?></th> <th><?php echo $this->lang->line('BE_GNRL_3'); ?></th> <th><?php echo $this->lang->line('BE_GNRL_4'); ?></th> <th></th> <th></th> </tr> </thead> <tbody> <?php if ($rsNews) { foreach ($rsNews as $row) { $addDtTm = explode(' ', $row->AddedAt); ?> <tr> <td><?php echo $row->Category == '' ? '-' : stripslashes($row->Category); ?></td> <td><?php echo stripslashes($row->NewsTitle); ?></td> <td><?php echo stripslashes($row->ShortDescription); ?></td> <td><?php echo $row->DisableNews == '1' ? 'Yes' : 'No'; ?></td> <td><?php echo(convertDate($addDtTm[0]) . ' ' . $addDtTm[1]); ?></td> <td style="text-align:center" valign="middle"> <a href="JavaScript:void(0);" onclick="window.location.href='<?php base_url(); ?>news?id=<?php echo $row->NewsId; ?>&type=<?php echo $type; ?>&frmId=<?php echo $_GET['frmId']; ?>&fTypeId=<?php echo $_GET['fTypeId'] ?>'"><i class="fa icon-pencil" data-toggle="tooltip" data-placement="top" title="Edit"></i> </a> </td> <td style="text-align:center" valign="middle"> <a href="JavaScript:void(0);" onclick="window.location.href='<?php base_url(); ?>deleteNews?type=<?php echo $type; ?>&del=1&id=<?php echo($row->NewsId); ?>&frmId=<?php echo $_GET['frmId']; ?>&fTypeId=<?php echo $_GET['fTypeId'] ?>'" onclick="return confirm('<?php echo $this->lang->line('BE_LBL_32'); ?>')"><i class="fa icon-trash" data-toggle="tooltip" data-placement="top" title="Delete"></i></a></td> </tr> <?php } ?> <?php } else { ?> <tr> <td colspan="99" align="center"> <strong><?php echo $this->lang->line('BE_GNRL_9'); ?></strong></td> </tr> <?php } ?> </tbody> </table> </div> </div> </div> </div> </div> </div> </div> </div>