first commit
This commit is contained in:
Executable
Executable
+43
@@ -0,0 +1,43 @@
|
||||
|
||||
<!-- About_us_banner_start -->
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-12 col-sm-12">
|
||||
<img class="card-img-top" src="/assets/frontend/img/banner_book.jpg" width="100%" height="500">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- About_us_banner_ends -->
|
||||
|
||||
<!-- About us start -->
|
||||
<div class="container-fluid row bg-secondary">
|
||||
<div class="col-sm-12">
|
||||
<div class="card-group mt-5 p-5">
|
||||
<div class="row">
|
||||
<div class="card bg-light col-12 col-sm-12 col-md-12 col-lg-6">
|
||||
<div class="card-body text-left mt-5 mb-5 p-0">
|
||||
<h5 class="card-text mb-2">About Us</h5>
|
||||
<h2 class="card-text mb-2">Who We Are</h2>
|
||||
<p class="card-text text-left">We aim to be the go-to destination for law school students
|
||||
to
|
||||
get the very best outlines and lecture notes for an affordable price. Our platform gives
|
||||
authors an incentive to create and post the very best outlines while giving buyers the
|
||||
most
|
||||
information possible before making a purchase.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card bg-secondary border border-secondary col-12 col-md-12 col-sm-12 col-lg-6">
|
||||
<div>
|
||||
<img class="card-img-bottom marto" src="/assets/frontend/img/woman-3083377_1920.jpg" alt="Card image"
|
||||
style="width:100%">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- About us end -->
|
||||
|
||||
Executable
+777
@@ -0,0 +1,777 @@
|
||||
<style>
|
||||
.select2-container .select2-selection--single {
|
||||
height: 36px !important;
|
||||
}
|
||||
.select2-container--default .select2-selection--single .select2-selection__rendered{
|
||||
line-height: 33px !important;
|
||||
}
|
||||
#country-list{float:left;list-style:none;margin-top:-3px;padding:0;width:190px;position: absolute;}
|
||||
#country-list li{padding: 10px; background: #f0f0f0; border-bottom: #bbb9b9 1px solid;}
|
||||
#country-list li:hover{background:#ece3d2;cursor: pointer;}
|
||||
#search-box{border: none;
|
||||
margin-top: -4.5px;
|
||||
height: 33px; }
|
||||
.review_btn{
|
||||
cursor: pointer;
|
||||
}
|
||||
.download_btn{
|
||||
cursor: pointer;
|
||||
}
|
||||
table thead th{
|
||||
width:180px;
|
||||
} #card-number{
|
||||
z-index: 0;
|
||||
height: 38px;
|
||||
border-radius: 2px;
|
||||
border: solid 1px #c4cbe1;
|
||||
font-size: 12px;
|
||||
color: #333;
|
||||
padding: 10px 15px;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
#card-expiry{
|
||||
z-index: 0;
|
||||
height: 38px;
|
||||
border-radius: 2px;
|
||||
border: solid 1px #c4cbe1;
|
||||
font-size: 12px;
|
||||
color: #333;
|
||||
padding: 10px 15px;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
#card-cvc{
|
||||
z-index: 0;
|
||||
height: 38px;
|
||||
border-radius: 2px;
|
||||
border: solid 1px #c4cbe1;
|
||||
font-size: 12px;
|
||||
color: #333;
|
||||
padding: 10px 15px;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
form#form_filter a#reset {
|
||||
background: #343a40;
|
||||
width: 100% !important;
|
||||
color: #FFF;
|
||||
display: block;
|
||||
text-align: center;
|
||||
padding: 6px 20px;
|
||||
}
|
||||
form#form_filter .row .col-sm-8 .row {
|
||||
display: table;
|
||||
margin: 0 auto;
|
||||
width: 100%;
|
||||
}
|
||||
form#form_filter .row .col-sm-8 .row .col-md-2 {
|
||||
float: left;
|
||||
width: 20% !important;
|
||||
max-width: 20% !important;
|
||||
}
|
||||
form#form_filter .row .col-sm-8 .row .col-md-2 select, form#form_filter .row .col-sm-8 .row .col-md-2 span {
|
||||
width: 100% !important;
|
||||
max-width: 100% !important;
|
||||
}
|
||||
form#form_filter .row .col-sm-8 .row .col-md-2 span.select2-selection__arrow b {
|
||||
left: 94%;
|
||||
top: 17px;
|
||||
}
|
||||
@media screen and (max-width: 767px) {
|
||||
form#form_filter .row .col-sm-8 .row .col-md-2 {
|
||||
width: 100% !important;
|
||||
max-width: 100% !important;
|
||||
margin-bottom: 10px; }
|
||||
|
||||
}
|
||||
</style>
|
||||
<?php
|
||||
|
||||
$school_id = ( isset($_GET['school_id']) ? $_GET['school_id'] : '' );
|
||||
$class_id = ( isset($_GET['class_id']) ? $_GET['class_id'] : '' );
|
||||
$professor_id = ( isset($_GET['professor_id']) ? $_GET['professor_id'] : '' );
|
||||
$isbn = ( isset($_GET['isbn']) ? $_GET['isbn'] : '' );
|
||||
|
||||
|
||||
$filters = "school_id=" . $school_id . "&class_id=" . $class_id . "&professor_id=" . $professor_id . "&isbn=" . $isbn. "&";
|
||||
|
||||
?>
|
||||
<div class="container-fluid jumbotron" style="min-height:99px;padding: 2rem 1rem;">
|
||||
<form autocomplete="off" id="form_filter" action=" <?php echo base_url();?>buy" method="get" >
|
||||
|
||||
<input type="hidden" value="<?php echo isset( $_GET['order_by'] ) ? $_GET['order_by'] :''; ?>" name="order_by">
|
||||
<input type="hidden" value="<?php echo isset( $_GET['direction'] ) ? $_GET['direction'] :''; ?>" name="direction">
|
||||
<div class="row">
|
||||
<div class="col-md-12 col-sm-2"></div>
|
||||
<div class="col-md-12 col-sm-8">
|
||||
<div class="row">
|
||||
<div class="col-md-2 col-sm-12">
|
||||
<select name="school_id" class="custom-select trigger_change_event get_schools_select2 ">
|
||||
<option value="0">Select School</option>
|
||||
<?php if( isset( $this->_data['school_data']) ){
|
||||
foreach ( $this->_data['school_data'] as $key => $value) {
|
||||
?>
|
||||
<option <?php echo ($_GET['school_id']??0)==$value->id ? 'selected' :'';?> value="<?php echo $value->id;?>"><?php echo $value->name;?></option>
|
||||
<?php } }?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="col-md-2 col-sm-12">
|
||||
|
||||
<select name="class_id" class="custom-select trigger_change_event get_courses_select2 ">
|
||||
<option value="0">Select Course</option>
|
||||
<?php if( isset($this->_data['classes_data']) ){
|
||||
foreach ( $this->_data['classes_data'] as $key => $value) {
|
||||
?>
|
||||
<option <?php echo ($_GET['class_id']??0)==$value->id ? 'selected' :'';?> value="<?php echo $value->id;?>"><?php echo $value->name;?></option>
|
||||
<?php } }?>
|
||||
</select>
|
||||
|
||||
</div>
|
||||
<div class="col-md-2 col-sm-12">
|
||||
|
||||
<select name="professor_id" class="custom-select trigger_change_event get_professors_select2 ">
|
||||
<option value="0">Select Professor</option>
|
||||
<?php if( isset($this->_data['professor_data']) ){
|
||||
foreach ( $this->_data['professor_data'] as $key => $value) {
|
||||
?>
|
||||
<option <?php echo ($_GET['professor_id']??0)==$value->id ? 'selected' :'';?> value="<?php echo $value->id;?>"><?php echo $value->name;?></option>
|
||||
<?php } }?>
|
||||
</select>
|
||||
|
||||
</div>
|
||||
<div class="col-md-2 col-sm-12">
|
||||
|
||||
<select name="isbn" class="custom-select trigger_change_event get_textbooks_select2 ">
|
||||
<option value="0">Select Textbook</option>
|
||||
<?php if( isset($this->_data['textbook_data']) ){
|
||||
foreach ( $this->_data['textbook_data'] as $key => $value) {
|
||||
if( isset($value['isbn']) ) { ?>
|
||||
<option <?php echo ($_GET['isbn']??'')==$value['isbn'] ? 'selected' :'';?> value="<?php echo $value['isbn'];?>"><?php echo $value['isbn'];?></option>
|
||||
<?php } } } ?>
|
||||
</select>
|
||||
|
||||
</div>
|
||||
<div class="col-md-2 col-sm-2">
|
||||
<a href=" <?php echo base_url();?>buy" id="reset">Reset Filters</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-12 col-sm-12">
|
||||
<div class="container table-responsive">
|
||||
<table class="table table-striped table-bordered">
|
||||
<thead class="thead-dark">
|
||||
<tr>
|
||||
<th>School <a style="color: white;" href="?<?php echo $filters ?>order_by=school_id&direction=<?php echo (($_GET['order_by']??'')=='school_id') ? ($_GET['direction']=='DESC' ? 'ASC' : 'DESC' ) : 'ASC'; ?>"><i class="fa fa-sort<?php echo (($_GET['order_by']??'')=='school_id') ? ($_GET['direction']=='DESC' ? '-down' : '-up' ) : ''; ?>"></i></a></th>
|
||||
<th>Course <a style="color: white;" href="?<?php echo $filters ?>order_by=class_id&direction=<?php echo (($_GET['order_by']??'')=='class_id') ? ($_GET['direction']=='DESC' ? 'ASC' : 'DESC' ) : 'ASC'; ?>"><i class="fa fa-sort<?php echo (($_GET['order_by']??'')=='class_id') ? ($_GET['direction']=='DESC' ? '-down' : '-up' ) : ''; ?>"></i></a></th>
|
||||
<th>Professor <a style="color: white;" href="?<?php echo $filters ?>order_by=professor_id&direction=<?php echo (($_GET['order_by']??'')=='professor_id') ? ($_GET['direction']=='DESC' ? 'ASC' : 'DESC' ) : 'ASC'; ?>"><i class="fa fa-sort<?php echo (($_GET['order_by']??'')=='professor_id') ? ($_GET['direction']=='DESC' ? '-down' : '-up' ) : ''; ?>"></i></a></th>
|
||||
<th>Year <a style="color: white;" href="?<?php echo $filters ?>order_by=year&direction=<?php echo (($_GET['order_by']??'')=='year') ? ($_GET['direction']=='DESC' ? 'ASC' : 'DESC' ) : 'ASC'; ?>"><i class="fa fa-sort<?php echo (($_GET['order_by']??'')=='year') ? ($_GET['direction']=='DESC' ? '-down' : '-up' ) : ''; ?>"></i></a></th>
|
||||
<th style=" min-width: 120px;"> Textbook <a style="color: white;" href="?<?php echo $filters ?>order_by=textbook_id&direction=<?php echo (($_GET['order_by']??'')=='textbook_id') ? ($_GET['direction']=='DESC' ? 'ASC' : 'DESC' ) : 'ASC'; ?>"><i class="fa fa-sort<?php echo (($_GET['order_by']??'')=='textbook_id') ? ($_GET['direction']=='DESC' ? '-down' : '-up' ) : ''; ?>"></i></a></th>
|
||||
<th>Word Count <a style="color: white;" href="?<?php echo $filters ?>order_by=word_count&direction=<?php echo (($_GET['order_by']??'')=='word_count') ? ($_GET['direction']=='DESC' ? 'ASC' : 'DESC' ) : 'ASC'; ?>"><i class="fa fa-sort<?php echo (($_GET['order_by']??'')=='word_count') ? ($_GET['direction']=='DESC' ? '-down' : '-up' ) : ''; ?>"></i></a></th>
|
||||
<th style=" min-width: 170px; ">Type <a style="color: white;" href="?<?php echo $filters ?>order_by=note_type&direction=<?php echo (($_GET['order_by']??'')=='note_type') ? ($_GET['direction']=='DESC' ? 'ASC' : 'DESC' ) : 'ASC'; ?>"><i class="fa fa-sort<?php echo (($_GET['order_by']??'')=='note_type') ? ($_GET['direction']=='DESC' ? '-down' : '-up' ) : ''; ?>"></i></a></th>
|
||||
|
||||
<th>Rating <a style="color: white;" href="?<?php echo $filters ?>order_by=review&direction=<?php echo (($_GET['order_by']??'')=='review') ? ($_GET['direction']=='DESC' ? 'ASC' : 'DESC' ) : 'ASC'; ?>"><i class="fa fa-sort<?php echo (($_GET['order_by']??'')=='review') ? ($_GET['direction']=='DESC' ? '-down' : '-up' ) : ''; ?>"></i></a></th>
|
||||
|
||||
<th>Preview / Download</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if(isset($this->_data['items'] )) {
|
||||
foreach ($this->_data['items'] as $key => $value) {
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $value->school_name;?></td>
|
||||
<td><?php echo $value->class_name;?></td>
|
||||
<td><?php echo $value->professor_name;?></td>
|
||||
<td><?php echo $value->year;?></td>
|
||||
<td><?php echo $value->isbn == "" ? 'Assigned Text' : $value->isbn; ?></td>
|
||||
<td><?php echo $value->word_count;?></td>
|
||||
<td><?php echo $value->note_type==1 ? 'Outline' : 'Lecture Note';?></td>
|
||||
<!-- <td><?php //echo $value->first_name;?></td> -->
|
||||
<td><?php echo $value->rating_count>0 ? round($value->rating /$value->rating_count,2).'/10 <br> <a class="review_btn" data-id="'.$value->id.'"><u>Reviews</u></a>' : 'No Ratings Available';?></td>
|
||||
|
||||
<td>
|
||||
<a href="/preview/<?php echo $value->id;?>" target="_blank"><u>Preview</u></a>
|
||||
<?php if(!in_array($value->id,$this->_data['user_downloaded_files'])){ ?>
|
||||
|
||||
<a href="#" data-toggle="modal" class="download_btn" id="p_<?php echo $value->id;?>" data-id="<?php echo $value->id;?>" data-target="#<?php echo !($this->session->userdata('user_id')) ? 'loginModal':'purchaseModal';?>"><u>Download <i class="fa fa-file-word-o"> </i></u></a>
|
||||
|
||||
<?php }else{ echo 'Already Downloaded'; } ?>
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<?php } }else{
|
||||
echo '<tr><td colspan="10">No Data Found</td></tr>';
|
||||
}?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
<p><?php echo $this->_data['links'] ??''; ?></p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- <div class="col-md-12 col-sm-1"></div> -->
|
||||
</div>
|
||||
</div>
|
||||
<!-- book_table_ends -->
|
||||
|
||||
<!-- login_modal_start -->
|
||||
<!-- Modal -->
|
||||
<div class="modal fade" id="loginModal" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<!-- Modal content-->
|
||||
<div class="modal-content">
|
||||
<div class="modal-header" style="display: block;">
|
||||
<h4 class="modal-title float-left">Login</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="container">
|
||||
<form action="<?php echo base_url();?>member/login" method="post">
|
||||
<div class="form-group">
|
||||
<input type="hidden" name="c_is_active" value="f86e789d983d0f9863a6766f473b8b28">
|
||||
<label for="email">Email:</label>
|
||||
<input type="email" class="form-control" placeholder="Enter email" name="email">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="pwd">Password:</label>
|
||||
<input type="password" class="form-control" id="pwd" placeholder="Enter password" name="password">
|
||||
</div>
|
||||
<input name="return_url" type="hidden" value="buy" />
|
||||
<div class="form-group row">
|
||||
<input type="hidden" name="return_url" value="buy"/>
|
||||
<div class="col-md-6 col-md-6 col-sm-6">
|
||||
<a href="member/forgot" class="">Forgot Password</a>
|
||||
</div>
|
||||
<div class="col-md-6 col-md-6 col-sm-6">
|
||||
<a href="member/register?return_url=buy" id="register_btn" class=" pull-right">Register</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<input type="submit" style="margin-left: auto;margin-right:auto;" name="btn-login" class="btn btn-primary col-md-8" value="Login" />
|
||||
</div>
|
||||
<br />
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- login_modal_end -->
|
||||
|
||||
|
||||
|
||||
<!-- register_modal_start -->
|
||||
<!-- Modal -->
|
||||
<div class="modal fade" id="registerModal" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
|
||||
<!-- Modal content-->
|
||||
<div class="modal-content">
|
||||
<div class="modal-header" style="display: block;">
|
||||
|
||||
<h4 class="modal-title float-left">Register</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="container">
|
||||
<form>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="username">User Name:</label>
|
||||
<input type="text" class="form-control" id="username" placeholder="Enter username" name="name">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="email">Email:</label>
|
||||
<input type="email" class="form-control" id="email" placeholder="Enter email" name="email">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="pwd">Password:</label>
|
||||
<input type="password" class="form-control" placeholder="Enter password" name="pwd">
|
||||
</div>
|
||||
<div class="form-group ">
|
||||
<span>Already have an Account?</span>
|
||||
<a href="#"> Login</a>
|
||||
|
||||
</div>
|
||||
<div class="checkbox">
|
||||
<label><input type="checkbox" name="remember"> I agree to Terms and Conditions <a href="#"><u>here</u></a></label>
|
||||
</div>
|
||||
<div class="checkbox">
|
||||
<label><input type="checkbox" name="remember"> I agree to Privacy Policy <a href="#"><u>here</u></a></label>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary">Submit</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- register_modal_end -->
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- purchase_modal_start -->
|
||||
<div class="modal fade" id="purchaseModal" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header" style="display: block;">
|
||||
<h5 class="modal-title float-left">Purchase</h5>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="container">
|
||||
<div class="form-group">
|
||||
<h5 class="primaryHeading2 ">
|
||||
Price $<?php echo $this->_data['notes_amount'];?>.00
|
||||
</h5>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="name">Name <span class="text-danger">*</span></label>
|
||||
<input type="text" class="form-control" id="card-holder-name" placeholder="Enter name" name="name">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="name">Card Number <span class="text-danger">*</span></label>
|
||||
<input class="InputElement Input form-control" autocomplete="cc-number" autocorrect="off" spellcheck="false" type="text" id="cardnumber" name="cardnumber" data-elements-stable-field-name="cardNumber" inputmode="numeric" aria-label="Credit or debit card number" placeholder="1234 1234 1234 1234" aria-invalid="true" >
|
||||
</div>
|
||||
|
||||
<div class="form-group" >
|
||||
<label for="month">Card Expiry Month <span class="required-must">*</span></label>
|
||||
<select name="exp_month" id="exp_month" class="form-control">
|
||||
<option value="">Select Month</option>
|
||||
<option value="01">01 - January</option>
|
||||
<option value="02">02 - February</option>
|
||||
<option value="03">03 - March</option>
|
||||
<option value="04">04 - April</option>
|
||||
<option value="05">05 - May</option>
|
||||
<option value="06">06 - June</option>
|
||||
<option value="07">07 - July</option>
|
||||
<option value="08">08 - August</option>
|
||||
<option value="09">09 - September</option>
|
||||
<option value="10">10 - October</option>
|
||||
<option value="11">11 - November</option>
|
||||
<option value="12">12 - December</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="name">Card Expiry Year<span class="text-danger">*</span></label>
|
||||
|
||||
<?php
|
||||
$year = Date('Y');
|
||||
$limit = $year + 25;
|
||||
?>
|
||||
<select name="exp_year" id="exp_year" class="form-control">
|
||||
<option value="">Select Year</option>
|
||||
<?php for($i = $year; $i <= $limit ; $i++) {
|
||||
echo "<option value='" . $i . "' > " . $i . " </option>";
|
||||
} ?>
|
||||
</select>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<label for="name">Card CVC <span class="text-danger">*</span></label>
|
||||
<input class="InputElement is-empty Input Input--empty form-control" autocomplete="cc-csc" autocorrect="off" spellcheck="false" type="text" id="cvc" name="cvc" data-elements-stable-field-name="cardCvc" inputmode="numeric" aria-label="Credit or debit card CVC/CVV" placeholder="CVC" aria-invalid="false" value="">
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="checkbox">
|
||||
<label><input type="checkbox" name="remember" id="remember"> I agree to Terms and Conditions <a href="#"><u>here</u></a></label>
|
||||
</div>
|
||||
<div class="checkbox">
|
||||
<label><input type="checkbox" name="remember2" id="remember2"> I agree to Privacy Policy <a href="#"><u>here</u></a></label>
|
||||
</div>
|
||||
<div>
|
||||
<img src="<?php echo base_url();?>assets/frontend/img/download.png" style="margin-left:88px; height: 97px;width: 254px;"/>
|
||||
</div>
|
||||
<div style="margin-top: 20px;;" class="form-group row">
|
||||
<button type="submit" style="margin-left: auto;margin-right:auto;" id="purchaseButton" class="btn btn-primary col-md-8" >Purchase</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<!-- download_modal_start -->
|
||||
<div class="modal fade" id="downloadModal" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
|
||||
<!-- Modal content-->
|
||||
<div class="modal-content">
|
||||
<div class="modal-header" style="display: block;">
|
||||
|
||||
<h4 class="modal-title float-left">Download</h4>
|
||||
</div>
|
||||
<div class="modal-body text-center">
|
||||
<div class="container">
|
||||
<div class="form-group row">
|
||||
<img style="margin-left: auto;margin-right: auto;;" src="https://img.icons8.com/metro/26/000000/download.png"/>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<a href="" style="color: black;font-weight: bold;text-decoration: none;margin-left:auto;margin-right:auto;" target="_blank" id="download_link">Cliek Here to Download File</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- download_modal_end -->
|
||||
|
||||
<!-- review_modal_start -->
|
||||
<div class="modal fade" id="reviewModal" role="dialog">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header" style="display: block;">
|
||||
<h4 class="modal-title float-left">Reviews</h4>
|
||||
</div>
|
||||
<div class="modal-body text-center">
|
||||
<div class="container" id="reviewModalc"> </div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- review_modal_end -->
|
||||
|
||||
<script src="https://js.stripe.com/v3/"></script>
|
||||
<script>
|
||||
|
||||
document.addEventListener('DOMContentLoaded', function()
|
||||
{
|
||||
|
||||
|
||||
$('.select2').select2();
|
||||
$('.trigger_change_event').change(function()
|
||||
{
|
||||
$("#form_filter").submit();
|
||||
});
|
||||
|
||||
// AJAX call for autocomplete
|
||||
$(document).ready(function(){
|
||||
|
||||
$('.input-group-append').on('click',function(e){
|
||||
e.preventDefault();
|
||||
$('#reset')[0].click();
|
||||
})
|
||||
$("#search-box").keyup(function(){
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "v1/api/autocomplete",
|
||||
data:'keyword='+$(this).val(),
|
||||
beforeSend: function(){
|
||||
$("#search-box").css("background","#FFF url(LoaderIcon.gif) no-repeat 165px");
|
||||
},
|
||||
success: function(data){
|
||||
$("#suggesstion-box").show();
|
||||
data = JSON.parse(data);
|
||||
$("#suggesstion-box").html(data.html);
|
||||
$("#search-box").css("background","#FFF");
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
$('#download_link').on('click',function(e){
|
||||
e.preventDefault();
|
||||
var link = document.createElement("a");
|
||||
link.download = $(this).attr('data-name');
|
||||
link.href = $(this).attr('data-file_source');
|
||||
link.click();
|
||||
|
||||
});
|
||||
$('.download_btn').on('click',function(e){
|
||||
e.preventDefault()
|
||||
if($(this).attr('data-login')=='loginModal'){
|
||||
$('#loginModal').modal('toggle');
|
||||
return false;
|
||||
}
|
||||
$('#purchaseButton').attr('data-id',$(this).attr('data-id'));
|
||||
})
|
||||
|
||||
|
||||
$('.review_btn').on('click',function(e){
|
||||
e.preventDefault();
|
||||
var id = $(this).attr('data-id');
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: '/v1/api/get_review',
|
||||
dataType: 'JSON',
|
||||
timeout: 5000,
|
||||
data: {
|
||||
id: id,
|
||||
},
|
||||
success: function (response) {
|
||||
if(response.status){
|
||||
var html ='<div class="review-block">';
|
||||
|
||||
if(response.data.length>0){
|
||||
|
||||
$.each(response.data,function(i,v)
|
||||
{
|
||||
html+=`<div class="row">
|
||||
<div class="col-sm-3">
|
||||
|
||||
<div class="review-block-date">Date : `+v.created_at+`</div>
|
||||
</div>
|
||||
<div class="col-sm-9">
|
||||
|
||||
<div class="review-block-description">`+(v.comment || 'No Comment' )+`</div>
|
||||
</div>
|
||||
</div>
|
||||
<hr/>`;
|
||||
})
|
||||
}
|
||||
else
|
||||
{
|
||||
html+='<center>No Reviews Available</center>';
|
||||
}
|
||||
html+='</div>'
|
||||
$('#reviewModalc').html(html);
|
||||
$('#reviewModal').modal('toggle');
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
$('#downloadModal').on('hidden.bs.modal', function (e) {
|
||||
window.location.reload();
|
||||
})
|
||||
// const stripe = Stripe("pk_test_51JNKXXLfAB0QE6KXiN4oLo3jYJDkxFDkiA8mn7KUnQCbsKYc0HsyCFzpvYBn1XaqancziO67lthVOARxm371Og9600QbeX1Ovt");
|
||||
// const stripe = Stripe("<?php echo $this->_data['stripe_client'];?>");
|
||||
|
||||
// const elements = stripe.elements();
|
||||
// const cardNumberElement = elements.create('cardNumber');
|
||||
// const cardExpiryElement = elements.create('cardExpiry');
|
||||
// const cardCvcElement = elements.create('cardCvc');
|
||||
|
||||
|
||||
// cardNumberElement.mount('#card-number');
|
||||
// cardExpiryElement.mount('#card-expiry');
|
||||
// cardCvcElement.mount('#card-cvc');
|
||||
|
||||
const cardHolderName = document.getElementById('card-holder-name');
|
||||
const cardButton = document.getElementById('purchaseButton');
|
||||
// const clientSecret = cardButton.dataset.secret;
|
||||
|
||||
|
||||
$(document).on('click','#purchaseButton',function (e) {
|
||||
|
||||
$(window).off("beforeonunload");
|
||||
|
||||
|
||||
});
|
||||
|
||||
|
||||
// var payment_method_id = "";
|
||||
// cardButton.addEventListener('click', async (e) =>
|
||||
// {
|
||||
// if (payment_method_id == "")
|
||||
// {
|
||||
// const { setupIntent, error } = await stripe.handleCardSetup(
|
||||
// clientSecret, cardNumberElement,
|
||||
// {
|
||||
// payment_method_data:
|
||||
// {
|
||||
// billing_details:
|
||||
// {
|
||||
// name: cardHolderName.value
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// );
|
||||
// if (error)
|
||||
// {
|
||||
// // Display "error.message" to the user...
|
||||
// alert(error.message);
|
||||
// console.log(clientSecret)
|
||||
// return false;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// payment_method_id = setupIntent.payment_method;
|
||||
|
||||
// if (payment_method_id != "")
|
||||
// {
|
||||
// // The card has been verified successfully...
|
||||
// console.log(setupIntent.payment_method);
|
||||
// document.getElementById('payment-method').value = payment_method_id;
|
||||
|
||||
// $.ajax({
|
||||
// type: 'POST',
|
||||
// url: '/v1/api/member/purchase',
|
||||
// dataType: 'JSON',
|
||||
// timeout: 900000,
|
||||
// data: { id: $('#purchaseButton').attr('data-id'), key: payment_method_id },
|
||||
// success: function (response)
|
||||
// {
|
||||
// // response= JSON.parse(response);
|
||||
// console.log(response)
|
||||
// $('#p_'+$('#purchaseButton').attr('data-id')).after('Already Downloaded');
|
||||
// $('#p_'+$('#purchaseButton').attr('data-id')).remove();
|
||||
// if(response.status)
|
||||
// {
|
||||
// var link = document.createElement("a");
|
||||
// link.download = response.file_name+'.'+response.extension;
|
||||
// link.href = response.file_source;
|
||||
// link.click();
|
||||
|
||||
// cardNumberElement.mount('#card-number');
|
||||
// cardExpiryElement.mount('#card-expiry');
|
||||
// cardCvcElement.mount('#card-cvc');
|
||||
|
||||
// $('#purchaseModal').modal('toggle');
|
||||
// $('#downloadModal').modal('toggle');
|
||||
// $('#download_link').attr('href',response.file_source);
|
||||
// alert('Payment done successfully. Your file is being downloaded...')
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// if (response.error_msg)
|
||||
// {
|
||||
// alert(response.error_msg);
|
||||
// }else{
|
||||
// alert('Error While Making Payment.');
|
||||
// }
|
||||
|
||||
// }
|
||||
// }
|
||||
// });
|
||||
// }
|
||||
// }
|
||||
// }else if (payment_method_id != "")
|
||||
// {
|
||||
// // The card has been verified successfully...
|
||||
// console.log(payment_method_id);
|
||||
// document.getElementById('payment-method').value = payment_method_id;
|
||||
|
||||
// $.ajax({
|
||||
// type: 'POST',
|
||||
// url: '/v1/api/member/purchase',
|
||||
// dataType: 'JSON',
|
||||
// timeout: 900000,
|
||||
// data: { id: $('#purchaseButton').attr('data-id'), key: payment_method_id },
|
||||
// success: function (response)
|
||||
// {
|
||||
// // response= JSON.parse(response);
|
||||
// console.log(response)
|
||||
// $('#p_'+$('#purchaseButton').attr('data-id')).after('Already Downloaded');
|
||||
// $('#p_'+$('#purchaseButton').attr('data-id')).remove();
|
||||
// if(response.status)
|
||||
// {
|
||||
// var link = document.createElement("a");
|
||||
// link.download = response.file_name+'.'+response.extension;
|
||||
// link.href = response.file_source;
|
||||
// link.click();
|
||||
|
||||
// cardNumberElement.mount('#card-number');
|
||||
// cardExpiryElement.mount('#card-expiry');
|
||||
// cardCvcElement.mount('#card-cvc');
|
||||
|
||||
// $('#purchaseModal').modal('toggle');
|
||||
// $('#downloadModal').modal('toggle');
|
||||
// $('#download_link').attr('href',response.file_source);
|
||||
// alert('Payment done successfully. Your file is being downloaded...')
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// if (response.error_msg)
|
||||
// {
|
||||
// alert(response.error_msg);
|
||||
// }else{
|
||||
// alert('Error While Making Payment.');
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// });
|
||||
// }
|
||||
// });
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var payment_method_id = "";
|
||||
cardButton.addEventListener('click', async (e) =>
|
||||
{
|
||||
|
||||
if( !$('#remember').prop('checked') )
|
||||
{
|
||||
toastr.error('Terms and Conditions is required.');
|
||||
return false;
|
||||
}
|
||||
|
||||
if ( !$('#remember2').prop('checked'))
|
||||
{
|
||||
toastr.error('Privacy Policy is required.');
|
||||
return false;
|
||||
}
|
||||
let exp_year = $('#exp_year').val();
|
||||
let exp_month = $('#exp_month').val();
|
||||
let card_number = $('#cardnumber').val();
|
||||
let card_cvc = $('#cvc').val();
|
||||
let card_name = $('#card-holder-name').val();
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: '/v1/api/member/purchase',
|
||||
dataType: 'JSON',
|
||||
timeout: 900000,
|
||||
data: {
|
||||
id: $('#purchaseButton').attr('data-id'), exp_month: exp_month, exp_year: exp_year
|
||||
, card_number: card_number, card_cvc: card_cvc, card_name : card_name
|
||||
},
|
||||
success: function (response)
|
||||
{
|
||||
|
||||
if(response.status)
|
||||
{
|
||||
$('#p_' + $('#purchaseButton').attr('data-id')).after('Already Downloaded');
|
||||
$('#p_' + $('#purchaseButton').attr('data-id')).remove();
|
||||
var link = document.createElement("a");
|
||||
link.download = response.file_name + '.' + response.extension;
|
||||
link.href = response.file_source;
|
||||
link.click();
|
||||
|
||||
// cardNumberElement.mount('#card-number');
|
||||
// cardExpiryElement.mount('#card-expiry');
|
||||
// cardCvcElement.mount('#card-cvc');
|
||||
|
||||
$('#purchaseModal').modal('toggle');
|
||||
// $('#downloadModal').modal('toggle');
|
||||
// $('#download_link').attr('href',response.file_source);
|
||||
toastr.success('Payment done successfully. Your file is being downloaded...')
|
||||
}
|
||||
else
|
||||
{
|
||||
if (response.error_msg)
|
||||
{
|
||||
toastr.error(response.error_msg);
|
||||
}else{
|
||||
toastr.error('Error While Making Payment.');
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
//To select country name
|
||||
function selectCountry(val)
|
||||
{
|
||||
$("#search-box").val(val);
|
||||
$("#suggesstion-box").hide();
|
||||
$("#form_filter").submit();
|
||||
}
|
||||
}, false)
|
||||
</script>
|
||||
Executable
+55
@@ -0,0 +1,55 @@
|
||||
|
||||
<!-- contact_image_start -->
|
||||
<!-- <div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-12 col-sm-12">
|
||||
<img src="/assets/frontend/img/contact-us-4193523_640.jpg" width="100%" height="500">
|
||||
</div>
|
||||
</div>
|
||||
</div> -->
|
||||
<!-- contact_image_ends -->
|
||||
|
||||
<!-- contact_form_start -->
|
||||
<div class="container-fluid bg-priamry jumbotron">
|
||||
<div class="row ">
|
||||
<div class="col-12 col-sm-2"></div>
|
||||
<div class="col-12 col-sm-8 border border-secondary p-4">
|
||||
<div class="row">
|
||||
<h1 class="col-12 text-center text-dark">Contact Us</h1>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<?php if(($this->_data['status_'] ?? '')=='success') { ?>
|
||||
<div class="alert alert-success" role="alert">
|
||||
<?php echo $this->_data['status_msg'];?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php if(($this->_data['status_'] ?? '')=='error') { ?>
|
||||
<div class="alert alert-danger" role="alert">
|
||||
<?php echo $this->_data['status_msg'];?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="col-12">
|
||||
<form method="post" action="<?php echo base_url();?>v1/api/contact">
|
||||
<div class="form-group">
|
||||
<label for="email">Email address: *</label>
|
||||
<input type="email" class="form-control" placeholder="Enter email" name="email" id="email">
|
||||
</div>
|
||||
<!-- <div class="form-group">
|
||||
<label for="name">User name: </label>
|
||||
<input type="text" class="form-control" placeholder="Enter Name" name="name" id="name">
|
||||
</div> -->
|
||||
<div class="form-group">
|
||||
<label for="message">Message: *</label>
|
||||
<textarea class="form-control" rows="5" name="message" placeholder="Enter Message" id="message"></textarea>
|
||||
</div>
|
||||
<input type="submit" name="submit_btn" class="btn btn-primary" value="Submit" />
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 col-sm-2"></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- contact_form_ends -->
|
||||
Executable
+76
@@ -0,0 +1,76 @@
|
||||
|
||||
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
|
||||
<style>
|
||||
.footer-a a:hover{
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<!-- footer_starts -->
|
||||
<footer class="footer bg-white text-dark" style=" padding-top: 1px">
|
||||
<div class="container">
|
||||
<div class="row mt-5">
|
||||
<div class="col-12 col-sm-8 text-left">
|
||||
<!-- Brand/logo -->
|
||||
<img class="navbar-brand " id="logo" src="/assets/frontend/img/Logo Files/Logo Files/SVG/Artboard 1 copy.svg" />
|
||||
|
||||
</div>
|
||||
<div class="col-12 col-sm-2">
|
||||
<h4><b>PAGES</b></h4>
|
||||
<ul class="list-unstyled footer-a">
|
||||
<li><a href="/" class="text-dark "><b>Home</b></a></li>
|
||||
<li><a href="/buy" class="text-dark"><b>Shop Notes</b></a></li>
|
||||
<li><a href="/sell" class="text-dark"><b>Upload Notes</b></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-12 col-sm-2">
|
||||
<h4><b>HELP</b></h4>
|
||||
<ul class="list-unstyled footer-a">
|
||||
<li><a href="/contact" class="text-dark"><b>Contact Us</b></a></li>
|
||||
<li><a href="/terms_and_conditions" class="text-dark"><b>Terms & Conditions</b></a></li>
|
||||
<li><a href="/privacy_policy" class="text-dark"><b>Privacy Policy</b></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="row justify-content-center mt-0" style=" width: 100%;">
|
||||
<div class="col-auto mt-3">
|
||||
<p>© Copyright 2021 Outline Gurus</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
<!-- footer_ends -->
|
||||
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
|
||||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
|
||||
<script src="/assets/js/select2.js" ></script>
|
||||
<script src="/assets/frontend/js/app.js"></script>
|
||||
<script src="/assets/js/custom_select2.js"></script>
|
||||
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.js" ></script>
|
||||
|
||||
<script>
|
||||
toastr.options = {
|
||||
"closeButton": true,
|
||||
"debug": false,
|
||||
"newestOnTop": false,
|
||||
"progressBar": true,
|
||||
"positionClass": "toast-top-right",
|
||||
"preventDuplicates": false,
|
||||
"onclick": null,
|
||||
"showDuration": "300",
|
||||
"hideDuration": "1000",
|
||||
"timeOut": "5000",
|
||||
"extendedTimeOut": "1000",
|
||||
"showEasing": "swing",
|
||||
"hideEasing": "linear",
|
||||
"showMethod": "fadeIn",
|
||||
"hideMethod": "fadeOut"
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Executable
+85
@@ -0,0 +1,85 @@
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title><?php echo $this->_data['meta']['title']?? 'Outline gurus';?></title>
|
||||
<meta name="description"
|
||||
content="<?php echo $this->_data['meta']['desc']?? 'Outline gurus';?>">
|
||||
|
||||
<!-- Global site tag (gtag.js) - Google Analytics -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-208304207-1">
|
||||
</script>
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
|
||||
gtag('config', 'UA-208304207-1');
|
||||
</script>
|
||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" href="/assets/frontend/css/style.css" />
|
||||
<link rel="stylesheet" href="/assets/css/select2.css" />
|
||||
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.css" />
|
||||
<!--load all styles -->
|
||||
|
||||
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
|
||||
|
||||
</head>
|
||||
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
|
||||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-autocomplete/1.0.7/jquery.auto-complete.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/1.10.24/js/jquery.dataTables.min.js" ></script>
|
||||
|
||||
<style>
|
||||
body{
|
||||
font-family: "Oswald", Sans-serif !important;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 767px) {
|
||||
#reviewModal .modal-dialog {
|
||||
max-width: 350px !important;
|
||||
margin: 50px auto; }
|
||||
}
|
||||
</style>
|
||||
<body>
|
||||
|
||||
<!-- navbar starts -->
|
||||
<nav class="navbar navbar-expand-sm bg-light navbar-danger">
|
||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#Navbar">
|
||||
<span class="navbar-toggler-icon"><img
|
||||
src="https://img.icons8.com/material-outlined/24/000000/menu--v1.png" /></span>
|
||||
</button>
|
||||
<!-- Brand/logo -->
|
||||
<a href="<?php echo base_url();?>"><img class="navbar-brand" id="logo" src="<?php echo base_url();?>assets/frontend/img/Logo Files/Logo Files/SVG/Artboard 1 copy.svg" /></a>
|
||||
|
||||
<!-- Links -->
|
||||
<div class="collapse navbar-collapse" id="Navbar">
|
||||
<ul class="navbar-nav ml-auto">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link text-dark" href="/buy">Buy</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link text-dark" href="/sell">Sell</a>
|
||||
</li>
|
||||
<?php if($this->session->userdata('user_id')) {?>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link text-dark" href="/member/profile">Account</a>
|
||||
</li>
|
||||
<?php }?>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link text-dark" href="/contact">Contact</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a href="/member/<?php echo ($this->session->userdata('user_id')) ? 'profile' : 'login'; ?>" ><img style="height: 20px;margin-top: 10px;" src="https://img.icons8.com/ios-filled/26/000000/user.png" /></a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
Executable
+233
@@ -0,0 +1,233 @@
|
||||
|
||||
|
||||
<!-- book_wrap_start -->
|
||||
<div class="container-fluid back_img ">
|
||||
<div class="row">
|
||||
<div class="col-12 col-sm-2"></div>
|
||||
|
||||
<div class="col-12 col-sm-8 text-center">
|
||||
<div class="row">
|
||||
<div class="col-12 col-sm-1"></div>
|
||||
<div class="col-12 col-sm-10">
|
||||
<h1 class="mt-2"><b style="text-transform: uppercase;color:white !important;" > <?php echo $this->_data['content']['main_page_heading']->content ?? 'Outline Gurus'; ?></b></h1>
|
||||
</div>
|
||||
<div class="col-12 col-sm-1"></div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-12 col-sm-1"></div>
|
||||
<div class="col-12 col-sm-10" style="">
|
||||
<p class=" mt-2 mb-2" style="text-transform: uppercase;color:white;" ><?php echo $this->_data['content']['main_page_sub_heading']->content ?? ''; ?></p>
|
||||
</div>
|
||||
<div class="col-12 col-sm-1"></div>
|
||||
|
||||
</div>
|
||||
<div class="row mb-2">
|
||||
<div class="col-12 col-sm-12 col-md-12 col-lg-5 mt-2" >
|
||||
<div class="row">
|
||||
<div class="col-12 " style="max-height: 180px;min-height: 180px;" >
|
||||
<div class="text_div" style="text-transform: uppercase;color:white;font-weight:bold;font-size:18px;" >
|
||||
<?php echo $this->_data['content']['main_page_left_heading']->content ?? ''; ?>
|
||||
<?php echo $this->_data['content']['main_page_left_sub_heading']->content ?? ''; ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 " >
|
||||
<a href="/buy" class="btn btn-success" style="text-transform: uppercase;color:white;font-weight:bold; " >Search Outlines</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 col-sm-12 col-md-12 col-lg-2 mt-2"></div>
|
||||
<div class="col-12 col-sm-12 col-md-12 col-lg-5 mt-2" >
|
||||
<div class="row">
|
||||
<div class="col-12 " style="max-height: 180px;min-height: 180px;" >
|
||||
<div class="text_div" style="text-transform: uppercase;color:white;font-weight:bold;font-size:18px;" >
|
||||
<?php echo $this->_data['content']['main_page_right_sub_heading']->content ?? ''; ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 " >
|
||||
<a href="/sell" class="btn btn-primary " style="text-transform: uppercase;color:white;background-color:#0099CD;border-color:#0099CD;font-weight:bold;" >Get Started</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-sm-2"></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- book_wrap_end -->
|
||||
|
||||
|
||||
<div class="container-fluid ">
|
||||
<div class="row">
|
||||
<div class="col-sm-12 col-lg-3 col-12 col-md-12 text-center">
|
||||
<div class="card card-body border border-0 p-0 h-100" >
|
||||
<div class="text-center">
|
||||
<img src="/assets/frontend/img/black-36dp/2x/outline_school_black_36dp.png" alt="course & Professor"
|
||||
class="mt-3 rounded-circle border border-primary p-2 text-center child inline-block-child"
|
||||
style="width:60px;">
|
||||
</div>
|
||||
<h4 class="card-title child mt-4" style="text-transform: capitalize;" ><?php echo $this->_data['content']['circle_icon_1_heading']->content ?? 'Made for Your Course & Professor'; ?></h4>
|
||||
<p class="card-text"> <?php echo $this->_data['content']['circle_icon_1_sub_heading']->content ?? 'Tailored to your needs for optimal exam preparation'; ?></p>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-12 col-lg-3 col-12 col-md-12 text-center">
|
||||
<div class="card h-100 card-body border border-0 p-0 ">
|
||||
<div class="text-center">
|
||||
<img src="/assets/frontend/img/black-24dp/2x/outline_calculate_black_24dp.png" alt="Word count"
|
||||
class="mr-3 mt-3 rounded-circle border border-primary p-2" style="width:60px;">
|
||||
</div>
|
||||
<h4 class="card-title child mt-4" style="text-transform: capitalize;">
|
||||
<?php echo $this->_data['content']['circle_icon_2_heading']->content ?? 'Word Count'; ?></h4>
|
||||
<p class="card-text"> <?php echo $this->_data['content']['circle_icon_2_sub_heading']->content ?? 'Longer is not always better but it doesn't hurt!'; ?></p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-12 col-lg-3 col-12 col-md-12 text-center">
|
||||
<div class="card h-100 card-body border border-0 p-0 ">
|
||||
<div class="text-center">
|
||||
<img src="/assets/frontend/img/chat/2x/sharp_chat_bubble_outline_black_24dp.png" alt="Ratings"
|
||||
class="mr-3 mt-3 rounded-circle border border-primary p-2" style="width:60px;">
|
||||
</div>
|
||||
<h4 class="card-title child mt-4" style="text-transform: capitalize;"> <?php echo $this->_data['content']['circle_icon_3_heading']->content ?? 'Ratings & reviews'; ?></h4>
|
||||
<p class="card-text"> <?php echo $this->_data['content']['circle_icon_3_sub_heading']->content ?? 'See prior buyers ratings and reviews'; ?></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-12 col-lg-3 col-12 col-md-12 text-center">
|
||||
<div class="card h-100 card-body border border-0 p-0 ">
|
||||
<div class="text-center">
|
||||
<img src="/assets/frontend/img/black-36dp/2x/outline_school_black_36dp.png" alt="Satisfaction"
|
||||
class="mr-3 mt-3 rounded-circle border border-primary p-2" style="width: 60px">
|
||||
</div>
|
||||
|
||||
<h4 class="card-title child mt-4" style="text-transform: capitalize;"> <?php echo $this->_data['content']['circle_icon_4_heading']->content ?? 'Satisfaction Guaranteed'; ?></h4>
|
||||
<p> <?php echo $this->_data['content']['circle_icon_4_sub_heading']->content ?? 'Not Satisfied? <br> Let us know within 24 hours and you will be able to download a similar outline for free'; ?></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- outlines_lecture_notes_started -->
|
||||
<!-- <div class="container-fluid row jumbotron text-center">
|
||||
<div class="col-md-12 col-lg-6 col-sm-12 col-12">
|
||||
<h1><u>Outlines</u></h1>
|
||||
<p class="text-left m-0 p-0">Not mich needs to be said about the mystical law school outline. A great tool to
|
||||
have during the semester as you learn the material and it goes without saying an absolute necessity
|
||||
during exam preparation.</p>
|
||||
</div>
|
||||
<div class="col-md-12 col-lg-6 col-sm-12 col-12">
|
||||
<h1><u>Lecture Note</u></h1>
|
||||
<p class="text-left m-0 p-0">Stop frantically typing during class. With Lecture Notes, you can worry less
|
||||
about getting every word our professor babbles and focus on listening to what they're saying. Don't
|
||||
expect these documents to be pretty. Our gurus are typing frantically in class as Professor's lecture.
|
||||
But these can be great tools to have in class so you can focus on listening and be prepared for the
|
||||
dreaded cold call.</p>
|
||||
</div>
|
||||
|
||||
</div> -->
|
||||
<!-- outlines_lecture_notes_ended -->
|
||||
|
||||
|
||||
<!-- About us start -->
|
||||
<div class="container-fluid row bg-secondary">
|
||||
<div class="col-sm-12">
|
||||
<div class="card-group mt-4 p-5">
|
||||
<div class="row">
|
||||
<div class=" order-first col-lg-1">
|
||||
|
||||
</div>
|
||||
<div class="card bg-light col-12 col-sm-12 col-md-12 col-lg-6">
|
||||
<div class="card-body text-left mt-5 mb-5 p-0">
|
||||
<h5 class="card-text mb-2"><?php echo $this->_data['content']['main_page_imag1_heading']->content ?? ''; ?></h5>
|
||||
<!-- <h2 class="card-text mb-2">Who We Are</h2> -->
|
||||
<div class="card-text text-left"><?php echo $this->_data['content']['main_page_imag1_description']->content ?? ''; ?></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="justify-content-center align-self-center order-first bg-secondary col-12 col-sm-12 col-md-12 col-lg-4">
|
||||
|
||||
|
||||
<img src="/assets/frontend/img/meeting-1245776_1920.jpg" width="100%" height="auto">
|
||||
<!-- <img src="/assets/frontend/img/woman-3083377_1920.jpg" width="100%" height="auto"> -->
|
||||
|
||||
</div>
|
||||
<div class=" col-lg-1">
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- About us end -->
|
||||
|
||||
|
||||
<!-- are_you_an_author_starts -->
|
||||
<div class="container-fluid row bg-light">
|
||||
<div class="col-sm-12">
|
||||
<div class="card-group mt-4 p-5">
|
||||
<div class="row">
|
||||
|
||||
<div class=" order-first bg-light col-12 col-sm-12 col-md-12 col-lg-4">
|
||||
|
||||
|
||||
<img src="/assets/frontend/img/office-1081807_1920.jpg" width="100%" height="auto">
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="card bg-light col-12 col-sm-12 col-md-12 col-lg-8">
|
||||
<div class="card-body text-left mt-2 mb-0 p-0">
|
||||
<h5 class="card-text mb-2"><?php echo $this->_data['content']['main_page_imag2_heading']->content ?? ''; ?></h5>
|
||||
<!-- <h2 class="card-text mb-2">Authors</h2> -->
|
||||
<div class="card-text text-left"><?php echo $this->_data['content']['main_page_imag2_description']->content ?? ''; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- are_you_an_author_ends -->
|
||||
|
||||
|
||||
<!-- thinking_about_buying_starts -->
|
||||
<div class=" container-fluid row bg-secondary">
|
||||
<div class="col-sm-12 col-12">
|
||||
<div class="card-group mt-4 p-5">
|
||||
<div class="row">
|
||||
|
||||
<div class="card bg-light col-12 col-sm-12 col-md-12 col-lg-8">
|
||||
<div class="card-body text-left mt-2 mb-2 p-0">
|
||||
<h5 class="card-text mb-2"><?php echo $this->_data['content']['main_page_imag3_heading']->content ?? ''; ?></h5>
|
||||
<div class="card-text text-left"><?php echo $this->_data['content']['main_page_imag3_description']->content ?? ''; ?></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="justify-content-center align-self-center order-first bg-secondary col-12 col-sm-12 col-md-12 col-lg-4">
|
||||
|
||||
|
||||
<img src="/assets/frontend/img/woman-3083377_1920.jpg" width="100%" height="auto">
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<!-- thinking_about_buying_ends -->
|
||||
Executable
+258
@@ -0,0 +1,258 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<style>
|
||||
body {
|
||||
font-family: Verdana, sans-serif;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.row > .column {
|
||||
padding: 0 8px;
|
||||
}
|
||||
|
||||
.row:after {
|
||||
content: "";
|
||||
display: table;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
.column {
|
||||
float: left;
|
||||
width: 33.33%;
|
||||
}
|
||||
|
||||
/* The Modal (background) */
|
||||
.modal {
|
||||
display: none;
|
||||
position: fixed;
|
||||
z-index: 1;
|
||||
padding-top: 100px;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
overflow: auto;
|
||||
background-color: black;
|
||||
}
|
||||
|
||||
/* Modal Content */
|
||||
.modal-content {
|
||||
position: relative;
|
||||
background-color: #fefefe;
|
||||
margin: auto;
|
||||
padding: 0;
|
||||
width: 90%;
|
||||
max-width: 1200px;
|
||||
}
|
||||
|
||||
/* The Close Button */
|
||||
.close {
|
||||
color: white;
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
right: 25px;
|
||||
font-size: 35px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.close:hover,
|
||||
.close:focus {
|
||||
color: #999;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.mySlides {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.cursor {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* Next & previous buttons */
|
||||
.prev,
|
||||
.next {
|
||||
cursor: pointer;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
width: auto;
|
||||
padding: 16px;
|
||||
margin-top: -50px;
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
font-size: 20px;
|
||||
transition: 0.6s ease;
|
||||
border-radius: 0 3px 3px 0;
|
||||
user-select: none;
|
||||
-webkit-user-select: none;
|
||||
}
|
||||
|
||||
/* Position the "next button" to the right */
|
||||
.next {
|
||||
right: 0;
|
||||
border-radius: 3px 0 0 3px;
|
||||
}
|
||||
|
||||
/* On hover, add a black background color with a little bit see-through */
|
||||
.prev:hover,
|
||||
.next:hover {
|
||||
background-color: rgba(0, 0, 0, 0.8);
|
||||
}
|
||||
|
||||
/* Number text (1/3 etc) */
|
||||
.numbertext {
|
||||
color: #f2f2f2;
|
||||
font-size: 12px;
|
||||
padding: 8px 12px;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
img {
|
||||
margin-bottom: -4px;
|
||||
}
|
||||
|
||||
.caption-container {
|
||||
text-align: center;
|
||||
background-color: black;
|
||||
padding: 2px 16px;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.demo {
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
.active,
|
||||
.demo:hover {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
img.hover-shadow {
|
||||
transition: 0.3s;
|
||||
}
|
||||
|
||||
.hover-shadow:hover {
|
||||
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
|
||||
}
|
||||
|
||||
</style>
|
||||
<body >
|
||||
<?php
|
||||
$previous_available = FALSE;
|
||||
if (empty($this->_data['data']->feature_image) && empty($this->_data['data']->feature_image2) && empty($this->_data['data']->feature_image3))
|
||||
{
|
||||
$previous_available = TRUE;
|
||||
}
|
||||
?>
|
||||
|
||||
<?php if ($previous_available): ?>
|
||||
<style type="text/css">
|
||||
footer{
|
||||
position: fixed;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
}
|
||||
</style>
|
||||
<div class="pt-4" >
|
||||
<h2 style="text-align:center">Previews can take 48 hours to upload.</h2>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<h2 style="text-align:center" class="pt-4">Preview Notes</h2>
|
||||
|
||||
<div class="row" style="margin: 0px;">
|
||||
<div class="column">
|
||||
<img src="<?php echo $this->_data['data']->feature_image ?? ''; ?>" onerror="this.src='https://upload.wikimedia.org/wikipedia/commons/thumb/a/ac/No_image_available.svg/1024px-No_image_available.svg.png'" style="width:100%" onclick="openModal();currentSlide(1)" class="hover-shadow cursor">
|
||||
</div>
|
||||
<?php if($this->_data['data']->feature_image2) ?>
|
||||
<div class="column">
|
||||
<img src="<?php echo $this->_data['data']->feature_image2 ?? ''; ?>" onerror="this.src='https://upload.wikimedia.org/wikipedia/commons/thumb/a/ac/No_image_available.svg/1024px-No_image_available.svg.png'" style="width:100%" onclick="openModal();currentSlide(2)" class="hover-shadow cursor">
|
||||
</div>
|
||||
<div class="column">
|
||||
<img src="<?php echo $this->_data['data']->feature_image3 ?? ''; ?>" onerror="this.src='https://upload.wikimedia.org/wikipedia/commons/thumb/a/ac/No_image_available.svg/1024px-No_image_available.svg.png'" style="width:100%" onclick="openModal();currentSlide(3)" class="hover-shadow cursor">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="myModal" class="modal">
|
||||
<span class="close cursor" onclick="closeModal()">×</span>
|
||||
<div class="modal-content">
|
||||
|
||||
<div class="mySlides">
|
||||
<div class="numbertext">1 / 3</div>
|
||||
<img src="<?php echo $this->_data['data']->feature_image ?? ''; ?>" onerror="this.src='https://upload.wikimedia.org/wikipedia/commons/thumb/a/ac/No_image_available.svg/1024px-No_image_available.svg.png'" style="width:100%">
|
||||
</div>
|
||||
|
||||
<div class="mySlides">
|
||||
<div class="numbertext">2 / 3</div>
|
||||
<img src="<?php echo $this->_data['data']->feature_image2 ?? ''; ?>" onerror="this.src='https://upload.wikimedia.org/wikipedia/commons/thumb/a/ac/No_image_available.svg/1024px-No_image_available.svg.png'" style="width:100%">
|
||||
</div>
|
||||
|
||||
<div class="mySlides">
|
||||
<div class="numbertext">3 / 3</div>
|
||||
<img src="<?php echo $this->_data['data']->feature_image3 ?? ''; ?>" onerror="this.src='https://upload.wikimedia.org/wikipedia/commons/thumb/a/ac/No_image_available.svg/1024px-No_image_available.svg.png'" style="width:100%">
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<a class="prev" onclick="plusSlides(-1)">❮</a>
|
||||
<a class="next" onclick="plusSlides(1)">❯</a>
|
||||
|
||||
<div class="caption-container">
|
||||
<p id="caption"></p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function openModal() {
|
||||
document.getElementById("myModal").style.display = "block";
|
||||
}
|
||||
|
||||
function closeModal() {
|
||||
document.getElementById("myModal").style.display = "none";
|
||||
}
|
||||
|
||||
var slideIndex = 1;
|
||||
showSlides(slideIndex);
|
||||
|
||||
function plusSlides(n) {
|
||||
showSlides(slideIndex += n);
|
||||
}
|
||||
|
||||
function currentSlide(n) {
|
||||
showSlides(slideIndex = n);
|
||||
}
|
||||
|
||||
function showSlides(n) {
|
||||
var i;
|
||||
var slides = document.getElementsByClassName("mySlides");
|
||||
var dots = document.getElementsByClassName("demo");
|
||||
var captionText = document.getElementById("caption");
|
||||
if (n > slides.length) {slideIndex = 1}
|
||||
if (n < 1) {slideIndex = slides.length}
|
||||
for (i = 0; i < slides.length; i++) {
|
||||
slides[i].style.display = "none";
|
||||
}
|
||||
for (i = 0; i < dots.length; i++) {
|
||||
dots[i].className = dots[i].className.replace(" active", "");
|
||||
}
|
||||
slides[slideIndex-1].style.display = "block";
|
||||
dots[slideIndex-1].className += " active";
|
||||
captionText.innerHTML = dots[slideIndex-1].alt;
|
||||
}
|
||||
</script>
|
||||
<?php endif; ?>
|
||||
</body>
|
||||
</html>
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
<?php echo $this->_data['data']['content']; ?>
|
||||
Executable
+563
@@ -0,0 +1,563 @@
|
||||
<link href="https://cdn.datatables.net/1.10.24/css/jquery.dataTables.min.css" type="stylesheet">
|
||||
<link href="/assets/css/vendor_full.css" rel="stylesheet">
|
||||
<link href="/assets/css/styles.css" rel="stylesheet">
|
||||
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/css/toastr.min.css"/>
|
||||
|
||||
<script src="/assets/js/core.js"></script>
|
||||
<script src="/assets/js/image_gallery.js"></script>
|
||||
<script src="/assets/js/vendor_full.js"></script>
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/js/toastr.min.js"></script>
|
||||
|
||||
<style>
|
||||
.modal_suggestion{
|
||||
color:blue !important;
|
||||
}
|
||||
#file_upload2{
|
||||
display: none;
|
||||
}
|
||||
|
||||
.select2-container .select2-selection--single {
|
||||
height: 36px !important;
|
||||
}
|
||||
.select2-container--default .select2-selection--single .select2-selection__rendered{
|
||||
line-height: 32px !important;
|
||||
}
|
||||
.error{
|
||||
color:red !important;
|
||||
}
|
||||
</style>
|
||||
<!-- sell_outline_text_start -->
|
||||
<div class="container-fluid sell_image_bg ">
|
||||
<div class="row" style="margin-top: -30px;">
|
||||
<div class="col-12 col-md-12 col-sm-10">
|
||||
<div class="row">
|
||||
<div class="col-12 col-md-12 col-sm-12">
|
||||
<h1 class="text-center mt-0"><b> <?php echo $this->_data['content']['sell_page_main_heading']->content ?? ''; ?></b></h1>
|
||||
<h3 class="text-center mt-1"><b> <?php echo $this->_data['content']['sell_page_sub_heading']->content ?? ''; ?></b></h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- sell_outline_text_end -->
|
||||
|
||||
<!-- upload_form_start -->
|
||||
<?php if($this->session->userdata('user_id')) {?>
|
||||
<div class="container-fluid ">
|
||||
<div class="col-12 col-md-12 col-sm-1"></div>
|
||||
<div class="col-12 col-md-12 col-sm-10">
|
||||
<!-- form_container_start -->
|
||||
<div class="row">
|
||||
<div class="col-12 col-sm-2"></div>
|
||||
<div class="col-12 col-sm-8 p-5">
|
||||
<?php if (strlen($error) > 0) : ?>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="alert alert-danger" role="alert">
|
||||
<?php echo $error; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if (strlen($success) > 0) : ?>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="alert alert-success" role="success">
|
||||
<?php echo $success; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<form autocomplete="off" class=" " method="post" action="v1/api/add_inventory" enctype="multipart/form-data" >
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-12 col-sm-2"></div>
|
||||
<div class="col-12 col-sm-12">
|
||||
<label for="schools">School <b class="required_field"> * </b></label>
|
||||
<select name="school_id" class="custom-select get_schools_select2 mb-3">
|
||||
<option value="0">Select School</option>
|
||||
</select>
|
||||
<p class="pp">If your School is not listed above, click <a href="javascript:void();" class="modal_suggestion"><u>here</u></a> to submit
|
||||
</p>
|
||||
</div>
|
||||
<div class="col-12 col-sm-2"></div>
|
||||
|
||||
</div>
|
||||
<!-- schools_ended -->
|
||||
|
||||
<!-- classes_started -->
|
||||
<div class="row">
|
||||
<div class="col-12 col-sm-2"></div>
|
||||
<div class="col-12 col-sm-12">
|
||||
<label for="classes">Course <b class="required_field"> * </b></label>
|
||||
<select name="class_id" class="custom-select get_courses_select2 mb-3">
|
||||
<option value="0">Select Course</option>
|
||||
|
||||
</select>
|
||||
|
||||
<p class="pp">If your Course is not listed above, click <a href="javascript:void();" class="modal_suggestion"><u>here</u></a> to submit
|
||||
</p>
|
||||
</div>
|
||||
<div class="col-12 col-sm-2"></div>
|
||||
|
||||
</div>
|
||||
<!-- classes_ended -->
|
||||
|
||||
|
||||
<!-- professor_started -->
|
||||
<div class="row">
|
||||
<div class="col-12 col-sm-2"></div>
|
||||
<div class="col-12 col-sm-12">
|
||||
<label for="prof">Professor <b class="required_field"> * </b></label>
|
||||
<select name="professor_id" class="custom-select get_professors_select2 mb-3">
|
||||
<option value="0">Select Professor</option>
|
||||
|
||||
</select>
|
||||
<p class="pp">If your Professor is not listed above, click <a href="javascript:void();" class="modal_suggestion"><u>here</u></a> to
|
||||
submit</p>
|
||||
</div>
|
||||
<div class="col-12 col-sm-2"></div>
|
||||
|
||||
</div>
|
||||
<!-- professor_ended -->
|
||||
|
||||
<!-- textbook_started -->
|
||||
<div class="row">
|
||||
<div class="col-12 col-sm-2"></div>
|
||||
<div class="col-12 col-sm-12">
|
||||
<label for="book">Textbook <b class="required_field"> </b></label>
|
||||
<input type="text" class="form-control mb-3" name="textbook" valeu="" placeholder="Textbook" />
|
||||
|
||||
</div>
|
||||
<div class="col-12 col-sm-2"></div>
|
||||
|
||||
</div>
|
||||
<!-- textbook_ended -->
|
||||
|
||||
<!-- word_count_started -->
|
||||
<div class="row">
|
||||
<div class="col-12 col-sm-2"></div>
|
||||
<div class="col-12 col-sm-12">
|
||||
<div class="form-group">
|
||||
<label for="wordcount">Word Count <b class="required_field"> * </b></label>
|
||||
<input type="number" name="word_count" class="form-control" placeholder="Enter word count"
|
||||
id="wordcount">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 col-sm-2"></div>
|
||||
|
||||
</div>
|
||||
<!-- word_count_ended -->
|
||||
|
||||
|
||||
<!-- outline_started -->
|
||||
<div class="row">
|
||||
<div class="col-12 col-sm-2"></div>
|
||||
<div class="col-12 col-sm-12">
|
||||
<label for="book">Type <b class="required_field"> * </b></label>
|
||||
|
||||
<select name="note_type" class="custom-select mb-3">
|
||||
<option value="1" selected>Outline</option>
|
||||
<option value="2">Lecture Notes</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-12 col-sm-2"></div>
|
||||
|
||||
</div>
|
||||
<!-- outline_ended -->
|
||||
|
||||
|
||||
<!-- word_count_started -->
|
||||
<div class="row">
|
||||
<div class="col-12 col-sm-2"></div>
|
||||
<div class="col-12 col-sm-12">
|
||||
<div class="form-group">
|
||||
<label for="auth">Year Authored / Course Taken <b class="required_field"> * </b></label>
|
||||
<input type="text" name="year" class="form-control" id="auth">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 col-sm-2"></div>
|
||||
|
||||
</div>
|
||||
<!-- word_count_ended -->
|
||||
|
||||
|
||||
<!-- text_book_ISBN_started -->
|
||||
<!-- <div class="row">
|
||||
<div class="col-12 col-sm-2"></div>
|
||||
<div class="col-12 col-sm-12">
|
||||
<div class="form-group">
|
||||
<label for="isbn">ISBN # (optional)</label>
|
||||
<input type="text" class="form-control" name="isbn" placeholder="Enter book ISBN number"
|
||||
id="isbn">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 col-sm-2"></div>
|
||||
|
||||
</div> -->
|
||||
<!-- text_book_ISBN_ended -->
|
||||
|
||||
|
||||
<!-- paypal_email_started -->
|
||||
<?php if(empty($this->_data['paypal_email'])) { ?>
|
||||
<div class="row">
|
||||
<div class="col-12 col-sm-2"></div>
|
||||
<div class="col-12 col-sm-12">
|
||||
<div class="form-group">
|
||||
<label for="email">PayPal Email Address</label>
|
||||
<small>(PayPal processes payments to you from your sales at the end of each semester)</small>
|
||||
<input type="email" name="paypal_email" class="form-control" placeholder="Enter paypal email"
|
||||
id="email">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 col-sm-2"></div>
|
||||
|
||||
</div>
|
||||
<?php } ?>
|
||||
<!-- paypal_email_ended -->
|
||||
|
||||
<!-- upload_form_button_start -->
|
||||
<div class="row">
|
||||
<div class="col-12 col-sm-2"></div>
|
||||
<div class="col-12 col-sm-12 ">
|
||||
<div class="">
|
||||
<label for="File">Outline <b class="required_field"> * </b></label>
|
||||
<input type="file" name="file_upload" id="file_upload" accept=".doc,.docx"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 col-sm-2"></div>
|
||||
</div>
|
||||
|
||||
<!-- instructions_start -->
|
||||
<div class="row" style="margin-top:10px;">
|
||||
<div class="col-12 col-sm-2"></div>
|
||||
<div class="col-12 col-sm-12">
|
||||
<h5>Final Instructions to Author:</h5>
|
||||
<div class="">
|
||||
<ul class="list-group list-group-flush">
|
||||
<li class="list-group-item">Make sure your name does not appear in the document
|
||||
</li>
|
||||
<li class="list-group-item">Make sure file is saved in following format:
|
||||
ProfessorLastName.Course.Year.doc</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="checkbox mt-4">
|
||||
<label><input type="checkbox" name="remember1"> I agree to Terms and Conditions
|
||||
<a href="/terms_and_conditions"><u>here</u></a></label>
|
||||
</div>
|
||||
<div class="checkbox">
|
||||
<label><input type="checkbox" name="remember2"> I agree to Privacy Policy <a
|
||||
href="/privacy_policy"><u>here</u></a></label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 col-sm-2"></div>
|
||||
</div>
|
||||
|
||||
<!-- instructions_end -->
|
||||
|
||||
<!-- submit_button_start -->
|
||||
<div class="row">
|
||||
<div class="col-12 col-sm-2"></div>
|
||||
<div class="col-12 col-sm-12 ">
|
||||
<div class="mt-4 text-center">
|
||||
<button type="submit" id="submit_form" class="btn btn-primary" >Submit</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12 col-sm-2"></div>
|
||||
</div>
|
||||
|
||||
<!-- submit_button_end -->
|
||||
|
||||
</div>
|
||||
<div class="col-12 col-sm-2"></div>
|
||||
</div>
|
||||
<!-- form_container_end -->
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div class="col-12 col-md-12 col-sm-1"></div>
|
||||
</div>
|
||||
<?php }else{ ?>
|
||||
<center>You Need to <a style="color: #0D72BA !important; font-weight: 700; font-size: larger;" href="member/login">Login</a> or <a style="color: #0D72BA !important; font-weight: 700; font-size: larger;" href="member/register">Register</a> to Sell </center>
|
||||
<br>
|
||||
<br>
|
||||
<?php }?>
|
||||
|
||||
<div class="modal fade" id="loadingModal" style="text-align: center;" tabindex="-1" role="dialog" aria-labelledby="loadingModal" aria-hidden="true">
|
||||
<div style="position: absolute; top:42%;left:33%;color:white;">
|
||||
<div class="spinner-border" role="status">
|
||||
<span class="sr-only">Loading...</span>
|
||||
</div>
|
||||
<h4>The upload will take up to 60 seconds...</h4>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- upload_form_end -->
|
||||
|
||||
<!-- Add suggestion modal start -->
|
||||
<div class="modal fade" id="add-suggestion-modal" tabindex="-1" role="dialog" aria-labelledby="cardAddLabel" aria-hidden="true">
|
||||
<div class="modal-dialog modal-md modal-dialog-centered" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header bg-dark text-white">
|
||||
<h5 class="modal-title" id="cardAddLabel">Submit Suggestion</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true" class="text-white">×</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<form class="p-3 add_suggestion_form" autocomplete="off">
|
||||
|
||||
<div class="form-row justify-content-between">
|
||||
<div class="col-12 my-3">
|
||||
<label for="name" class="required">Name</label>
|
||||
<input type="text" name="name" placeholder="Enter Name" class="form-control name" />
|
||||
</div>
|
||||
|
||||
<div class="col-12 my-3">
|
||||
<label for="email" class="required">Email</label>
|
||||
<input type="email" name="email" placeholder="Enter Email" class="form-control email" />
|
||||
</div>
|
||||
|
||||
<div class="col-12 my-3">
|
||||
<label for="phone" class="required">Suggestion Type</label>
|
||||
<select class="form-control suggestion_type" name="suggestion_type" id="suggestion_type">
|
||||
<option value="0">--Select--</option>
|
||||
<option value="1">School</option>
|
||||
<option value="2">Professor</option>
|
||||
<option value="3">Textbook</option>
|
||||
<option value="4">Course</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="col-12 my-3">
|
||||
<label for="suggestion_name" class="required">Suggestion Name</label>
|
||||
<input type="text" name="suggestion_name" placeholder="Enter Suggestion Name" class="form-control suggestion_name" />
|
||||
</div>
|
||||
|
||||
<div class="col-12 my-3">
|
||||
<label for="additional_notes" class="required">Additional Notes</label>
|
||||
<input type="text" name="additional_notes" placeholder="Enter Additional Notes" class="form-control additional_notes" />
|
||||
</div>
|
||||
|
||||
<div class="col-12 my-3">
|
||||
<button type="submit" class="btn btn-primary submit_suggestion_btn">Submit</button>
|
||||
<a class="btn btn-danger reset_suggestion_form" href="">Reset Form</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Add suggestion modal end -->
|
||||
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
|
||||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
|
||||
|
||||
<script>
|
||||
document.addEventListener('DOMContentLoaded', function()
|
||||
{
|
||||
|
||||
//hammad
|
||||
$('.mkd-upload-btn2').unbind();
|
||||
$('.mkd-upload-btn2').on('click',function(e){
|
||||
e.preventDefault()
|
||||
$('#file_upload2').click();
|
||||
})
|
||||
|
||||
function validateEmail(email)
|
||||
{
|
||||
const re = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
|
||||
return re.test(email);
|
||||
}
|
||||
function onFileUploadedCustom(event, id,name="file_upload") {
|
||||
var selectedFile = event.target.files[0];
|
||||
|
||||
var formData = new FormData();
|
||||
formData.append("file", selectedFile, "file");
|
||||
jQuery.ajax({
|
||||
url: "/v1/api/file/upload",
|
||||
type: "post",
|
||||
data: formData,
|
||||
processData: false,
|
||||
contentType: false,
|
||||
cache: false,
|
||||
async: false,
|
||||
success: function (data) {
|
||||
$("#feature_image").val(data.file);
|
||||
$("#feature_image_id").val(data.id);
|
||||
$("#file_text2").html(data.file);
|
||||
}
|
||||
});
|
||||
}
|
||||
// $('.select2').select2();
|
||||
$('.modal_suggestion').on('click',function(e){
|
||||
e.preventDefault();
|
||||
$('#add-suggestion-modal').modal('toggle');
|
||||
return false;
|
||||
})
|
||||
|
||||
$(document).ready(function() {
|
||||
// on click add suggestion link
|
||||
$('.add_suggestion_link').click(function(e){
|
||||
e.preventDefault();
|
||||
$('#add-suggestion-modal').modal('toggle');
|
||||
return false;
|
||||
});
|
||||
|
||||
// submit suggestion form
|
||||
$('.add_suggestion_form').submit(function (e) {
|
||||
e.preventDefault();
|
||||
$('.submit_suggestion_btn').prop('disabled', true);
|
||||
|
||||
var name = $('.name').val();
|
||||
var email = $('.email').val();
|
||||
var suggestion_type = $('.suggestion_type').val();
|
||||
var suggestion_name = $('.suggestion_name').val();
|
||||
var additional_notes = $('.additional_notes').val();
|
||||
|
||||
if (name == '' || name == 0) {
|
||||
// toastr.error('Insert name');
|
||||
$('.submit_suggestion_btn').prop('disabled', false);
|
||||
return false;
|
||||
}
|
||||
|
||||
if (email == '' || email == 0) {
|
||||
toastr.error('Insert email');
|
||||
$('.submit_suggestion_btn').prop('disabled', false);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (!validateEmail(email)) {
|
||||
toastr.error('Enter a valid email.');
|
||||
$('.submit_suggestion_btn').prop('disabled', false);
|
||||
return false;
|
||||
}
|
||||
|
||||
if (suggestion_type == '' || suggestion_type == 0) {
|
||||
toastr.error('Select suggestion type');
|
||||
$('.submit_suggestion_btn').prop('disabled', false);
|
||||
return false;
|
||||
}
|
||||
|
||||
if (suggestion_name == '' || suggestion_name == 0) {
|
||||
toastr.error('Insert suggestion name');
|
||||
$('.submit_suggestion_btn').prop('disabled', false);
|
||||
return false;
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: '/v1/api/member/suggestion/add',
|
||||
dataType: 'JSON',
|
||||
timeout: 5000,
|
||||
data: {
|
||||
name: name,
|
||||
email: email,
|
||||
suggestion_type: suggestion_type,
|
||||
suggestion_name: suggestion_name,
|
||||
additional_notes: additional_notes
|
||||
},
|
||||
success: function (response) {
|
||||
if (response.success) {
|
||||
$('#add-suggestion-modal').modal('toggle');
|
||||
toastr.options.timeOut = 1500;
|
||||
toastr.options.fadeOut = 1500;
|
||||
toastr.options.onHidden = function () {
|
||||
location.reload();
|
||||
};
|
||||
toastr.success(response.msg);
|
||||
}
|
||||
if (response.error) {
|
||||
$('#add-suggestion-modal').modal('toggle');
|
||||
toastr.options.timeOut = 1500;
|
||||
toastr.options.fadeOut = 1500;
|
||||
toastr.options.onHidden = function () {
|
||||
location.reload();
|
||||
};
|
||||
toastr.error(response.msg);
|
||||
}
|
||||
},
|
||||
});
|
||||
return false;
|
||||
});
|
||||
|
||||
// reset suggestion form
|
||||
$('.reset_suggestion_form').click(function(e){
|
||||
e.preventDefault();
|
||||
$('.name').val('');
|
||||
$('.email').val('');
|
||||
$('.suggestion_type').val('0');
|
||||
$('.suggestion_name').val('');
|
||||
$('.additional_notes').val('');
|
||||
return false;
|
||||
});
|
||||
});
|
||||
|
||||
$('#submit_form').click(function(e){
|
||||
var valid = true;
|
||||
$('.error').remove();
|
||||
|
||||
if($('select[name="school_id"] option:selected').val()==0)
|
||||
{
|
||||
$('select[name="school_id"]').parent().children('.pp').before('<span class="error">Select School</span>');
|
||||
valid = false
|
||||
}
|
||||
if($('select[name="class_id"] option:selected').val()==0){
|
||||
$('select[name="class_id"]').parent().children('.pp').before('<span class="error">Select Course</span>');
|
||||
valid = false
|
||||
}
|
||||
if($('select[name="professor_id"] option:selected').val()==0){
|
||||
$('select[name="professor_id"]').parent().children('.pp').before('<span class="error">Select Professor</span>');
|
||||
valid = false
|
||||
}
|
||||
if(!$('input[name="word_count"]').val()){
|
||||
$('input[name="word_count"]').after('<span class="error">Enter Word COunt</span>');
|
||||
valid = false
|
||||
}
|
||||
if(!$('input[name="year"]').val()){
|
||||
$('input[name="year"]').after('<span class="error">Enter Year Authored</span>');
|
||||
valid = false
|
||||
}
|
||||
if($('input[name="remember1"]').prop('checked')==false || $('input[name="remember2"]').prop('checked')==false){
|
||||
$('input[name="remember2"]').closest('.checkbox').append('<br><span class="error">Please Select Terms and condition and Privacy Policy</span>');
|
||||
valid = false
|
||||
}
|
||||
|
||||
|
||||
<?php if(empty($this->_data['paypal_email'])) { ?>
|
||||
if($('input[name="paypal_email"]').val() != "" && !validateEmail($('input[name="paypal_email"]').val()) )
|
||||
{
|
||||
$('input[name="paypal_email"]').after('<span class="error">Enter valid paypal email</span>');
|
||||
valid = false
|
||||
}
|
||||
<?php } ?>
|
||||
|
||||
|
||||
if( document.getElementById("file_upload").files.length == 0 ){
|
||||
$('#file_upload').after('<br><span class="error">Please Upload a File</span>');
|
||||
valid = false
|
||||
}
|
||||
if(valid==true){
|
||||
$('#loadingModal').modal('toggle');
|
||||
}else{
|
||||
e.preventDefault();
|
||||
}
|
||||
});
|
||||
|
||||
$('#file_upload').on('change',function(){
|
||||
var fileExtension = ['doc', 'docx'];
|
||||
if ($.inArray($(this).val().split('.').pop().toLowerCase(), fileExtension) == -1) {
|
||||
alert("Only formats are allowed : "+fileExtension.join(', '));
|
||||
$(this).val('');
|
||||
return false;
|
||||
}
|
||||
})
|
||||
}, false)
|
||||
</script>
|
||||
Executable
+5
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
if($content)
|
||||
{
|
||||
echo $content;
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
<?php echo $this->_data['data']['content']; ?>
|
||||
Reference in New Issue
Block a user