objectline_title.tpl.php 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <?php
  2. /* Copyright (C) 2010-2013 Regis Houssin <regis.houssin@inodbox.com>
  3. * Copyright (C) 2010-2011 Laurent Destailleur <eldy@users.sourceforge.net>
  4. * Copyright (C) 2012-2013 Christophe Battarel <christophe.battarel@altairis.fr>
  5. * Copyright (C) 2012 Cédric Salvador <csalvador@gpcsolutions.fr>
  6. * Copyright (C) 2012-2014 Raphaël Doursenaud <rdoursenaud@gpcsolutions.fr>
  7. * Copyright (C) 2013 Florian Henry <florian.henry@open-concept.pro>
  8. * Copyright (C) 2017 Juanjo Menent <jmenent@2byte.es>
  9. * Copyright (C) 2021 Gauthier VERDOL <gauthier.verdol@atm-consulting.fr>
  10. * Copyright (C) 2021 Greg Rastklan <greg.rastklan@atm-consulting.fr>
  11. * Copyright (C) 2021 Jean-Pascal BOUDET <jean-pascal.boudet@atm-consulting.fr>
  12. * Copyright (C) 2021 Grégory BLEMAND <gregory.blemand@atm-consulting.fr>
  13. *
  14. * This program is free software; you can redistribute it and/or modify
  15. * it under the terms of the GNU General Public License as published by
  16. * the Free Software Foundation; either version 3 of the License, or
  17. * (at your option) any later version.
  18. *
  19. * This program is distributed in the hope that it will be useful,
  20. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  21. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22. * GNU General Public License for more details.
  23. *
  24. * You should have received a copy of the GNU General Public License
  25. * along with this program. If not, see <https://www.gnu.org/licenses/>.
  26. *
  27. * Need to have following variables defined:
  28. * $object (invoice, order, ...)
  29. * $conf
  30. * $langs
  31. * $element (used to test $user->rights->$element->creer)
  32. * $permtoedit (used to replace test $user->rights->$element->creer)
  33. * $inputalsopricewithtax (0 by default, 1 to also show column with unit price including tax)
  34. * $outputalsopricetotalwithtax
  35. * $usemargins (0 to disable all margins columns, 1 to show according to margin setup)
  36. *
  37. * $type, $text, $description, $line
  38. */
  39. // Protection to avoid direct call of template
  40. if (empty($object) || !is_object($object)) {
  41. print "Error, template page can't be called as URL";
  42. exit;
  43. }
  44. print "<!-- BEGIN PHP TEMPLATE objectline_title.tpl.php -->\n";
  45. // Title line
  46. print "<thead>\n";
  47. print '<tr class="liste_titre nodrag nodrop">';
  48. // Adds a line numbering column
  49. if (!empty($conf->global->MAIN_VIEW_LINE_NUMBER)) {
  50. print '<td class="linecolnum center">&nbsp;</td>';
  51. }
  52. // Skill type
  53. print '<td class="linecollabel">'.$langs->trans('SkillType').'</td>';
  54. // Label skill
  55. print '<td class="linecollabel">'.$langs->trans('Label').'</td>';
  56. // Description
  57. print '<td class="linecoldescription">'.$langs->trans('Description').'</td>';
  58. // Note
  59. print '<td class="linecolrank right" style="width: 80px">'.$form->textwithpicto($langs->trans("Level"), $langs->trans('EmployeeRank')).'</td>';
  60. //print '<td class="linecoledit"></td>'; // No width to allow autodim
  61. //print '<td class="linecoldelete" style="width: 10px"></td>';
  62. //print '<td class="linecolmove" style="width: 10px"></td>';
  63. print "</tr>\n";
  64. print "</thead>\n";
  65. print "<!-- END PHP TEMPLATE objectline_title.tpl.php -->\n";