403Webshell
Server IP : 127.0.0.1  /  Your IP : 192.168.99.1
Web Server : Apache/2.4.35 (Win64) OpenSSL/1.1.1b mod_fcgid/2.3.9
System : Windows NT WIN-JEJMB9EN0L0 10.0 build 14393 (Windows Server 2016) AMD64
User : Administrator ( 0)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /laragon3/www/sop/application/views/setting/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /laragon3/www/sop/application/views/setting/index.php
<!-- Begin Page Content -->
<div class="container-fluid">

    <!-- Page Heading -->
    <h1 class="h3 mb-4 text-gray-800"><?= $title; ?></h1>

    <!-- Page Heading 2-->
    <h4 class="mb-4 text-gray-800 mt-3"><span class="badge badge-info"><?= $title2; ?></span></h4>
    <hr>

    <div class="row">
        <div class="col-lg-6">
            <?= form_error('menu', '<div class="alert alert-danger" role="alert">', '</div>'); ?>

            <?= $this->session->flashdata('message'); ?>

            <table class="table table-hover">
                <thead>
                    <tr>
                        <th scope="col">#</th>
                        <th style="width: 30%">Name</th>
                        <th style="width: 30%">Email</th>
                        <th style="width: 20%">Role</th>
                        <th style="width: 10%">Joined</th>
                        <th style="width: 10%">Jobdesk</th>
						<th style="width: 5%">Action</th>
                    </tr>
                </thead>
                <tbody>
                    <?php $i = 1; ?>
                    <?php foreach ($userpass as $u) : ?>
                        <tr>
                            <th scope="row"><?= $i; ?></th>
                            <td><?= $u['name']; ?></td>
                            <td><?= $u['email']; ?></td>
                            <td><?= $u['role_id']; ?></td>
                            <td><?= date('d F Y H:m', $u['date_created']); ?></td>
                            <td><?php if (is_null($u['job_name'])) : ?>
                                <div class="alert alert-danger" role="alert">
                                  not set
                                </div>
                                <?php else: ?>
                                <?= $u['job_name']; ?>    
                                <?php endif ?>
                            </td>
                            <td>
                              <a href="" data-toggle="modal" data-target="#EditModal<?= $u['id'];?>" class="badge badge-success" data-popup="tooltip" data-placement="top" title="Edit Data">edit</a>
                              <a href="<?= site_url('setting/hapus/'.$u['id']); ?>" onclick="return confirm('You sure want delete - <?= $u['name'];?> ?');" class="badge badge-danger" data-popup="tooltip" data-placement="middle" title="Delete Data">delete</a>
                            </td>
                        </tr>
                        <?php $i++; ?>
                    <?php endforeach; ?>
                </tbody>
            </table>
        </div>
    </div>


</div>
<!-- /.container-fluid -->

</div>
<!-- End of Main Content -->


<!-- edit Modal -->
<?php foreach ($userpass as $u) : ?>
<div class="modal fade" id="EditModal<?= $u['id'];?>" tabindex="-1" role="dialog" aria-labelledby="EditModalLabel" aria-hidden="true">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="EditModalLabel">Edit Account</h5>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <form action="<?= base_url('setting/edit'); ?>" method="post">
                <div class="modal-body">
                  <input type="hidden" readonly value="<?= $u['id'];?>" id="id" name="id" class="form-control" >
                  <div class="form-group">
                    <label>Name:</label>
                    <input type="text" id="name" name="name" value="<?= $u['name'];?>" required placeholder="Input Name" class="form-control" >
                  </div>
                  <div class="form-group">
                    <label>Role:</label>
                    <input type="text" id="role_id" name="role_id" value="<?= $u['role_id'];?>" required placeholder="Role" class="form-control" >
                  </div>
                  <div class="form-group">
                      <label>Jobdesk:</label>
                      <select name="job_id" id="job_id" class="form-control" >
                          <?php if (isset($u['user_id'])) {
                            echo('<option selected="selected" value='.$u['user_id'].'>'.$u['job_name'].'</option>');
                          }
                          ?>  
                          <option value="<?= $u['user_id'];?>"><?= $u['job_name'];?></option>
                          <?php foreach ($job as $j) : ?>
                              <option value="<?= $j['id']; ?>"><?= $j['job_name']; ?></option>
                          <?php endforeach; ?>
                      </select>
                  </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
                    <button type="submit" class="btn btn-primary">Save</button>
                </div>
            </form>
        </div>
    </div>
</div>
<?php endforeach; ?>

Youez - 2016 - github.com/yon3zu
LinuXploit