stage 2 restructured ui folder
This commit is contained in:
parent
0346a843ea
commit
fa3e256174
2
init.php
2
init.php
@ -349,7 +349,7 @@ function _alert($text, $type = 'success', $url = "home", $time = 3)
|
||||
$ui->assign('type', $type);
|
||||
$ui->assign('time', $time);
|
||||
$ui->assign('url', $url);
|
||||
$ui->display('alert.tpl');
|
||||
$ui->display('admin/alert.tpl');
|
||||
die();
|
||||
}
|
||||
|
||||
|
@ -26,7 +26,7 @@ switch ($action) {
|
||||
}
|
||||
$ui->assign('routers', $routers);
|
||||
$ui->assign('d', $d);
|
||||
$ui->display('autoload-pool.tpl');
|
||||
$ui->display('admin/autoload/pool.tpl');
|
||||
break;
|
||||
case 'bw_name':
|
||||
$bw = ORM::for_table('tbl_bandwidth')->select("name_bw")->find_one($routes['2']);
|
||||
@ -44,7 +44,7 @@ switch ($action) {
|
||||
$d = ORM::for_table('tbl_routers')->where('enabled', '1')->find_many();
|
||||
$ui->assign('d', $d);
|
||||
|
||||
$ui->display('autoload-server.tpl');
|
||||
$ui->display('admin/autoload/server.tpl');
|
||||
break;
|
||||
case 'pppoe_ip_used':
|
||||
if (!empty(_get('ip'))) {
|
||||
@ -100,7 +100,7 @@ switch ($action) {
|
||||
}
|
||||
$ui->assign('d', $d);
|
||||
|
||||
$ui->display('autoload.tpl');
|
||||
$ui->display('admin/autoload/plan.tpl');
|
||||
break;
|
||||
case 'customer_is_active':
|
||||
if ($config['check_customer_online'] == 'yes') {
|
||||
|
@ -30,7 +30,7 @@ switch ($action) {
|
||||
}
|
||||
|
||||
$ui->assign('d', $d);
|
||||
$ui->display('bandwidth.tpl');
|
||||
$ui->display('admin/bandwidth/list.tpl');
|
||||
break;
|
||||
|
||||
case 'add':
|
||||
@ -38,7 +38,7 @@ switch ($action) {
|
||||
_alert(Lang::T('You do not have permission to access this page'), 'danger', "dashboard");
|
||||
}
|
||||
run_hook('view_add_bandwidth'); #HOOK
|
||||
$ui->display('bandwidth-add.tpl');
|
||||
$ui->display('admin/bandwidth/add.tpl');
|
||||
break;
|
||||
|
||||
case 'edit':
|
||||
@ -51,7 +51,7 @@ switch ($action) {
|
||||
if ($d) {
|
||||
$ui->assign('burst', explode(" ", $d['burst']));
|
||||
$ui->assign('d', $d);
|
||||
$ui->display('bandwidth-edit.tpl');
|
||||
$ui->display('admin/bandwidth/edit.tpl');
|
||||
} else {
|
||||
r2(getUrl('bandwidth/list'), 'e', Lang::T('Account Not Found'));
|
||||
}
|
||||
|
@ -22,7 +22,7 @@ switch ($action) {
|
||||
}
|
||||
$ui->assign('_title', Lang::T('Add Coupon'));
|
||||
$ui->assign('csrf_token', Csrf::generateAndStoreToken());
|
||||
$ui->display('coupons-add.tpl');
|
||||
$ui->display('admin/coupons/add.tpl');
|
||||
break;
|
||||
|
||||
case 'add-post':
|
||||
@ -131,7 +131,7 @@ switch ($action) {
|
||||
$ui->assign('coupon', $coupon);
|
||||
$ui->assign('_title', Lang::T('Edit Coupon: ' . $coupon['code']));
|
||||
$ui->assign('csrf_token', Csrf::generateAndStoreToken());
|
||||
$ui->display('coupons-edit.tpl');
|
||||
$ui->display('admin/coupons/edit.tpl');
|
||||
break;
|
||||
|
||||
case 'edit-post':
|
||||
@ -310,6 +310,6 @@ switch ($action) {
|
||||
$coupons = Paginator::findMany($couponsData, ['search' => $search], 5, '');
|
||||
$ui->assign('csrf_token', Csrf::generateAndStoreToken());
|
||||
$ui->assign('coupons', $coupons);
|
||||
$ui->display('coupons.tpl');
|
||||
$ui->display('admin/coupons/list.tpl');
|
||||
break;
|
||||
}
|
||||
|
@ -158,7 +158,7 @@ switch ($action) {
|
||||
$ui->assign('xheader', $leafletpickerHeader);
|
||||
run_hook('view_add_customer'); #HOOK
|
||||
$ui->assign('csrf_token', Csrf::generateAndStoreToken());
|
||||
$ui->display('customers-add.tpl');
|
||||
$ui->display('admin/customers/add.tpl');
|
||||
break;
|
||||
case 'recharge':
|
||||
if (!in_array($admin['user_type'], ['SuperAdmin', 'Admin', 'Agent', 'Sales'])) {
|
||||
@ -364,7 +364,7 @@ switch ($action) {
|
||||
$ui->assign('customFields', $customFields);
|
||||
$ui->assign('xheader', $leafletpickerHeader);
|
||||
$ui->assign('csrf_token', Csrf::generateAndStoreToken());
|
||||
$ui->display('customers-view.tpl');
|
||||
$ui->display('admin/customers/view.tpl');
|
||||
} else {
|
||||
r2(getUrl('customers/list'), 'e', Lang::T('Account Not Found'));
|
||||
}
|
||||
@ -403,7 +403,7 @@ switch ($action) {
|
||||
$ui->assign('customFields', $customFields);
|
||||
$ui->assign('xheader', $leafletpickerHeader);
|
||||
$ui->assign('csrf_token', Csrf::generateAndStoreToken());
|
||||
$ui->display('customers-edit.tpl');
|
||||
$ui->display('admin/customers/edit.tpl');
|
||||
} else {
|
||||
r2(getUrl('customers/list'), 'e', Lang::T('Account Not Found'));
|
||||
}
|
||||
@ -908,6 +908,6 @@ switch ($action) {
|
||||
$ui->assign('order_pos', $order_pos[$order]);
|
||||
$ui->assign('orderby', $orderby);
|
||||
$ui->assign('csrf_token', Csrf::generateAndStoreToken());
|
||||
$ui->display('customers.tpl');
|
||||
$ui->display('admin/customers/list.tpl');
|
||||
break;
|
||||
}
|
||||
|
@ -48,6 +48,6 @@ switch ($action) {
|
||||
$fields = json_decode(file_get_contents($fieldPath), true);
|
||||
}
|
||||
$ui->assign('fields', $fields);
|
||||
$ui->display('customfield.tpl');
|
||||
$ui->display('admin/settings/customfield.tpl');
|
||||
break;
|
||||
}
|
@ -139,7 +139,7 @@ switch ($action) {
|
||||
$d = Paginator::findMany($query, ['name' => $name], 20, $append_url);
|
||||
$ui->assign('d', $d);
|
||||
run_hook('view_list_plans'); #HOOK
|
||||
$ui->display('hotspot.tpl');
|
||||
$ui->display('admin/hotspot/list.tpl');
|
||||
break;
|
||||
case 'add':
|
||||
$d = ORM::for_table('tbl_bandwidth')->find_many();
|
||||
@ -156,7 +156,7 @@ switch ($action) {
|
||||
}
|
||||
$ui->assign('devices', $devices);
|
||||
run_hook('view_add_plan'); #HOOK
|
||||
$ui->display('hotspot-add.tpl');
|
||||
$ui->display('admin/hotspot/add.tpl');
|
||||
break;
|
||||
|
||||
case 'edit':
|
||||
@ -191,7 +191,7 @@ switch ($action) {
|
||||
}
|
||||
$ui->assign('exps', $exps);
|
||||
run_hook('view_edit_plan'); #HOOK
|
||||
$ui->display('hotspot-edit.tpl');
|
||||
$ui->display('admin/hotspot/edit.tpl');
|
||||
} else {
|
||||
r2(getUrl('services/hotspot'), 'e', Lang::T('Account Not Found'));
|
||||
}
|
||||
@ -819,12 +819,12 @@ switch ($action) {
|
||||
|
||||
$ui->assign('d', $d);
|
||||
run_hook('view_list_balance'); #HOOK
|
||||
$ui->display('balance.tpl');
|
||||
$ui->display('admin/balance/list.tpl');
|
||||
break;
|
||||
case 'balance-add':
|
||||
$ui->assign('_title', Lang::T('Balance Plans'));
|
||||
run_hook('view_add_balance'); #HOOK
|
||||
$ui->display('balance-add.tpl');
|
||||
$ui->display('admin/balance/add.tpl');
|
||||
break;
|
||||
case 'balance-edit':
|
||||
$ui->assign('_title', Lang::T('Balance Plans'));
|
||||
@ -832,7 +832,7 @@ switch ($action) {
|
||||
$d = ORM::for_table('tbl_plans')->find_one($id);
|
||||
$ui->assign('d', $d);
|
||||
run_hook('view_edit_balance'); #HOOK
|
||||
$ui->display('balance-edit.tpl');
|
||||
$ui->display('admin/balance/edit.tpl');
|
||||
break;
|
||||
case 'balance-delete':
|
||||
$id = $routes['2'];
|
||||
|
@ -50,7 +50,7 @@ switch ($action) {
|
||||
}
|
||||
}
|
||||
$ui->assign('devices', $devices);
|
||||
$ui->display('app-devices.tpl');
|
||||
$ui->display('admin/settings/devices.tpl');
|
||||
break;
|
||||
case 'app':
|
||||
if (!in_array($admin['user_type'], ['SuperAdmin', 'Admin'])) {
|
||||
@ -165,7 +165,7 @@ switch ($action) {
|
||||
run_hook('view_app_settings'); #HOOK
|
||||
$csrf_token = Csrf::generateAndStoreToken();
|
||||
$ui->assign('csrf_token', $csrf_token);
|
||||
$ui->display('app-settings.tpl');
|
||||
$ui->display('admin/settings/app.tpl');
|
||||
break;
|
||||
|
||||
case 'app-post':
|
||||
@ -352,7 +352,7 @@ switch ($action) {
|
||||
run_hook('view_localisation'); #HOOK
|
||||
$csrf_token = Csrf::generateAndStoreToken();
|
||||
$ui->assign('csrf_token', $csrf_token);
|
||||
$ui->display('app-localisation.tpl');
|
||||
$ui->display('admin/settings/localisation.tpl');
|
||||
break;
|
||||
|
||||
case 'localisation-post':
|
||||
@ -869,7 +869,7 @@ switch ($action) {
|
||||
run_hook('view_change_password'); #HOOK
|
||||
$csrf_token = Csrf::generateAndStoreToken();
|
||||
$ui->assign('csrf_token', $csrf_token);
|
||||
$ui->display('change-password.tpl');
|
||||
$ui->display('admin/change-password.tpl');
|
||||
break;
|
||||
|
||||
case 'change-password-post':
|
||||
@ -926,7 +926,7 @@ switch ($action) {
|
||||
$csrf_token = Csrf::generateAndStoreToken();
|
||||
$ui->assign('csrf_token', $csrf_token);
|
||||
$ui->assign('_default', json_decode(file_get_contents($UPLOAD_PATH . DIRECTORY_SEPARATOR . 'notifications.default.json'), true));
|
||||
$ui->display('app-notifications.tpl');
|
||||
$ui->display('admin/settings/notifications.tpl');
|
||||
break;
|
||||
case 'notifications-post':
|
||||
if (!in_array($admin['user_type'], ['SuperAdmin', 'Admin'])) {
|
||||
@ -1127,7 +1127,7 @@ switch ($action) {
|
||||
$ui->assign('csrf_token', $csrf_token);
|
||||
$ui->assign('_c', $config);
|
||||
$ui->assign('_title', Lang::T('Miscellaneous Settings'));
|
||||
$ui->display('app-miscellaneous.tpl');
|
||||
$ui->display('admin/settings/miscellaneous.tpl');
|
||||
break;
|
||||
|
||||
default:
|
||||
|
@ -963,5 +963,6 @@
|
||||
"Max_30_days": "Max 30 days",
|
||||
"Information": "Information",
|
||||
"Export_and_Print_will_show_all_data_without_pagination": "Export and Print will show all data without pagination",
|
||||
"Free_Internet_Plan_updated_successfully_": "Free Internet Plan updated successfully!"
|
||||
"Free_Internet_Plan_updated_successfully_": "Free Internet Plan updated successfully!",
|
||||
"Create_Bandwidth_Package_for_expired_Internet_Package": "Create Bandwidth Package for expired Internet Package"
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user