Commit dba38241 authored by Ayolo's avatar Ayolo

on ressaie

parent 3694ed04
...@@ -94,13 +94,10 @@ if ( $site->is_user_admin() ) ...@@ -94,13 +94,10 @@ if ( $site->is_user_admin() )
$frm->add_hidden("action","new"); $frm->add_hidden("action","new");
if ( isset($Erreur) ) if ( isset($Erreur) )
$frm->error($Erreur); $frm->error($Erreur);
$tmp=$wwwtopdir;
$wwwtopdir="../";
if ($_REQUEST["end_date"]) if ($_REQUEST["end_date"])
$frm->add_date_field("end_date", "Date de fin de validite : ",$_REQUEST["end_date"]); $frm->add_date_field("end_date", "Date de fin de validite : ",$_REQUEST["end_date"]);
else else
$frm->add_date_field("end_date", "Date de fin de validite : "); $frm->add_date_field("end_date", "Date de fin de validite : ");
$wwwtopdir=$tmp;
$frm->add_text_field("nom", "Nom du formulaire",$_REQUEST["nom"],true,80); $frm->add_text_field("nom", "Nom du formulaire",$_REQUEST["nom"],true,80);
$frm->add_text_area("description", "Description du formulaire",$_REQUEST["description"]); $frm->add_text_area("description", "Description du formulaire",$_REQUEST["description"]);
......
...@@ -26,6 +26,16 @@ ...@@ -26,6 +26,16 @@
require_once("include/site.inc.php"); require_once("include/site.inc.php");
if( $_REQUEST['module']=="tinycal" )
{
$cal = new tinycalendar($site->db);
$cal->set_target($_REQUEST['target']);
$cal->set_type($_REQUEST['type']);
$cal->set_ext_topdir($_REQUEST['topdir']);
echo $cal->html_render();
exit();
}
if ( $_REQUEST['class'] == "calendar" ) if ( $_REQUEST['class'] == "calendar" )
$cts = new calendar($site->db,$site->asso->id); $cts = new calendar($site->db,$site->asso->id);
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment