Code source html plus lisible
This commit is contained in:
parent
0878980a9b
commit
e43d38036e
@ -1112,7 +1112,7 @@ if ($_GET['action'] == 'create')
|
|||||||
print $soc->getNomUrl(1);
|
print $soc->getNomUrl(1);
|
||||||
print '<input type="hidden" name="socid" value="'.$soc->id.'">';
|
print '<input type="hidden" name="socid" value="'.$soc->id.'">';
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print '</tr>';
|
print '</tr>'."\n";
|
||||||
|
|
||||||
// Type de facture
|
// Type de facture
|
||||||
$facids=$facturestatic->list_replacable_invoices($soc->id);
|
$facids=$facturestatic->list_replacable_invoices($soc->id);
|
||||||
@ -1129,19 +1129,20 @@ if ($_GET['action'] == 'create')
|
|||||||
}
|
}
|
||||||
|
|
||||||
print '<tr><td valign="top">'.$langs->trans('Type').'</td><td colspan="2">';
|
print '<tr><td valign="top">'.$langs->trans('Type').'</td><td colspan="2">';
|
||||||
print '<table class="nobordernopadding"><tr>';
|
print '<table class="nobordernopadding">'."\n";
|
||||||
print '<td width="16px">';
|
|
||||||
print '<input type="radio" name="type" value="0"'.($_POST['type']==0?' checked=true':'').'>';
|
print '<tr><td width="16px" valign="middle">';
|
||||||
print '</td><td>';
|
print '<input type="radio" name="type" value="0"'.($_POST['type']==0?' checked="true"':'').'>';
|
||||||
|
print '</td><td valign="middle">';
|
||||||
$desc=$html->textwithhelp($langs->trans("InvoiceStandardAsk"),$langs->transnoentities("InvoiceStandardDesc"),1);
|
$desc=$html->textwithhelp($langs->trans("InvoiceStandardAsk"),$langs->transnoentities("InvoiceStandardDesc"),1);
|
||||||
print $desc;
|
print $desc;
|
||||||
print '</td></tr>';
|
print '</td></tr>'."\n";
|
||||||
|
|
||||||
print '<tr><td>';
|
print '<tr><td valign="middle">';
|
||||||
print '<input type="radio" name="type" value="1"'.($_POST['type']==1?' checked=true':'');
|
print '<input type="radio" name="type" value="1"'.($_POST['type']==1?' checked=true':'');
|
||||||
if (! $options) print ' disabled="true"';
|
if (! $options) print ' disabled="true"';
|
||||||
print '>';
|
print '>';
|
||||||
print '</td><td>';
|
print '</td><td valign="middle">';
|
||||||
$text=$langs->trans("InvoiceReplacementAsk").' ';
|
$text=$langs->trans("InvoiceReplacementAsk").' ';
|
||||||
$text.='<select class="flat" name="fac_replacement"';
|
$text.='<select class="flat" name="fac_replacement"';
|
||||||
if (! $options) $text.=' disabled="true"';
|
if (! $options) $text.=' disabled="true"';
|
||||||
@ -1158,13 +1159,13 @@ if ($_GET['action'] == 'create')
|
|||||||
$text.='</select>';
|
$text.='</select>';
|
||||||
$desc=$html->textwithhelp($text,$langs->transnoentities("InvoiceReplacementDesc"),1);
|
$desc=$html->textwithhelp($text,$langs->transnoentities("InvoiceReplacementDesc"),1);
|
||||||
print $desc;
|
print $desc;
|
||||||
print '</td></tr>';
|
print '</td></tr>'."\n";
|
||||||
|
|
||||||
print '<tr><td>';
|
print '<tr><td valign="middle">';
|
||||||
print '<input type="radio" name="type" value="2"'.($_POST['type']==2?' checked=true':'');
|
print '<input type="radio" name="type" value="2"'.($_POST['type']==2?' checked=true':'');
|
||||||
if (! $optionsav) print ' disabled="true"';
|
if (! $optionsav) print ' disabled="true"';
|
||||||
print '>';
|
print '>';
|
||||||
print '</td><td>';
|
print '</td><td valign="middle">';
|
||||||
$text=$langs->transnoentities("InvoiceAvoirAsk").' ';
|
$text=$langs->transnoentities("InvoiceAvoirAsk").' ';
|
||||||
// $text.='<input type="text" value="">';
|
// $text.='<input type="text" value="">';
|
||||||
$text.='<select class="flat" name="fac_avoir"';
|
$text.='<select class="flat" name="fac_avoir"';
|
||||||
@ -1183,7 +1184,8 @@ if ($_GET['action'] == 'create')
|
|||||||
$desc=$html->textwithhelp($text,$langs->transnoentities("InvoiceAvoirDesc"),1);
|
$desc=$html->textwithhelp($text,$langs->transnoentities("InvoiceAvoirDesc"),1);
|
||||||
//.' ('.$langs->trans("FeatureNotYetAvailable").')',$langs->transnoentities("InvoiceAvoirDesc"),1);
|
//.' ('.$langs->trans("FeatureNotYetAvailable").')',$langs->transnoentities("InvoiceAvoirDesc"),1);
|
||||||
print $desc;
|
print $desc;
|
||||||
print '</td></tr>';
|
print '</td></tr>'."\n";
|
||||||
|
|
||||||
print '</table>';
|
print '</table>';
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user