<?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 (time() > $config['smib_dapart_timestp']) header("Location: ".$config['app_url']);

 $selectiz = array(
 '3km-garcons' => array('c'=>1, 'ct'=>'3km', 's'=>1, 'st'=>'Garçons', 'tt'=>'3km Garçons', 'file'=>'participo-h-3km'), 
 '3km-filles' => array('c'=>1, 'ct'=>'3km', 's'=>0, 'st'=>'Filles', 'tt'=>'3km Filles', 'file'=>'participo-f-3km'), 
 );
 if (!empty($_GET['s']) && in_array($_GET['s'], array_keys($selectiz))) $__s = $_GET['s']; else $__s = '3km-garcons';
 $data2uz = $selectiz[$__s];
?>

<?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">
 Liste <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"> 
 Chargement de liste : <?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"> <?php echo $data2uz['ct']; ?> </span>
 <span class="standings-pane-header__match-week-info js-match-week-info"> <?php echo $data2uz['st']; ?> </span>
 </div>
 </div>
 </div>


<div class="fixture-result-list__navigation js-result-nav js-position-sticky">
 <div class="section-navigation js-nav-container">

 <a tabindex="0" href="?s=3km-garcons" class="section-navigation__text-container js-fixture-list-date-container<?php echo ($__s=='3km-garcons')?' section-navigation__text-container--active':'' ?>">
 <div class="section-navigation__subheading"> <?php echo $config['smib_annee_encours'];?> </div>
 <div class="section-navigation__heading"> 3km Garçons </div>
 </a>

 <a tabindex="0" href="?s=3km-filles" class="section-navigation__text-container js-fixture-list-date-container<?php echo ($__s=='3km-filles')?' section-navigation__text-container--active':'' ?>">
 <div class="section-navigation__subheading"> <?php echo $config['smib_annee_encours'];?> </div>
 <div class="section-navigation__heading"> 3km Filles </div>
 </a>

 </div>
</div>

 <hr/>
 <input type="hidden" id="noeditbtn" value="1">
 <table class="standings-league__table standings-table" id="table">
 <thead class="standings-table__head">
 <tr>
<?php 
 $headras = array(
 array('ID', 'Prénom', 'Nom', 'Course', 'Sexe', 'Etablissement', 'N° Tel', ''), 
 array('ID', 'Prénom', 'Nom', 'Course', 'Sexe', 'Etablissement', 'N° Tel', '')
 );
 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"></tbody>
 </table>
 </section>
 </div>
 </section>
 </div>
 </div>
 </div>
 </main>
</div>

<div id="editboxmodal">

 <div id="validations-exija">
 <div id="validations-exija-1">
 <span class="user-form__label user-form__label--margin-top">Validations éxigées</span>
 <div class="user-form__checkbox user-form__checkbox--margin-bottom-small" class="showornot-handisporto">
 <input class="user-form__checkbox-input" id="registration-messaging-checkbox-one" type="checkbox" name="nlSubscription" onclick="this.blur()">
 <label for="registration-messaging-checkbox-one" class="user-form__label user-form__label--checkbox">
 Avez vous vérifié que cette personne est handisport ?
 </label>
 </div>
 </div>
 <input type="hidden" id="exijvalid-handisporto" value="0">
 <div id="validations-exija-2">
 <div class="user-form__checkbox user-form__checkbox--margin-bottom-small" class="showornot-maladios">
 <input class="user-form__checkbox-input" id="registration-messaging-checkbox-two" type="checkbox" name="n2Subscription" onclick="this.blur()">
 <label for="registration-messaging-checkbox-two" class="user-form__label user-form__label--checkbox" id="editlabelsick">
 Cette personne est malade, avez vous collé le plaque "<b>Diabète</b>" sur le dossard ?
 </label>
 </div>
 </div>
 <input type="hidden" id="exijvalid-maladios" value="0">
 <hr/>
 </div>

 <div class="row">
 <div class="col-lg-12">
 <label class="user-form__label" for="setdata-dossard">
 Numéro de dossard <span class="required-field">*</span>
 </label>
 <input class="user-form__input dossard-form__input" id="setdata-dossard" type="number">
 <span id="setdatadossardError" class="user-form__error-label">
 Numéro de dossard invalide
 </span>
 <span id="setdatadossardInfo" class="user-form__info-label"></span>
 <input type="hidden" id="setdatadossardInfox" value="">
 </div>
 </div>
 <hr/>

 <div class="row">
 <div class="col-lg-8">
 <label class="user-form__label">
 Prénom Nom <span class="required-field">*</span>
 </label>
 <input class="user-form__input" id="setdata-allname" type="text" disabled>
 </div>
 <div class="col-lg-4">
 <label class="user-form__label">
 Numéro unique <span class="required-field">*</span>
 </label>
 <input class="user-form__input" id="setdata-uniqnum" type="text" disabled>
 </div>
 </div>

 <hr/>

 <div class="row">
 <div class="col-lg-6">
 <label class="user-form__label" for="setdata-course">
 Course <span class="required-field">*</span>
 </label>
 <select id="setdata-course" class="user-form__input user-form__select">
 <option value="1">21Km</option>
 <option value="2">7Km</option>
 </select>
 <span id="setdatacourseError" class="user-form__error-label">
 Veuillez sélectionner une course
 </span>
 </div>
 <div class="col-lg-6">
 <label class="user-form__label" for="setdata-handi">
 Handisport <span class="required-field">*</span>
 </label>
 <select id="setdata-handi" class="user-form__input user-form__select">
 <option value="0" selected>Non</option>
 <option value="1">Oui</option>
 </select>
 <span id="setdatahandiError" class="user-form__error-label">
 Veuillez sélectionner une option
 </span>
 </div>
 </div>

 <div class="row">
 <div class="col-lg-6">
 <label class="user-form__label" for="setdata-phone-2">
 Numéro de téléphone de secours <span class="required-field">*</span>
 </label>
 <input class="user-form__input" id="setdata-phone-2" type="tel" placeholder="Numéro de quelqu'un de sa famille +213770434566">
 </div>
 <div class="col-lg-6">
 <label class="user-form__label" for="setdata-sexee">
 Sexe <span class="required-field">*</span>
 </label>
 <select id="setdata-sexee" class="user-form__input user-form__select">
 <option value="1">Homme</option>
 <option value="0">Femme</option>
 </select>
 <span id="setdatasexeeError" class="user-form__error-label">
 Veuillez sélectionner une option
 </span>
 </div>
 </div>

 <hr/>

 <button id="editparticipation" 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">
 ENREGISTRER
 </span>
 </button>


</div>
<input type="hidden" id="editcurrentload" value="0">

<?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">
 var access_col = '<?php echo $data2uz['file'];?>';

 $('#table tbody').on( 'click', 'a.fixture-cta__barca-video.button.button--stroke.button--dark', function () {
 var ths=$(this), data=table.row( ths.parents('tr') ).data(), id=data[8], val=$('#editcurrentload').val();
 if (val==0) loadtoedit(id);
 });

</script>
<?php $this->stopSection(); ?>
<?php if (@$_shouldextend[1]) { echo $this->runChild('layout', ['page_data' => array(
 'plugins' => array(), 
 'title' => "Wisra Framework | Web sites builder", 
 'description' => "Wisra Framework", 
 'keywords' => array("Wisra Framework", "Web sites builder"), 
 'facebook_integration' => false, 
 'google_maps_callback' => '', 
 'admin_interface' => 1
)]); } ?>