Downloads

[insert_php]
include ‘wp-content/php/includeparts/portal/loggedincheck.php’;

if (isset($usertype) && ($usertype == ‘student’)) {
echo ‘[vc_row][vc_column width=”1/3″][vc_btn title=”Download 3inOne Revision Paper April 2020″ style=”outline” color=”blue” size=”sm” align=”center” button_block=”true” i_icon_fontawesome=”fas fa-download” add_icon=”true” link=”url:%2Fdownloader.php%3Ffile%3D8de35470297d6494550808b08f4a04d7|title:Download this file||”][/vc_column][/vc_row]’;
}
else {
//echo ‘[vc_row][vc_column][vc_column_text]No guest downloads are available. Login now as a student to access exclusive downloads for available for students[/vc_column_text][/vc_column][/vc_row]’;
}

$downnames= mysqli_query($conn,”SELECT dc.id, d.filename, d.hash, d.downloadcategoryid
FROM b_master_downloads d
INNER JOIN b_master_downloadcategories dc ON d.downloadcategoryid=dc.id
WHERE dc.status=’1′ AND d.status=’1′ AND d.public=’1′
ORDER BY dc.categoryname ASC, d.proc_date DESC”);

$downtypenames= mysqli_query($conn,”SELECT dc.id, dc.categoryname, dc.categoryicon, dc.categorycolor
FROM b_master_downloads d
INNER JOIN b_master_downloadcategories dc ON d.downloadcategoryid=dc.id
WHERE dc.status=’1′ AND d.status=’1′ AND d.public=’1′
GROUP BY dc.categoryname
ORDER BY dc.categoryname ASC, d.proc_date DESC”);

while ($dt = mysqli_fetch_assoc($downtypenames)) {
echo ‘[vc_row el_class=”noprint”][vc_column][vc_row el_class=”noprint”][vc_column][vc_text_separator title=”‘.$dt[“categoryname”].'” i_icon_fontawesome=”‘.$dt[“categoryicon”].'” i_color=”custom” i_background_style=”rounded-less-outline” i_background_color=”custom” i_size=”xs” title_align=”separator_align_left” color=”custom” border_width=”2″ add_icon=”true” i_custom_color=”‘.$dt[“categorycolor”].'” i_custom_background_color=”‘.$dt[“categorycolor”].'” accent_color=”‘.$dt[“categorycolor”].'”][vc_empty_space height=”10px”][/vc_column][/vc_row]’;

echo ‘[vc_row el_class=”noprint”]’;
while ($dtn = mysqli_fetch_assoc($downnames)) {
if($dtn[“downloadcategoryid”]==$dt[“id”]) {
echo ‘[vc_column width=”1/3″][vc_btn title=”‘.$dtn[“filename”].'” style=”outline” color=”inverse” size=”sm” align=”center” button_block=”true” i_icon_fontawesome=”‘.$dt[“categoryicon”].'” add_icon=”true” link=”url:’.urlencode(‘/downloader.php?file=’.$dtn[“hash”]).’|title:Download this file||”][vc_empty_space height=”10px”][/vc_column]’;
}
}
mysqli_data_seek($downnames, 0);
echo ‘[/vc_row][vc_empty_space height=”20px”]’;
}

/*
echo ‘[vc_row][vc_column width=”1/3″][vc_btn title=”How to activate MS Teams to PC or Laptop” style=”outline” color=”purple” size=”sm” align=”center” button_block=”true” i_icon_fontawesome=”fas fa-desktop” add_icon=”true” link=”url:%2Fdownloader.php%3Ffile%3Da312332a1ec8c9b2851d9b77c1f09a7b|title:Download this file||”][/vc_column][vc_column width=”1/3″][vc_btn title=”How to activate MS Teams to Mobile Phones” style=”outline” color=”purple” size=”sm” align=”center” button_block=”true” i_icon_fontawesome=”fas fa-mobile-alt” add_icon=”true” link=”url:%2Fdownloader.php%3Ffile%3D73322697afe6370b590317c37e2e723c|title:Download this file||”][/vc_column][/vc_row]’;

echo ‘[vc_empty_space][vc_row][vc_column width=”1/3″][vc_btn title=”O/L Maths Target Paper by Buddhika Sir” style=”outline” color=”pink” size=”sm” align=”center” button_block=”true” i_icon_fontawesome=”fas fa-file” add_icon=”true” link=”url:%2Fdownloader.php%3Ffile%3D2eeb8687653e0a3f39ff8d58de86154c|title:Download this file||”][/vc_column][vc_column width=”1/3″][vc_btn title=”O/L History Target Paper by Chankya Sir” style=”outline” color=”pink” size=”sm” align=”center” button_block=”true” i_icon_fontawesome=”fas fa-file” add_icon=”true” link=”url:%2Fdownloader.php%3Ffile%3D15c05279cc8302ce7f830e8d0b48067f|title:Download this file||”][/vc_column][vc_column width=”1/3″][vc_btn title=”O/L Sinhala Paper Mahendra Maddegama Sir” style=”outline” color=”pink” size=”sm” align=”center” button_block=”true” i_icon_fontawesome=”fas fa-file” add_icon=”true” link=”url:%2Fdownloader.php%3Ffile%3D7843ebacc4415ee394e82b05ff87444b|title:Download this file||”][/vc_column][/vc_row]’;

*/
[/insert_php]