| Server IP : 103.234.187.230 / Your IP : 216.73.216.216 Web Server : Apache System : Linux lserver42043-ind.megavelocity.net 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64 User : apache ( 48) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/rsdgroup/adminPanel/ |
Upload File : |
<?php
include_once("session.php");
include_once("settings.php");
include_once("functions.php");
foreach ($_REQUEST as $key => $value){
$$key = $value;
}
if($action == 'Deletefaq'){
$sql = "UPDATE `tblFaq` SET `isDeleted` = 'yes' WHERE `id` = ".$id." LIMIT 1" ;
mysql_query($sql) or die(mysql_error());
}
?>
<LINK href="mel.css" type=text/css
rel=stylesheet><LINK href="sdmenu.css"
type=text/css rel=stylesheet>
<table width="94%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<fieldset>
<legend>FAQ LIST FORM</legend>
<table width="100%" border="0" cellspacing="2" cellpadding="0">
<?php
if($msg!=""){ ?>
<tr valign="middle" class="general">
<td height="26" colspan="3">
<?=$msg;?>
</td>
</tr>
<?php } ?>
<tr valign="middle" class="general">
<td height="26" colspan="3"><input type="button" name="btnadd2" value="Add FAQ" class="button" onclick="window.location.href='faq_add.php?mode=Add&page=addfaq'" style="width:150px" /></td>
</tr>
<tr valign="middle" class="general">
<td width="29%" height="26">Question</td>
<td width="55%" height="26" >Answer</td>
<td width="16%" align="center" >Action</td>
</tr>
<?
$query="SELECT * FROM tblFaq where isDeleted='no' ORDER BY createdOn DESC";
$result=mysql_query($query);
while($arrayCategory=mysql_fetch_assoc($result))
{
$id=$arrayCategory['id'];
?>
<tr valign="top" class="generaltxt">
<td height="26">
<?=$arrayCategory['ques']?>
</td>
<td height="26" align="justify"><? echo substr(stripslashes($arrayCategory['answer']),0,100);?></td>
<td align="center"><a href="faq_add.php?id=<?=$arrayCategory['id']?>&mode=Edit&page=addfaq" class="action1"><strong>Edit</strong></a>
| <a href="faq_list.php?id=<?=$arrayCategory['id']?>&action=Deletefaq" onClick="return confirm('Are you sure you want to delete this record?')" class="action1"><strong>Delete</strong></a></td>
</tr>
<tr align="right" valign="middle" class="generaltxt">
<td height="10" colspan="3"> </td>
</tr>
<?php } ?>
<tr align="right" valign="middle" class="generaltxt">
<td height="10" colspan="3"> </td>
</tr>
<tr align="right" valign="middle" class="generaltxt">
<td height="26" colspan="3"><input type="button" name="btnadd22" value="Add FAQ" class="button" onclick="window.location.href='faq_add.php?mode=Add&page=addfaq'" style="width:150px" /></td>
</tr>
</table>
</fieldset>
</td>
</tr>
</table>