示例#1
0
<?php

$homepage = '/index.php';
require_once __DIR__ . '/api/tlms_data.php';
include 'inc/header.inc';
$userData = TlmsData::getUserData($_GET['name']);
$dateFormat = 'Y/m/d';
$certified = 0;
if (is_array($userData)) {
    foreach ($userData as $key => $value) {
        if (!is_array($value)) {
            continue;
        }
        if (array_key_exists('acquired', $value) && gettype($value['acquired']) === 'object') {
            $certified = 1;
        }
    }
}
//if ( $certified ) { echo "Certified"; } else { echo "Not Certified"; };
if (!$userData) {
    ?>

    <!-- start:main -->
    <main id="main">

        <!-- start:section -->
        <div class="section error-404">

            <!-- start:cnt -->
            <div class="cnt">
示例#2
0
<?php

$homepage = '/index.php';
require_once __DIR__ . '/api/tlms_data.php';
include 'inc/header.inc';
$companyData = TlmsData::getCompanyData($_GET['name']);
if (!$companyData) {
    ?>

    <!-- start:main -->
    <main id="main">

        <!-- start:section -->
        <div class="section error-404">

            <!-- start:cnt -->
            <div class="cnt">

                <h2>Company not found.</h2>

                <p>
			Oops! We were unable to find that company. If you think it should be listed please contact professor@cpanel.net, or try again.
                </p>

            </div>
            <!-- end:cnt -->

        </div>
        <!-- end:section -->

    </main>
示例#3
0
            <div class="cnt">

                <!-- start:tabs -->
                <ul class="tabs clr">
                    <li class="current">
                        <a href="#" rel="allTimeSummary">All Time</a>
                    </li>
                    <li>
                        <a href="#" rel="thisYearSummary">Year To Date</a>
                    </li>
                </ul>
                <!-- end:tabs -->

                <?php 
$summaryData = TlmsData::getCompanySummary();
$summaryDataTY = TlmsData::getCompanySummary(true);
if ($summaryData) {
    echo '<div id="allTimeSummary" class="summaryChartHelper">';
    $biggest = $summaryData[0]['certified'];
    foreach ($summaryData as $index => $oneCompany) {
        $total = $oneCompany['certified'];
        if (!$total) {
            continue;
        }
        ?>
                        <!-- start:line -->
                        <div class="line">

                            <div class="label">
                                <a href="company.php?name=<?php 
        echo urlencode($oneCompany['name']);