This course is not active yet!, please contact your administartor!.
Notice (8): Undefined index: Message [APP/View/Layouts/lms_inner_layout.ctp, line 391]Code Contextob_start();
include $___viewFn;
$___viewFn = '/data/uat/app/View/Layouts/lms_inner_layout.ctp' $___dataForView = array( 'record' => array( [maximum depth reached] ), 'lmstopics' => array([maximum depth reached]), 'relatedcourses' => array( [maximum depth reached] ), 'check_exist' => false, 'languages' => array([maximum depth reached]), 'LastLogin' => array([maximum depth reached]), 's3' => object(Aws\S3\S3Client) {}, 'inputDefaults' => array( [maximum depth reached] ), 'csrfToken' => 'd11f8acd9bcfa9576ba1f4344de060e8676ac6b9e506d3d04cac0e9bbb553f15', 'content_for_layout' => '<script type="text/javascript" src="/js/jquery-min.js"></script> <style> .loadingmessage { position: fixed; left: 0px; top: 0px; width: 100%; height: 100%; z-index: 9999; background: url('https://uatdigipaathshala.cscacademy.org/gradient-design/img/loading.gif') 50% 50% no-repeat rgb(249,249,249); opacity: .8; } </style> <!-- Show buy now dialog box to proceed payment --> <!-- Start this modal box for show alert for enrollment --> <div id="buynowModal" class="modal fade" style="padding-top:6%;"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h4 class="modal-title" style="text-align:center;">Please Enter CSC ID</h4> </div> <div class="modal-body"> <form method="post" action="https://uatdigipaathshala.cscacademy.org/admin/lmscourses/paycscwallet" name="paymentproceed" class="search-popup-inner" style="text-align:center;"> <input type="hidden" name="CourseIds" id="CourseIds" value="" /> <input type="hidden" name="UploadCertificateFile" id="UploadCertificateFile" value="" /> <div> <input type="text" name="cscid" placeholder="CSC ID" maxlength="12" id="cscID" oninput="this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\..*)\./g, '$1');"> </div> <div style="padding-top:6%;"><button type="button" id="paynowcscid" class="bt bt-xs bt-bg bt-secondary inline">Pay Now</button></div> </form> </div> </div> </div> </div> <!-- End dialog box --> <!-- Start this modal box for show alert for All payment gateways --> <div id="pgModal" class="modal fade" style="padding-top:6%;"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h4 class="modal-title" style="text-align:center;">Please Select Payment Gateway</h4> </div> <div class="modal-body"> <form method="post" action="https://uatdigipaathshala.cscacademy.org/admin/lmscourses/" name="pgselected" class="search-popup-inner" style="text-align:center;"> <input type="hidden" name="CourseIds" id="PGCourseIds" value="" /> <div> <input type="radio" name="payment_gateway" id="pgmethod_value" value="2" > CSC Wallet <input type="radio" name="payment_gateway" value="3" id="pgmethod_value" style="margin-left: 10px;"> HDFC </div> <div style="padding-top:6%;"><button type="button" id="pgmethod" class="bt bt-xs bt-bg bt-secondary inline">Proceed Now</button></div> </form> </div> </div> </div> </div> <div id="hdfcModal" class="modal fade" style="padding-top:6%;"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h4 class="modal-title" style="text-align:center;">Please Select Payment Gateway</h4> </div> <div class="modal-body"> <form method="post" action="https://uatdigipaathshala.cscacademy.org/admin/lmscourses/payhdfc" name="hdfcselected" class="search-popup-inner" style="text-align:center;"> <input type="hidden" name="CourseIds" id="HDFCCourseIds" value="" /> <div> <input type="radio" name="payment_gateway" required="required" value="3" style="margin-left: 10px;"> <img src="https://uatdigipaathshala.cscacademy.org//images/hdfclogo.png" width="115" height="50"> </div> <div style="padding-top:6%;"><button type="submit" id="payhdfconly" class="bt bt-xs bt-bg bt-secondary inline">Proceed Now</button></div> </form> </div> </div> </div> </div> <!-- End dialog box --> <!-- Start this modal box for show upload 10th certificate before payment --> <div id="uploadcertificateModal" class="modal fade" style="padding-top:6%;"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h4 class="modal-title" id="uploadmessage" style="text-align:center;"></h4> </div> <div class="modal-body"> <form id="upload10certificateform" method="post" action="https://uatdigipaathshala.cscacademy.org/admin/lmscourses/uploadcertificate" class="search-popup-inner" enctype="multipart/form-data" style="text-align:center;"> <input type="hidden" name="CourseIds" id="UploadCourseIds" value="" /> <div> <input type="file" name="upload10certificate" placeholder="Upload 10th Certificate" accept="image/*" id="10certificate" required="required"> <br> <span>File size should be max 1 MB and format JPEG/PNG</span> </div> <div style="padding-top:6%;"><button type="submit" class="bt bt-xs bt-bg bt-secondary inline">Upload</button></div> </form> </div> </div> </div> </div> <!-- End dialog box --> <!-- Start this modal box for show alert for enrollment --> <div id="showenrollmentModal" class="modal fade" style="padding-top:5%;"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h4 class="modal-title"></h4> </div> <div class="modal-body"> <div id="showenrolledalert"></div> </div> </div> </div> </div> <!-- End this modal box for show alert for enrollment --> <!-- Show loader --> <div id='loadingmessage' class="loadingmessage" style='display:none'> </div> <!-- End loader --> <div id="wrapper-content" class="clearfix"> <section id="page-title" class="single-product-title-wrap single-product-title-margin" > <div data-stellar-background-image="https://uatdigipaathshala.cscacademy.org/lmsfront_layout/img/coursedetails.jpg" data-stellar-background-position="top" data-stellar-background-ratio="0.5" class="page-title-parallax" style="background-image: url('https://uatdigipaathshala.cscacademy.org/lmsfront_layout/img/coursedetails.jpg');background-position:center top;"></div> <div class="container"> <div class="single-product-title-inner pt-bottom" > <div class="m-title"> <h2 class="p-font">COURSE DETAILS</h2> </div> <div class="breadcrumbs-wrap"> <div class="breadcrumbs-inner text-left"> <ul class="breadcrumbs"><li><a href="" class="home"><i class="fa fa-home"></i></a></li><li><a href="#">CSC Academy Services Foundation Program - Part I </a></li><li></li></ul> </div> </div> </div> </div> </section> <main class="single-product-wrap has-sidebar"> <div class="container clearfix"> <div class="row"> This course is not active yet!, please contact your administartor!. </div> </div> </main> </div> <!-- Send data for enrollment through API --> <script> $.noConflict(); jQuery(document).ready(function($){ $(".enroll_now").click(function(evt){ var CourseId = $(this).attr("courseid"); $.ajax({//Make the Ajax Request beforeSend:function(){ $('#loader').show(); }, type: "POST", url: "https://uatdigipaathshala.cscacademy.org/admin/lmscourses/enrollstd", data:"courseId="+CourseId, success: function(data){//html = the server response html code $('#loadingmessage').hide(); //store data $error = JSON.parse(data).error; $message = JSON.parse(data).message; //show modal box $("#showenrollmentModal").modal('show'); if($error =='1') { $('#showenrolledalert').html('<div style="text-align: center;">'+$message+'<br><br><a href="https://uatdigipaathshala.cscacademy.org/student"><button type="button" class="btn-sm btn-primary">Login Now</button></a></div>'); } else { $('#showenrolledalert').html('<div style="text-align: center;">'+$message+'<br><br><a href="https://uatdigipaathshala.cscacademy.org/admin/lmscourses/mycourses"><button type="button" class="btn-sm btn-primary">My Course</button></a></div>'); } }, error:function(){ alert("Internal Error Server Not found!");} }); }); // Check restricted course for restricted categories $(".restricted_std").click(function(evt){ var CourseId = $(this).attr("courseid"); $.ajax({//Make the Ajax Request beforeSend:function(){ $('#loader').show(); }, type: "POST", url: "https://uatdigipaathshala.cscacademy.org/admin/lmscourses/restrictedstd", data:"courseId="+CourseId, success: function(data){//html = the server response html code $('#loadingmessage').hide(); //store data $error = JSON.parse(data).error; $message = JSON.parse(data).message; //show modal box $("#showenrollmentModal").modal('show'); if($error =='1') { $('#showenrolledalert').html('<div style="text-align: center;">'+$message+'<br><br><a href="https://uatdigipaathshala.cscacademy.org/student"><button type="button" class="btn-sm btn-primary">Login Now</button></a></div>'); } else { $('#showenrolledalert').html('<div style="text-align: center;">'+$message+'<br><br><a href="https://uatdigipaathshala.cscacademy.org/admin/lmscourses/mycourses"><button type="button" class="btn-sm btn-primary">My Course</button></a></div>'); } }, error:function(){ alert("Internal Error Server Not found!");} }); }); // SHOW BUY NOW POP UP $(".buy_now").click(function(evt){ var CourseId = $(this).attr("courseid"); $.ajax({//Make the Ajax Request beforeSend:function(){ $('#loadingmessage').show(); }, type: "POST", url: "https://uatdigipaathshala.cscacademy.org/admin/lmscourses/bUyNowstd", data:"courseId="+CourseId, success: function(data){//html = the server response html code $('#loadingmessage').hide(); //store data $error = JSON.parse(data).error; $message = JSON.parse(data).message; if($error =='1') { //show modal box $("#showenrollmentModal").modal('show'); $('#showenrolledalert').html('<div style="text-align: center;">'+$message+'<br><br><a href="https://uatdigipaathshala.cscacademy.org/student"><button type="button" class="btn-sm btn-primary">Login Now</button></a></div>'); } else if($error =='5' || $error =='6' || $error =='7') { $Courseid = JSON.parse(data).CourseId; //check if course CCA Course to upload 10th certificate before proceeding payment. if($Courseid == '2') { $("#uploadcertificateModal").modal('show'); $("#UploadCourseIds").val($Courseid); $('#uploadmessage').html('Please Upload 10th certificate first!!'); } else if($Courseid == '74' || $Courseid == '77') { $("#uploadcertificateModal").modal('show'); $("#UploadCourseIds").val($Courseid); $('#uploadmessage').html('Please Upload 12th certificate first!!'); } else { //show payment gateways window if($error =='5') { $("#pgModal").modal('show'); $("#PGCourseIds").val($Courseid); } else if($error =='7') { $("#hdfcModal").modal('show'); $("#HDFCCourseIds").val($Courseid); } else if($error =='6') { $("#buynowModal").modal('show'); $("#CourseIds").val($Courseid); } else { alert('Something went wrong into PG!!'); return false(); } } } else { //show modal box $("#showenrollmentModal").modal('show'); $('#showenrolledalert').html('<div style="text-align: center;">'+$message+'<br><br><a href="https://uatdigipaathshala.cscacademy.org/admin/lmscourses/mycourses"><button type="button" class="btn-sm btn-primary">My Course</button></a></div>'); } }, error:function(){ alert("Internal Error Server Not found!");} }); }); // Upload 10th certificate through ajax $("#upload10certificateform").on('submit',(function(e) { //check file size first!! var file_size = $('#10certificate')[0].files[0].size; if(file_size>2097152) { alert("File size is greater than 2MB, please upload again!!"); return false; } e.preventDefault(); $.ajax({ beforeSend:function(){ $("#uploadcertificateModal").modal('hide'); $('#loadingmessage').show(); }, url: "https://uatdigipaathshala.cscacademy.org/admin/lmscourses/upload10certificate", type: "POST", data: new FormData(this), contentType: false, cache: false, processData:false, success: function(data) { if(JSON.parse(data).error =='4') { $("#uploadcertificateModal").modal('hide'); $("#buynowModal").modal('show'); $("#CourseIds").val($Courseid); $("#UploadCertificateFile").val(JSON.parse(data).UploadCertificateFile); } else { alert(JSON.parse(data).message); } }, error: function(e) { $("#err").html(e).fadeIn(); } }); })); //check CSCID is associated with cscacademy centre or not $("#paynowcscid").click(function(evt){ var cscID = $('#cscID').val(); var courseid = "1"; var vedic_math_medium = "<pre class="cake-error"><a href="javascript:void(0);" onclick="document.getElementById('cakeErr67f7e702dd9b2-trace').style.display = (document.getElementById('cakeErr67f7e702dd9b2-trace').style.display == 'none' ? '' : 'none');"><b>Notice</b> (8)</a>: Undefined variable: auth_user [<b>APP/View/Lmscourses/coursedetails.ctp</b>, line <b>774</b>]<div id="cakeErr67f7e702dd9b2-trace" class="cake-stack-trace" style="display: none;"><a href="javascript:void(0);" onclick="document.getElementById('cakeErr67f7e702dd9b2-code').style.display = (document.getElementById('cakeErr67f7e702dd9b2-code').style.display == 'none' ? '' : 'none')">Code</a> <a href="javascript:void(0);" onclick="document.getElementById('cakeErr67f7e702dd9b2-context').style.display = (document.getElementById('cakeErr67f7e702dd9b2-context').style.display == 'none' ? '' : 'none')">Context</a><pre id="cakeErr67f7e702dd9b2-code" class="cake-code-dump" style="display: none;"><code><span style="color: #000000"> ob_start();</span></code> <code><span style="color: #000000"></span></code> <span class="code-highlight"><code><span style="color: #000000"> include $___viewFn;</span></code></span></pre><pre id="cakeErr67f7e702dd9b2-context" class="cake-context" style="display: none;">$___viewFn = '/data/uat/app/View/Lmscourses/coursedetails.ctp' $___dataForView = array( 'record' => array( [maximum depth reached] ), 'lmstopics' => array([maximum depth reached]), 'relatedcourses' => array( [maximum depth reached] ), 'check_exist' => false, 'languages' => array([maximum depth reached]), 'LastLogin' => array([maximum depth reached]), 's3' => object(Aws\S3\S3Client) {}, 'inputDefaults' => array( [maximum depth reached] ), 'csrfToken' => 'd11f8acd9bcfa9576ba1f4344de060e8676ac6b9e506d3d04cac0e9bbb553f15' ) $record = array( 'Lmsuser' => array( [maximum depth reached] ), 'Lmscourse' => array( [maximum depth reached] ) ) $lmstopics = array() $relatedcourses = array( (int) 0 => array( [maximum depth reached] ) ) $check_exist = false $languages = array() $LastLogin = array() $s3 = object(Aws\S3\S3Client) {} $inputDefaults = array( 'inputDefaults' => array( [maximum depth reached] ) ) $csrfToken = 'd11f8acd9bcfa9576ba1f4344de060e8676ac6b9e506d3d04cac0e9bbb553f15'</pre><pre class="stack-trace">include - APP/View/Lmscourses/coursedetails.ctp, line 774 View::_evaluate() - CORE/Cake/View/View.php, line 915 View::_render() - CORE/Cake/View/View.php, line 879 View::render() - CORE/Cake/View/View.php, line 470 Controller::render() - CORE/Cake/Controller/Controller.php, line 959 Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 110 Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 85 [main] - APP/webroot/index.php, line 96</pre></div></pre>"; var csrfToken = "d11f8acd9bcfa9576ba1f4344de060e8676ac6b9e506d3d04cac0e9bbb553f15"; // alert(courseid); $.ajax({//Make the Ajax Request beforeSend:function(){ $("#buynowModal").modal('hide'); $('#loadingmessage').show(); }, type: "POST", url: "https://uatdigipaathshala.cscacademy.org/admin/users/checkCscacademyonboarding", // data:"cscID="+cscID+"course_id="+courseid, data:{cscID:cscID,courseid:courseid,vedic_math_medium:vedic_math_medium,csrfToken:csrfToken}, success: function(data){//html = the server response html code $('#loadingmessage').hide(); if(JSON.parse(data).count =='1') { document.paymentproceed.submit(); } else if(JSON.parse(data).count =='2') { document.paymentproceed.submit(); } else if(JSON.parse(data).count =='3') { alert('Oops!! Seats are full please try in another batch.'); } else if(JSON.parse(data).count =='4') { alert('Oops!! Payments are closed now for this course.'); } else if(JSON.parse(data).count =='5') { document.paymentproceed.submit(); } else if(JSON.parse(data).count =='6') { alert('Kindly register with Spoken Tutorial(Plan 1- All Courses) to Enroll students in This Course'); } else { $("#buynowModal").modal('show'); alert('This course is not active for this VLE!!'); } }, error:function(){ alert("Internal Error Server Not found!");} }); }); $("#pgmethod").click(function(evt){ var pgmethod = $('input[name="payment_gateway"]:checked').val(); if(pgmethod ==2) { $("#pgModal").modal('hide'); $("#buynowModal").modal('show'); $("#CourseIds").val($Courseid); } else if(pgmethod ==3) { $("#pgModal").modal('hide'); $("#hdfcModal").modal('show'); $("#HDFCCourseIds").val($Courseid); } else { alert('Error due to network!!'); return false(); } }); }); </script> ', 'scripts_for_layout' => '', 'title_for_layout' => 'Lmscourses' ) $record = array( 'Lmsuser' => array( [maximum depth reached] ), 'Lmscourse' => array( [maximum depth reached] ) ) $lmstopics = array() $relatedcourses = array( (int) 0 => array( [maximum depth reached] ) ) $check_exist = false $languages = array() $LastLogin = array() $s3 = object(Aws\S3\S3Client) {} $inputDefaults = array( 'inputDefaults' => array( [maximum depth reached] ) ) $csrfToken = 'd11f8acd9bcfa9576ba1f4344de060e8676ac6b9e506d3d04cac0e9bbb553f15' $content_for_layout = '<script type="text/javascript" src="/js/jquery-min.js"></script> <style> .loadingmessage { position: fixed; left: 0px; top: 0px; width: 100%; height: 100%; z-index: 9999; background: url('https://uatdigipaathshala.cscacademy.org/gradient-design/img/loading.gif') 50% 50% no-repeat rgb(249,249,249); opacity: .8; } </style> <!-- Show buy now dialog box to proceed payment --> <!-- Start this modal box for show alert for enrollment --> <div id="buynowModal" class="modal fade" style="padding-top:6%;"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h4 class="modal-title" style="text-align:center;">Please Enter CSC ID</h4> </div> <div class="modal-body"> <form method="post" action="https://uatdigipaathshala.cscacademy.org/admin/lmscourses/paycscwallet" name="paymentproceed" class="search-popup-inner" style="text-align:center;"> <input type="hidden" name="CourseIds" id="CourseIds" value="" /> <input type="hidden" name="UploadCertificateFile" id="UploadCertificateFile" value="" /> <div> <input type="text" name="cscid" placeholder="CSC ID" maxlength="12" id="cscID" oninput="this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\..*)\./g, '$1');"> </div> <div style="padding-top:6%;"><button type="button" id="paynowcscid" class="bt bt-xs bt-bg bt-secondary inline">Pay Now</button></div> </form> </div> </div> </div> </div> <!-- End dialog box --> <!-- Start this modal box for show alert for All payment gateways --> <div id="pgModal" class="modal fade" style="padding-top:6%;"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h4 class="modal-title" style="text-align:center;">Please Select Payment Gateway</h4> </div> <div class="modal-body"> <form method="post" action="https://uatdigipaathshala.cscacademy.org/admin/lmscourses/" name="pgselected" class="search-popup-inner" style="text-align:center;"> <input type="hidden" name="CourseIds" id="PGCourseIds" value="" /> <div> <input type="radio" name="payment_gateway" id="pgmethod_value" value="2" > CSC Wallet <input type="radio" name="payment_gateway" value="3" id="pgmethod_value" style="margin-left: 10px;"> HDFC </div> <div style="padding-top:6%;"><button type="button" id="pgmethod" class="bt bt-xs bt-bg bt-secondary inline">Proceed Now</button></div> </form> </div> </div> </div> </div> <div id="hdfcModal" class="modal fade" style="padding-top:6%;"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h4 class="modal-title" style="text-align:center;">Please Select Payment Gateway</h4> </div> <div class="modal-body"> <form method="post" action="https://uatdigipaathshala.cscacademy.org/admin/lmscourses/payhdfc" name="hdfcselected" class="search-popup-inner" style="text-align:center;"> <input type="hidden" name="CourseIds" id="HDFCCourseIds" value="" /> <div> <input type="radio" name="payment_gateway" required="required" value="3" style="margin-left: 10px;"> <img src="https://uatdigipaathshala.cscacademy.org//images/hdfclogo.png" width="115" height="50"> </div> <div style="padding-top:6%;"><button type="submit" id="payhdfconly" class="bt bt-xs bt-bg bt-secondary inline">Proceed Now</button></div> </form> </div> </div> </div> </div> <!-- End dialog box --> <!-- Start this modal box for show upload 10th certificate before payment --> <div id="uploadcertificateModal" class="modal fade" style="padding-top:6%;"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h4 class="modal-title" id="uploadmessage" style="text-align:center;"></h4> </div> <div class="modal-body"> <form id="upload10certificateform" method="post" action="https://uatdigipaathshala.cscacademy.org/admin/lmscourses/uploadcertificate" class="search-popup-inner" enctype="multipart/form-data" style="text-align:center;"> <input type="hidden" name="CourseIds" id="UploadCourseIds" value="" /> <div> <input type="file" name="upload10certificate" placeholder="Upload 10th Certificate" accept="image/*" id="10certificate" required="required"> <br> <span>File size should be max 1 MB and format JPEG/PNG</span> </div> <div style="padding-top:6%;"><button type="submit" class="bt bt-xs bt-bg bt-secondary inline">Upload</button></div> </form> </div> </div> </div> </div> <!-- End dialog box --> <!-- Start this modal box for show alert for enrollment --> <div id="showenrollmentModal" class="modal fade" style="padding-top:5%;"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h4 class="modal-title"></h4> </div> <div class="modal-body"> <div id="showenrolledalert"></div> </div> </div> </div> </div> <!-- End this modal box for show alert for enrollment --> <!-- Show loader --> <div id='loadingmessage' class="loadingmessage" style='display:none'> </div> <!-- End loader --> <div id="wrapper-content" class="clearfix"> <section id="page-title" class="single-product-title-wrap single-product-title-margin" > <div data-stellar-background-image="https://uatdigipaathshala.cscacademy.org/lmsfront_layout/img/coursedetails.jpg" data-stellar-background-position="top" data-stellar-background-ratio="0.5" class="page-title-parallax" style="background-image: url('https://uatdigipaathshala.cscacademy.org/lmsfront_layout/img/coursedetails.jpg');background-position:center top;"></div> <div class="container"> <div class="single-product-title-inner pt-bottom" > <div class="m-title"> <h2 class="p-font">COURSE DETAILS</h2> </div> <div class="breadcrumbs-wrap"> <div class="breadcrumbs-inner text-left"> <ul class="breadcrumbs"><li><a href="" class="home"><i class="fa fa-home"></i></a></li><li><a href="#">CSC Academy Services Foundation Program - Part I </a></li><li></li></ul> </div> </div> </div> </div> </section> <main class="single-product-wrap has-sidebar"> <div class="container clearfix"> <div class="row"> This course is not active yet!, please contact your administartor!. </div> </div> </main> </div> <!-- Send data for enrollment through API --> <script> $.noConflict(); jQuery(document).ready(function($){ $(".enroll_now").click(function(evt){ var CourseId = $(this).attr("courseid"); $.ajax({//Make the Ajax Request beforeSend:function(){ $('#loader').show(); }, type: "POST", url: "https://uatdigipaathshala.cscacademy.org/admin/lmscourses/enrollstd", data:"courseId="+CourseId, success: function(data){//html = the server response html code $('#loadingmessage').hide(); //store data $error = JSON.parse(data).error; $message = JSON.parse(data).message; //show modal box $("#showenrollmentModal").modal('show'); if($error =='1') { $('#showenrolledalert').html('<div style="text-align: center;">'+$message+'<br><br><a href="https://uatdigipaathshala.cscacademy.org/student"><button type="button" class="btn-sm btn-primary">Login Now</button></a></div>'); } else { $('#showenrolledalert').html('<div style="text-align: center;">'+$message+'<br><br><a href="https://uatdigipaathshala.cscacademy.org/admin/lmscourses/mycourses"><button type="button" class="btn-sm btn-primary">My Course</button></a></div>'); } }, error:function(){ alert("Internal Error Server Not found!");} }); }); // Check restricted course for restricted categories $(".restricted_std").click(function(evt){ var CourseId = $(this).attr("courseid"); $.ajax({//Make the Ajax Request beforeSend:function(){ $('#loader').show(); }, type: "POST", url: "https://uatdigipaathshala.cscacademy.org/admin/lmscourses/restrictedstd", data:"courseId="+CourseId, success: function(data){//html = the server response html code $('#loadingmessage').hide(); //store data $error = JSON.parse(data).error; $message = JSON.parse(data).message; //show modal box $("#showenrollmentModal").modal('show'); if($error =='1') { $('#showenrolledalert').html('<div style="text-align: center;">'+$message+'<br><br><a href="https://uatdigipaathshala.cscacademy.org/student"><button type="button" class="btn-sm btn-primary">Login Now</button></a></div>'); } else { $('#showenrolledalert').html('<div style="text-align: center;">'+$message+'<br><br><a href="https://uatdigipaathshala.cscacademy.org/admin/lmscourses/mycourses"><button type="button" class="btn-sm btn-primary">My Course</button></a></div>'); } }, error:function(){ alert("Internal Error Server Not found!");} }); }); // SHOW BUY NOW POP UP $(".buy_now").click(function(evt){ var CourseId = $(this).attr("courseid"); $.ajax({//Make the Ajax Request beforeSend:function(){ $('#loadingmessage').show(); }, type: "POST", url: "https://uatdigipaathshala.cscacademy.org/admin/lmscourses/bUyNowstd", data:"courseId="+CourseId, success: function(data){//html = the server response html code $('#loadingmessage').hide(); //store data $error = JSON.parse(data).error; $message = JSON.parse(data).message; if($error =='1') { //show modal box $("#showenrollmentModal").modal('show'); $('#showenrolledalert').html('<div style="text-align: center;">'+$message+'<br><br><a href="https://uatdigipaathshala.cscacademy.org/student"><button type="button" class="btn-sm btn-primary">Login Now</button></a></div>'); } else if($error =='5' || $error =='6' || $error =='7') { $Courseid = JSON.parse(data).CourseId; //check if course CCA Course to upload 10th certificate before proceeding payment. if($Courseid == '2') { $("#uploadcertificateModal").modal('show'); $("#UploadCourseIds").val($Courseid); $('#uploadmessage').html('Please Upload 10th certificate first!!'); } else if($Courseid == '74' || $Courseid == '77') { $("#uploadcertificateModal").modal('show'); $("#UploadCourseIds").val($Courseid); $('#uploadmessage').html('Please Upload 12th certificate first!!'); } else { //show payment gateways window if($error =='5') { $("#pgModal").modal('show'); $("#PGCourseIds").val($Courseid); } else if($error =='7') { $("#hdfcModal").modal('show'); $("#HDFCCourseIds").val($Courseid); } else if($error =='6') { $("#buynowModal").modal('show'); $("#CourseIds").val($Courseid); } else { alert('Something went wrong into PG!!'); return false(); } } } else { //show modal box $("#showenrollmentModal").modal('show'); $('#showenrolledalert').html('<div style="text-align: center;">'+$message+'<br><br><a href="https://uatdigipaathshala.cscacademy.org/admin/lmscourses/mycourses"><button type="button" class="btn-sm btn-primary">My Course</button></a></div>'); } }, error:function(){ alert("Internal Error Server Not found!");} }); }); // Upload 10th certificate through ajax $("#upload10certificateform").on('submit',(function(e) { //check file size first!! var file_size = $('#10certificate')[0].files[0].size; if(file_size>2097152) { alert("File size is greater than 2MB, please upload again!!"); return false; } e.preventDefault(); $.ajax({ beforeSend:function(){ $("#uploadcertificateModal").modal('hide'); $('#loadingmessage').show(); }, url: "https://uatdigipaathshala.cscacademy.org/admin/lmscourses/upload10certificate", type: "POST", data: new FormData(this), contentType: false, cache: false, processData:false, success: function(data) { if(JSON.parse(data).error =='4') { $("#uploadcertificateModal").modal('hide'); $("#buynowModal").modal('show'); $("#CourseIds").val($Courseid); $("#UploadCertificateFile").val(JSON.parse(data).UploadCertificateFile); } else { alert(JSON.parse(data).message); } }, error: function(e) { $("#err").html(e).fadeIn(); } }); })); //check CSCID is associated with cscacademy centre or not $("#paynowcscid").click(function(evt){ var cscID = $('#cscID').val(); var courseid = "1"; var vedic_math_medium = "<pre class="cake-error"><a href="javascript:void(0);" onclick="document.getElementById('cakeErr67f7e702dd9b2-trace').style.display = (document.getElementById('cakeErr67f7e702dd9b2-trace').style.display == 'none' ? '' : 'none');"><b>Notice</b> (8)</a>: Undefined variable: auth_user [<b>APP/View/Lmscourses/coursedetails.ctp</b>, line <b>774</b>]<div id="cakeErr67f7e702dd9b2-trace" class="cake-stack-trace" style="display: none;"><a href="javascript:void(0);" onclick="document.getElementById('cakeErr67f7e702dd9b2-code').style.display = (document.getElementById('cakeErr67f7e702dd9b2-code').style.display == 'none' ? '' : 'none')">Code</a> <a href="javascript:void(0);" onclick="document.getElementById('cakeErr67f7e702dd9b2-context').style.display = (document.getElementById('cakeErr67f7e702dd9b2-context').style.display == 'none' ? '' : 'none')">Context</a><pre id="cakeErr67f7e702dd9b2-code" class="cake-code-dump" style="display: none;"><code><span style="color: #000000"> ob_start();</span></code> <code><span style="color: #000000"></span></code> <span class="code-highlight"><code><span style="color: #000000"> include $___viewFn;</span></code></span></pre><pre id="cakeErr67f7e702dd9b2-context" class="cake-context" style="display: none;">$___viewFn = '/data/uat/app/View/Lmscourses/coursedetails.ctp' $___dataForView = array( 'record' => array( [maximum depth reached] ), 'lmstopics' => array([maximum depth reached]), 'relatedcourses' => array( [maximum depth reached] ), 'check_exist' => false, 'languages' => array([maximum depth reached]), 'LastLogin' => array([maximum depth reached]), 's3' => object(Aws\S3\S3Client) {}, 'inputDefaults' => array( [maximum depth reached] ), 'csrfToken' => 'd11f8acd9bcfa9576ba1f4344de060e8676ac6b9e506d3d04cac0e9bbb553f15' ) $record = array( 'Lmsuser' => array( [maximum depth reached] ), 'Lmscourse' => array( [maximum depth reached] ) ) $lmstopics = array() $relatedcourses = array( (int) 0 => array( [maximum depth reached] ) ) $check_exist = false $languages = array() $LastLogin = array() $s3 = object(Aws\S3\S3Client) {} $inputDefaults = array( 'inputDefaults' => array( [maximum depth reached] ) ) $csrfToken = 'd11f8acd9bcfa9576ba1f4344de060e8676ac6b9e506d3d04cac0e9bbb553f15'</pre><pre class="stack-trace">include - APP/View/Lmscourses/coursedetails.ctp, line 774 View::_evaluate() - CORE/Cake/View/View.php, line 915 View::_render() - CORE/Cake/View/View.php, line 879 View::render() - CORE/Cake/View/View.php, line 470 Controller::render() - CORE/Cake/Controller/Controller.php, line 959 Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 110 Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 85 [main] - APP/webroot/index.php, line 96</pre></div></pre>"; var csrfToken = "d11f8acd9bcfa9576ba1f4344de060e8676ac6b9e506d3d04cac0e9bbb553f15"; // alert(courseid); $.ajax({//Make the Ajax Request beforeSend:function(){ $("#buynowModal").modal('hide'); $('#loadingmessage').show(); }, type: "POST", url: "https://uatdigipaathshala.cscacademy.org/admin/users/checkCscacademyonboarding", // data:"cscID="+cscID+"course_id="+courseid, data:{cscID:cscID,courseid:courseid,vedic_math_medium:vedic_math_medium,csrfToken:csrfToken}, success: function(data){//html = the server response html code $('#loadingmessage').hide(); if(JSON.parse(data).count =='1') { document.paymentproceed.submit(); } else if(JSON.parse(data).count =='2') { document.paymentproceed.submit(); } else if(JSON.parse(data).count =='3') { alert('Oops!! Seats are full please try in another batch.'); } else if(JSON.parse(data).count =='4') { alert('Oops!! Payments are closed now for this course.'); } else if(JSON.parse(data).count =='5') { document.paymentproceed.submit(); } else if(JSON.parse(data).count =='6') { alert('Kindly register with Spoken Tutorial(Plan 1- All Courses) to Enroll students in This Course'); } else { $("#buynowModal").modal('show'); alert('This course is not active for this VLE!!'); } }, error:function(){ alert("Internal Error Server Not found!");} }); }); $("#pgmethod").click(function(evt){ var pgmethod = $('input[name="payment_gateway"]:checked').val(); if(pgmethod ==2) { $("#pgModal").modal('hide'); $("#buynowModal").modal('show'); $("#CourseIds").val($Courseid); } else if(pgmethod ==3) { $("#pgModal").modal('hide'); $("#hdfcModal").modal('show'); $("#HDFCCourseIds").val($Courseid); } else { alert('Error due to network!!'); return false(); } }); }); </script> ' $scripts_for_layout = '' $title_for_layout = 'Lmscourses'include - APP/View/Layouts/lms_inner_layout.ctp, line 391 View::_evaluate() - CORE/Cake/View/View.php, line 915 View::_render() - CORE/Cake/View/View.php, line 879 View::renderLayout() - CORE/Cake/View/View.php, line 534 View::render() - CORE/Cake/View/View.php, line 478 Controller::render() - CORE/Cake/Controller/Controller.php, line 959 Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 110 Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 85 [main] - APP/webroot/index.php, line 96
Notice (8): Undefined index: Message [APP/View/Layouts/lms_inner_layout.ctp, line 395]Code Contextob_start();
include $___viewFn;
$___viewFn = '/data/uat/app/View/Layouts/lms_inner_layout.ctp' $___dataForView = array( 'record' => array( [maximum depth reached] ), 'lmstopics' => array([maximum depth reached]), 'relatedcourses' => array( [maximum depth reached] ), 'check_exist' => false, 'languages' => array([maximum depth reached]), 'LastLogin' => array([maximum depth reached]), 's3' => object(Aws\S3\S3Client) {}, 'inputDefaults' => array( [maximum depth reached] ), 'csrfToken' => 'd11f8acd9bcfa9576ba1f4344de060e8676ac6b9e506d3d04cac0e9bbb553f15', 'content_for_layout' => '<script type="text/javascript" src="/js/jquery-min.js"></script> <style> .loadingmessage { position: fixed; left: 0px; top: 0px; width: 100%; height: 100%; z-index: 9999; background: url('https://uatdigipaathshala.cscacademy.org/gradient-design/img/loading.gif') 50% 50% no-repeat rgb(249,249,249); opacity: .8; } </style> <!-- Show buy now dialog box to proceed payment --> <!-- Start this modal box for show alert for enrollment --> <div id="buynowModal" class="modal fade" style="padding-top:6%;"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h4 class="modal-title" style="text-align:center;">Please Enter CSC ID</h4> </div> <div class="modal-body"> <form method="post" action="https://uatdigipaathshala.cscacademy.org/admin/lmscourses/paycscwallet" name="paymentproceed" class="search-popup-inner" style="text-align:center;"> <input type="hidden" name="CourseIds" id="CourseIds" value="" /> <input type="hidden" name="UploadCertificateFile" id="UploadCertificateFile" value="" /> <div> <input type="text" name="cscid" placeholder="CSC ID" maxlength="12" id="cscID" oninput="this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\..*)\./g, '$1');"> </div> <div style="padding-top:6%;"><button type="button" id="paynowcscid" class="bt bt-xs bt-bg bt-secondary inline">Pay Now</button></div> </form> </div> </div> </div> </div> <!-- End dialog box --> <!-- Start this modal box for show alert for All payment gateways --> <div id="pgModal" class="modal fade" style="padding-top:6%;"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h4 class="modal-title" style="text-align:center;">Please Select Payment Gateway</h4> </div> <div class="modal-body"> <form method="post" action="https://uatdigipaathshala.cscacademy.org/admin/lmscourses/" name="pgselected" class="search-popup-inner" style="text-align:center;"> <input type="hidden" name="CourseIds" id="PGCourseIds" value="" /> <div> <input type="radio" name="payment_gateway" id="pgmethod_value" value="2" > CSC Wallet <input type="radio" name="payment_gateway" value="3" id="pgmethod_value" style="margin-left: 10px;"> HDFC </div> <div style="padding-top:6%;"><button type="button" id="pgmethod" class="bt bt-xs bt-bg bt-secondary inline">Proceed Now</button></div> </form> </div> </div> </div> </div> <div id="hdfcModal" class="modal fade" style="padding-top:6%;"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h4 class="modal-title" style="text-align:center;">Please Select Payment Gateway</h4> </div> <div class="modal-body"> <form method="post" action="https://uatdigipaathshala.cscacademy.org/admin/lmscourses/payhdfc" name="hdfcselected" class="search-popup-inner" style="text-align:center;"> <input type="hidden" name="CourseIds" id="HDFCCourseIds" value="" /> <div> <input type="radio" name="payment_gateway" required="required" value="3" style="margin-left: 10px;"> <img src="https://uatdigipaathshala.cscacademy.org//images/hdfclogo.png" width="115" height="50"> </div> <div style="padding-top:6%;"><button type="submit" id="payhdfconly" class="bt bt-xs bt-bg bt-secondary inline">Proceed Now</button></div> </form> </div> </div> </div> </div> <!-- End dialog box --> <!-- Start this modal box for show upload 10th certificate before payment --> <div id="uploadcertificateModal" class="modal fade" style="padding-top:6%;"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h4 class="modal-title" id="uploadmessage" style="text-align:center;"></h4> </div> <div class="modal-body"> <form id="upload10certificateform" method="post" action="https://uatdigipaathshala.cscacademy.org/admin/lmscourses/uploadcertificate" class="search-popup-inner" enctype="multipart/form-data" style="text-align:center;"> <input type="hidden" name="CourseIds" id="UploadCourseIds" value="" /> <div> <input type="file" name="upload10certificate" placeholder="Upload 10th Certificate" accept="image/*" id="10certificate" required="required"> <br> <span>File size should be max 1 MB and format JPEG/PNG</span> </div> <div style="padding-top:6%;"><button type="submit" class="bt bt-xs bt-bg bt-secondary inline">Upload</button></div> </form> </div> </div> </div> </div> <!-- End dialog box --> <!-- Start this modal box for show alert for enrollment --> <div id="showenrollmentModal" class="modal fade" style="padding-top:5%;"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h4 class="modal-title"></h4> </div> <div class="modal-body"> <div id="showenrolledalert"></div> </div> </div> </div> </div> <!-- End this modal box for show alert for enrollment --> <!-- Show loader --> <div id='loadingmessage' class="loadingmessage" style='display:none'> </div> <!-- End loader --> <div id="wrapper-content" class="clearfix"> <section id="page-title" class="single-product-title-wrap single-product-title-margin" > <div data-stellar-background-image="https://uatdigipaathshala.cscacademy.org/lmsfront_layout/img/coursedetails.jpg" data-stellar-background-position="top" data-stellar-background-ratio="0.5" class="page-title-parallax" style="background-image: url('https://uatdigipaathshala.cscacademy.org/lmsfront_layout/img/coursedetails.jpg');background-position:center top;"></div> <div class="container"> <div class="single-product-title-inner pt-bottom" > <div class="m-title"> <h2 class="p-font">COURSE DETAILS</h2> </div> <div class="breadcrumbs-wrap"> <div class="breadcrumbs-inner text-left"> <ul class="breadcrumbs"><li><a href="" class="home"><i class="fa fa-home"></i></a></li><li><a href="#">CSC Academy Services Foundation Program - Part I </a></li><li></li></ul> </div> </div> </div> </div> </section> <main class="single-product-wrap has-sidebar"> <div class="container clearfix"> <div class="row"> This course is not active yet!, please contact your administartor!. </div> </div> </main> </div> <!-- Send data for enrollment through API --> <script> $.noConflict(); jQuery(document).ready(function($){ $(".enroll_now").click(function(evt){ var CourseId = $(this).attr("courseid"); $.ajax({//Make the Ajax Request beforeSend:function(){ $('#loader').show(); }, type: "POST", url: "https://uatdigipaathshala.cscacademy.org/admin/lmscourses/enrollstd", data:"courseId="+CourseId, success: function(data){//html = the server response html code $('#loadingmessage').hide(); //store data $error = JSON.parse(data).error; $message = JSON.parse(data).message; //show modal box $("#showenrollmentModal").modal('show'); if($error =='1') { $('#showenrolledalert').html('<div style="text-align: center;">'+$message+'<br><br><a href="https://uatdigipaathshala.cscacademy.org/student"><button type="button" class="btn-sm btn-primary">Login Now</button></a></div>'); } else { $('#showenrolledalert').html('<div style="text-align: center;">'+$message+'<br><br><a href="https://uatdigipaathshala.cscacademy.org/admin/lmscourses/mycourses"><button type="button" class="btn-sm btn-primary">My Course</button></a></div>'); } }, error:function(){ alert("Internal Error Server Not found!");} }); }); // Check restricted course for restricted categories $(".restricted_std").click(function(evt){ var CourseId = $(this).attr("courseid"); $.ajax({//Make the Ajax Request beforeSend:function(){ $('#loader').show(); }, type: "POST", url: "https://uatdigipaathshala.cscacademy.org/admin/lmscourses/restrictedstd", data:"courseId="+CourseId, success: function(data){//html = the server response html code $('#loadingmessage').hide(); //store data $error = JSON.parse(data).error; $message = JSON.parse(data).message; //show modal box $("#showenrollmentModal").modal('show'); if($error =='1') { $('#showenrolledalert').html('<div style="text-align: center;">'+$message+'<br><br><a href="https://uatdigipaathshala.cscacademy.org/student"><button type="button" class="btn-sm btn-primary">Login Now</button></a></div>'); } else { $('#showenrolledalert').html('<div style="text-align: center;">'+$message+'<br><br><a href="https://uatdigipaathshala.cscacademy.org/admin/lmscourses/mycourses"><button type="button" class="btn-sm btn-primary">My Course</button></a></div>'); } }, error:function(){ alert("Internal Error Server Not found!");} }); }); // SHOW BUY NOW POP UP $(".buy_now").click(function(evt){ var CourseId = $(this).attr("courseid"); $.ajax({//Make the Ajax Request beforeSend:function(){ $('#loadingmessage').show(); }, type: "POST", url: "https://uatdigipaathshala.cscacademy.org/admin/lmscourses/bUyNowstd", data:"courseId="+CourseId, success: function(data){//html = the server response html code $('#loadingmessage').hide(); //store data $error = JSON.parse(data).error; $message = JSON.parse(data).message; if($error =='1') { //show modal box $("#showenrollmentModal").modal('show'); $('#showenrolledalert').html('<div style="text-align: center;">'+$message+'<br><br><a href="https://uatdigipaathshala.cscacademy.org/student"><button type="button" class="btn-sm btn-primary">Login Now</button></a></div>'); } else if($error =='5' || $error =='6' || $error =='7') { $Courseid = JSON.parse(data).CourseId; //check if course CCA Course to upload 10th certificate before proceeding payment. if($Courseid == '2') { $("#uploadcertificateModal").modal('show'); $("#UploadCourseIds").val($Courseid); $('#uploadmessage').html('Please Upload 10th certificate first!!'); } else if($Courseid == '74' || $Courseid == '77') { $("#uploadcertificateModal").modal('show'); $("#UploadCourseIds").val($Courseid); $('#uploadmessage').html('Please Upload 12th certificate first!!'); } else { //show payment gateways window if($error =='5') { $("#pgModal").modal('show'); $("#PGCourseIds").val($Courseid); } else if($error =='7') { $("#hdfcModal").modal('show'); $("#HDFCCourseIds").val($Courseid); } else if($error =='6') { $("#buynowModal").modal('show'); $("#CourseIds").val($Courseid); } else { alert('Something went wrong into PG!!'); return false(); } } } else { //show modal box $("#showenrollmentModal").modal('show'); $('#showenrolledalert').html('<div style="text-align: center;">'+$message+'<br><br><a href="https://uatdigipaathshala.cscacademy.org/admin/lmscourses/mycourses"><button type="button" class="btn-sm btn-primary">My Course</button></a></div>'); } }, error:function(){ alert("Internal Error Server Not found!");} }); }); // Upload 10th certificate through ajax $("#upload10certificateform").on('submit',(function(e) { //check file size first!! var file_size = $('#10certificate')[0].files[0].size; if(file_size>2097152) { alert("File size is greater than 2MB, please upload again!!"); return false; } e.preventDefault(); $.ajax({ beforeSend:function(){ $("#uploadcertificateModal").modal('hide'); $('#loadingmessage').show(); }, url: "https://uatdigipaathshala.cscacademy.org/admin/lmscourses/upload10certificate", type: "POST", data: new FormData(this), contentType: false, cache: false, processData:false, success: function(data) { if(JSON.parse(data).error =='4') { $("#uploadcertificateModal").modal('hide'); $("#buynowModal").modal('show'); $("#CourseIds").val($Courseid); $("#UploadCertificateFile").val(JSON.parse(data).UploadCertificateFile); } else { alert(JSON.parse(data).message); } }, error: function(e) { $("#err").html(e).fadeIn(); } }); })); //check CSCID is associated with cscacademy centre or not $("#paynowcscid").click(function(evt){ var cscID = $('#cscID').val(); var courseid = "1"; var vedic_math_medium = "<pre class="cake-error"><a href="javascript:void(0);" onclick="document.getElementById('cakeErr67f7e702dd9b2-trace').style.display = (document.getElementById('cakeErr67f7e702dd9b2-trace').style.display == 'none' ? '' : 'none');"><b>Notice</b> (8)</a>: Undefined variable: auth_user [<b>APP/View/Lmscourses/coursedetails.ctp</b>, line <b>774</b>]<div id="cakeErr67f7e702dd9b2-trace" class="cake-stack-trace" style="display: none;"><a href="javascript:void(0);" onclick="document.getElementById('cakeErr67f7e702dd9b2-code').style.display = (document.getElementById('cakeErr67f7e702dd9b2-code').style.display == 'none' ? '' : 'none')">Code</a> <a href="javascript:void(0);" onclick="document.getElementById('cakeErr67f7e702dd9b2-context').style.display = (document.getElementById('cakeErr67f7e702dd9b2-context').style.display == 'none' ? '' : 'none')">Context</a><pre id="cakeErr67f7e702dd9b2-code" class="cake-code-dump" style="display: none;"><code><span style="color: #000000"> ob_start();</span></code> <code><span style="color: #000000"></span></code> <span class="code-highlight"><code><span style="color: #000000"> include $___viewFn;</span></code></span></pre><pre id="cakeErr67f7e702dd9b2-context" class="cake-context" style="display: none;">$___viewFn = '/data/uat/app/View/Lmscourses/coursedetails.ctp' $___dataForView = array( 'record' => array( [maximum depth reached] ), 'lmstopics' => array([maximum depth reached]), 'relatedcourses' => array( [maximum depth reached] ), 'check_exist' => false, 'languages' => array([maximum depth reached]), 'LastLogin' => array([maximum depth reached]), 's3' => object(Aws\S3\S3Client) {}, 'inputDefaults' => array( [maximum depth reached] ), 'csrfToken' => 'd11f8acd9bcfa9576ba1f4344de060e8676ac6b9e506d3d04cac0e9bbb553f15' ) $record = array( 'Lmsuser' => array( [maximum depth reached] ), 'Lmscourse' => array( [maximum depth reached] ) ) $lmstopics = array() $relatedcourses = array( (int) 0 => array( [maximum depth reached] ) ) $check_exist = false $languages = array() $LastLogin = array() $s3 = object(Aws\S3\S3Client) {} $inputDefaults = array( 'inputDefaults' => array( [maximum depth reached] ) ) $csrfToken = 'd11f8acd9bcfa9576ba1f4344de060e8676ac6b9e506d3d04cac0e9bbb553f15'</pre><pre class="stack-trace">include - APP/View/Lmscourses/coursedetails.ctp, line 774 View::_evaluate() - CORE/Cake/View/View.php, line 915 View::_render() - CORE/Cake/View/View.php, line 879 View::render() - CORE/Cake/View/View.php, line 470 Controller::render() - CORE/Cake/Controller/Controller.php, line 959 Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 110 Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 85 [main] - APP/webroot/index.php, line 96</pre></div></pre>"; var csrfToken = "d11f8acd9bcfa9576ba1f4344de060e8676ac6b9e506d3d04cac0e9bbb553f15"; // alert(courseid); $.ajax({//Make the Ajax Request beforeSend:function(){ $("#buynowModal").modal('hide'); $('#loadingmessage').show(); }, type: "POST", url: "https://uatdigipaathshala.cscacademy.org/admin/users/checkCscacademyonboarding", // data:"cscID="+cscID+"course_id="+courseid, data:{cscID:cscID,courseid:courseid,vedic_math_medium:vedic_math_medium,csrfToken:csrfToken}, success: function(data){//html = the server response html code $('#loadingmessage').hide(); if(JSON.parse(data).count =='1') { document.paymentproceed.submit(); } else if(JSON.parse(data).count =='2') { document.paymentproceed.submit(); } else if(JSON.parse(data).count =='3') { alert('Oops!! Seats are full please try in another batch.'); } else if(JSON.parse(data).count =='4') { alert('Oops!! Payments are closed now for this course.'); } else if(JSON.parse(data).count =='5') { document.paymentproceed.submit(); } else if(JSON.parse(data).count =='6') { alert('Kindly register with Spoken Tutorial(Plan 1- All Courses) to Enroll students in This Course'); } else { $("#buynowModal").modal('show'); alert('This course is not active for this VLE!!'); } }, error:function(){ alert("Internal Error Server Not found!");} }); }); $("#pgmethod").click(function(evt){ var pgmethod = $('input[name="payment_gateway"]:checked').val(); if(pgmethod ==2) { $("#pgModal").modal('hide'); $("#buynowModal").modal('show'); $("#CourseIds").val($Courseid); } else if(pgmethod ==3) { $("#pgModal").modal('hide'); $("#hdfcModal").modal('show'); $("#HDFCCourseIds").val($Courseid); } else { alert('Error due to network!!'); return false(); } }); }); </script> ', 'scripts_for_layout' => '', 'title_for_layout' => 'Lmscourses' ) $record = array( 'Lmsuser' => array( [maximum depth reached] ), 'Lmscourse' => array( [maximum depth reached] ) ) $lmstopics = array() $relatedcourses = array( (int) 0 => array( [maximum depth reached] ) ) $check_exist = false $languages = array() $LastLogin = array() $s3 = object(Aws\S3\S3Client) {} $inputDefaults = array( 'inputDefaults' => array( [maximum depth reached] ) ) $csrfToken = 'd11f8acd9bcfa9576ba1f4344de060e8676ac6b9e506d3d04cac0e9bbb553f15' $content_for_layout = '<script type="text/javascript" src="/js/jquery-min.js"></script> <style> .loadingmessage { position: fixed; left: 0px; top: 0px; width: 100%; height: 100%; z-index: 9999; background: url('https://uatdigipaathshala.cscacademy.org/gradient-design/img/loading.gif') 50% 50% no-repeat rgb(249,249,249); opacity: .8; } </style> <!-- Show buy now dialog box to proceed payment --> <!-- Start this modal box for show alert for enrollment --> <div id="buynowModal" class="modal fade" style="padding-top:6%;"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h4 class="modal-title" style="text-align:center;">Please Enter CSC ID</h4> </div> <div class="modal-body"> <form method="post" action="https://uatdigipaathshala.cscacademy.org/admin/lmscourses/paycscwallet" name="paymentproceed" class="search-popup-inner" style="text-align:center;"> <input type="hidden" name="CourseIds" id="CourseIds" value="" /> <input type="hidden" name="UploadCertificateFile" id="UploadCertificateFile" value="" /> <div> <input type="text" name="cscid" placeholder="CSC ID" maxlength="12" id="cscID" oninput="this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\..*)\./g, '$1');"> </div> <div style="padding-top:6%;"><button type="button" id="paynowcscid" class="bt bt-xs bt-bg bt-secondary inline">Pay Now</button></div> </form> </div> </div> </div> </div> <!-- End dialog box --> <!-- Start this modal box for show alert for All payment gateways --> <div id="pgModal" class="modal fade" style="padding-top:6%;"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h4 class="modal-title" style="text-align:center;">Please Select Payment Gateway</h4> </div> <div class="modal-body"> <form method="post" action="https://uatdigipaathshala.cscacademy.org/admin/lmscourses/" name="pgselected" class="search-popup-inner" style="text-align:center;"> <input type="hidden" name="CourseIds" id="PGCourseIds" value="" /> <div> <input type="radio" name="payment_gateway" id="pgmethod_value" value="2" > CSC Wallet <input type="radio" name="payment_gateway" value="3" id="pgmethod_value" style="margin-left: 10px;"> HDFC </div> <div style="padding-top:6%;"><button type="button" id="pgmethod" class="bt bt-xs bt-bg bt-secondary inline">Proceed Now</button></div> </form> </div> </div> </div> </div> <div id="hdfcModal" class="modal fade" style="padding-top:6%;"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h4 class="modal-title" style="text-align:center;">Please Select Payment Gateway</h4> </div> <div class="modal-body"> <form method="post" action="https://uatdigipaathshala.cscacademy.org/admin/lmscourses/payhdfc" name="hdfcselected" class="search-popup-inner" style="text-align:center;"> <input type="hidden" name="CourseIds" id="HDFCCourseIds" value="" /> <div> <input type="radio" name="payment_gateway" required="required" value="3" style="margin-left: 10px;"> <img src="https://uatdigipaathshala.cscacademy.org//images/hdfclogo.png" width="115" height="50"> </div> <div style="padding-top:6%;"><button type="submit" id="payhdfconly" class="bt bt-xs bt-bg bt-secondary inline">Proceed Now</button></div> </form> </div> </div> </div> </div> <!-- End dialog box --> <!-- Start this modal box for show upload 10th certificate before payment --> <div id="uploadcertificateModal" class="modal fade" style="padding-top:6%;"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h4 class="modal-title" id="uploadmessage" style="text-align:center;"></h4> </div> <div class="modal-body"> <form id="upload10certificateform" method="post" action="https://uatdigipaathshala.cscacademy.org/admin/lmscourses/uploadcertificate" class="search-popup-inner" enctype="multipart/form-data" style="text-align:center;"> <input type="hidden" name="CourseIds" id="UploadCourseIds" value="" /> <div> <input type="file" name="upload10certificate" placeholder="Upload 10th Certificate" accept="image/*" id="10certificate" required="required"> <br> <span>File size should be max 1 MB and format JPEG/PNG</span> </div> <div style="padding-top:6%;"><button type="submit" class="bt bt-xs bt-bg bt-secondary inline">Upload</button></div> </form> </div> </div> </div> </div> <!-- End dialog box --> <!-- Start this modal box for show alert for enrollment --> <div id="showenrollmentModal" class="modal fade" style="padding-top:5%;"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h4 class="modal-title"></h4> </div> <div class="modal-body"> <div id="showenrolledalert"></div> </div> </div> </div> </div> <!-- End this modal box for show alert for enrollment --> <!-- Show loader --> <div id='loadingmessage' class="loadingmessage" style='display:none'> </div> <!-- End loader --> <div id="wrapper-content" class="clearfix"> <section id="page-title" class="single-product-title-wrap single-product-title-margin" > <div data-stellar-background-image="https://uatdigipaathshala.cscacademy.org/lmsfront_layout/img/coursedetails.jpg" data-stellar-background-position="top" data-stellar-background-ratio="0.5" class="page-title-parallax" style="background-image: url('https://uatdigipaathshala.cscacademy.org/lmsfront_layout/img/coursedetails.jpg');background-position:center top;"></div> <div class="container"> <div class="single-product-title-inner pt-bottom" > <div class="m-title"> <h2 class="p-font">COURSE DETAILS</h2> </div> <div class="breadcrumbs-wrap"> <div class="breadcrumbs-inner text-left"> <ul class="breadcrumbs"><li><a href="" class="home"><i class="fa fa-home"></i></a></li><li><a href="#">CSC Academy Services Foundation Program - Part I </a></li><li></li></ul> </div> </div> </div> </div> </section> <main class="single-product-wrap has-sidebar"> <div class="container clearfix"> <div class="row"> This course is not active yet!, please contact your administartor!. </div> </div> </main> </div> <!-- Send data for enrollment through API --> <script> $.noConflict(); jQuery(document).ready(function($){ $(".enroll_now").click(function(evt){ var CourseId = $(this).attr("courseid"); $.ajax({//Make the Ajax Request beforeSend:function(){ $('#loader').show(); }, type: "POST", url: "https://uatdigipaathshala.cscacademy.org/admin/lmscourses/enrollstd", data:"courseId="+CourseId, success: function(data){//html = the server response html code $('#loadingmessage').hide(); //store data $error = JSON.parse(data).error; $message = JSON.parse(data).message; //show modal box $("#showenrollmentModal").modal('show'); if($error =='1') { $('#showenrolledalert').html('<div style="text-align: center;">'+$message+'<br><br><a href="https://uatdigipaathshala.cscacademy.org/student"><button type="button" class="btn-sm btn-primary">Login Now</button></a></div>'); } else { $('#showenrolledalert').html('<div style="text-align: center;">'+$message+'<br><br><a href="https://uatdigipaathshala.cscacademy.org/admin/lmscourses/mycourses"><button type="button" class="btn-sm btn-primary">My Course</button></a></div>'); } }, error:function(){ alert("Internal Error Server Not found!");} }); }); // Check restricted course for restricted categories $(".restricted_std").click(function(evt){ var CourseId = $(this).attr("courseid"); $.ajax({//Make the Ajax Request beforeSend:function(){ $('#loader').show(); }, type: "POST", url: "https://uatdigipaathshala.cscacademy.org/admin/lmscourses/restrictedstd", data:"courseId="+CourseId, success: function(data){//html = the server response html code $('#loadingmessage').hide(); //store data $error = JSON.parse(data).error; $message = JSON.parse(data).message; //show modal box $("#showenrollmentModal").modal('show'); if($error =='1') { $('#showenrolledalert').html('<div style="text-align: center;">'+$message+'<br><br><a href="https://uatdigipaathshala.cscacademy.org/student"><button type="button" class="btn-sm btn-primary">Login Now</button></a></div>'); } else { $('#showenrolledalert').html('<div style="text-align: center;">'+$message+'<br><br><a href="https://uatdigipaathshala.cscacademy.org/admin/lmscourses/mycourses"><button type="button" class="btn-sm btn-primary">My Course</button></a></div>'); } }, error:function(){ alert("Internal Error Server Not found!");} }); }); // SHOW BUY NOW POP UP $(".buy_now").click(function(evt){ var CourseId = $(this).attr("courseid"); $.ajax({//Make the Ajax Request beforeSend:function(){ $('#loadingmessage').show(); }, type: "POST", url: "https://uatdigipaathshala.cscacademy.org/admin/lmscourses/bUyNowstd", data:"courseId="+CourseId, success: function(data){//html = the server response html code $('#loadingmessage').hide(); //store data $error = JSON.parse(data).error; $message = JSON.parse(data).message; if($error =='1') { //show modal box $("#showenrollmentModal").modal('show'); $('#showenrolledalert').html('<div style="text-align: center;">'+$message+'<br><br><a href="https://uatdigipaathshala.cscacademy.org/student"><button type="button" class="btn-sm btn-primary">Login Now</button></a></div>'); } else if($error =='5' || $error =='6' || $error =='7') { $Courseid = JSON.parse(data).CourseId; //check if course CCA Course to upload 10th certificate before proceeding payment. if($Courseid == '2') { $("#uploadcertificateModal").modal('show'); $("#UploadCourseIds").val($Courseid); $('#uploadmessage').html('Please Upload 10th certificate first!!'); } else if($Courseid == '74' || $Courseid == '77') { $("#uploadcertificateModal").modal('show'); $("#UploadCourseIds").val($Courseid); $('#uploadmessage').html('Please Upload 12th certificate first!!'); } else { //show payment gateways window if($error =='5') { $("#pgModal").modal('show'); $("#PGCourseIds").val($Courseid); } else if($error =='7') { $("#hdfcModal").modal('show'); $("#HDFCCourseIds").val($Courseid); } else if($error =='6') { $("#buynowModal").modal('show'); $("#CourseIds").val($Courseid); } else { alert('Something went wrong into PG!!'); return false(); } } } else { //show modal box $("#showenrollmentModal").modal('show'); $('#showenrolledalert').html('<div style="text-align: center;">'+$message+'<br><br><a href="https://uatdigipaathshala.cscacademy.org/admin/lmscourses/mycourses"><button type="button" class="btn-sm btn-primary">My Course</button></a></div>'); } }, error:function(){ alert("Internal Error Server Not found!");} }); }); // Upload 10th certificate through ajax $("#upload10certificateform").on('submit',(function(e) { //check file size first!! var file_size = $('#10certificate')[0].files[0].size; if(file_size>2097152) { alert("File size is greater than 2MB, please upload again!!"); return false; } e.preventDefault(); $.ajax({ beforeSend:function(){ $("#uploadcertificateModal").modal('hide'); $('#loadingmessage').show(); }, url: "https://uatdigipaathshala.cscacademy.org/admin/lmscourses/upload10certificate", type: "POST", data: new FormData(this), contentType: false, cache: false, processData:false, success: function(data) { if(JSON.parse(data).error =='4') { $("#uploadcertificateModal").modal('hide'); $("#buynowModal").modal('show'); $("#CourseIds").val($Courseid); $("#UploadCertificateFile").val(JSON.parse(data).UploadCertificateFile); } else { alert(JSON.parse(data).message); } }, error: function(e) { $("#err").html(e).fadeIn(); } }); })); //check CSCID is associated with cscacademy centre or not $("#paynowcscid").click(function(evt){ var cscID = $('#cscID').val(); var courseid = "1"; var vedic_math_medium = "<pre class="cake-error"><a href="javascript:void(0);" onclick="document.getElementById('cakeErr67f7e702dd9b2-trace').style.display = (document.getElementById('cakeErr67f7e702dd9b2-trace').style.display == 'none' ? '' : 'none');"><b>Notice</b> (8)</a>: Undefined variable: auth_user [<b>APP/View/Lmscourses/coursedetails.ctp</b>, line <b>774</b>]<div id="cakeErr67f7e702dd9b2-trace" class="cake-stack-trace" style="display: none;"><a href="javascript:void(0);" onclick="document.getElementById('cakeErr67f7e702dd9b2-code').style.display = (document.getElementById('cakeErr67f7e702dd9b2-code').style.display == 'none' ? '' : 'none')">Code</a> <a href="javascript:void(0);" onclick="document.getElementById('cakeErr67f7e702dd9b2-context').style.display = (document.getElementById('cakeErr67f7e702dd9b2-context').style.display == 'none' ? '' : 'none')">Context</a><pre id="cakeErr67f7e702dd9b2-code" class="cake-code-dump" style="display: none;"><code><span style="color: #000000"> ob_start();</span></code> <code><span style="color: #000000"></span></code> <span class="code-highlight"><code><span style="color: #000000"> include $___viewFn;</span></code></span></pre><pre id="cakeErr67f7e702dd9b2-context" class="cake-context" style="display: none;">$___viewFn = '/data/uat/app/View/Lmscourses/coursedetails.ctp' $___dataForView = array( 'record' => array( [maximum depth reached] ), 'lmstopics' => array([maximum depth reached]), 'relatedcourses' => array( [maximum depth reached] ), 'check_exist' => false, 'languages' => array([maximum depth reached]), 'LastLogin' => array([maximum depth reached]), 's3' => object(Aws\S3\S3Client) {}, 'inputDefaults' => array( [maximum depth reached] ), 'csrfToken' => 'd11f8acd9bcfa9576ba1f4344de060e8676ac6b9e506d3d04cac0e9bbb553f15' ) $record = array( 'Lmsuser' => array( [maximum depth reached] ), 'Lmscourse' => array( [maximum depth reached] ) ) $lmstopics = array() $relatedcourses = array( (int) 0 => array( [maximum depth reached] ) ) $check_exist = false $languages = array() $LastLogin = array() $s3 = object(Aws\S3\S3Client) {} $inputDefaults = array( 'inputDefaults' => array( [maximum depth reached] ) ) $csrfToken = 'd11f8acd9bcfa9576ba1f4344de060e8676ac6b9e506d3d04cac0e9bbb553f15'</pre><pre class="stack-trace">include - APP/View/Lmscourses/coursedetails.ctp, line 774 View::_evaluate() - CORE/Cake/View/View.php, line 915 View::_render() - CORE/Cake/View/View.php, line 879 View::render() - CORE/Cake/View/View.php, line 470 Controller::render() - CORE/Cake/Controller/Controller.php, line 959 Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 110 Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 85 [main] - APP/webroot/index.php, line 96</pre></div></pre>"; var csrfToken = "d11f8acd9bcfa9576ba1f4344de060e8676ac6b9e506d3d04cac0e9bbb553f15"; // alert(courseid); $.ajax({//Make the Ajax Request beforeSend:function(){ $("#buynowModal").modal('hide'); $('#loadingmessage').show(); }, type: "POST", url: "https://uatdigipaathshala.cscacademy.org/admin/users/checkCscacademyonboarding", // data:"cscID="+cscID+"course_id="+courseid, data:{cscID:cscID,courseid:courseid,vedic_math_medium:vedic_math_medium,csrfToken:csrfToken}, success: function(data){//html = the server response html code $('#loadingmessage').hide(); if(JSON.parse(data).count =='1') { document.paymentproceed.submit(); } else if(JSON.parse(data).count =='2') { document.paymentproceed.submit(); } else if(JSON.parse(data).count =='3') { alert('Oops!! Seats are full please try in another batch.'); } else if(JSON.parse(data).count =='4') { alert('Oops!! Payments are closed now for this course.'); } else if(JSON.parse(data).count =='5') { document.paymentproceed.submit(); } else if(JSON.parse(data).count =='6') { alert('Kindly register with Spoken Tutorial(Plan 1- All Courses) to Enroll students in This Course'); } else { $("#buynowModal").modal('show'); alert('This course is not active for this VLE!!'); } }, error:function(){ alert("Internal Error Server Not found!");} }); }); $("#pgmethod").click(function(evt){ var pgmethod = $('input[name="payment_gateway"]:checked').val(); if(pgmethod ==2) { $("#pgModal").modal('hide'); $("#buynowModal").modal('show'); $("#CourseIds").val($Courseid); } else if(pgmethod ==3) { $("#pgModal").modal('hide'); $("#hdfcModal").modal('show'); $("#HDFCCourseIds").val($Courseid); } else { alert('Error due to network!!'); return false(); } }); }); </script> ' $scripts_for_layout = '' $title_for_layout = 'Lmscourses'include - APP/View/Layouts/lms_inner_layout.ctp, line 395 View::_evaluate() - CORE/Cake/View/View.php, line 915 View::_render() - CORE/Cake/View/View.php, line 879 View::renderLayout() - CORE/Cake/View/View.php, line 534 View::render() - CORE/Cake/View/View.php, line 478 Controller::render() - CORE/Cake/Controller/Controller.php, line 959 Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 110 Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 85 [main] - APP/webroot/index.php, line 96