Fix must use the new common code
This commit is contained in:
parent
af6e25d928
commit
ee394d6fd5
@ -66,43 +66,7 @@ $head = supplier_proposal_admin_prepare_head();
|
|||||||
|
|
||||||
dol_fiche_head($head, 'attributes', $langs->trans("CommRequests"), -1, 'supplier_proposal');
|
dol_fiche_head($head, 'attributes', $langs->trans("CommRequests"), -1, 'supplier_proposal');
|
||||||
|
|
||||||
|
require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';
|
||||||
print $langs->trans("DefineHereComplementaryAttributes", $textobject).'<br>'."\n";
|
|
||||||
print '<br>';
|
|
||||||
|
|
||||||
// Load attribute_label
|
|
||||||
$extrafields->fetch_name_optionals_label($elementtype);
|
|
||||||
|
|
||||||
print "<table summary=\"listofattributes\" class=\"noborder\" width=\"100%\">";
|
|
||||||
|
|
||||||
print '<tr class="liste_titre">';
|
|
||||||
print '<td class="center">'.$langs->trans("Position").'</td>';
|
|
||||||
print '<td>'.$langs->trans("Label").'</td>';
|
|
||||||
print '<td>'.$langs->trans("AttributeCode").'</td>';
|
|
||||||
print '<td>'.$langs->trans("Type").'</td>';
|
|
||||||
print '<td class="right">'.$langs->trans("Size").'</td>';
|
|
||||||
print '<td class="center">'.$langs->trans("Unique").'</td>';
|
|
||||||
print '<td class="center">'.$langs->trans("Required").'</td>';
|
|
||||||
print '<td width="80"> </td>';
|
|
||||||
print "</tr>\n";
|
|
||||||
|
|
||||||
foreach($extrafields->attribute_type as $key => $value)
|
|
||||||
{
|
|
||||||
print '<tr class="oddeven">';
|
|
||||||
print "<td>".$extrafields->attribute_pos[$key]."</td>\n";
|
|
||||||
print "<td>".$extrafields->attribute_label[$key]."</td>\n";
|
|
||||||
print "<td>".$key."</td>\n";
|
|
||||||
print "<td>".$type2label[$extrafields->attribute_type[$key]]."</td>\n";
|
|
||||||
print '<td class="right">'.$extrafields->attribute_size[$key]."</td>\n";
|
|
||||||
print '<td class="center">'.yn($extrafields->attribute_unique[$key])."</td>\n";
|
|
||||||
print '<td class="center">'.yn($extrafields->attribute_required[$key])."</td>\n";
|
|
||||||
print '<td class="right"><a href="'.$_SERVER["PHP_SELF"].'?action=edit&attrname='.$key.'">'.img_edit().'</a>';
|
|
||||||
print " <a href=\"".$_SERVER["PHP_SELF"]."?action=delete&attrname=$key\">".img_delete()."</a></td>\n";
|
|
||||||
print "</tr>";
|
|
||||||
// $i++;
|
|
||||||
}
|
|
||||||
|
|
||||||
print "</table>";
|
|
||||||
|
|
||||||
dol_fiche_end();
|
dol_fiche_end();
|
||||||
|
|
||||||
|
|||||||
@ -71,40 +71,7 @@ $head = supplier_proposal_admin_prepare_head();
|
|||||||
|
|
||||||
dol_fiche_head($head, 'attributeslines', $langs->trans("CommRequests"), -1, 'supplier_proposal');
|
dol_fiche_head($head, 'attributeslines', $langs->trans("CommRequests"), -1, 'supplier_proposal');
|
||||||
|
|
||||||
|
require DOL_DOCUMENT_ROOT.'/core/tpl/admin_extrafields_view.tpl.php';
|
||||||
print $langs->trans("DefineHereComplementaryAttributes", $textobject).'<br>'."\n";
|
|
||||||
print '<br>';
|
|
||||||
|
|
||||||
// Load attribute_label
|
|
||||||
$extrafields->fetch_name_optionals_label($elementtype);
|
|
||||||
|
|
||||||
print "<table summary=\"listofattributes\" class=\"noborder\" width=\"100%\">";
|
|
||||||
|
|
||||||
print '<tr class="liste_titre">';
|
|
||||||
print '<td>'.$langs->trans("Label").'</td>';
|
|
||||||
print '<td>'.$langs->trans("AttributeCode").'</td>';
|
|
||||||
print '<td>'.$langs->trans("Type").'</td>';
|
|
||||||
print '<td class="right">'.$langs->trans("Size").'</td>';
|
|
||||||
print '<td class="center">'.$langs->trans("Unique").'</td>';
|
|
||||||
print '<td class="center">'.$langs->trans("Required").'</td>';
|
|
||||||
print '<td width="80"> </td>';
|
|
||||||
print "</tr>\n";
|
|
||||||
|
|
||||||
foreach($extrafields->attribute_type as $key => $value)
|
|
||||||
{
|
|
||||||
print '<tr class="oddeven">';
|
|
||||||
print "<td>".$extrafields->attribute_label[$key]."</td>\n";
|
|
||||||
print "<td>".$key."</td>\n";
|
|
||||||
print "<td>".$type2label[$extrafields->attribute_type[$key]]."</td>\n";
|
|
||||||
print '<td class="right">'.$extrafields->attribute_size[$key]."</td>\n";
|
|
||||||
print '<td class="center">'.yn($extrafields->attribute_unique[$key])."</td>\n";
|
|
||||||
print '<td class="center">'.yn($extrafields->attribute_required[$key])."</td>\n";
|
|
||||||
print '<td class="right"><a href="'.$_SERVER["PHP_SELF"].'?action=edit&attrname='.$key.'">'.img_edit().'</a>';
|
|
||||||
print " <a href=\"".$_SERVER["PHP_SELF"]."?action=delete&attrname=$key\">".img_delete()."</a></td>\n";
|
|
||||||
print "</tr>";
|
|
||||||
}
|
|
||||||
|
|
||||||
print "</table>";
|
|
||||||
|
|
||||||
dol_fiche_end();
|
dol_fiche_end();
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user