diff --git a/htdocs/public/demo/dolibarr_screenshot2.png b/htdocs/public/demo/dolibarr_screenshot2.png
new file mode 100644
index 00000000000..60573422016
Binary files /dev/null and b/htdocs/public/demo/dolibarr_screenshot2.png differ
diff --git a/htdocs/public/demo/dolibarr_screenshot6.png b/htdocs/public/demo/dolibarr_screenshot6.png
new file mode 100644
index 00000000000..0b5bd9aef4d
Binary files /dev/null and b/htdocs/public/demo/dolibarr_screenshot6.png differ
diff --git a/htdocs/public/demo/dolibarr_screenshot8.png b/htdocs/public/demo/dolibarr_screenshot8.png
new file mode 100644
index 00000000000..68752f336b6
Binary files /dev/null and b/htdocs/public/demo/dolibarr_screenshot8.png differ
diff --git a/htdocs/public/demo/dolibarr_screenshot9.png b/htdocs/public/demo/dolibarr_screenshot9.png
new file mode 100644
index 00000000000..b0d24b7cf10
Binary files /dev/null and b/htdocs/public/demo/dolibarr_screenshot9.png differ
diff --git a/htdocs/public/demo/index.php b/htdocs/public/demo/index.php
index 37c8ae7cedf..a387eb0ea54 100644
--- a/htdocs/public/demo/index.php
+++ b/htdocs/public/demo/index.php
@@ -27,7 +27,8 @@
require("../../master.inc.php");
-$langs->setDefaultLang('auto');
+$langcode=(empty($_GET["lang"])?'auto':$_GET["lang"]);
+$langs->setDefaultLang($langcode);
$langs->load("main");
$langs->load("other");
@@ -35,17 +36,23 @@ $langs->load("other");
$demoprofiles=array(
array('default'=>'-1', 'key'=>'profdemofun','label'=>'DemoFundation',
- 'disablemodules'=>'banque,barcode,bookmark,boutique,cashdesk,commande,commercial,comptabilite,contrat,expedition,facture,fournisseur,prelevement,produit,projet,propal,service,societe,stock,tax'),
+ 'disablemodules'=>'banque,barcode,bookmark,boutique,cashdesk,commande,commercial,compta,comptabilite,contrat,expedition,facture,fournisseur,prelevement,produit,projet,propal,propale,service,societe,stock,tax',
+ 'icon'=>DOL_URL_ROOT.'/public/demo/dolibarr_screenshot6.png'),
array('default'=>'0', 'key'=>'profdemofun2','label'=>'DemoFundation2',
- 'disablemodules'=>'barcode,boutique,bookmark,cashdesk,commande,commercial,comptabilite,contrat,expedition,facture,fournisseur,prelevement,produit,projet,propal,service,societe,stock'),
+ 'disablemodules'=>'barcode,boutique,bookmark,cashdesk,commande,commercial,compta,comptabilite,contrat,expedition,facture,fournisseur,prelevement,produit,projet,propal,propale,service,societe,stock',
+ 'icon'=>DOL_URL_ROOT.'/public/demo/dolibarr_screenshot6.png'),
array('default'=>'1', 'key'=>'profdemoservonly','label'=>'DemoCompanyServiceOnly',
- 'disablemodules'=>'adherent,barcode,boutique,bookmark,cashdesk,don,expedition,prelevement,projet,stock'),
+ 'disablemodules'=>'adherent,barcode,boutique,bookmark,cashdesk,don,expedition,prelevement,projet,stock',
+ 'icon'=>DOL_URL_ROOT.'/public/demo/dolibarr_screenshot8.png'),
array('default'=>'-1','key'=>'profdemoshopwithdesk','label'=>'DemoCompanyShopWithCashDesk',
- 'disablemodules'=>'adherent,boutique,bookmark,don,prelevement,produit,stock'),
+ 'disablemodules'=>'adherent,boutique,bookmark,don,prelevement,produit,stock',
+ 'icon'=>DOL_URL_ROOT.'/public/demo/dolibarr_screenshot2.png'),
array('default'=>'0', 'key'=>'profdemoprodstock','label'=>'DemoCompanyProductAndStocks',
- 'disablemodules'=>'adherent,boutique,bookmark,cashdesk,don,prelevement,service'),
+ 'disablemodules'=>'adherent,boutique,bookmark,cashdesk,don,prelevement,service',
+ 'icon'=>DOL_URL_ROOT.'/public/demo/dolibarr_screenshot2.png'),
array('default'=>'0', 'key'=>'profdemoall','label'=>'DemoCompanyAll',
- 'disablemodules'=>'adherent,boutique,bookmark,cashdesk,don'),
+ 'disablemodules'=>'adherent,boutique,bookmark,cashdesk,don',
+ 'icon'=>DOL_URL_ROOT.'/public/demo/dolibarr_screenshot9.png'),
);
@@ -76,13 +83,13 @@ function llxFooter()
* Actions
*/
-if ($_POST["action"] == 'gotodemo')
+if ($_REQUEST["action"] == 'gotodemo')
{
//print 'ee'.$_POST["demochoice"];
$disablestring='';
foreach ($demoprofiles as $profilearray)
{
- if ($profilearray['key'] == $_POST["demochoice"])
+ if ($profilearray['key'] == $_REQUEST["demochoice"])
{
$disablestring=$profilearray['disablemodules'];
break;
@@ -184,21 +191,35 @@ print '
';
print $langs->trans("DemoDesc").'
';
print '
';
-print ''.$langs->trans("ChooseYourDemoProfil").'';
+print ''.$langs->trans("ChooseYourDemoProfil").'';
print '';
print '
| ';
-print '';
|