| Server IP : 45.94.215.241 / Your IP : 216.73.216.122 Web Server : Apache/2.4.66 (Ubuntu) System : Linux srv2937474766 7.0.0-28-generic #28-Ubuntu SMP PREEMPT_DYNAMIC Sun Jun 21 01:01:36 UTC 2026 x86_64 User : www-data ( 33) PHP Version : 8.5.4 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/html/nikcandle_crm/admin/components/ |
Upload File : |
<?php if ($_SESSION['admin.'.$company_name_en.'_login']!="1") die; ?>
<?php
if (isset($_GET['other_cost_id']))
{
$other_cost_id=$_GET['other_cost_id'];
}
if ($_GET['func']=="add")
{
$popup_arguments=array("pid"=>"settings.other_costs.add");
popup($popup_arguments);
}
else if ($_GET['func']=="edit")
{
include("components/settings.other_costs.edit.php");
}
else if ($_GET['func']=="delete")
{
$db->query("delete from other_costs where id='$other_cost_id'");
alert("با موفقیت حذف شد");
goback("index.php?pid=other_costs");
}
else
{
?>
<a href="index.php?pid=settings.other_costs&func=add"><img src="../images/buttons/add.png" border="0"><br/>اضافه کردن هزینه</a>
<br />
<table class="tableslistr" border="1" width="50%">
<tr class="tablesheader">
<td>ردیف</td>
<td>عنوان هزینه</td>
<td>تاریخ</td>
<td>مبلغ</td>
<td>ویرایش</td>
<td>حذف</td>
</tr>
<?php
$db->query("select * from other_costs order by id desc");
$res=$db->result();
$i=1;
foreach ($res as $row)
{
?>
<tr>
<td><?php echo $i++; ?></td>
<td><?php echo $row['title']; ?></td>
<td><?php echo $row['date']; ?></td>
<td><?php echo $row['amount']; ?></td>
<td><a href="index.php?pid=settings.other_costs&other_cost_id=<?php echo $row[id]; ?>&func=edit"><img src="../images/buttons/edit.gif" border="0"></a></td>
<td><a href='#' onclick="confirm_delete('<?php echo $row[id]; ?>','index.php?pid=settings.other_costs&other_cost_id=<?php echo $row[id]; ?>&func=delete')"><img src="../images/buttons/delete.gif" border="0"></a></td>
</tr>
<?php
}
?>
</table>
<?php
}
?>