whoami7 - Manager
:
/
home
/
papecmvm
/
public_html
/
application
/
views
/
users
/
Upload File:
files >> //home/papecmvm/public_html/application/views/users/user_add.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> <?php if (!isset($view)) {?> <?php echo "Add User"; ?> <?php }else{?> <?php echo "Edit User";} ?> </h1> <ol class="breadcrumb"> <li><a href="<?php echo site_url('admin/Welcome')?>"><i class="fa fa-dashboard"></i> Dashboard</a></li> <li><a href="<?php echo site_url('admin/usermanagement')?>"> User</a></li> <li class="active"><?php if (!isset($view)) {?> <?php echo "Add User"; ?> <?php }else{?> <?php echo "Edit User";} ?> </li> </ol> </section> <!-- Main content --> <section class="content"> <?php $attributes = array('class' =>'defaultForm','data-bv-message'=>'This value is not valid', 'data-bv-feedbackicons-validating'=>'glyphicon glyphicon-refresh'); if (!isset($view)) {?> <?php echo form_open("admin/usermanagement/adduser",$attributes); ?> <?php }else{?> <?php $this->load->model('alldata','model'); $encrypted_id = $this->model->encryptdata($view[0]['uid']); echo form_open("admin/usermanagement/editUserData/{$encrypted_id}",$attributes); ?> <?php }?> <!-- /.row --> <div class="row"> <div class="col-xs-12"> <div class="box box-success"> <div class="box-header"> </div><!-- /.box-header --> <div class="box-body"> <div class="form-group"> <label>Username</label> <div class="input-group"> <span class="input-group-addon">@</span> <input type="text" data-bv-regexp-message="Special characters not allowed..." pattern="^[a-zA-Z]+$" class="form-control" value="<?php if(isset($view)){echo $view[0]['username'];}?>" placeholder="Username" name="username" required data-bv-notempty-message="The Username is required and cannot be empty" > </div> </div> <div class="form-group "> <label>E-Mail</label> <div class=" input-group"> <span class="input-group-addon"><i class="fa fa-envelope-o "></i></span> <input pattern='^[^\`\~\#\$\%\^\*\[\]\{\}\\;:<>=+"]+$' type="email" class="form-control" placeholder="abc@gmail.com" value="<?php if(isset($view)){echo $view[0]['email'];}?>" name="email" required data-bv-notempty-message="The E-Mail is required and cannot be empty"> </div> </div> <div class="form-group "> <label>Type</label> <div class=" input-group"> <span class="input-group-addon">T</span> <select class="form-control" name="type" required data-bv-notempty-message="The type is required and cannot be empty"> <option value=""> Select the Type</option> <option value="admin" <?php if(isset($view)){ if($view[0]['type']=='admin'){echo "selected";}}?> >Admin</option> <option value="user" <?php if(isset($view)){ if($view[0]['type']=='user'){echo "selected";}}?> >User</option> </select> </div> </div> <?php if (!isset($view)) {?> <div class="form-group "> <label>Password</label> <div class=" input-group"> Password is auto generated. </div> </div> <?php }?> <button class="btn btn-info" name="save" value="save" type="submit">Save</button> </div><!-- /.box-body --> </div><!-- /.box --> </div><!--End .col-xs-12--> </div> <!-- /.row --> <?php echo form_close(); ?> <!-- /.Form data --> </section><!-- /.content --> </div><!-- /.content-wrapper --> <?php require_once(APPPATH.'views/footer.php');?>
Copyright ©2021 || Defacer Indonesia