コード例 #1
0
ファイル: gr_rdv.php プロジェクト: rakotobe/Rakotobe
case 0 : // Afficher
	break;

case 2 : // Modifier etat
	if(!empty($_GET['id'])) $id = $_GET['id'];
	$rdv = new CTableGrRdv(array('id'=>$id));
	$rdv->reverse_etat();
	break;
	
case 3 : // Modifier etat
	if(!empty($_GET['id'])) $id = $_GET['id'];
	break;
	
case 33 : // Supprimer
	if(!empty($_GET['id'])) $id = $_GET['id'];
	$rdv = new CTableGrRdv(array('table'=>'gr_rdv', 'id'=>$id));
	$rdv->delete();
	break;

case 5 : // Modifier 1
	if(!empty($_GET['id'])) $id = $_GET['id'];
	CFunction::redirection("../src/gr_user.php?a=5&id=" . $id);
	break;
	
case 6 : // Filtrer
	CSession::save($_GET);
	break;
}

/*------------------------------------------------------
		A FAIRE DANS TOUS LES CAS
コード例 #2
0
ファイル: gr_user.php プロジェクト: rakotobe/Rakotobe
					'ville'=>CFunctions::addslashes($ville),
					'pays' => $pays,
					'email'=>CFunctions::addslashes($email),
					'telephone'=>CFunctions::addslashes($telephone),
					'mobile'=>CFunctions::addslashes($mobile),
					'societe'=>CFunctions::addslashes($societe),
					'web'=>CFunctions::addslashes($web)
				)
			);
			$tuse->update();
		}
	}

	CTableGrRdv::delete_rdv_of_user($id);
	if($date_rdv) {
		$trdv = new CTableGrRdv(array('iduser' => $id, 'nom'=>CFunctions::addslashes($nom_rdv), 'date' => $date_rdv, 'heure' => $heure_rdv,  'type' => $type_rdv, 'etat' => $etat_rdv));
		$trdv->insert();
	}

	// --- DEBUT envoye mail
    if ($radioText && $idopportunite)
    {
        $zSqlEnvoieMail  = " SELECT opportunite.*, hbpiecesjointes.piece AS piece, text FROM gr_opportunite" ;
        $zSqlEnvoieMail .= " LEFT JOIN hbpiecesjointes ON hbpiecesjointes.id = pieId" ;
        $zSqlEnvoieMail .= " LEFT JOIN texte ON texte.id = texId" ;
        $zSqlEnvoieMail .= " WHERE opportunite.id = " . $idopportunite ;

        $toEnvoyes = CBdd::select_row($zSqlEnvoieMail) ;

        $expediteur = CTableGrUser::get_email_admin() ;
        $destinataire = $email ;