Moved to PHP folder
This commit is contained in:
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>
|
Reference in New Issue
Block a user