Moved to PHP folder
This commit is contained in:
BIN
php/application/views/.DS_Store
vendored
Normal file
BIN
php/application/views/.DS_Store
vendored
Normal file
Binary file not shown.
100
php/application/views/admin/admin-users.php
Normal file
100
php/application/views/admin/admin-users.php
Normal file
@ -0,0 +1,100 @@
|
||||
<?php defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
$pagehead = "Admin Users";
|
||||
?>
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<?php $this->load->view('admin/includes/header-script')?>
|
||||
<title><?=TITLE?></title>
|
||||
<style type="text/css">
|
||||
.active {
|
||||
pointer-events: none;
|
||||
cursor: default;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body class="pushmenu-push pushmenu-push-toright">
|
||||
<?php $this->load->view('admin/includes/left-menu')?>
|
||||
<?php $this->load->view('admin/includes/header')?>
|
||||
<section class="admin-content">
|
||||
<div class="container">
|
||||
<h2><?=$pagehead?></h2>
|
||||
<?php
|
||||
$success_msg= $this->session->flashdata('success_msg');
|
||||
$error_msg= $this->session->flashdata('error_msg');
|
||||
if($success_msg) { ?>
|
||||
<div class="alert alert-success">
|
||||
<?php echo $success_msg; ?>
|
||||
<a href="#" class="close" data-dismiss="alert" aria-label="close" >×</a>
|
||||
</div>
|
||||
<?php } if($error_msg){ ?>
|
||||
<div class="alert alert-danger">
|
||||
<?php echo $error_msg; ?>
|
||||
<a href="#" class="close" data-dismiss="alert" aria-label="close" >×</a>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="col-md-12 col-lg-12 admin-setting">
|
||||
<div class="class-content d-flex">
|
||||
<div class="col-md-12 class-name col-lg-6">
|
||||
<?php echo form_open('admin/user/add_user'); ?>
|
||||
<div class="d-flex">
|
||||
<span>User Name</span>
|
||||
<input type="text" name="user_name" value="<?=isset($user_name)? $user_name : ''?>" class="form-control" required>
|
||||
</div>
|
||||
<div class="d-flex">
|
||||
<span>Password</span>
|
||||
<input type="password" name="user_password" value="<?=isset($user_password)? $user_password : ''?>" class="form-control" required>
|
||||
</div>
|
||||
<div class="submit-class d-flex justify-content-end">
|
||||
<?php if(isset($user_id)) { ?>
|
||||
<input type="hidden" value="<?=isset($user_id)? $user_id : ''?>" name="user_id">
|
||||
<input type="submit" name="submit" value="Update" style="cursor: pointer;" class="submit">
|
||||
<a href="<?= base_url();?>admin/admin-user"><input type="button" value="Cancel" style="cursor: pointer;" class="reset"></a>
|
||||
<?php } else {?>
|
||||
<input type="submit" name="submit" value="Add" style="cursor: pointer;" class="submit">
|
||||
<input type="reset" value="Reset" style="cursor: pointer;" class="reset">
|
||||
<?php } ?>
|
||||
</div>
|
||||
<?php echo form_close(); ?>
|
||||
</div>
|
||||
<div class="col-md-12 col-lg-6">
|
||||
<h2>Admin Users</h2>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>User Name</th>
|
||||
<th>Status</th>
|
||||
<th>Edit</th>
|
||||
<th>Delete</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach($all_users as $val) { ?>
|
||||
<tr>
|
||||
<td><?=$val['user_name']?></td>
|
||||
<td class="text-center"><?php
|
||||
if($val['user_status'] == "active") { ?>
|
||||
<a class="<?php if($this->session->user_id == $val['user_id']){echo "active"; }?>" href="<?=site_url('admin/user/update_status/'.$val['user_id'])?>"><div class="active-swith">
|
||||
<?=$val['user_status']?>
|
||||
</div></a>
|
||||
<?php } if($val['user_status'] == "inactive"){ ?>
|
||||
<a href="<?=site_url('admin/user/update_status/'.$val['user_id'])?>"><div class="active-swith off">
|
||||
<?=$val['user_status']?>
|
||||
</div></a>
|
||||
<?php } ?></td>
|
||||
<td><a href="<?=site_url();?>admin/admin-user-edit/<?=$val['user_id']?>" title="Edit"><img src="<?=site_url();?>assets/admin/img/edit.png" alt=""><a></td>
|
||||
<td><?php if( $val['user_type']!='admin') { ?><a href="<?=site_url();?>admin/admin-user-delete/<?=$val['user_id']?>" onclick="return confirm('Are you sure want to Delete?')" title="Delete"><img src="<?=site_url();?>assets/admin/img/delete.png" alt=""><a><?php } else { echo "Can't Delete"; }?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Optional JavaScript -->
|
||||
<?php $this->load->view('admin/includes/footer-script')?>
|
||||
</body>
|
||||
</html>
|
290
php/application/views/admin/class-create.php
Normal file
290
php/application/views/admin/class-create.php
Normal file
@ -0,0 +1,290 @@
|
||||
<?php defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
$pagehead = "New Class Form"; ?>
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<?php $this->load->view('admin/includes/header-script')?>
|
||||
<title><?=TITLE?></title>
|
||||
</head>
|
||||
<body class="pushmenu-push pushmenu-push-toright">
|
||||
<?php $this->load->view('admin/includes/left-menu')?>
|
||||
<?php $this->load->view('admin/includes/header')?>
|
||||
<section class="admin-content">
|
||||
<div class="container">
|
||||
<h2><?=$pagehead?></h2>
|
||||
<?php
|
||||
$success_msg= $this->session->flashdata('success_msg');
|
||||
$error_msg= $this->session->flashdata('error_msg');
|
||||
if($success_msg) { ?>
|
||||
<div class="alert alert-success">
|
||||
<?php echo $success_msg; ?>
|
||||
<a href="#" class="close" data-dismiss="alert" aria-label="close" >×</a>
|
||||
</div>
|
||||
<?php } if($error_msg){ ?>
|
||||
<div class="alert alert-danger">
|
||||
<a href="#" class="close" data-dismiss="alert" aria-label="close" >×</a>
|
||||
<?php echo $error_msg; ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="class-form d-flex">
|
||||
<div class="col-lg-7 col-md-12">
|
||||
<h3 class="general-h3">General Information</h3>
|
||||
<div class="general">
|
||||
<?php echo form_open('admin/class-manage'); ?>
|
||||
<div class="form-group d-flex">
|
||||
<div class="col-sm-6 d-flex no-pad ">
|
||||
<label for="">Class Name</label>
|
||||
<select name="class_id" id="target1" style="margin-right: 10px;" required>
|
||||
<option value="">Select Class</option>
|
||||
<?php foreach ($class_name as $value)
|
||||
{
|
||||
$selected = '';
|
||||
if($value['class_id'] == $class_id)
|
||||
{
|
||||
$selected = 'selected';
|
||||
} ?>
|
||||
<option <?=$selected?> value="<?=$value['class_id']?>"><?=$value['class_name']?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-sm-6 d-flex no-pad">
|
||||
<label for="">Total Seats</label>
|
||||
<input type="text" name="class_seats" value="<?=isset($class_seats)? $class_seats : ''?>" class="general-input" placeholder="No Of Seats" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group d-flex">
|
||||
<div class="col-sm-6 d-flex no-pad ">
|
||||
<label for="">Instructor:</label>
|
||||
<select name="instr_id" id="target2" style="margin-right: 10px;" required>
|
||||
<option value="">Select Instructor</option>
|
||||
<?php foreach ($class_instructor as $value)
|
||||
{
|
||||
$selected = '';
|
||||
if($value['instr_name'] == $instr_name)
|
||||
{
|
||||
$selected = 'selected';
|
||||
} ?>
|
||||
<option <?=$selected?> value="<?=$value['instr_id']?>"><?=$value['instr_name']?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-sm-6 d-flex no-pad">
|
||||
<label for="">Hours:</label>
|
||||
<input type="text" name="class_hours" value="<?=isset($class_hours)? $class_hours : ''?>" class="general-input" placeholder="Class Hours" required>
|
||||
</div>
|
||||
<div class="col-sm-6 d-flex no-pad ">
|
||||
</div>
|
||||
</div>
|
||||
<h3 class="general-h3">Eligible Registrants</h3>
|
||||
<div class="form-group d-flex">
|
||||
<div class="col-sm-6 d-flex no-pad">
|
||||
<span class="chk-abc"><input type="checkbox" value="M" <?php if(isset($class_registrants)) { if(in_array('M', $class_registrants)) { echo "checked"; } } ?> name="class_registrants[]" id="start" class="chk-date1"><label for="start"></label>Members / Alumni</span>
|
||||
</div>
|
||||
<div class="col-sm-6 d-flex no-pad ">
|
||||
<label for="">Price:</label>
|
||||
<input type="text" name="class_price_m" value="<?=isset($class_price_m)? $class_price_m : ''?>" class="general-input" placeholder="Price">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group d-flex">
|
||||
<div class="col-sm-6 d-flex no-pad">
|
||||
<span class="chk-abc"><input type="checkbox" value="M2" <?php if(isset($class_registrants)) { if(in_array('M2', $class_registrants)) { echo "checked"; } } ?> name="class_registrants[]" id="start1" class="chk-date1"><label for="start1"></label>Members / Alumni 2+</span>
|
||||
</div>
|
||||
<div class="col-sm-6 d-flex no-pad ">
|
||||
<label for="">Price:</label>
|
||||
<input type="text" name="class_price_m2" value="<?=isset($class_price_m2)? $class_price_m2 : ''?>" class="general-input" placeholder="Price">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group d-flex">
|
||||
<div class="col-sm-6 d-flex no-pad">
|
||||
<span class="chk-abc"> <input type="checkbox" id="start2" value="N" <?php if(isset($class_registrants)) { if(in_array('N', $class_registrants)) { echo "checked"; } } ?> name="class_registrants[]" class="chk-date2"><label for="start2"></label>Non-Member</span>
|
||||
</div>
|
||||
<div class="col-sm-6 d-flex no-pad ">
|
||||
<label for="">Price:</label>
|
||||
<input type="text" name="class_price_n" value="<?=isset($class_price_n)? $class_price_n : ''?>" class="general-input" placeholder="Price">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group d-flex">
|
||||
<div class="col-sm-6 d-flex no-pad">
|
||||
<span class="chk-abc"> <input type="checkbox" id="start3" value="N2" <?php if(isset($class_registrants)) { if(in_array('N2', $class_registrants)) { echo "checked"; } } ?> name="class_registrants[]" class="chk-date2"><label for="start3"></label>Non-Member 2+</span>
|
||||
</div>
|
||||
<div class="col-sm-6 d-flex no-pad ">
|
||||
<label for="">Price:</label>
|
||||
<input type="text" name="class_price_n2" value="<?=isset($class_price_n2)? $class_price_n2 : ''?>" class="general-input" placeholder="Price">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group d-flex">
|
||||
<div class="col-sm-6 d-flex no-pad">
|
||||
<span class="chk-abc"><input type="checkbox" id="start4" value="S" <?php if(isset($class_registrants)) { if(in_array('S', $class_registrants)) { echo "checked"; } } ?> name="class_registrants[]" class="chk-date3"><label for="start4"></label>SE</span>
|
||||
</div>
|
||||
<div class="col-sm-6 d-flex no-pad ">
|
||||
<label for="">Price:</label>
|
||||
<input type="text" name="class_price_s" value="<?=isset($class_price_s)? $class_price_s : ''?>" class="general-input" placeholder="Price">
|
||||
</div>
|
||||
</div>
|
||||
<div class="date-time" id="expand1">
|
||||
<h3 class="general-h3">Date and Time</h3>
|
||||
<div class="form-group d-flex">
|
||||
<span class="chk-abc"> <input type="checkbox" <?php if(isset($class_day)) { if(in_array("Mon", $class_day)) { echo "checked"; } } ?> name="class_day[]" value="Mon" id="d1" ><label for="d1"></label>Monday</span>
|
||||
<span class="chk-abc"> <input type="checkbox" <?php if(isset($class_day)) { if(in_array("Tue", $class_day)) { echo "checked"; } } ?> name="class_day[]" value="Tue" id="d2" ><label for="d2"></label>Tuesday</span>
|
||||
<span class="chk-abc"> <input type="checkbox" <?php if(isset($class_day)) { if(in_array("Wed", $class_day)) { echo "checked"; } } ?> name="class_day[]" value="Wed" id="d3" ><label for="d3"></label>Wednesday</span>
|
||||
<span class="chk-abc"> <input type="checkbox" <?php if(isset($class_day)) { if(in_array("Thu", $class_day)) { echo "checked"; } } ?> name="class_day[]" value="Thu" id="d4" ><label for="d4"></label>Thursday</span>
|
||||
<span class="chk-abc"> <input type="checkbox" <?php if(isset($class_day)) { if(in_array("Fri", $class_day)) { echo "checked"; } } ?> name="class_day[]" value="Fri" id="d5" ><label for="d5"></label>Friday</span>
|
||||
</div>
|
||||
<div class="form-group d-flex">
|
||||
<div class="col-sm-6 d-flex no-pad ">
|
||||
<label for="">Start Date:</label>
|
||||
<input type="text" name="calss_start_date" value="<?=isset($calss_start_date)? $calss_start_date : ''?>" class="general-input datepicker" placeholder="Start Date">
|
||||
</div>
|
||||
<div class="col-sm-6 d-flex no-pad ">
|
||||
 <label for="">End Date:</label>
|
||||
<input type="text" name="calss_end_date" value="<?=isset($calss_end_date)? $calss_end_date : ''?>" class="general-input datepicker" placeholder="End Date">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group d-flex">
|
||||
<div class="col-sm-6 d-flex no-pad ">
|
||||
<label for="">Start Time:</label>
|
||||
<input type="text" name="calss_start_time" value="<?=isset($calss_start_time)? $calss_start_time : ''?>" class="general-input m-10 timepicker" placeholder="Start Time">
|
||||
</div>
|
||||
<div class="col-sm-6 d-flex no-pad ">
|
||||
<label for="">End Time:</label>
|
||||
<input type="text" name="calss_end_time" value="<?=isset($calss_end_time)? $calss_end_time : ''?>" class="general-input timepicker" placeholder="End Time">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<h3 class="general-h3">Location</h3>
|
||||
<div class="form-group d-flex">
|
||||
<div class="col-sm-6 d-flex no-pad ">
|
||||
<label for="">Location:</label>
|
||||
<select name="locat_id" style="margin-right: 10px;" id="target3" required>
|
||||
<option value="">Select Location</option>
|
||||
<?php foreach ($class_location as $value)
|
||||
{
|
||||
$selected = '';
|
||||
if($value['locat_id'] == $locat_id)
|
||||
{
|
||||
$selected = 'selected';
|
||||
} ?>
|
||||
<option <?=$selected?> value="<?=$value['locat_id']?>"><?=$value['locat_name']?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-sm-6 d-flex no-pad ">
|
||||
<label for="">Room:</label>
|
||||
<input type="text" name="class_room" value="<?=isset($class_room)? $class_room : ''?>" class="general-input" placeholder="Room" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group d-flex">
|
||||
<div class="col-sm-6 d-flex no-pad ">
|
||||
<label for="">Physical Address:</label>
|
||||
<input type="text" name="class_address" value="<?=isset($class_address)? $class_address : ''?>" class="general-input m-10" placeholder="Address" required>
|
||||
</div>
|
||||
<div class="col-sm-6 d-flex no-pad ">
|
||||
<label for="">City:</label>
|
||||
 <input type="text" name="class_city" value="<?=isset($class_city)? $class_city : ''?>" class="general-input" placeholder="City" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group d-flex">
|
||||
<div class="col-sm-6 d-flex no-pad ">
|
||||
<label for="">State:</label>
|
||||
<input type="text" name="class_state" value="<?=isset($class_state)? $class_state : ''?>" class="general-input m-10" placeholder="State" required>
|
||||
</div>
|
||||
<div class="col-sm-6 d-flex no-pad ">
|
||||
<label for="">Zip Code:</label>
|
||||
<input type="text" name="class_code" value="<?=isset($class_code)? $class_code : ''?>" class="general-input" placeholder="Zip Code" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group d-flex">
|
||||
<div class="col-sm-6 d-flex no-pad ">
|
||||
<label for="">Phone Number:</label>
|
||||
<input type="text" name="class_phone" value="<?=isset($class_phone)? $class_phone : ''?>" class="general-input m-10 yourphone" placeholder="Phone Number" required>
|
||||
</div>
|
||||
<div class="col-sm-6 d-flex no-pad ">
|
||||
</div>
|
||||
</div>
|
||||
<h3 class="general-h3">Class Description</h3>
|
||||
<textarea class="form-control" name="class_description" rows="5" id="comment"><?=isset($class_description)? $class_description : ''?></textarea>
|
||||
<div class="submit-class d-flex">
|
||||
<?php if(isset($form_id)) { ?>
|
||||
<div class="col6">
|
||||
<input type="hidden" name="form_id" value="<?=isset($form_id)? $form_id : ''?>">
|
||||
<input type="submit" name="submit" value="Update" style="cursor: pointer;" class="submit">
|
||||
</div>
|
||||
<div class="col6">
|
||||
<a href="<?= base_url();?>admin/create-class"><input type="button" value="Cancel" style="cursor: pointer;" class="reset"></a>
|
||||
</div>
|
||||
<?php } else { ?>
|
||||
<div class="col6">
|
||||
<input type="submit" name="submit" value="Add" style="cursor: pointer;" class="submit">
|
||||
</div>
|
||||
<div class="col6">
|
||||
<input type="reset" value="Reset" style="cursor: pointer;" class="reset">
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<?php echo form_close(); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-5 col-md-12 class-table">
|
||||
<h3 class="general-h3">List of Classes</h3>
|
||||
<?php echo form_open('admin/Createclass/delete_form'); ?>
|
||||
<select onChange="this.form.submit()" name="action" class="duplicate-sl" id="target4">
|
||||
<option value="">Action</option>
|
||||
<option value="duplicate">Duplicate Record</option>
|
||||
<option value="delete">Delete Record</option>
|
||||
</select>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><span class="chk-abc"><input type="checkbox" name="chk" class="selectall" id="tb7"><label for="tb7"></label></span></th>
|
||||
<th>Form Id</th>
|
||||
<th>Created</th>
|
||||
<th>Class Name</th>
|
||||
<th>Edit</th>
|
||||
<th>Delete</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach($all_class as $val) { ?>
|
||||
<tr>
|
||||
<td><span class="chk-abc"><input name="check_id[]" type="checkbox" value="<?=$val['form_id']?>" class="case" id="<?=$val['form_id']?>"><label for="<?=$val['form_id']?>"></label></span></td>
|
||||
<td><?=$val['form_id']?></td>
|
||||
<td><?=date("d-m-Y",strtotime($val['form_createddate']))?></td>
|
||||
<td><?=$val['class_name']?></td>
|
||||
<td><a href="<?=base_url();?>admin/create-class-edit/<?=$val['form_id']?>" title="Edit"><img src="<?=base_url();?>assets/admin/img/edit.png" alt=""><a></td>
|
||||
<td><a href="<?=base_url();?>admin/create-class-delete/<?=$val['form_id']?>" onclick="return confirm('Are you sure want to Delete?')" title="Delete"><img src="<?=base_url();?>assets/admin/img/delete.png" alt=""><a></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php echo form_close(); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
<!-- Optional JavaScript -->
|
||||
<?php $this->load->view('admin/includes/footer-script')?>
|
||||
<script language="JavaScript">
|
||||
$(document).ready(function(){
|
||||
$('.selectall').on('click',function(){
|
||||
if(this.checked){
|
||||
$('.case').each(function(){
|
||||
this.checked = true;
|
||||
});
|
||||
}else{
|
||||
$('.case').each(function(){
|
||||
this.checked = false;
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
$('.case').on('click',function(){
|
||||
if($('.case:checked').length == $('.case').length){
|
||||
$('.selectall').prop('checked',true);
|
||||
}else{
|
||||
$('.selectall').prop('checked',false);
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
88
php/application/views/admin/classsetting-instructor.php
Normal file
88
php/application/views/admin/classsetting-instructor.php
Normal file
@ -0,0 +1,88 @@
|
||||
<?php defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
$pagehead = "Class Settings Page"; ?>
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<?php $this->load->view('admin/includes/header-script')?>
|
||||
<title><?=TITLE?></title>
|
||||
</head>
|
||||
<body class="pushmenu-push pushmenu-push-toright">
|
||||
<?php $this->load->view('admin/includes/left-menu')?>
|
||||
<?php $this->load->view('admin/includes/header')?>
|
||||
<section class="admin-content">
|
||||
<div class="container">
|
||||
<h2><?=$pagehead?></h2>
|
||||
<?php
|
||||
$success_msg= $this->session->flashdata('success_msg');
|
||||
$error_msg= $this->session->flashdata('error_msg');
|
||||
if($success_msg) { ?>
|
||||
<div class="alert alert-success">
|
||||
<?php echo $success_msg; ?>
|
||||
<a href="#" class="close" data-dismiss="alert" aria-label="close" >×</a>
|
||||
</div>
|
||||
<?php } if($error_msg){ ?>
|
||||
<div class="alert alert-danger">
|
||||
<?php echo $error_msg; ?>
|
||||
<a href="#" class="close" data-dismiss="alert" aria-label="close" >×</a>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="setting d-flex">
|
||||
<div class="col-md-12 col-lg-2 no-pad class-left">
|
||||
<ul class="class-nav d-flex">
|
||||
<li><a href="<?= base_url();?>admin/class-name">Class Names</a></li>
|
||||
<li><a href="<?= base_url();?>admin/class-locations">Locations</a></li>
|
||||
<li class="active"><a href="<?= base_url();?>admin/class-instructors">Instructors</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-md-12 col-lg-10">
|
||||
<div class="class-content d-flex">
|
||||
<div class="col-md-12 class-name col-lg-6">
|
||||
<?php echo form_open('admin/classsetting/manage_instructor'); ?>
|
||||
<div class="d-flex">
|
||||
<span style="font-size: 13px">Approved Instructor</span>
|
||||
<input type="text" name="instr_name" value="<?=isset($instr_name)? $instr_name : ''?>" class="form-control" required>
|
||||
</div>
|
||||
<div class="submit-class d-flex justify-content-end">
|
||||
<?php if(isset($instr_id)) { ?>
|
||||
<input type="hidden" value="<?=isset($instr_id)? $instr_id : ''?>" name="instr_id">
|
||||
<input type="submit" name="submit" value="Update" style="cursor: pointer;" class="submit">
|
||||
<a href="<?= base_url();?>admin/class-instructors"><input type="button" value="Cancel" style="cursor: pointer;" class="reset"></a>
|
||||
<?php } else {?>
|
||||
<input type="submit" name="submit" value="Add" style="cursor: pointer;" class="submit">
|
||||
<input type="reset" value="Reset" style="cursor: pointer;" class="reset">
|
||||
<?php } ?>
|
||||
</div>
|
||||
<?php echo form_close(); ?>
|
||||
</div>
|
||||
<div class="col-md-12 col-lg-6">
|
||||
<h2> Class Instructors</h2>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Created </th>
|
||||
<th>Class Instructors</th>
|
||||
<th>Edit</th>
|
||||
<th>Delete</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach($all_instructors as $val) { ?>
|
||||
<tr>
|
||||
<td><?=date("d-m-Y",strtotime($val['instr_createddate']))?></td>
|
||||
<td><?=$val['instr_name']?></td>
|
||||
<td><a href="<?=base_url();?>admin/class-instructors-edit/<?=$val['instr_id']?>" title="Edit"><img src="<?=base_url();?>assets/admin/img/edit.png" alt=""><a></td>
|
||||
<td><a href="<?=base_url();?>admin/class-instructors-delete/<?=$val['instr_id']?>" onclick="return confirm('Are you sure want to Delete?')" title="Delete"><img src="<?=base_url();?>assets/admin/img/delete.png" alt=""><a></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Optional JavaScript -->
|
||||
<?php $this->load->view('admin/includes/footer-script')?>
|
||||
</body>
|
||||
</html>
|
88
php/application/views/admin/classsetting-location.php
Normal file
88
php/application/views/admin/classsetting-location.php
Normal file
@ -0,0 +1,88 @@
|
||||
<?php defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
$pagehead = "Class Settings Page"; ?>
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<?php $this->load->view('admin/includes/header-script')?>
|
||||
<title><?=TITLE?></title>
|
||||
</head>
|
||||
<body class="pushmenu-push pushmenu-push-toright">
|
||||
<?php $this->load->view('admin/includes/left-menu')?>
|
||||
<?php $this->load->view('admin/includes/header')?>
|
||||
<section class="admin-content">
|
||||
<div class="container">
|
||||
<h2><?=$pagehead?></h2>
|
||||
<?php
|
||||
$success_msg= $this->session->flashdata('success_msg');
|
||||
$error_msg= $this->session->flashdata('error_msg');
|
||||
if($success_msg) { ?>
|
||||
<div class="alert alert-success">
|
||||
<?php echo $success_msg; ?>
|
||||
<a href="#" class="close" data-dismiss="alert" aria-label="close" >×</a>
|
||||
</div>
|
||||
<?php } if($error_msg){ ?>
|
||||
<div class="alert alert-danger">
|
||||
<?php echo $error_msg; ?>
|
||||
<a href="#" class="close" data-dismiss="alert" aria-label="close" >×</a>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="setting d-flex">
|
||||
<div class="col-md-12 col-lg-2 no-pad class-left">
|
||||
<ul class="class-nav d-flex">
|
||||
<li><a href="<?= base_url();?>admin/class-name">Class Names</a></li>
|
||||
<li class="active"><a href="<?= base_url();?>admin/class-locations">Locations</a></li>
|
||||
<li><a href="<?= base_url();?>admin/class-instructors">Instructors</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-md-12 col-lg-10">
|
||||
<div class="class-content d-flex">
|
||||
<div class="col-md-12 class-name col-lg-6">
|
||||
<?php echo form_open('admin/classsetting/manage_location'); ?>
|
||||
<div class="d-flex">
|
||||
<span>Class Locations</span>
|
||||
<input type="text" name="locat_name" value="<?=isset($locat_name)? $locat_name : ''?>" class="form-control" required>
|
||||
</div>
|
||||
<div class="submit-class d-flex justify-content-end">
|
||||
<?php if(isset($locat_id)) { ?>
|
||||
<input type="hidden" value="<?=isset($locat_id)? $locat_id : ''?>" name="locat_id">
|
||||
<input type="submit" name="submit" value="Update" style="cursor: pointer;" class="submit">
|
||||
<a href="<?= base_url();?>admin/class-locations"><input type="button" value="Cancel" style="cursor: pointer;" class="reset"></a>
|
||||
<?php } else {?>
|
||||
<input type="submit" name="submit" value="Add" style="cursor: pointer;" class="submit">
|
||||
<input type="reset" value="Reset" style="cursor: pointer;" class="reset">
|
||||
<?php } ?>
|
||||
</div>
|
||||
<?php echo form_close(); ?>
|
||||
</div>
|
||||
<div class="col-md-12 col-lg-6">
|
||||
<h2> Class Locations</h2>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Created </th>
|
||||
<th>Class Locations</th>
|
||||
<th>Edit</th>
|
||||
<th>Delete</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach($all_locations as $val) { ?>
|
||||
<tr>
|
||||
<td><?=date("d-m-Y",strtotime($val['locat_createddate']))?></td>
|
||||
<td><?=$val['locat_name']?></td>
|
||||
<td><a href="<?=base_url();?>admin/class-locations-edit/<?=$val['locat_id']?>" title="Edit"><img src="<?=base_url();?>assets/admin/img/edit.png" alt=""><a></td>
|
||||
<td><a href="<?=base_url();?>admin/class-locations-delete/<?=$val['locat_id']?>" onclick="return confirm('Are you sure want to Delete?')" title="Delete"><img src="<?=base_url();?>assets/admin/img/delete.png" alt=""><a></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Optional JavaScript -->
|
||||
<?php $this->load->view('admin/includes/footer-script')?>
|
||||
</body>
|
||||
</html>
|
88
php/application/views/admin/classsetting-names.php
Normal file
88
php/application/views/admin/classsetting-names.php
Normal file
@ -0,0 +1,88 @@
|
||||
<?php defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
$pagehead = "Class Settings Page"; ?>
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<?php $this->load->view('admin/includes/header-script')?>
|
||||
<title><?=TITLE?></title>
|
||||
</head>
|
||||
<body class="pushmenu-push pushmenu-push-toright">
|
||||
<?php $this->load->view('admin/includes/left-menu')?>
|
||||
<?php $this->load->view('admin/includes/header')?>
|
||||
<section class="admin-content">
|
||||
<div class="container">
|
||||
<h2><?=$pagehead?></h2>
|
||||
<?php
|
||||
$success_msg= $this->session->flashdata('success_msg');
|
||||
$error_msg= $this->session->flashdata('error_msg');
|
||||
if($success_msg) { ?>
|
||||
<div class="alert alert-success">
|
||||
<?php echo $success_msg; ?>
|
||||
<a href="#" class="close" data-dismiss="alert" aria-label="close" >×</a>
|
||||
</div>
|
||||
<?php } if($error_msg){ ?>
|
||||
<div class="alert alert-danger">
|
||||
<?php echo $error_msg; ?>
|
||||
<a href="#" class="close" data-dismiss="alert" aria-label="close" >×</a>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="setting d-flex">
|
||||
<div class="col-md-12 col-lg-2 no-pad class-left">
|
||||
<ul class="class-nav d-flex">
|
||||
<li class="active"><a href="<?= base_url();?>admin/class-name">Class Names</a></li>
|
||||
<li ><a href="<?= base_url();?>admin/class-locations">Locations</a></li>
|
||||
<li><a href="<?= base_url();?>admin/class-instructors">Instructors</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-md-12 col-lg-10">
|
||||
<div class="class-content d-flex">
|
||||
<div class="col-md-12 class-name col-lg-6">
|
||||
<?php echo form_open('admin/classsetting/manage_class'); ?>
|
||||
<div class="d-flex">
|
||||
<span>Class Names</span>
|
||||
<input type="text" name="class_name" value="<?=isset($class_name)? $class_name : ''?>" class="form-control" required>
|
||||
</div>
|
||||
<div class="submit-class d-flex justify-content-end">
|
||||
<?php if(isset($class_id)) { ?>
|
||||
<input type="hidden" value="<?=isset($class_id)? $class_id : ''?>" name="class_id">
|
||||
<input type="submit" name="submit" value="Update" style="cursor: pointer;" class="submit">
|
||||
<a href="<?php echo base_url('admin/class-name'); ?>"><input type="button" value="Cancel" style="cursor: pointer;" class="reset"></a>
|
||||
<?php } else {?>
|
||||
<input type="submit" name="submit" value="Add" style="cursor: pointer;" class="submit">
|
||||
<input type="reset" value="Reset" style="cursor: pointer;" class="reset">
|
||||
<?php } ?>
|
||||
</div>
|
||||
<?php echo form_close(); ?>
|
||||
</div>
|
||||
<div class="col-md-12 col-lg-6">
|
||||
<h2> Class Names</h2>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Created </th>
|
||||
<th>Class Name</th>
|
||||
<th>Edit</th>
|
||||
<th>Delete</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach($all_class as $val) { ?>
|
||||
<tr>
|
||||
<td><?=date("d-m-Y",strtotime($val['class_createddate']))?></td>
|
||||
<td><?=$val['class_name']?></td>
|
||||
<td><a href="<?=base_url();?>admin/class-name-edit/<?=$val['class_id']?>" title="Edit"><img src="<?=base_url();?>assets/admin/img/edit.png" alt=""><a></td>
|
||||
<td><a href="<?=base_url();?>admin/class-name-delete/<?=$val['class_id']?>" onclick="return confirm('Are you sure want to Delete?')" title="Delete"><img src="<?=base_url();?>assets/admin/img/delete.png" alt=""><a></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Optional JavaScript -->
|
||||
<?php $this->load->view('admin/includes/footer-script')?>
|
||||
</body>
|
||||
</html>
|
47
php/application/views/admin/dashboard.php
Normal file
47
php/application/views/admin/dashboard.php
Normal file
@ -0,0 +1,47 @@
|
||||
<?php defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
$pagehead = "Dashboard"; ?>
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<?php $this->load->view('admin/includes/header-script')?>
|
||||
<title><?=TITLE?></title>
|
||||
</head>
|
||||
<body class="pushmenu-push pushmenu-push-toright">
|
||||
<?php $this->load->view('admin/includes/left-menu')?>
|
||||
<?php $this->load->view('admin/includes/header')?>
|
||||
<section class="admin-content">
|
||||
<div class="container">
|
||||
<h2><?=$pagehead?></h2>
|
||||
<div class="dashboard d-flex">
|
||||
<div class="col-sm-12 d-flex no-pad">
|
||||
<div class="setting">
|
||||
<h3><?=$class?></h3>
|
||||
<h2>Class Settings</h2>
|
||||
<a href="<?= base_url();?>admin/class-name">View</a>
|
||||
</div>
|
||||
<div class="create">
|
||||
<h3><?=$creates?></h3>
|
||||
<h2>Create Class</h2>
|
||||
<a href="<?= base_url();?>admin/create-class">View</a>
|
||||
</div>
|
||||
       
|
||||
<div class="setting">
|
||||
<h3><?=$list?></h3>
|
||||
<h2>Order List</h2>
|
||||
<a href="<?= base_url();?>admin/order-list">View</a>
|
||||
</div>
|
||||
<?php if($this->session->user_type == "admin") { ?>
|
||||
<div class="create">
|
||||
<h3><?=$users?></h3>
|
||||
<h2>Admin users</h2>
|
||||
<a href="<?php echo base_url('admin/admin-user');?>">View</a>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Optional JavaScript -->
|
||||
<?php $this->load->view('admin/includes/footer-script')?>
|
||||
</body>
|
||||
</html>
|
54
php/application/views/admin/includes/footer-script.php
Normal file
54
php/application/views/admin/includes/footer-script.php
Normal file
@ -0,0 +1,54 @@
|
||||
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
|
||||
<!--<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>-->
|
||||
<script src="<?=base_url();?>assets/admin/js/jquery-2.1.4.min.js"></script>
|
||||
<script src="<?=base_url();?>assets/admin/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
|
||||
<script type="text/javascript" src="<?=base_url();?>assets/admin/js/push.js"></script>
|
||||
<script type="text/javascript" src="<?=base_url();?>assets/admin/js/bootstrap-datepicker.min.js"></script>
|
||||
<script type="text/javascript" src="<?=base_url();?>assets/admin/js/jquery.timepicker.min.js"></script>
|
||||
<script src="<?=base_url();?>assets/front/js/jquery-input-mask-phone-number.js"></script>
|
||||
<!-- <script>
|
||||
function toggleslidebar() {
|
||||
document.getElementById("sidebar").classList.toggle("active");
|
||||
}
|
||||
</script> -->
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
$("#nav_list").click(function(){
|
||||
$(".admin-content").toggleClass("main");
|
||||
$(".admin-header .admin").toggleClass("main");
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
<script>
|
||||
function myFunction(x) {
|
||||
x.classList.toggle("change");
|
||||
}
|
||||
</script>
|
||||
|
||||
<script>
|
||||
$("#nav-click").click(function(){
|
||||
$("#sidebar ul").slideToggle();
|
||||
});
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
$('.datepicker').datepicker(
|
||||
{
|
||||
autoclose: true,
|
||||
todayHighlight: true,
|
||||
format: 'dd-mm-yyyy'
|
||||
}
|
||||
);
|
||||
</script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
$('.timepicker').timepicker();
|
||||
});
|
||||
|
||||
$(document).ready(function () {
|
||||
$('.yourphone').usPhoneFormat({
|
||||
format: '(xxx) xxx-xxxx',
|
||||
});
|
||||
});
|
||||
</script>
|
9
php/application/views/admin/includes/header-script.php
Normal file
9
php/application/views/admin/includes/header-script.php
Normal file
@ -0,0 +1,9 @@
|
||||
<!-- Required meta tags -->
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<!-- Bootstrap CSS -->
|
||||
<link rel="stylesheet" href="<?=base_url();?>assets/admin/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="<?=base_url();?>assets/admin/css/style.css">
|
||||
<link rel="stylesheet" href="<?=base_url();?>assets/admin/css/responsive.css">
|
||||
<link rel="stylesheet" href="<?=base_url();?>assets/admin/css/bootstrap-datepicker3.min.css">
|
||||
<link rel="stylesheet" href="<?=base_url();?>assets/admin/css/jquery.timepicker.min.css">
|
14
php/application/views/admin/includes/header.php
Normal file
14
php/application/views/admin/includes/header.php
Normal file
@ -0,0 +1,14 @@
|
||||
<header>
|
||||
<div class="d-flex admin-header">
|
||||
<div class="toggle active" id="nav_list"> <img src="<?=base_url();?>assets/admin/img/hamperger.png" alt=""></div>
|
||||
<div class="admin ml-auto d-flex">
|
||||
<span><img src="<?=base_url();?>assets/admin/img/admin-logo.png"><?=$this->session->userdata('user_name');?></span>
|
||||
<span class="logout"><a href="<?= base_url();?>admin/logout"><img src="<?=base_url();?>assets/admin/img/logout.png">Logout</a></span>
|
||||
<div class="toggle-bar" id="nav-click" onclick="myFunction(this)">
|
||||
<div class="bar1"></div>
|
||||
<div class="bar2"></div>
|
||||
<div class="bar3"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
48
php/application/views/admin/includes/left-menu.php
Normal file
48
php/application/views/admin/includes/left-menu.php
Normal file
@ -0,0 +1,48 @@
|
||||
<?php
|
||||
$menu1 = "";
|
||||
$menu2 = "";
|
||||
$menu3 = "";
|
||||
$menu4 = "";
|
||||
$menu5 = "";
|
||||
|
||||
if($this->uri->uri_string() == 'admin/dashboard')
|
||||
$menu1 = "active highlight";
|
||||
if($this->uri->uri_string() == 'admin/class-name')
|
||||
$menu2 = "active highlight";
|
||||
if($this->uri->segment(2) == 'class-name-edit')
|
||||
$menu2 = "active highlight";
|
||||
if($this->uri->uri_string() == 'admin/class-locations')
|
||||
$menu2 = "active highlight";
|
||||
if($this->uri->segment(2) == 'class-locations-edit')
|
||||
$menu2 = "active highlight";
|
||||
if($this->uri->uri_string() == 'admin/class-instructors')
|
||||
$menu2 = "active highlight";
|
||||
if($this->uri->segment(2) == 'class-instructors-edit')
|
||||
$menu2 = "active highlight";
|
||||
if($this->uri->uri_string() == 'admin/create-class')
|
||||
$menu3 = "active highlight";
|
||||
if($this->uri->segment(2) == 'create-class-edit')
|
||||
$menu3 = "active highlight";
|
||||
if($this->uri->uri_string() == 'admin/admin-user')
|
||||
$menu4 = "active highlight";
|
||||
if($this->uri->segment(2) == 'admin-user-edit')
|
||||
$menu4 = "active highlight";
|
||||
if($this->uri->uri_string() == 'admin/order-list')
|
||||
$menu5 = "active highlight";
|
||||
if($this->uri->uri_string() == 'admin/order-search')
|
||||
$menu5 = "active highlight";
|
||||
if($this->uri->segment(2) == 'order-list')
|
||||
$menu5 = "active highlight";
|
||||
?>
|
||||
<nav class="admin-nav pushmenu pushmenu-left pushmenu-open" id="sidebar">
|
||||
<div class="logo"><img src="<?=base_url();?>assets/admin/img/abc_logo_svg.svg" alt=""></div>
|
||||
<ul>
|
||||
<li class="<?=$menu1?>"><a href="<?= base_url();?>admin/dashboard"><img src="<?=base_url();?>assets/admin/img/dashboard.png" alt=""> Dashboard</a></li>
|
||||
<li class="<?=$menu2?>"><a href="<?= base_url();?>admin/class-name"><img src="<?=base_url();?>assets/admin/img/tools.png" alt="">Class Settings</a></li>
|
||||
<li class="<?=$menu3?>"><a href="<?= base_url();?>admin/create-class"><img src="<?=base_url();?>assets/admin/img/create.png" alt="">Create Class</a></li>
|
||||
<li class="<?=$menu5?>"><a href="<?= base_url();?>admin/order-list"><img src="<?=base_url();?>assets/admin/img/list.png" alt="">Order List</a></li>
|
||||
<?php if($this->session->user_type == "admin") { ?>
|
||||
<li class="<?=$menu4?>"><a href="<?= base_url();?>admin/admin-user"><img src="<?=base_url();?>assets/admin/img/ad.png" alt="">Admin Users</a></li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
</nav>
|
118
php/application/views/admin/index.html
Normal file
118
php/application/views/admin/index.html
Normal file
@ -0,0 +1,118 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Required meta tags -->
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<!-- Bootstrap CSS -->
|
||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="css/style.css">
|
||||
<link rel="stylesheet" href="css/responsive.css">
|
||||
<title>ABC-DASHBOARD</title>
|
||||
</head>
|
||||
<body class="pushmenu-push pushmenu-push-toright">
|
||||
<nav class="admin-nav pushmenu pushmenu-left pushmenu-open" id="sidebar">
|
||||
<div class="logo"><img src="https://www.abc.org/Portals/1/abc_logo_svg.svg" alt=""></div>
|
||||
<ul>
|
||||
<li class="active"><a href="index.html"><img src="img/dashboard.png" alt=""> Dashboard</a></li>
|
||||
<li><a href="classsetting-names.html"><img src="img/tools.png" alt="">Class Settings</a></li>
|
||||
<li><a href="class-form.html"><img src="img/create.png" alt="">Create Class</a></li>
|
||||
<li><a href="admin-users.html"><img src="img/ad.png" alt="">Admin Users</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
<header>
|
||||
<div class="d-flex admin-header">
|
||||
<div class="toggle active" id="nav_list"> <img src="img/hamperger.png" alt=""></div>
|
||||
<div class="admin ml-auto d-flex">
|
||||
<span > <img src="img/admin-logo.png"> Admin</span> <span class="logout"> <img src="img/logout.png">Logout</span>
|
||||
<div class="toggle-bar" id="nav-click" onclick="myFunction(this)">
|
||||
<div class="bar1"></div>
|
||||
<div class="bar2"></div>
|
||||
<div class="bar3"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<section class="admin-content">
|
||||
<div class="container">
|
||||
<h2>Dashboard</h2>
|
||||
<div class="dashboard d-flex">
|
||||
<div class="col-sm-10 d-flex no-pad">
|
||||
<div class="setting">
|
||||
<h3>150</h3>
|
||||
<h2>Class Settings</h2>
|
||||
<a href="classsetting-names.html">View</a>
|
||||
|
||||
</div>
|
||||
<div class="create">
|
||||
<h3>150</h3>
|
||||
<h2>Create Class</h2>
|
||||
<a href="class-form.html">View</a></div>
|
||||
<div class="create admin">
|
||||
<h3>150</h3>
|
||||
<h2>Admin users</h2>
|
||||
<a href="admin-users.html">View</a></div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Optional JavaScript -->
|
||||
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
|
||||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
|
||||
<script type="text/javascript" src="js/push.js"></script>
|
||||
<!-- <script>
|
||||
function toggleslidebar() {
|
||||
document.getElementById("sidebar").classList.toggle("active");
|
||||
}
|
||||
</script> -->
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
$("#nav_list").click(function(){
|
||||
$(".admin-content").toggleClass("main");
|
||||
$(".admin-header .admin").toggleClass("main");
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
<script>
|
||||
function myFunction(x) {
|
||||
x.classList.toggle("change");
|
||||
}
|
||||
</script>
|
||||
|
||||
<script>
|
||||
$("#nav-click").click(function(){
|
||||
$("#sidebar ul").slideToggle();
|
||||
});
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
$(".date-time").hide();
|
||||
$(".chk-date1").click(function() {
|
||||
if($(this).is(":checked")) {
|
||||
$("#expand1").show();
|
||||
} else {
|
||||
$("#expand1").hide();
|
||||
}
|
||||
});
|
||||
|
||||
$(".chk-date2").click(function() {
|
||||
if($(this).is(":checked")) {
|
||||
$("#expand2").show();
|
||||
} else {
|
||||
$("#expand2").hide();
|
||||
}
|
||||
});
|
||||
|
||||
$(".chk-date3").click(function() {
|
||||
if($(this).is(":checked")) {
|
||||
$("#expand3").show();
|
||||
} else {
|
||||
$("#expand3").hide();
|
||||
}
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
67
php/application/views/admin/login.php
Normal file
67
php/application/views/admin/login.php
Normal file
@ -0,0 +1,67 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Required meta tags -->
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
|
||||
<!-- Bootstrap CSS -->
|
||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="<?=base_url();?>assets/admin/css/style.css">
|
||||
|
||||
<title><?=TITLE?></title>
|
||||
</head>
|
||||
<body>
|
||||
<section class="abc-login">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-sm-9 col-md-7 col-lg-5 mx-auto">
|
||||
<div class="card card-signin my-5">
|
||||
<div class="card-body">
|
||||
<div class="logo d-flex justify-content-center align-content-center"> <img src="<?=base_url();?>assets/admin/img/logo.jpg" alt=""></div>
|
||||
<h5 class="card-title text-center">Please enter your login details. </h5>
|
||||
<?php
|
||||
$success_msg= $this->session->flashdata('success_msg');
|
||||
$error_msg= $this->session->flashdata('login_failed');
|
||||
if($error_msg){ ?>
|
||||
<div class="alert alert-danger">
|
||||
<?php echo $error_msg; ?>
|
||||
<a href="#" class="close" data-dismiss="alert" aria-label="close" >×</a>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php echo form_open('admin/admin/login'); ?>
|
||||
<div class="form-signin">
|
||||
<div class="form-label-group">
|
||||
<label for="inputEmail">User Name</label>
|
||||
<input type="text" id="username" name="username" value="<?php if(isset($_COOKIE['abc_user'])) { echo $_COOKIE['abc_user']; } ?>" class="form-control" placeholder="User Name" required autofocus>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="form-label-group">
|
||||
<label for="inputPassword">Password</label>
|
||||
<input type="password" id="password" value="<?php if(isset($_COOKIE['abc_password'])) { echo $_COOKIE['abc_password']; } ?>" name="password" class="form-control" placeholder="Password" required>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="custom-control custom-checkbox mb-3">
|
||||
<input type="checkbox" <?php if(isset($_COOKIE['abc_password'])) { ?> checked="checked" <?php } ?> class="custom-control-input" name="remember_me" id="customCheck1">
|
||||
<label class="custom-control-label remember" for="customCheck1"><span>Remember password</span></label>
|
||||
</div>
|
||||
<button class="btn btn-lg btn-primary btn-block text-uppercase" type="submit">Sign in</button>
|
||||
</div>
|
||||
<?php echo form_close(); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
<!-- Optional JavaScript -->
|
||||
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
|
||||
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
|
||||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
|
||||
</body>
|
||||
</html>
|
108
php/application/views/admin/order-list.php
Normal file
108
php/application/views/admin/order-list.php
Normal file
@ -0,0 +1,108 @@
|
||||
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<?php $this->load->view('admin/includes/header-script')?>
|
||||
<title><?=TITLE?></title>
|
||||
<style type="text/css">
|
||||
.button {
|
||||
margin-top: -6px;
|
||||
padding: 4px 10px;
|
||||
text-align: center;
|
||||
font-family: 'HelveticaNeue-Condensed';
|
||||
font-size: 16px;
|
||||
position: relative;
|
||||
border: 0;
|
||||
background: #0070c0;
|
||||
color: #fff;
|
||||
top: -6px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body class="pushmenu-push pushmenu-push-toright">
|
||||
<?php $this->load->view('admin/includes/left-menu')?>
|
||||
<?php $this->load->view('admin/includes/header')?>
|
||||
<section class="admin-content">
|
||||
<div class="container">
|
||||
<h2>Order List</h2>
|
||||
<?php
|
||||
$success_msg= $this->session->flashdata('success_msg');
|
||||
$error_msg= $this->session->flashdata('error_msg');
|
||||
if($success_msg) { ?>
|
||||
<div class="alert alert-success">
|
||||
<?php echo $success_msg; ?>
|
||||
<a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>
|
||||
</div>
|
||||
<?php } if($error_msg){ ?>
|
||||
<div class="alert alert-danger">
|
||||
<?php echo $error_msg; ?>
|
||||
<a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="col-md-12">
|
||||
<?php echo form_open('admin/order-search'); ?>
|
||||
<div class="form-group d-flex">
|
||||
<h3>Search</h3>
|
||||
<div class="col-md-3">
|
||||
<input class="form-control" type="text" name="orderno" placeholder="Order Number" value="<?= set_value('orderno') ?>">
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<input class="form-control datepicker" type="text" name="fromedate" placeholder="Order From Date" value="<?= set_value('fromedate') ?>">
|
||||
</div>
|
||||
<h3>-</h3>
|
||||
<div class="col-md-3">
|
||||
<input class="form-control datepicker" type="text" name="todate" placeholder="Order To Date" value="<?= set_value('todate') ?>">
|
||||
</div>
|
||||
<div class="search-class col-md-3">
|
||||
<input class="search submitLink" name="submit" value="Search" style="cursor: pointer;" type="submit">
|
||||
</div>
|
||||
</div>
|
||||
<?php echo form_close(); ?>
|
||||
<div class="table-responsive ">
|
||||
<table class="table" >
|
||||
<thead>
|
||||
<tr style="font-weight: bold;">
|
||||
<th>Order Number</th>
|
||||
<th>Class Location</th>
|
||||
<th>Total Class</th>
|
||||
<th>Total Registrants</th>
|
||||
<th>Total Amonut</th>
|
||||
<th>Date Ordered</th>
|
||||
<th>Status</th>
|
||||
<th style="width: 170px">Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach($all_order as $val) { ?>
|
||||
<tr>
|
||||
<td><?=$val->reg_id?></td>
|
||||
<td><?=$val->locat_name?></td>
|
||||
<td><?=$val->reg_class_count?></td>
|
||||
<td><?=$val->att_total_count?></td>
|
||||
<td><?='$ '.$val->reg_total.'.00'?></td>
|
||||
<td><?=date("d-m-Y",strtotime($val->reg_date))?></td>
|
||||
<td><?php if($val->status == "paid") { ?><span class="alert-success">Paid</span><?php } elseif ($val->status == "unpaid") { ?><span class="alert-danger"> Unpaid</span><?php } ?></td>
|
||||
<td> <a href="<?=base_url();?>admin/view-order/<?=$val->reg_id?>/0" title="view"><img src="<?=base_url();?>assets/admin/img/eye.png" alt=""><a> 
|
||||
<a href="<?=base_url();?>admin/view-order/<?=$val->reg_id?>/1" title="print"><img src="<?=base_url();?>assets/admin/img/print.png" alt=""><a> 
|
||||
<a href="<?=base_url();?>order-delete/<?=$val->reg_id?>" onclick="return confirm('Are you sure want to Delete?')" title="Delete"><img src="<?=base_url();?>assets/admin/img/delete.png" alt=""><a>
|
||||
<?php if($val->status == "unpaid") { ?>
|
||||
<a href="<?=base_url();?>order-paid/<?=$val->reg_id?>"><input style="cursor: pointer;" class="button" type="submit" value="Paid" name=""></a>
|
||||
<?php } ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div align="right">
|
||||
<ul class="pagination">
|
||||
<?php foreach ($links as $link) {
|
||||
echo "<li>". $link."</li>";
|
||||
} ?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php $this->load->view('admin/includes/footer-script')?>
|
||||
</body>
|
||||
</html>
|
65
php/application/views/admin/test.php
Normal file
65
php/application/views/admin/test.php
Normal file
@ -0,0 +1,65 @@
|
||||
<?php defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
if($this->session->user_id == "")
|
||||
{
|
||||
redirect('admin');
|
||||
}
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<?php $this->load->view('front/includes/header-script')?>
|
||||
<title><?=TITLE?></title>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<div class="container">
|
||||
<div class="logo d-flex">
|
||||
<img src="<?=base_url();?>assets/front/img/logo.jpg" alt="">
|
||||
<span class="d-flex align-items-center justify-content-center">
|
||||
<h1>Continuing Education Registration</h1>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<div class="container">
|
||||
<section class="abc-approve">
|
||||
<?php foreach($order as $value) { ?>
|
||||
<div class="container">
|
||||
<h1>Review / Approve Registrations</h1>
|
||||
<h2><?=$value['class_name']?></h2>
|
||||
<p>Start Date: <?=date("d-m-Y",strtotime($value['calss_start_date']))?><br>
|
||||
End Date: <?=date("d-m-Y",strtotime($value['calss_end_date']))?><br>
|
||||
Time: <?=date('h:i A',strtotime($value['calss_start_time']))?> – <?=date('h:i A',strtotime($value['calss_end_time']))?><br>
|
||||
Location: <?=$value['class_room']?><br>
|
||||
Days of Week: <?=$value['class_day']?>
|
||||
</p>
|
||||
<?php foreach ($return_class as $key) {
|
||||
|
||||
}
|
||||
?>
|
||||
<?php foreach($registrants as $val)
|
||||
{
|
||||
if ($val->reg_id == $value['reg_id']) ?>
|
||||
<div class="approve">
|
||||
<label><span> <?=$value['class_id']?> </span><?php if($val->reg_m_type == "M"){echo "Member / Alumni";}elseif($val->reg_m_type == "N"){echo "Non-Member ";}elseif($val->reg_m_type == "S"){echo "Subscribing Employer";}?></label>
|
||||
<div class="d-flex approve-content">
|
||||
<div class="col-sm-8 no-pad"><?=$val->att_f_name?> <?=$val->att_l_name?> <?=$val->att_email?> <?=$val->att_number?> <a href="" class="cls-btn"> (remove) </a> </div>
|
||||
<div class="col-sm-4">$ <?=$val->att_price?>.00</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="d-flex alumi-content class-sum">
|
||||
<div class="col-sm-8 no-pad">Class Total</div>
|
||||
<div class="col-sm-4">$ <?=$value['regclass_total_price']?>.00</div>
|
||||
</div>
|
||||
<div class="d-flex alumi-content class-sum grand">
|
||||
<div class="col-sm-8 no-pad">Grand Total</div>
|
||||
<div class="col-sm-4">$ <?=$value['reg_total']?>.00</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="d-flex justify-content-between abc-btn">
|
||||
<div class="p-2"><a href="<?= base_url();?>admin/order-list"><button type="button" class="btn" style="background: #be0000; color: #fff;">Back</button></a></div>
|
||||
</section>
|
||||
<?php $this->load->view('front/includes/footer-script')?>
|
||||
</body>
|
||||
</html>
|
132
php/application/views/admin/view-order.php
Normal file
132
php/application/views/admin/view-order.php
Normal file
@ -0,0 +1,132 @@
|
||||
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<?php $this->load->view('front/includes/header-script')?>
|
||||
<title><?=TITLE?></title>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<div class="container">
|
||||
<div class="logo d-flex">
|
||||
<img src="<?=base_url();?>assets/front/img/logo.jpg" alt="">
|
||||
<span class="d-flex align-items-center justify-content-center">
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<div class="container">
|
||||
<?php if($type == 1) { ?>
|
||||
<button id="print" type="button" class="btn" style="float: right; background: #be0000; color: #fff;" onclick="printContent('printd');" >Print Preview</button>
|
||||
<?php } ?>
|
||||
<section class="abc-approve" id="printd">
|
||||
<h1>Order No: <?=$orderno?></h1>
|
||||
<?php foreach($return_class as $value) { ?>
|
||||
<h2><?=$value['class_name']?></h2>
|
||||
<p>Start Date: <?=date("d-m-Y",strtotime($value['calss_start_date']))?><br>
|
||||
End Date: <?=date("d-m-Y",strtotime($value['calss_end_date']))?><br>
|
||||
Time: <?=date('h:i A',strtotime($value['calss_start_time']))?> – <?=date('h:i A',strtotime($value['calss_end_time']))?><br>
|
||||
Location: <?=$value['class_room']?><br>
|
||||
Days of Week: <?php ob_start(); foreach (explode(",", $value['class_day']) as $day) {
|
||||
echo ucfirst(strtolower($day)).',';
|
||||
}
|
||||
$output = ob_get_clean();
|
||||
echo rtrim($output, ',');
|
||||
?>
|
||||
</p>
|
||||
<div class="approve">
|
||||
<?php if(isset($mcount) && $mcount > 0) { ?>
|
||||
<label><span><?=$mcount?></span>Member / Alumni</label>
|
||||
<?php foreach ($member as $mem) { ?>
|
||||
<div class="d-flex approve-content">
|
||||
<div class="col-sm-8 no-pad"><?=$mem['att_f_name']?> <?=$mem['att_l_name']?> <?=$mem['att_email']?> <?=$mem['att_number']?> <?=$mem['att_ssn']?></div>
|
||||
<div class="col-sm-4">$ <?=$mem['att_price']?>.00</div>
|
||||
</div>
|
||||
<?php } } if(isset($mcount2) && $mcount2 > 0) { ?>
|
||||
<label><span><?=$mcount2?></span>Member / Alumni 2+</label>
|
||||
<?php foreach ($member2 as $mem2) { ?>
|
||||
<div class="d-flex approve-content">
|
||||
<div class="col-sm-8 no-pad"><?=$mem2['att_f_name']?> <?=$mem2['att_l_name']?> <?=$mem2['att_email']?> <?=$mem2['att_number']?> <?=$mem2['att_ssn']?></div>
|
||||
<div class="col-sm-4">$ <?=$mem2['att_price']?>.00</div>
|
||||
</div>
|
||||
<?php } } if(isset($ncount) && $ncount > 0) { ?>
|
||||
<label><span><?=$ncount?></span>Non-Member</label>
|
||||
<?php foreach ($nonmember as $non) { ?>
|
||||
<div class="d-flex approve-content">
|
||||
<div class="col-sm-8 no-pad"><?=$non['att_f_name']?> <?=$non['att_l_name']?> <?=$non['att_email']?> <?=$non['att_number']?> <?=$non['att_ssn']?></div>
|
||||
<div class="col-sm-4">$ <?=$non['att_price']?>.00</div>
|
||||
</div>
|
||||
<?php } } if(isset($ncount2) && $ncount2 > 0) { ?>
|
||||
<label><span><?=$ncount2?></span>Non-Member 2+</label>
|
||||
<?php foreach ($nonmember2 as $non2) { ?>
|
||||
<div class="d-flex approve-content">
|
||||
<div class="col-sm-8 no-pad"><?=$non2['att_f_name']?> <?=$non2['att_l_name']?> <?=$non2['att_email']?> <?=$non2['att_number']?> <?=$non2['att_ssn']?></div>
|
||||
<div class="col-sm-4">$ <?=$non2['att_price']?>.00</div>
|
||||
</div>
|
||||
<?php } } if(isset($scount) && $scount > 0) { ?>
|
||||
<label><span><?=$scount?></span>Subscribing Employer</label>
|
||||
<?php foreach ($semember as $sem) { ?>
|
||||
<div class="d-flex approve-content">
|
||||
<div class="col-sm-8 no-pad"><?=$sem['att_f_name']?> <?=$sem['att_l_name']?> <?=$sem['att_email']?> <?=$sem['att_number']?> <?=$sem['att_ssn']?></div>
|
||||
<div class="col-sm-4">$ <?=$sem['att_price']?>.00</div>
|
||||
</div>
|
||||
<?php } } ?>
|
||||
<div class="d-flex alumi-content class-sum">
|
||||
<div class="col-sm-8 no-pad">Class Total</div>
|
||||
<div class="col-sm-4">$ <?=$value['regclass_total_price']?>.00</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="d-flex alumi-content class-sum">
|
||||
<div class="col-sm-8 no-pad">Order Details</div>
|
||||
</div>
|
||||
<div class="d-flex content class-sum">
|
||||
<div class="col-sm-4">
|
||||
<p>
|
||||
Ordered Date: <?=$reg_date?><br>
|
||||
|
||||
Address : <?=$address?><br>
|
||||
Phone No : <?=$phone_no?><br>
|
||||
Email Id : <?=$email_id?><br>
|
||||
No Of Classes : <?=$class_count?><br>
|
||||
No Of Attendee : <?=$att_count?><br>
|
||||
</p>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<p>
|
||||
Holder Name : <?=$card_holder_name?><br>
|
||||
Payment Type : <?=$payment_type?><br>
|
||||
Card Number : <?='************' . substr($card_number,-4)?><br>
|
||||
Card Type : <?=$card_type?><br>
|
||||
Expiration : <?=$exp_month?>,<?=$exp_year?><br>
|
||||
</p>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<p>
|
||||
Status: <?=$status?><br>
|
||||
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="d-flex alumi-content class-sum grand">
|
||||
<div class="col-sm-8 no-pad">Grand Total</div>
|
||||
<div class="col-sm-4">$ <?=$reg_total?>.00</div>
|
||||
</div>
|
||||
</section>
|
||||
<div class="d-flex justify-content-between abc-btn">
|
||||
<div class="p-2"><a href="<?= base_url();?>admin/order-list"><button type="button" class="btn" style="background: #be0000; color: #fff;">Back</button></a></div>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
function printContent(el){
|
||||
var restorepage = $('body').html();
|
||||
var printcontent = $('#' + el).clone();
|
||||
$('body').empty().html(printcontent);
|
||||
window.print();
|
||||
$('body').html(restorepage);
|
||||
}
|
||||
</script>
|
||||
<?php $this->load->view('front/includes/footer-script')?>
|
||||
</body>
|
||||
</html>
|
BIN
php/application/views/errors/.DS_Store
vendored
Normal file
BIN
php/application/views/errors/.DS_Store
vendored
Normal file
Binary file not shown.
8
php/application/views/errors/cli/error_404.php
Normal file
8
php/application/views/errors/cli/error_404.php
Normal file
@ -0,0 +1,8 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
echo "\nERROR: ",
|
||||
$heading,
|
||||
"\n\n",
|
||||
$message,
|
||||
"\n\n";
|
8
php/application/views/errors/cli/error_db.php
Normal file
8
php/application/views/errors/cli/error_db.php
Normal file
@ -0,0 +1,8 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
echo "\nDatabase error: ",
|
||||
$heading,
|
||||
"\n\n",
|
||||
$message,
|
||||
"\n\n";
|
21
php/application/views/errors/cli/error_exception.php
Normal file
21
php/application/views/errors/cli/error_exception.php
Normal file
@ -0,0 +1,21 @@
|
||||
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
|
||||
|
||||
An uncaught Exception was encountered
|
||||
|
||||
Type: <?php echo get_class($exception), "\n"; ?>
|
||||
Message: <?php echo $message, "\n"; ?>
|
||||
Filename: <?php echo $exception->getFile(), "\n"; ?>
|
||||
Line Number: <?php echo $exception->getLine(); ?>
|
||||
|
||||
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
|
||||
|
||||
Backtrace:
|
||||
<?php foreach ($exception->getTrace() as $error): ?>
|
||||
<?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
|
||||
File: <?php echo $error['file'], "\n"; ?>
|
||||
Line: <?php echo $error['line'], "\n"; ?>
|
||||
Function: <?php echo $error['function'], "\n\n"; ?>
|
||||
<?php endif ?>
|
||||
<?php endforeach ?>
|
||||
|
||||
<?php endif ?>
|
8
php/application/views/errors/cli/error_general.php
Normal file
8
php/application/views/errors/cli/error_general.php
Normal file
@ -0,0 +1,8 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
echo "\nERROR: ",
|
||||
$heading,
|
||||
"\n\n",
|
||||
$message,
|
||||
"\n\n";
|
21
php/application/views/errors/cli/error_php.php
Normal file
21
php/application/views/errors/cli/error_php.php
Normal file
@ -0,0 +1,21 @@
|
||||
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
|
||||
|
||||
A PHP Error was encountered
|
||||
|
||||
Severity: <?php echo $severity, "\n"; ?>
|
||||
Message: <?php echo $message, "\n"; ?>
|
||||
Filename: <?php echo $filepath, "\n"; ?>
|
||||
Line Number: <?php echo $line; ?>
|
||||
|
||||
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
|
||||
|
||||
Backtrace:
|
||||
<?php foreach (debug_backtrace() as $error): ?>
|
||||
<?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
|
||||
File: <?php echo $error['file'], "\n"; ?>
|
||||
Line: <?php echo $error['line'], "\n"; ?>
|
||||
Function: <?php echo $error['function'], "\n\n"; ?>
|
||||
<?php endif ?>
|
||||
<?php endforeach ?>
|
||||
|
||||
<?php endif ?>
|
11
php/application/views/errors/cli/index.html
Normal file
11
php/application/views/errors/cli/index.html
Normal file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
64
php/application/views/errors/html/error_404.php
Normal file
64
php/application/views/errors/html/error_404.php
Normal file
@ -0,0 +1,64 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
?><!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>404 Page Not Found</title>
|
||||
<style type="text/css">
|
||||
|
||||
::selection { background-color: #E13300; color: white; }
|
||||
::-moz-selection { background-color: #E13300; color: white; }
|
||||
|
||||
body {
|
||||
background-color: #fff;
|
||||
margin: 40px;
|
||||
font: 13px/20px normal Helvetica, Arial, sans-serif;
|
||||
color: #4F5155;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #003399;
|
||||
background-color: transparent;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: #444;
|
||||
background-color: transparent;
|
||||
border-bottom: 1px solid #D0D0D0;
|
||||
font-size: 19px;
|
||||
font-weight: normal;
|
||||
margin: 0 0 14px 0;
|
||||
padding: 14px 15px 10px 15px;
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: Consolas, Monaco, Courier New, Courier, monospace;
|
||||
font-size: 12px;
|
||||
background-color: #f9f9f9;
|
||||
border: 1px solid #D0D0D0;
|
||||
color: #002166;
|
||||
display: block;
|
||||
margin: 14px 0 14px 0;
|
||||
padding: 12px 10px 12px 10px;
|
||||
}
|
||||
|
||||
#container {
|
||||
margin: 10px;
|
||||
border: 1px solid #D0D0D0;
|
||||
box-shadow: 0 0 8px #D0D0D0;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 12px 15px 12px 15px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="container">
|
||||
<h1><?php echo $heading; ?></h1>
|
||||
<?php echo $message; ?>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
64
php/application/views/errors/html/error_db.php
Normal file
64
php/application/views/errors/html/error_db.php
Normal file
@ -0,0 +1,64 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
?><!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Database Error</title>
|
||||
<style type="text/css">
|
||||
|
||||
::selection { background-color: #E13300; color: white; }
|
||||
::-moz-selection { background-color: #E13300; color: white; }
|
||||
|
||||
body {
|
||||
background-color: #fff;
|
||||
margin: 40px;
|
||||
font: 13px/20px normal Helvetica, Arial, sans-serif;
|
||||
color: #4F5155;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #003399;
|
||||
background-color: transparent;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: #444;
|
||||
background-color: transparent;
|
||||
border-bottom: 1px solid #D0D0D0;
|
||||
font-size: 19px;
|
||||
font-weight: normal;
|
||||
margin: 0 0 14px 0;
|
||||
padding: 14px 15px 10px 15px;
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: Consolas, Monaco, Courier New, Courier, monospace;
|
||||
font-size: 12px;
|
||||
background-color: #f9f9f9;
|
||||
border: 1px solid #D0D0D0;
|
||||
color: #002166;
|
||||
display: block;
|
||||
margin: 14px 0 14px 0;
|
||||
padding: 12px 10px 12px 10px;
|
||||
}
|
||||
|
||||
#container {
|
||||
margin: 10px;
|
||||
border: 1px solid #D0D0D0;
|
||||
box-shadow: 0 0 8px #D0D0D0;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 12px 15px 12px 15px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="container">
|
||||
<h1><?php echo $heading; ?></h1>
|
||||
<?php echo $message; ?>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
32
php/application/views/errors/html/error_exception.php
Normal file
32
php/application/views/errors/html/error_exception.php
Normal file
@ -0,0 +1,32 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
?>
|
||||
|
||||
<div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">
|
||||
|
||||
<h4>An uncaught Exception was encountered</h4>
|
||||
|
||||
<p>Type: <?php echo get_class($exception); ?></p>
|
||||
<p>Message: <?php echo $message; ?></p>
|
||||
<p>Filename: <?php echo $exception->getFile(); ?></p>
|
||||
<p>Line Number: <?php echo $exception->getLine(); ?></p>
|
||||
|
||||
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
|
||||
|
||||
<p>Backtrace:</p>
|
||||
<?php foreach ($exception->getTrace() as $error): ?>
|
||||
|
||||
<?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
|
||||
|
||||
<p style="margin-left:10px">
|
||||
File: <?php echo $error['file']; ?><br />
|
||||
Line: <?php echo $error['line']; ?><br />
|
||||
Function: <?php echo $error['function']; ?>
|
||||
</p>
|
||||
<?php endif ?>
|
||||
|
||||
<?php endforeach ?>
|
||||
|
||||
<?php endif ?>
|
||||
|
||||
</div>
|
64
php/application/views/errors/html/error_general.php
Normal file
64
php/application/views/errors/html/error_general.php
Normal file
@ -0,0 +1,64 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
?><!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Error</title>
|
||||
<style type="text/css">
|
||||
|
||||
::selection { background-color: #E13300; color: white; }
|
||||
::-moz-selection { background-color: #E13300; color: white; }
|
||||
|
||||
body {
|
||||
background-color: #fff;
|
||||
margin: 40px;
|
||||
font: 13px/20px normal Helvetica, Arial, sans-serif;
|
||||
color: #4F5155;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #003399;
|
||||
background-color: transparent;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: #444;
|
||||
background-color: transparent;
|
||||
border-bottom: 1px solid #D0D0D0;
|
||||
font-size: 19px;
|
||||
font-weight: normal;
|
||||
margin: 0 0 14px 0;
|
||||
padding: 14px 15px 10px 15px;
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: Consolas, Monaco, Courier New, Courier, monospace;
|
||||
font-size: 12px;
|
||||
background-color: #f9f9f9;
|
||||
border: 1px solid #D0D0D0;
|
||||
color: #002166;
|
||||
display: block;
|
||||
margin: 14px 0 14px 0;
|
||||
padding: 12px 10px 12px 10px;
|
||||
}
|
||||
|
||||
#container {
|
||||
margin: 10px;
|
||||
border: 1px solid #D0D0D0;
|
||||
box-shadow: 0 0 8px #D0D0D0;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 12px 15px 12px 15px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="container">
|
||||
<h1><?php echo $heading; ?></h1>
|
||||
<?php echo $message; ?>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
33
php/application/views/errors/html/error_php.php
Normal file
33
php/application/views/errors/html/error_php.php
Normal file
@ -0,0 +1,33 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
?>
|
||||
|
||||
<div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">
|
||||
|
||||
<h4>A PHP Error was encountered</h4>
|
||||
|
||||
<p>Severity: <?php echo $severity; ?></p>
|
||||
<p>Message: <?php echo $message; ?></p>
|
||||
<p>Filename: <?php echo $filepath; ?></p>
|
||||
<p>Line Number: <?php echo $line; ?></p>
|
||||
|
||||
<?php if (defined('SHOW_DEBUG_BACKTRACE') && SHOW_DEBUG_BACKTRACE === TRUE): ?>
|
||||
|
||||
<p>Backtrace:</p>
|
||||
<?php foreach (debug_backtrace() as $error): ?>
|
||||
|
||||
<?php if (isset($error['file']) && strpos($error['file'], realpath(BASEPATH)) !== 0): ?>
|
||||
|
||||
<p style="margin-left:10px">
|
||||
File: <?php echo $error['file'] ?><br />
|
||||
Line: <?php echo $error['line'] ?><br />
|
||||
Function: <?php echo $error['function'] ?>
|
||||
</p>
|
||||
|
||||
<?php endif ?>
|
||||
|
||||
<?php endforeach ?>
|
||||
|
||||
<?php endif ?>
|
||||
|
||||
</div>
|
11
php/application/views/errors/html/index.html
Normal file
11
php/application/views/errors/html/index.html
Normal file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
11
php/application/views/errors/index.html
Normal file
11
php/application/views/errors/index.html
Normal file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
38
php/application/views/front/confirm.php
Normal file
38
php/application/views/front/confirm.php
Normal file
@ -0,0 +1,38 @@
|
||||
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
||||
<?php $this->load->view('front/includes/header-script')?>
|
||||
<title><?=FRONT_TITLE?></title>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<div class="container">
|
||||
<div class="logo d-flex">
|
||||
<img src="<?=base_url();?>assets/front/img/logo.jpg" alt="">
|
||||
<span class="d-flex align-items-center justify-content-center">
|
||||
<h1>Order Registration</h1>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<section class="abc-tab">
|
||||
<div class="container">
|
||||
<h1 style="font-size:300%; font-family:verdana;" class="justify-content-center d-flex">
|
||||
<?php
|
||||
$success_msg= $this->session->flashdata('success_msg');
|
||||
$error_msg= $this->session->flashdata('error_msg');
|
||||
if($success_msg) { echo $success_msg; } elseif($error_msg) { echo $error_msg; }
|
||||
?>
|
||||
</h1>
|
||||
<div class="d-flex justify-content-between abc-btn">
|
||||
<div class="p-2"><a href="<?= base_url();?>"><button type="button" class="btn" style="background: #899ec4;">Back To Home</button></a></div>
|
||||
</div>
|
||||
<?php echo form_close(); ?>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Optional JavaScript -->
|
||||
<?php $this->load->view('front/includes/footer-script')?>
|
||||
</body>
|
||||
</html>
|
348
php/application/views/front/includes/footer-script.php
Normal file
348
php/application/views/front/includes/footer-script.php
Normal file
@ -0,0 +1,348 @@
|
||||
<script src="<?=base_url();?>assets/front/js/jquery-3.3.1.min.js"></script>
|
||||
<script src="<?=base_url();?>assets/front/js/bootstrap.min.js"></script>
|
||||
<script src="<?=base_url();?>assets/front/js/jquery-input-mask-phone-number.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
$(".enroll-btnm").click(function() /*Enroll Member*/
|
||||
{
|
||||
var form=$(this).attr('form-data');
|
||||
var mprice=$(this).attr('mem-price');
|
||||
var trno = $('#mebhid'+form).val();
|
||||
nexttr = parseInt(trno)+1;
|
||||
var html="";
|
||||
html+='<div id="mdiv'+nexttr+form+'"><ul class="d-flex">'
|
||||
html+='<li><input type="text" name="m_first_name_'+form+'[]" placeholder="First Name*" onblur="membersum('+form+','+nexttr+form+','+mprice+')" onKeyUp="member('+nexttr+form+')" id="m_first_name'+nexttr+form+'"></li>'
|
||||
html+='<li><input type="text" name="m_last_name_'+form+'[]" placeholder="Last Name*" onKeyUp="member('+nexttr+form+')" id="m_last_name'+nexttr+form+'"></li>'
|
||||
html+='<li><input type="email" name="m_email_id_'+form+'[]" placeholder="Email Address*" onKeyUp="member('+nexttr+form+')" id="m_email_id'+nexttr+form+'"></li>'
|
||||
html+='<li><input type="text" class="yourphone" name="m_phone_no_'+form+'[]" placeholder="Phone Number*" onKeyUp="member('+nexttr+form+')" id="m_phone_no'+nexttr+form+'"></li>'
|
||||
html+='<li><input type="text" maxlength="4" name="m_ssn_'+form+'[]" placeholder="Last 4 Of SSN*" onKeyUp="member('+nexttr+form+')" class="ssn" id="m_ssn'+nexttr+form+'"></li>'
|
||||
html+='<button type="button" class="cls-btn-m" mem-price='+mprice+' form-data='+form+' target='+nexttr+form+'> X </button>'
|
||||
html+='</ul></div>'
|
||||
$(this).parent().find('.clone-append').append(html).html();
|
||||
var html2="";
|
||||
html2+='<div id="madiv'+nexttr+form+'" class="d-flex alumi-content mebdiv">'
|
||||
html2+='<div class="col-sm-8">'
|
||||
html2+='<span style="color: grey;" id="member'+nexttr+form+'"></span>'
|
||||
html2+='</div>'
|
||||
html2+='<div class="col-sm-1">$ <h id="mprice'+nexttr+form+'">0.00</h></div>'
|
||||
html2+='<span class="cls-btn-m" mem-price='+mprice+' form-data='+form+' target='+nexttr+form+'> X </span>'
|
||||
html2+='</div>';
|
||||
$('.almeb'+form).append(html2).html();
|
||||
$('#mebhid'+form).val(nexttr);
|
||||
$(document).ready(function () {
|
||||
$('.yourphone').usPhoneFormat({
|
||||
format: '(xxx) xxx-xxxx',
|
||||
});
|
||||
});
|
||||
$('.ssn').keyup(function(e){
|
||||
if (/\D/g.test(this.value)){
|
||||
this.value = this.value.replace(/\D/g,'');
|
||||
}
|
||||
});
|
||||
});
|
||||
$('body').delegate(".cls-btn-m", "click",function(){
|
||||
var btnid =$(this).attr('target');
|
||||
var form =$(this).attr('form-data');
|
||||
var mprice=$(this).attr('mem-price');
|
||||
var cursum = document.getElementById('total1'+form).innerHTML;
|
||||
var totalsum = parseInt(cursum);
|
||||
var mmprice = parseInt(mprice);
|
||||
var total = totalsum - mmprice;
|
||||
document.getElementById('mdiv'+btnid).remove();
|
||||
document.getElementById('madiv'+btnid).remove();
|
||||
document.getElementById('total1'+form).textContent = total;
|
||||
});
|
||||
|
||||
|
||||
$(".enroll-btnm2").click(function() /*Enroll Member*/
|
||||
{
|
||||
var form=$(this).attr('form-data');
|
||||
var mprice=$(this).attr('mem2-price');
|
||||
var trno = $('#mebhid2'+form).val();
|
||||
nexttr = parseInt(trno)+1;
|
||||
var html="";
|
||||
html+='<div id="m2div'+nexttr+form+'"><ul class="d-flex">'
|
||||
html+='<li><input type="text" name="mp_first_name_'+form+'[]" placeholder="First Name*" onblur="memplussum('+form+','+nexttr+form+','+mprice+')" onKeyUp="memplus('+nexttr+form+')" id="m2_first_name'+nexttr+form+'"></li>'
|
||||
html+='<li><input type="text" name="mp_last_name_'+form+'[]" placeholder="Last Name*" onKeyUp="memplus('+nexttr+form+')" id="m2_last_name'+nexttr+form+'"></li>'
|
||||
html+='<li><input type="email" name="mp_email_id_'+form+'[]" placeholder="Email Address*" onKeyUp="memplus('+nexttr+form+')" id="m2_email_id'+nexttr+form+'"></li>'
|
||||
html+='<li><input type="text" class="yourphone" name="mp_phone_no_'+form+'[]" placeholder="Phone Number*" onKeyUp="memplus('+nexttr+form+')" id="m2_phone_no'+nexttr+form+'"></li>'
|
||||
html+='<li><input type="text" maxlength="4" class="ssn" name="mp_ssn_'+form+'[]" placeholder="Last 4 Of SSN*" onKeyUp="memplus('+nexttr+form+')" id="m2_ssn'+nexttr+form+'"></li>'
|
||||
html+='<button type="button" class="cls-btn-m2" mem2-price='+mprice+' form-data='+form+' target='+nexttr+form+'> X </button>'
|
||||
html+='</ul></div>'
|
||||
$(this).parent().find('.clone-append').append(html).html();
|
||||
var html2="";
|
||||
html2+='<div id="m2adiv'+nexttr+form+'" class="d-flex alumi-content meb2div">'
|
||||
html2+='<div class="col-sm-8">'
|
||||
html2+='<span style="color: grey;" id="memplus'+nexttr+form+'"></span>'
|
||||
html2+='</div>'
|
||||
html2+='<div class="col-sm-1">$ <h id="mplusprice'+nexttr+form+'">0.00</h></div>'
|
||||
html2+='<span class="cls-btn-m2" mem2-price='+mprice+' form-data='+form+' target='+nexttr+form+'> X </span>'
|
||||
html2+='</div>';
|
||||
$('.almeb2'+form).append(html2).html();
|
||||
$('#mebhid2'+form).val(nexttr);
|
||||
$(document).ready(function () {
|
||||
$('.yourphone').usPhoneFormat({
|
||||
format: '(xxx) xxx-xxxx',
|
||||
});
|
||||
});
|
||||
$('.ssn').keyup(function(e){
|
||||
if (/\D/g.test(this.value)){
|
||||
this.value = this.value.replace(/\D/g,'');
|
||||
}
|
||||
});
|
||||
});
|
||||
$('body').delegate(".cls-btn-m2", "click",function(){
|
||||
var btnid =$(this).attr('target');
|
||||
|
||||
var form =$(this).attr('form-data');
|
||||
var mprice=$(this).attr('mem2-price');
|
||||
var cursum = document.getElementById('total1'+form).innerHTML;
|
||||
var totalsum = parseInt(cursum);
|
||||
var mmprice = parseInt(mprice);
|
||||
var total = totalsum - mmprice;
|
||||
document.getElementById('m2div'+btnid).remove();
|
||||
document.getElementById('m2adiv'+btnid).remove();
|
||||
document.getElementById('total1'+form).textContent = total;
|
||||
});
|
||||
|
||||
|
||||
|
||||
$(".enroll-btnn").click(function() /*Enroll Non Member*/
|
||||
{
|
||||
var form=$(this).attr('form-data');
|
||||
var nprice=$(this).attr('nmem-price');
|
||||
var trno = $('#nmebhid'+form).val();
|
||||
nexttr = parseInt(trno)+1;
|
||||
var html="";
|
||||
html+='<div id="ndiv'+nexttr+form+'"><ul class="d-flex">'
|
||||
html+='<li><input type="text" name="n_first_name_'+form+'[]" placeholder="First Name*" onblur="nmembersum('+form+','+nexttr+form+','+nprice+')" onKeyUp="nonmember('+nexttr+form+')" id="n_first_name'+nexttr+form+'"></li>'
|
||||
html+='<li><input type="text" name="n_last_name_'+form+'[]" placeholder="Last Name*" onKeyUp="nonmember('+nexttr+form+')" id="n_last_name'+nexttr+form+'"></li>'
|
||||
html+='<li><input type="email" name="n_email_id_'+form+'[]" placeholder="Email Address*" onKeyUp="nonmember('+nexttr+form+')" id="n_email_id'+nexttr+form+'" ></li>'
|
||||
html+='<li><input type="text" class="yourphone" name="n_phone_no_'+form+'[]" placeholder="Phone Number*" onKeyUp="nonmember('+nexttr+form+')" id="n_phone_no'+nexttr+form+'"></li>'
|
||||
html+='<li><input type="text" maxlength="4" class="ssn" name="n_ssn_'+form+'[]" placeholder="Last 4 Of SSN*" onKeyUp="nonmember('+nexttr+form+')" id="n_ssn'+nexttr+form+'"></li>'
|
||||
html+='<button type="button" class="cls-btn-n" nmem-price='+nprice+' form-data='+form+' target='+nexttr+form+'> X </button>'
|
||||
html+='</ul></div>'
|
||||
$(this).parent().find('.clone-append').append(html).html();
|
||||
var html2="";
|
||||
html2+='<div id="nadiv'+nexttr+form+'" class="d-flex alumi-content nmebdiv">'
|
||||
html2+='<div class="col-sm-8">'
|
||||
html2+='<span style="color: grey;" id="nonmember'+nexttr+form+'"></span>'
|
||||
html2+='</div>'
|
||||
html2+='<div class="col-sm-1">$ <h id="nprice'+nexttr+form+'">0.00</h></div>'
|
||||
html2+='<span class="cls-btn-n" nmem-price='+nprice+' form-data='+form+' target='+nexttr+form+'> X </span>'
|
||||
html2+='</div>';
|
||||
$('.alnmeb'+form).append(html2).html();
|
||||
$('#nmebhid'+form).val(nexttr);
|
||||
$(document).ready(function () {
|
||||
$('.yourphone').usPhoneFormat({
|
||||
format: '(xxx) xxx-xxxx',
|
||||
});
|
||||
});
|
||||
$('.ssn').keyup(function(e){
|
||||
if (/\D/g.test(this.value)){
|
||||
this.value = this.value.replace(/\D/g,'');
|
||||
}
|
||||
});
|
||||
});
|
||||
$('body').delegate(".cls-btn-n", "click",function(){
|
||||
var btnid =$(this).attr('target');
|
||||
var form =$(this).attr('form-data');
|
||||
var nprice=$(this).attr('nmem-price');
|
||||
var cursum = document.getElementById('total1'+form).innerHTML;
|
||||
var totalsum = parseInt(cursum);
|
||||
var nmprice = parseInt(nprice);
|
||||
var total = totalsum - nmprice;
|
||||
document.getElementById('ndiv'+btnid).remove();
|
||||
document.getElementById('nadiv'+btnid).remove();
|
||||
document.getElementById('total1'+form).textContent = total;
|
||||
});
|
||||
|
||||
|
||||
$(".enroll-btnn2").click(function() /*Enroll Non Member 2+*/
|
||||
{
|
||||
var form=$(this).attr('form-data');
|
||||
var nprice=$(this).attr('nmem2-price');
|
||||
var trno = $('#nmebhid'+form).val();
|
||||
nexttr = parseInt(trno)+1;
|
||||
var html="";
|
||||
html+='<div id="n2div'+nexttr+form+'"><ul class="d-flex">'
|
||||
html+='<li><input type="text" name="np_first_name_'+form+'[]" placeholder="First Name*" onblur="nmemplussum('+form+','+nexttr+form+','+nprice+')" onKeyUp="nonmemplus('+nexttr+form+')" id="n2_first_name'+nexttr+form+'"></li>'
|
||||
html+='<li><input type="text" name="np_last_name_'+form+'[]" placeholder="Last Name*" onKeyUp="nonmemplus('+nexttr+form+')" id="n2_last_name'+nexttr+form+'"></li>'
|
||||
html+='<li><input type="email" name="np_email_id_'+form+'[]" placeholder="Email Address*" onKeyUp="nonmemplus('+nexttr+form+')" id="n2_email_id'+nexttr+form+'" ></li>'
|
||||
html+='<li><input type="text" class="yourphone" name="np_phone_no_'+form+'[]" placeholder="Phone Number*" onKeyUp="nonmemplus('+nexttr+form+')" id="n2_phone_no'+nexttr+form+'"></li>'
|
||||
html+='<li><input type="text" maxlength="4" class="ssn" name="np_ssn_'+form+'[]" placeholder="Last 4 Of SSN*" onKeyUp="nonmemplus('+nexttr+form+')" id="n2_ssn'+nexttr+form+'"></li>'
|
||||
html+='<button type="button" class="cls-btn-n2" nmem2-price='+nprice+' form-data='+form+' target='+nexttr+form+'> X </button>'
|
||||
html+='</ul></div>'
|
||||
$(this).parent().find('.clone-append').append(html).html();
|
||||
var html2="";
|
||||
html2+='<div id="n2adiv'+nexttr+form+'" class="d-flex alumi-content nmebdiv">'
|
||||
html2+='<div class="col-sm-8">'
|
||||
html2+='<span style="color: grey;" id="nmemplus'+nexttr+form+'"></span>'
|
||||
html2+='</div>'
|
||||
html2+='<div class="col-sm-1">$ <h id="nplusprice'+nexttr+form+'">0.00</h></div>'
|
||||
html2+='<span class="cls-btn-n2" nmem2-price='+nprice+' form-data='+form+' target='+nexttr+form+'> X </span>'
|
||||
html2+='</div>';
|
||||
$('.alnmeb2'+form).append(html2).html();
|
||||
$('#nmebhid'+form).val(nexttr);
|
||||
$(document).ready(function () {
|
||||
$('.yourphone').usPhoneFormat({
|
||||
format: '(xxx) xxx-xxxx',
|
||||
});
|
||||
});
|
||||
$('.ssn').keyup(function(e){
|
||||
if (/\D/g.test(this.value)){
|
||||
this.value = this.value.replace(/\D/g,'');
|
||||
}
|
||||
});
|
||||
});
|
||||
$('body').delegate(".cls-btn-n2", "click",function(){
|
||||
var btnid =$(this).attr('target');
|
||||
var form =$(this).attr('form-data');
|
||||
var nprice=$(this).attr('nmem2-price');
|
||||
var cursum = document.getElementById('total1'+form).innerHTML;
|
||||
var totalsum = parseInt(cursum);
|
||||
var nmprice = parseInt(nprice);
|
||||
var total = totalsum - nmprice;
|
||||
document.getElementById('n2div'+btnid).remove();
|
||||
document.getElementById('n2adiv'+btnid).remove();
|
||||
document.getElementById('total1'+form).textContent = total;
|
||||
});
|
||||
|
||||
|
||||
$(".enroll-btns").click(function() /*Enroll Employer*/
|
||||
{
|
||||
var form=$(this).attr('form-data');
|
||||
var sprice=$(this).attr('smem-price');
|
||||
var trno = $('#smebhid'+form).val();
|
||||
nexttr = parseInt(trno)+1;
|
||||
var html="";
|
||||
html+='<div id="sdiv'+nexttr+form+'"><ul class="d-flex">'
|
||||
html+='<li><input type="text" name="s_first_name_'+form+'[]" placeholder="First Name*" onblur="smembersum('+form+','+nexttr+form+','+sprice+')" onKeyUp="employer('+nexttr+form+')" id="s_first_name'+nexttr+form+'"></li>'
|
||||
html+='<li><input type="text" name="s_last_name_'+form+'[]" placeholder="Last Name*" onKeyUp="employer('+nexttr+form+')" id="s_last_name'+nexttr+form+'"></li>'
|
||||
html+='<li><input type="email" name="s_email_id_'+form+'[]" placeholder="Email Address*" onKeyUp="employer('+nexttr+form+')" id="s_email_id'+nexttr+form+'"></li>'
|
||||
html+='<li><input type="text" class="yourphone" name="s_phone_no_'+form+'[]" placeholder="Phone Number*" onKeyUp="employer('+nexttr+form+')" id="s_phone_no'+nexttr+form+'"></li>'
|
||||
html+='<li><input type="text" maxlength="4" class="ssn" name="s_ssn_'+form+'[]" placeholder="Last 4 Of SSN*" onKeyUp="employer('+nexttr+form+')" id="s_ssn'+nexttr+form+'"></li>'
|
||||
html+='<button type="button" class="cls-btn-s" smem-price='+sprice+' form-data='+form+' target='+nexttr+form+'> X </button>'
|
||||
html+='</ul></div>'
|
||||
$(this).parent().find('.clone-append').append(html).html();
|
||||
var html2="";
|
||||
html2+='<div id="sadiv'+nexttr+form+'" class="d-flex alumi-content smebdiv">'
|
||||
html2+='<div class="col-sm-8">'
|
||||
html2+='<span style="color: grey;" id="employer'+nexttr+form+'"></span>'
|
||||
html2+='</div>'
|
||||
html2+='<div class="col-sm-1">$ <h id="sprice'+nexttr+form+'">0.00</h></div>'
|
||||
html2+='<span class="cls-btn-s" smem-price='+sprice+' form-data='+form+' target='+nexttr+form+'> X </span>'
|
||||
html2+='</div>';
|
||||
$('.alsmeb'+form).append(html2).html();
|
||||
$('#smebhid'+form).val(nexttr);
|
||||
$(document).ready(function () {
|
||||
$('.yourphone').usPhoneFormat({
|
||||
format: '(xxx) xxx-xxxx',
|
||||
});
|
||||
});
|
||||
$('.ssn').keyup(function(e){
|
||||
if (/\D/g.test(this.value)){
|
||||
this.value = this.value.replace(/\D/g,'');
|
||||
}
|
||||
});
|
||||
});
|
||||
$('body').delegate(".cls-btn-s", "click",function(){
|
||||
var btnid =$(this).attr('target');
|
||||
var form =$(this).attr('form-data');
|
||||
var sprice=$(this).attr('smem-price');
|
||||
var cursum = document.getElementById('total1'+form).innerHTML;
|
||||
var totalsum = parseInt(cursum);
|
||||
var smprice = parseInt(sprice);
|
||||
var total = totalsum - smprice;
|
||||
document.getElementById('sdiv'+btnid).remove();
|
||||
document.getElementById('sadiv'+btnid).remove();
|
||||
document.getElementById('total1'+form).textContent = total;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
/*Reset First Field*/
|
||||
|
||||
function resetm(fid,mpr) /*Reset Member*/
|
||||
{
|
||||
var crtot = $('#total1'+fid).html();
|
||||
var crpri = $('#mprice'+fid).html();
|
||||
if(crtot != 0){
|
||||
if(crpri != 0){
|
||||
var tot = crtot - mpr;
|
||||
$('#total1'+fid).html(tot);}}
|
||||
$('.resultsm'+fid).find('input').val('');
|
||||
$('#mprice'+fid).html('0.00');
|
||||
$('.resultsm'+fid).find('span').html('');
|
||||
}
|
||||
|
||||
function resetm2(fid,mpr) /*Reset Member 2+*/
|
||||
{
|
||||
var crtot = $('#total1'+fid).html();
|
||||
var crpri = $('#mplusprice'+fid).html();
|
||||
if(crtot != 0){
|
||||
if(crpri != 0){
|
||||
var tot = crtot - mpr;
|
||||
$('#total1'+fid).html(tot);}}
|
||||
$('.resultsm2'+fid).find('input').val('');
|
||||
$('#mplusprice'+fid).html('0.00');
|
||||
$('.resultsm2'+fid).find('span').html('');
|
||||
}
|
||||
|
||||
function resetn(fid,npr) /*Reset Non Member*/
|
||||
{
|
||||
var crtot = $('#total1'+fid).html();
|
||||
var crpri = $('#nprice'+fid).html();
|
||||
if(crtot != 0){
|
||||
if(crpri != 0){
|
||||
var tot = crtot - npr;
|
||||
$('#total1'+fid).html(tot);}}
|
||||
$('.resultsn'+fid).find('input').val('');
|
||||
$('#nprice'+fid).html('0.00');
|
||||
$('.resultsn'+fid).find('span').html('');
|
||||
}
|
||||
|
||||
function resetn2(fid,npr) /*Reset Non Member 2+*/
|
||||
{
|
||||
var crtot = $('#total1'+fid).html();
|
||||
var crpri = $('#nplusprice'+fid).html();
|
||||
if(crtot != 0){
|
||||
if(crpri != 0){
|
||||
var tot = crtot - npr;
|
||||
$('#total1'+fid).html(tot);}}
|
||||
$('.resultsn2'+fid).find('input').val('');
|
||||
$('#nplusprice'+fid).html('0.00');
|
||||
$('.resultsn2'+fid).find('span').html('');
|
||||
}
|
||||
|
||||
function resets(fid,spr) /*Reset Employer*/
|
||||
{
|
||||
var crtot = $('#total1'+fid).html();
|
||||
var crpri = $('#sprice'+fid).html();
|
||||
if(crtot != 0){
|
||||
if(crpri != 0){
|
||||
var tot = crtot - spr;
|
||||
$('#total1'+fid).html(tot);}}
|
||||
$('.resultss'+fid).find('input').val('');
|
||||
$('#sprice'+fid).html('0.00');
|
||||
$('.resultss'+fid).find('span').html('');
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
$('.yourphone').usPhoneFormat({
|
||||
format: '(xxx) xxx-xxxx',
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
$('input[type="checkbox"]').click(function(){
|
||||
var inputValue = $(this).attr("value");
|
||||
$("." + inputValue).toggle();
|
||||
});
|
||||
});
|
||||
</script>
|
6
php/application/views/front/includes/header-script.php
Normal file
6
php/application/views/front/includes/header-script.php
Normal file
@ -0,0 +1,6 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" href="<?=base_url();?>assets/front/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
|
||||
<link href="<?=base_url();?>assets/front/css/style.css" rel="stylesheet">
|
||||
<link rel="stylesheet" href="<?=base_url();?>assets/front/css/responsive.css">
|
14
php/application/views/front/includes/header.php
Normal file
14
php/application/views/front/includes/header.php
Normal file
@ -0,0 +1,14 @@
|
||||
<header>
|
||||
<div class="d-flex admin-header">
|
||||
<div class="toggle active" id="nav_list"> <img src="<?=base_url();?>assets/admin/img/hamperger.png" alt=""></div>
|
||||
<div class="admin ml-auto d-flex">
|
||||
<span><img src="<?=base_url();?>assets/admin/img/admin-logo.png"><?=$this->session->userdata('user_name');?></span>
|
||||
<span class="logout"><a href="<?php echo base_url('admin/admin/logout'); ?>"><img src="<?=base_url();?>assets/admin/img/logout.png">Logout</a></span>
|
||||
<div class="toggle-bar" id="nav-click" onclick="myFunction(this)">
|
||||
<div class="bar1"></div>
|
||||
<div class="bar2"></div>
|
||||
<div class="bar3"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
141
php/application/views/front/includes/index-header.php
Normal file
141
php/application/views/front/includes/index-header.php
Normal file
@ -0,0 +1,141 @@
|
||||
<script type="text/javascript">
|
||||
function member(fid)
|
||||
{
|
||||
var m_first_name = document.getElementById("m_first_name"+fid).value;
|
||||
var m_last_name = document.getElementById("m_last_name"+fid).value;
|
||||
var m_email_id = document.getElementById("m_email_id"+fid).value;
|
||||
var m_phone_no = document.getElementById("m_phone_no"+fid).value;
|
||||
var m_ssn = document.getElementById("m_ssn"+fid).value;
|
||||
var result = m_first_name + ' ' + m_last_name + ' ' + m_email_id + ' ' + m_phone_no + ' ' + m_ssn;
|
||||
document.getElementById('member'+fid).textContent = result;
|
||||
}
|
||||
function membersum(fid,cid,mprice)
|
||||
{
|
||||
var cursum = document.getElementById('total1'+fid).innerHTML;
|
||||
if(cid) { var value = document.getElementById('mprice'+cid).innerHTML;
|
||||
document.getElementById('mprice'+cid).textContent = mprice;}
|
||||
else { var value = document.getElementById('mprice'+fid).innerHTML;
|
||||
document.getElementById('mprice'+fid).textContent = mprice;}
|
||||
var val = parseInt(value);
|
||||
var totalsum = parseInt(cursum);
|
||||
var mmprice = parseInt(mprice);
|
||||
if(val===0){
|
||||
if(!cursum) { document.getElementById('total1'+fid).textContent = mprice;
|
||||
} else { var tot =totalsum+mmprice;
|
||||
document.getElementById('total1'+fid).textContent = tot;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function memplus(fid)
|
||||
{
|
||||
var m2_first_name = document.getElementById("m2_first_name"+fid).value;
|
||||
var m2_last_name = document.getElementById("m2_last_name"+fid).value;
|
||||
var m2_email_id = document.getElementById("m2_email_id"+fid).value;
|
||||
var m2_phone_no = document.getElementById("m2_phone_no"+fid).value;
|
||||
var m2_ssn = document.getElementById("m2_ssn"+fid).value;
|
||||
var result = m2_first_name + ' ' + m2_last_name + ' ' + m2_email_id + ' ' + m2_phone_no + ' ' + m2_ssn;
|
||||
document.getElementById('memplus'+fid).textContent = result;
|
||||
}
|
||||
function memplussum(fid,cid,m2price)
|
||||
{
|
||||
var cursum = document.getElementById('total1'+fid).innerHTML;
|
||||
if(cid) { var value = document.getElementById('mplusprice'+cid).innerHTML;
|
||||
document.getElementById('mplusprice'+cid).textContent = m2price;}
|
||||
else { var value = document.getElementById('mplusprice'+fid).innerHTML;
|
||||
document.getElementById('mplusprice'+fid).textContent = m2price;}
|
||||
var totalsum = parseInt(cursum);
|
||||
var mm2price = parseInt(m2price);
|
||||
var val = parseInt(value);
|
||||
if(val===0){
|
||||
if(!cursum) { document.getElementById('total1'+fid).textContent = m2price;
|
||||
} else { var tot =totalsum+mm2price;
|
||||
document.getElementById('total1'+fid).textContent = tot;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function nonmember(fid)
|
||||
{
|
||||
var n_first_name = document.getElementById("n_first_name"+fid).value;
|
||||
var n_last_name = document.getElementById("n_last_name"+fid).value;
|
||||
var n_email_id = document.getElementById("n_email_id"+fid).value;
|
||||
var n_phone_no = document.getElementById("n_phone_no"+fid).value;
|
||||
var n_ssn = document.getElementById("n_ssn"+fid).value;
|
||||
var result = n_first_name + ' ' + n_last_name + ' ' + n_email_id + ' ' + n_phone_no + ' ' + n_ssn;
|
||||
document.getElementById('nonmember'+fid).textContent = result;
|
||||
}
|
||||
function nmembersum(fid,cid,nprice)
|
||||
{
|
||||
var cursum = document.getElementById('total1'+fid).innerHTML;
|
||||
if(cid) {var value = document.getElementById('nprice'+cid).innerHTML;
|
||||
document.getElementById('nprice'+cid).textContent = nprice;}
|
||||
else { var value = document.getElementById('nprice'+fid).innerHTML;
|
||||
document.getElementById('nprice'+fid).textContent = nprice; }
|
||||
var totalsum = parseInt(cursum);
|
||||
var nmprice = parseInt(nprice);
|
||||
var val = parseInt(value);
|
||||
if(val===0){
|
||||
if(!cursum) { document.getElementById('total1'+fid).textContent = nprice;
|
||||
} else { var tot =totalsum+nmprice;
|
||||
document.getElementById('total1'+fid).textContent = tot;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function nonmemplus(fid)
|
||||
{
|
||||
var n2_first_name = document.getElementById("n2_first_name"+fid).value;
|
||||
var n2_last_name = document.getElementById("n2_last_name"+fid).value;
|
||||
var n2_email_id = document.getElementById("n2_email_id"+fid).value;
|
||||
var n2_phone_no = document.getElementById("n2_phone_no"+fid).value;
|
||||
var n2_ssn = document.getElementById("n2_ssn"+fid).value;
|
||||
var result = n2_first_name + ' ' + n2_last_name + ' ' + n2_email_id + ' ' + n2_phone_no + ' ' + n2_ssn;
|
||||
document.getElementById('nmemplus'+fid).textContent = result;
|
||||
}
|
||||
function nmemplussum(fid,cid,n2price)
|
||||
{
|
||||
var cursum = document.getElementById('total1'+fid).innerHTML;
|
||||
if(cid) { var value = document.getElementById('nplusprice'+cid).innerHTML;
|
||||
document.getElementById('nplusprice'+cid).textContent = n2price;}
|
||||
else { var value = document.getElementById('nplusprice'+fid).innerHTML;
|
||||
document.getElementById('nplusprice'+fid).textContent = n2price;}
|
||||
var totalsum = parseInt(cursum);
|
||||
var nm2price = parseInt(n2price);
|
||||
var val = parseInt(value);
|
||||
if(val===0){
|
||||
if(!cursum) { document.getElementById('total1'+fid).textContent = n2price;
|
||||
} else { var tot =totalsum+nm2price;
|
||||
document.getElementById('total1'+fid).textContent = tot;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function employer(fid)
|
||||
{
|
||||
var s_first_name = document.getElementById("s_first_name"+fid).value;
|
||||
var s_last_name = document.getElementById("s_last_name"+fid).value;
|
||||
var s_email_id = document.getElementById("s_email_id"+fid).value;
|
||||
var s_phone_no = document.getElementById("s_phone_no"+fid).value;
|
||||
var s_ssn = document.getElementById("s_ssn"+fid).value;
|
||||
var result = s_first_name + ' ' + s_last_name + ' ' + s_email_id + ' ' + s_phone_no + ' ' + s_ssn;
|
||||
document.getElementById('employer'+fid).textContent = result;
|
||||
}
|
||||
function smembersum(fid,cid,sprice)
|
||||
{
|
||||
var cursum = document.getElementById('total1'+fid).innerHTML;
|
||||
if(cid) { var value = document.getElementById('sprice'+cid).innerHTML;
|
||||
document.getElementById('sprice'+cid).textContent = sprice;}
|
||||
else{ var value = document.getElementById('sprice'+fid).innerHTML;
|
||||
document.getElementById('sprice'+fid).textContent = sprice;}
|
||||
var totalsum = parseInt(cursum);
|
||||
var smprice = parseInt(sprice);
|
||||
var val = parseInt(value);
|
||||
if(val===0){
|
||||
if(!cursum) { document.getElementById('total1'+fid).textContent = sprice;
|
||||
} else { var tot =totalsum+smprice;
|
||||
document.getElementById('total1'+fid).textContent = tot;
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
29
php/application/views/front/includes/left-menu.php
Normal file
29
php/application/views/front/includes/left-menu.php
Normal file
@ -0,0 +1,29 @@
|
||||
<?php
|
||||
$menu1 = "";
|
||||
$menu2 = "";
|
||||
$menu3 = "";
|
||||
$menu4 = "";
|
||||
if($this->uri->uri_string() == 'admin/admin/dashboard')
|
||||
$menu1 = "active highlight";
|
||||
if($this->uri->uri_string() == 'admin/classsetting/cl_name')
|
||||
$menu2 = "active highlight";
|
||||
if($this->uri->uri_string() == 'admin/classsetting/cl_locations')
|
||||
$menu2 = "active highlight";
|
||||
if($this->uri->uri_string() == 'admin/classsetting/cl_instructors')
|
||||
$menu2 = "active highlight";
|
||||
if($this->uri->uri_string() == 'admin/createclass/cl_create')
|
||||
$menu3 = "active highlight";
|
||||
if($this->uri->uri_string() == 'admin/user/admin_user')
|
||||
$menu4 = "active highlight";
|
||||
?>
|
||||
<nav class="admin-nav pushmenu pushmenu-left pushmenu-open" id="sidebar">
|
||||
<div class="logo"><img src="https://www.abc.org/Portals/1/abc_logo_svg.svg" alt=""></div>
|
||||
<ul>
|
||||
<li class="<?=$menu1?>"><a href="<?php echo base_url('admin/admin/dashboard'); ?>"><img src="<?=base_url();?>assets/admin/img/dashboard.png" alt=""> Dashboard</a></li>
|
||||
<li class="<?=$menu2?>"><a href="<?php echo base_url('admin/classsetting/cl_name'); ?>"><img src="<?=base_url();?>assets/admin/img/tools.png" alt="">Class Settings</a></li>
|
||||
<li class="<?=$menu3?>"><a href="<?php echo base_url('admin/createclass/cl_create'); ?>"><img src="<?=base_url();?>assets/admin/img/create.png" alt="">Create Class</a></li>
|
||||
<?php if($this->session->user_type == "admin") { ?>
|
||||
<li class="<?=$menu4?>"><a href="<?php echo base_url('admin/user/admin_user'); ?>"><img src="<?=base_url();?>assets/admin/img/ad.png" alt="">Admin Users</a></li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
</nav>
|
31
php/application/views/front/includes/test_footer.php
Normal file
31
php/application/views/front/includes/test_footer.php
Normal file
@ -0,0 +1,31 @@
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
|
||||
<!-- Include all compiled plugins (below), or include individual files as needed -->
|
||||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
$(".enroll-btn").click(function(){
|
||||
var html="";
|
||||
html+='<div><ul class="d-flex">'
|
||||
html+='<li><input type="text" placeholder="First Name*"></li>'
|
||||
html+='<li><input type="text" placeholder="Last Name*"></li>'
|
||||
html+=' <li><input type="text" placeholder="Email Address*"></li>'
|
||||
html+=' <li><input type="text" placeholder="Phone Number*"></li> <button class="cls-btn"> X </button></ul></div>'
|
||||
$(this).parent().find('.clone-append').append(html).html();
|
||||
});
|
||||
$('body').delegate(".cls-btn", "click",function(){
|
||||
$(this).closest('div').hide();
|
||||
// // $(this).parent().hide();
|
||||
// $(this).parent().hide();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
$('.start_text').click(function(){
|
||||
var inputValue = $(this).attr("value");
|
||||
|
||||
$("." + inputValue).toggle();
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
405
php/application/views/front/index.php
Normal file
405
php/application/views/front/index.php
Normal file
@ -0,0 +1,405 @@
|
||||
<?php defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
$urlcheck = $this->uri->segment(2);
|
||||
$this->session->set_userdata('urlcheck',$urlcheck);
|
||||
if(is_null($urlcheck)) { $urlcheck = isset($first_loc)? $first_loc : ''; }
|
||||
$cart = $this->session->userdata('cart');
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<?php $this->load->view('front/includes/header-script')?>
|
||||
<title><?=FRONT_TITLE?></title>
|
||||
<?php $this->load->view('front/includes/index-header')?>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<div class="container">
|
||||
<div class="logo d-flex">
|
||||
<img src="<?=base_url();?>assets/front/img/logo.jpg" alt="">
|
||||
<span class="d-flex align-items-center justify-content-center">
|
||||
<h1>Continuing Education Registration</h1>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<section class="abc-tab">
|
||||
<div class="container">
|
||||
<div class="d-flex flex-row nav">
|
||||
<?php foreach($reg_location as $value) { ?>
|
||||
<div>
|
||||
<a class="<?php if($urlcheck==$value['locat_id']) { echo "active";} ?>" href="<?= base_url();?>loc-class/<?=$value['locat_id']?>"><?=$value['locat_name']?></a>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<?php $count = 0; foreach ($reg_class as $value) { $count++;
|
||||
echo form_open('reg-manage'); ?>
|
||||
<div class="abc-detail d-flex">
|
||||
<div class="title">
|
||||
<h2 class="d-flex">Class Title</h2>
|
||||
<div class="adv"><font style="font-weight: bold;font-size: 20px;"><?=$value['class_name']?></font> Hours<span class="hr-span"><?=$value['class_hours']?></span></div>
|
||||
<div class="date"><input type="checkbox" <?php if(isset($cart)) { if(in_array($value['form_id'], $cart)) { echo "checked"; } } ?> name="form_class[]" id="<?=$value['form_id']?>" value="<?=$value['form_id']?>">
|
||||
<label for="<?=$value['form_id']?>"></label>
|
||||
<span>Start Date:</span>
|
||||
<span><?=date("m-d-Y",strtotime($value['calss_start_date']))?></span>
|
||||
<span><?=date('h:i A',strtotime($value['calss_start_time']))?></span>
|
||||
<span><?php ob_start(); foreach (explode(",", $value['class_day']) as $day) {
|
||||
echo ucfirst(strtolower($day)).',';
|
||||
}
|
||||
$output = ob_get_clean();
|
||||
echo rtrim($output, ',');
|
||||
?></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="seat">
|
||||
<?php if($count==1) { ?><h2 class="justify-content-center d-flex">Seats Remaining</h2><?php } ?>
|
||||
<input type="hidden" name="form_id" id="form_id" value="<?=$value['form_id']?>">
|
||||
<span><?php if($value['remain_seats'] <= 0) { echo "No Seats Available"; } else { echo $value['remain_seats']; }?></span>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
|
||||
<div style="display: <?php if(isset($cart)) { if(in_array($value['form_id'], $cart)) { echo "block"; } else { echo "none"; } } else { echo "none"; } ?>;" class="abc-expand <?=$value['form_id']?>">
|
||||
<?php $registrants = explode(",", $value['class_registrants']); ?>
|
||||
<div class="member d-flex"> <?php if(in_array("M", $registrants)) { ?><span>Member / Alumni: $<?=$value['class_price_m']?>.00</span><?php } if(in_array("M2", $registrants)) { ?><span>Member / Alumni 2+: $<?=$value['class_price_m2']?>.00</span><?php } if(in_array("N", $registrants)) { ?><span> Non-Member: $<?=$value['class_price_n']?>.00</span><?php } if(in_array("N2", $registrants)) { ?><span> Non-Member 2+: $<?=$value['class_price_n2']?>.00</span><?php } if(in_array("S", $registrants)) { ?><span>SE: $<?=$value['class_price_s']?>.00</span><?php } ?>
|
||||
</div>
|
||||
<div class="d-flex class-des">
|
||||
<div class="col-md-5 no-pad">
|
||||
<h2>Class Description</h2>
|
||||
<p><?=$value['class_description']?></p>
|
||||
<span>Instructor: <?=$value['instr_name']?></span>
|
||||
</div>
|
||||
<div class="col-md-7">
|
||||
<h2>Class Details</h2>
|
||||
<p>Start Date: <?=date("m-d-Y",strtotime($value['calss_start_date']))?><br>
|
||||
End Date: <?=date("m-d-Y",strtotime($value['calss_end_date']))?><br>
|
||||
Time: <?=date('h:i A',strtotime($value['calss_start_time']))?> – <?=date('h:i A',strtotime($value['calss_end_time']))?><br>
|
||||
Location: <?=$value['class_room']?>, <?=$value['class_address']?>, <?=$value['class_city']?>, <?=$value['class_state']?>, <?=$value['class_code']?><br>
|
||||
Days of Week: <?=$value['class_day']?><br>
|
||||
Seats Available: <?=$value['class_seats']?><br>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="attendee">
|
||||
<h3>Attendee Info</h3>
|
||||
|
||||
<?php $member = $this->session->userdata('member'.$value['form_id']);
|
||||
if(in_array("M", $registrants)) { ?>
|
||||
<label>Member / Alumni</label>
|
||||
<div class="member flex-row d-flex flex-wrap">
|
||||
<div class="col-sm-10 no-pad resultsm<?=$value['form_id']?>"">
|
||||
<?php if(isset($member['M']) && !empty($member['M'])) {
|
||||
foreach ($member['M'] as $key => $val) { ?>
|
||||
<ul class="d-flex">
|
||||
<input type="hidden" name="class_price_m_<?=$value['form_id']?>" id="class_price_m1<?=$value['form_id']?>" value="<?=$value['class_price_m']?>">
|
||||
<li><input type="text" onblur="membersum(<?=$value['form_id']?>,0,<?=$value['class_price_m']?>);" onKeyUp="member(1<?=$value['form_id']?>)" name="m_first_name_<?=$value['form_id']?>[]" id="m_first_name1<?=$value['form_id']?>" placeholder="First Name*"value="<?=isset($val['first_name'])? $val['first_name'] : ''?>"></li>
|
||||
<li><input type="text" onKeyUp="member(1<?=$value['form_id']?>)" name="m_last_name_<?=$value['form_id']?>[]" id="m_last_name1<?=$value['form_id']?>" placeholder="Last Name*" value="<?=isset($val['last_name'])? $val['last_name'] : ''?>"></li>
|
||||
<li><input type="email" onKeyUp="member(1<?=$value['form_id']?>)" name="m_email_id_<?=$value['form_id']?>[]" id="m_email_id1<?=$value['form_id']?>" placeholder="Email Address*" value="<?=isset($val['email_id'])? $val['email_id'] : ''?>"></li>
|
||||
<li><input type="text" onKeyUp="member(1<?=$value['form_id']?>)" class="yourphone" name="m_phone_no_<?=$value['form_id']?>[]" id="m_phone_no1<?=$value['form_id']?>" placeholder="Phone Number*" value="<?=isset($val['phone_no'])? $val['phone_no'] : ''?>"></li>
|
||||
<li><input type="text" maxlength="4" onKeyUp="member(1<?=$value['form_id']?>);if (/\D/g.test(this.value)) this.value = this.value.replace(/\D/g,'')" name="m_ssn_<?=$value['form_id']?>[]" id="m_ssn1<?=$value['form_id']?>" placeholder="Last 4 Of SSN*" value="<?=isset($val['ssn'])? $val['ssn'] : ''?>"></li>
|
||||
<a href="<?= base_url(). 'remove-data/'.$value['form_id'].'/'.$key.'/'.$value['class_price_m'].'/'.'M'?>"><span class="button"> X </span></a>
|
||||
</ul>
|
||||
<?php } } else { ?>
|
||||
<ul class="d-flex">
|
||||
<input type="hidden" name="class_price_m_<?=$value['form_id']?>" id="class_price_m<?=$value['form_id']?>" value="<?=$value['class_price_m']?>">
|
||||
<li><input type="text" onblur="membersum(<?=$value['form_id']?>,0,<?=$value['class_price_m']?>);" onKeyUp="member(1<?=$value['form_id']?>)" name="m_first_name_<?=$value['form_id']?>[]" id="m_first_name1<?=$value['form_id']?>" placeholder="First Name*" ></li>
|
||||
<li><input type="text" onKeyUp="member(1<?=$value['form_id']?>)" name="m_last_name_<?=$value['form_id']?>[]" id="m_last_name1<?=$value['form_id']?>" placeholder="Last Name*" ></li>
|
||||
<li><input type="email" onKeyUp="member(1<?=$value['form_id']?>)" name="m_email_id_<?=$value['form_id']?>[]" id="m_email_id1<?=$value['form_id']?>" placeholder="Email Address*" ></li>
|
||||
<li><input type="text" class="yourphone" onKeyUp="member(1<?=$value['form_id']?>)" class="phone" name="m_phone_no_<?=$value['form_id']?>[]" id="m_phone_no1<?=$value['form_id']?>" placeholder="Phone Number*" ></li>
|
||||
<li><input type="text" maxlength="4" onKeyUp="member(1<?=$value['form_id']?>);if (/\D/g.test(this.value)) this.value = this.value.replace(/\D/g,'')" name="m_ssn_<?=$value['form_id']?>[]" id="m_ssn1<?=$value['form_id']?>" placeholder="Last 4 Of SSN*" ></li>
|
||||
</ul>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<div class="col-sm-2 enroll-btnm" form-data="<?=$value['form_id']?>" mem-price="<?=$value['class_price_m']?>">
|
||||
<label class="d-flex">
|
||||
<span>+</span>
|
||||
<p>Enroll Attendee</p>
|
||||
</label>
|
||||
</div>
|
||||
<div class="col-sm-10 clone-append no-pad"> </div>
|
||||
</div>
|
||||
|
||||
<?php } $memplus = $this->session->userdata('memplus'.$value['form_id']);
|
||||
if(in_array("M2", $registrants)) { ?>
|
||||
<label>Member / Alumni 2+</label>
|
||||
<div class="member flex-row d-flex flex-wrap">
|
||||
<div class="col-sm-10 no-pad resultsm2<?=$value['form_id']?>"">
|
||||
<?php if(isset($memplus['M2']) && !empty($memplus['M2'])) {
|
||||
foreach ($memplus['M2'] as $key => $val) { ?>
|
||||
<ul class="d-flex">
|
||||
<input type="hidden" name="class_price_m2_<?=$value['form_id']?>" id="class_price_m21<?=$value['form_id']?>" value="<?=$value['class_price_m2']?>">
|
||||
<li><input type="text" onblur="memplussum(<?=$value['form_id']?>,0,<?=$value['class_price_m2']?>);" onKeyUp="memplus(1<?=$value['form_id']?>)" name="mp_first_name_<?=$value['form_id']?>[]" id="m2_first_name<?=$value['form_id']?>" placeholder="First Name*"value="<?=isset($val['first_name'])? $val['first_name'] : ''?>"></li>
|
||||
<li><input type="text" onKeyUp="memplus(1<?=$value['form_id']?>)" name="mp_last_name_<?=$value['form_id']?>[]" id="m2_last_name<?=$value['form_id']?>" placeholder="Last Name*" value="<?=isset($val['last_name'])? $val['last_name'] : ''?>"></li>
|
||||
<li><input type="email" onKeyUp="memplus(1<?=$value['form_id']?>)" name="mp_email_id_<?=$value['form_id']?>[]" id="m2_email_id<?=$value['form_id']?>" placeholder="Email Address*" value="<?=isset($val['email_id'])? $val['email_id'] : ''?>"></li>
|
||||
<li><input type="text" class="yourphone" onKeyUp="memplus(1<?=$value['form_id']?>)" class="phone" name="mp_phone_no_<?=$value['form_id']?>[]" id="m2_phone_no<?=$value['form_id']?>" placeholder="Phone Number*" value="<?=isset($val['phone_no'])? $val['phone_no'] : ''?>"></li>
|
||||
<li><input type="text" maxlength="4" onKeyUp="memplus(1<?=$value['form_id']?>);if (/\D/g.test(this.value)) this.value = this.value.replace(/\D/g,'')" name="mp_ssn_<?=$value['form_id']?>[]" id="m2_ssn<?=$value['form_id']?>" placeholder="Last 4 Of SSN*" value="<?=isset($val['ssn'])? $val['ssn'] : ''?>"></li>
|
||||
<a href="<?= base_url(). 'remove-data/'.$value['form_id'].'/'.$key.'/'.$value['class_price_m2'].'/'.'M2'?>"><span class="button"> X </span></a>
|
||||
</ul>
|
||||
<?php } } else { ?>
|
||||
<ul class="d-flex">
|
||||
<input type="hidden" name="class_price_m2_<?=$value['form_id']?>" id="class_price_m2<?=$value['form_id']?>" value="<?=$value['class_price_m']?>">
|
||||
<li><input type="text" onblur="memplussum(<?=$value['form_id']?>,0,<?=$value['class_price_m2']?>);" onKeyUp="memplus(1<?=$value['form_id']?>)" name="mp_first_name_<?=$value['form_id']?>[]" id="m2_first_name1<?=$value['form_id']?>" placeholder="First Name*" ></li>
|
||||
<li><input type="text" onKeyUp="memplus(1<?=$value['form_id']?>)" name="mp_last_name_<?=$value['form_id']?>[]" id="m2_last_name1<?=$value['form_id']?>" placeholder="Last Name*" ></li>
|
||||
<li><input type="email" onKeyUp="memplus(1<?=$value['form_id']?>)" name="mp_email_id_<?=$value['form_id']?>[]" id="m2_email_id1<?=$value['form_id']?>" placeholder="Email Address*" ></li>
|
||||
<li><input type="text" class="yourphone" onKeyUp="memplus(1<?=$value['form_id']?>)" class="phone" name="mp_phone_no_<?=$value['form_id']?>[]" id="m2_phone_no1<?=$value['form_id']?>" placeholder="Phone Number*" ></li>
|
||||
<li><input type="text" maxlength="4" onKeyUp="memplus(1<?=$value['form_id']?>);if (/\D/g.test(this.value)) this.value = this.value.replace(/\D/g,'')" name="mp_ssn_<?=$value['form_id']?>[]" id="m2_ssn1<?=$value['form_id']?>" placeholder="Last 4 Of SSN*" ></li>
|
||||
</ul>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
<div class="col-sm-2 enroll-btnm2" form-data="<?=$value['form_id']?>" mem2-price="<?=$value['class_price_m2']?>">
|
||||
<label class="d-flex">
|
||||
<span>+</span>
|
||||
<p>Enroll Attendee</p>
|
||||
</label>
|
||||
</div>
|
||||
<div class="col-sm-10 clone-append no-pad"> </div>
|
||||
</div>
|
||||
|
||||
<?php } $nonmember = $this->session->userdata('nonmember'.$value['form_id']);
|
||||
if(in_array("N", $registrants)) { ?>
|
||||
<label>Non-Member</label>
|
||||
<div class="member flex-row d-flex flex-wrap">
|
||||
<div class="col-sm-10 no-pad resultsn<?=$value['form_id']?>">
|
||||
<?php if(isset($nonmember['N']) && !empty($nonmember['N'])) {
|
||||
foreach ($nonmember['N'] as $key => $val) { ?>
|
||||
<ul class="d-flex">
|
||||
<input type="hidden" name="class_price_n_<?=$value['form_id']?>" id="class_price_n1<?=$value['form_id']?>" value="<?=$value['class_price_n']?>">
|
||||
<li><input type="text" onblur="nmembersum(<?=$value['form_id']?>,0,<?=$value['class_price_n']?>);" onKeyUp="nonmember(1<?=$value['form_id']?>)" name="n_first_name_<?=$value['form_id']?>[]" id="n_first_name1<?=$value['form_id']?>" placeholder="First Name*" value="<?=isset($val['first_name'])? $val['first_name'] : ''?>"></li>
|
||||
<li><input type="text" onKeyUp="nonmember(1<?=$value['form_id']?>)" name="n_last_name_<?=$value['form_id']?>[]" id="n_last_name1<?=$value['form_id']?>" placeholder="Last Name*" value="<?=isset($val['last_name'])? $val['last_name'] : ''?>"></li>
|
||||
<li><input type="email" onKeyUp="nonmember(1<?=$value['form_id']?>)" name="n_email_id_<?=$value['form_id']?>[]" id="n_email_id1<?=$value['form_id']?>" placeholder="Email Address*" value="<?=isset($val['email_id'])? $val['email_id'] : ''?>"></li>
|
||||
<li><input type="text" class="yourphone" onKeyUp="nonmember(1<?=$value['form_id']?>)" class="phone" name="n_phone_no_<?=$value['form_id']?>[]" id="n_phone_no1<?=$value['form_id']?>" placeholder="Phone Number*" value="<?=isset($val['phone_no'])? $val['phone_no'] : ''?>"></li>
|
||||
<li><input type="text" maxlength="4" onKeyUp="nonmember(1<?=$value['form_id']?>);if (/\D/g.test(this.value)) this.value = this.value.replace(/\D/g,'')" name="n_ssn_<?=$value['form_id']?>[]" id="n_ssn1<?=$value['form_id']?>" placeholder="Last 4 Of SSN*" value="<?=isset($val['ssn'])? $val['ssn'] : ''?>"></li>
|
||||
<a href="<?= base_url(). 'remove-data/'.$value['form_id'].'/'.$key.'/'.$value['class_price_n'].'/'.'N'?>"><span class="button"> X </span></a>
|
||||
</ul>
|
||||
<?php } } else { ?>
|
||||
<ul class="d-flex">
|
||||
<input type="hidden" name="class_price_n_<?=$value['form_id']?>" id="class_price_n<?=$value['form_id']?>" value="<?=$value['class_price_n']?>">
|
||||
<li><input type="text" onblur="nmembersum(<?=$value['form_id']?>,0,<?=$value['class_price_n']?>);" onKeyUp="nonmember(1<?=$value['form_id']?>)" name="n_first_name_<?=$value['form_id']?>[]" id="n_first_name1<?=$value['form_id']?>" placeholder="First Name*"></li>
|
||||
<li><input type="text" onKeyUp="nonmember(1<?=$value['form_id']?>)" name="n_last_name_<?=$value['form_id']?>[]" id="n_last_name1<?=$value['form_id']?>" placeholder="Last Name*"></li>
|
||||
<li><input type="email" onKeyUp="nonmember(1<?=$value['form_id']?>)" name="n_email_id_<?=$value['form_id']?>[]" id="n_email_id1<?=$value['form_id']?>" placeholder="Email Address*"></li>
|
||||
<li><input type="text" class="yourphone" onKeyUp="nonmember(1<?=$value['form_id']?>)" class="phone" name="n_phone_no_<?=$value['form_id']?>[]" id="n_phone_no1<?=$value['form_id']?>" placeholder="Phone Number*"></li>
|
||||
<li><input type="text" maxlength="4" onKeyUp="nonmember(1<?=$value['form_id']?>);if (/\D/g.test(this.value)) this.value = this.value.replace(/\D/g,'')" name="n_ssn_<?=$value['form_id']?>[]" id="n_ssn1<?=$value['form_id']?>" placeholder="Last 4 Of SSN*"></li>
|
||||
</ul>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
<div class="col-sm-2 enroll-btnn" form-data="<?=$value['form_id']?>" nmem-price="<?=$value['class_price_n']?>">
|
||||
<label class="d-flex">
|
||||
<span>+</span>
|
||||
<p>Enroll Attendee</p>
|
||||
</label>
|
||||
</div>
|
||||
<div class="col-sm-10 clone-append no-pad"> </div>
|
||||
</div>
|
||||
|
||||
<?php } $nonplus = $this->session->userdata('nonplus'.$value['form_id']);
|
||||
if(in_array("N2", $registrants)) { ?>
|
||||
<label>Non-Member 2+</label>
|
||||
<div class="member flex-row d-flex flex-wrap">
|
||||
<div class="col-sm-10 no-pad resultsn2<?=$value['form_id']?>">
|
||||
<?php if(isset($nonplus['N2']) && !empty($nonplus['N2'])) {
|
||||
foreach ($nonplus['N2'] as $key => $val) { ?>
|
||||
<ul class="d-flex">
|
||||
<input type="hidden" name="class_price_n2_<?=$value['form_id']?>" id="class_price_n21<?=$value['form_id']?>" value="<?=$value['class_price_n']?>">
|
||||
<li><input type="text" onblur="nmemplussum(<?=$value['form_id']?>,0,<?=$value['class_price_n2']?>);" onKeyUp="nonmemplus(1<?=$value['form_id']?>)" name="np_first_name_<?=$value['form_id']?>[]" id="n2_first_name1<?=$value['form_id']?>" placeholder="First Name*" value="<?=isset($val['first_name'])? $val['first_name'] : ''?>"></li>
|
||||
<li><input type="text" onKeyUp="nonmemplus(1<?=$value['form_id']?>)" name="np_last_name_<?=$value['form_id']?>[]" id="n2_last_name1<?=$value['form_id']?>" placeholder="Last Name*" value="<?=isset($val['last_name'])? $val['last_name'] : ''?>"></li>
|
||||
<li><input type="email" onKeyUp="nonmemplus(1<?=$value['form_id']?>)" name="np_email_id_<?=$value['form_id']?>[]" id="n2_email_id1<?=$value['form_id']?>" placeholder="Email Address*" value="<?=isset($val['email_id'])? $val['email_id'] : ''?>"></li>
|
||||
<li><input type="text" class="yourphone" onKeyUp="nonmemplus(1<?=$value['form_id']?>)" class="phone" name="np_phone_no_<?=$value['form_id']?>[]" id="n2_phone_no1<?=$value['form_id']?>" placeholder="Phone Number*" value="<?=isset($val['phone_no'])? $val['phone_no'] : ''?>"></li>
|
||||
<li><input type="text" maxlength="4" onKeyUp="nonmemplus(1<?=$value['form_id']?>);if (/\D/g.test(this.value)) this.value = this.value.replace(/\D/g,'')" name="np_ssn_<?=$value['form_id']?>[]" id="n2_ssn1<?=$value['form_id']?>" placeholder="Last 4 Of SSN*" value="<?=isset($val['ssn'])? $val['ssn'] : ''?>"></li>
|
||||
<a href="<?= base_url(). 'remove-data/'.$value['form_id'].'/'.$key.'/'.$value['class_price_n2'].'/'.'N2'?>"><span class="button"> X </span></a>
|
||||
</ul>
|
||||
<?php } } else { ?>
|
||||
<ul class="d-flex">
|
||||
<input type="hidden" name="class_price_n2_<?=$value['form_id']?>" id="class_price_n2<?=$value['form_id']?>" value="<?=$value['class_price_n2']?>">
|
||||
<li><input type="text" onblur="nmemplussum(<?=$value['form_id']?>,0,<?=$value['class_price_n2']?>);" onKeyUp="nonmemplus(1<?=$value['form_id']?>)" name="np_first_name_<?=$value['form_id']?>[]" id="n2_first_name1<?=$value['form_id']?>" placeholder="First Name*"></li>
|
||||
<li><input type="text" onKeyUp="nonmemplus(1<?=$value['form_id']?>)" name="np_last_name_<?=$value['form_id']?>[]" id="n2_last_name1<?=$value['form_id']?>" placeholder="Last Name*"></li>
|
||||
<li><input type="email" onKeyUp="nonmemplus(1<?=$value['form_id']?>)" name="np_email_id_<?=$value['form_id']?>[]" id="n2_email_id1<?=$value['form_id']?>" placeholder="Email Address*"></li>
|
||||
<li><input type="text" class="yourphone" onKeyUp="nonmemplus(1<?=$value['form_id']?>)" class="phone" name="np_phone_no_<?=$value['form_id']?>[]" id="n2_phone_no1<?=$value['form_id']?>" placeholder="Phone Number*"></li>
|
||||
<li><input type="text" maxlength="4" onKeyUp="nonmemplus(1<?=$value['form_id']?>);if (/\D/g.test(this.value)) this.value = this.value.replace(/\D/g,'')" name="np_ssn_<?=$value['form_id']?>[]" id="n2_ssn1<?=$value['form_id']?>" placeholder="Last 4 Of SSN*"></li>
|
||||
</ul>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
<div class="col-sm-2 enroll-btnn2" form-data="<?=$value['form_id']?>" nmem2-price="<?=$value['class_price_n2']?>">
|
||||
<label class="d-flex">
|
||||
<span>+</span>
|
||||
<p>Enroll Attendee</p>
|
||||
</label>
|
||||
</div>
|
||||
<div class="col-sm-10 clone-append no-pad"> </div>
|
||||
</div>
|
||||
|
||||
<?php } $semember = $this->session->userdata('semember'.$value['form_id']);
|
||||
if(in_array("S", $registrants)) { ?>
|
||||
<label>Subscribing Employer</label>
|
||||
<div class="member flex-row d-flex flex-wrap">
|
||||
<div class="col-sm-10 no-pad resultss<?=$value['form_id']?>">
|
||||
<?php if(isset($semember['S']) && !empty($semember['S'])) {
|
||||
foreach ($semember['S'] as $key => $val) { ?>
|
||||
<ul class="d-flex">
|
||||
<input type="hidden" name="class_price_s_<?=$value['form_id']?>" id="class_price_s1<?=$value['form_id']?>" value="<?=$value['class_price_s']?>">
|
||||
<li><input type="text" onblur="smembersum(<?=$value['form_id']?>,0,<?=$value['class_price_s']?>);" onKeyUp="employer(1<?=$value['form_id']?>)" name="s_first_name_<?=$value['form_id']?>[]" id="s_first_name1<?=$value['form_id']?>" placeholder="First Name*" value="<?=isset($val['first_name'])? $val['first_name'] : ''?>"></li>
|
||||
<li><input type="text" onKeyUp="employer(1<?=$value['form_id']?>)" name="s_last_name_<?=$value['form_id']?>[]" id="s_last_name1<?=$value['form_id']?>" placeholder="Last Name*" value="<?=isset($val['last_name'])? $val['last_name'] : ''?>"></li>
|
||||
<li><input type="email" onKeyUp="employer(1<?=$value['form_id']?>)" name="s_email_id_<?=$value['form_id']?>[]" id="s_email_id1<?=$value['form_id']?>" placeholder="Email Address*" value="<?=isset($val['email_id'])? $val['email_id'] : ''?>"></li>
|
||||
<li><input type="text" class="yourphone" onKeyUp="employer(1<?=$value['form_id']?>)" class="phone" name="s_phone_no_<?=$value['form_id']?>[]" id="s_phone_no1<?=$value['form_id']?>" placeholder="Phone Number*" value="<?=isset($val['phone_no'])? $val['phone_no'] : ''?>"></li>
|
||||
<li><input type="text" maxlength="4" onKeyUp="employer(1<?=$value['form_id']?>);if (/\D/g.test(this.value)) this.value = this.value.replace(/\D/g,'')" name="s_ssn_<?=$value['form_id']?>[]" id="s_ssn1<?=$value['form_id']?>" placeholder="Last 4 Of SSN*" value="<?=isset($val['ssn'])? $val['ssn'] : ''?>"></li>
|
||||
<a href="<?= base_url(). 'remove-data/'.$value['form_id'].'/'.$key.'/'.$value['class_price_s'].'/'.'S'?>"><span class="button"> X </span></a>
|
||||
</ul>
|
||||
<?php } } else { ?>
|
||||
<ul class="d-flex">
|
||||
<input type="hidden" name="class_price_s_<?=$value['form_id']?>" id="class_price_s<?=$value['form_id']?>" value="<?=$value['class_price_s']?>">
|
||||
<li><input type="text" onblur="smembersum(<?=$value['form_id']?>,0,<?=$value['class_price_s']?>);" onKeyUp="employer(1<?=$value['form_id']?>)" name="s_first_name_<?=$value['form_id']?>[]" id="s_first_name1<?=$value['form_id']?>" placeholder="First Name*" ></li>
|
||||
<li><input type="text" onKeyUp="employer(1<?=$value['form_id']?>)" name="s_last_name_<?=$value['form_id']?>[]" id="s_last_name1<?=$value['form_id']?>" placeholder="Last Name*"></li>
|
||||
<li><input type="email" onKeyUp="employer(1<?=$value['form_id']?>)" name="s_email_id_<?=$value['form_id']?>[]" id="s_email_id1<?=$value['form_id']?>" placeholder="Email Address*" ></li>
|
||||
<li><input type="text" class="yourphone" onKeyUp="employer(1<?=$value['form_id']?>)" class="phone" name="s_phone_no_<?=$value['form_id']?>[]" id="s_phone_no1<?=$value['form_id']?>" placeholder="Phone Number*" ></li>
|
||||
<li><input type="text" maxlength="4" onKeyUp="employer(1<?=$value['form_id']?>);if (/\D/g.test(this.value)) this.value = this.value.replace(/\D/g,'')" name="s_ssn_<?=$value['form_id']?>[]" id="s_ssn1<?=$value['form_id']?>" placeholder="Last 4 Of SSN*" ></li>
|
||||
</ul>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
<div class="col-sm-2 enroll-btns" form-data="<?=$value['form_id']?>" smem-price="<?=$value['class_price_s']?>">
|
||||
<label class="d-flex">
|
||||
<span>+</span>
|
||||
<p>Enroll Attendee</p>
|
||||
</label>
|
||||
</div>
|
||||
<div class="col-sm-10 clone-append no-pad"> </div>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
<div class="class-total">
|
||||
<h3>Class Totals</h3>
|
||||
<div class="alumi">
|
||||
<?php if(in_array("M", $registrants)) { ?>
|
||||
<label>Member / Alumni</label>
|
||||
<span class="almeb<?=$value['form_id']?>">
|
||||
<?php if(isset($member['M']) && !empty($member['M'])) {
|
||||
foreach ($member['M'] as $key => $val) { ?>
|
||||
<div class="d-flex alumi-content mebdiv">
|
||||
<div class="col-sm-8"><span style="color: grey;"><?=isset($val['first_name'])? $val['first_name'] : ''?> <?=isset($val['last_name'])? $val['last_name'] : ''?> <?=isset($val['email_id'])? $val['email_id'] : ''?> <?=isset($val['phone_no'])? $val['phone_no'] : ''?> <?=isset($val['ssn'])? $val['ssn'] : ''?></span></div>
|
||||
<div class="col-sm-1">$ <?=$value['class_price_m']?></div>
|
||||
<a href="<?= base_url(). 'remove-data/'.$value['form_id'].'/'.$key.'/'.$value['class_price_m'].'/'.'M'?>"><span class="cls-btn-m">X</span></a>
|
||||
</div>
|
||||
|
||||
<?php } } else { ?>
|
||||
|
||||
<div class="d-flex alumi-content mebdiv" id="madiv1<?=$value['form_id']?>">
|
||||
<div class="col-sm-8 resultsm<?=$value['form_id']?>"><span style="color: grey;" id="member1<?=$value['form_id']?>"></span></div>
|
||||
<div class="col-sm-1">$ <h id="mprice<?=$value['form_id']?>">0.00</h></div>
|
||||
<span onClick="resetm(<?=$value['form_id']?>,<?=$value['class_price_m']?>);"> X </span></div>
|
||||
<?php } ?>
|
||||
</span>
|
||||
<input name="mebhid" id="mebhid<?=$value['form_id']?>" type="hidden" value="1">
|
||||
|
||||
<?php } if(in_array("M2", $registrants)) { ?>
|
||||
<label>Member / Alumni 2+</label>
|
||||
<span class="almeb2<?=$value['form_id']?>">
|
||||
<?php if(isset($memplus['M2']) && !empty($memplus['M2'])) {
|
||||
foreach ($memplus['M2'] as $key => $val) { ?>
|
||||
<div class="d-flex alumi-content meb2div">
|
||||
<div class="col-sm-8"><span style="color: grey;"><?=isset($val['first_name'])? $val['first_name'] : ''?> <?=isset($val['last_name'])? $val['last_name'] : ''?> <?=isset($val['email_id'])? $val['email_id'] : ''?> <?=isset($val['phone_no'])? $val['phone_no'] : ''?> <?=isset($val['ssn'])? $val['ssn'] : ''?></span></div>
|
||||
<div class="col-sm-1">$ <?=$value['class_price_m2']?></div>
|
||||
<a href="<?= base_url(). 'remove-data/'.$value['form_id'].'/'.$key.'/'.$value['class_price_m2'].'/'.'M2'?>"><span class="cls-btn-m2">X</span></a>
|
||||
</div>
|
||||
|
||||
<?php } } else { ?>
|
||||
|
||||
<div class="d-flex alumi-content meb2div" id="m2adiv1<?=$value['form_id']?>">
|
||||
<div class="col-sm-8 resultsm2<?=$value['form_id']?>"><span style="color: grey;" id="memplus1<?=$value['form_id']?>"></span></div>
|
||||
<div class="col-sm-1">$ <h id="mplusprice<?=$value['form_id']?>">0.00</h></div>
|
||||
<span onClick="resetm2(<?=$value['form_id']?>,<?=$value['class_price_m2']?>);"> X </span></div>
|
||||
<?php } ?>
|
||||
</span>
|
||||
<input name="mebhid2" id="mebhid2<?=$value['form_id']?>" type="hidden" value="1">
|
||||
<?php } if(in_array("N", $registrants)) { ?>
|
||||
<label>Non-Member</label>
|
||||
<span class="alnmeb<?=$value['form_id']?>">
|
||||
<?php if(isset($nonmember['N']) && !empty($nonmember['N'])) {
|
||||
foreach ($nonmember['N'] as $key => $val) { ?>
|
||||
<div class="d-flex alumi-content nmebdiv">
|
||||
<div class="col-sm-8"><span style="color: grey;"><?=isset($val['first_name'])? $val['first_name'] : ''?> <?=isset($val['last_name'])? $val['last_name'] : ''?> <?=isset($val['email_id'])? $val['email_id'] : ''?> <?=isset($val['phone_no'])? $val['phone_no'] : ''?> <?=isset($val['ssn'])? $val['ssn'] : ''?></span></div>
|
||||
<div class="col-sm-1">$ <?=$value['class_price_n']?></div>
|
||||
<a href="<?= base_url(). 'remove-data/'.$value['form_id'].'/'.$key.'/'.$value['class_price_n'].'/'.'N'?>"><span class="cls-btn-n">X</span></a>
|
||||
</div>
|
||||
|
||||
<?php } } else { ?>
|
||||
|
||||
<div class="d-flex alumi-content nmebdiv" id="nadiv1<?=$value['form_id']?>">
|
||||
<div class="col-sm-8 resultsn<?=$value['form_id']?>"><span style="color: grey;" id="nonmember1<?=$value['form_id']?>"></span></div>
|
||||
<div class="col-sm-1">$ <h id="nprice<?=$value['form_id']?>">0.00</h></div>
|
||||
<span onClick="resetn(<?=$value['form_id']?>,<?=$value['class_price_n']?>);"> X </span>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</span>
|
||||
<input name="nmebhid" id="nmebhid<?=$value['form_id']?>" type="hidden" value="1">
|
||||
<?php } if(in_array("N2", $registrants)) { ?>
|
||||
<label>Non-Member 2+</label>
|
||||
<span class="alnmeb2<?=$value['form_id']?>">
|
||||
<?php if(isset($nonplus['N2']) && !empty($nonplus['N2'])) {
|
||||
foreach ($nonplus['N2'] as $key => $val) { ?>
|
||||
<div class="d-flex alumi-content nmeb2div">
|
||||
<div class="col-sm-8"><span style="color: grey;"><?=isset($val['first_name'])? $val['first_name'] : ''?> <?=isset($val['last_name'])? $val['last_name'] : ''?> <?=isset($val['email_id'])? $val['email_id'] : ''?> <?=isset($val['phone_no'])? $val['phone_no'] : ''?> <?=isset($val['ssn'])? $val['ssn'] : ''?></span></div>
|
||||
<div class="col-sm-1">$ <?=$value['class_price_n2']?></div>
|
||||
<a href="<?= base_url(). 'remove-data/'.$value['form_id'].'/'.$key.'/'.$value['class_price_n2'].'/'.'N2'?>"><span class="cls-btn-n2">X</span></a>
|
||||
</div>
|
||||
|
||||
<?php } } else { ?>
|
||||
|
||||
<div class="d-flex alumi-content nmeb2div" id="nadiv21<?=$value['form_id']?>">
|
||||
<div class="col-sm-8 resultsn2<?=$value['form_id']?>"><span style="color: grey;" id="nmemplus1<?=$value['form_id']?>"></span></div>
|
||||
<div class="col-sm-1">$ <h id="nplusprice<?=$value['form_id']?>">0.00</h></div>
|
||||
<span onClick="resetn2(<?=$value['form_id']?>,<?=$value['class_price_n2']?>);"> X </span>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</span>
|
||||
<input name="nmebhid" id="nmebhid<?=$value['form_id']?>" type="hidden" value="1">
|
||||
<?php } if(in_array("S", $registrants)) { ?>
|
||||
<label>Subscribing Employer</label>
|
||||
<span class="alsmeb<?=$value['form_id']?>">
|
||||
<?php if(isset($semember['S']) && !empty($semember['S'])) {
|
||||
foreach ($semember['S'] as $key => $val) { ?>
|
||||
<div class="d-flex alumi-content smebdiv">
|
||||
<div class="col-sm-8"><span style="color: grey;"><?=isset($val['first_name'])? $val['first_name'] : ''?> <?=isset($val['last_name'])? $val['last_name'] : ''?> <?=isset($val['email_id'])? $val['email_id'] : ''?> <?=isset($val['phone_no'])? $val['phone_no'] : ''?> <?=isset($val['ssn'])? $val['ssn'] : ''?></span></div>
|
||||
<div class="col-sm-1">$ <?=$value['class_price_s']?></div>
|
||||
<a href="<?= base_url(). 'remove-data/'.$value['form_id'].'/'.$key.'/'.$value['class_price_s'].'/'.'S'?>"><span class="cls-btn-n">X</span></a>
|
||||
</div>
|
||||
|
||||
<?php } } else { ?>
|
||||
|
||||
<div class="d-flex alumi-content smebdiv" id="sadiv1<?=$value['form_id']?>">
|
||||
<div class="col-sm-8 resultss<?=$value['form_id']?>"><span style="color: grey;" id="employer1<?=$value['form_id']?>"></span></div>
|
||||
<div class="col-sm-1">$ <h id="sprice<?=$value['form_id']?>">0.00</h></div>
|
||||
<span onClick="resets(<?=$value['form_id']?>,<?=$value['class_price_s']?>);"> X </span>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</span>
|
||||
<input name="smebhid" id="smebhid<?=$value['form_id']?>" type="hidden" value="1">
|
||||
<?php } ?>
|
||||
</div>
|
||||
<div class="d-flex alumi-content class-sum">
|
||||
<div class="col-sm-8">Class Total</div>
|
||||
<div class="col-sm-4">$ <label id="total1<?=$value['form_id']?>"><?=$this->session->userdata('classtotal'.$value['form_id']);?></label>.00</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<div class="d-flex justify-content-between abc-btn">
|
||||
<div class="p-2"><a href="<?=base_url();?>reset-page"><button type="button" class="btn" style="background: #ff0000; color: #fff; ">Reset</button></a></div>
|
||||
<div class="p-2"><button type="submit" class="btn" style="background: #333366; color: #fff;">Review Order</button>
|
||||
</div>
|
||||
</div>
|
||||
<?php echo form_close(); ?>
|
||||
</div>
|
||||
</section>
|
||||
<!-- Optional JavaScript -->
|
||||
<?php $this->load->view('front/includes/footer-script')?>
|
||||
</body>
|
||||
</html>
|
266
php/application/views/front/payment.php
Normal file
266
php/application/views/front/payment.php
Normal file
@ -0,0 +1,266 @@
|
||||
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<?php $this->load->view('front/includes/header-script')?>
|
||||
<title><?=TITLE?></title>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<div class="container">
|
||||
<div class="logo d-flex">
|
||||
<img src="<?=base_url();?>assets/front/img/logo.jpg" alt="">
|
||||
<span class="d-flex align-items-center justify-content-center">
|
||||
<h1>Registration Payment</h1>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<section>
|
||||
<div class="container">
|
||||
<?php echo form_open('hosted-payment'); ?>
|
||||
<div class="select-payment">
|
||||
<h3>Select Payment Type</h3><br>
|
||||
<div class="credit d-flex">
|
||||
<span> <input type="radio" checked name="payment_type" value="card" id="host1" class="radio" required><label for="host1"></label>Credit Card / Debit Card</span>
|
||||
<span> <input type="radio" name="payment_type" value="invoice" id="host2" class="radio"><label for="host2"></label>Invoice Company <font style="font-weight: bold;">(Members Only)</font></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="select-payment">
|
||||
<h3>Company Details</h3>
|
||||
<div class="card-detail">
|
||||
<span class="d-flex">
|
||||
<div class="col-md-4 d-flex no-pad"><label for="">Company Name:*</label><input type="text" id="acvv" name="company_name" required></div>
|
||||
<div class="col-md-4 d-flex no-pad"><label for="">Billing Contact:*</label><input type="text" id="acvv" name="billing_contact" required></div>
|
||||
<div class="col-md-4 d-flex no-pad"><label for="">Customer ID:</label><input type="text" id="acvv" name="customer_id"></div>
|
||||
</span>
|
||||
<span class="d-flex"><label for="">Street Address:*</label><input type="text" id="aaddress" name="street_adrs" required></span>
|
||||
<span class="d-flex">
|
||||
<div class="col-md-4 d-flex no-pad"><label for="">City:*</label><input type="text" name="city_name" required></div>
|
||||
<div class="col-md-4 d-flex no-pad"><label for="">State:*</label>
|
||||
<select id="state" class="required" name="state" style="margin-left: 4px;" tabindex="8">
|
||||
<option value="">Choose State:</option>
|
||||
<option value="AL">Alabama</option><option value="AK">Alaska</option><option value="AZ">Arizona</option><option value="AR">Arkansas</option><option value="CA">California</option><option value="CO">Colorado</option><option value="CT">Connecticut</option><option value="DE">Delaware</option><option value="FL">Florida</option><option value="GA">Georgia</option><option value="HI">Hawaii</option><option value="ID">Idaho</option><option value="IL">Illinois</option><option value="IN">Indiana</option><option value="IA">Iowa</option><option value="KS">Kansas</option><option value="KY">Kentucky</option><option value="LA">Louisiana</option><option value="ME">Maine</option><option value="MD">Maryland</option><option value="MA">Massachusetts</option><option value="MI">Michigan</option><option value="MN">Minnesota</option><option value="MS">Mississippi</option><option value="MO">Missouri</option><option value="MT">Montana</option><option value="NE">Nebraska</option><option value="NV">Nevada</option><option value="NH">New Hampshire</option><option value="NJ">New Jersey</option><option value="NM">New Mexico</option><option value="NY">New York</option><option value="NC">North Carolina</option><option value="ND">North Dakota</option><option value="OH">Ohio</option><option value="OK">Oklahoma</option><option value="OR">Oregon</option><option value="PA">Pennsylvania</option><option value="RI">Rhode Island</option><option value="SC">South Carolina</option><option value="SD">South Dakota</option><option value="TN">Tennessee</option><option value="TX">Texas</option><option value="UT">Utah</option><option value="VT">Vermont</option><option value="VA">Virginia</option><option value="WA">Washington</option><option value="WV">West Virginia</option><option value="WI">Wisconsin</option><option value="WY">Wyoming</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-4 d-flex no-pad"><label for="">Postal Code:*</label><input type="text" name="post_code" required></div>
|
||||
</span>
|
||||
<span class="d-flex">
|
||||
<div class="col-md-6 d-flex no-pad"><label for="">Phone Number:*</label><input type="text" class="yourphone" id="aphno" name="phone_no" required></div>
|
||||
<div class="col-md-6 d-flex no-pad"><label for="">Fax Number: </label><input type="text" id="afaxno" onkeyup="if (/\D/g.test(this.value)) this.value = this.value.replace(/\D/g,'')" name="fax_no"></div>
|
||||
</span>
|
||||
<span class="d-flex"><label for="" style="width:180px;">Additional Instructions:</label><textarea class="form-control" rows="5" id="comment" name="adtnal_instrction"></textarea></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="select-payment">
|
||||
<h3>Payment Details</h3>
|
||||
<div class="credit comp-detail">
|
||||
<!--<span class="d-flex"> <input type="checkbox" id="detail" class="check_box" onchange="AsAbove();"><label for="start"></label>Same as above</span>-->
|
||||
<div class="form-group d-flex">
|
||||
<span class="chk-abc"><input type="checkbox" value="Yes" name="details" id="start" class="chk-date1">
|
||||
<label for="start"></label>Same as above</span>
|
||||
</div>
|
||||
<div class="company-details detail">
|
||||
<span class="d-flex"><label for="" class="m-200 align-self-center">Card holder Name:*</label>
|
||||
<input type="text" id="acard_holder" name="card_holder_name" required>
|
||||
</span>
|
||||
<span class="d-flex">
|
||||
<div class="col-md-4 d-flex no-pad">
|
||||
<label for="" class="m-200 text-center align-self-center">Card Type:*</label>
|
||||
<select name="card_type" required>
|
||||
<option value="">--Select--</option>
|
||||
<option value="Express">American Express</option>
|
||||
<option value="Master">Master Card</option>
|
||||
<option value="Visa">Visa</option>
|
||||
<option value="Discover">Discover Card</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-8 d-flex no-pad">
|
||||
<label for="" class="m-200 text-center align-self-center">Card Number:*
|
||||
</label>
|
||||
<input type="text" onkeyup="if (/\D/g.test(this.value)) this.value = this.value.replace(/\D/g,'')" maxlength="16" name="card_number" required>
|
||||
</div>
|
||||
</span>
|
||||
<span class="d-flex cd-sub">
|
||||
<div class="col-md-4 d-flex no-pad">
|
||||
<label for="" class="m-200 text-center align-self-center">Expiration Month:*</label>
|
||||
<select class="col-md-6" name="exp_month" id="aexpmo" required>
|
||||
<option selected value=''>--Select Month--</option>
|
||||
<option value='Jan'>Janaury</option>
|
||||
<option value='Feb'>February</option>
|
||||
<option value='Mar'>March</option>
|
||||
<option value='Apr'>April</option>
|
||||
<option value='May'>May</option>
|
||||
<option value='Jun'>June</option>
|
||||
<option value='Jul'>July</option>
|
||||
<option value='Aug'>August</option>
|
||||
<option value='Sep'>September</option>
|
||||
<option value='Oct'>October</option>
|
||||
<option value='Nov'>November</option>
|
||||
<option value='Dec'>December</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-4 d-flex no-pad">
|
||||
<label for="" class="m-200 text-center align-self-center">Exp Year:*</label>
|
||||
<select class="col-md-6" id="aexpyar" name="exp_year" required>
|
||||
<option selected value=''>--Select Year--</option>
|
||||
<option value='2018'>2018</option>
|
||||
<option value='2019'>2019</option>
|
||||
<option value='2020'>2020</option>
|
||||
<option value='2021'>2021</option>
|
||||
<option value='2022'>2022</option>
|
||||
<option value='2023'>2023</option>
|
||||
<option value='2024'>2024</option>
|
||||
<option value='2025'>2025</option>
|
||||
<option value='2026'>2026</option>
|
||||
<option value='2027'>2027</option>
|
||||
<option value='2028'>2028</option>
|
||||
<option value='2029'>2029</option>
|
||||
<option value='2030'>2030</option>
|
||||
<option value='2031'>2031</option>
|
||||
<option value='2032'>2032</option>
|
||||
<option value='2033'>2033</option>
|
||||
<option value='2034'>2034</option>
|
||||
<option value='2035'>2035</option>
|
||||
<option value='2036'>2036</option>
|
||||
<option value='2037'>2037</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-4 d-flex no-pad"><label for="" class="m-200 text-right align-self-center">CVV Code:*</label>
|
||||
<input type="text" onkeyup="if (/\D/g.test(this.value)) this.value = this.value.replace(/\D/g,'')" id="acvv" name="cvv_code" required>
|
||||
</div>
|
||||
</span>
|
||||
</div>
|
||||
<!-- <div class="company-expand detail">
|
||||
<span class="d-flex"><label for="" class="m-200 align-self-center">Card holder Name:*</label><input type="text" id="bcard_holder" name="c_cardholder_name"> </span>
|
||||
<span class="d-flex"><label for="" class="m-200 align-self-center">Street Address*</label><input type="text" id="baddress" name="c_street_adrz"> </span>
|
||||
<span class="d-flex cd-sub">
|
||||
<div class="col-md-4 d-flex no-pad"><label for="" class="m-200 text-right align-self-center">Expiration Month:*</label>
|
||||
<select name="c_exp_mnth" id="bexpmo">
|
||||
<option selected value=''>--Select Month--</option>
|
||||
<option value='Jan'>Janaury</option>
|
||||
<option value='Feb'>February</option>
|
||||
<option value='Mar'>March</option>
|
||||
<option value='Apr'>April</option>
|
||||
<option value='May'>May</option>
|
||||
<option value='Jun'>June</option>
|
||||
<option value='Jul'>July</option>
|
||||
<option value='Aug'>August</option>
|
||||
<option value='Sep'>September</option>
|
||||
<option value='Oct'>October</option>
|
||||
<option value='Nov'>November</option>
|
||||
<option value='Dec'>December</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-4 d-flex no-pad"><label for="" class="m-200 text-right align-self-center">Exp Year:*</label>
|
||||
<select id="bexpyar" name="c_exp_year">
|
||||
<option selected value=''>--Select Year--</option>
|
||||
<option value='2018'>2018</option>
|
||||
<option value='2019'>2019</option>
|
||||
<option value='2020'>2020</option>
|
||||
<option value='2021'>2021</option>
|
||||
<option value='2022'>2022</option>
|
||||
<option value='2023'>2023</option>
|
||||
<option value='2024'>2024</option>
|
||||
<option value='2025'>2025</option>
|
||||
<option value='2026'>2026</option>
|
||||
<option value='2027'>2027</option>
|
||||
<option value='2028'>2028</option>
|
||||
<option value='2029'>2029</option>
|
||||
<option value='2030'>2030</option>
|
||||
<option value='2031'>2031</option>
|
||||
<option value='2032'>2032</option>
|
||||
<option value='2033'>2033</option>
|
||||
<option value='2034'>2034</option>
|
||||
<option value='2035'>2035</option>
|
||||
<option value='2036'>2036</option>
|
||||
<option value='2037'>2037</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-md-4 d-flex no-pad"><label for="" class="m-200 text-right align-self-center">CVV Code:*</label>
|
||||
<input type="text" id="bcvv" name="c_ccv_code">
|
||||
</div>
|
||||
</span>
|
||||
<span class="d-flex cd-sub">
|
||||
<div class="col-md-6 d-flex no-pad"><label for="" class="m-200 text-right align-self-center">Phone Number:*</label>
|
||||
<input type="text" id="bphno" name="c_phone_no"></div>
|
||||
<div class="col-md-6 d-flex no-pad"><label for="" class="m-200 text-right align-self-center">Fax Number:*</label>
|
||||
<input type="text" id="bfaxno" name="c_fax_no"></div>
|
||||
</span>
|
||||
</div> -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="select-payment">
|
||||
<h3>Sale Information</h3>
|
||||
<div class="credit d-flex sale-in">
|
||||
<div class="p-2">Total Sale Amount:</div>
|
||||
<div class="ml-auto p-2">$ <?=$this->session->userdata('granttotal');?>.00</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="select-payment">
|
||||
<h3>Notifications / Receipts</h3>
|
||||
<div class="credit d-flex">
|
||||
<span class="align-self-center"> <input type="checkbox" id="host5" class="check_box"><label for="host5"></label>Email me a receipt</span>
|
||||
<span class="d-flex"> <label class="align-self-center m-200">Email Address:</label><input type="email" name="emai_id"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="d-flex justify-content-center bd-highlight mb-3">
|
||||
<div class="p-2 bd-highlight"><button type="reset" class="btn clear-btn">Clear</button></div>
|
||||
<div class="p-2 bd-highlight"><button type="submit" class="btn process-btn">Process</button></div>
|
||||
</div>
|
||||
<?php echo form_close(); ?>
|
||||
<div class="abc-img d-flex flex-wrap justify-content-center align-items-center">
|
||||
<img src="<?=base_url();?>assets/front/img/visa.png" alt="">
|
||||
<img src="<?=base_url();?>assets/front/img/img.ssl.png" alt="">
|
||||
<img src="<?=base_url();?>assets/front/img/data.png" alt="">
|
||||
<img src="<?=base_url();?>assets/front/img/abc.png" alt="">
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<?php $this->load->view('front/includes/footer-script')?>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
$('input[type="checkbox"]').click(function(){
|
||||
var inputValue = $(this).attr("id");
|
||||
$("." + inputValue).toggle();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<!-- <script type="text/javascript">
|
||||
function AsAbove() {
|
||||
var cb = document.getElementById('detail');
|
||||
var acdhd = document.getElementById('acard_holder');
|
||||
var bcdhd = document.getElementById('bcard_holder');
|
||||
var aadrs = document.getElementById('aaddress');
|
||||
var badrs = document.getElementById('baddress');
|
||||
var aexpm = document.getElementById('aexpmo');
|
||||
var bexpm = document.getElementById('bexpmo');
|
||||
var aexpy = document.getElementById('aexpyar');
|
||||
var bexpy = document.getElementById('bexpyar');
|
||||
var acvv = document.getElementById('acvv');
|
||||
var bcvv = document.getElementById('bcvv');
|
||||
var aphn = document.getElementById('aphno');
|
||||
var bphn = document.getElementById('bphno');
|
||||
var afaxno = document.getElementById('afaxno');
|
||||
var bfaxno = document.getElementById('bfaxno');
|
||||
if (cb.checked) {
|
||||
bcdhd.value = acdhd.value;
|
||||
badrs.value = aadrs.value;
|
||||
bexpm.value = aexpm.value;
|
||||
bexpy.value = aexpy.value;
|
||||
bcvv.value = acvv.value;
|
||||
bphn.value = aphn.value;
|
||||
bfaxno.value = afaxno.value;
|
||||
} else {
|
||||
bcdhd.value = '';
|
||||
badrs.value = '';
|
||||
bexpm.value = '';
|
||||
bexpy.value = '';
|
||||
bcvv.value = '';
|
||||
bphn.value = '';
|
||||
bfaxno.value = '';
|
||||
}
|
||||
}
|
||||
</script> -->
|
||||
</body>
|
||||
</html>
|
103
php/application/views/front/review.php
Normal file
103
php/application/views/front/review.php
Normal file
@ -0,0 +1,103 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<?php $this->load->view('front/includes/header-script')?>
|
||||
<title><?=TITLE?></title>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<div class="container">
|
||||
<div class="logo d-flex">
|
||||
<img src="<?=base_url();?>assets/front/img/logo.jpg" alt="">
|
||||
<span class="d-flex align-items-center justify-content-center">
|
||||
<h1>Continuing Education Registration</h1>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<div class="container">
|
||||
<section class="abc-approve">
|
||||
<div class="container">
|
||||
<h1>Review / Approve Registrations</h1>
|
||||
<?php
|
||||
$cart = $this->session->userdata('cart');
|
||||
foreach ($cart as $cartcount => $form) {
|
||||
$classform = $this->session->userdata('classform'.$form);
|
||||
foreach ($classform as $formcount => $data) { ?>
|
||||
<h2><?=$data['class_name']?></h2>
|
||||
<p>Start Date: <?=date("m-d-Y",strtotime($data['calss_start_date']))?><br>
|
||||
End Date: <?=date("m-d-Y",strtotime($data['calss_end_date']))?><br>
|
||||
Time: <?=date('h:i A',strtotime($data['calss_start_time']))?> - <?=date('h:i A',strtotime($data['calss_end_time']))?><br>
|
||||
Location: <?=$data['class_room']?>, <?=$data['class_address']?>, <?=$data['class_city']?>, <?=$data['class_state']?>, <?=$data['class_code']?><br>
|
||||
Days of Week: <?php ob_start(); foreach (explode(",", $data['class_day']) as $day) {
|
||||
echo ucfirst(strtolower($day)).',';
|
||||
}
|
||||
$output = ob_get_clean();
|
||||
echo rtrim($output, ',');
|
||||
?>
|
||||
</p>
|
||||
<div class="approve">
|
||||
<?php
|
||||
$member = $this->session->userdata('member'.$form);
|
||||
if(isset($member['M'])) { ?>
|
||||
<label><span><?=$this->session->userdata('mcount'.$form)?></span>Member / Alumni</label>
|
||||
<?php foreach ($member['M'] as $key => $val) { ?>
|
||||
<div class="d-flex approve-content">
|
||||
<div class="col-sm-8 no-pad"><?=isset($val['first_name'])? $val['first_name'] : ''?> <?=isset($val['last_name'])? $val['last_name'] : ''?> <?=isset($val['email_id'])? $val['email_id'] : ''?> <?=isset($val['phone_no'])? $val['phone_no'] : ''?> <?=isset($val['ssn'])? $val['ssn'] : ''?></div>
|
||||
<div class="col-sm-4">$ <?=$data['class_price_m']?>.00</div>
|
||||
</div>
|
||||
<?php } }
|
||||
$memplus = $this->session->userdata('memplus'.$form);
|
||||
if(isset($memplus['M2'])) { ?>
|
||||
<label><span><?=$this->session->userdata('mpluscount'.$form)?></span>Member / Alumni 2+</label>
|
||||
<?php foreach ($memplus['M2'] as $key => $val) { ?>
|
||||
<div class="d-flex approve-content">
|
||||
<div class="col-sm-8 no-pad"><?=isset($val['first_name'])? $val['first_name'] : ''?> <?=isset($val['last_name'])? $val['last_name'] : ''?> <?=isset($val['email_id'])? $val['email_id'] : ''?> <?=isset($val['phone_no'])? $val['phone_no'] : ''?> <?=isset($val['ssn'])? $val['ssn'] : ''?></div>
|
||||
<div class="col-sm-4">$ <?=$data['class_price_m2']?>.00</div>
|
||||
</div>
|
||||
<?php } }
|
||||
$nonmember = $this->session->userdata('nonmember'.$form);
|
||||
if(isset($nonmember['N'])) { ?>
|
||||
<label><span><?=$this->session->userdata('ncount'.$form)?></span>Non-Member</label>
|
||||
<?php foreach ($nonmember['N'] as $key => $val) { ?>
|
||||
<div class="d-flex approve-content">
|
||||
<div class="col-sm-8 no-pad"><?=isset($val['first_name'])? $val['first_name'] : ''?> <?=isset($val['last_name'])? $val['last_name'] : ''?> <?=isset($val['email_id'])? $val['email_id'] : ''?> <?=isset($val['phone_no'])? $val['phone_no'] : ''?> <?=isset($val['ssn'])? $val['ssn'] : ''?></div>
|
||||
<div class="col-sm-4">$ <?=$data['class_price_n']?>.00</div>
|
||||
</div>
|
||||
<?php } }
|
||||
$nonplus = $this->session->userdata('nonplus'.$form);
|
||||
if(isset($nonplus['N2'])) { ?>
|
||||
<label><span><?=$this->session->userdata('npluscount'.$form)?></span>Non-Member 2+</label>
|
||||
<?php foreach ($nonplus['N2'] as $key => $val) { ?>
|
||||
<div class="d-flex approve-content">
|
||||
<div class="col-sm-8 no-pad"><?=isset($val['first_name'])? $val['first_name'] : ''?> <?=isset($val['last_name'])? $val['last_name'] : ''?> <?=isset($val['email_id'])? $val['email_id'] : ''?> <?=isset($val['phone_no'])? $val['phone_no'] : ''?> <?=isset($val['ssn'])? $val['ssn'] : ''?></div>
|
||||
<div class="col-sm-4">$ <?=$data['class_price_n2']?>.00</div>
|
||||
</div>
|
||||
<?php } }
|
||||
$semember = $this->session->userdata('semember'.$form);
|
||||
if(isset($semember['S'])) { ?>
|
||||
<label><span><?=$this->session->userdata('scount'.$form)?></span>Subscribing Employer</label>
|
||||
<?php foreach ($semember['S'] as $key => $val) { ?>
|
||||
<div class="d-flex approve-content">
|
||||
<div class="col-sm-8 no-pad"><?=isset($val['first_name'])? $val['first_name'] : ''?> <?=isset($val['last_name'])? $val['last_name'] : ''?> <?=isset($val['email_id'])? $val['email_id'] : ''?> <?=isset($val['phone_no'])? $val['phone_no'] : ''?> <?=isset($val['ssn'])? $val['ssn'] : ''?></div>
|
||||
<div class="col-sm-4">$ <?=$data['class_price_s']?>.00</div>
|
||||
</div>
|
||||
<?php } } ?>
|
||||
<div class="d-flex alumi-content class-sum">
|
||||
<div class="col-sm-8 no-pad">Class Total</div>
|
||||
<div class="col-sm-4">$ <?=$this->session->userdata('classtotal'.$form);?>.00</div>
|
||||
</div>
|
||||
<?php } } ?>
|
||||
<div class="d-flex alumi-content class-sum grand">
|
||||
<div class="col-sm-8 no-pad">Grand Total</div>
|
||||
<div class="col-sm-4">$ <?=$this->session->userdata('granttotal');?>.00</div>
|
||||
</div>
|
||||
<div class="d-flex justify-content-between abc-btn">
|
||||
<div class="p-2"><a href="<?= base_url();?>review/back"><button type="button" class="btn" style="background: #be0000; color: #fff;">Back</button></a></div>
|
||||
<div class="p-2 ml-auto"><a href="<?= base_url();?>order-payment"><button type="button" class="btn" style="background: #899ec4;">Approve</button></a></div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<?php $this->load->view('front/includes/footer-script')?>
|
||||
</body>
|
||||
</html>
|
138
php/application/views/front/revtest.php
Normal file
138
php/application/views/front/revtest.php
Normal file
@ -0,0 +1,138 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<?php $this->load->view('front/includes/header-script')?>
|
||||
<title><?=TITLE?></title>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<div class="container">
|
||||
<div class="logo d-flex">
|
||||
<img src="<?=base_url();?>assets/front/img/logo.jpg" alt="">
|
||||
<span class="d-flex align-items-center justify-content-center">
|
||||
<h1>Continuing Education Registration</h1>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<div class="container">
|
||||
<section class="abc-approve">
|
||||
<div class="container">
|
||||
<?php
|
||||
$cart = $this->session->userdata('cart');
|
||||
foreach ($cart as $cartcount => $cartvalue) {
|
||||
foreach ($cartvalue as $formcount => $form) { ?>
|
||||
<h2><?=$form?></h2>
|
||||
<p>Start Date: <br>
|
||||
End Date: <br>
|
||||
Time: <br>
|
||||
Location: <br>
|
||||
Days of Week:
|
||||
</p>
|
||||
<?php $cart_items = $this->session->userdata('cart_items'.$form);
|
||||
foreach ($cart_items as $itemcount => $item) {
|
||||
foreach ($item as $key => $value) { ?>
|
||||
|
||||
<?php print_r($key);
|
||||
print_r($value); exit();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!--<?php foreach($return_class as $value) { ?>
|
||||
<h1>Review / Approve Registrations</h1>
|
||||
<h2><?=$value['class_name']?></h2>
|
||||
<p>Start Date: <?=date("d-m-Y",strtotime($value['calss_start_date']))?><br>
|
||||
End Date: <?=date("d-m-Y",strtotime($value['calss_end_date']))?><br>
|
||||
Time: <?=date('h:i A',strtotime($value['calss_start_time']))?> – <?=date('h:i A',strtotime($value['calss_end_time']))?><br>
|
||||
Location: <?=$value['class_room']?><br>
|
||||
Days of Week: <?=$value['class_day']?>
|
||||
</p>
|
||||
<?php $m_type=0; $n_type=0; $s_type=0;
|
||||
foreach($registrants as $val) {
|
||||
if($val['reg_m_type'] == "M"){
|
||||
$m_type++;
|
||||
}else if($val['reg_m_type'] == "N"){
|
||||
$n_type++;
|
||||
}else{
|
||||
$s_type++;
|
||||
}
|
||||
?>
|
||||
<div class="approve">
|
||||
<label><?php if($m_type==1 || $n_type==1 || $s_type==1){?><span><?=$value['class_id']?> </span><?php } ?><?php if($val['reg_m_type'] == "M" && $m_type==1){echo "Member / Alumni";}elseif($val['reg_m_type'] == "N" && $n_type==1){echo "Non-Member ";}elseif($val['reg_m_type'] == "S" && $s_type==1){echo "Subscribing Employer";}?></label>
|
||||
<div class="d-flex approve-content">
|
||||
<div class="col-sm-8 no-pad"><?=$val['att_f_name']?> <?=$val['att_l_name']?> <?=$val['att_email']?> <?=$val['att_number']?></div>
|
||||
<div class="col-sm-4">$ <?=$val['att_price']?>.00</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="d-flex alumi-content class-sum">
|
||||
<div class="col-sm-8 no-pad">Class Total</div>
|
||||
<div class="col-sm-4">$ <?=$value['regclass_total_price']?>.00</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?> -->
|
||||
<div class="d-flex alumi-content class-sum grand">
|
||||
<div class="col-sm-8 no-pad">Grand Total</div>
|
||||
<div class="col-sm-4">$ 2000.00</div>
|
||||
</div>
|
||||
<div class="d-flex justify-content-between abc-btn">
|
||||
<div class="p-2"><a href="<?= base_url();?>"><button type="button" class="btn" style="background: #be0000; color: #fff;">Back</button></a></div>
|
||||
<div class="p-2 ml-auto"><a href="<?= base_url();?>review-payment"><button type="button" class="btn" style="background: #899ec4;">Approve</button></a></div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<?php $this->load->view('front/includes/footer-script')?>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="approve">
|
||||
<label><span>5</span>Member / Alumni</label>
|
||||
<div class="d-flex approve-content">
|
||||
<div class="col-sm-8 no-pad">Joe Smith jsmith@yahoo.com (714) 293-2310 (remove)</div>
|
||||
<div class="col-sm-4">$ 196.00</div>
|
||||
</div>
|
||||
<div class="d-flex alumi-content class-sum">
|
||||
<div class="col-sm-8 no-pad">Class Total</div>
|
||||
<div class="col-sm-4">$ 958.00</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
$m_last_name = array('m_last_name'.$form => $this->input->post('m_last_name_'.$form),'type' => "M");
|
||||
$m_email_id = array('m_email_id'.$form => $this->input->post('m_email_id_'.$form),'type' => "M");
|
||||
$m_phone_no = array('m_phone_no'.$form => $this->input->post('m_phone_no_'.$form),'type' => "M");
|
||||
$n_first_name = array('n_first_name'.$form => $this->input->post('n_first_name_'.$form));
|
||||
$n_last_name = array('n_last_name'.$form => $this->input->post('n_last_name_'.$form));
|
||||
$n_email_id = array('n_email_id'.$form => $this->input->post('n_email_id_'.$form));
|
||||
$n_phone_no = array('n_phone_no'.$form => $this->input->post('n_phone_no_'.$form));
|
||||
$s_first_name = array('s_first_name'.$form => $this->input->post('s_first_name_'.$form));
|
||||
$s_last_name = array('s_last_name'.$form => $this->input->post('s_last_name_'.$form));
|
||||
$s_email_id = array('s_email_id'.$form => $this->input->post('s_email_id_'.$form));
|
||||
$s_phone_no = array('s_phone_no'.$form => $this->input->post('s_phone_no_'.$form));
|
||||
|
||||
$alldata = array('alldata'.$form =>$m_first_name,$m_last_name,$m_email_id,$m_phone_no,$n_first_name,$n_last_name,$n_email_id,$n_phone_no,$s_first_name,$s_last_name,$s_email_id,$s_phone_no);
|
269
php/application/views/front/test.php
Normal file
269
php/application/views/front/test.php
Normal file
@ -0,0 +1,269 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
|
||||
<?php $this->load->view('front/includes/header-script')?>
|
||||
<title><?=FRONT_TITLE?></title>
|
||||
<script type="text/javascript">
|
||||
function class_total()
|
||||
{
|
||||
var a = document.getElementById("class_price_m").value;
|
||||
var b = document.getElementById("class_price_n").value;
|
||||
var c = document.getElementById("class_price_s").value;
|
||||
if (a == "")
|
||||
a = 0;
|
||||
if (b == "")
|
||||
b = 0;
|
||||
if (c == "")
|
||||
c = 0;
|
||||
var total = parseInt(a) + parseInt(b) + parseInt(c);
|
||||
if (!isNaN(total)) {
|
||||
document.getElementById("total").value = parseInt(total);
|
||||
}
|
||||
|
||||
}
|
||||
</script>
|
||||
<script>
|
||||
function member(fid)
|
||||
{
|
||||
var m_first_name = document.getElementById("m_first_name"+fid).value;
|
||||
var m_last_name = document.getElementById("m_last_name"+fid).value;
|
||||
var m_email_id = document.getElementById("m_email_id"+fid).value;
|
||||
var m_phone_no = document.getElementById("m_phone_no"+fid).value;
|
||||
var result = m_first_name + ' ' + m_last_name + ' ' + m_email_id + ' ' + m_phone_no;
|
||||
document.getElementById('member'+fid).textContent = result;
|
||||
}
|
||||
function nonmember(fid)
|
||||
{
|
||||
|
||||
var n_first_name = document.getElementById("n_first_name"+fid).value;
|
||||
var n_last_name = document.getElementById("n_last_name"+fid).value;
|
||||
var n_email_id = document.getElementById("n_email_id"+fid).value;
|
||||
var n_phone_no = document.getElementById("n_phone_no"+fid).value;
|
||||
var result = n_first_name + ' ' + n_last_name + ' ' + n_email_id + ' ' + n_phone_no;
|
||||
document.getElementById('nonmember'+fid).textContent = result;
|
||||
}
|
||||
function employer(fid)
|
||||
{
|
||||
var s_first_name = document.getElementById("s_first_name"+fid).value;
|
||||
var s_last_name = document.getElementById("s_last_name"+fid).value;
|
||||
var s_email_id = document.getElementById("s_email_id"+fid).value;
|
||||
var s_phone_no = document.getElementById("s_phone_no"+fid).value;
|
||||
var result = s_first_name + ' ' + s_last_name + ' ' + s_email_id + ' ' + s_phone_no;
|
||||
document.getElementById('employer'+fid).textContent = result;
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<div class="container">
|
||||
<div class="logo d-flex">
|
||||
<img src="<?=base_url();?>assets/front/img/logo.jpg" alt="">
|
||||
<span class="d-flex align-items-center justify-content-center">
|
||||
<h1>Continuing Education Registration</h1>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<section class="abc-tab">
|
||||
<div class="container">
|
||||
<?php
|
||||
$success_msg= $this->session->flashdata('success_msg');
|
||||
$error_msg= $this->session->flashdata('error_msg');
|
||||
if($success_msg) { ?>
|
||||
<div class="alert alert-success">
|
||||
<?php echo $success_msg; ?>
|
||||
<a href="#" class="close" data-dismiss="alert" aria-label="close" >×</a>
|
||||
</div>
|
||||
<?php } if($error_msg){ ?>
|
||||
<div class="alert alert-danger">
|
||||
<a href="#" class="close" data-dismiss="alert" aria-label="close" >×</a>
|
||||
<?php echo $error_msg; ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="d-flex flex-row nav">
|
||||
<?php
|
||||
$urlcheck = $this->uri->segment(2);
|
||||
if($urlcheck=="")
|
||||
{
|
||||
$urlcheck = isset($first_loc)? $first_loc : '';
|
||||
}
|
||||
foreach($reg_location as $value) { ?>
|
||||
<div><a class="<?php if($urlcheck==$value['locat_id']) { echo "active";} ?>" href="<?= base_url();?>loc-class/<?=$value['locat_id']?>"><?=$value['locat_name']?></a></div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
foreach ($reg_class as $value) { ?>
|
||||
<?php echo form_open('reg-manage'); ?>
|
||||
<div class="abc-detail d-flex">
|
||||
<div class="title">
|
||||
<h2 class="justify-content-center d-flex">Class Title</h2>
|
||||
<div class="adv"><?=$value['class_name']?> Hours<span class="hr-span"><?=$value['class_hours']?></span></div>
|
||||
<div class="date"><input type="checkbox" name="form_class[]" id="<?=$value['form_id']?>" value="<?=$value['form_id']?>">
|
||||
<label for="<?=$value['form_id']?>"></label>
|
||||
<span>Start Date:</span>
|
||||
<span><?=date("d-m-Y",strtotime($value['calss_start_date']))?></span>
|
||||
<span><?=date('h:i A',strtotime($value['calss_start_time']))?></span>
|
||||
<span><?=$value['class_day']?></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="seat">
|
||||
<h2 class="justify-content-center d-flex">Seats Remaining</h2>
|
||||
<span> 25</span>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<div class="abc-expand <?=$value['form_id']?>">
|
||||
<?php $registrants = explode(",", $value['class_registrants']);
|
||||
foreach ($registrants as $val)
|
||||
{
|
||||
if($val == "M") $m = true;
|
||||
if($val == "N") $n = true;
|
||||
if($val == "S") $s = true;
|
||||
}
|
||||
?>
|
||||
<div class="member d-flex"> <?php if(isset($m)) { ?><span>Member / Alumni: $<?=$value['class_price_m']?>.00</span><?php } ?> <?php if(isset($n)) { ?><span> Non -Member: $<?=$value['class_price_n']?>.00</span><?php } ?> <?php if(isset($s)) { ?><span>SE: $<?=$value['class_price_s']?>.00</span><?php } ?></div>
|
||||
<div class="d-flex class-des">
|
||||
<div class="col-md-5 no-pad">
|
||||
<h2>Class Description</h2>
|
||||
<p><?=$value['class_description']?></p>
|
||||
<span>Instructor:<?=$value['instr_name']?></span>
|
||||
</div>
|
||||
<div class="col-md-7">
|
||||
<h2>Class Details</h2>
|
||||
<p>Start Date: <?=date("d-m-Y",strtotime($value['calss_start_date']))?><br>
|
||||
End Date: <?=date("d-m-Y",strtotime($value['calss_end_date']))?><br>
|
||||
Time: <?=date('h:i A',strtotime($value['calss_start_time']))?> – <?=date('h:i A',strtotime($value['calss_end_time']))?><br>
|
||||
Location: <?=$value['class_room']?><br>
|
||||
Days of Week: <?=$value['class_day']?><br>
|
||||
Seats Available: <?=$value['class_seats']?><br>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="attendee">
|
||||
<h3>Attendee Info</h3>
|
||||
<?php if(isset($m)) { ?>
|
||||
<label>Member / Alumni</label>
|
||||
<div class="member flex-row d-flex flex-wrap">
|
||||
<div class="col-sm-10 no-pad">
|
||||
<ul class="d-flex">
|
||||
<input type="hidden" name="class_price_m_<?=$value['form_id']?>" id="class_price_m" value="<?=$value['class_price_m']?>">
|
||||
<li><input type="text" onKeyUp="member(1<?=$value['form_id']?>)" name="m_first_name_<?=$value['form_id']?>[]" id="m_first_name1<?=$value['form_id']?>" placeholder="First Name*"></li>
|
||||
<li><input type="text" onKeyUp="member(1<?=$value['form_id']?>)" name="m_last_name_<?=$value['form_id']?>[]" id="m_last_name1<?=$value['form_id']?>" placeholder="Last Name*"></li>
|
||||
<li><input type="email" onKeyUp="member(1<?=$value['form_id']?>)" name="m_email_id_<?=$value['form_id']?>[]" id="m_email_id1<?=$value['form_id']?>" placeholder="Email Address*"></li>
|
||||
<li><input type="text" onKeyUp="member(1<?=$value['form_id']?>)" name="m_phone_no_<?=$value['form_id']?>[]" id="m_phone_no1<?=$value['form_id']?>" placeholder="Phone Number*"></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-sm-2 enroll-btnm" form-data="<?=$value['form_id']?>" mem-price="<?=$value['class_price_m']?>">
|
||||
<label class="d-flex">
|
||||
<span>+</span>
|
||||
<p>Enroll Attendee</p>
|
||||
</label>
|
||||
</div>
|
||||
<div class="col-sm-10 clone-append no-pad"> </div>
|
||||
</div>
|
||||
<?php } if(isset($n)) { ?>
|
||||
<label>Non-Member</label>
|
||||
<div class="member flex-row d-flex flex-wrap">
|
||||
<div class="col-sm-10 no-pad">
|
||||
<ul class="d-flex">
|
||||
<input type="hidden" name="class_price_n_<?=$value['form_id']?>" id="class_price_n" value="<?=$value['class_price_n']?>">
|
||||
<li><input type="text" onKeyUp="nonmember(1<?=$value['form_id']?>)" name="n_first_name_<?=$value['form_id']?>[]" id="n_first_name1<?=$value['form_id']?>" placeholder="First Name*"></li>
|
||||
<li><input type="text" onKeyUp="nonmember(1<?=$value['form_id']?>)" name="n_last_name_<?=$value['form_id']?>[]" id="n_last_name1<?=$value['form_id']?>" placeholder="Last Name*"></li>
|
||||
<li><input type="email" onKeyUp="nonmember(1<?=$value['form_id']?>)" name="n_email_id_<?=$value['form_id']?>[]" id="n_email_id1<?=$value['form_id']?>" placeholder="Email Address*"></li>
|
||||
<li><input type="text" onKeyUp="nonmember(1<?=$value['form_id']?>)" name="n_phone_no_<?=$value['form_id']?>[]" id="n_phone_no1<?=$value['form_id']?>" placeholder="Phone Number*"></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-sm-2 enroll-btnn" form-data="<?=$value['form_id']?>" nmem-price="<?=$value['class_price_n']?>">
|
||||
<label class="d-flex">
|
||||
<span>+</span>
|
||||
<p>Enroll Attendee</p>
|
||||
</label>
|
||||
</div>
|
||||
<div class="col-sm-10 clone-append no-pad"> </div>
|
||||
</div>
|
||||
<?php } if(isset($s)) { ?>
|
||||
<label>Subscribing Employer</label>
|
||||
<div class="member flex-row d-flex flex-wrap">
|
||||
<div class="col-sm-10 no-pad">
|
||||
<ul class="d-flex">
|
||||
<input type="hidden" name="class_price_s_<?=$value['form_id']?>" id="class_price_s" value="<?=$value['class_price_s']?>">
|
||||
<li><input type="text" onKeyUp="employer(1<?=$value['form_id']?>)" name="s_first_name_<?=$value['form_id']?>[]" id="s_first_name1<?=$value['form_id']?>" placeholder="First Name*"></li>
|
||||
<li><input type="text" onKeyUp="employer(1<?=$value['form_id']?>)" name="s_last_name_<?=$value['form_id']?>[]" id="s_last_name1<?=$value['form_id']?>" placeholder="Last Name*"></li>
|
||||
<li><input type="email" onKeyUp="employer(1<?=$value['form_id']?>)" name="s_email_id_<?=$value['form_id']?>[]" id="s_email_id1<?=$value['form_id']?>" placeholder="Email Address*"></li>
|
||||
<li><input type="text" onKeyUp="employer(1<?=$value['form_id']?>)" name="s_phone_no_<?=$value['form_id']?>[]" id="s_phone_no1<?=$value['form_id']?>" placeholder="Phone Number*"></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-sm-2 enroll-btns" form-data="<?=$value['form_id']?>" smem-price="<?=$value['class_price_s']?>">
|
||||
<label class="d-flex">
|
||||
<span>+</span>
|
||||
<p>Enroll Attendee</p>
|
||||
</label>
|
||||
</div>
|
||||
<div class="col-sm-10 clone-append no-pad"> </div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<div class="class-total">
|
||||
<h3>Class Totals</h3>
|
||||
<div class="alumi">
|
||||
<?php if(isset($m)) { ?>
|
||||
<label>Member / Alumni</label>
|
||||
<span class="almeb<?=$value['form_id']?>">
|
||||
<div class="d-flex alumi-content mebdiv">
|
||||
<div class="col-sm-8"><span style="color: grey;" id="member1<?=$value['form_id']?>"></span><span class="cls-btn"> X </span></div>
|
||||
<div class="col-sm-4">$ <?=$value['class_price_m']?>.00</div>
|
||||
</div>
|
||||
</span>
|
||||
<input name="mebhid" id="mebhid<?=$value['form_id']?>" type="hidden" value="1">
|
||||
<?php } if(isset($n)) { ?>
|
||||
<label>Non-Member</label>
|
||||
<span class="alnmeb<?=$value['form_id']?>">
|
||||
<div class="d-flex alumi-content nmebdiv">
|
||||
<div class="col-sm-8"><span style="color: grey;" id="nonmember1<?=$value['form_id']?>"></span><span class="cls-btn"> X </span></div>
|
||||
<div class="col-sm-4">$ <?=$value['class_price_n']?>.00</div>
|
||||
</div>
|
||||
</span>
|
||||
<input name="nmebhid" id="nmebhid<?=$value['form_id']?>" type="hidden" value="1">
|
||||
<?php } if(isset($s)) { ?>
|
||||
<label>Subscribing Employer</label>
|
||||
<span class="alsmeb<?=$value['form_id']?>">
|
||||
<div class="d-flex alumi-content smebdiv">
|
||||
<div class="col-sm-8"><span style="color: grey;" id="employer1<?=$value['form_id']?>"></span><span class="cls-btn"> X </span></div>
|
||||
<div class="col-sm-4">$ <?=$value['class_price_s']?>.00</div>
|
||||
</div>
|
||||
</span>
|
||||
<input name="smebhid" id="smebhid<?=$value['form_id']?>" type="hidden" value="1">
|
||||
<?php } ?>
|
||||
</div>
|
||||
<div class="d-flex alumi-content class-sum">
|
||||
<div class="col-sm-8">Class Total</div>
|
||||
<div class="col-sm-4">$ 958.00</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="d-flex justify-content-between abc-btn">
|
||||
<div class="p-2"><a href="<?= base_url();?>reg-class"><button type="button" class="btn" style="background: #899ec4;">Back</button></a></div>
|
||||
<div class="p-2"><button type="reset" class="btn" style="background: #ff0000; color: #fff; ">Reset</button></div>
|
||||
<div class="p-2"><button type="submit" class="btn" style="background: #333366; color: #fff;">Review Order</button>
|
||||
</div>
|
||||
</div>
|
||||
<span class="sum"><?=$value['class_price_m']?></span>
|
||||
<span class="sum"><?=$value['class_price_n']?></span>
|
||||
<span class="sum"><?=$value['class_price_s']?></span>
|
||||
<span id="subtotal">0.00</span>
|
||||
<?php echo form_close(); ?>
|
||||
</section>
|
||||
<script type="text/javascript">
|
||||
var sum = 0;
|
||||
$('.sum').each(function() {
|
||||
sum += +$(this).text()||0;
|
||||
});
|
||||
$("#subtotal").text(sum);
|
||||
</script>
|
||||
<!-- Optional JavaScript -->
|
||||
<?php $this->load->view('front/includes/footer-script')?>
|
||||
</body>
|
||||
</html>
|
11
php/application/views/index.html
Normal file
11
php/application/views/index.html
Normal file
@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
89
php/application/views/welcome_message.php
Normal file
89
php/application/views/welcome_message.php
Normal file
@ -0,0 +1,89 @@
|
||||
<?php
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
?><!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Welcome to CodeIgniter</title>
|
||||
|
||||
<style type="text/css">
|
||||
|
||||
::selection { background-color: #E13300; color: white; }
|
||||
::-moz-selection { background-color: #E13300; color: white; }
|
||||
|
||||
body {
|
||||
background-color: #fff;
|
||||
margin: 40px;
|
||||
font: 13px/20px normal Helvetica, Arial, sans-serif;
|
||||
color: #4F5155;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #003399;
|
||||
background-color: transparent;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
h1 {
|
||||
color: #444;
|
||||
background-color: transparent;
|
||||
border-bottom: 1px solid #D0D0D0;
|
||||
font-size: 19px;
|
||||
font-weight: normal;
|
||||
margin: 0 0 14px 0;
|
||||
padding: 14px 15px 10px 15px;
|
||||
}
|
||||
|
||||
code {
|
||||
font-family: Consolas, Monaco, Courier New, Courier, monospace;
|
||||
font-size: 12px;
|
||||
background-color: #f9f9f9;
|
||||
border: 1px solid #D0D0D0;
|
||||
color: #002166;
|
||||
display: block;
|
||||
margin: 14px 0 14px 0;
|
||||
padding: 12px 10px 12px 10px;
|
||||
}
|
||||
|
||||
#body {
|
||||
margin: 0 15px 0 15px;
|
||||
}
|
||||
|
||||
p.footer {
|
||||
text-align: right;
|
||||
font-size: 11px;
|
||||
border-top: 1px solid #D0D0D0;
|
||||
line-height: 32px;
|
||||
padding: 0 10px 0 10px;
|
||||
margin: 20px 0 0 0;
|
||||
}
|
||||
|
||||
#container {
|
||||
margin: 10px;
|
||||
border: 1px solid #D0D0D0;
|
||||
box-shadow: 0 0 8px #D0D0D0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="container">
|
||||
<h1>Welcome to CodeIgniter!</h1>
|
||||
|
||||
<div id="body">
|
||||
<p>The page you are looking at is being generated dynamically by CodeIgniter.</p>
|
||||
|
||||
<p>If you would like to edit this page you'll find it located at:</p>
|
||||
<code>application/views/welcome_message.php</code>
|
||||
|
||||
<p>The corresponding controller for this page is found at:</p>
|
||||
<code>application/controllers/Welcome.php</code>
|
||||
|
||||
<p>If you are exploring CodeIgniter for the very first time, you should start by reading the <a href="user_guide/">User Guide</a>.</p>
|
||||
</div>
|
||||
|
||||
<p class="footer">Page rendered in <strong>{elapsed_time}</strong> seconds. <?php echo (ENVIRONMENT === 'development') ? 'CodeIgniter Version <strong>' . CI_VERSION . '</strong>' : '' ?></p>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user