-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsearch.php
More file actions
26 lines (21 loc) · 1.02 KB
/
search.php
File metadata and controls
26 lines (21 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
require_once __DIR__.'/../../vendor/autoload.php';
require_once __DIR__ . '/config.php';
$htmlHeadXtra[] = '<link rel="stylesheet" type="text/css" href="'.api_get_path(
WEB_PLUGIN_PATH
).'easycertificate/resources/css/certificate.css"/>';
$type = isset($_GET['type']) ? (int)$_GET['type'] : null;
$plugin = EasyCertificatePlugin::create();
$enable = $plugin->get('enable_plugin_easycertificate') == 'true';
$percentage = $plugin->get('percentage');
$percentageValue = "";
$content =[];
if ($type == 'view') {
$codCertificate = isset($_GET['c_cert']) ? (string)$_GET['c_cert'] : null;
$certificate_Validate = EasyCertificatePlugin::getGenerateInfoCertificate(true, $codCertificate, $plugin->get('percentage'));
$template = new Template($plugin->get_lang('CertificateInformation'));
$template->assign('certificate', $certificate_Validate);
$content = $template->fetch('easycertificate/template/certificate_info.tpl');
$template->assign('content', $content);
$template->display_blank_template();
}