コード例 #1
0
ファイル: dashboard.php プロジェクト: Gameonn/competition
require_once "../php_include/sidebar.php";
require_once "GeneralFunctions.php";
?>
	
<!--sidebar end-->
<!--main content start-->
<section id="main-content">
<section class="wrapper">

<div class="row">
    <div class="col-md-6">
        <div class="mini-stat clearfix">
            <span class="mini-stat-icon orange"><i class="fa fa-question"></i></span>
            <div class="mini-stat-info">
                <span><?php 
$total_questions = count(GeneralFunctions::getAllQuestions());
echo $total_questions;
?>
</span>
               Questions
            </div>
        </div>
    </div>
    <div class="col-md-6">
        <div class="mini-stat clearfix">
            <span class="mini-stat-icon tar"><i class="fa fa-list-alt"></i></span>
            <div class="mini-stat-info">
                <span><?php 
$categories = count(GeneralFunctions::getAllCategories());
echo $categories;
?>
コード例 #2
0
ファイル: questions.php プロジェクト: Gameonn/basketball
                    <div class="panel-body">

                            <section id="no-more-tables">
                            <table class="table table-bordered table-striped table-condensed cf">
                                <thead class="cf">
                                <tr>
                                    <th>ID</th>
									<th>Category Image </th>
                                    <th>Category</th>
                                    <th>Title</th>
									<th>Edit</th>
                                </tr>
                                </thead>
                                <tbody>
								<?php 
$result = GeneralFunctions::getAllQuestions();
$r = 1;
foreach ($result as $key => $value) {
    ?>
                                <tr>
                                    <td data-title="ID"><?php 
    echo $r;
    ?>
</td>
                                    <td data-title="Category Image" style="text-align:center;"><img src="<?php 
    echo BASE_PATH;
    ?>
/uploads/<?php 
    if ($value['category_image']) {
        echo $value['category_image'];
    } else {