Debug module resource
This commit is contained in:
parent
9b6e5196ea
commit
52fefc2d02
@ -119,7 +119,7 @@ class modResource extends DolibarrModules
|
||||
// Minimum version of PHP required by module
|
||||
$this->phpmin = array(5, 3);
|
||||
|
||||
$this->langfiles = array("resource@resource"); // langfiles@resource
|
||||
$this->langfiles = array("resource"); // langfiles@resource
|
||||
// Constants
|
||||
// List of particular constants to add when module is enabled
|
||||
// (key, 'chaine', value, desc, visible, 'current' or 'allentities', deleteonunactive)
|
||||
|
||||
@ -168,7 +168,7 @@ if ( $object->fetch($id) > 0 )
|
||||
print '<input type="hidden" name="action" value="update">';
|
||||
print '<input type="hidden" name="id" value="'.$object->id.'">';
|
||||
|
||||
dol_fiche_head($head, 'resource', $langs->trans("ResourceSingular"),0,'resource@resource');
|
||||
dol_fiche_head($head, 'resource', $langs->trans("ResourceSingular"),0,'resource');
|
||||
|
||||
print '<table class="border" width="100%">';
|
||||
|
||||
@ -201,7 +201,7 @@ if ( $object->fetch($id) > 0 )
|
||||
}
|
||||
else
|
||||
{
|
||||
dol_fiche_head($head, 'resource', $langs->trans("ResourceSingular"),0,'resource@resource');
|
||||
dol_fiche_head($head, 'resource', $langs->trans("ResourceSingular"),0,'resource');
|
||||
|
||||
// Confirm deleting resource line
|
||||
if ($action == 'delete')
|
||||
|
||||
@ -875,7 +875,7 @@ class Dolresource extends CommonObject
|
||||
if ($option == '')
|
||||
{
|
||||
$link = '<a href="'.dol_buildpath('/resource/card.php',1).'?id='.$this->id. $get_params .'" title="'.dol_escape_htmltag($label, 1).'" class="classfortooltip">';
|
||||
$picto='resource@resource';
|
||||
$picto='resource';
|
||||
$label=$langs->trans("ShowResource").': '.$this->ref;
|
||||
|
||||
}
|
||||
|
||||
@ -119,7 +119,7 @@ if ($id > 0 || ! empty($ref))
|
||||
|
||||
|
||||
$head = resource_prepare_head($object);
|
||||
dol_fiche_head($head, 'contact', $langs->trans("ResourceSingular"), 0, 'resource@resource');
|
||||
dol_fiche_head($head, 'contact', $langs->trans("ResourceSingular"), 0, 'resource');
|
||||
|
||||
|
||||
/*
|
||||
|
||||
@ -89,7 +89,7 @@ if ($object->id)
|
||||
|
||||
$head=resource_prepare_head($object);
|
||||
|
||||
dol_fiche_head($head, 'documents', $langs->trans("ResourceSingular"), 0, 'resource@resource');
|
||||
dol_fiche_head($head, 'documents', $langs->trans("ResourceSingular"), 0, 'resource');
|
||||
|
||||
|
||||
// Construit liste des fichiers
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 1.2 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 2.4 KiB |
@ -106,10 +106,9 @@ else
|
||||
|
||||
print '<table class="noborder" width="100%">'."\n";
|
||||
print '<tr class="liste_titre">';
|
||||
print_liste_field_titre($langs->trans('Id'),$_SERVER['PHP_SELF'],'t.rowid','',$param,'',$sortfield,$sortorder);
|
||||
print_liste_field_titre($langs->trans('Ref'),$_SERVER['PHP_SELF'],'t.ref','',$param,'',$sortfield,$sortorder);
|
||||
print_liste_field_titre($langs->trans('ResourceType'),$_SERVER['PHP_SELF'],'ty.code','',$param,'',$sortfield,$sortorder);
|
||||
print_liste_field_titre($langs->trans('Action'),"","","","",'width="60" align="center"',"","");
|
||||
print_liste_field_titre('',"","","","",'width="60" align="center"',"","");
|
||||
print "</tr>\n";
|
||||
|
||||
foreach ($object->lines as $resource)
|
||||
@ -117,15 +116,12 @@ else
|
||||
$var=!$var;
|
||||
|
||||
$style='';
|
||||
if($resource->id == GETPOST('lineid'))
|
||||
$style='style="background: orange;"';
|
||||
if ($resource->id == GETPOST('lineid')) $style='style="background: orange;"';
|
||||
|
||||
print '<tr '.$bc[$var].' '.$style.'><td>';
|
||||
print '<a href="./card.php?id='.$resource->id.'">'.$resource->id.'</a>';
|
||||
print '</td>';
|
||||
print '<tr '.$bc[$var].' '.$style.'>';
|
||||
|
||||
print '<td>';
|
||||
print $resource->ref;
|
||||
print $resource->getNomUrl(5);
|
||||
print '</td>';
|
||||
|
||||
print '<td>';
|
||||
|
||||
@ -64,7 +64,7 @@ $form = new Form($db);
|
||||
if ($id > 0 || ! empty($ref))
|
||||
{
|
||||
$head = resource_prepare_head($object);
|
||||
dol_fiche_head($head, 'note', $langs->trans('ResourceSingular'), 0, 'resource@resource');
|
||||
dol_fiche_head($head, 'note', $langs->trans('ResourceSingular'), 0, 'resource');
|
||||
|
||||
print '<table class="border" width="100%">';
|
||||
print '<tr><td class="titlefield">'.$langs->trans("ResourceFormLabel_ref").'</td><td>';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user