Uname:
Linux webm016.cluster127.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
Software:
Apache
PHP version:
7.4.33 [ PHP INFO ] PHP os:
Linux
Server Ip:
54.36.31.145
Your Ip:
216.73.216.182
User:
homesquasz (91404) | Group:
users (100)
Safe Mode:
OFF
Disable Function:
_dyuweyrj4,_dyuweyrj4r,dl
<form method="post" action="<?php echo base_url("Planning/addecriture"); ?>">
<div class="row">
<div class="col-md-12">
<div class="box box-info">
<div class="box-header with-border">
<h3 class="box-title">Ajouter Ecriture planning</h3>
</div>
<div class="box-body">
<div class="row clearfix">
<div class="alert alert-warning" id="alerttime" style="display: none;">
<strong>Attention!</strong> SVP de bien verifier les informations entrées.
</div>
<div class="col-md-12">
<div class="form-group row">
<div class="col-sm-4">
<label for="datedebut" class="control-label"><span class="text-danger">*</span>Date debut</label>
<input type="text" required name="datedebut" value="<?php echo $this->input->post('datedebut'); ?>" class="has-datepicker form-control" id="datedebut" />
<span class="text-danger" id="dateerror"><?php echo form_error('datedebut');?></span>
</div>
<div class="col-sm-4">
<label for="datefin" class="control-label"><span class="text-danger">*</span>Date fin</label>
<input type="text" required name="datefin" value="<?php echo $this->input->post('datefin'); ?>" class="has-datepicker form-control" id="datefin" />
<span class="text-danger" id="dateerror"><?php echo form_error('datefin');?></span>
</div>
</div>
</div>
<div class="col-md-12">
<div class="form-group row">
<div class="col-sm-4">
<label for="datedebut" class="control-label"><span class="text-danger">*</span>Planning</label>
<select class="select2" name="planning_id">
<option selected disabled>Selectionnez un planning</option>
<?php foreach ($planning as $plan) { ?>
<option value="<?php echo $plan["id"]; ?>"><?php echo $plan["libelle"]; ?></option>
<?php } ?>
</select>
<span class="text-danger" id="dateerror"><?php echo form_error('datedebut');?></span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="box box-info">
<div class="box-header with-border">
<h3 class="box-title">Table Ecriture planning</h3>
</div>
<div class="box-body">
<div class="row clearfix" >
<div class="alert alert-warning" id="alerttime" style="display: none;">
<strong>Attention!</strong> SVP de bien verifier les informations entrées.
</div>
<div id="repartContent">
<table class="table table-striped">
<thead>
<tr>
<th>Jour</th>
<th>Heure Debut</th>
<th>Heure Fin</th>
<th>Debut Pause</th>
<th>Fin Pause</th>
<th>Type</th>
</tr>
</thead>
</table>
<input type="hidden" id="rownumber" value="<?php //echo count($jours); ?>">
<?php
//date_default_timezone_set('Europe/Paris');
//setlocale(LC_TIME, 'fr_FR','fra');// OK
$days = array("1"=>"Lundi","2"=>"Mardi","3"=>"Mercredi","4"=>"Jeudi","5"=>"Vendredi","6"=>"Samedi","7"=>"Dimanche");
for($i=1;$i<8;$i++){
?>
<table class="table table-striped">
<tbody>
<tr>
<td><strong><?php echo $days[$i]; //echo strftime("%A ", strtotime( $jour) ); echo "||".date("N", strtotime($jour)); ?></strong> </td>
<td><input required type="text" name="tempdebut<?php echo $i; ?>" value="<?php echo $this->input->post('tempdebut'); ?>" class="has-timepicker form-control" /></td>
<td><input required type="text" name="tempfin<?php echo $i; ?>" value="<?php echo $this->input->post('tempfin'); ?>" class="has-timepicker form-control" /></td>
<td><input required type="text" name="pausedebut<?php echo $i; ?>" value="<?php echo $this->input->post('pausedebut'); ?>" class="has-timepicker form-control" /></td>
<td><input required type="text" name="pausefin<?php echo $i; ?>" value="<?php echo $this->input->post('pausefin'); ?>" class="has-timepicker form-control" /></td>
<td>
<input checked="" type="radio" value="1" name="type<?php echo $i; ?>" class="custom-control-input" >
<label class="custom-control-label" for="demijourned">T</label>
<input type="radio" value="2" name="type<?php echo $i; ?>" class="custom-control-input" >
<label class="custom-control-label" for="demijourned">RH</label>
</td>
<td>
</td>
</tr>
</tbody>
</table>
<?php } ?>
<table class="table table-striped">
<tfoot>
<tr>
<td colspan="8" align="center">
<button type="submit" class="btn btn-info" id="btnRepartition"><i class="fa fa-check" ></i> Générer</button>
</td>
</tr>
</tfoot>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</form>