File: /www/exchange0old/exchange/admin/cache/%%C3^C3B^C3B9C379%%software.html.php
<?php /* Smarty version 2.6.19, created on 2025-12-04 08:20:04
compiled from originators/software.html */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
?>
<div id="body_portion">
<div id="admin_menu">
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "left.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
?>
<div id="left_menu1" class="folded" style="display:none;"> <a href="javascript:void(0)" class="panel_open" onclick="showLeftPanel('left_menu','left_menu1','body_portion');"></a>
<div class="top_menu"> <a href="#" class="dashboard"> </a> </div>
<div class="center_menu"> <a href="javascript:void(0)" class="settings" onmouseover="showLeft_DD_Mnu('left_dd_Mnu','aele_id1');" id="aele_id1" onmouseout="HideLeft_DD_Mnu('left_dd_Mnu');"> </a> </div>
<div class="center_menu"> <a href="#" class="cms"> </a> </div>
<div class="center_menu"> <a href="#" class="user"> </a> </div>
<div class="center_menu"> <a href="#" class="prayer"> </a> </div>
<div class="center_menu"> <a href="#" class="group"> </a> </div>
<div class="center_menu"> <a href="#" class="event"> </a> </div>
<div class="center_menu"> <a href="#" class="message"> </a> </div>
<div class="center_menu"> <a href="#" class="news"> </a> </div>
<div class="bottom_menu"> <a href="#" class="logs"> </a> </div>
</div>
<div id="right_content">
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="margin_table">
<tr>
<td valign="top" align="left" width="2%" class="hdr_tl"> </td>
<td valign="top" align="left" width="70%" class="hdr_tc">Accounting Software</td>
<td valign="top" align="right" width="26%" class="hdr_tc"></td>
<td valign="left" align="left" width="2%" class="hdr_tr"></td>
</tr>
<tr>
<td valign="top" align="left" colspan="4" class="hdr_center">
<div class="accounting_list">
<table cellpadding="0" cellspacing="0" border="0"
class="table table-hover table-striped table-responsive">
<thead>
<tr>
<th align="center">Id</th>
<th align="center">Name</th>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<td colspan="3">
<a href="?do=editaccountingsoftware" class="login_bttn">Add new software</a>
</td>
</tr>
<?php $_from = $this->_tpl_vars['records']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['soft']):
?>
<tr>
<td align="left"><b>
<?php echo $this->_tpl_vars['soft']['id']; ?>
</b></td>
<td align="left"><b>
<?php echo $this->_tpl_vars['soft']['name']; ?>
</b></td>
<td align="right" valign="top" nowrap="nowrap">
<a class="edit-link"
href="?do=editaccountingsoftware&id=<?php echo $this->_tpl_vars['soft']['id']; ?>
"><span
class="glyphicon glyphicon-pencil" aria-hidden="true"></span></a>
<span class="delete-icon glyphicon glyphicon-trash"
onclick="javascript: delete_software('<?php echo $this->_tpl_vars['soft']['id']; ?>
', '<?php echo $this->_tpl_vars['soft']['name']; ?>
', this.closest('tr'));"></span>
</td>
</tr>
<?php endforeach; endif; unset($_from); ?>
</tbody>
</table>
</div>
</td>
</tr>
<tr>
<td valign="top" align="left" width="2%" class="hdr_bl"> </td>
<td valign="top" align="left" width="70%" class="hdr_bc"> </td>
<td valign="top" align="left" width="26%" class="hdr_bc"> </td>
<td valign="top" align="left" width="2%" class="hdr_br"> </td>
</tr>
</table>
</div>
<div class="clear"></div>
</div>
</div>
<style>
.delete-icon{display: inline;}
.delete-icon:hover{cursor: pointer;}
.edit-link{margin-right: 10px;}
.form-table>tbody>tr>td, .form-table>tbody>tr>td>b{font-size: 12px !important;}
.accounting_list{width: 300px}
</style>
<script>
function delete_software(id, name, object){
if (confirm("Do you want to remove software " + name + "?")) {
$.ajax({
url: "?do=deleteaccountingsoftware",
type: "POST",
data: ({id: id}),
success: function(data){
result = $.parseJSON(data);
if(result.success == true){
object.remove();
}
}
})
}
return false;
}
$(function () {
$("form").submit(function () {
var errorbox = $(".error-msgbox"),
errormsg = $(".error-msgbox span");
errorbox.hide();
$.ajax({
url: "?do=validateaccountssummary",
type: "POST",
data: $(this).serialize() + '&action=create',
success: function(data){
result = $.parseJSON(data);
if (result.success == true) {
$("form").unbind('submit');
$(".login_bttn").click();
} else {
errormsg.html(result.error);
errorbox.show();
}
}
});
return false;
})
})
</script>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "footer.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
?>