HEX
Server: Apache
System: Linux sg2plzcpnl509433.prod.sin2.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: qhl5pt3kkb1d (10888259)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: /home/qhl5pt3kkb1d/public_html/tstp-old/js/getap.js
$(document ).ready(function() {

    $.ajax({

        type: "GET",

        url: "https://admin.thesmarttestprep.com/api/getap",

        success: function (data) {

            var html = "";

            var image = "";

            for(i=0; i<data.data.length; i++) {

                html += '<div class="testimonial-box">';

                html += '<div class="testi-img">';

                image = data.data[i].image === null ? 'https://admin.thesmarttestprep.com/images/no-image.png' : 'https://admin.thesmarttestprep.com/public/images/sprofile/'+data.data[i].image;

                html += '<img src="'+image+'" alt>';

                html += '</div>';

                html += '<div class="testi-desc" style="text-align: center;">';

                html += '<h4 class="testi-name">'+data.data[i].fname+' ' +data.data[i].lname+'</h4><div class="r-card">';

                html += data.data[i].calculus_bc === null ? '' :  '<p>Calculus BC :- ' + data.data[i].calculus_bc + '</p>';

                html += data.data[i].physics_c_mech === null ? '' :  '<p>Physics C Mech. :- ' + data.data[i].physics_c_mech + '</p>';

                html += data.data[i].physics_c_e_m === null ? '' :  '<p>Physics C E & M :- ' + data.data[i].physics_c_e_m + '</p>';

                html += data.data[i].cs === null ? '' :  '<p>CS :-' + data.data[i].cs + '</p>';

                html += data.data[i].physics_1 === null ? '' :  '<p>Physics 1 :-' + data.data[i].physics_1 + '</p>';

                html += data.data[i].mico_economics === null ? '' :  '<p>Mico Economics :-' + data.data[i].mico_economics + '</p>';

                html += data.data[i].psychology === null ? '' :  '<p>Psychology :-' + data.data[i].psychology + '</p>';

                html += '</div>';

                html += '</div>';

                html += '</div>';

            }

            $("#apItem").html(html);

        },

    });

});