<?php
 if(basename(__FILE__) == basename($_SERVER['PHP_SELF'])){exit();}
 global $config;
 require_once 'config/class/class.database.php';
 $db = new database();

 require_once 'config/class/class.memberspace.php';
 $member = new member_space();

 if (!$member->isadmin()) header("Location: ".$config['app_url']."admin-login");
 if (!empty($_SESSION['aid']) && $_SESSION['aid']>90) header("Location: ".$config['app_url']."special-adm");
 if (empty($_SESSION['participa_adm'])) {
 if (!empty($_SESSION['children_adm'])) header("Location: ".$config['app_url']."admin-children");
 elseif (!empty($_SESSION['hebergi_adm'])) header("Location: ".$config['app_url']."admin-hebergement");
 else header("Location: ".$config['app_url']);
 }
 if (time() > $config['smib_dapart_timestp']) header("Location: ".$config['app_url']);
?>

<?php $_shouldextend[1]=1; ?>


<?php $this->startSection('wisra_basic_content'); ?>
 @parentXYZABC

<div class="body-content js-body-content blue-body">
 <main id="main" class="violiii">
 <div class="standings-background-hero">
 <picture class="standings-background-hero__pattern left js-lazy-picture loaded">
 <img src="<?php echo $config['app_url'] ?>sources/image/admin/stripes-left.png" data-image-src="<?php echo $config['app_url'] ?>sources/image/admin/stripes-left.png" alt="Standings Background Pattern">
 </picture>
 <picture class="standings-background-hero__pattern right js-lazy-picture loaded">
 <img src="<?php echo $config['app_url'] ?>sources/image/admin/stripes-right.png" data-image-src="<?php echo $config['app_url'] ?>sources/image/admin/stripes-right.png" alt="Standings Background Pattern">
 </picture>
 </div>
 <div class="u-main-gradient admin-blocks">
 <div class="wrapper">
 <div class="col-12">
 <section class="standings">
 <div class="standings__header">
 <div class="standings-header admin">
 <div class="fixture-result-list__month-full">
 Teste <span>de participants</span>
 </div>
 </div>
 </div>

 <div class="standings__content js-standings-content">
 <section class="standings-league js-standings-pane">

 <div class="standings-league__header standings-pane-header">
 <div class="standings-pane-header__spacer"></div>
 <div class="standings-pane-header__info"></div>
 <span class="standings-pane-header__name visually-hidden"></span>
 <div class="standings-pane-header__time-info">
 <div class="standings-pane-header__last-updated"> 
 Teste : <?php echo $config['smib_annee_encours'];?>
 </div>
 <div class="standings-pane-header__season-info-container">
 <span class="standings-pane-header__season-info js-season-info"> Compte </span>
 <span class="standings-pane-header__match-week-info js-match-week-info"> Anna </span>
 </div>
 </div>
 </div>

 <div class="row">
 <div class="col-lg-6">
 <label class="user-form__label">
 Nom <span class="required-field">*</span>
 </label>
 <input class="user-form__input" id="setdata-name" type="text">
 </div>
 <div class="col-lg-6">
 <label class="user-form__label">
 Prénom <span class="required-field">*</span>
 </label>
 <input class="user-form__input" id="setdata-fname" type="text">
 </div>
 </div>
 <div class="row">
 <div class="col-lg-6">
 <label class="user-form__label" for="setdata-phone">
 Numéro de téléphone <span class="required-field">*</span>
 </label>
 <input class="user-form__input" id="setdata-phone" type="tel" placeholder="Numéro de téléphone +213673852670" value="+213553003100">
 </div>
 <div class="col-lg-6">
 <label class="user-form__label" for="setdata-naissance">
 Date de naissance <span class="required-field">*</span>
 </label>
 <input class="user-form__input" id="setdata-naissance" type="tel" placeholder="Date de naissance 02/04/1991">
 </div>
 </div>
 <br/>
 <button id="editparticipationb" class="button button--primary user-form__submit-button user-form__submit-button--margin-top" type="submit" name="complete registration button">
 <span class="user-form__submit-button-text">
 TESTER
 </span>
 </button>
 <div class="row">
 <div class="col-lg-12 text-center" id="loadingpic" style="display:none">
 <img src="<?php echo $config['app_url'] ?>sources/image/basic/loading.gif"/>
 </div>
 </div>
 <hr/>
 <div class="row">
 <div class="col-lg-12">
 <table class="standings-league__table standings-table" id="table">
 <thead class="standings-table__head">
 <tr>
<?php 
 $headras = array(
 array('ID', 'Prénom', 'Nom', 'N° Dossard', 'Course', 'Sexe', 'N° Unique', 'Date naiss.', 'Inscrit'), 
 array('ID', 'Prénom', 'Nom', 'N° Dossard', 'Course', 'Sexe', 'N° Unique', 'Date naiss.', 'Inscrit')
 );
 foreach ($headras[0] as $x => $value) {
 echo '
 <th class="table-head" scope="col">
 <span class="table-head__heading">'.$value.'</span>
 <span class="table-head__heading--short">'.$headras[1][$x].'</span>
 </th>
 ';
 }
?>
 </tr>
 </thead>
 <tbody class="standings-table__body" id="tablebodycont"></tbody>
 </table>
 </div>
 </div>
 </section>
 </div>
 </section>
 </div>
 </div>
 </div>
 </main>
</div>

<?php $this->stopSection(); ?>

<?php /*-------------------------------------- Put here your additional CSS files for this page --------------------------------------*/ ?>
<?php $this->startSection('wisra_css_content'); ?>
<link href="<?php echo $config['app_url'];?>sources/plugin/toastr/toastr.min.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="<?php echo $config['app_url']?>sources/plugin/fancybox/jquery.fancybox.min.css" />
<?php $this->stopSection(); ?>

<?php /*-------------------------------------- Put here your additional JS files  for this page --------------------------------------*/ ?>
<?php $this->startSection('wisra_js_content'); ?>
<script src="<?php echo $config['app_url'];?>sources/plugin/toastr/toastr.min.js"></script>
<script src="<?php echo $config['app_url'];?>sources/plugin/b-table/datatables.min.js"></script>
<script src="<?php echo $config['app_url']?>sources/plugin/fancybox/jquery.fancybox.min.js"></script>
<script src="<?php echo $config['app_url'];?>sources/script/admin.js"></script>
<script type="text/javascript">

</script>
<?php $this->stopSection(); ?>
<?php if (@$_shouldextend[1]) { echo $this->runChild('layout', ['page_data' => array(
 'plugins' => array(), 
 'title' => "SMIB | Admin", 
 'description' => "SMIB | Admin", 
 'keywords' => array("SMIB | Admin"), 
 'facebook_integration' => false, 
 'google_maps_callback' => '', 
 'admin_interface' => 1
)]); } ?>