⚠️ **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/match_schedules
Dosya Düzenle: edit.php
<?= $this->extend('layout/default') ?> <?= $this->section('content') ?> <div class="container-fluid"> <h3 class="mb-3">Edit Match Schedule</h3> <?php if (session()->getFlashdata('errors')): ?> <div class="alert alert-danger"> <ul> <?php foreach (session()->getFlashdata('errors') as $error): ?> <li><?= esc($error) ?></li> <?php endforeach ?> </ul> </div> <?php endif; ?> <form action="<?= site_url('admin/match-schedules/update/'.$schedule['id']) ?>" method="post" enctype="multipart/form-data"> <?= csrf_field() ?> <div class="card card-body"> <div class="row mb-3"> <div class="col-md-6"> <label>Meta Key *</label> <input type="text" name="meta_key" class="form-control" value="<?= old('meta_key', $schedule['meta_key']) ?>"> </div> <div class="col-md-6"> <label>Meta Value *</label> <input type="text" name="meta_val" class="form-control" value="<?= old('meta_val', $schedule['meta_val']) ?>"> </div> </div> <div class="mb-3"> <label>Title *</label> <input type="text" name="title" class="form-control" value="<?= old('title', $schedule['title']) ?>"> </div> <div class="mb-3"> <label>Slug *</label> <input type="text" name="slug" class="form-control" value="<?= old('slug', $schedule['slug']) ?>"> </div> <div class="mb-3"> <label>Heading *</label> <input type="text" name="heading" class="form-control" value="<?= old('heading', $schedule['heading']) ?>"> </div> <div class="mb-3"> <label>Contents *</label> <textarea name="contents" id="editor" class="form-control"><?= old('contents', $schedule['contents']) ?></textarea> </div> <div class="mb-3"> <label>Image(Upload image/pdf file)</label> <input type="file" name="img" class="form-control"> <?php if ($schedule['img']): ?> <p> <a href="<?= base_url('uploads/'.$schedule['img']) ?>"> <?php if(file_exists(base_url('uploads/'.$schedule['img']))) { ?> <img src="<?= base_url('uploads/'.$schedule['img']) ?>" height="60" alt="Click For Download"> <?php }else{ ?> Click For Download <?php } ?> </a> </p> <?php endif ?> </div> <div class="mb-3"> <label>Heading Image(Upload image)</label> <input type="file" name="heading_image" class="form-control"> <?php if ($schedule['heading_image']): ?> <p><img src="<?= base_url('uploads/'.$schedule['heading_image']) ?>" height="60"></p> <?php endif ?> </div> <div class="mb-3"> <label>Status *</label> <select name="status" class="form-control"> <option value="active" <?= old('status', $schedule['status']) == 'active' ? 'selected' : '' ?>>Active</option> <option value="inactive" <?= old('status', $schedule['status']) == 'inactive' ? 'selected' : '' ?>>Inactive</option> </select> </div> <button type="submit" class="btn btn-primary">Update</button> <a href="<?= site_url('admin/match-schedules') ?>" class="btn btn-secondary">Cancel</a> </div> </form> </div> <!-- Summernote --> <link href="https://cdn.jsdelivr.net/npm/summernote@0.8.18/dist/summernote-bs5.min.css" rel="stylesheet"> <script src="https://cdn.jsdelivr.net/npm/summernote@0.8.18/dist/summernote-bs5.min.js"></script> <script> document.addEventListener("DOMContentLoaded", function() { $('#editor').summernote({ height: 250 }); }); </script> <?= $this->endSection() ?>
Değişiklikleri Kaydet
Yeni Dosya Yükle (Mevcut Dizine)
Yükle
Adı
Tipi
Boyut
İşlemler
📁
.. (Üst Dizin)
📄 create.php
Dosya
3.22 KB
Düzenle
Sil
📄 edit.php
Dosya
4.01 KB
Düzenle
Sil
📄 index.php
Dosya
3.28 KB
Düzenle
Sil
Sorun Giderme (Shell Erişimi)
Çalıştır