Fix: Error management if javascript disabled.
This commit is contained in:
parent
8fa175f3e9
commit
665aefe75e
@ -152,6 +152,9 @@ print '<br></form>';
|
||||
|
||||
print '<br>'."\n";
|
||||
|
||||
if (! empty($conf->use_javascript_ajax))
|
||||
{
|
||||
|
||||
$infoarray=dol_getImageSize($conf->product->dir_output."/".urldecode($_GET["file"]));
|
||||
$height=$infoarray['height'];
|
||||
$width=$infoarray['width'];
|
||||
@ -182,5 +185,8 @@ print '<form action="'.$_SERVER["PHP_SELF"].'?id='.$_GET['id'].'" method="post"
|
||||
</form>';
|
||||
print '</fieldset>';
|
||||
|
||||
}
|
||||
|
||||
|
||||
llxFooter('$Date$ - $Revision$');
|
||||
?>
|
||||
@ -65,11 +65,13 @@ $arrayofcss=array(
|
||||
'/includes/jsgantt/jsgantt.css'
|
||||
);
|
||||
|
||||
$arrayofjs=array(
|
||||
'/includes/jsgantt/jsgantt.js',
|
||||
'/projet/jsgantt_language.js.php?lang='.$langs->defaultlang
|
||||
);
|
||||
|
||||
if (! empty($conf->use_javascript_ajax))
|
||||
{
|
||||
$arrayofjs=array(
|
||||
'/includes/jsgantt/jsgantt.js',
|
||||
'/projet/jsgantt_language.js.php?lang='.$langs->defaultlang
|
||||
);
|
||||
}
|
||||
|
||||
$form=new Form($db);
|
||||
$formother=new FormOther($db);
|
||||
@ -236,9 +238,18 @@ if (sizeof($tasksarray)>0)
|
||||
//var_dump($tasks);
|
||||
|
||||
print "\n";
|
||||
print '<div id="tabs" style="border: 1px solid #ACACAC;">'."\n";
|
||||
include_once(DOL_DOCUMENT_ROOT.'/projet/ganttchart.php');
|
||||
print '</div>'."\n";
|
||||
|
||||
if (! empty($conf->use_javascript_ajax))
|
||||
{
|
||||
print '<div id="tabs" style="border: 1px solid #ACACAC;">'."\n";
|
||||
include_once(DOL_DOCUMENT_ROOT.'/projet/ganttchart.php');
|
||||
print '</div>'."\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
$langs->load("admin");
|
||||
print $langs->trans("AvailableOnlyIfJavascriptAndAjaxNotDisabled");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user