Skip to content

Commit

Permalink
Look and feel v14
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Jul 6, 2021
1 parent f050a38 commit 9d010f6
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions htdocs/product/index.php
Expand Up @@ -105,7 +105,8 @@
print '<tr class="liste_titre"><td colspan="3">'.$langs->trans("Search").'</td></tr>';
}
print '<tr class="oddeven">';
print '<td class="nowrap"><label for="'.$key.'">'.$langs->trans($value["text"]).'</label></td><td><input type="text" class="flat inputsearch" name="'.$key.'" id="'.$key.'" size="18"></td>';
print '<td class="nowrap"><label for="'.$key.'">'.$langs->trans($value["text"]).'</label></td>';
print '<td><input type="text" class="flat inputsearch" name="'.$key.'" id="'.$key.'" size="18"></td>';
if ($i == 0) {
print '<td rowspan="'.count($listofsearchfields).'"><input type="submit" value="'.$langs->trans("Search").'" class="button"></td>';
}
Expand Down Expand Up @@ -336,11 +337,11 @@
$product_static->status_buy = $objp->tobuy;
$product_static->status_batch = $objp->tobatch;

//Multilangs
// Multilangs
if (!empty($conf->global->MAIN_MULTILANGS)) {
$sql = "SELECT label";
$sql .= " FROM ".MAIN_DB_PREFIX."product_lang";
$sql .= " WHERE fk_product=".$objp->rowid;
$sql .= " WHERE fk_product=".((int) $objp->rowid);
$sql .= " AND lang='".$db->escape($langs->getDefaultLang())."'";

$resultd = $db->query($sql);
Expand All @@ -357,7 +358,7 @@
print '<td class="nowrap">';
print $product_static->getNomUrl(1, '', 16);
print "</td>\n";
print '<td>'.dol_trunc($objp->label, 32).'</td>';
print '<td class="tdoverflowmax150" title="'.dol_escape_htmltag($objp->label).'">'.$objp->label.'</td>';
print "<td>";
print dol_print_date($db->jdate($objp->datem), 'day');
print "</td>";
Expand All @@ -372,7 +373,7 @@
$objp->price = $price_result;
}
}
print '<td class="nowrap right">';
print '<td class="nowraponall amount right">';
if (isset($objp->price_base_type) && $objp->price_base_type == 'TTC') {
print price($objp->price_ttc).' '.$langs->trans("TTC");
} else {
Expand Down

0 comments on commit 9d010f6

Please sign in to comment.