Qual: Les fichiers du module webcal sont sortie de projet et placé dans webcal.
New: Ajout module mantis pour intégrer l'interface du bug tracking Mantis dans le menu Dolibarr.
This commit is contained in:
parent
651e3ecd36
commit
fe9f754e6a
@ -45,13 +45,8 @@ $def = array();
|
|||||||
$actiontest=$_POST["test"];
|
$actiontest=$_POST["test"];
|
||||||
$actionsave=$_POST["save"];
|
$actionsave=$_POST["save"];
|
||||||
|
|
||||||
// Test saisie mot de passe
|
// Sauvegardes parametres
|
||||||
if ($_POST["phpwebcalendar_pass"] != $_POST["phpwebcalendar_pass2"])
|
if ($actionsave)
|
||||||
{
|
|
||||||
$mesg="<div class=\"error\">".$langs->trans("ErrorPasswordDiffers")."</div>";
|
|
||||||
}
|
|
||||||
// Positionne la variable pour le test d'affichage de l'icone
|
|
||||||
elseif ($actionsave)
|
|
||||||
{
|
{
|
||||||
$i=0;
|
$i=0;
|
||||||
|
|
||||||
@ -104,11 +99,13 @@ elseif ($actiontest)
|
|||||||
$sql="SELECT cal_value FROM webcal_config WHERE cal_setting='application_name'";
|
$sql="SELECT cal_value FROM webcal_config WHERE cal_setting='application_name'";
|
||||||
$resql=$webcal->localdb->query($sql);
|
$resql=$webcal->localdb->query($sql);
|
||||||
if ($resql) {
|
if ($resql) {
|
||||||
$mesg ="<div class=\"ok\">".$langs->trans("WebCalTestOk",$_POST["phpwebcalendar_host"],$_POST["phpwebcalendar_dbname"],$_POST["phpwebcalendar_user"]);
|
$mesg ="<div class=\"ok\">";
|
||||||
|
$mesg.=$langs->trans("WebCalTestOk",$_POST["phpwebcalendar_host"],$_POST["phpwebcalendar_dbname"],$_POST["phpwebcalendar_user"]);
|
||||||
$mesg.="</div>";
|
$mesg.="</div>";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$mesg ="<div class=\"error\">".$langs->trans("WebCalErrorConnectOkButWrongDatabase");
|
$mesg ="<div class=\"error\">";
|
||||||
|
$mesg.=$langs->trans("WebCalErrorConnectOkButWrongDatabase");
|
||||||
$mesg.="</div>";
|
$mesg.="</div>";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -145,11 +142,13 @@ print '<br>';
|
|||||||
|
|
||||||
print '<form name="phpwebcalendarconfig" action="'.$_SERVER["PHP_SELF"].'" method="post">';
|
print '<form name="phpwebcalendarconfig" action="'.$_SERVER["PHP_SELF"].'" method="post">';
|
||||||
print "<table class=\"noborder\" width=\"100%\">";
|
print "<table class=\"noborder\" width=\"100%\">";
|
||||||
|
|
||||||
print "<tr class=\"liste_titre\">";
|
print "<tr class=\"liste_titre\">";
|
||||||
print "<td width=\"30%\">".$langs->trans("Parameter")."</td>";
|
print "<td width=\"30%\">".$langs->trans("Parameter")."</td>";
|
||||||
print "<td>".$langs->trans("Value")."</td>";
|
print "<td>".$langs->trans("Value")."</td>";
|
||||||
print "<td>".$langs->trans("Examples")."</td>";
|
print "<td>".$langs->trans("Examples")."</td>";
|
||||||
print "</tr>";
|
print "</tr>";
|
||||||
|
|
||||||
print "<tr class=\"impair\">";
|
print "<tr class=\"impair\">";
|
||||||
print "<td>".$langs->trans("WebCalURL")."</td>";
|
print "<td>".$langs->trans("WebCalURL")."</td>";
|
||||||
print "<td><input type=\"text\" class=\"flat\" name=\"phpwebcalendar_url\" value=\"". ($_POST["phpwebcalendar_url"]?$_POST["phpwebcalendar_url"]:$conf->global->PHPWEBCALENDAR_URL) . "\" size=\"40\"></td>";
|
print "<td><input type=\"text\" class=\"flat\" name=\"phpwebcalendar_url\" value=\"". ($_POST["phpwebcalendar_url"]?$_POST["phpwebcalendar_url"]:$conf->global->PHPWEBCALENDAR_URL) . "\" size=\"40\"></td>";
|
||||||
@ -157,6 +156,7 @@ print "<td>http://localhost/webcalendar/";
|
|||||||
print "<br>https://webcalendarserver/";
|
print "<br>https://webcalendarserver/";
|
||||||
print "</td>";
|
print "</td>";
|
||||||
print "</tr>";
|
print "</tr>";
|
||||||
|
|
||||||
print "<tr class=\"pair\">";
|
print "<tr class=\"pair\">";
|
||||||
print "<td>".$langs->trans("WebCalServer")."</td>";
|
print "<td>".$langs->trans("WebCalServer")."</td>";
|
||||||
print "<td><input type=\"text\" class=\"flat\" name=\"phpwebcalendar_host\" value=\"". ($_POST["phpwebcalendar_host"]?$_POST["phpwebcalendar_host"]:$conf->global->PHPWEBCALENDAR_HOST) . "\" size=\"30\"></td>";
|
print "<td><input type=\"text\" class=\"flat\" name=\"phpwebcalendar_host\" value=\"". ($_POST["phpwebcalendar_host"]?$_POST["phpwebcalendar_host"]:$conf->global->PHPWEBCALENDAR_HOST) . "\" size=\"30\"></td>";
|
||||||
@ -164,6 +164,7 @@ print "<td>localhost";
|
|||||||
//print "<br>__dolibarr_main_db_host__ <i>(".$dolibarr_main_db_host.")</i>"
|
//print "<br>__dolibarr_main_db_host__ <i>(".$dolibarr_main_db_host.")</i>"
|
||||||
print "</td>";
|
print "</td>";
|
||||||
print "</tr>";
|
print "</tr>";
|
||||||
|
|
||||||
print "<tr class=\"impair\">";
|
print "<tr class=\"impair\">";
|
||||||
print "<td>".$langs->trans("WebCalDatabaseName")."</td>";
|
print "<td>".$langs->trans("WebCalDatabaseName")."</td>";
|
||||||
print "<td><input type=\"text\" class=\"flat\" name=\"phpwebcalendar_dbname\" value=\"". ($_POST["phpwebcalendar_dbname"]?$_POST["phpwebcalendar_dbname"]:$conf->global->PHPWEBCALENDAR_DBNAME) . "\" size=\"30\"></td>";
|
print "<td><input type=\"text\" class=\"flat\" name=\"phpwebcalendar_dbname\" value=\"". ($_POST["phpwebcalendar_dbname"]?$_POST["phpwebcalendar_dbname"]:$conf->global->PHPWEBCALENDAR_DBNAME) . "\" size=\"30\"></td>";
|
||||||
@ -171,6 +172,7 @@ print "<td>webcalendar";
|
|||||||
//print "<br>__dolibarr_main_db_name__ <i>(".$dolibarr_main_db_name.")</i>";
|
//print "<br>__dolibarr_main_db_name__ <i>(".$dolibarr_main_db_name.")</i>";
|
||||||
print "</td>";
|
print "</td>";
|
||||||
print "</tr>";
|
print "</tr>";
|
||||||
|
|
||||||
print "<tr class=\"pair\">";
|
print "<tr class=\"pair\">";
|
||||||
print "<td>".$langs->trans("WebCalUser")."</td>";
|
print "<td>".$langs->trans("WebCalUser")."</td>";
|
||||||
print "<td><input type=\"text\" class=\"flat\" name=\"phpwebcalendar_user\" value=\"". ($_POST["phpwebcalendar_user"]?$_POST["phpwebcalendar_user"]:$conf->global->PHPWEBCALENDAR_USER) . "\" size=\"30\"></td>";
|
print "<td><input type=\"text\" class=\"flat\" name=\"phpwebcalendar_user\" value=\"". ($_POST["phpwebcalendar_user"]?$_POST["phpwebcalendar_user"]:$conf->global->PHPWEBCALENDAR_USER) . "\" size=\"30\"></td>";
|
||||||
@ -178,6 +180,7 @@ print "<td>webcaluser";
|
|||||||
//print "<br>__dolibarr_main_db_user__ <i>(".$dolibarr_main_db_user.")</i>";
|
//print "<br>__dolibarr_main_db_user__ <i>(".$dolibarr_main_db_user.")</i>";
|
||||||
print "</td>";
|
print "</td>";
|
||||||
print "</tr>";
|
print "</tr>";
|
||||||
|
|
||||||
print "<tr class=\"impair\">";
|
print "<tr class=\"impair\">";
|
||||||
print "<td>".$langs->trans("Password")."</td>";
|
print "<td>".$langs->trans("Password")."</td>";
|
||||||
print "<td><input type=\"password\" class=\"flat\" name=\"phpwebcalendar_pass\" value=\"" . ($_POST["phpwebcalendar_pass"]?$_POST["phpwebcalendar_pass"]:$conf->global->PHPWEBCALENDAR_PASS) . "\" size=\"30\"></td>";
|
print "<td><input type=\"password\" class=\"flat\" name=\"phpwebcalendar_pass\" value=\"" . ($_POST["phpwebcalendar_pass"]?$_POST["phpwebcalendar_pass"]:$conf->global->PHPWEBCALENDAR_PASS) . "\" size=\"30\"></td>";
|
||||||
@ -185,13 +188,7 @@ print '<td>';
|
|||||||
//if ($dolibarr_main_db_pass) print '__dolibarr_main_db_pass__ <i>('.eregi_replace('.','*',$dolibarr_main_db_pass).')</i>';
|
//if ($dolibarr_main_db_pass) print '__dolibarr_main_db_pass__ <i>('.eregi_replace('.','*',$dolibarr_main_db_pass).')</i>';
|
||||||
print ' </td>';
|
print ' </td>';
|
||||||
print "</tr>";
|
print "</tr>";
|
||||||
print "<tr class=\"pair\">";
|
|
||||||
print "<td>".$langs->trans("PasswordRetype")."</td>";
|
|
||||||
print "<td><input type=\"password\" class=\"flat\" name=\"phpwebcalendar_pass2\" value=\"" . ($_POST["phpwebcalendar_pass2"]?$_POST["phpwebcalendar_pass2"]:$conf->global->PHPWEBCALENDAR_PASS) ."\" size=\"30\"></td>";
|
|
||||||
print '<td>';
|
|
||||||
//if ($dolibarr_main_db_pass) print '__dolibarr_main_db_pass__ <i>('.eregi_replace('.','*',$dolibarr_main_db_pass).')</i>';
|
|
||||||
print ' </td>';
|
|
||||||
print "</tr>";
|
|
||||||
print "</table>";
|
print "</table>";
|
||||||
print "<br>";
|
print "<br>";
|
||||||
|
|
||||||
|
|||||||
@ -60,6 +60,7 @@ class Conf
|
|||||||
var $projet;
|
var $projet;
|
||||||
var $postnuke;
|
var $postnuke;
|
||||||
var $webcal;
|
var $webcal;
|
||||||
|
var $mantis;
|
||||||
var $propal;
|
var $propal;
|
||||||
var $categorie;
|
var $categorie;
|
||||||
var $oscommerce2;
|
var $oscommerce2;
|
||||||
@ -267,6 +268,13 @@ class Conf
|
|||||||
$this->webcal->db->user=defined('PHPWEBCALENDAR_USER')?PHPWEBCALENDAR_USER:'';
|
$this->webcal->db->user=defined('PHPWEBCALENDAR_USER')?PHPWEBCALENDAR_USER:'';
|
||||||
$this->webcal->db->pass=defined('PHPWEBCALENDAR_PASS')?PHPWEBCALENDAR_PASS:'';
|
$this->webcal->db->pass=defined('PHPWEBCALENDAR_PASS')?PHPWEBCALENDAR_PASS:'';
|
||||||
$this->webcal->db->name=defined('PHPWEBCALENDAR_DBNAME')?PHPWEBCALENDAR_DBNAME:'';
|
$this->webcal->db->name=defined('PHPWEBCALENDAR_DBNAME')?PHPWEBCALENDAR_DBNAME:'';
|
||||||
|
// Module mantis
|
||||||
|
$this->mantis->enabled=defined('MAIN_MODULE_MANTIS')?MAIN_MODULE_MANTIS:0;
|
||||||
|
$this->mantis->db->type=defined('PHPMANTIS_TYPE')?PHPMANTIS_TYPE:'mysql';
|
||||||
|
$this->mantis->db->host=defined('PHPMANTIS_HOST')?PHPMANTIS_HOST:'';
|
||||||
|
$this->mantis->db->user=defined('PHPMANTIS_USER')?PHPMANTIS_USER:'';
|
||||||
|
$this->mantis->db->pass=defined('PHPMANTIS_PASS')?PHPMANTIS_PASS:'';
|
||||||
|
$this->mantis->db->name=defined('PHPMANTIS_DBNAME')?PHPMANTIS_DBNAME:'';
|
||||||
// Module facture
|
// Module facture
|
||||||
$this->facture->enabled=defined("MAIN_MODULE_FACTURE")?MAIN_MODULE_FACTURE:0;
|
$this->facture->enabled=defined("MAIN_MODULE_FACTURE")?MAIN_MODULE_FACTURE:0;
|
||||||
$this->facture->dir_output=DOL_DATA_ROOT."/facture";
|
$this->facture->dir_output=DOL_DATA_ROOT."/facture";
|
||||||
|
|||||||
@ -82,7 +82,7 @@ class MenuTop {
|
|||||||
|
|
||||||
print '<table class="tmenu"><tr class="tmenu">';
|
print '<table class="tmenu"><tr class="tmenu">';
|
||||||
|
|
||||||
// Entrée home
|
// Home
|
||||||
$id="";
|
$id="";
|
||||||
|
|
||||||
if ($_GET["mainmenu"] == "home" || ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "home"))
|
if ($_GET["mainmenu"] == "home" || ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "home"))
|
||||||
@ -98,7 +98,7 @@ class MenuTop {
|
|||||||
}
|
}
|
||||||
print '<td class="tmenu"><a class="tmenu" '.($id?'id="'.$id.'" ':'').'href="'.DOL_URL_ROOT.'/index.php?mainmenu=home&leftmenu="'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("Home").'</a></td>';
|
print '<td class="tmenu"><a class="tmenu" '.($id?'id="'.$id.'" ':'').'href="'.DOL_URL_ROOT.'/index.php?mainmenu=home&leftmenu="'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("Home").'</a></td>';
|
||||||
|
|
||||||
// Entrée adherent
|
// Adherent
|
||||||
if ($conf->adherent->enabled && $user->rights->adherent->lire)
|
if ($conf->adherent->enabled && $user->rights->adherent->lire)
|
||||||
{
|
{
|
||||||
$langs->load("members");
|
$langs->load("members");
|
||||||
@ -120,7 +120,7 @@ class MenuTop {
|
|||||||
print '<td class="tmenu"><a '.$class.' href="'.DOL_URL_ROOT.'/adherents/index.php?mainmenu=members"'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("Members").'</a></td>';
|
print '<td class="tmenu"><a '.$class.' href="'.DOL_URL_ROOT.'/adherents/index.php?mainmenu=members"'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("Members").'</a></td>';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Entrée commercial
|
// Commercial
|
||||||
if ($conf->commercial->enabled && $user->rights->commercial->main->lire)
|
if ($conf->commercial->enabled && $user->rights->commercial->main->lire)
|
||||||
{
|
{
|
||||||
$langs->load("commercial");
|
$langs->load("commercial");
|
||||||
@ -143,7 +143,7 @@ class MenuTop {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Entrée compta/tréso (sert pour banque, tva, entités à facturer...)
|
// Compta/tréso (sert pour banque, tva, entités à facturer...)
|
||||||
if ($conf->compta->enabled || $conf->comptaexpert->enabled || $conf->banque->enabled || $conf->caisse->enabled)
|
if ($conf->compta->enabled || $conf->comptaexpert->enabled || $conf->banque->enabled || $conf->caisse->enabled)
|
||||||
{
|
{
|
||||||
// if ($user->rights->compta->general->lire || $user->rights->comptaexpert->general->lire)
|
// if ($user->rights->compta->general->lire || $user->rights->comptaexpert->general->lire)
|
||||||
@ -168,7 +168,7 @@ class MenuTop {
|
|||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
// Entrée projets
|
// Projects
|
||||||
if ($conf->projet->enabled && $user->rights->projet->lire)
|
if ($conf->projet->enabled && $user->rights->projet->lire)
|
||||||
{
|
{
|
||||||
$langs->load("projects");
|
$langs->load("projects");
|
||||||
@ -191,7 +191,7 @@ class MenuTop {
|
|||||||
print '<td class="tmenu"><a '.$class.' href="'.DOL_URL_ROOT.'/projet/index.php?mainmenu=project">'.$chaine.'</a></td>';
|
print '<td class="tmenu"><a '.$class.' href="'.DOL_URL_ROOT.'/projet/index.php?mainmenu=project">'.$chaine.'</a></td>';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Entrée produit/service
|
// Produit/service
|
||||||
if (($conf->produit->enabled || $conf->service->enabled) && $user->rights->produit->lire)
|
if (($conf->produit->enabled || $conf->service->enabled) && $user->rights->produit->lire)
|
||||||
{
|
{
|
||||||
$langs->load("products");
|
$langs->load("products");
|
||||||
@ -218,7 +218,7 @@ class MenuTop {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Entrée fournisseur
|
// Supplier
|
||||||
if ($conf->fournisseur->enabled && $user->rights->fournisseur->commande->lire)
|
if ($conf->fournisseur->enabled && $user->rights->fournisseur->commande->lire)
|
||||||
{
|
{
|
||||||
$langs->load("suppliers");
|
$langs->load("suppliers");
|
||||||
@ -240,7 +240,7 @@ class MenuTop {
|
|||||||
print '<td class="tmenu"><a '.$class.' href="'.DOL_URL_ROOT.'/fourn/index.php?mainmenu=suppliers"'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("Suppliers").'</a></td>';
|
print '<td class="tmenu"><a '.$class.' href="'.DOL_URL_ROOT.'/fourn/index.php?mainmenu=suppliers"'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("Suppliers").'</a></td>';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Entrée telephonie
|
// Telephonie
|
||||||
if ($conf->telephonie->enabled && $user->rights->telephonie->lire)
|
if ($conf->telephonie->enabled && $user->rights->telephonie->lire)
|
||||||
{
|
{
|
||||||
$class="";
|
$class="";
|
||||||
@ -256,7 +256,7 @@ class MenuTop {
|
|||||||
print '<td class="tmenu"><a '.$class.' href="'.DOL_URL_ROOT.'/telephonie/index.php?mainmenu=telephonie"'.($this->atarget?" target=$this->atarget":"").'>Telephonie</a></td>';
|
print '<td class="tmenu"><a '.$class.' href="'.DOL_URL_ROOT.'/telephonie/index.php?mainmenu=telephonie"'.($this->atarget?" target=$this->atarget":"").'>Telephonie</a></td>';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Entrée energie
|
// Energie
|
||||||
if ($conf->energie->enabled)
|
if ($conf->energie->enabled)
|
||||||
{
|
{
|
||||||
$langs->load("energy");
|
$langs->load("energy");
|
||||||
@ -273,7 +273,7 @@ class MenuTop {
|
|||||||
print '<td class="tmenu"><a '.$class.' href="'.DOL_URL_ROOT.'/energie/index.php?mainmenu=energie"'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("Energy").'</a></td>';
|
print '<td class="tmenu"><a '.$class.' href="'.DOL_URL_ROOT.'/energie/index.php?mainmenu=energie"'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("Energy").'</a></td>';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Entrée OSCommerce 1
|
// OSCommerce 1
|
||||||
if ($conf->boutique->enabled)
|
if ($conf->boutique->enabled)
|
||||||
{
|
{
|
||||||
$langs->load("shop");
|
$langs->load("shop");
|
||||||
@ -290,7 +290,7 @@ class MenuTop {
|
|||||||
print '<td class="tmenu"><a '.$class.' href="'.DOL_URL_ROOT.'/boutique/index.php?mainmenu=boutique"'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("OSCommerce").'</a></td>';
|
print '<td class="tmenu"><a '.$class.' href="'.DOL_URL_ROOT.'/boutique/index.php?mainmenu=boutique"'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("OSCommerce").'</a></td>';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Entrée OSCommerce 2
|
// OSCommerce 2
|
||||||
if ($conf->oscommerce2->enabled)
|
if ($conf->oscommerce2->enabled)
|
||||||
{
|
{
|
||||||
$langs->load("shop");
|
$langs->load("shop");
|
||||||
@ -307,7 +307,7 @@ class MenuTop {
|
|||||||
print '<td class="tmenu"><a '.$class.' href="'.DOL_URL_ROOT.'/oscommerce_ws/index.php?mainmenu=oscommerce2"'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("OSCommerce").'</a></td>';
|
print '<td class="tmenu"><a '.$class.' href="'.DOL_URL_ROOT.'/oscommerce_ws/index.php?mainmenu=oscommerce2"'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("OSCommerce").'</a></td>';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Entrée webcal
|
// Webcal
|
||||||
if ($conf->webcal->enabled)
|
if ($conf->webcal->enabled)
|
||||||
{
|
{
|
||||||
$langs->load("other");
|
$langs->load("other");
|
||||||
@ -326,7 +326,29 @@ class MenuTop {
|
|||||||
$class = 'class="tmenu"';
|
$class = 'class="tmenu"';
|
||||||
}
|
}
|
||||||
|
|
||||||
print '<td class="tmenu"><a '.$class.' href="'.DOL_URL_ROOT.'/projet/webcal.php?mainmenu=webcal"'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("Calendar").'</a></td>';
|
print '<td class="tmenu"><a '.$class.' href="'.DOL_URL_ROOT.'/webcal/webcal.php?mainmenu=webcal"'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("Calendar").'</a></td>';
|
||||||
|
}
|
||||||
|
|
||||||
|
// Mantis
|
||||||
|
if ($conf->mantis->enabled)
|
||||||
|
{
|
||||||
|
$langs->load("other");
|
||||||
|
|
||||||
|
$class="";
|
||||||
|
if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "mantis")
|
||||||
|
{
|
||||||
|
$class='class="tmenu" id="sel"';
|
||||||
|
}
|
||||||
|
elseif (ereg("^".DOL_URL_ROOT.".*\/mantis",$_SERVER["PHP_SELF"]) || ereg("^".DOL_URL_ROOT."\/mantis\/",$_SERVER["PHP_SELF"]))
|
||||||
|
{
|
||||||
|
$class='class="tmenu" id="sel"';
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$class = 'class="tmenu"';
|
||||||
|
}
|
||||||
|
|
||||||
|
print '<td class="tmenu"><a '.$class.' href="'.DOL_URL_ROOT.'/mantis/mantis.php?mainmenu=mantis"'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("BugTracker").'</a></td>';
|
||||||
}
|
}
|
||||||
|
|
||||||
print '</tr></table>';
|
print '</tr></table>';
|
||||||
|
|||||||
@ -286,7 +286,29 @@ class MenuTop {
|
|||||||
$class = 'class="tmenu"';
|
$class = 'class="tmenu"';
|
||||||
}
|
}
|
||||||
|
|
||||||
print '<td class="tmenu"><a '.$class.' href="'.DOL_URL_ROOT.'/projet/webcal.php?mainmenu=webcal&leftmenu="'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("Calendar").'</a></td>';
|
print '<td class="tmenu"><a '.$class.' href="'.DOL_URL_ROOT.'/webcal/webcal.php?mainmenu=webcal&leftmenu="'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("Calendar").'</a></td>';
|
||||||
|
}
|
||||||
|
|
||||||
|
// Mantis
|
||||||
|
if ($conf->mantis->enabled)
|
||||||
|
{
|
||||||
|
$langs->load("other");
|
||||||
|
|
||||||
|
$class="";
|
||||||
|
if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "mantis")
|
||||||
|
{
|
||||||
|
$class='class="tmenu" id="sel"';
|
||||||
|
}
|
||||||
|
elseif (ereg("^".DOL_URL_ROOT.".*\/mantis",$_SERVER["PHP_SELF"]) || ereg("^".DOL_URL_ROOT."\/mantis\/",$_SERVER["PHP_SELF"]))
|
||||||
|
{
|
||||||
|
$class='class="tmenu" id="sel"';
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$class = 'class="tmenu"';
|
||||||
|
}
|
||||||
|
|
||||||
|
print '<td class="tmenu"><a '.$class.' href="'.DOL_URL_ROOT.'/mantis/mantis.php?mainmenu=mantis"'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("BugTracker").'</a></td>';
|
||||||
}
|
}
|
||||||
|
|
||||||
print '</tr></table>';
|
print '</tr></table>';
|
||||||
|
|||||||
@ -248,7 +248,29 @@ class MenuTop {
|
|||||||
$class = 'class="tmenu"';
|
$class = 'class="tmenu"';
|
||||||
}
|
}
|
||||||
|
|
||||||
// print '<td class="tmenu"><a '.$class.' href="'.DOL_URL_ROOT.'/projet/webcal.php?mainmenu=webcal&leftmenu="'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("Calendar").'</a></td>';
|
// print '<td class="tmenu"><a '.$class.' href="'.DOL_URL_ROOT.'/webcal/webcal.php?mainmenu=webcal&leftmenu="'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("Calendar").'</a></td>';
|
||||||
|
}
|
||||||
|
|
||||||
|
// Mantis
|
||||||
|
if ($conf->mantis->enabled)
|
||||||
|
{
|
||||||
|
$langs->load("other");
|
||||||
|
|
||||||
|
$class="";
|
||||||
|
if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "mantis")
|
||||||
|
{
|
||||||
|
$class='class="tmenu" id="sel"';
|
||||||
|
}
|
||||||
|
elseif (ereg("^".DOL_URL_ROOT.".*\/mantis",$_SERVER["PHP_SELF"]) || ereg("^".DOL_URL_ROOT."\/mantis\/",$_SERVER["PHP_SELF"]))
|
||||||
|
{
|
||||||
|
$class='class="tmenu" id="sel"';
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$class = 'class="tmenu"';
|
||||||
|
}
|
||||||
|
|
||||||
|
print '<td class="tmenu"><a '.$class.' href="'.DOL_URL_ROOT.'/mantis/mantis.php?mainmenu=mantis"'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("BugTracker").'</a></td>';
|
||||||
}
|
}
|
||||||
|
|
||||||
print '</tr></table>';
|
print '</tr></table>';
|
||||||
|
|||||||
@ -177,6 +177,8 @@ Module800Name=OSCommerce 1
|
|||||||
Module800Desc=Interface to show an OSCommerce shop via direct database access
|
Module800Desc=Interface to show an OSCommerce shop via direct database access
|
||||||
Module900Name=OSCommerce 2
|
Module900Name=OSCommerce 2
|
||||||
Module900Desc=Interface to show an OSCommerce shop via Web services.\nThis module requiere you to install components from /oscommerce_ws/ws_server into your OSCommerce server. See README file in /oscommerce_ws/ws_server.
|
Module900Desc=Interface to show an OSCommerce shop via Web services.\nThis module requiere you to install components from /oscommerce_ws/ws_server into your OSCommerce server. See README file in /oscommerce_ws/ws_server.
|
||||||
|
Module1200Name=Mantis
|
||||||
|
Module1200Desc=Mantis integration
|
||||||
Module1780Name=Categories
|
Module1780Name=Categories
|
||||||
Module1780Desc=Categories' management
|
Module1780Desc=Categories' management
|
||||||
Permission11=Read invoices
|
Permission11=Read invoices
|
||||||
@ -445,12 +447,12 @@ WebCalSetupSaved=Webcalendar setup saved successfully.
|
|||||||
WebCalTestOk=Connection to server '%s' on database '%s' with user '%s' successfull.
|
WebCalTestOk=Connection to server '%s' on database '%s' with user '%s' successfull.
|
||||||
WebCalTestKo1=Connection to server '%s' succeed but database '%s' could not be reached.
|
WebCalTestKo1=Connection to server '%s' succeed but database '%s' could not be reached.
|
||||||
WebCalTestKo2=Connection to server '%s' with user '%s' failed.
|
WebCalTestKo2=Connection to server '%s' with user '%s' failed.
|
||||||
|
WebCalErrorConnectOkButWrongDatabase=Connection succeeded but database doesn't look to be a Webcalendar database.
|
||||||
WebCalAddEventOnCreateActions=Add calendar event on actions create
|
WebCalAddEventOnCreateActions=Add calendar event on actions create
|
||||||
WebCalAddEventOnCreateCompany=Add calendar event on companies create
|
WebCalAddEventOnCreateCompany=Add calendar event on companies create
|
||||||
WebCalAddEventOnStatusPropal=Add calendar event on commercial proposal status change
|
WebCalAddEventOnStatusPropal=Add calendar event on commercial proposal status change
|
||||||
WebCalAddEventOnStatusContract=Add calendar event on contract status change
|
WebCalAddEventOnStatusContract=Add calendar event on contract status change
|
||||||
WebCalAddEventOnStatusBill=Add calendar event on bill status change
|
WebCalAddEventOnStatusBill=Add calendar event on bill status change
|
||||||
WebCalErrorConnectOkButWrongDatabase=Connection succeeded but database doesn't look to be a Webcalendar database.
|
|
||||||
##### Invoices #####
|
##### Invoices #####
|
||||||
BillsSetup=Invoices module setup
|
BillsSetup=Invoices module setup
|
||||||
BillsDate=Invoices date
|
BillsDate=Invoices date
|
||||||
@ -656,3 +658,14 @@ OSCommerceErrorConnectOkButWrongDatabase=Connection succeeded but database doesn
|
|||||||
OSCommerceTestOk=Connection to server '%s' on database '%s' with user '%s' successfull.
|
OSCommerceTestOk=Connection to server '%s' on database '%s' with user '%s' successfull.
|
||||||
OSCommerceTestKo1=Connection to server '%s' succeed but database '%s' could not be reached.
|
OSCommerceTestKo1=Connection to server '%s' succeed but database '%s' could not be reached.
|
||||||
OSCommerceTestKo2=Connection to server '%s' with user '%s' failed.
|
OSCommerceTestKo2=Connection to server '%s' with user '%s' failed.
|
||||||
|
##### Mantis #####
|
||||||
|
MantisSetup=Mantis link setup
|
||||||
|
MantisURL=URL for Mantis access
|
||||||
|
MantisServer=Server hosting Mantis database
|
||||||
|
MantisDatabaseName=Database name
|
||||||
|
MantisUser=User to access database
|
||||||
|
MantisSetupSaved=Mantis setup saved successfully.
|
||||||
|
MantisTestOk=Connection to server '%s' on database '%s' with user '%s' successfull.
|
||||||
|
MantisTestKo1=Connection to server '%s' succeed but database '%s' could not be reached.
|
||||||
|
MantisTestKo2=Connection to server '%s' with user '%s' failed.
|
||||||
|
MantisErrorConnectOkButWrongDatabase=Connection succeeded but database doesn't look to be a Mantis database.
|
||||||
|
|||||||
@ -177,6 +177,8 @@ Module800Name=OSCommerce 1
|
|||||||
Module800Desc=Interface de visualisation d'une boutique OSCommerce par accès direct en base.
|
Module800Desc=Interface de visualisation d'une boutique OSCommerce par accès direct en base.
|
||||||
Module900Name=OSCommerce 2
|
Module900Name=OSCommerce 2
|
||||||
Module900Desc=Interface de visualisation d'une boutique OSCommerce par accès via des Web services.\nCe module requiert d'installer les fichiers de /oscommerce_ws/ws_server sur OSCommerce. Voir fichier README dans /oscommerce_ws/ws_server.
|
Module900Desc=Interface de visualisation d'une boutique OSCommerce par accès via des Web services.\nCe module requiert d'installer les fichiers de /oscommerce_ws/ws_server sur OSCommerce. Voir fichier README dans /oscommerce_ws/ws_server.
|
||||||
|
Module1200Name=Mantis
|
||||||
|
Module1200Desc=Interface avec le bug tracking Mantis
|
||||||
Module1780Name=Catégories
|
Module1780Name=Catégories
|
||||||
Module1780Desc=Gestion des catégories
|
Module1780Desc=Gestion des catégories
|
||||||
Permission11=Consulter les factures
|
Permission11=Consulter les factures
|
||||||
@ -445,12 +447,12 @@ WebCalSetupSaved=Les identifiants Webcalendar ont
|
|||||||
WebCalTestOk=La connexion au serveur '%s' sur la base '%s' par l'utilisateur '%s' a réussi.
|
WebCalTestOk=La connexion au serveur '%s' sur la base '%s' par l'utilisateur '%s' a réussi.
|
||||||
WebCalTestKo1=La connexion au serveur '%s' a réussi mais la base '%s' n'a pu être atteinte.
|
WebCalTestKo1=La connexion au serveur '%s' a réussi mais la base '%s' n'a pu être atteinte.
|
||||||
WebCalTestKo2=La connexion au serveur '%s' par l'utilisateur '%s' à échoué.
|
WebCalTestKo2=La connexion au serveur '%s' par l'utilisateur '%s' à échoué.
|
||||||
|
WebCalErrorConnectOkButWrongDatabase=La connexion a réussie mais la base ne semble pas etre une base Webcalendar.
|
||||||
WebCalAddEventOnCreateActions=Ajouter évênement dans calendrier sur création d'actions
|
WebCalAddEventOnCreateActions=Ajouter évênement dans calendrier sur création d'actions
|
||||||
WebCalAddEventOnCreateCompany=Ajouter évênement dans calendrier sur création de sociétés
|
WebCalAddEventOnCreateCompany=Ajouter évênement dans calendrier sur création de sociétés
|
||||||
WebCalAddEventOnStatusPropal=Ajouter évênement dans calendrier sur changement de statut des propositions commerciales
|
WebCalAddEventOnStatusPropal=Ajouter évênement dans calendrier sur changement de statut des propositions commerciales
|
||||||
WebCalAddEventOnStatusContract=Ajouter évênement dans calendrier sur changement de statut des contrats
|
WebCalAddEventOnStatusContract=Ajouter évênement dans calendrier sur changement de statut des contrats
|
||||||
WebCalAddEventOnStatusBill=Ajouter évênement dans calendrier sur changement de statut des factures
|
WebCalAddEventOnStatusBill=Ajouter évênement dans calendrier sur changement de statut des factures
|
||||||
WebCalErrorConnectOkButWrongDatabase=La connexion a réussie mais la base ne semble pas etre une base webcalendar.
|
|
||||||
##### Invoices #####
|
##### Invoices #####
|
||||||
BillsSetup=Configuration du module Factures
|
BillsSetup=Configuration du module Factures
|
||||||
BillsDate=Date des factures
|
BillsDate=Date des factures
|
||||||
@ -656,4 +658,14 @@ OSCommerceErrorConnectOkButWrongDatabase=La connexion a r
|
|||||||
OSCommerceTestOk=La connexion au serveur '%s' sur la base '%s' par l'utilisateur '%s' a réussi.
|
OSCommerceTestOk=La connexion au serveur '%s' sur la base '%s' par l'utilisateur '%s' a réussi.
|
||||||
OSCommerceTestKo1=La connexion au serveur '%s' a réussi mais la base '%s' n'a pu être atteinte.
|
OSCommerceTestKo1=La connexion au serveur '%s' a réussi mais la base '%s' n'a pu être atteinte.
|
||||||
OSCommerceTestKo2=La connexion au serveur '%s' par l'utilisateur '%s' à échoué.
|
OSCommerceTestKo2=La connexion au serveur '%s' par l'utilisateur '%s' à échoué.
|
||||||
|
##### Mantis #####
|
||||||
|
MantisSetup=Configuration du lien avec le Bug Tracking Mantis
|
||||||
|
MantisURL=Adresse (URL) d'accès à Mantis
|
||||||
|
MantisServer=Serveur de la base de donnée de Mantis
|
||||||
|
MantisDatabaseName=Nom de la base de données
|
||||||
|
MantisUser=Identifiant d'accès à la base
|
||||||
|
MantisSetupSaved=Les identifiants Mantis ont été correctement sauvegardés.
|
||||||
|
MantisTestOk=La connexion au serveur '%s' sur la base '%s' par l'utilisateur '%s' a réussi.
|
||||||
|
MantisTestKo1=La connexion au serveur '%s' a réussi mais la base '%s' n'a pu être atteinte.
|
||||||
|
MantisTestKo2=La connexion au serveur '%s' par l'utilisateur '%s' à échoué.
|
||||||
|
MantisErrorConnectOkButWrongDatabase=La connexion a réussie mais la base ne semble pas etre une base Mantis.
|
||||||
|
|||||||
@ -125,10 +125,10 @@ class DoliDb
|
|||||||
|
|
||||||
// Essai connexion serveur
|
// Essai connexion serveur
|
||||||
$this->db = $this->connect($host, $user, $pass, $name, $newlink);
|
$this->db = $this->connect($host, $user, $pass, $name, $newlink);
|
||||||
|
|
||||||
if ($this->db)
|
if ($this->db)
|
||||||
{
|
{
|
||||||
// Si client connecté avec charset different de celui de Dolibarr
|
// Si client connecté avec charset different de celui de la base Dolibarr
|
||||||
|
// (La base Dolibarr a été forcée en this->forcecharset à l'install)
|
||||||
if (mysql_client_encoding ( $this->db ) != $this->forcecharset)
|
if (mysql_client_encoding ( $this->db ) != $this->forcecharset)
|
||||||
{
|
{
|
||||||
$this->query("SET NAMES '".$this->forcecharset."'", $this->db);
|
$this->query("SET NAMES '".$this->forcecharset."'", $this->db);
|
||||||
@ -141,7 +141,7 @@ class DoliDb
|
|||||||
// host, login ou password incorrect
|
// host, login ou password incorrect
|
||||||
$this->connected = 0;
|
$this->connected = 0;
|
||||||
$this->ok = 0;
|
$this->ok = 0;
|
||||||
dolibarr_syslog("DoliDB::DoliDB : Erreur Connect");
|
dolibarr_syslog("DoliDB::DoliDB : Erreur Connect mysql_error=".mysql_error());
|
||||||
}
|
}
|
||||||
|
|
||||||
// Si connexion serveur ok et si connexion base demandée, on essaie connexion base
|
// Si connexion serveur ok et si connexion base demandée, on essaie connexion base
|
||||||
@ -194,8 +194,9 @@ class DoliDb
|
|||||||
*/
|
*/
|
||||||
function connect($host, $login, $passwd, $name)
|
function connect($host, $login, $passwd, $name)
|
||||||
{
|
{
|
||||||
|
dolibarr_syslog("DoliDB::connect host=$host, login=$login, passwd=$passwd, name=$name");
|
||||||
$this->db = @mysql_connect($host, $login, $passwd);
|
$this->db = @mysql_connect($host, $login, $passwd);
|
||||||
//print "Resultat fonction connect: ".$this->db;
|
//print "Resultat fonction connect: ".$this->db." - mysql_error=".mysql_error();
|
||||||
return $this->db;
|
return $this->db;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -581,6 +582,7 @@ class DoliDb
|
|||||||
\param database nom de la database à créer
|
\param database nom de la database à créer
|
||||||
\return resource resource définie si ok, null si ko
|
\return resource resource définie si ok, null si ko
|
||||||
\remarks Ne pas utiliser les fonctions xxx_create_db (xxx=mysql, ...) car elles sont deprecated
|
\remarks Ne pas utiliser les fonctions xxx_create_db (xxx=mysql, ...) car elles sont deprecated
|
||||||
|
On force creation de la base avec le charset forcecharset
|
||||||
*/
|
*/
|
||||||
function DDLCreateDb($database)
|
function DDLCreateDb($database)
|
||||||
{
|
{
|
||||||
|
|||||||
64
htdocs/mantis/mantis.php
Normal file
64
htdocs/mantis/mantis.php
Normal file
@ -0,0 +1,64 @@
|
|||||||
|
<?php
|
||||||
|
/* Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
*
|
||||||
|
* $Id$
|
||||||
|
* $Source$
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** \file htdocs/mantis/mantis.php
|
||||||
|
\ingroup mantis
|
||||||
|
\brief Page générant 2 frames, une pour le menu Dolibarr, l'autre pour l'affichage de Mantis
|
||||||
|
\author Laurent Destailleur
|
||||||
|
\version $Revision$
|
||||||
|
*/
|
||||||
|
|
||||||
|
require("./pre.inc.php");
|
||||||
|
|
||||||
|
$url=PHPMANTIS_URL;
|
||||||
|
$mainmenu=isset($_GET["mainmenu"])?$_GET["mainmenu"]:"";
|
||||||
|
$leftmenu=isset($_GET["leftmenu"])?$_GET["leftmenu"]:"";
|
||||||
|
|
||||||
|
print "
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>Dolibarr frame for Mantis</title>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<frameset rows=\"28,*\" border=0 framespacing=0 frameborder=0>
|
||||||
|
<frame name=\"barre\" src=\"mantistop.php?mainmenu=$mainmenu&leftmenu=$leftmenu\" noresize scrolling=\"NO\" noborder>
|
||||||
|
<frame name=\"main\" src=\"$url\">
|
||||||
|
<noframes>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</noframes>
|
||||||
|
</frameset>
|
||||||
|
|
||||||
|
<noframes>
|
||||||
|
<body>
|
||||||
|
<br><center>
|
||||||
|
Malheureusement, votre navigateur est trop vieux pour visualiser cette zone.<br>
|
||||||
|
Il vous faut un navigateur gérant les frames.<br>
|
||||||
|
</center>
|
||||||
|
</body>
|
||||||
|
</noframes>
|
||||||
|
|
||||||
|
</html>
|
||||||
|
";
|
||||||
|
|
||||||
|
|
||||||
|
?>
|
||||||
45
htdocs/mantis/pre.inc.php
Normal file
45
htdocs/mantis/pre.inc.php
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
<?php
|
||||||
|
/* Copyright (C) 2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
*
|
||||||
|
* $Id$
|
||||||
|
* $Source$
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
\file htdocs/mantis/pre.inc.php
|
||||||
|
\ingroup mantis
|
||||||
|
\brief Fichier de gestion du menu gauche du module mantis
|
||||||
|
\version $Revision$
|
||||||
|
*/
|
||||||
|
|
||||||
|
require ("../main.inc.php");
|
||||||
|
|
||||||
|
$user->getrights('mantis');
|
||||||
|
|
||||||
|
function llxHeader($head = "", $title="", $help_url='')
|
||||||
|
{
|
||||||
|
global $langs;
|
||||||
|
|
||||||
|
top_menu($head, $title);
|
||||||
|
|
||||||
|
$menu = new Menu();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
left_menu($menu->liste, $help_url);
|
||||||
|
}
|
||||||
|
?>
|
||||||
45
htdocs/webcal/pre.inc.php
Normal file
45
htdocs/webcal/pre.inc.php
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
<?php
|
||||||
|
/* Copyright (C) 2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
*
|
||||||
|
* $Id$
|
||||||
|
* $Source$
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
\file htdocs/webcal/pre.inc.php
|
||||||
|
\ingroup webcalendar
|
||||||
|
\brief Fichier de gestion du menu gauche du module webcalendar
|
||||||
|
\version $Revision$
|
||||||
|
*/
|
||||||
|
|
||||||
|
require ("../main.inc.php");
|
||||||
|
|
||||||
|
$user->getrights('webcal');
|
||||||
|
|
||||||
|
function llxHeader($head = "", $title="", $help_url='')
|
||||||
|
{
|
||||||
|
global $langs;
|
||||||
|
|
||||||
|
top_menu($head, $title);
|
||||||
|
|
||||||
|
$menu = new Menu();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
left_menu($menu->liste, $help_url);
|
||||||
|
}
|
||||||
|
?>
|
||||||
@ -17,10 +17,9 @@
|
|||||||
*
|
*
|
||||||
* $Id$
|
* $Id$
|
||||||
* $Source$
|
* $Source$
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/** \file htdocs/projet/webcal.php
|
/** \file htdocs/wecal/webcal.php
|
||||||
\ingroup webcalendar
|
\ingroup webcalendar
|
||||||
\brief Page générant 2 frames, une pour le menu Dolibarr, l'autre pour l'affichage du calendrier
|
\brief Page générant 2 frames, une pour le menu Dolibarr, l'autre pour l'affichage du calendrier
|
||||||
\author Laurent Destailleur
|
\author Laurent Destailleur
|
||||||
44
htdocs/webcal/webcaltop.php
Normal file
44
htdocs/webcal/webcaltop.php
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
<?php
|
||||||
|
/* Copyright (C) 2001-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
*
|
||||||
|
* $Id$
|
||||||
|
* $Source$
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*! \file htdocs/projet/webcaltop.php
|
||||||
|
\ingroup webcalendar
|
||||||
|
\brief Frame du haut Dolibarr pour l'affichage du calendrier
|
||||||
|
\author Laurent Destailleur
|
||||||
|
\version $Revision$
|
||||||
|
*/
|
||||||
|
|
||||||
|
require ("../main.inc.php");
|
||||||
|
|
||||||
|
top_menu("","","_top");
|
||||||
|
|
||||||
|
?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Loading…
Reference in New Issue
Block a user