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 (0755) :  /home/logmcpe/www/TMCPRO/pages/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/logmcpe/www/TMCPRO/pages/tache_ajax_nv_all.php
<?php

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


// echo "==> ".$_SESSION["client_id_tache"]."<br/>" ; 

?>





             

            <div class="modal-header task-single-header" data-task-single-id="5" data-status="4">
              <h4 class="modal-title">Nouvelle TACHE <?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"> 
   <div class="form-group col-md-6">
      <label>Sujet </label>
	  <div class="input-group">

                    <!-- <input type="text" class="form-control"  name="number"  placeholder="jj/mm/aaaa"> -->
                 <?     $raq_cat  =dbi_query("SELECT * FROM `tache_titre` ORDER BY `tache_titre`.`tache_sujet` ASC ") ;  ?>
				      
                    <select class="form-control js-example-basic-single" style="width: 100%;" name="tache_titre_id"  id="tache_titre_id">
                        <option value="0" selected="selected" disabled="disabled">-Sujet-</option>
                      <?       while ($res_cat =dbi_fetch_row($raq_cat)) { ?>
                        <option value="<?=$res_cat['tache_titre_id']  ?> " > <?  echo $res_cat['tache_sujet']    ; ?> </option>
					  <?       }?>
                    </select>
                  </div>

   </div>
	 



<!-- 
          <div class="form-group col-md-4">
      <label>Priorité </label>
	  <div class="input-group">
                 
                   

                    <select class="form-control" name="tache_Priorite"  id="tache_Priorite">
                        <option value="-1" selected="selected" disabled="disabled">-Priorité-</option>
                        <option value="1" selected > Moyen </option>
                        <option value="2" > Haute </option>
                        <option value="3" > Urgente </option>
                    </select>
                  </div>
    
   </div>
	  
	   -->

			

 		
	<?php
	 $req =dbi_query("SELECT *  FROM `salarie` WHERE `salarie_statut` = '1' OR `salarie_statut` = '2' 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>		
			
			
 
			
			 <?php
		// $q= dbi_query("SELECT * FROM prospect") ; 
//	 $req_client =dbi_query("SELECT *  FROM `client` WHERE `client_statut` = '1' and prospect = 0 ORDER BY `client`.`client_nom` ASC") ; 
	?>
<!--	

                <label>Client </label>
				
                <select  class="form-control js-example-basic-single"  style="width: 100%;" name="client_id">
				<option value="-1" selected="selected" disabled="disabled">-Client-</option>
				<?php 
				// while(  $cli=dbi_fetch_row($req_client))
				// {
				?>
				
                    <option value="<?php //echo $cli['client_id'] ; ?>"  ><?php //echo $cli['client_nom'];  ?></option>
					
					<?php 
				//}
				?>
				
								
				
				
                </select>
    </div>
	
	-->


	

  </div>  
  		
				<input type="hidden" name="client_id" value="<?php echo $_SESSION["client_id_tache"] ;   ?>">
					<input type="hidden" name="cree_tache" value="cree_tache">
				<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