Fix: better look

This commit is contained in:
Regis Houssin
2011-05-04 10:53:41 +00:00
parent da93deb744
commit 468a3ef4bb
3 changed files with 11 additions and 16 deletions

View File

@@ -1290,6 +1290,7 @@ function img_picto($alt, $picto, $options='', $pictoisfullpath=0)
{ {
$picto = $regs[1]; $picto = $regs[1];
$path = $regs[2]; $path = $regs[2];
if (! preg_match('/(\.png|\.gif)$/i',$picto)) $picto.='.png';
// If img file not into standard path, we use alternate path // If img file not into standard path, we use alternate path
if (defined('DOL_URL_ROOT_ALT') && DOL_URL_ROOT_ALT && ! file_exists(DOL_DOCUMENT_ROOT.'/'.$path.'/img/'.$picto)) $url = DOL_URL_ROOT_ALT; if (defined('DOL_URL_ROOT_ALT') && DOL_URL_ROOT_ALT && ! file_exists(DOL_DOCUMENT_ROOT.'/'.$path.'/img/'.$picto)) $url = DOL_URL_ROOT_ALT;
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@@ -133,7 +133,7 @@ if (! empty($nvpStr))
dol_htmloutput_errors('',$errors); dol_htmloutput_errors('',$errors);
print_barre_liste($langs->trans('PaypalTransaction'), $page, $_SERVER['PHP_SELF']); print_fiche_titre($langs->trans('PaypalTransaction'), '', 'paypal_logo@paypal');
// Search parameters // Search parameters
print '<form action="'.$_SERVER['PHP_SELF'].'" method="POST">'; print '<form action="'.$_SERVER['PHP_SELF'].'" method="POST">';
@@ -141,24 +141,18 @@ print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
print '<table>'; print '<table>';
print '<tr>'; print '<tr><td>';
print '<td>'.$langs->trans('DateStart').': </td>'; print $langs->trans('DateStart').': ';
print '<td><input type="text" id="startDateStr" name="startDateStr" maxlength="20" size="10" value="'.$start_date_str.'" /></td>'; print '<input type="text" id="startDateStr" name="startDateStr" maxlength="20" size="10" value="'.$start_date_str.'" />&nbsp;';
print '</tr>';
print '<tr>'; print $langs->trans('DateEnd').': ';
print '<td>'.$langs->trans('DateEnd').': </td>'; print '<input type="text" id="endDateStr" name="endDateStr" maxlength="20" size="10" value="'.$end_date_str.'" />&nbsp;';
print '<td><input type="text" id="endDateStr" name="endDateStr" maxlength="20" size="10" value="'.$end_date_str.'" /></td>';
print '</tr>';
print '<tr>'; print $langs->trans('TransactionID').': ';
print '<td>'.$langs->trans('TransactionID').': </td>'; print '<input type="text" name="transactionID" />&nbsp;';
print '<td><input type="text" name="transactionID" /></td>';
print '</tr>';
print '<tr>'; print '<input type="submit" value="'.$langs->trans('Send').'" />';
print '<td><input type="submit" value="'.$langs->trans('Send').'" /></td>'; print '</td</tr>';
print '</tr>';
print '</table>'; print '</table>';
print '</form>'; print '</form>';