--- /tmp/dsg/dolibarr/htdocs/core/tpl/ajax/github_19.0.3_fileupload_main.tpl.php +++ /tmp/dsg/dolibarr/htdocs/core/tpl/ajax/client_fileupload_main.tpl.php @@ -0,0 +1,94 @@ + + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +// Protection to avoid direct call of template +if (empty($conf) || !is_object($conf)) +{ + print "Error, template page can't be called as URL"; + exit; +} + +?> + + + + --- /tmp/dsg/dolibarr/htdocs/core/tpl/ajax/github_19.0.3_objectlinked_lineimport.tpl.php +++ /tmp/dsg/dolibarr/htdocs/core/tpl/ajax/client_objectlinked_lineimport.tpl.php @@ -0,0 +1,112 @@ + + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +// Protection to avoid direct call of template +if (empty($conf) || !is_object($conf)) +{ + print "Error, template page can't be called as URL"; + exit; +} + +$objectUrl = $object->getNomUrl(0, '', 0, 1); +if ($object->element == 'propal') +{ + $objectUrl = DOL_URL_ROOT.'/comm/propal/card.php?id='.$object->id; +} + +?> + + + + +