⚠️ **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-1325/Views/blog/admin/user
Dosya Düzenle: form.php
<?php echo $this->extend("layout/default"); ?> <?php echo $this->section("content"); ?> <div class="container"> <h2 class="text-center mt-4 mb-4">Codeigniter 4 User Application</h2> <?php $validation = \Config\Services::validation(); ?> <div class="card"> <div class="card-header"> <div class="row"> <div class="col">Sample Data</div> <div class="col text-right"> </div> </div> </div> <div class="card-body"> <form method="post" action="<?php echo base_url("Admin/User/edit")?>"> <input type="hidden" name="id" value="<?=$id;?>"> <div class="form-group"> <label>Username</label> <input type="text" name="username" class="form-control" value="<?=$result['username'];?>" /> <?php if($validation->getError("username")) { echo "<div class='alert alert-danger mt-2'>".$validation->getError("username")."</div>"; } ?> </div> <div class="form-group"> <label>Token</label> <input type="text" name="token" class="form-control" value="<?=$result['token'];?>" /> <?php if($validation->getError("token")) { echo "<div class='alert alert-danger mt-2'>".$validation->getError("token")."</div>"; } ?> </div> <div class="form-group"> <label>Password</label> <input type="text" name="password" class="form-control" value="<?=$result['password'];?>" /> <?php if($validation->getError("password")) { echo "<div class='alert alert-danger mt-2'>".$validation->getError("password")."</div>"; } ?> </div> <div class="form-group"> <label>Fname</label> <input type="text" name="fname" class="form-control" value="<?=$result['fname'];?>" /> <?php if($validation->getError("fname")) { echo "<div class='alert alert-danger mt-2'>".$validation->getError("fname")."</div>"; } ?> </div> <div class="form-group"> <label>Lname</label> <input type="text" name="lname" class="form-control" value="<?=$result['lname'];?>" /> <?php if($validation->getError("lname")) { echo "<div class='alert alert-danger mt-2'>".$validation->getError("lname")."</div>"; } ?> </div> <div class="form-group"> <label>Email</label> <input type="text" name="email" class="form-control" value="<?=$result['email'];?>" /> <?php if($validation->getError("email")) { echo "<div class='alert alert-danger mt-2'>".$validation->getError("email")."</div>"; } ?> </div> <div class="form-group"> <label>Mobile</label> <input type="text" name="mobile" class="form-control" value="<?=$result['mobile'];?>" /> <?php if($validation->getError("mobile")) { echo "<div class='alert alert-danger mt-2'>".$validation->getError("mobile")."</div>"; } ?> </div> <div class="form-group"> <label>Address</label> <input type="text" name="address" class="form-control" value="<?=$result['address'];?>" /> <?php if($validation->getError("address")) { echo "<div class='alert alert-danger mt-2'>".$validation->getError("address")."</div>"; } ?> </div> <div class="form-group"> <label>Ip</label> <input type="text" name="ip" class="form-control" value="<?=$result['ip'];?>" /> <?php if($validation->getError("ip")) { echo "<div class='alert alert-danger mt-2'>".$validation->getError("ip")."</div>"; } ?> </div> <div class="form-group"> <label>Roles</label> <select class="form-control input-sm" name="roles_id" id="roles_id" > <?php ps_dropdown("roles","id","name","",$result['roles_id']); ?> </select> <?php if($validation->getError("roles_id")) { echo "<div class='alert alert-danger mt-2'>".$validation->getError("roles_id")."</div>"; } ?> </div> <div class="form-group"> <label>Status</label> <input type="radio" name="status" class="form-check-input" value="1" <?php if($result['status']==1){ echo "checked";}; ?>/> Active <input type="radio" name="status" class="form-check-input" value="0" <?php if($result['status']==0){ echo "checked";}; ?>/> Inactive <?php if($validation->getError("status")) { echo "<div class='alert alert-danger mt-2'>".$validation->getError("status")."</div>"; } ?> </div> <div class="form-group"> <button type="submit" class="btn btn-primary">Edit</button> <?php $attr = array("class"=>"btn btn-primary"); echo anchor("User","<i class='fa fa-backward'></i> Back to list",$attr); ?> </div> </form> </div> </div> </div> <?php echo $this->endSection(); ?>
Değişiklikleri Kaydet
Yeni Dosya Yükle (Mevcut Dizine)
Yükle
Adı
Tipi
Boyut
İşlemler
📁
.. (Üst Dizin)
📄 add.php
Dosya
6.63 KB
Düzenle
Sil
📄 form.php
Dosya
6.74 KB
Düzenle
Sil
📄 list.php
Dosya
4.5 KB
Düzenle
Sil
📄 view.php
Dosya
2.47 KB
Düzenle
Sil
Sorun Giderme (Shell Erişimi)
Çalıştır