Fix opacity on text with a href links inside
Fix var not defined
This commit is contained in:
parent
f9c3b25dbd
commit
39737c7c4b
@ -114,6 +114,7 @@ class Facturation
|
|||||||
$localtaxarray = getLocalTaxesFromRate($vatrowid, 0, $societe, $mysoc, 1);
|
$localtaxarray = getLocalTaxesFromRate($vatrowid, 0, $societe, $mysoc, 1);
|
||||||
|
|
||||||
// Clean vat code
|
// Clean vat code
|
||||||
|
$reg = array();
|
||||||
$vat_src_code = '';
|
$vat_src_code = '';
|
||||||
if (preg_match('/\((.*)\)/', $txtva, $reg))
|
if (preg_match('/\((.*)\)/', $txtva, $reg))
|
||||||
{
|
{
|
||||||
|
|||||||
@ -39,6 +39,7 @@ $action=GETPOST('action', 'aZ09');
|
|||||||
* Actions
|
* Actions
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
$reg = array();
|
||||||
if (preg_match('/set_([a-z0-9_\-]+)/i', $action, $reg))
|
if (preg_match('/set_([a-z0-9_\-]+)/i', $action, $reg))
|
||||||
{
|
{
|
||||||
$code=$reg[1];
|
$code=$reg[1];
|
||||||
|
|||||||
@ -2615,7 +2615,7 @@ if ($action == 'create')
|
|||||||
$element = $subelement = $origin;
|
$element = $subelement = $origin;
|
||||||
$regs = array();
|
$regs = array();
|
||||||
if (preg_match('/^([^_]+)_([^_]+)/i', $origin, $regs)) {
|
if (preg_match('/^([^_]+)_([^_]+)/i', $origin, $regs)) {
|
||||||
$element = $reg[1];
|
$element = $regs[1];
|
||||||
$subelement = $regs[2];
|
$subelement = $regs[2];
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3880,25 +3880,25 @@ elseif ($id > 0 || !empty($ref))
|
|||||||
print '<table class="border tableforfield" width="100%">';
|
print '<table class="border tableforfield" width="100%">';
|
||||||
|
|
||||||
// Type
|
// Type
|
||||||
print '<tr><td class="titlefield">'.$langs->trans('Type').'</td><td>';
|
print '<tr><td class="titlefield fieldname_type">'.$langs->trans('Type').'</td><td class="valuefield fieldname_type">';
|
||||||
print $object->getLibType();
|
print $object->getLibType();
|
||||||
if ($object->module_source) {
|
if ($object->module_source) {
|
||||||
print ' <span class="opacitymedium">('.$langs->trans("POS").' '.$object->module_source.' - '.$langs->trans("Terminal").' '.$object->pos_source.')</span>';
|
print ' <span class="opacitymediumbycolor">('.$langs->trans("POS").' '.$object->module_source.' - '.$langs->trans("Terminal").' '.$object->pos_source.')</span>';
|
||||||
}
|
}
|
||||||
if ($object->type == Facture::TYPE_REPLACEMENT) {
|
if ($object->type == Facture::TYPE_REPLACEMENT) {
|
||||||
$facreplaced = new Facture($db);
|
$facreplaced = new Facture($db);
|
||||||
$facreplaced->fetch($object->fk_facture_source);
|
$facreplaced->fetch($object->fk_facture_source);
|
||||||
print ' <span class="opacitymedium">('.$langs->transnoentities("ReplaceInvoice", $facreplaced->getNomUrl(1)).')</span>';
|
print ' <span class="opacitymediumbycolor">('.$langs->transnoentities("ReplaceInvoice", $facreplaced->getNomUrl(1)).')</span>';
|
||||||
}
|
}
|
||||||
if ($object->type == Facture::TYPE_CREDIT_NOTE && !empty($object->fk_facture_source)) {
|
if ($object->type == Facture::TYPE_CREDIT_NOTE && !empty($object->fk_facture_source)) {
|
||||||
$facusing = new Facture($db);
|
$facusing = new Facture($db);
|
||||||
$facusing->fetch($object->fk_facture_source);
|
$facusing->fetch($object->fk_facture_source);
|
||||||
print ' <span class="opacitymedium">('.$langs->transnoentities("CorrectInvoice", $facusing->getNomUrl(1)).')</span>';
|
print ' <span class="opacitymediumbycolor">('.$langs->transnoentities("CorrectInvoice", $facusing->getNomUrl(1)).')</span>';
|
||||||
}
|
}
|
||||||
|
|
||||||
$facidavoir = $object->getListIdAvoirFromInvoice();
|
$facidavoir = $object->getListIdAvoirFromInvoice();
|
||||||
if (count($facidavoir) > 0) {
|
if (count($facidavoir) > 0) {
|
||||||
print ' <span class="opacitymedium">('.$langs->transnoentities("InvoiceHasAvoir");
|
print ' <span class="opacitymediumbycolor">('.$langs->transnoentities("InvoiceHasAvoir");
|
||||||
$i = 0;
|
$i = 0;
|
||||||
foreach ($facidavoir as $id) {
|
foreach ($facidavoir as $id) {
|
||||||
if ($i == 0)
|
if ($i == 0)
|
||||||
@ -3914,14 +3914,14 @@ elseif ($id > 0 || !empty($ref))
|
|||||||
if ($objectidnext > 0) {
|
if ($objectidnext > 0) {
|
||||||
$facthatreplace = new Facture($db);
|
$facthatreplace = new Facture($db);
|
||||||
$facthatreplace->fetch($objectidnext);
|
$facthatreplace->fetch($objectidnext);
|
||||||
print ' <span class="opacitymedium">('.$langs->transnoentities("ReplacedByInvoice", $facthatreplace->getNomUrl(1)).')</span>';
|
print ' <span class="opacitymediumbycolor">('.$langs->transnoentities("ReplacedByInvoice", $facthatreplace->getNomUrl(1)).')</span>';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($object->type == Facture::TYPE_CREDIT_NOTE || $object->type == Facture::TYPE_DEPOSIT) {
|
if ($object->type == Facture::TYPE_CREDIT_NOTE || $object->type == Facture::TYPE_DEPOSIT) {
|
||||||
$discount = new DiscountAbsolute($db);
|
$discount = new DiscountAbsolute($db);
|
||||||
$result = $discount->fetch(0, $object->id);
|
$result = $discount->fetch(0, $object->id);
|
||||||
if ($result > 0) {
|
if ($result > 0) {
|
||||||
print '. <span class="opacitymedium">'.$langs->trans("CreditNoteConvertedIntoDiscount", $object->getLibType(1), $discount->getNomUrl(1, 'discount')).'</span><br>';
|
print '. <span class="opacitymediumbycolor">'.$langs->trans("CreditNoteConvertedIntoDiscount", $object->getLibType(1), $discount->getNomUrl(1, 'discount')).'</span><br>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3930,7 +3930,7 @@ elseif ($id > 0 || !empty($ref))
|
|||||||
$tmptemplate = new FactureRec($db);
|
$tmptemplate = new FactureRec($db);
|
||||||
$result = $tmptemplate->fetch($object->fk_fac_rec_source);
|
$result = $tmptemplate->fetch($object->fk_fac_rec_source);
|
||||||
if ($result > 0) {
|
if ($result > 0) {
|
||||||
print '. <span class="opacitymedium">'.$langs->trans(
|
print '. <span class="opacitymediumbycolor">'.$langs->trans(
|
||||||
"GeneratedFromTemplate",
|
"GeneratedFromTemplate",
|
||||||
'<a href="'.DOL_MAIN_URL_ROOT.'/compta/facture/fiche-rec.php?facid='.$tmptemplate->id.'">'.$tmptemplate->ref.'</a>'
|
'<a href="'.DOL_MAIN_URL_ROOT.'/compta/facture/fiche-rec.php?facid='.$tmptemplate->id.'">'.$tmptemplate->ref.'</a>'
|
||||||
).'</span>';
|
).'</span>';
|
||||||
@ -3939,7 +3939,8 @@ elseif ($id > 0 || !empty($ref))
|
|||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
// Relative and absolute discounts
|
// Relative and absolute discounts
|
||||||
print '<!-- Discounts --><tr><td>'.$langs->trans('Discounts');
|
print '<!-- Discounts -->'."\n";
|
||||||
|
print '<tr><td>'.$langs->trans('Discounts');
|
||||||
|
|
||||||
print '</td><td>';
|
print '</td><td>';
|
||||||
$thirdparty = $soc;
|
$thirdparty = $soc;
|
||||||
|
|||||||
@ -2346,6 +2346,7 @@ function getHelpParamFor($helppagename, $langs)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// If WIKI URL
|
// If WIKI URL
|
||||||
|
$reg = array();
|
||||||
if (preg_match('/^es/i', $langs->defaultlang))
|
if (preg_match('/^es/i', $langs->defaultlang))
|
||||||
{
|
{
|
||||||
$helpbaseurl = 'http://wiki.dolibarr.org/index.php/%s';
|
$helpbaseurl = 'http://wiki.dolibarr.org/index.php/%s';
|
||||||
|
|||||||
@ -155,6 +155,9 @@ function html_print_stripe_footer($fromcompany, $langs)
|
|||||||
{
|
{
|
||||||
$line1 .= ($line1 ? " - " : "").$langs->transnoentities("CapitalOf", $fromcompany->capital)." ".$langs->transnoentities("Currency".$conf->currency);
|
$line1 .= ($line1 ? " - " : "").$langs->transnoentities("CapitalOf", $fromcompany->capital)." ".$langs->transnoentities("Currency".$conf->currency);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$reg = array();
|
||||||
|
|
||||||
// Prof Id 1
|
// Prof Id 1
|
||||||
if ($fromcompany->idprof1 && ($fromcompany->country_code != 'FR' || !$fromcompany->idprof2))
|
if ($fromcompany->idprof1 && ($fromcompany->country_code != 'FR' || !$fromcompany->idprof2))
|
||||||
{
|
{
|
||||||
|
|||||||
@ -605,6 +605,7 @@ if (empty($reshook))
|
|||||||
$idprod = 0;
|
$idprod = 0;
|
||||||
if (GETPOST('idprodfournprice', 'alpha') == -1 || GETPOST('idprodfournprice', 'alpha') == '') $idprod = -99; // Same behaviour than with combolist. When not select idprodfournprice is now -99 (to avoid conflict with next action that may return -1, -2, ...)
|
if (GETPOST('idprodfournprice', 'alpha') == -1 || GETPOST('idprodfournprice', 'alpha') == '') $idprod = -99; // Same behaviour than with combolist. When not select idprodfournprice is now -99 (to avoid conflict with next action that may return -1, -2, ...)
|
||||||
|
|
||||||
|
$reg = array();
|
||||||
if (preg_match('/^idprod_([0-9]+)$/', GETPOST('idprodfournprice', 'alpha'), $reg))
|
if (preg_match('/^idprod_([0-9]+)$/', GETPOST('idprodfournprice', 'alpha'), $reg))
|
||||||
{
|
{
|
||||||
$idprod = $reg[1];
|
$idprod = $reg[1];
|
||||||
@ -842,6 +843,7 @@ if (empty($reshook))
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
$reg = array();
|
||||||
$vatratecleaned = $vat_rate;
|
$vatratecleaned = $vat_rate;
|
||||||
if (preg_match('/^(.*)\s*\((.*)\)$/', $vat_rate, $reg)) // If vat is "xx (yy)"
|
if (preg_match('/^(.*)\s*\((.*)\)$/', $vat_rate, $reg)) // If vat is "xx (yy)"
|
||||||
{
|
{
|
||||||
|
|||||||
@ -241,6 +241,9 @@ select.flat, form.flat select {
|
|||||||
.optiongrey, .opacitymedium {
|
.optiongrey, .opacitymedium {
|
||||||
opacity: 0.4;
|
opacity: 0.4;
|
||||||
}
|
}
|
||||||
|
.opacitymediumbycolor {
|
||||||
|
color: rgba(0, 0, 0, 0.4);
|
||||||
|
}
|
||||||
.opacityhigh {
|
.opacityhigh {
|
||||||
opacity: 0.2;
|
opacity: 0.2;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -459,6 +459,9 @@ select.flat, form.flat select {
|
|||||||
.optiongrey, .opacitymedium {
|
.optiongrey, .opacitymedium {
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
}
|
}
|
||||||
|
.opacitymediumbycolor {
|
||||||
|
color: rgba(0, 0, 0, 0.4);
|
||||||
|
}
|
||||||
.opacityhigh {
|
.opacityhigh {
|
||||||
opacity: 0.2;
|
opacity: 0.2;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -525,6 +525,7 @@ class User extends CommonObject
|
|||||||
// $obj->param is key or param
|
// $obj->param is key or param
|
||||||
$pagewithoutquerystring = $obj->page;
|
$pagewithoutquerystring = $obj->page;
|
||||||
$pagequeries = '';
|
$pagequeries = '';
|
||||||
|
$reg = array();
|
||||||
if (preg_match('/^([^\?]+)\?(.*)$/', $pagewithoutquerystring, $reg)) // There is query param
|
if (preg_match('/^([^\?]+)\?(.*)$/', $pagewithoutquerystring, $reg)) // There is query param
|
||||||
{
|
{
|
||||||
$pagewithoutquerystring = $reg[1];
|
$pagewithoutquerystring = $reg[1];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user