| Server IP : 162.214.74.102 / Your IP : 216.73.217.80 Web Server : Apache System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64 User : lrsys ( 1015) PHP Version : 5.6.40 Disable Function : exec,passthru,shell_exec,system MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/lrsys/www/lrsys_apps/erp/application/controllers/ |
Upload File : |
<?php
// *************************************************************************
// * *
// * iBilling - Accounting, Billing Software *
// * Copyright (c) Sadia Sharmin. All Rights Reserved *
// * *
// *************************************************************************
// * *
// * Email: sadiasharmin3139@gmail.com *
// * Website: http://www.sadiasharmin.com *
// * *
// *************************************************************************
// * *
// * This software is furnished under a license and may be used and copied *
// * only in accordance with the terms of such license and with the *
// * inclusion of the above copyright notice. *
// * If you Purchased from Codecanyon, Please read the full License from *
// * here- http://codecanyon.net/licenses/standard *
// * *
// *************************************************************************
_auth();
$ui->assign('_title', $_L['Settings'].'- '. $config['CompanyName']);
$ui->assign('_pagehead', '<i class="fa fa-cogs lblue"></i> Settings');
$ui->assign('_st', $_L['Settings']);
$ui->assign('_application_menu', 'settings');
$action = $routes['1'];
$user = User::_info();
$ui->assign('user', $user);
$ui->assign('_user', $user);
if($user['user_type'] != 'Admin'){
r2(U."dashboard",'e',$_L['You do not have permission']);
}
if (isset($routes['1'])) {
$do = $routes['1'];
} else {
$do = 'sys_cats';
}
switch ($do) {
#################### All Ajax Post ###############################
case 'reorder-post':
$action = $_POST['action'];
$updateRecordsArray = $_POST['recordsArray'];
$listingCounter = 1;
foreach ($updateRecordsArray as $recordIDValue) {
$d = ORM::for_table($action)->find_one($recordIDValue);
$d->sorder = $listingCounter;
$d->save();
$listingCounter = $listingCounter + 1;
}
echo '<div class="alert alert-success alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
'.$_L[' <strong>Success!</strong> New Positions are updated in database'].'
</div>';
break;
case 'pg':
$d = ORM::for_table('sys_pg')->order_by_asc('sorder')->find_many();
$ui->assign('ritem','Payment Gateway');
$ui->assign('d',$d);
$ui->assign('xheader', '
<link rel="stylesheet" type="text/css" href="' . $_theme . '/css/liststyle.css"/>
');
$ui->assign('display_name','name');
$ui->assign('xjq', Reorder::js('sys_pg'));
$ui->display('reorder.tpl');
break;
case 'groups':
$d = ORM::for_table('crm_groups')->order_by_asc('sorder')->find_many();
$ui->assign('ritem',$_L['Groups']);
$ui->assign('d',$d);
$ui->assign('xheader', '
<link rel="stylesheet" type="text/css" href="' . $_theme . '/css/liststyle.css"/>
');
$ui->assign('display_name','gname');
$ui->assign('xjq', Reorder::js('crm_groups'));
$ui->display('reorder.tpl');
break;
case 'segments':
$d = ORM::for_table('crm_segments')->order_by_asc('sorder')->find_many();
$ui->assign('ritem',$_L['Segments']);
$ui->assign('d',$d);
$ui->assign('xheader', '
<link rel="stylesheet" type="text/css" href="' . $_theme . '/css/liststyle.css"/>
');
$ui->assign('display_name','name');
$ui->assign('xjq', Reorder::js('crm_segments'));
$ui->display('reorder.tpl');
break;
case 'unit':
$d = ORM::for_table('sys_items_unit')->order_by_asc('sorder')->find_many();
$ui->assign('ritem',$_L['Unit']);
$ui->assign('d',$d);
$ui->assign('xheader', '
<link rel="stylesheet" type="text/css" href="' . $_theme . '/css/liststyle.css"/>
');
$ui->assign('display_name','name');
$ui->assign('xjq', Reorder::js('sys_items_unit'));
$ui->display('reorder.tpl');
break;
case 'product-location':
$d = ORM::for_table('sys_items_location')->order_by_asc('sorder')->find_many();
$ui->assign('ritem',$_L['Location']);
$ui->assign('d',$d);
$ui->assign('xheader', '
<link rel="stylesheet" type="text/css" href="' . $_theme . '/css/liststyle.css"/>
');
$ui->assign('display_name','name');
$ui->assign('xjq', Reorder::js('sys_items_location'));
$ui->display('reorder.tpl');
break;
case 'product-manufacturer':
$d = ORM::for_table('sys_items_manufacturer')->order_by_asc('sorder')->find_many();
$ui->assign('ritem',$_L['Manufacturer']);
$ui->assign('d',$d);
$ui->assign('xheader', '
<link rel="stylesheet" type="text/css" href="' . $_theme . '/css/liststyle.css"/>
');
$ui->assign('display_name','name');
$ui->assign('xjq', Reorder::js('sys_items_manufacturer'));
$ui->display('reorder.tpl');
break;
case 'menus':
$d = ORM::for_table('sys_pl')->order_by_asc('sorder')->find_many();
$ui->assign('ritem', 'Menus'); //$_L['Manufacturer']
$ui->assign('d',$d);
$ui->assign('xheader', '
<link rel="stylesheet" type="text/css" href="' . $_theme . '/css/liststyle.css"/>
');
$ui->assign('display_name','c');
$ui->assign('xjq', Reorder::js('sys_pl'));
$ui->display('reorder.tpl');
break;
case 'horizontal_menus':
$d = ORM::for_table('sys_horizontal_menus')->order_by_asc('sorder')->find_many();
$ui->assign('ritem',$_L['Horizontal Menus']);
$ui->assign('d',$d);
$ui->assign('xheader', '
<link rel="stylesheet" type="text/css" href="' . $_theme . '/css/liststyle.css"/>
');
$ui->assign('display_name','title');
$ui->assign('xjq', Reorder::js('sys_horizontal_menus'));
$ui->display('reorder.tpl');
break;
case 'forms_questions':
$d = ORM::for_table('module_forms_questions')->order_by_asc('sorder')->find_many();
$ui->assign('ritem',$_L['Horizontal Menus']);
$ui->assign('d',$d);
$ui->assign('xheader', '
<link rel="stylesheet" type="text/css" href="' . $_theme . '/css/liststyle.css"/>
');
$ui->assign('display_name','title');
$ui->assign('xjq', Reorder::js('sys_horizontal_menus'));
$ui->display('reorder.tpl');
break;
}