Commit f2248571 by Manoj

changes

parent af7b2a03
<?php
$config['protocol'] = 'smtp';
$config['smtp_host'] = 'smtp-relay.sendinblue.com';
$config['smtp_port'] = '587';
$config['smtp_user'] = 'apps@alphasoftz.com';
$config['smtp_pass'] = 'n0FGsvh2fBpC3xKr';
$config['charset'] = 'utf-8';
$config['mailtype'] = 'html';
$config['newline'] = "\r\n";
$config['validation'] = true;
\ No newline at end of file
<!-- <!DOCTYPE html>
<html>
<head>
</head>
<body>
<h5>Dear <?= $name; ?>,</h5>
<h4>Your OTP for registration is <?= $otp ?> - From Asian College of Journalism.</h4>
<center>-----------------------</center><br>
<center>Use this OTP to complete your registration.</center>
</body>
</html> -->
<!doctype html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Asian Mail</title>
<style>
.txt {
position: relative;
left: 15px;
top: 15px;
}
@media only screen and (max-width: 620px) {
table.body h1 {
font-size: 28px !important;
margin-bottom: 10px !important;
}
table.body p,
table.body ul,
table.body ol,
table.body td,
table.body span,
table.body a {
font-size: 16px !important;
}
table.body .wrapper,
table.body .article {
padding: 10px !important;
}
table.body .content {
padding: 0 !important;
}
table.body .container {
padding: 0 !important;
width: 100% !important;
}
table.body .main {
border-left-width: 0 !important;
border-radius: 0 !important;
border-right-width: 0 !important;
}
table.body .btn table {
width: 100% !important;
}
table.body .btn a {
width: 100% !important;
}
table.body .img-responsive {
height: auto !important;
max-width: 100% !important;
width: auto !important;
}
}
@media all {
.ExternalClass {
width: 100%;
}
.ExternalClass,
.ExternalClass p,
.ExternalClass span,
.ExternalClass font,
.ExternalClass td,
.ExternalClass div {
line-height: 100%;
}
.apple-link a {
color: inherit !important;
font-family: inherit !important;
font-size: inherit !important;
font-weight: inherit !important;
line-height: inherit !important;
text-decoration: none !important;
}
#MessageViewBody a {
color: inherit;
text-decoration: none;
font-size: inherit;
font-family: inherit;
font-weight: inherit;
line-height: inherit;
}
.btn-primary table td:hover {
background-color: #34495e !important;
}
.btn-primary a:hover {
background-color: #34495e !important;
border-color: #34495e !important;
}
}
</style>
</head>
<body style="background-color: #73a554; font-family: sans-serif; -webkit-font-smoothing: antialiased; font-size: 14px; line-height: 1.4; margin: 0; padding: 0; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;">
<span class="preheader" style="color: transparent; display: none; height: 0; max-height: 0; max-width: 0; opacity: 0; overflow: hidden; mso-hide: all; visibility: hidden; width: 0;"></span>
<table role="presentation" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; background-color: #f6f6f6; width: 100%; border: 1px solid black;" width="100%" bgcolor="#f6f6f6">
<tr>
<td colspan="3">
<center style="background:white;">
<br /><br />
</center>
</td>
</tr>
<tr style="background: white;">
<td colspan="3">
<center>
<img style="width:26%" src="<?php echo base_url(); ?>assets/images/logo.png" alt="Asian College of Journalism">
</center>
</td>
</tr>
<tr style="background: white;">
<td style="font-family: sans-serif; font-size: 14px; vertical-align: top;" valign="top">&nbsp;</td>
<td class="container" style="font-family: sans-serif; font-size: 14px; vertical-align: top; display: block; max-width: 580px; padding: 10px; width: 580px; margin: 0 auto;" width="580" valign="top">
<div class="content" style="box-sizing: border-box; display: block; margin: 0 auto; max-width: 580px; padding: 10px;">
<?php $actionname = array('', 'Not Interested', 'Not Answered', 'Call Later', 'Need More Details', 'Converted as Prospect', 'Disqualified', 'Lead Created', 'Lead Imported', 'Assigned', 'Lead Updated', 'Yet to Follow'); ?>
<!-- START CENTERED WHITE CONTAINER -->
<table role="presentation" class="main" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; background: #ffffff; border-radius: 3px; width: 100%;" width="100%">
<!-- START MAIN CONTENT AREA -->
<tr>
<td class="wrapper" style="font-family: sans-serif; font-size: 14px; vertical-align: top; box-sizing: border-box; " valign="top">
<table role="presentation" border="0" cellpadding="0" cellspacing="0" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%;" width="100%">
<tr>
<td style="font-family: sans-serif; font-size: 14px; vertical-align: top;" valign="top">
<div class="card">
<p>Dear <?= $name; ?>, <br>
<br>
<p>Your application form has been successfully submitted for the <?= $course_id==1 ? 'Postgraduate Diploma in Integrated
Multimedia Journalism of the Asian College of Journalism' : ($course_id==2 ? 'Postgraduate Diploma in Business and
Financial Multimedia Journalism of the Asian College of Journalism' : ' both Postgraduate Diploma in Integrated
Multimedia Journalism and Postgraduate Diploma in Business and Financial Multimedia
Journalism of the Asian College of Journalism' )?> .</p><br>
<b>Note </b>
<p>Application Forms will be processed only if they are complete in all respects and on receipt
of the application fee.</p><br>
<b>Entrance Test & Interview</b><br>
<p>After a careful assessment of applications, shortlisted candidates will be required to take an
entrance test held online in real time. Candidates can take the test individually in their
homes or at any place where they have access to a computer with internet facility.
Candidates applying for either or both of the programmes will be informed within a week of receipt of the completed application, about </p>
<p>a) the date and time of the online test, and<br>
b) date and time of the online interview to follow.</p>
<p>The test and interview will assess the candidate’s English language skills, general knowledge
and awareness of current affairs.</p>
<p>Candidates who seek counselling on the two postgraduate diploma programmes may please
call 91-44-22542842/43/44/45 or email acjadmissions@asianmedia.org.in They will be
referred to the appropriate member/s of the faculty who can assist them.</p>
<b>Candidates selected for admission will receive an email within a week of the
completion of the online interview.</b>
</div>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="left" style="padding: 20px;">
<b>Best wishes, </b><br><br>
Admission Team<br>
Asian College of Journalism<br>
Second Main Road<br>
Taramani, Chennai – 600 113<br>
Ph: 91-44-22542842/43/44/45<br>
Email: acjadmissions@asianmedia.org.in
</td>
</tr>
<!-- END MAIN CONTENT AREA -->
</table>
<!-- END CENTERED WHITE CONTAINER -->
<!-- START FOOTER -->
<div class="footer" style="clear: both; margin-top: 10px; text-align: center; width: 100%;">
<table role="presentation" border="0" cellpadding="0" cellspacing="0" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%;" width="100%">
<tr>
<td class="content-block" style="font-family: sans-serif; vertical-align: top; padding-bottom: 10px; padding-top: 10px; color: #999999; font-size: 12px; text-align: center;" valign="top" align="center">
<span class="apple-link" style="color: #999999; font-size: 12px; text-align: center;">Powered by Asian College of Journalism</span>
<!-- <br> Don't like these emails? <a href="#" style="text-decoration: underline; color: #999999; font-size: 12px; text-align: center;">Unsubscribe</a>. -->
</td>
</tr>
</table>
</div>
<!-- END FOOTER -->
</div>
</td>
<td style="font-family: sans-serif; font-size: 14px; vertical-align: top;" valign="top">&nbsp;</td>
</tr>
</table>
</body>
</html>
\ No newline at end of file
<!-- <!DOCTYPE html>
<html>
<head>
</head>
<body>
<h5>Dear <?= $name; ?>,</h5>
<h4>Your OTP for registration is <?= $otp ?> - From Asian College of Journalism.</h4>
<center>-----------------------</center><br>
<center>Use this OTP to complete your registration.</center>
</body>
</html> -->
<!doctype html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Asian Mail</title>
<style>
.txt {
position: relative;
left: 15px;
top: 15px;
}
@media only screen and (max-width: 620px) {
table.body h1 {
font-size: 28px !important;
margin-bottom: 10px !important;
}
table.body p,
table.body ul,
table.body ol,
table.body td,
table.body span,
table.body a {
font-size: 16px !important;
}
table.body .wrapper,
table.body .article {
padding: 10px !important;
}
table.body .content {
padding: 0 !important;
}
table.body .container {
padding: 0 !important;
width: 100% !important;
}
table.body .main {
border-left-width: 0 !important;
border-radius: 0 !important;
border-right-width: 0 !important;
}
table.body .btn table {
width: 100% !important;
}
table.body .btn a {
width: 100% !important;
}
table.body .img-responsive {
height: auto !important;
max-width: 100% !important;
width: auto !important;
}
}
@media all {
.ExternalClass {
width: 100%;
}
.ExternalClass,
.ExternalClass p,
.ExternalClass span,
.ExternalClass font,
.ExternalClass td,
.ExternalClass div {
line-height: 100%;
}
.apple-link a {
color: inherit !important;
font-family: inherit !important;
font-size: inherit !important;
font-weight: inherit !important;
line-height: inherit !important;
text-decoration: none !important;
}
#MessageViewBody a {
color: inherit;
text-decoration: none;
font-size: inherit;
font-family: inherit;
font-weight: inherit;
line-height: inherit;
}
.btn-primary table td:hover {
background-color: #34495e !important;
}
.btn-primary a:hover {
background-color: #34495e !important;
border-color: #34495e !important;
}
}
</style>
</head>
<body style="background-color: #73a554; font-family: sans-serif; -webkit-font-smoothing: antialiased; font-size: 14px; line-height: 1.4; margin: 0; padding: 0; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;">
<span class="preheader" style="color: transparent; display: none; height: 0; max-height: 0; max-width: 0; opacity: 0; overflow: hidden; mso-hide: all; visibility: hidden; width: 0;"></span>
<table role="presentation" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; background-color: #f6f6f6; width: 100%; border: 1px solid black;" width="100%" bgcolor="#f6f6f6">
<tr>
<td colspan="3">
<center style="background:white;">
<br /><br />
</center>
</td>
</tr>
<tr style="background: white;">
<td colspan="3">
<center>
<img style="width:26%" src="<?php echo base_url(); ?>assets/images/logo.png" alt="Asian College of Journalism">
</center>
</td>
</tr>
<tr style="background: white;">
<td style="font-family: sans-serif; font-size: 14px; vertical-align: top;" valign="top">&nbsp;</td>
<td class="container" style="font-family: sans-serif; font-size: 14px; vertical-align: top; display: block; max-width: 580px; padding: 10px; width: 580px; margin: 0 auto;" width="580" valign="top">
<div class="content" style="box-sizing: border-box; display: block; margin: 0 auto; max-width: 580px; padding: 10px;">
<?php $actionname = array('', 'Not Interested', 'Not Answered', 'Call Later', 'Need More Details', 'Converted as Prospect', 'Disqualified', 'Lead Created', 'Lead Imported', 'Assigned', 'Lead Updated', 'Yet to Follow'); ?>
<!-- START CENTERED WHITE CONTAINER -->
<table role="presentation" class="main" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; background: #ffffff; border-radius: 3px; width: 100%;" width="100%">
<!-- START MAIN CONTENT AREA -->
<tr>
<td class="wrapper" style="font-family: sans-serif; font-size: 14px; vertical-align: top; box-sizing: border-box; " valign="top">
<table role="presentation" border="0" cellpadding="0" cellspacing="0" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%;" width="100%">
<tr>
<td style="font-family: sans-serif; font-size: 14px; vertical-align: top;" valign="top">
<div class="card">
<p>Dear <?= $name; ?>, <br>
<br>
<p>We have received your application form for the <?= $course_id == 1 ? 'Postgraduate Diploma in Integrated
Multimedia Journalism of the Asian College of Journalism' : ($course_id == 2 ? 'Postgraduate Diploma in Business and
Financial Multimedia Journalism of the Asian College of Journalism' : ' both Postgraduate Diploma in Integrated
Multimedia Journalism and Postgraduate Diploma in Business and Financial Multimedia
Journalism of the Asian College of Journalism') ?> , but we have not yet received the
application fee. Please use this link to complete the payment
https://application.asianmedia.in/login ( or ) </p> <br>
<center>
<a href="<?php echo base_url(); ?>WithoutAuthPay/pendingPayment?id=<?= $userId ? $userId : 0 ?>" style="padding:6px 12px;font-size:14px;border-radius:4px;background-color:#f0ad4e;color:white;text-decoration:none">Pay Now</a>
</center>
<b>Note </b>
<p>Application Forms will be processed only if they are complete in all respects and on receipt
of the application fee.</p><br>
<b>Entrance Test & Interview</b><br>
<p>After a careful assessment of applications, shortlisted candidates will be required to take an
entrance test held online in real time. Candidates can take the test individually in their
homes or at any place where they have access to a computer with internet facility.
Candidates applying for either or both of the programmes will be informed within a week of receipt of the completed application, about </p>
<p>a) the date and time of the online test, and<br>
b) date and time of the online interview to follow.</p>
<p>The test and interview will assess the candidate’s English language skills, general knowledge
and awareness of current affairs.</p>
<p>Candidates who seek counselling on the two postgraduate diploma programmes may please
call 91-44-22542842/43/44/45 or email acjadmissions@asianmedia.org.in They will be
referred to the appropriate member/s of the faculty who can assist them.</p>
<b>Candidates selected for admission will receive an email within a week of the
completion of the online interview.</b>
</div>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="left" style="padding: 20px;">
<b>Best wishes, </b><br><br>
Admission Team<br>
Asian College of Journalism<br>
Second Main Road<br>
Taramani, Chennai – 600 113<br>
Ph: 91-44-22542842/43/44/45<br>
Email: acjadmissions@asianmedia.org.in
</td>
</tr>
<!-- END MAIN CONTENT AREA -->
</table>
<!-- END CENTERED WHITE CONTAINER -->
<!-- START FOOTER -->
<div class="footer" style="clear: both; margin-top: 10px; text-align: center; width: 100%;">
<table role="presentation" border="0" cellpadding="0" cellspacing="0" style="border-collapse: separate; mso-table-lspace: 0pt; mso-table-rspace: 0pt; width: 100%;" width="100%">
<tr>
<td class="content-block" style="font-family: sans-serif; vertical-align: top; padding-bottom: 10px; padding-top: 10px; color: #999999; font-size: 12px; text-align: center;" valign="top" align="center">
<span class="apple-link" style="color: #999999; font-size: 12px; text-align: center;">Powered by Asian College of Journalism</span>
</td>
<td class="content-block" style="font-family: sans-serif; vertical-align: top; padding-bottom: 10px; padding-top: 10px; color: #999999; font-size: 12px; text-align: center;" valign="top" align="center">
</td>
</tr>
</table>
</div>
<!-- END FOOTER -->
</div>
</td>
<td style="font-family: sans-serif; font-size: 14px; vertical-align: top;" valign="top">&nbsp;</td>
</tr>
</table>
</body>
</html>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -38,7 +38,7 @@
<!-- Button trigger modal -->
<button type="button" class="btn btn-primary" id="open-modal">
+ New Add Faculty
+ New Faculty
</button>
</div>
</div>
......@@ -69,7 +69,9 @@
<td><?= $row->f_email; ?></td>
<td><?= $row->f_mobile; ?></td>
<td>
<a href="<?= base_url('ApplicationController/edit/' . $row->id) ?>" class="btn-sm btn-info"><i class="ti-pencil-alt"></i></a>
<a data-toggle="tooltip" id="edit" data-placement="top" title="Edit" data-original-title="Edit" onclick="edit('<?php echo $row->id; ?>', '<?php echo $row->fees; ?>', '<?php echo $row->course; ?>')" class="btn btn-sm btn-info"><i class="ti ti-pencil"></i></a>
<!-- <a href="<?= base_url('ApplicationController/edit/' . $row->id) ?>" class="btn-sm btn-info"><i class="ti-pencil-alt"></i></a> -->
<a href="<?= base_url('ApplicationController/delete/' . $row->id) ?>" class="btn-sm btn-danger"><i class="ti-trash"></i></a>
</td>
......@@ -92,54 +94,92 @@
<!-- Modal -->
<div class="modal fade" id="tutionModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-center">
<div class="modal-dialog modal-dialog-center modal-lg">
<div class="modal-content">
<div class="modal-header">
<h1 class="modal-title fs-5" id="exampleModalLabel">Add Tution Fee </h1>
<h1 class="modal-title fs-5" id="exampleModalLabel">Add Faculty </h1>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<form method="POST" id="tutionForm" action="<?php echo base_url('ApplicationController/addEditTutionFees'); ?>">
<input type="hidden" id='id' name='id'>
<div class="form-group">
<label class="tx-medium">Course <span class="text-danger">*</span></label>
<select name="courseId" id="courseId" class="form-control select2">
<option value="">--Select--</option>
<?php foreach ($courses as $row) { ?>
<option value="<?php echo $row->id ?>"> <?php echo $row->course_name ?></option>
<?php } ?>
</select>
<!-- <p class="text-danger mt-2" id="course_name_err"></p> -->
<form action="<?php echo base_url(); ?>ApplicationController/store" method="post" enctype="multipart/form-data" id="registration_form">
<div class="row">
<div class="form-group col-md-6">
<label>Name</label>
<input type="text" class="form-control" name="facultyname" placeholder="name" required>
</div>
<div class="form-group">
<label class="tx-medium">Tution Category <span class="text-danger">*</span></label>
<select name="tutionId" id="tutionId" class="form-control select2">
<option value="">--Select--</option>
<?php foreach ($tution as $row) { ?>
<option value="<?php echo $row->id ?>"> <?php echo $row->tution_name ?></option>
<?php } ?>
</select>
<!-- <p class="text-danger mt-2" id="tution_name_err"></p> -->
<div class="form-group col-md-6">
<label>Mobile</label>
<input name="mobile" id="mobile" type="number" class="form-control" placeholder="Mobile_number" value="<?php echo (isset($_POST[''])) ? $_POST[''] : ''; ?>" required>
<?php if ($this->session->flashdata('mobile')) : ?>
<span style="color: red;"><?= $this->session->flashdata('mobile') ?></span>
<?php unset($_SESSION['mobile']); ?>
<?php endif; ?>
</div>
<div class="form-group">
<label class="tx-medium">Tution Fees <span class="text-danger">*</span> </label>
<input type="number" class="form-control" id="fees" name="fees" placeholder="Tution Fees">
<!-- <p class="text-danger mt-2" id="fees_err"></p> -->
<div class="form-group col-md-6">
<label>Email</label>
<input name="email" id="email" type="email" class="form-control" placeholder="Email" value="<?php echo (isset($_POST[''])) ? $_POST[''] : ''; ?>" required>
<?php if (form_error('email')) { ?>
<div id="summernote" class="alert alert-danger alert-dismissible fade show" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<?php echo form_error('email'); ?>
</div>
<?php } ?>
</div>
<div class="modal-footer">
<button type="submit" class="btn ripple btn-primary" id="save">Save</button>
<button type="button" class="btn ripple btn-secondary" id="closemodel" data-bs-dismiss="modal">Close</button>
<div class="form-group col-md-6">
<label for="login_pass" class="form_label">Password</label>
<div class="control">
<input type="password" name="password" id="login_pass" class="form-control password" autocomplete="off" placeholder="Password" />
<span class="input-group-text">
<i class="eye showPwd1"></i>
</span>
<?php if (form_error('password')) {?>
<div class="alert alert-danger alert-dismissible fade show pb-0 mt-1" role="alert">
<?php echo form_error('password'); ?>
</div>
<?php }?>
</div>
</div>
<div class="form-group col-md-6">
<label for="login_pass" class="form_label">confirm Password</label>
<div class="control">
<!-- <input type="password" name="Password" id="login_pass" class="form-control password" autocomplete="off" placeholder="Enter password" /> -->
<input type="password" name="c_password" id="login_pass2" class="form-control password2" autocomplete="off" placeholder="Confirm password" />
<span class="input-group-text">
<i class="eye showPwd2"></i>
</span>
<?php if (form_error('c_password')) {?>
<div class="alert alert-danger alert-dismissible fade show pb-0 mt-1" role="alert">
<?php echo form_error('c_password'); ?>
</div>
<?php }?>
</div>
</div>
<div class="form-group mt-3 col-md-4">
<div class="">
<button name="submit" type="submit" class="btn btn-primary waves-effect waves-light mr-1">
Submit
</button>
<a href="<?php echo base_url('ApplicationController/faculty'); ?>" class="btn btn-secondary waves-effect">Cancel </a>
</div>
</div>
</form>
</div>
</form>
</div>
</div>
</div>
......@@ -212,4 +252,42 @@
$("#statusModal").hide();
});
let pwd1 = document.getElementById('login_pass'),
eye1 = document.querySelector('.showPwd1');
eye1.addEventListener('click', function() {
toggleType1();
})
function toggleType1() {
if (eye1.classList.contains('closed')) {
pwd1.type = 'password';
} else {
pwd1.type = 'text';
}
eye1.classList.toggle('closed');
}
//end of password toggle
//start of confirm password toggle
let pwd2 = document.getElementById('login_pass2');
eye2 = document.querySelector('.showPwd2');
eye2.addEventListener('click', function() {
toggleType2();
})
function toggleType2() {
if (eye2.classList.contains('closed')) {
pwd2.type = 'password';
} else {
pwd2.type = 'text';
}
eye2.classList.toggle('closed');
}
</script>
\ No newline at end of file
<!DOCTYPE html>
<html lang="en">
<!-- Mirrored from akademi.dexignlab.com/codeigniter/demo/student by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 06 Mar 2024 10:51:33 GMT -->
<!-- Added by HTTrack -->
<meta http-equiv="content-type" content="text/html;charset=UTF-8" /><!-- /Added by HTTrack -->
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<!-- Title -->
<title>Completed List</title>
<!-- Meta -->
</head>
<body>
<!-- <div class="page-header mt-5"> -->
<div class="d-flex justify-content-between">
<div>
<h3 class=" tx-24 mg-b-5"><strong><?= $page; ?></strong></h4>
</div>
<div>
<!-- <label>Pending</label>
<input type="radio" name="filter" id="filter" class="filter" value="Pending">
<label>Completed</label>
<input type="radio" name="filter" id="filter" class="filter" value="Completed"> -->
<div class="content-body">
<div class=" justify-content-between ">
<div style="margin-top:-20px !important;margin-left:25px;">
<h3 class="tx-24 mg-b-5"><strong><?= $page; ?> </strong></h4>
</div>
</div>
</div>
<!-- </div> -->
<!-- Row -->
<div class="row sidemenu-height">
<div class="col-lg-12">
<?php
if ($this->session->flashdata('alert_success')) {
?>
<div class="alert alert-success alert-dismissible fade show" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<?php echo $this->session->flashdata('alert_success'); ?>
</div>
<?php
}
if ($this->session->flashdata('alert_danger')) {
?>
<div class="alert alert-danger alert-dismissible fade show" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<?php echo $this->session->flashdata('alert_danger'); ?>
</div>
<?php
}
?>
<div class="card custom-card">
<div class="card-header justify-content-start d-flex">
<?php if ($page != 'Shortlisted') { ?>
<div class="col-md-3">
<div class="btn btn-info" onclick="shortlist()">Add to Shortlisted</div>
<!-- row -->
<div class="container-fluid">
<!-- Row -->
<div class="row">
<div class="col-xl-12">
<div class="row">
<div class="col-xl-12">
<div class="page-title flex-wrap">
<div class="input-group search-area mb-md-0 mb-3">
<input type="text" class="form-control" placeholder="Search here...">
<span class="input-group-text"><a href="javascript:void(0)">
<svg width="15" height="15" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M17.5605 15.4395L13.7527 11.6317C14.5395 10.446 15 9.02625 15 7.5C15 3.3645 11.6355 0 7.5 0C3.3645 0 0 3.3645 0 7.5C0 11.6355 3.3645 15 7.5 15C9.02625 15 10.446 14.5395 11.6317 13.7527L15.4395 17.5605C16.0245 18.1462 16.9755 18.1462 17.5605 17.5605C18.1462 16.9747 18.1462 16.0252 17.5605 15.4395V15.4395ZM2.25 7.5C2.25 4.605 4.605 2.25 7.5 2.25C10.395 2.25 12.75 4.605 12.75 7.5C12.75 10.395 10.395 12.75 7.5 12.75C4.605 12.75 2.25 10.395 2.25 7.5V7.5Z" fill="#01A3FF" />
</svg>
</a></span>
</div>
<div>
</div>
</div>
</div>
<?php } ?>
<div class="form-group col-md-2">
<select name="courseId" id="courseId" class="form-control filtercourse select2">
<option value="">-- Filter Course --</option>
<?php foreach ($courses as $row) { ?>
<option value="<?php echo $row->short_name ?>"> <?php echo $row->short_name ?></option>
<?php } ?>
</select>
</div>
<div class='col-md-4'>
<input type="checkbox" id="demandDraft" name="demandDraft" class="ml-2" ><label class="mt-2"> &nbsp; Demand Draft</label>
<input type="checkbox" id="scst" name="scst" class="ml-2" ><label class="mt-2"> &nbsp; SC/ST</label>
</div>
<div class='col-md-1'></div>
<div>
<button type="button" class="btn btn-primary waves-effect waves-light" onclick="exportReportToExcel(this)">Export to Excel</button>
</div>
<!--column-->
<div class="col-xl-12 wow fadeInUp" data-wow-delay="1.5s">
</div>
<div class="card-body">
<div class="table-responsive">
<table id="dmstable" class="table table-striped table-bordered dt-responsive nowrap" style="border-collapse: collapse; border-spacing: 0; width: 100%;">
<thead>
<tr>
<div class="card-header ">
<div class="row d-flex justify-content-start">
<div class='col-md-2'>
<select name="courseId" id="courseId" class="form-control filtercourse select2 ">
<option value="">-- Filter Course --</option>
<?php foreach ($courses as $row) { ?>
<option value="<?php echo $row->short_name ?>"> <?php echo $row->short_name ?></option>
<?php } ?>
</select>
</div>
<div class='col-md-4'>
<input type="checkbox" id="demandDraft" name="demandDraft" class="ml-2"><label class="mt-2"> &nbsp; Demand Draft</label>
<input type="checkbox" id="scst" name="scst" class="ml-2"><label class="mt-2"> &nbsp; SC/ST</label>
</div>
<div class='col-md-4'></div>
<div>
<button type="button" class="btn btn-primary waves-effect waves-light" onclick="exportReportToExcel(this)">Export to Excel</button>
</div>
</div>
</div>
<div class="table-responsive full-data">
<table class="table-responsive-lg table display dataTablesCard student-tab dataTable no-footer" id="example-student">
<thead>
<tr>
<th class="wd-20p">S.No</th>
<th class="wd-20p">Ref.No</th>
<th class="wd-25p">Application No.</th>
......@@ -111,12 +111,12 @@
<th class="wd-15p">Email</th>
<th class="wd-15p">Action</th>
</tr>
</thead>
<tbody>
<?php
foreach ($records as $i => $row) { ?>
<tr>
<td><input type="checkbox" class="checkbox mr-2 shortList" name="short_list[]" id="short_list<?= $i; ?>" value="<?= $row->appid; ?>"> <?= $i + 1 ?></td>
</thead>
<tbody>
<?php
foreach ($records as $i => $row) { ?>
<tr>
<td><input type="checkbox" class="checkbox mr-2 shortList" name="short_list[]" id="short_list<?= $i; ?>" value="<?= $row->appid; ?>"> <?= $i + 1 ?></td>
<td><?= $row->reference_no ?></td>
<td> <?= $row->application_no ?> </td>
<td> <?php foreach ($courses as $course){ if($row->course_id == $course->id){ echo $course->short_name?>
......@@ -146,140 +146,199 @@
<td><?= $row->payment_status==2? 'Paid': 'Not Paid'; ?></td>
<td><?=date('d-m-Y', strtotime($row->created_at)) ?></td>
<!-- <td> <form action="<?= base_url('ApplicationController/mailSendOnCompletedList/') ?>" id="mailsed" method="post"><input type="hidden" value="<?= $row->email ?>" name="email" id="email"> <input type="hidden" name="refno" value="<?= $row->reference_no ?> "> <input type="hidden" name="course" value="<?= $row->course_name; ?>" id="courseid"> <input type="hidden" value="<?= $row->first_name.' '.$row->middle_name.' '.$row->last_name ?>" name="uname" id="uname"><a class="" title="mail" onclick="mailSend()" ><i class="ti-email text-themecolor h5"></i></a></form></td> -->
<td>
<a href="<?= base_url('ApplicationController/mailSendOnCompletedList/' . $row->appid) ?>" data-toggle="tooltip" id="email" data-placement="top" title="Send Mail" data-original-title="Send Mail" class="btn btn-sm btn-secondary"><i class="ti ti-email"></i></a>
</td>
<td><a title="Send Mail" href="<?= base_url('ApplicationController/mailSendOnCompletedList/' . $row->appid) ?>"><i class="ti-email text-themecolor h5"></i></a>
</td>
<td>
<a title="Preview" target="_blank" href="<?= base_url('ApplicationController/viewApplication/' . $row->user_id) ?>" class="open-in-new-tab"><i class="ti-eye text-themecolor h5"></i></a>
<a title="Edit" href="<?= base_url('ApplicationController/applicationedit/' . $row->appid) ?>" class=""><i class="ti-pencil-alt text-themecolor h5"></i></a>
<!-- <a title="download" href="<?= base_url('ApplicationController/downloadApplication/' . $row->user_id) ?>" class="open-in-new-tab"><i class="ti-download text-themecolor h5"></i></a> -->
</td>
<td>
<a href="<?= base_url('ApplicationController/viewApplication/' . $row->user_id) ?>" data-toggle="tooltip" id="preview" data-placement="top" title="Preview" data-original-title="Preview" class="btn btn-sm btn-primary"><i class="ti ti-eye"></i></a>
<!-- <td><?= ($row->payment_mode == '0') ? 'DD' : 'Online' ?></td> -->
<a href="<?= base_url('ApplicationController/applicationedit/' . $row->appid) ?>" data-toggle="tooltip" id="edit" data-placement="top" title="Edit" data-original-title="Edit" class="btn btn-sm btn-info"><i class="ti ti-pencil"></i></a>
<!--<td style="padding-right: 10px;">
</td>
</tr>
<?php }
?>
</tbody>
</table>
</div>
</div>
<a title="Edit" href="<?= base_url('ApplicationController/completelist/' . $row->user_id) ?>" class="text-themecolor"><i class="ti-pencil-alt h5"></i></a>
</td> -->
</tr>
<?php }
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="<?php echo base_url('assets/js/table2excel.js')?>"></script>
<script>
</body>
function mailSend(){
$('#mailsed').submit();
}
// jQuery
$(document).ready(function() {
// When a link with the class "open-in-new-tab" is clicked
$(".open-in-new-tab").click(function(event) {
// Prevent the default behavior (opening the link in the current tab)
event.preventDefault();
// Get the URL from the href attribute of the clicked link
var url = $(this).attr("href");
// Open the URL in a new tab/window
window.open(url, "_blank");
});
});
</html>
<script>
function mailSend() {
$('#mailsed').submit();
}
$(document).ready(function() {
// When a link with the class "open-in-new-tab" is clicked
$(".open-in-new-tab").click(function(event) {
// Prevent the default behavior (opening the link in the current tab)
event.preventDefault();
function shortlist() {
var checkedValues = [];
$('.shortList:checked').each(function() {
checkedValues.push($(this).val());
});
// alert(checkedValues);
if (checkedValues) {
$.ajax({
type: "POST",
url: "<?php echo base_url('ApplicationController/shortList'); ?>", // Corrected URL
data: {
id: checkedValues
},
success: function(respose) {
// alert('fggh');
window.location.reload();
// loadCourses(); // Reload the course list
},
error: function(error) {
console.error(error);
}
});
}
}
$(document).ready(function() {
$('#dmstable').DataTable();
// Add checkbox click event
$('#dmstable tbody').on('click', 'input.checkbox', function() {
var tr = $(this).closest('tr');
if ($(this).prop('checked')) {
tr.addClass('selected');
} else {
tr.removeClass('selected');
// Get the URL from the href attribute of the clicked link
var url = $(this).attr("href");
// Open the URL in a new tab/window
window.open(url, "_blank");
});
});
function shortlist() {
var checkedValues = [];
$('.shortList:checked').each(function() {
checkedValues.push($(this).val());
});
// alert(checkedValues);
if (checkedValues) {
$.ajax({
type: "POST",
url: "<?php echo base_url('ApplicationController/shortList'); ?>", // Corrected URL
data: {
id: checkedValues
},
success: function(respose) {
// alert('fggh');
window.location.reload();
// loadCourses(); // Reload the course list
},
error: function(error) {
console.error(error);
}
});
$(".filtercourse").on("change", function() {
// alert($(this).val());
var columnIndex = 3;
var filterValue = $(this).val();
$('#dmstable').DataTable().column(columnIndex).search(filterValue).draw();
});
$(".filter").on("change", function() {
// alert($(this).val());
var columnIndex = 7;
var filterValue = $(this).val();
// console.log("Column Index:", $(this).data("column"));
// table.column(columnIndex).search(filterValue).draw();
$('#dmstable').DataTable().column(columnIndex).search(filterValue).draw();
// table.columns(7).search($(this).val()).draw();
// dataTable.column($(this).data("column")).search(this.value).draw();
});
// table.buttons().container().appendTo("#dmstable .col-md-6:eq(0)");
}
}
$(document).ready(function() {
$('#dmstable').DataTable();
// Add checkbox click event
$('#dmstable tbody').on('click', 'input.checkbox', function() {
var tr = $(this).closest('tr');
if ($(this).prop('checked')) {
tr.addClass('selected');
} else {
tr.removeClass('selected');
}
});
// function exportReportToExcel(elem) {
// $("#dmstable").table2excel({
// exclude: ".noExl",
// filename: "CompletedReport",
// fileext: ".xls",
// });
// }
function exportReportToExcel(elem) {
// Store the current pagination setting
var oldPageLength = $('#dmstable').DataTable().page.len();
// Set pagination to show all records
$('#dmstable').DataTable().page.len(-1).draw();
// Perform the export
$("#dmstable").table2excel({
exclude: ".noExl",
filename: "CompletedReport",
fileext: ".xls",
onAfterExport: function() {
// Revert to the original pagination setting
$('#dmstable').DataTable().page.len(oldPageLength).draw();
}
$(".filtercourse").on("change", function() {
// alert($(this).val());
var columnIndex = 3;
var filterValue = $(this).val();
$('#dmstable').DataTable().column(columnIndex).search(filterValue).draw();
});
$(".filter").on("change", function() {
// alert($(this).val());
var columnIndex = 7;
var filterValue = $(this).val();
// console.log("Column Index:", $(this).data("column"));
// table.column(columnIndex).search(filterValue).draw();
$('#dmstable').DataTable().column(columnIndex).search(filterValue).draw();
// table.columns(7).search($(this).val()).draw();
// dataTable.column($(this).data("column")).search(this.value).draw();
});
// table.buttons().container().appendTo("#dmstable .col-md-6:eq(0)");
});
function openPayment(appid, userId, paymentMode) {
// alert(appid+' - '+userId+' - '+paymentMode)
$("#tutionModal").show();
$('#appid').val(appid);
$('#userid').val(userId);
$('#paymentmode').val(paymentMode);
// console.log("App ID:", appid);
// console.log("User ID:", userId);
// console.log("Payment Mode:", paymentMode);
}
$("#closemodel").click(function() {
$('#tution_name_err').text(' ')
$("#tutionModal").hide();
});
$(document).ready(function() {
$('#tutionForm').validate({
rules: {
name: {
required: true
},
bankname: {
required: true
},
transaction: {
required: true
},
date: {
required: true
},
amount: {
required: true,
number: true
}
},
messages: {
name: {
required: "Please enter your name"
},
bankname: {
required: "Please enter bank name"
},
transaction: {
required: "Please enter transaction number"
},
date: {
required: "Please enter date"
},
amount: {
required: "Please enter amount",
number: "Please enter a valid number"
}
},
errorClass: "error",
submitHandler: function(form) {
form.submit();
}
});
});
}
</script>
\ No newline at end of file
// function exportReportToExcel(elem) {
// $("#dmstable").table2excel({
// exclude: ".noExl",
// filename: "PendingReport",
// fileext: ".xls",
// });
// }
function exportReportToExcel(elem) {
// Store the current pagination setting
var oldPageLength = $('#dmstable').DataTable().page.len();
// Set pagination to show all records
$('#dmstable').DataTable().page.len(-1).draw();
// Perform the export
$("#dmstable").table2excel({
exclude: ".noExl",
filename: "PendingReport",
fileext: ".xls",
onAfterExport: function() {
// Revert to the original pagination setting
$('#dmstable').DataTable().page.len(oldPageLength).draw();
}
});
}
</script>
\ No newline at end of file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<!-- Mirrored from akademi.dexignlab.com/codeigniter/demo/student by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 06 Mar 2024 10:51:33 GMT -->
<!-- Added by HTTrack -->
<meta http-equiv="content-type" content="text/html;charset=UTF-8" /><!-- /Added by HTTrack -->
<style>
.error {
color: red;
}
</style>
</head>
<head>
<body>
<!-- Title -->
<title>List</title>
<!-- Meta -->
<!-- <div class="page-header mt-5"> -->
<div class="d-flex justify-content-between">
<div>
<h3 class=" tx-24 mg-b-5"><strong><?= $page; ?></strong></h4>
</div>
<div>
<!-- <label>Pending</label>
<input type="radio" name="filter" id="filter" class="filter" value="Pending">
<label>Completed</label>
<input type="radio" name="filter" id="filter" class="filter" value="Completed"> -->
</div>
</div>
</head>
<!-- </div> -->
<!-- Row -->
<body>
<?php $segment = $this->uri->segment(2) ?>
<div class="row sidemenu-height">
<div class="col-lg-12">
<?php
if ($this->session->flashdata('alert_success')) {
?>
<div class="alert alert-success alert-dismissible fade show" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<?php echo $this->session->flashdata('alert_success'); ?>
</div>
<?php
}
if ($this->session->flashdata('alert_danger')) {
?>
<div class="alert alert-danger alert-dismissible fade show" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<?php echo $this->session->flashdata('alert_danger'); ?>
</div>
<?php
}
?>
<div class="content-body">
<div class=" justify-content-between ">
<div style="margin-top:-20px !important;margin-left:25px;">
<h3 class="tx-24 mg-b-5"><strong><?= $page; ?> </strong></h4>
</div>
<div class="card custom-card">
</div>
<!-- row -->
<div class="container-fluid">
<!-- Row -->
<div class="row">
<div class="col-xl-12">
<div class="row">
<div class="col-xl-12">
<div class="page-title flex-wrap">
<div class="input-group search-area mb-md-0 mb-3">
<input type="text" class="form-control" placeholder="Search here...">
<span class="input-group-text"><a href="javascript:void(0)">
<svg width="15" height="15" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M17.5605 15.4395L13.7527 11.6317C14.5395 10.446 15 9.02625 15 7.5C15 3.3645 11.6355 0 7.5 0C3.3645 0 0 3.3645 0 7.5C0 11.6355 3.3645 15 7.5 15C9.02625 15 10.446 14.5395 11.6317 13.7527L15.4395 17.5605C16.0245 18.1462 16.9755 18.1462 17.5605 17.5605C18.1462 16.9747 18.1462 16.0252 17.5605 15.4395V15.4395ZM2.25 7.5C2.25 4.605 4.605 2.25 7.5 2.25C10.395 2.25 12.75 4.605 12.75 7.5C12.75 10.395 10.395 12.75 7.5 12.75C4.605 12.75 2.25 10.395 2.25 7.5V7.5Z" fill="#01A3FF" />
</svg>
</a></span>
</div>
<div>
</div>
</div>
</div>
<!--column-->
<div class="col-xl-12 wow fadeInUp" data-wow-delay="1.5s">
<div class="card-header ">
<div class="card-header ">
<div class="row d-flex justify-content-start">
<div class='col-md-2'>
<select name="courseId" id="courseId" class="form-control filtercourse select2 ">
......@@ -90,11 +74,11 @@
</div>
</div>
<div class="card-body">
<div class="table-responsive">
<table id="dmstable" class="table table-striped table-bordered dt-responsive nowrap" style="border-collapse: collapse; border-spacing: 0; width: 100%;">
<thead>
<tr>
<div class="table-responsive full-data">
<table class="table-responsive-lg table display dataTablesCard student-tab dataTable no-footer" id="example-student">
<thead>
<tr>
<th class="wd-20p">S.No</th>
<th class="wd-20p">Ref.No</th>
<th class="wd-25p">Application No.</th>
......@@ -108,9 +92,9 @@
<th class="wd-15p">Email </th>
<th class="wd-15p">Action</th>
</tr>
</thead>
<tbody>
<?php
</thead>
<tbody>
<?php
foreach ($records as $i => $row) { ?>
<tr>
<td><?php if ($page != 'Shortlisted') { ?><?php } ?><?= $i + 1 ?></td>
......@@ -133,17 +117,17 @@
<a class="" title="Mail" onclick="mailSend()"><i class="ti-email text-themecolor h5"></i></a>
</form> -->
<a title="Send Mail" href="<?= base_url('ApplicationController/mailSendOnPendingList/' . $row->appid) ?>"><i class="ti-email text-themecolor h5"></i></a>
<!-- <a title="Send Mail" href="<?= base_url('ApplicationController/mailSendOnPendingList/' . $row->appid) ?>"><i class="ti-email text-themecolor h5"></i></a> -->
<a href="<?= base_url('ApplicationController/mailSendOnPendingList/' . $row->appid) ?>" data-toggle="tooltip" id="email" data-placement="top" title="Send Mail" data-original-title="Send Mail" class="btn btn-sm btn-secondary"><i class="ti ti-email"></i></a>
</td>
<td>
<a title="Preview" href="<?= base_url('ApplicationController/viewApplication/' . $row->user_id) ?>" class="open-in-new-tab"><i class="ti-eye text-themecolor h5"></i></a>
<a href="<?= base_url('ApplicationController/viewApplication/' . $row->user_id)?>" data-toggle="tooltip" id="preview" data-placement="top" title="Preview" data-original-title="Preview" class="btn btn-sm btn-primary"><i class="ti ti-eye"></i></a>
<a href="<?= base_url('ApplicationController/applicationedit/' . $row->appid) ?>" data-toggle="tooltip" id="edit" data-placement="top" title="Edit" data-original-title="Edit" class="btn btn-sm btn-info"><i class="ti ti-pencil"></i></a>
<a title="Edit" href="<?= base_url('ApplicationController/applicationedit/' . $row->appid) ?>" ><i class="ti-pencil-alt text-themecolor h5"></i></a>
<!-- <a title="Edit" href="<?= base_url('ApplicationController/applicationedit/' . $row->appid) ?>" ><i class="ti-pencil-alt text-themecolor h5"></i></a> -->
<?php if ($row->payment_mode == 0 && $row->apstatus == 0) { ?>
<!-- <a href="#" onclick="openPayment('<?= $row->appid ?>', <?= $row->user_id ?>, '<?= $row->payment_mode ?>')" id="opentutionModal"><i class="ti-id-badge text-themecolor h5"></i></a> -->
<?php } ?>
......@@ -151,89 +135,24 @@
</tr>
<?php }
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="modal fade" id="self_certificationModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h3 class="modal-title text-danger" id="exampleModalLongTitle">Alert</h3>
</tbody>
</table>
</div>
</div>
</div>
<div class="modal-body d-flex justify-content-center">
<strong>Agree to</strong>
"I certify that the particulars given in the application."
</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-sm btn-secondary" data-dismiss="modal" onclick="closeModal('self_certificationModal')">Close</button>
</div>
</div>
</div>
</div>
</div>
<div class="modal show" id="tutionModal" style="display: none;" aria-modal="true" role="dialog">
<div class="modal-dialog" role="document">
<div class="modal-content modal-content-demo">
<div class="modal-header">
<h6 class="modal-title" id="formTitle">Add payment detail</h6>
</div>
<div class="modal-body">
<form method="POST" id="tutionForm" action="<?php echo base_url('ApplicationController/paymenthistry'); ?>">
<input type="hidden" id='id' name='id'>
<input type="hidden" id="appid" name="appid">
<input type="hidden" id="userid" name="userid">
<input type="hidden" id="paymentmode" name="paymentmode">
<input type="hidden" name="">
<!-- <div class="form-group">
<label class="tx-medium">Name<span class="text-danger">*</span></label>
<input type="text" class="form-control" id="name" name="name" placeholder="name">
</div> -->
<div class="form-group">
<label class="tx-medium">Bank Name<span class="text-danger">*</span></label>
<input type="text" class="form-control" id="bankname" name="bankname" placeholder="Bankname">
</div>
<div class="form-group">
<label class="tx-medium">Transaction No<span class="text-danger">*</span></label>
<input type="text" class="form-control" id="transaction" name="transaction" placeholder="Transaction">
</div>
<div class="form-group">
<label class="tx-medium">Date<span class="text-danger">*</span></label>
<input type="date" class="form-control" id="date" name="date" placeholder="date">
</div>
<div class="form-group">
<label class="tx-medium">Amount<span class="text-danger">*</span></label>
<input type="number" class="form-control" id="amount" name="amount" placeholder="Amount">
</div>
<div class="modal-footer">
<button type="submit" class="btn ripple btn-primary" id="save">Save</button>
<button type="button" class="btn ripple btn-secondary" id="closemodel" data-bs-dismiss="modal">Close</button>
</div>
</form>
</div>
</div>
</div>
</div>
<script src="<?php echo base_url('assets/js/table2excel.js')?>"></script>
</body>
</html>
<script>
<script>
function mailSend(){
$('#mailsed').submit();
......@@ -397,4 +316,5 @@ function exportReportToExcel(elem) {
}
});
}
</script>
\ No newline at end of file
</script>
<link href="https://cdn.jsdelivr.net/npm/summernote@0.8.18/dist/summernote.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/summernote@0.8.18/dist/summernote.min.js"></script>
<div class="row align-items-center">
<div class="col-sm-6">
<div class="page-title-box">
<!-- <h4 class="font-size-18">Pages</h4> -->
<!DOCTYPE html>
<html lang="en">
</div>
</div>
<div class="col-sm-6">
<div class="float-right d-none d-md-block">
<!-- Mirrored from akademi.dexignlab.com/codeigniter/demo/student by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 06 Mar 2024 10:51:33 GMT -->
<!-- Added by HTTrack -->
<meta http-equiv="content-type" content="text/html;charset=UTF-8" /><!-- /Added by HTTrack -->
<!-- <a class="btn btn-primary waves-effect waves-light" href="<?php echo base_url(); ?>Pages/get_pages">
<i class="mdi mdi-plus mr-2"></i>
</a> -->
</div>
</div>
</div>
<br>
<?php
if (validation_errors()) {
?>
<div class="alert alert-danger alert-dismissible fade show" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<?php echo validation_errors(); ?>
</div>
<?php
}
?>
<?php if ($this->session->flashdata('check_email_alert_danger')) { ?>
<div class="alert alert-danger alert-dismissible fade show" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
<strong>Success!</strong> <?php echo $this->session->flashdata('check_email_alert_danger'); ?>
</div>
<?php } ?>
<div class="row">
<div class="col-lg-12">
<div class="card">
<div class="card-body">
<h4 class="card-title">Add Question</h4><bR>
<form action="<?php echo base_url(); ?>ApplicationController/questionEdit/<?=$default['id']?>" method="post" enctype="multipart/form-data" id="registration_form">
<div class="row">
<div class="form-group col-md-4">
<label class="tx-medium">Academic Year<span class="text-danger">*</span> </label>
<select name="academic" id="academic" class="form-control select2 modal-select">
<option value="">--Select--</option>
<?php foreach ($academic_year as $row) { ?>
<option <?= $_POST['academic'] == $row->id ? 'selected' : ($default['academic'] == $row->id ? 'selected' :'') ?> value="<?php echo $row->id ?>"> <?php echo $row->year ?></option>
<head>
<!-- Title -->
<title>Question</title>
<!-- Meta -->
<?php } ?>
</select>
<style>
.custom-card {
margin-top: 120px;
}
</style>
</div>
<div class="form-group col-md-4">
<label class="tx-medium">Exam Type<span class="text-danger">*</span> </label>
</head>
<select name="exam_type" id="exam_type" class="form-control select2 modal-select">
<option value="">--Select--</option>
<?php foreach ($exam_type as $row) { ?>
<option <?= $_POST['exam_type'] == $row->id ? 'selected' : ($default['exam_type'] == $row->id ? 'selected' :'') ?> value="<?php echo $row->id ?>"> <?php echo $row->exam_type_name ?></option>
<body>
<?php } ?>
</select>
<div class="row p-5 custom-card">
<div class="col-lg-12">
<div class="card ">
<div class="card-body">
<h2 class="card-title">Add Question</h2><bR>
<form action="<?php echo base_url(); ?>ApplicationController/questionAdd" method="post" enctype="multipart/form-data" id="registration_form">
</div>
<div class="row">
<div class="form-group col-md-4">
<label class="tx-medium">Academic Year<span class="text-danger">*</span> </label>
<select name="academic" id="academic" class="form-control select2 modal-select">
<option value="">--Select--</option>
<?php foreach ($academic_year as $row) { ?>
<option value="<?php echo $row->id ?>"> <?php echo $row->year ?></option>
<div class="form-group col-md-4">
<label class="tx-medium">Exam Type<span class="text-danger">*</span> </label>
<?php } ?>
</select>
<select name="category" id="category" class="form-control select2 modal-select">
<option value="">--Select--</option>
<?php foreach ($category as $row) { ?>
<option <?= $_POST['category'] == $row->id ? 'selected' : ($default['category'] == $row->id ? 'selected' :'') ?> value="<?php echo $row->id ?>"> <?php echo $row->category ?></option>
</div>
<div class="form-group col-md-4">
<label class="tx-medium">Exam Type<span class="text-danger">*</span> </label>
<?php } ?>
</select>
<select name="exam_type" id="exam_type" class="form-control select2 modal-select">
<option value="">--Select--</option>
<?php foreach ($exam_type as $row) { ?>
<option value="<?php echo $row->id ?>"> <?php echo $row->exam_type_name ?></option>
</div>
<?php } ?>
</select>
</div>
<div class="form-group col-md-12">
<label class="required">Question</label>
<textarea name="question" id="summernote" autocomplete="off" class="form-control" placeholder="Question"> <?= (isset($_POST['question']))?$_POST['question']:$default['question']; ?></textarea>
<?php if (form_error('question')) { ?>
<div class="text-danger alert-dismissible fade show mt-1" role="alert">
<?php echo form_error('question'); ?>
</div>
<?php } ?>
<div class="form-group col-md-4">
<label class="tx-medium">Category<span class="text-danger">*</span> </label>
<select name="category" id="category" class="form-control select2 modal-select">
<option value="">--Select--</option>
<?php foreach ($category as $row) { ?>
<option value="<?php echo $row->id ?>"> <?php echo $row->category ?></option>
<?php } ?>
</select>
</div>
</div>
<div class="form-group col-md-3">
<label class="required">Option A</label>
<input name="option_a" id="option_a" type="text" class="form-control" placeholder="Option A" value="<?= (isset($_POST['option_a']))?$_POST['option_a']:$default['option_a']; ?>">
<?php if (form_error('option_a')) { ?>
<div class="text-danger alert-dismissible fade show mt-1" role="alert">
<?php echo form_error('option_a'); ?>
</div>
<?php } ?>
</div>
<div class="form-group col-md-3">
<label class="required">Option B</label>
<input name="option_b" id="option_b" type="text" class="form-control" placeholder="Option B" value="<?= (isset($_POST['option_b']))?$_POST['option_b']:$default['option_b']; ?>">
<?php if (form_error('option_b')) { ?>
<div class="text-danger alert-dismissible fade show mt-1" role="alert">
<?php echo form_error('option_b'); ?>
</div>
<?php } ?>
</div>
<div class="form-group col-md-3">
<label class="required">Option C</label>
<input name="option_c" id="option_c" type="text" class="form-control" placeholder="Option C" value="<?= (isset($_POST['option_c']))?$_POST['option_c']:$default['option_c']; ?>">
<?php if (form_error('option_c')) { ?>
<div class="text-danger alert-dismissible fade show mt-1" role="alert">
<?php echo form_error('option_c'); ?>
</div>
<?php } ?>
</div>
<div class="form-group col-md-3">
<label class="required">Option D</label>
<input name="option_d" id="option_d" type="text" class="form-control" placeholder="Option D" value="<?= (isset($_POST['option_d']))?$_POST['option_d']:$default['option_d']; ?>">
<?php if (form_error('option_d')) { ?>
<div class="text-danger alert-dismissible fade show mt-1" role="alert">
<?php echo form_error('option_d'); ?>
</div>
<?php } ?>
</div>
<div class="form-group col-md-12 mt-3">
<label>Question</label>
<!-- <textarea name="email_content" id="email_content" rows="5" autocomplete="off" class="form-control" placeholder=""></textarea> -->
<textarea name="question" id="summernote" autocomplete="off" class="form-control" placeholder="Question"> <?= (isset($_POST['question']))?$_POST['question']:$default['question']; ?></textarea>
<div class="form-group col-md-3">
<label class="tx-medium">Answer<span class="text-danger">*</span> </label>
<?php if (form_error('question')) { ?>
<div class="text-danger alert-dismissible fade show mt-1" role="alert">
<?php echo form_error('question'); ?>
</div>
<?php } ?>
<select name="answer" id="answer" class="form-control select2 modal-select">
<option value="">--Select Answer--</option>
<option <?= $_POST['answer'] == 'a' ? 'selected' : ($default['answer'] == 'a' ? 'selected' :'') ?> value="a">A</option>
<option <?= $_POST['answer'] == 'b' ? 'selected' : ($default['answer'] == 'b' ? 'selected' :'') ?> value="b">B</option>
<option <?= $_POST['answer'] == 'c' ? 'selected' : ($default['answer'] == 'c' ? 'selected' :'') ?> value="c">C</option>
<option <?= $_POST['answer'] == 'd' ? 'selected' : ($default['answer'] == 'd' ? 'selected' :'') ?> value="d">D</option>
</select>
</div>
</div>
<div class="form-group col-md-3 mt-3">
<label>Option A</label>
<!-- <input name="subject" id="subject" type="text" class="form-control" placeholder="Subject" value="<?php echo $email_subject; ?>"> -->
<input name="option_a" id="option_a" type="text" class="form-control" placeholder="Option A" value="<?= (isset($_POST['option_a']))?$_POST['option_a']:$default['option_a']; ?>">
<?php if (form_error('option_a')) { ?>
<div class="text-danger alert-dismissible fade show mt-1" role="alert">
<?php echo form_error('option_a'); ?>
</div>
<?php } ?>
</div>
<div class="form-group col-md-3 mt-3">
<label>Option B</label>
<input name="option_b" id="option_b" type="text" class="form-control" placeholder="Option B" value="<?= (isset($_POST['option_b']))?$_POST['option_b']:$default['option_b']; ?>">
<?php if (form_error('option_b')) { ?>
<div class="text-danger alert-dismissible fade show mt-1" role="alert">
<?php echo form_error('option_b'); ?>
</div>
<?php } ?>
</div>
<div class="form-group col-md-3 mt-3">
<label>Option C</label>
<input name="option_c" id="option_c" type="text" class="form-control" placeholder="Option C" value="<?= (isset($_POST['option_c']))?$_POST['option_c']:$default['option_c']; ?>">
<?php if (form_error('option_c')) { ?>
<div class="text-danger alert-dismissible fade show mt-1" role="alert">
<?php echo form_error('option_c'); ?>
</div>
<?php } ?>
</div>
<div class="form-group col-md-3 mt-3">
<label>Option D</label>
<input name="option_d" id="option_d" type="text" class="form-control" placeholder="Option D" value="<?= (isset($_POST['option_d']))?$_POST['option_d']:$default['option_d']; ?>">
<?php if (form_error('option_d')) { ?>
<div class="text-danger alert-dismissible fade show mt-1" role="alert">
<?php echo form_error('option_d'); ?>
</div>
<?php } ?>
</div>
<div class="form-group col-md-3 mt-3">
<label class="tx-medium">Answer<span class="text-danger">*</span> </label>
<select name="answer" id="answer" class="form-control select2 modal-select">
<option value="">--Select Answer--</option>
<option value="a">A</option>
<option value="b">B</option>
<option value="c">C</option>
<option value="d">D</option>
</select>
</div>
</div>
<div class="form-group mt-3 col-md-4">
<div class="">
<button name="submit" type="submit" class="btn btn-primary waves-effect waves-light mr-1">
Submit
</button>
<a href="<?php echo base_url('ApplicationController/faculty'); ?>" class="btn btn-secondary waves-effect">Cancel </a>
</div>
</div>
</div>
</form>
<div class="form-group mt-3 col-md-4">
<div class="">
<button name="submit" type="submit" class="btn btn-primary waves-effect waves-light mr-1">
Submit
</button>
<a href="<?php echo base_url('ApplicationController/viewQuestion'); ?>" class="btn btn-secondary waves-effect">Cancel </a>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<body>
<script>
$(document).ready(function() {
$('#summernote').summernote();
});
$(document).ready(function() {
$('#registration_form').validate({
rules: {
facultyname: {
required: true
},
mobile: {
required: true,
number: true
},
email: {
required: true,
email: true
},
Password: {
required: true
},
confirm_password: {
required: true,
equalTo: "#Password" // Ensure it matches the password field
}
},
messages: {
facultyname: {
required: "Please enter your name"
},
mobile: {
required: "Please enter your mobile number",
number: "Please enter a valid mobile number"
},
email: {
required: "Please enter your email address",
email: "Please enter a valid email address"
},
Password: {
required: "Please enter a password"
},
confirm_password: {
required: "Please confirm your password",
equalTo: "Passwords do not match"
}
},
errorElement: 'span',
errorPlacement: function(error, element) {
error.addClass('invalid-feedback');
element.closest('.form-group').append(error);
},
highlight: function(element, errorClass, validClass) {
$(element).addClass('is-invalid');
},
unhighlight: function(element, errorClass, validClass) {
$(element).removeClass('is-invalid');
}
});
});
let pwd1 = document.getElementById('login_pass'),
eye1 = document.querySelector('.showPwd1');
eye1.addEventListener('click', function() {
toggleType1();
})
function toggleType1() {
if (eye1.classList.contains('closed')) {
pwd1.type = 'password';
} else {
pwd1.type = 'text';
}
eye1.classList.toggle('closed');
}
//end of password toggle
//start of confirm password toggle
let pwd2 = document.getElementById('login_pass2');
eye2 = document.querySelector('.showPwd2');
eye2.addEventListener('click', function() {
toggleType2();
})
function toggleType2() {
if (eye2.classList.contains('closed')) {
pwd2.type = 'password';
} else {
pwd2.type = 'text';
}
eye2.classList.toggle('closed');
}
</script>
</body>
<style type="text/css">
.required:after {
content: " *" !important;
color: red !important;
</html>
<script>
function edit(id, name) {
$('#tution_name_err').text(' ')
$('#id').val(id)
$('#tution_name').val(name)
$('#formTitle').text('Edit Tution')
$("#tutionModal").modal('show');
}
function deletetution(id, status) {
$('#tutionId').val(id)
$('#tutionStatus').val(status)
$("#statusModal").show();
}
</style>
\ No newline at end of file
$('#open-modal').on('click', function() {
$("#tutionModal").modal('show');
});
$('.closemodel').on('click', function() {
$("#statusModal").hide();
});
</script>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment