Skip to content
Snippets Groups Projects
Commit 633d2eb1 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Demo home page is in UTF8

parent c10c5b3c
Branches
No related tags found
No related merge requests found
...@@ -60,6 +60,11 @@ function llxHeaderVierge($title, $head = "") ...@@ -60,6 +60,11 @@ function llxHeaderVierge($title, $head = "")
{ {
global $user, $conf, $langs; global $user, $conf, $langs;
header("Content-type: text/html; charset=".$conf->character_set_client);
print '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">';
//print '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" http://www.w3.org/TR/1999/REC-html401-19991224/strict.dtd>';
print "\n";
print "<html>\n"; print "<html>\n";
print "<head>\n"; print "<head>\n";
print '<meta name="robots" content="index,nofollow">'."\n"; print '<meta name="robots" content="index,nofollow">'."\n";
...@@ -190,7 +195,7 @@ print '<form name="choosedemo" action="'.$_SERVER["PHP_SELF"].'" method="POST">' ...@@ -190,7 +195,7 @@ print '<form name="choosedemo" action="'.$_SERVER["PHP_SELF"].'" method="POST">'
print '<input type="hidden" name="username" value="demo">'; print '<input type="hidden" name="username" value="demo">';
print "\n"; print "\n";
print '<table style="font-size:14px;">'; print '<table style="font-size:14px;" summary="List of Dolibarr demos">';
print '<tr><td>'; print '<tr><td>';
print '<center><img src="'.DOL_URL_ROOT.'/theme/dolibarr_logo_2.png" alt="Dolibarr logo"></center><br>'; print '<center><img src="'.DOL_URL_ROOT.'/theme/dolibarr_logo_2.png" alt="Dolibarr logo"></center><br>';
...@@ -204,7 +209,7 @@ print '</td></tr>'; ...@@ -204,7 +209,7 @@ print '</td></tr>';
print '<tr><td width="50%">'; print '<tr><td width="50%">';
$NBOFCOLS=2; $NBOFCOLS=2;
print '<table style="font-size:14px;" width="100%">'."\n"; print '<table style="font-size:14px;" width="100%" summary="List of Dolibarr demos">'."\n";
$i=0; $i=0;
foreach ($demoprofiles as $profilarray) foreach ($demoprofiles as $profilarray)
{ {
...@@ -214,9 +219,9 @@ foreach ($demoprofiles as $profilarray) ...@@ -214,9 +219,9 @@ foreach ($demoprofiles as $profilarray)
//if ($i % $NBOFCOLS == 0) print '<tr>'; //if ($i % $NBOFCOLS == 0) print '<tr>';
print '<tr>'; print '<tr>';
print '<td align="left">'; print '<td align="left">';
print '<table style="font-size:14px;" width="100%" class="CTableRow'.($i%2==0?'1':'2').'">'."\n"; print '<table summary="Dolibarr online demonstration for profile '.$profilarray['label'].'" style="font-size:14px;" width="100%" class="CTableRow'.($i%2==0?'1':'2').'">'."\n";
print '<tr>'; print '<tr>';
print '<td align="left" width="50"><a href="'.$url.'"><img src="'.$profilarray['icon'].'" width="48" border="0"></a></td>'; print '<td align="left" width="50"><a href="'.$url.'"><img src="'.$profilarray['icon'].'" width="48" border="0" alt="Demo '.$profilarray['label'].'"></a></td>';
//print '<td><input type="radio" name="demochoice"'; //print '<td><input type="radio" name="demochoice"';
//if ($profilarray['default']) print ' checked="true"'; //if ($profilarray['default']) print ' checked="true"';
//print ' value="'.$profilarray['key'].'"></td>'; //print ' value="'.$profilarray['key'].'"></td>';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment