|
|
|
@ -226,12 +226,15 @@ if ($dirins && $action == 'initmodule' && $modulename)
|
|
|
|
// Delete dir and files that can be generated in sub tabs later if we need them (we want a minimal module first)
|
|
|
|
// Delete dir and files that can be generated in sub tabs later if we need them (we want a minimal module first)
|
|
|
|
dol_delete_dir_recursive($destdir.'/build/doxygen');
|
|
|
|
dol_delete_dir_recursive($destdir.'/build/doxygen');
|
|
|
|
dol_delete_dir_recursive($destdir.'/core/modules/mailings');
|
|
|
|
dol_delete_dir_recursive($destdir.'/core/modules/mailings');
|
|
|
|
|
|
|
|
dol_delete_dir_recursive($destdir.'/core/modules/'.strtolower($modulename).'');
|
|
|
|
dol_delete_dir_recursive($destdir.'/core/tpl');
|
|
|
|
dol_delete_dir_recursive($destdir.'/core/tpl');
|
|
|
|
dol_delete_dir_recursive($destdir.'/core/triggers');
|
|
|
|
dol_delete_dir_recursive($destdir.'/core/triggers');
|
|
|
|
dol_delete_dir_recursive($destdir.'/doc');
|
|
|
|
dol_delete_dir_recursive($destdir.'/doc');
|
|
|
|
dol_delete_dir_recursive($destdir.'/.tx');
|
|
|
|
dol_delete_dir_recursive($destdir.'/.tx');
|
|
|
|
dol_delete_dir_recursive($destdir.'/core/boxes');
|
|
|
|
dol_delete_dir_recursive($destdir.'/core/boxes');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dol_delete_file($destdir.'/admin/myobject_extrafields.php');
|
|
|
|
|
|
|
|
|
|
|
|
dol_delete_file($destdir.'/sql/data.sql');
|
|
|
|
dol_delete_file($destdir.'/sql/data.sql');
|
|
|
|
dol_delete_file($destdir.'/sql/update_x.x.x-y.y.y.sql');
|
|
|
|
dol_delete_file($destdir.'/sql/update_x.x.x-y.y.y.sql');
|
|
|
|
|
|
|
|
|
|
|
|
@ -902,9 +905,11 @@ if ($dirins && $action == 'initobject' && $module && $objectname)
|
|
|
|
$filetogenerate = array(
|
|
|
|
$filetogenerate = array(
|
|
|
|
'myobject_card.php'=>strtolower($objectname).'_card.php',
|
|
|
|
'myobject_card.php'=>strtolower($objectname).'_card.php',
|
|
|
|
'myobject_note.php'=>strtolower($objectname).'_note.php',
|
|
|
|
'myobject_note.php'=>strtolower($objectname).'_note.php',
|
|
|
|
|
|
|
|
'myobject_contact.php'=>strtolower($objectname).'_contact.php',
|
|
|
|
'myobject_document.php'=>strtolower($objectname).'_document.php',
|
|
|
|
'myobject_document.php'=>strtolower($objectname).'_document.php',
|
|
|
|
'myobject_agenda.php'=>strtolower($objectname).'_agenda.php',
|
|
|
|
'myobject_agenda.php'=>strtolower($objectname).'_agenda.php',
|
|
|
|
'myobject_list.php'=>strtolower($objectname).'_list.php',
|
|
|
|
'myobject_list.php'=>strtolower($objectname).'_list.php',
|
|
|
|
|
|
|
|
'admin/myobject_extrafields.php'=>'admin/'.strtolower($objectname).'_extrafields.php',
|
|
|
|
'lib/mymodule_myobject.lib.php'=>'lib/'.strtolower($module).'_'.strtolower($objectname).'.lib.php',
|
|
|
|
'lib/mymodule_myobject.lib.php'=>'lib/'.strtolower($module).'_'.strtolower($objectname).'.lib.php',
|
|
|
|
//'test/phpunit/MyObjectTest.php'=>'test/phpunit/'.strtolower($objectname).'Test.php',
|
|
|
|
//'test/phpunit/MyObjectTest.php'=>'test/phpunit/'.strtolower($objectname).'Test.php',
|
|
|
|
'sql/llx_mymodule_myobject.sql'=>'sql/llx_'.strtolower($module).'_'.strtolower($objectname).'.sql',
|
|
|
|
'sql/llx_mymodule_myobject.sql'=>'sql/llx_'.strtolower($module).'_'.strtolower($objectname).'.sql',
|
|
|
|
@ -1332,9 +1337,11 @@ if ($dirins && $action == 'confirm_deleteobject' && $objectname)
|
|
|
|
$filetodelete = array(
|
|
|
|
$filetodelete = array(
|
|
|
|
'myobject_card.php'=>strtolower($objectname).'_card.php',
|
|
|
|
'myobject_card.php'=>strtolower($objectname).'_card.php',
|
|
|
|
'myobject_note.php'=>strtolower($objectname).'_note.php',
|
|
|
|
'myobject_note.php'=>strtolower($objectname).'_note.php',
|
|
|
|
|
|
|
|
'myobject_contact.php'=>strtolower($objectname).'_contact.php',
|
|
|
|
'myobject_document.php'=>strtolower($objectname).'_document.php',
|
|
|
|
'myobject_document.php'=>strtolower($objectname).'_document.php',
|
|
|
|
'myobject_agenda.php'=>strtolower($objectname).'_agenda.php',
|
|
|
|
'myobject_agenda.php'=>strtolower($objectname).'_agenda.php',
|
|
|
|
'myobject_list.php'=>strtolower($objectname).'_list.php',
|
|
|
|
'myobject_list.php'=>strtolower($objectname).'_list.php',
|
|
|
|
|
|
|
|
'admin/myobject_extrafields.php'=>'admin/'.strtolower($objectname).'_extrafields.php',
|
|
|
|
'lib/mymodule_myobject.lib.php'=>'lib/'.strtolower($module).'_'.strtolower($objectname).'.lib.php',
|
|
|
|
'lib/mymodule_myobject.lib.php'=>'lib/'.strtolower($module).'_'.strtolower($objectname).'.lib.php',
|
|
|
|
'test/phpunit/MyObjectTest.php'=>'test/phpunit/'.strtolower($objectname).'Test.php',
|
|
|
|
'test/phpunit/MyObjectTest.php'=>'test/phpunit/'.strtolower($objectname).'Test.php',
|
|
|
|
'sql/llx_mymodule_myobject.sql'=>'sql/llx_'.strtolower($module).'_'.strtolower($objectname).'.sql',
|
|
|
|
'sql/llx_mymodule_myobject.sql'=>'sql/llx_'.strtolower($module).'_'.strtolower($objectname).'.sql',
|
|
|
|
@ -1772,7 +1779,7 @@ if ($module == 'initmodule')
|
|
|
|
print $langs->trans("EnterNameOfModuleToDeleteDesc").'<br><br>';
|
|
|
|
print $langs->trans("EnterNameOfModuleToDeleteDesc").'<br><br>';
|
|
|
|
|
|
|
|
|
|
|
|
print '<input type="text" name="module" placeholder="'.dol_escape_htmltag($langs->trans("ModuleKey")).'" value="">';
|
|
|
|
print '<input type="text" name="module" placeholder="'.dol_escape_htmltag($langs->trans("ModuleKey")).'" value="">';
|
|
|
|
print '<input type="submit" class="buttonDelete" value="'.$langs->trans("Delete").'"'.($dirins ? '' : ' disabled="disabled"').'>';
|
|
|
|
print '<input type="submit" class="button smallpaddingimp" value="'.$langs->trans("Delete").'"'.($dirins ? '' : ' disabled="disabled"').'>';
|
|
|
|
print '</form>';
|
|
|
|
print '</form>';
|
|
|
|
} elseif (!empty($module)) {
|
|
|
|
} elseif (!empty($module)) {
|
|
|
|
// Tabs for module
|
|
|
|
// Tabs for module
|
|
|
|
@ -2309,7 +2316,7 @@ if ($module == 'initmodule')
|
|
|
|
print $langs->trans("EnterNameOfObjectToDeleteDesc").'<br><br>';
|
|
|
|
print $langs->trans("EnterNameOfObjectToDeleteDesc").'<br><br>';
|
|
|
|
|
|
|
|
|
|
|
|
print '<input type="text" name="objectname" value="'.dol_escape_htmltag($modulename).'" placeholder="'.dol_escape_htmltag($langs->trans("ObjectKey")).'">';
|
|
|
|
print '<input type="text" name="objectname" value="'.dol_escape_htmltag($modulename).'" placeholder="'.dol_escape_htmltag($langs->trans("ObjectKey")).'">';
|
|
|
|
print '<input type="submit" class="buttonDelete" name="delete" value="'.dol_escape_htmltag($langs->trans("Delete")).'"'.($dirins ? '' : ' disabled="disabled"').'>';
|
|
|
|
print '<input type="submit" class="button smallpaddingimp" name="delete" value="'.dol_escape_htmltag($langs->trans("Delete")).'"'.($dirins ? '' : ' disabled="disabled"').'>';
|
|
|
|
print '</form>';
|
|
|
|
print '</form>';
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
// tabobj = module
|
|
|
|
// tabobj = module
|
|
|
|
@ -2336,6 +2343,7 @@ if ($module == 'initmodule')
|
|
|
|
$pathtodocument = strtolower($module).'/'.strtolower($tabobj).'_document.php';
|
|
|
|
$pathtodocument = strtolower($module).'/'.strtolower($tabobj).'_document.php';
|
|
|
|
$pathtolist = strtolower($module).'/'.strtolower($tabobj).'_list.php';
|
|
|
|
$pathtolist = strtolower($module).'/'.strtolower($tabobj).'_list.php';
|
|
|
|
$pathtonote = strtolower($module).'/'.strtolower($tabobj).'_note.php';
|
|
|
|
$pathtonote = strtolower($module).'/'.strtolower($tabobj).'_note.php';
|
|
|
|
|
|
|
|
$pathtocontact = strtolower($module).'/'.strtolower($tabobj).'_contact.php';
|
|
|
|
$pathtophpunit = strtolower($module).'/test/phpunit/'.strtolower($tabobj).'Test.php';
|
|
|
|
$pathtophpunit = strtolower($module).'/test/phpunit/'.strtolower($tabobj).'Test.php';
|
|
|
|
$pathtosql = strtolower($module).'/sql/llx_'.strtolower($module).'_'.strtolower($tabobj).'.sql';
|
|
|
|
$pathtosql = strtolower($module).'/sql/llx_'.strtolower($module).'_'.strtolower($tabobj).'.sql';
|
|
|
|
$pathtosqlextra = strtolower($module).'/sql/llx_'.strtolower($module).'_'.strtolower($tabobj).'_extrafields.sql';
|
|
|
|
$pathtosqlextra = strtolower($module).'/sql/llx_'.strtolower($module).'_'.strtolower($tabobj).'_extrafields.sql';
|
|
|
|
@ -2354,6 +2362,7 @@ if ($module == 'initmodule')
|
|
|
|
$realpathtodocument = $dirread.'/'.$pathtodocument;
|
|
|
|
$realpathtodocument = $dirread.'/'.$pathtodocument;
|
|
|
|
$realpathtolist = $dirread.'/'.$pathtolist;
|
|
|
|
$realpathtolist = $dirread.'/'.$pathtolist;
|
|
|
|
$realpathtonote = $dirread.'/'.$pathtonote;
|
|
|
|
$realpathtonote = $dirread.'/'.$pathtonote;
|
|
|
|
|
|
|
|
$realpathtocontact = $dirread.'/'.$pathtocontact;
|
|
|
|
$realpathtophpunit = $dirread.'/'.$pathtophpunit;
|
|
|
|
$realpathtophpunit = $dirread.'/'.$pathtophpunit;
|
|
|
|
$realpathtosql = $dirread.'/'.$pathtosql;
|
|
|
|
$realpathtosql = $dirread.'/'.$pathtosql;
|
|
|
|
$realpathtosqlextra = $dirread.'/'.$pathtosqlextra;
|
|
|
|
$realpathtosqlextra = $dirread.'/'.$pathtosqlextra;
|
|
|
|
@ -2377,8 +2386,7 @@ if ($module == 'initmodule')
|
|
|
|
print ' <a class="editfielda" href="'.$_SERVER['PHP_SELF'].'?tab='.$tab.'&tabobj='.$tabobj.'&module='.$module.($forceddirread ? '@'.$dirread : '').'&action=editfile&format=php&file='.urlencode($pathtoclass).'">'.img_picto($langs->trans("Edit"), 'edit').'</a>';
|
|
|
|
print ' <a class="editfielda" href="'.$_SERVER['PHP_SELF'].'?tab='.$tab.'&tabobj='.$tabobj.'&module='.$module.($forceddirread ? '@'.$dirread : '').'&action=editfile&format=php&file='.urlencode($pathtoclass).'">'.img_picto($langs->trans("Edit"), 'edit').'</a>';
|
|
|
|
print '<br>';
|
|
|
|
print '<br>';
|
|
|
|
print '<span class="fa fa-file-o"></span> '.$langs->trans("ApiClassFile").' : <strong>'.($realpathtoapi ? '' : '<strike>').$pathtoapi.($realpathtoapi ? '' : '</strike>').'</strong>';
|
|
|
|
print '<span class="fa fa-file-o"></span> '.$langs->trans("ApiClassFile").' : <strong>'.($realpathtoapi ? '' : '<strike>').$pathtoapi.($realpathtoapi ? '' : '</strike>').'</strong>';
|
|
|
|
if ($realpathtoapi)
|
|
|
|
if (dol_is_file($realpathtoapi)) {
|
|
|
|
{
|
|
|
|
|
|
|
|
print ' <a class="editfielda" href="'.$_SERVER['PHP_SELF'].'?tab='.$tab.'&tabobj='.$tabobj.'&module='.$module.($forceddirread ? '@'.$dirread : '').'&action=editfile&format=php&file='.urlencode($pathtoapi).'">'.img_picto($langs->trans("Edit"), 'edit').'</a>';
|
|
|
|
print ' <a class="editfielda" href="'.$_SERVER['PHP_SELF'].'?tab='.$tab.'&tabobj='.$tabobj.'&module='.$module.($forceddirread ? '@'.$dirread : '').'&action=editfile&format=php&file='.urlencode($pathtoapi).'">'.img_picto($langs->trans("Edit"), 'edit').'</a>';
|
|
|
|
print ' ';
|
|
|
|
print ' ';
|
|
|
|
print '<a class="reposition editfielda" href="'.$_SERVER['PHP_SELF'].'?tab='.$tab.'&tabobj='.$tabobj.'&module='.$module.($forceddirread ? '@'.$dirread : '').'&action=confirm_removefile&file='.urlencode($pathtoapi).'">'.img_picto($langs->trans("Delete"), 'delete').'</a>';
|
|
|
|
print '<a class="reposition editfielda" href="'.$_SERVER['PHP_SELF'].'?tab='.$tab.'&tabobj='.$tabobj.'&module='.$module.($forceddirread ? '@'.$dirread : '').'&action=confirm_removefile&file='.urlencode($pathtoapi).'">'.img_picto($langs->trans("Delete"), 'delete').'</a>';
|
|
|
|
@ -2391,20 +2399,18 @@ if ($module == 'initmodule')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
//print '<span class="opacitymedium">'.$langs->trans("FileNotYetGenerated").'</span> ';
|
|
|
|
//print '<span class="opacitymedium">'.$langs->trans("FileNotYetGenerated").'</span> ';
|
|
|
|
print '<a class="editfielda" href="'.$_SERVER['PHP_SELF'].'?tab='.$tab.'&tabobj='.$tabobj.'&module='.$module.($forceddirread ? '@'.$dirread : '').'&action=initapi&format=php&file='.urlencode($pathtoapi).'"><input type="button" class="button buttongen" value="'.$langs->trans("Generate").'"></a>';
|
|
|
|
print '<a class="editfielda" href="'.$_SERVER['PHP_SELF'].'?tab='.$tab.'&tabobj='.$tabobj.'&module='.$module.($forceddirread ? '@'.$dirread : '').'&action=initapi&format=php&file='.urlencode($pathtoapi).'"><input type="button" class="button smallpaddingimp" value="'.$langs->trans("Generate").'"></a>';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// PHPUnit
|
|
|
|
// PHPUnit
|
|
|
|
print '<br>';
|
|
|
|
print '<br>';
|
|
|
|
print '<span class="fa fa-file-o"></span> '.$langs->trans("TestClassFile").' : <strong>'.($realpathtophpunit ? '' : '<strike>').$pathtophpunit.($realpathtophpunit ? '' : '</strike>').'</strong>';
|
|
|
|
print '<span class="fa fa-file-o"></span> '.$langs->trans("TestClassFile").' : <strong>'.($realpathtophpunit ? '' : '<strike>').$pathtophpunit.($realpathtophpunit ? '' : '</strike>').'</strong>';
|
|
|
|
|
|
|
|
if (dol_is_file($realpathtophpunit)) {
|
|
|
|
if ($realpathtophpunit)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
print ' <a class="editfielda" href="'.$_SERVER['PHP_SELF'].'?tab='.$tab.'&tabobj='.$tabobj.'&module='.$module.($forceddirread ? '@'.$dirread : '').'&action=editfile&format=php&file='.urlencode($pathtophpunit).'">'.img_picto($langs->trans("Edit"), 'edit').'</a>';
|
|
|
|
print ' <a class="editfielda" href="'.$_SERVER['PHP_SELF'].'?tab='.$tab.'&tabobj='.$tabobj.'&module='.$module.($forceddirread ? '@'.$dirread : '').'&action=editfile&format=php&file='.urlencode($pathtophpunit).'">'.img_picto($langs->trans("Edit"), 'edit').'</a>';
|
|
|
|
print ' ';
|
|
|
|
print ' ';
|
|
|
|
print '<a class="reposition editfielda" href="'.$_SERVER['PHP_SELF'].'?tab='.$tab.'&tabobj='.$tabobj.'&module='.$module.($forceddirread ? '@'.$dirread : '').'&action=confirm_removefile&file='.urlencode($pathtophpunit).'">'.img_picto($langs->trans("Delete"), 'delete').'</a>';
|
|
|
|
print '<a class="reposition editfielda" href="'.$_SERVER['PHP_SELF'].'?tab='.$tab.'&tabobj='.$tabobj.'&module='.$module.($forceddirread ? '@'.$dirread : '').'&action=confirm_removefile&file='.urlencode($pathtophpunit).'">'.img_picto($langs->trans("Delete"), 'delete').'</a>';
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
//print '<span class="opacitymedium">'.$langs->trans("FileNotYetGenerated").'</span> ';
|
|
|
|
//print '<span class="opacitymedium">'.$langs->trans("FileNotYetGenerated").'</span> ';
|
|
|
|
print '<a class="editfielda" href="'.$_SERVER['PHP_SELF'].'?tab='.$tab.'&tabobj='.$tabobj.'&module='.$module.($forceddirread ? '@'.$dirread : '').'&action=initphpunit&format=php&file='.urlencode($pathtophpunit).'"><input type="button" class="button buttongen" value="'.$langs->trans("Generate").'"></a>';
|
|
|
|
print '<a class="editfielda" href="'.$_SERVER['PHP_SELF'].'?tab='.$tab.'&tabobj='.$tabobj.'&module='.$module.($forceddirread ? '@'.$dirread : '').'&action=initphpunit&format=php&file='.urlencode($pathtophpunit).'"><input type="button" class="button smallpaddingimp" value="'.$langs->trans("Generate").'"></a>';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
print '<br>';
|
|
|
|
print '<br>';
|
|
|
|
|
|
|
|
|
|
|
|
@ -2431,24 +2437,24 @@ if ($module == 'initmodule')
|
|
|
|
//print ' <a href="'.$_SERVER["PHP_SELF"].'">'.$langs->trans("RunSql").'</a>';
|
|
|
|
//print ' <a href="'.$_SERVER["PHP_SELF"].'">'.$langs->trans("RunSql").'</a>';
|
|
|
|
print '<br>';
|
|
|
|
print '<br>';
|
|
|
|
print '<span class="fa fa-file-o"></span> '.$langs->trans("SqlFileExtraFields").' : <strong>'.($realpathtosqlextra ? '' : '<strike>').$pathtosqlextra.($realpathtosqlextra ? '' : '</strike>').'</strong>';
|
|
|
|
print '<span class="fa fa-file-o"></span> '.$langs->trans("SqlFileExtraFields").' : <strong>'.($realpathtosqlextra ? '' : '<strike>').$pathtosqlextra.($realpathtosqlextra ? '' : '</strike>').'</strong>';
|
|
|
|
if ($realpathtosqlextra)
|
|
|
|
if (dol_is_file($realpathtosqlextra) && dol_is_file($realpathtosqlextrakey)) {
|
|
|
|
{
|
|
|
|
|
|
|
|
print ' <a class="editfielda" href="'.$_SERVER['PHP_SELF'].'?tab='.$tab.'&tabobj='.$tabobj.'&module='.$module.($forceddirread ? '@'.$dirread : '').'&action=editfile&file='.urlencode($pathtosqlextra).'">'.img_picto($langs->trans("Edit"), 'edit').'</a>';
|
|
|
|
print ' <a class="editfielda" href="'.$_SERVER['PHP_SELF'].'?tab='.$tab.'&tabobj='.$tabobj.'&module='.$module.($forceddirread ? '@'.$dirread : '').'&action=editfile&file='.urlencode($pathtosqlextra).'">'.img_picto($langs->trans("Edit"), 'edit').'</a>';
|
|
|
|
print ' ';
|
|
|
|
print ' ';
|
|
|
|
print '<a class="reposition editfielda" href="'.$_SERVER['PHP_SELF'].'?tab='.$tab.'&tabobj='.$tabobj.'&module='.$module.($forceddirread ? '@'.$dirread : '').'&action=confirm_removefile&file='.urlencode($pathtosqlextra).'">'.img_picto($langs->trans("Delete"), 'delete').'</a>';
|
|
|
|
print '<a class="reposition editfielda" href="'.$_SERVER['PHP_SELF'].'?tab='.$tab.'&tabobj='.$tabobj.'&module='.$module.($forceddirread ? '@'.$dirread : '').'&action=confirm_removefile&file='.urlencode($pathtosqlextra).'">'.img_picto($langs->trans("Delete"), 'delete').'</a>';
|
|
|
|
print ' ';
|
|
|
|
print ' ';
|
|
|
|
print '<a class="reposition editfielda" href="'.$_SERVER["PHP_SELF"].'?tab='.$tab.'&tabobj='.$tabobj.'&module='.$module.($forceddirread ? '@'.$dirread : '').'&action=droptableextrafields">'.$langs->trans("DropTableIfEmpty").'</a>';
|
|
|
|
print '<a class="reposition editfielda" href="'.$_SERVER["PHP_SELF"].'?tab='.$tab.'&tabobj='.$tabobj.'&module='.$module.($forceddirread ? '@'.$dirread : '').'&action=droptableextrafields">'.$langs->trans("DropTableIfEmpty").'</a>';
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
print '<a class="editfielda" href="'.$_SERVER['PHP_SELF'].'?tab='.$tab.'&tabobj='.$tabobj.'&module='.$module.($forceddirread ? '@'.$dirread : '').'&action=initsqlextrafields&format=sql&file='.urlencode($pathtosqlextra).'"><input type="button" class="button buttongen" value="'.$langs->trans("Generate").'"></a>';
|
|
|
|
print '<a class="editfielda" href="'.$_SERVER['PHP_SELF'].'?tab='.$tab.'&tabobj='.$tabobj.'&module='.$module.($forceddirread ? '@'.$dirread : '').'&action=initsqlextrafields&format=sql&file='.urlencode($pathtosqlextra).'"><input type="button" class="button smallpaddingimp" value="'.$langs->trans("Generate").'"></a>';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//print ' <a href="'.$_SERVER["PHP_SELF"].'">'.$langs->trans("RunSql").'</a>';
|
|
|
|
//print ' <a href="'.$_SERVER["PHP_SELF"].'">'.$langs->trans("RunSql").'</a>';
|
|
|
|
print '<br>';
|
|
|
|
print '<br>';
|
|
|
|
print '<span class="fa fa-file-o"></span> '.$langs->trans("SqlFileKeyExtraFields").' : <strong>'.($realpathtosqlextrakey ? '' : '<strike>').$pathtosqlextrakey.($realpathtosqlextrakey ? '' : '</strike>').'</strong>';
|
|
|
|
print '<span class="fa fa-file-o"></span> '.$langs->trans("SqlFileKeyExtraFields").' : <strong>'.($realpathtosqlextrakey ? '' : '<strike>').$pathtosqlextrakey.($realpathtosqlextrakey ? '' : '</strike>').'</strong>';
|
|
|
|
if ($realpathtosqlextrakey)
|
|
|
|
if (dol_is_file($realpathtosqlextra) && dol_is_file($realpathtosqlextrakey)) {
|
|
|
|
{
|
|
|
|
|
|
|
|
print ' <a class="editfielda" href="'.$_SERVER['PHP_SELF'].'?tab='.$tab.'&tabobj='.$tabobj.'&module='.$module.($forceddirread ? '@'.$dirread : '').'&action=editfile&format=sql&file='.urlencode($pathtosqlextrakey).'">'.img_picto($langs->trans("Edit"), 'edit').'</a>';
|
|
|
|
print ' <a class="editfielda" href="'.$_SERVER['PHP_SELF'].'?tab='.$tab.'&tabobj='.$tabobj.'&module='.$module.($forceddirread ? '@'.$dirread : '').'&action=editfile&format=sql&file='.urlencode($pathtosqlextrakey).'">'.img_picto($langs->trans("Edit"), 'edit').'</a>';
|
|
|
|
print ' ';
|
|
|
|
print ' ';
|
|
|
|
print '<a class="reposition editfielda" href="'.$_SERVER['PHP_SELF'].'?tab='.$tab.'&tabobj='.$tabobj.'&module='.$module.($forceddirread ? '@'.$dirread : '').'&action=confirm_removefile&file='.urlencode($pathtosqlextrakey).'">'.img_picto($langs->trans("Delete"), 'delete').'</a>';
|
|
|
|
print '<a class="reposition editfielda" href="'.$_SERVER['PHP_SELF'].'?tab='.$tab.'&tabobj='.$tabobj.'&module='.$module.($forceddirread ? '@'.$dirread : '').'&action=confirm_removefile&file='.urlencode($pathtosqlextrakey).'">'.img_picto($langs->trans("Delete"), 'delete').'</a>';
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
print '<a class="editfielda" href="'.$_SERVER['PHP_SELF'].'?tab='.$tab.'&tabobj='.$tabobj.'&module='.$module.($forceddirread ? '@'.$dirread : '').'&action=initsqlextrafields&format=sql&file='.urlencode($pathtosqlextra).'"><input type="button" class="button smallpaddingimp" value="'.$langs->trans("Generate").'"></a>';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//print ' <a href="'.$_SERVER["PHP_SELF"].'">'.$langs->trans("RunSql").'</a>';
|
|
|
|
//print ' <a href="'.$_SERVER["PHP_SELF"].'">'.$langs->trans("RunSql").'</a>';
|
|
|
|
print '<br>';
|
|
|
|
print '<br>';
|
|
|
|
@ -2463,30 +2469,34 @@ if ($module == 'initmodule')
|
|
|
|
print '<span class="fa fa-file-o"></span> '.$langs->trans("PageForCreateEditView").' : <strong><a href="'.$urlofcard.'?action=create" target="_test">'.($realpathtocard ? '' : '<strike>').$pathtocard.($realpathtocard ? '' : '</strike>').'?action=create</a></strong>';
|
|
|
|
print '<span class="fa fa-file-o"></span> '.$langs->trans("PageForCreateEditView").' : <strong><a href="'.$urlofcard.'?action=create" target="_test">'.($realpathtocard ? '' : '<strike>').$pathtocard.($realpathtocard ? '' : '</strike>').'?action=create</a></strong>';
|
|
|
|
print ' <a class="editfielda" href="'.$_SERVER['PHP_SELF'].'?tab='.$tab.'&tabobj='.$tabobj.'&module='.$module.($forceddirread ? '@'.$dirread : '').'&action=editfile&format=php&file='.urlencode($pathtocard).'">'.img_picto($langs->trans("Edit"), 'edit').'</a>';
|
|
|
|
print ' <a class="editfielda" href="'.$_SERVER['PHP_SELF'].'?tab='.$tab.'&tabobj='.$tabobj.'&module='.$module.($forceddirread ? '@'.$dirread : '').'&action=editfile&format=php&file='.urlencode($pathtocard).'">'.img_picto($langs->trans("Edit"), 'edit').'</a>';
|
|
|
|
print '<br>';
|
|
|
|
print '<br>';
|
|
|
|
print '<span class="fa fa-file-o"></span> '.$langs->trans("PageForAgendaTab").' : <strong>'.($realpathtoagenda ? '' : '<strike>').$pathtoagenda.($realpathtoagenda ? '' : '</strike>').'</strong>';
|
|
|
|
print '<span class="fa fa-file-o"></span> '.$langs->trans("PageForContactTab").' : <strong>'.($realpathtocontact ? '' : '<strike>').$pathtocontact.($realpathtocontact ? '' : '</strike>').'</strong>';
|
|
|
|
print ' <a class="editfielda" href="'.$_SERVER['PHP_SELF'].'?tab='.$tab.'&tabobj='.$tabobj.'&module='.$module.($forceddirread ? '@'.$dirread : '').'&action=editfile&format=php&file='.urlencode($pathtoagenda).'">'.img_picto($langs->trans("Edit"), 'edit').'</a>';
|
|
|
|
print ' <a class="editfielda" href="'.$_SERVER['PHP_SELF'].'?tab='.$tab.'&tabobj='.$tabobj.'&module='.$module.($forceddirread ? '@'.$dirread : '').'&action=editfile&format=php&file='.urlencode($pathtocontact).'">'.img_picto($langs->trans("Edit"), 'edit').'</a>';
|
|
|
|
if ($realpathtoagenda)
|
|
|
|
if (dol_is_file($realpathtocontact)) {
|
|
|
|
{
|
|
|
|
|
|
|
|
print ' ';
|
|
|
|
print ' ';
|
|
|
|
print '<a class="reposition editfielda" href="'.$_SERVER['PHP_SELF'].'?tab='.$tab.'&tabobj='.$tabobj.'&module='.$module.($forceddirread ? '@'.$dirread : '').'&action=confirm_removefile&file='.urlencode($pathtoagenda).'">'.img_picto($langs->trans("Delete"), 'delete').'</a>';
|
|
|
|
print '<a class="reposition editfielda" href="'.$_SERVER['PHP_SELF'].'?tab='.$tab.'&tabobj='.$tabobj.'&module='.$module.($forceddirread ? '@'.$dirread : '').'&action=confirm_removefile&file='.urlencode($pathtocontact).'">'.img_picto($langs->trans("Delete"), 'delete').'</a>';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
print '<br>';
|
|
|
|
print '<br>';
|
|
|
|
print '<span class="fa fa-file-o"></span> '.$langs->trans("PageForDocumentTab").' : <strong>'.($realpathtodocument ? '' : '<strike>').$pathtodocument.($realpathtodocument ? '' : '</strike>').'</strong>';
|
|
|
|
print '<span class="fa fa-file-o"></span> '.$langs->trans("PageForDocumentTab").' : <strong>'.($realpathtodocument ? '' : '<strike>').$pathtodocument.($realpathtodocument ? '' : '</strike>').'</strong>';
|
|
|
|
print ' <a class="editfielda" href="'.$_SERVER['PHP_SELF'].'?tab='.$tab.'&tabobj='.$tabobj.'&module='.$module.($forceddirread ? '@'.$dirread : '').'&action=editfile&format=php&file='.urlencode($pathtodocument).'">'.img_picto($langs->trans("Edit"), 'edit').'</a>';
|
|
|
|
print ' <a class="editfielda" href="'.$_SERVER['PHP_SELF'].'?tab='.$tab.'&tabobj='.$tabobj.'&module='.$module.($forceddirread ? '@'.$dirread : '').'&action=editfile&format=php&file='.urlencode($pathtodocument).'">'.img_picto($langs->trans("Edit"), 'edit').'</a>';
|
|
|
|
if ($realpathtodocument)
|
|
|
|
if (dol_is_file($realpathtodocument)) {
|
|
|
|
{
|
|
|
|
|
|
|
|
print ' ';
|
|
|
|
print ' ';
|
|
|
|
print '<a class="reposition editfielda" href="'.$_SERVER['PHP_SELF'].'?tab='.$tab.'&tabobj='.$tabobj.'&module='.$module.($forceddirread ? '@'.$dirread : '').'&action=confirm_removefile&file='.urlencode($pathtodocument).'">'.img_picto($langs->trans("Delete"), 'delete').'</a>';
|
|
|
|
print '<a class="reposition editfielda" href="'.$_SERVER['PHP_SELF'].'?tab='.$tab.'&tabobj='.$tabobj.'&module='.$module.($forceddirread ? '@'.$dirread : '').'&action=confirm_removefile&file='.urlencode($pathtodocument).'">'.img_picto($langs->trans("Delete"), 'delete').'</a>';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
print '<br>';
|
|
|
|
print '<br>';
|
|
|
|
print '<span class="fa fa-file-o"></span> '.$langs->trans("PageForNoteTab").' : <strong>'.($realpathtonote ? '' : '<strike>').$pathtonote.($realpathtonote ? '' : '</strike>').'</strong>';
|
|
|
|
print '<span class="fa fa-file-o"></span> '.$langs->trans("PageForNoteTab").' : <strong>'.($realpathtonote ? '' : '<strike>').$pathtonote.($realpathtonote ? '' : '</strike>').'</strong>';
|
|
|
|
print ' <a class="editfielda" href="'.$_SERVER['PHP_SELF'].'?tab='.$tab.'&tabobj='.$tabobj.'&module='.$module.($forceddirread ? '@'.$dirread : '').'&action=editfile&format=php&file='.urlencode($pathtonote).'">'.img_picto($langs->trans("Edit"), 'edit').'</a>';
|
|
|
|
print ' <a class="editfielda" href="'.$_SERVER['PHP_SELF'].'?tab='.$tab.'&tabobj='.$tabobj.'&module='.$module.($forceddirread ? '@'.$dirread : '').'&action=editfile&format=php&file='.urlencode($pathtonote).'">'.img_picto($langs->trans("Edit"), 'edit').'</a>';
|
|
|
|
if ($realpathtonote)
|
|
|
|
if (dol_is_file($realpathtonote)) {
|
|
|
|
{
|
|
|
|
|
|
|
|
print ' ';
|
|
|
|
print ' ';
|
|
|
|
print '<a class="reposition editfielda" href="'.$_SERVER['PHP_SELF'].'?tab='.$tab.'&tabobj='.$tabobj.'&module='.$module.($forceddirread ? '@'.$dirread : '').'&action=confirm_removefile&file='.urlencode($pathtonote).'">'.img_picto($langs->trans("Delete"), 'delete').'</a>';
|
|
|
|
print '<a class="reposition editfielda" href="'.$_SERVER['PHP_SELF'].'?tab='.$tab.'&tabobj='.$tabobj.'&module='.$module.($forceddirread ? '@'.$dirread : '').'&action=confirm_removefile&file='.urlencode($pathtonote).'">'.img_picto($langs->trans("Delete"), 'delete').'</a>';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
print '<br>';
|
|
|
|
print '<br>';
|
|
|
|
|
|
|
|
print '<span class="fa fa-file-o"></span> '.$langs->trans("PageForAgendaTab").' : <strong>'.($realpathtoagenda ? '' : '<strike>').$pathtoagenda.($realpathtoagenda ? '' : '</strike>').'</strong>';
|
|
|
|
|
|
|
|
print ' <a class="editfielda" href="'.$_SERVER['PHP_SELF'].'?tab='.$tab.'&tabobj='.$tabobj.'&module='.$module.($forceddirread ? '@'.$dirread : '').'&action=editfile&format=php&file='.urlencode($pathtoagenda).'">'.img_picto($langs->trans("Edit"), 'edit').'</a>';
|
|
|
|
|
|
|
|
if (dol_is_file($realpathtoagenda)) {
|
|
|
|
|
|
|
|
print ' ';
|
|
|
|
|
|
|
|
print '<a class="reposition editfielda" href="'.$_SERVER['PHP_SELF'].'?tab='.$tab.'&tabobj='.$tabobj.'&module='.$module.($forceddirread ? '@'.$dirread : '').'&action=confirm_removefile&file='.urlencode($pathtoagenda).'">'.img_picto($langs->trans("Delete"), 'delete').'</a>';
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
print '<br>';
|
|
|
|
|
|
|
|
|
|
|
|
/* This is already on Tab CLI
|
|
|
|
/* This is already on Tab CLI
|
|
|
|
print '<br>';
|
|
|
|
print '<br>';
|
|
|
|
@ -2533,8 +2543,7 @@ if ($module == 'initmodule')
|
|
|
|
print '<input type="hidden" name="module" value="'.dol_escape_htmltag($module.($forceddirread ? '@'.$dirread : '')).'">';
|
|
|
|
print '<input type="hidden" name="module" value="'.dol_escape_htmltag($module.($forceddirread ? '@'.$dirread : '')).'">';
|
|
|
|
print '<input type="hidden" name="tabobj" value="'.dol_escape_htmltag($tabobj).'">';
|
|
|
|
print '<input type="hidden" name="tabobj" value="'.dol_escape_htmltag($tabobj).'">';
|
|
|
|
|
|
|
|
|
|
|
|
print '<input class="button buttongen" type="submit" name="regenerateclasssql" value="'.$langs->trans("RegenerateClassAndSql").'">';
|
|
|
|
print '<input class="button smallpaddingimp" type="submit" name="regenerateclasssql" value="'.$langs->trans("RegenerateClassAndSql").'">';
|
|
|
|
//print '<input class="button buttongen" type="submit" name="regeneratemissing" value="'.$langs->trans("RegenerateMissingFiles").'">';
|
|
|
|
|
|
|
|
print '<br><br>';
|
|
|
|
print '<br><br>';
|
|
|
|
|
|
|
|
|
|
|
|
print load_fiche_titre($langs->trans("ObjectProperties"), '', '');
|
|
|
|
print load_fiche_titre($langs->trans("ObjectProperties"), '', '');
|
|
|
|
@ -3073,7 +3082,7 @@ if ($module == 'initmodule')
|
|
|
|
print '<a class="editfielda" href="'.$_SERVER['PHP_SELF'].'?tab='.$tab.'&module='.$module.($forceddirread ? '@'.$dirread : '').'&action=confirm_removefile&format='.$format.'&file='.urlencode($pathtohook).'">'.img_picto($langs->trans("Delete"), 'delete').'</a></td>';
|
|
|
|
print '<a class="editfielda" href="'.$_SERVER['PHP_SELF'].'?tab='.$tab.'&module='.$module.($forceddirread ? '@'.$dirread : '').'&action=confirm_removefile&format='.$format.'&file='.urlencode($pathtohook).'">'.img_picto($langs->trans("Delete"), 'delete').'</a></td>';
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
print '<span class="opacitymedium">'.$langs->trans("FileNotYetGenerated").'</span>';
|
|
|
|
print '<span class="opacitymedium">'.$langs->trans("FileNotYetGenerated").'</span>';
|
|
|
|
print '<a href="'.$_SERVER['PHP_SELF'].'?tab='.$tab.'&module='.$module.($forceddirread ? '@'.$dirread : '').'&action=inithook&format=php&file='.urlencode($pathtohook).'"><input type="button" class="button buttongen" value="'.$langs->trans("Generate").'"></a></td>';
|
|
|
|
print '<a href="'.$_SERVER['PHP_SELF'].'?tab='.$tab.'&module='.$module.($forceddirread ? '@'.$dirread : '').'&action=inithook&format=php&file='.urlencode($pathtohook).'"><input type="button" class="button smallpaddingimp" value="'.$langs->trans("Generate").'"></a></td>';
|
|
|
|
print '<td></td>';
|
|
|
|
print '<td></td>';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
print '</tr>';
|
|
|
|
print '</tr>';
|
|
|
|
@ -3139,7 +3148,7 @@ if ($module == 'initmodule')
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
print '<tr><td>';
|
|
|
|
print '<tr><td>';
|
|
|
|
print '<span class="fa fa-file-o"></span> '.$langs->trans("NoTrigger");
|
|
|
|
print '<span class="fa fa-file-o"></span> '.$langs->trans("NoTrigger");
|
|
|
|
print '<a href="'.$_SERVER['PHP_SELF'].'?tab='.$tab.'&module='.$module.($forceddirread ? '@'.$dirread : '').'&action=inittrigger&format=php"><input type="button" class="button buttongen" value="'.$langs->trans("Generate").'"></a></td>';
|
|
|
|
print '<a href="'.$_SERVER['PHP_SELF'].'?tab='.$tab.'&module='.$module.($forceddirread ? '@'.$dirread : '').'&action=inittrigger&format=php"><input type="button" class="button smallpaddingimp" value="'.$langs->trans("Generate").'"></a></td>';
|
|
|
|
print '<td></td>';
|
|
|
|
print '<td></td>';
|
|
|
|
print '</tr>';
|
|
|
|
print '</tr>';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -3190,7 +3199,7 @@ if ($module == 'initmodule')
|
|
|
|
print '</td><td><a class="editfielda" href="'.$_SERVER['PHP_SELF'].'?tab='.$tab.'&module='.$module.($forceddirread ? '@'.$dirread : '').'&action=confirm_removefile&format='.$format.'&file='.urlencode($pathtohook).'">'.img_picto($langs->trans("Delete"), 'delete').'</a></td>';
|
|
|
|
print '</td><td><a class="editfielda" href="'.$_SERVER['PHP_SELF'].'?tab='.$tab.'&module='.$module.($forceddirread ? '@'.$dirread : '').'&action=confirm_removefile&format='.$format.'&file='.urlencode($pathtohook).'">'.img_picto($langs->trans("Delete"), 'delete').'</a></td>';
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
print '<span class="opacitymedium">'.$langs->trans("FileNotYetGenerated").'</span>';
|
|
|
|
print '<span class="opacitymedium">'.$langs->trans("FileNotYetGenerated").'</span>';
|
|
|
|
print '</td><td><a href="'.$_SERVER['PHP_SELF'].'?tab='.$tab.'&module='.$module.($forceddirread ? '@'.$dirread : '').'&action=initcss&format=php&file='.urlencode($pathtohook).'"><input type="button" class="button buttongen" value="'.$langs->trans("Generate").'"></a></td>';
|
|
|
|
print '</td><td><a href="'.$_SERVER['PHP_SELF'].'?tab='.$tab.'&module='.$module.($forceddirread ? '@'.$dirread : '').'&action=initcss&format=php&file='.urlencode($pathtohook).'"><input type="button" class="button smallpaddingimp" value="'.$langs->trans("Generate").'"></a></td>';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
print '</tr>';
|
|
|
|
print '</tr>';
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
@ -3238,7 +3247,7 @@ if ($module == 'initmodule')
|
|
|
|
print '</td><td><a class="editfielda" href="'.$_SERVER['PHP_SELF'].'?tab='.$tab.'&module='.$module.($forceddirread ? '@'.$dirread : '').'&action=confirm_removefile&format='.$format.'&file='.urlencode($pathtohook).'">'.img_picto($langs->trans("Delete"), 'delete').'</a></td>';
|
|
|
|
print '</td><td><a class="editfielda" href="'.$_SERVER['PHP_SELF'].'?tab='.$tab.'&module='.$module.($forceddirread ? '@'.$dirread : '').'&action=confirm_removefile&format='.$format.'&file='.urlencode($pathtohook).'">'.img_picto($langs->trans("Delete"), 'delete').'</a></td>';
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
print '<span class="opacitymedium">'.$langs->trans("FileNotYetGenerated").'</span>';
|
|
|
|
print '<span class="opacitymedium">'.$langs->trans("FileNotYetGenerated").'</span>';
|
|
|
|
print '</td><td><a href="'.$_SERVER['PHP_SELF'].'?tab='.$tab.'&module='.$module.($forceddirread ? '@'.$dirread : '').'&action=initjs&format=php&file='.urlencode($pathtohook).'"><input type="button" class="button buttongen" value="'.$langs->trans("Generate").'"></a></td>';
|
|
|
|
print '</td><td><a href="'.$_SERVER['PHP_SELF'].'?tab='.$tab.'&module='.$module.($forceddirread ? '@'.$dirread : '').'&action=initjs&format=php&file='.urlencode($pathtohook).'"><input type="button" class="button smallpaddingimp" value="'.$langs->trans("Generate").'"></a></td>';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
print '</tr>';
|
|
|
|
print '</tr>';
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
@ -3292,7 +3301,7 @@ if ($module == 'initmodule')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
print '<tr><td><span class="fa fa-file-o"></span> '.$langs->trans("NoWidget");
|
|
|
|
print '<tr><td><span class="fa fa-file-o"></span> '.$langs->trans("NoWidget");
|
|
|
|
print '</td><td><a href="'.$_SERVER['PHP_SELF'].'?tab='.$tab.'&module='.$module.($forceddirread ? '@'.$dirread : '').'&action=initwidget&format=php"><input type="button" class="button buttongen" value="'.$langs->trans("Generate").'"></a>';
|
|
|
|
print '</td><td><a href="'.$_SERVER['PHP_SELF'].'?tab='.$tab.'&module='.$module.($forceddirread ? '@'.$dirread : '').'&action=initwidget&format=php"><input type="button" class="button smallpaddingimp" value="'.$langs->trans("Generate").'"></a>';
|
|
|
|
print '</td></tr>';
|
|
|
|
print '</td></tr>';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
print '</table>';
|
|
|
|
print '</table>';
|
|
|
|
@ -3374,7 +3383,7 @@ if ($module == 'initmodule')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
print '<tr><td><span class="fa fa-file-o"></span> '.$langs->trans("NoCLIFile");
|
|
|
|
print '<tr><td><span class="fa fa-file-o"></span> '.$langs->trans("NoCLIFile");
|
|
|
|
print '</td><td><a href="'.$_SERVER['PHP_SELF'].'?tab='.$tab.'&module='.$module.($forceddirread ? '@'.$dirread : '').'&action=initcli&format=php"><input type="button" class="button buttongen" value="'.$langs->trans("Generate").'"></a>';
|
|
|
|
print '</td><td><a href="'.$_SERVER['PHP_SELF'].'?tab='.$tab.'&module='.$module.($forceddirread ? '@'.$dirread : '').'&action=initcli&format=php"><input type="button" class="button smallpaddingimp" value="'.$langs->trans("Generate").'"></a>';
|
|
|
|
print '</td></tr>';
|
|
|
|
print '</td></tr>';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
print '</table>';
|
|
|
|
print '</table>';
|
|
|
|
@ -3547,7 +3556,7 @@ if ($module == 'initmodule')
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
print '<tr><td>';
|
|
|
|
print '<tr><td>';
|
|
|
|
print '<span class="fa fa-file-o"></span> '.$langs->trans("FileNotYetGenerated");
|
|
|
|
print '<span class="fa fa-file-o"></span> '.$langs->trans("FileNotYetGenerated");
|
|
|
|
print '</td><td><a href="'.$_SERVER['PHP_SELF'].'?tab='.$tab.'&module='.$module.($forceddirread ? '@'.$dirread : '').'&action=initdoc&format=php"><input type="button" class="button buttongen" value="'.$langs->trans("Generate").'"></a></td>';
|
|
|
|
print '</td><td><a href="'.$_SERVER['PHP_SELF'].'?tab='.$tab.'&module='.$module.($forceddirread ? '@'.$dirread : '').'&action=initdoc&format=php"><input type="button" class="button smallpaddingimp" value="'.$langs->trans("Generate").'"></a></td>';
|
|
|
|
print '</tr>';
|
|
|
|
print '</tr>';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
print '</table>';
|
|
|
|
print '</table>';
|
|
|
|
|