From 3f04de06fc333dda88dac3e68cbabde691c847f6 Mon Sep 17 00:00:00 2001 From: Toto Date: Thu, 3 Nov 2022 23:40:16 +0700 Subject: [PATCH] (#206) Perbaikan siteman > menu statis & kategori --- donjo-app/models/Web_menu_model.php | 2 +- donjo-app/views/kategori/form.php | 2 +- donjo-app/views/menu/form.php | 2 +- donjo-app/views/menu/table.php | 130 +++++++++++++++------------- 4 files changed, 73 insertions(+), 63 deletions(-) diff --git a/donjo-app/models/Web_menu_model.php b/donjo-app/models/Web_menu_model.php index ce059ad13..f4be57832 100644 --- a/donjo-app/models/Web_menu_model.php +++ b/donjo-app/models/Web_menu_model.php @@ -96,7 +96,7 @@ public function list_data($tip = 0, $o = 0, $offset = 0, $limit = 500) while ($i < count($data)) { $data[$i]['no'] = $j + 1; - if ($data[$i]['enabled'] === 1) { + if (isset($data[$i]['enabled']) && $data[$i]['enabled'] === 1) { $data[$i]['aktif'] = 'Yes'; } else { $data[$i]['aktif'] = 'No'; diff --git a/donjo-app/views/kategori/form.php b/donjo-app/views/kategori/form.php index f284ba60e..fb9fefb9f 100644 --- a/donjo-app/views/kategori/form.php +++ b/donjo-app/views/kategori/form.php @@ -48,7 +48,7 @@ - +
Nama Kategori
diff --git a/donjo-app/views/menu/form.php b/donjo-app/views/menu/form.php index 35e9401ce..9e3c687ef 100644 --- a/donjo-app/views/menu/form.php +++ b/donjo-app/views/menu/form.php @@ -48,7 +48,7 @@ - + diff --git a/donjo-app/views/menu/table.php b/donjo-app/views/menu/table.php index b7a1d1248..985768fce 100644 --- a/donjo-app/views/menu/table.php +++ b/donjo-app/views/menu/table.php @@ -1,11 +1,10 @@
Nama Menu
@@ -19,23 +18,23 @@

Manajemen Menu Statis

- " class="uibutton tipsy south" title="Tambah Data"> Tambah Menu Baru -
- - - + +
- ');$('#'+'mainform').submit();}"> - + ');$('#'+'mainform').submit();}"> +
@@ -44,45 +43,56 @@ - - - - - + + + + + - - - - - - - - - - + + + + + + + + + +
No Aksi">Nama - - ">Nama - - ">Nama -  ">Enabled / Disabled - - ">Enabled / Disabled - - ">Enabled / Disabled -  Link">Nama + + ">Nama + + ">Nama +  ">Enabled / Disabled + + ">Enabled / Disabled + + ">Enabled / Disabled +  Link
- - - -
+ + + +
@@ -90,39 +100,39 @@
-
+ - +
- start_link;$i<=$paging->end_link;$i++): ?> - " class="uibutton"> + start_link; $i <= $paging->end_link; $i++) : ?> + " class="uibutton">