|
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 ] |
|---|
<?php
$page = $_SERVER['PHP_SELF'] ;
if(!empty($_POST['tache_Priorite']) AND empty($_POST['update_tache']))
{
if(!empty($_POST['tache_date_fin']))
{
$tache_date_fin= dateformaint($_POST['tache_date_fin']) ;
}
$date_creation = date("Ymd");
$tache_sujet=addslashes($_POST['tache_sujet']) ;
$tache_Priorite=$_POST['tache_Priorite'] ;
$salarie_id=$_POST['salarie_id'] ;
$client_id=$_POST['client_id'] ;
$user_id = $_SESSION['MCPRO']['login']['4'] ;
$tache_designation=addslashes($_POST['tache_designation']) ;
dbi_query(" INSERT INTO tache (
tache_sujet,
tache_date_fin,
tache_Priorite,
salarie_id,
client_id,
user_id,
date_creation
)
VALUES
(
'$tache_sujet',
'$tache_date_fin',
'$tache_Priorite',
'$salarie_id',
'$client_id',
'$user_id',
'$date_creation'
)") ;
// header("Location:".$_SERVER['PHP_SELF']."?msg=tache bien ajouté&color=success&page=tache&rowid=$tache_idd");
list($tache_idd)=dbi_fetch_row(dbi_query("SELECT max(tache_id) FROM `tache`")) ;
header("Location:fetch_record.php?msg=tache bien ajouté&color=success&page=$page&rowid=$tache_idd");
}
?>