This commit is contained in:
paoloar77
2024-06-13 14:46:49 +02:00
parent 3b078253db
commit 7600fbf2dc

View File

@@ -340,21 +340,25 @@ function libriInPrevendita()
if ($prodotto['stock_quantity'] <= 0) {
$colore = 'red';
}else {
} else {
$colore = 'green';
}
// echo '[' . $ind . ']' . $sep . $mydatestr . $sep . $article->IdArticolo . $sep . $article->Titolo . $sep . $article->DescrizioneStatoProdotto . $sep . $article->DescrizioneFormato . ' [Quantita = ' . $article->QtaDisponibile . ']';
echo '[' . $ind . ']' . $sep .
'<a href="' . $article->permalink . '?id='.$article->IdArticolo.'" target="_blank">' . $article->IdArticolo . '</a>' . $sep .
$article->Titolo . $sep .
$myview = '[' . $ind . ']' . $sep .
'<a href="' . $article->permalink . '?id=' . $article->IdArticolo . '" target="_blank">' . $article->IdArticolo . '</a>' . $sep .
'<span style="color:' . $colore . '; font-weight: bold;">' . $article->Titolo . '</span>' . $sep .
' Data Pubblicazione:' . date('d-m-Y', strtotime($article->DataPubblicazione)) . $sep .
$article->DescrizioneStatoProdotto . ' (' . $article->DescrizioneFormato . ')' . $sep .
'[Qta = <span style="">' . $article->QtaDisponibile . '</span>]' .$sep .
'[In Stock = <span style="color:'.$colore.'; font-weight: bold;">' . $prodotto['stock_quantity'] . '</span>]' .$sep .
'<a href="' . $article->permalink . '/apimacro/public/aggiornapreorder/'.$article->IdArticolo.'/1" target="_blank">Imposta in PreORDINE!</a>' . $sep ;
'[Qta = <span style="">' . $article->QtaDisponibile . '</span>]' . $sep .
'[In Stock = <span style="color:' . $colore . '; font-weight: bold;">' . $prodotto['stock_quantity'] . '</span>]' . $sep;
if ($prodotto['stock_quantity'] > 0) {
$myview .= '<a href="' . $article->permalink . '/apimacro/public/aggiornapreorder/' . $article->IdArticolo . '/1" target="_blank">Imposta in PRE-ORDINE!</a>' . $sep;
}
echo $myview;
if ($prodotto) {