Esempio n. 1
0
 public function count_all()
 {
     $this->use->use_model('data_base');
     $this->use->use_lib('table/tpl_election');
     $tpl = new tpl_election();
     $db = new data_base($tpl->table(), array($tpl->id()));
     return count($db->get());
 }
Esempio n. 2
0
?>
">Slider</a></li>
        <li><a href="<?php 
echo site_url('admin/users');
?>
">Users</a></li>
    </ul>
</div>
<?php 
$use = new class_loader();
$use->use_lib('admin/election_admin');
$use->use_lib('table/tpl_students');
$use->use_lib('table/tpl_election');
$class = new election_admin();
$tpl_students = new tpl_students();
$tpl_election = new tpl_election();
$data = $class->find_more_election();
?>
<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
    <h2 class="page-header">Number election ( (  <?php 
echo $class->count_election();
?>
 ) )</h2>
    <div class="row placeholders">

        <?php 
foreach ($data as $row) {
    ?>

            <div class="col-xs-6 col-sm-3 placeholder">
                <img src="<?php