Qual: Uniformize code
This commit is contained in:
parent
a3230291a6
commit
6b9b50d9df
@ -49,8 +49,8 @@ if (! empty($_GET["logind"])) $filters['logind']=$_GET["logind"];
|
|||||||
|
|
||||||
|
|
||||||
// C'est un wrapper, donc header vierge
|
// C'est un wrapper, donc header vierge
|
||||||
function llxHeader() { print '<html><title>Export agenda cal</title><body>'; }
|
function llxHeaderVierge() { print '<html><title>Export agenda cal</title><body>'; }
|
||||||
function llxFooter() { print '</body></html>'; }
|
function llxFooterVierge() { print '</body></html>'; }
|
||||||
|
|
||||||
|
|
||||||
// Check config
|
// Check config
|
||||||
@ -58,9 +58,9 @@ if (empty($conf->global->MAIN_AGENDA_XCAL_EXPORTKEY))
|
|||||||
{
|
{
|
||||||
$user->getrights();
|
$user->getrights();
|
||||||
|
|
||||||
llxHeader();
|
llxHeaderVierge();
|
||||||
print '<div class="error">Module Agenda was not configured properly.</div>';
|
print '<div class="error">Module Agenda was not configured properly.</div>';
|
||||||
llxFooter('$Date$ - $Revision$');
|
llxFooterVierge('$Date$ - $Revision$');
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -69,9 +69,9 @@ if (empty($_GET["exportkey"]) || $conf->global->MAIN_AGENDA_XCAL_EXPORTKEY != $_
|
|||||||
{
|
{
|
||||||
$user->getrights();
|
$user->getrights();
|
||||||
|
|
||||||
llxHeader();
|
llxHeaderVierge();
|
||||||
print '<div class="error">Bad value for key.</div>';
|
print '<div class="error">Bad value for key.</div>';
|
||||||
llxFooter('$Date$ - $Revision$');
|
llxFooterVierge('$Date$ - $Revision$');
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -85,9 +85,9 @@ if (! $filename)
|
|||||||
{
|
{
|
||||||
$langs->load("main");
|
$langs->load("main");
|
||||||
$langs->load("errors");
|
$langs->load("errors");
|
||||||
llxHeader();
|
llxHeaderVierge();
|
||||||
print '<div class="error">'.$langs->trans("ErrorWrongValueForParameterX",'format').'</div>';
|
print '<div class="error">'.$langs->trans("ErrorWrongValueForParameterX",'format').'</div>';
|
||||||
llxFooter('$Date$ - $Revision$');
|
llxFooterVierge('$Date$ - $Revision$');
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -161,7 +161,7 @@ if ($format == 'rss')
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
llxHeader();
|
llxHeaderVierge();
|
||||||
print '<div class="error">'.$agenda->error.'</div>';
|
print '<div class="error">'.$agenda->error.'</div>';
|
||||||
llxFooter('$Date$ - $Revision$');
|
llxFooterVierge('$Date$ - $Revision$');
|
||||||
?>
|
?>
|
||||||
|
|||||||
@ -84,7 +84,7 @@ function llxHeaderVierge($title, $head = "")
|
|||||||
print '<body style="margin: 20px;">'."\n";
|
print '<body style="margin: 20px;">'."\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
function llxFooter()
|
function llxFooterVierge()
|
||||||
{
|
{
|
||||||
print "\n";
|
print "\n";
|
||||||
print "</body>\n";
|
print "</body>\n";
|
||||||
@ -280,5 +280,5 @@ if (! empty($conf->global->MAIN_GOOGLE_AD_CLIENT) && ! empty($conf->global->MAIN
|
|||||||
print '</div>'."\n";
|
print '</div>'."\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
llxFooter('$Date$ - $Revision$');
|
llxFooterVierge('$Date$ - $Revision$');
|
||||||
?>
|
?>
|
||||||
|
|||||||
@ -56,7 +56,7 @@ function llxHeaderVierge($title, $head = "")
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Function for page HTML footer
|
// Function for page HTML footer
|
||||||
function llxFooter()
|
function llxFooterVierge()
|
||||||
{
|
{
|
||||||
print "</body>\n";
|
print "</body>\n";
|
||||||
print "</html>\n";
|
print "</html>\n";
|
||||||
@ -198,7 +198,7 @@ if (isset($_GET["action"]) && $_GET["action"] == 'added')
|
|||||||
print "<tr><td><FONT COLOR=\"blue\">Nouvel Adherent ajoute. En attente de validation</FONT></td></tr>\n";
|
print "<tr><td><FONT COLOR=\"blue\">Nouvel Adherent ajoute. En attente de validation</FONT></td></tr>\n";
|
||||||
print '</table>';
|
print '</table>';
|
||||||
|
|
||||||
llxFooter('$Date$ - $Revision$');
|
llxFooterVierge('$Date$ - $Revision$');
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -286,5 +286,5 @@ print "</form>\n";
|
|||||||
|
|
||||||
$db->close();
|
$db->close();
|
||||||
|
|
||||||
llxFooter('$Date$ - $Revision$');
|
llxFooterVierge('$Date$ - $Revision$');
|
||||||
?>
|
?>
|
||||||
|
|||||||
@ -106,7 +106,7 @@ if ($rowid > 0)
|
|||||||
|
|
||||||
$db->close();
|
$db->close();
|
||||||
|
|
||||||
llxFooter('$Date$ - $Revision$');
|
llxFooterVierge('$Date$ - $Revision$');
|
||||||
|
|
||||||
|
|
||||||
/* Functions header and footer */
|
/* Functions header and footer */
|
||||||
@ -124,7 +124,7 @@ function llxHeaderVierge($title, $head = "")
|
|||||||
print "<body>\n";
|
print "<body>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
function llxFooter()
|
function llxFooterVierge()
|
||||||
{
|
{
|
||||||
print "</body>\n";
|
print "</body>\n";
|
||||||
print "</html>\n";
|
print "</html>\n";
|
||||||
|
|||||||
@ -51,7 +51,7 @@ function llxHeaderVierge($title, $head = "")
|
|||||||
print "<body>\n";
|
print "<body>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
function llxFooter()
|
function llxFooterVierge()
|
||||||
{
|
{
|
||||||
print "</body>\n";
|
print "</body>\n";
|
||||||
print "</html>\n";
|
print "</html>\n";
|
||||||
@ -142,5 +142,5 @@ else
|
|||||||
|
|
||||||
$db->close();
|
$db->close();
|
||||||
|
|
||||||
llxFooter('$Date$ - $Revision$');
|
llxFooterVierge('$Date$ - $Revision$');
|
||||||
?>
|
?>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user