whoami7 - Manager
:
/
home
/
papecmvm
/
public_html
/
application
/
views
/
Upload File:
files >> //home/papecmvm/public_html/application/views/registration.php
<?php require_once(APPPATH.'views/header.php');?> <?php require_once(APPPATH.'views/menu.php');?> <!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <h1> Registration </h1> <ol class="breadcrumb"> <li><a href="<?php echo site_url('admin/Welcome')?>"><i class="fa fa-dashboard"></i> Dashboard</a></li> <li class="active">Registration</li> </ol> </section> <!-- Main content --> <section class="content"> <?php $attributes = array('id' => 'formid'); echo form_open("",$attributes); ?> <!-- /.row --> <div class="row"> <div class="col-xs-12"> <div class="box"> <div class="box-header"> <div class="text-left"> <button class="btn btn-danger" id='deletedata' type="button"><i class="fa fa-trash"></i> Trash </button> </div> </div><!-- /.box-header --> <div class="box-body"> <?php if($this->session->flashdata('msg')){ echo $this->session->flashdata('msg'); } ?> <table id="example1" class="table table-bordered table-striped"> <thead> <tr> <th>Name</th> <th>Email</th> <th>Mobile</th> <th>GST</th> <th>PAN</th> </tr> </thead> <tbody> <?php foreach($data as $key) { $encrypted_id = $this->model->encryptdata($key['rid']); ?> <tr> <td><a href="registration/view/<?php echo $encrypted_id; ?>"><?php echo $key['name']; ?></td> <td><?php echo $key['email']; ?></td> <td><?php echo $key['mobile']; ?></td> <td><?php echo $key['gst']; ?></td> <td><?php echo $key['pan']; ?></td> </tr> <?php } ?> </tbody> </table> </div><!-- /.box-body --> </div><!-- /.box --> </div> </div> <!-- /.row --> <?php echo form_close(); ?> </section><!-- /.content --> </div><!-- /.content-wrapper --> <?php require_once(APPPATH.'views/footer.php');?> <script type="text/javascript"> $(document).ready(function(){ //---------------- delete message ------------------------------------- $('#deletedata').click(function() { var exists = $('input[type=checkbox][name^=ck]:checked').filter(':checked').length; if( !exists ) { alert('Please select at least 1 checkbox!'); return false; } else if(confirm('Are you sure you want to delete this Data?')) { var cct = $.cookie("<?php echo $this->config->item('csrf_cookie_name'); ?>"); var postData = $('input[type=checkbox][name^=ck]:checked').serialize(); $.post("postmanagement/deletepostselected",{ck: postData,'<?php echo $this->security->get_csrf_token_name(); ?>': cct}, function(data,status){ location.reload(); }); //$('#formid').submit(); } else { return false; } }); }); </script>
Copyright ©2021 || Defacer Indonesia