2
0
forked from Wavyzz/dolibarr

Replace arrow picto with fontawesome

This commit is contained in:
Laurent Destailleur
2019-03-02 14:07:13 +01:00
parent 56d921ea52
commit 5f6ca1119a
21 changed files with 29 additions and 25 deletions

View File

@@ -2980,7 +2980,7 @@ function img_picto($titlealt, $picto, $moreatt = '', $pictoisfullpath = false, $
//if (in_array($picto, array('switch_off', 'switch_on', 'off', 'on'))) //if (in_array($picto, array('switch_off', 'switch_on', 'off', 'on')))
if (empty($srconly) && in_array($pictowithoutext, array( if (empty($srconly) && in_array($pictowithoutext, array(
'bank', 'close_title', 'delete', 'edit', 'ellipsis-h', 'filter', 'grip', 'grip_title', 'list', 'listlight', 'off', 'on', 'play', 'playdisabled', 'printer', 'resize', 'bank', 'close_title', 'delete', 'edit', 'ellipsis-h', 'filter', 'grip', 'grip_title', 'list', 'listlight', 'off', 'on', 'play', 'playdisabled', 'printer', 'resize',
'note', 'sign-out', 'split', 'switch_off', 'switch_on', 'unlink', 'uparrow', '1downarrow', '1uparrow', 'note', 'sign-out', 'split', 'switch_off', 'switch_on', 'unlink', 'uparrow', '1downarrow', '1uparrow', '1leftarrow', '1rightarrow',
'jabber','skype','twitter','facebook','linkedin' 'jabber','skype','twitter','facebook','linkedin'
) )
)) { )) {
@@ -3053,12 +3053,10 @@ function img_picto($titlealt, $picto, $moreatt = '', $pictoisfullpath = false, $
$fakey = 'fa-mail-forward'; $fakey = 'fa-mail-forward';
$facolor = '#555'; $facolor = '#555';
} }
elseif ($pictowithoutext == '1uparrow') { elseif (in_array($pictowithoutext, array('1uparrow', '1downarrow', '1leftarrow', '1rightarrow', '1uparrow_selected', '1downarrow_selected', '1leftarrow_selected', '1rightarrow_selected'))) {
$fakey = 'fa-caret-up'; $convertarray=array('1uparrow'=>'caret-up', '1downarrow'=>'caret-down', '1leftarrow'=>'caret-left', '1rightarrow'=>'caret-right', '1uparrow_selected'=>'caret-up', '1downarrow_selected'=>'caret-down', '1leftarrow_selected'=>'caret-left', '1rightarrow_selected'=>'caret-right');
$marginleftonlyshort = 1; $fakey = 'fa-'.$convertarray[$pictowithoutext];
} if (preg_match('/selected/', $pictowithoutext)) $facolor = '#888';
elseif ($pictowithoutext == '1downarrow') {
$fakey = 'fa-caret-down';
$marginleftonlyshort = 1; $marginleftonlyshort = 1;
} }
elseif ($pictowithoutext == 'sign-out') { elseif ($pictowithoutext == 'sign-out') {

View File

@@ -32,7 +32,7 @@ use PhpOffice\PhpSpreadsheet\Writer\Xlsx;
/** /**
* Class to build export files with Excel format * Class to build export files with Excel format
*/ */
class ExportExcelnew extends ModeleExports class ExportExcel2007new extends ModeleExports
{ {
/** /**
* @var int ID * @var int ID

View File

@@ -519,7 +519,7 @@ if ($step == 2 && $datatoexport)
print '<div class="fichecenter">'; print '<div class="fichecenter">';
print '<div class="underbanner clearboth"></div>'; print '<div class="underbanner clearboth"></div>';
print '<table width="100%" class="border">'; print '<table width="100%" class="border tableforfield">';
// Module // Module
print '<tr><td class="titlefield">'.$langs->trans("Module").'</td>'; print '<tr><td class="titlefield">'.$langs->trans("Module").'</td>';
@@ -551,13 +551,13 @@ if ($step == 2 && $datatoexport)
print '<input type="hidden" name="action" value="select_model">'; print '<input type="hidden" name="action" value="select_model">';
print '<input type="hidden" name="step" value="2">'; print '<input type="hidden" name="step" value="2">';
print '<input type="hidden" name="datatoexport" value="'.$datatoexport.'">'; print '<input type="hidden" name="datatoexport" value="'.$datatoexport.'">';
print '<table><tr><td colspan="2">'; print '<div class="valignmiddle marginbottomonly">';
print $langs->trans("SelectExportFields").' '; print '<span class="opacitymedium">'.$langs->trans("SelectExportFields").'</span> ';
if(empty($conf->global->EXPORTS_SHARE_MODELS))$htmlother->select_export_model($exportmodelid, 'exportmodelid', $datatoexport, 1, $user->id); if(empty($conf->global->EXPORTS_SHARE_MODELS))$htmlother->select_export_model($exportmodelid, 'exportmodelid', $datatoexport, 1, $user->id);
else $htmlother->select_export_model($exportmodelid, 'exportmodelid', $datatoexport, 1); else $htmlother->select_export_model($exportmodelid, 'exportmodelid', $datatoexport, 1);
print ' '; print ' ';
print '<input type="submit" class="button" value="'.$langs->trans("Select").'">'; print '<input type="submit" class="button" value="'.$langs->trans("Select").'">';
print '</td></tr></table>'; print '</div>';
print '</form>'; print '</form>';
@@ -565,10 +565,10 @@ if ($step == 2 && $datatoexport)
print '<tr class="liste_titre">'; print '<tr class="liste_titre">';
print '<td>'.$langs->trans("Entities").'</td>'; print '<td>'.$langs->trans("Entities").'</td>';
print '<td>'.$langs->trans("ExportableFields").'</td>'; print '<td>'.$langs->trans("ExportableFields").'</td>';
print '<td width="100" align="center">'; print '<td width="100" class="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 '<a class="liste_titre commonlink" 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 ' / ';
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 '<a class="liste_titre commonlink" 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>';
print '<td width="44%">'.$langs->trans("ExportedFields").'</td>'; print '<td width="44%">'.$langs->trans("ExportedFields").'</td>';
print '</tr>'; print '</tr>';
@@ -719,7 +719,7 @@ if ($step == 3 && $datatoexport)
print '<div class="fichecenter">'; print '<div class="fichecenter">';
print '<div class="underbanner clearboth"></div>'; print '<div class="underbanner clearboth"></div>';
print '<table width="100%" class="border">'; print '<table width="100%" class="border tableforfield">';
// Module // Module
print '<tr><td class="titlefield">'.$langs->trans("Module").'</td>'; print '<tr><td class="titlefield">'.$langs->trans("Module").'</td>';
@@ -754,7 +754,7 @@ if ($step == 3 && $datatoexport)
print '<br>'; print '<br>';
// Combo list of export models // Combo list of export models
print $langs->trans("SelectFilterFields").'<br>'; print '<span class="opacitymedium">'.$langs->trans("SelectFilterFields").'</span><br><br>';
// un formulaire en plus pour recuperer les filtres // un formulaire en plus pour recuperer les filtres
@@ -905,10 +905,10 @@ if ($step == 4 && $datatoexport)
print '<div class="fichecenter">'; print '<div class="fichecenter">';
print '<div class="underbanner clearboth"></div>'; print '<div class="underbanner clearboth"></div>';
print '<table width="100%" class="border">'; print '<table width="100%" class="border tableforfield">';
// Module // Module
print '<tr><td class="titlefield">'.$langs->trans("Module").'</td>'; print '<tr><td class="titlefield tableforfield">'.$langs->trans("Module").'</td>';
print '<td>'; print '<td>';
//print img_object($objexport->array_export_module[0]->getName(),$objexport->array_export_module[0]->picto).' '; //print img_object($objexport->array_export_module[0]->getName(),$objexport->array_export_module[0]->picto).' ';
print $objexport->array_export_module[0]->getName(); print $objexport->array_export_module[0]->getName();
@@ -962,7 +962,7 @@ if ($step == 4 && $datatoexport)
// Select request if all fields are selected // Select request if all fields are selected
$sqlmaxforexport=$objexport->build_sql(0, array(), array()); $sqlmaxforexport=$objexport->build_sql(0, array(), array());
print $langs->trans("ChooseFieldsOrdersAndTitle").'<br>'; print '<div class="marginbottomonly"><span class="opacitymedium">'.$langs->trans("ChooseFieldsOrdersAndTitle").'</span></div>';
print '<table class="noborder" width="100%">'; print '<table class="noborder" width="100%">';
print '<tr class="liste_titre">'; print '<tr class="liste_titre">';
@@ -1166,7 +1166,7 @@ if ($step == 5 && $datatoexport)
print '<div class="fichecenter">'; print '<div class="fichecenter">';
print '<div class="underbanner clearboth"></div>'; print '<div class="underbanner clearboth"></div>';
print '<table width="100%" class="border">'; print '<table width="100%" class="border tableforfield">';
// Module // Module
print '<tr><td class="titlefield">'.$langs->trans("Module").'</td>'; print '<tr><td class="titlefield">'.$langs->trans("Module").'</td>';
@@ -1193,7 +1193,7 @@ if ($step == 5 && $datatoexport)
} }
print '<td>'.$list.'</td></tr>'; print '<td>'.$list.'</td></tr>';
// List of filtered fiels // List of filtered fields
if (isset($objexport->array_export_TypeFields[0]) && is_array($objexport->array_export_TypeFields[0])) if (isset($objexport->array_export_TypeFields[0]) && is_array($objexport->array_export_TypeFields[0]))
{ {
print '<tr><td>'.$langs->trans("FilteredFields").'</td>'; print '<tr><td>'.$langs->trans("FilteredFields").'</td>';
@@ -1222,9 +1222,9 @@ if ($step == 5 && $datatoexport)
// List of available export formats // List of available export formats
$htmltabloflibs = '<table class="noborder" width="100%">'; $htmltabloflibs = '<table class="noborder" width="100%">';
$htmltabloflibs.= '<tr class="liste_titre">'; $htmltabloflibs.= '<tr class="liste_titre">';
$htmltabloflibs.= '<td class="titlefield">'.$langs->trans("AvailableFormats").'</td>'; $htmltabloflibs.= '<td>'.$langs->trans("AvailableFormats").'</td>';
$htmltabloflibs.= '<td>'.$langs->trans("LibraryUsed").'</td>'; $htmltabloflibs.= '<td>'.$langs->trans("LibraryUsed").'</td>';
$htmltabloflibs.= '<td align="right">'.$langs->trans("LibraryVersion").'</td>'; $htmltabloflibs.= '<td class="right">'.$langs->trans("LibraryVersion").'</td>';
$htmltabloflibs.= '</tr>'."\n"; $htmltabloflibs.= '</tr>'."\n";
$liste=$objmodelexport->liste_modeles($db); $liste=$objmodelexport->liste_modeles($db);
@@ -1238,7 +1238,7 @@ if ($step == 5 && $datatoexport)
} }
$htmltabloflibs.= '<tr class="oddeven">'; $htmltabloflibs.= '<tr class="oddeven">';
$htmltabloflibs.= '<td width="16">'.img_picto_common($key, $objmodelexport->getPictoForKey($key)).' '; $htmltabloflibs.= '<td>'.img_picto_common($key, $objmodelexport->getPictoForKey($key)).' ';
$text=$objmodelexport->getDriverDescForKey($key); $text=$objmodelexport->getDriverDescForKey($key);
$label=$listeall[$key]; $label=$listeall[$key];
$htmltabloflibs.= $form->textwithpicto($label, $text).'</td>'; $htmltabloflibs.= $form->textwithpicto($label, $text).'</td>';

Binary file not shown.

Before

Width:  |  Height:  |  Size: 177 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 205 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 228 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 228 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 231 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 231 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 179 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 192 B

View File

@@ -769,6 +769,9 @@ select.flat.selectlimit {
.nomarginleft { .nomarginleft {
margin-left: 0px !important; margin-left: 0px !important;
} }
.marginbottomonly {
margin-bottom: 10px !important;
}
.selectlimit, .selectlimit:focus { .selectlimit, .selectlimit:focus {
border-left: none !important; border-left: none !important;
border-top: none !important; border-top: none !important;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 177 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 205 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 228 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 228 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 231 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 231 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 179 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 192 B

View File

@@ -756,6 +756,9 @@ select.flat.selectlimit {
.nomarginleft { .nomarginleft {
margin-left: 0px !important; margin-left: 0px !important;
} }
.marginbottomonly {
margin-bottom: 10px !important;
}
.selectlimit, .selectlimit:focus { .selectlimit, .selectlimit:focus {
border-left: none !important; border-left: none !important;
border-top: none !important; border-top: none !important;