示例#1
0
 $label = $objexport->array_export_label[0];
 //print $value.'-'.$icon.'-'.$label."<br>";
 print img_object($objexport->array_export_module[0]->getName(), $icon) . ' ';
 print $label;
 print '</td></tr>';
 print '</table>';
 print '<br>';
 // Combo list of export models
 print '<form action="' . $_SERVER["PHP_SELF"] . '" method="post">';
 print '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">';
 print '<input type="hidden" name="action" value="select_model">';
 print '<input type="hidden" name="step" value="2">';
 print '<input type="hidden" name="datatoexport" value="' . $datatoexport . '">';
 print '<table><tr><td colspan="2">';
 print $langs->trans("SelectExportFields") . ' ';
 $htmlother->select_export_model($exportmodelid, 'exportmodelid', $datatoexport, 1);
 print '<input type="submit" class="button" value="' . $langs->trans("Select") . '">';
 print '</td></tr></table>';
 print '</form>';
 print '<table class="noborder" width="100%">';
 print '<tr class="liste_titre">';
 print '<td>' . $langs->trans("Entities") . '</td>';
 print '<td>' . $langs->trans("ExportableFields") . '</td>';
 print '<td width="100" align="center">';
 print '<a class="liste_titre" title=' . $langs->trans("All") . ' alt=' . $langs->trans("All") . ' href="' . $_SERVER["PHP_SELF"] . '?step=2&datatoexport=' . $datatoexport . '&action=selectfield&field=all">' . $langs->trans("All") . "</a>";
 print '/';
 print '<a class="liste_titre" title=' . $langs->trans("None") . ' alt=' . $langs->trans("None") . ' href="' . $_SERVER["PHP_SELF"] . '?step=2&datatoexport=' . $datatoexport . '&action=unselectfield&field=all">' . $langs->trans("None") . "</a>";
 print '</td>';
 print '<td width="44%">' . $langs->trans("ExportedFields") . '</td>';
 print '</tr>';
 // Champs exportables