fix html5 in variant
This commit is contained in:
parent
09fa5b0456
commit
bc395b247a
@ -52,22 +52,22 @@ print load_fiche_titre($title, $linkback, 'title_setup');
|
||||
dol_fiche_head(array(), 'general', $tab, 0, 'product');
|
||||
|
||||
print '<form method="post">';
|
||||
print '<table class="noborder" width="100%">';
|
||||
print '<table class="noborder centpercent">';
|
||||
print '<tr class="liste_titre">';
|
||||
print '<td>'.$langs->trans("Parameters").'</td>'."\n";
|
||||
print '<td align="right" width="60">'.$langs->trans("Value").'</td>'."\n";
|
||||
print '<td width="80"> </td></tr>'."\n";
|
||||
print '<th>'.$langs->trans("Parameters").'</td>'."\n";
|
||||
print '<th class="right" width="60">'.$langs->trans("Value").'</td>'."\n";
|
||||
print '<th width="80"> </td></tr>'."\n";
|
||||
print '<tr class="oddeven"><td>'.$langs->trans('HideProductCombinations').'</td><td>';
|
||||
print $form->selectyesno("PRODUIT_ATTRIBUTES_HIDECHILD", $conf->global->PRODUIT_ATTRIBUTES_HIDECHILD, 1).'</td></tr>';
|
||||
print '<tr class="oddeven"><td>'.$langs->trans('CombinationsSeparator').'</td>';
|
||||
if(isset($conf->global->PRODUIT_ATTRIBUTES_SEPARATOR)) {
|
||||
if (isset($conf->global->PRODUIT_ATTRIBUTES_SEPARATOR)) {
|
||||
$separator = $conf->global->PRODUIT_ATTRIBUTES_SEPARATOR;
|
||||
} else {
|
||||
$separator = "_";
|
||||
}
|
||||
print '<td align="right"><input size="3" type="text" class="flat" name="PRODUIT_ATTRIBUTES_SEPARATOR" value="'.$separator.'"></td></tr>';
|
||||
print '<td class="right"><input size="3" type="text" class="flat" name="PRODUIT_ATTRIBUTES_SEPARATOR" value="'.$separator.'"></td></tr>';
|
||||
print '</table>';
|
||||
print '<br><div style="text-align: center"><input type="submit" value="'.$langs->trans('Save').'" class="button"></div>';
|
||||
print '<br><div class="center"><input type="submit" value="'.$langs->trans('Save').'" class="button"></div>';
|
||||
print '</form>';
|
||||
|
||||
// End of page
|
||||
|
||||
@ -266,7 +266,7 @@ print $form->formconfirm(
|
||||
<?php if ($action == 'edit_value' && ($valueid == $attrval->id)): ?>
|
||||
<td><input type="text" name="ref" value="<?php echo $attrval->ref ?>"></td>
|
||||
<td><input type="text" name="value" value="<?php echo $attrval->value ?>"></td>
|
||||
<td style="text-align: right">
|
||||
<td class="right">
|
||||
<input type="submit" value="<?php echo $langs->trans('Save') ?>" class="button">
|
||||
|
||||
<input type="submit" name="cancel" value="<?php echo $langs->trans('Cancel') ?>" class="button">
|
||||
@ -274,7 +274,7 @@ print $form->formconfirm(
|
||||
<?php else: ?>
|
||||
<td><?php echo dol_htmlentities($attrval->ref) ?></td>
|
||||
<td><?php echo dol_htmlentities($attrval->value) ?></td>
|
||||
<td style="text-align: right">
|
||||
<td class="right">
|
||||
<a href="card.php?id=<?php echo $object->id ?>&action=edit_value&valueid=<?php echo $attrval->id ?>"><?php echo img_edit() ?></a>
|
||||
<a href="card.php?id=<?php echo $object->id ?>&action=delete_value&valueid=<?php echo $attrval->id ?>"><?php echo img_delete() ?></a>
|
||||
</td>
|
||||
|
||||
@ -111,12 +111,12 @@ class ProductCombination2ValuePair
|
||||
public function fetchByFkCombination($fk_combination)
|
||||
{
|
||||
$sql = "SELECT
|
||||
c.rowid,
|
||||
c2v.fk_prod_attr_val,
|
||||
c2v.fk_prod_attr,
|
||||
c2v.fk_prod_combination
|
||||
FROM ".MAIN_DB_PREFIX."product_attribute c LEFT JOIN ".MAIN_DB_PREFIX."product_attribute_combination2val c2v ON c.rowid = c2v.fk_prod_attr
|
||||
WHERE c2v.fk_prod_combination = ".(int) $fk_combination;
|
||||
c.rowid,
|
||||
c2v.fk_prod_attr_val,
|
||||
c2v.fk_prod_attr,
|
||||
c2v.fk_prod_combination
|
||||
FROM ".MAIN_DB_PREFIX."product_attribute c LEFT JOIN ".MAIN_DB_PREFIX."product_attribute_combination2val c2v ON c.rowid = c2v.fk_prod_attr
|
||||
WHERE c2v.fk_prod_combination = ".(int) $fk_combination;
|
||||
|
||||
$sql .= $this->db->order('c.rang', 'asc');
|
||||
|
||||
|
||||
@ -502,9 +502,9 @@ if (! empty($id) || ! empty($ref))
|
||||
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
||||
print '<input type="hidden" name="id" value="'.dol_escape_htmltag($id).'">'."\n";
|
||||
print '<input type="hidden" name="action" value="' . (($valueid > 0) ? "update" : "create") .'">'."\n";
|
||||
if($valueid > 0) {
|
||||
print '<input type="hidden" name="valueid" value="' . $valueid .'">'."\n";
|
||||
}
|
||||
if($valueid > 0) {
|
||||
print '<input type="hidden" name="valueid" value="' . $valueid .'">'."\n";
|
||||
}
|
||||
|
||||
print dol_fiche_head();
|
||||
|
||||
@ -641,7 +641,7 @@ if (! empty($id) || ! empty($ref))
|
||||
}
|
||||
} elseif ($action === 'copy') {
|
||||
|
||||
print $form->formconfirm(
|
||||
print $form->formconfirm(
|
||||
'combinations.php?id='.$id,
|
||||
$langs->trans('CloneCombinationsProduct'),
|
||||
$langs->trans('ConfirmCloneProductCombinations'),
|
||||
@ -795,8 +795,8 @@ print $form->formconfirm(
|
||||
</td>
|
||||
<td class="right"><?php echo ($currcomb->variation_price >= 0 ? '+' : '').price($currcomb->variation_price).($currcomb->variation_price_percentage ? ' %' : '') ?></td>
|
||||
<?php if ($object->isProduct()) print '<td class="right">'.($currcomb->variation_weight >= 0 ? '+' : '').price($currcomb->variation_weight).' '.measuring_units_string($prodstatic->weight_units, 'weight').'</td>'; ?>
|
||||
<td style="text-align: center;"><?php echo $prodstatic->getLibStatut(2, 0) ?></td>
|
||||
<td style="text-align: center;"><?php echo $prodstatic->getLibStatut(2, 1) ?></td>
|
||||
<td class="center;"><?php echo $prodstatic->getLibStatut(2, 0) ?></td>
|
||||
<td class="center;"><?php echo $prodstatic->getLibStatut(2, 1) ?></td>
|
||||
<td class="right">
|
||||
<a class="paddingleft paddingright" href="<?php echo dol_buildpath('/variants/combinations.php?id='.$id.'&action=edit&valueid='.$currcomb->id, 2) ?>"><?php echo img_edit() ?></a>
|
||||
<a class="paddingleft paddingright" href="<?php echo dol_buildpath('/variants/combinations.php?id='.$id.'&action=delete&valueid='.$currcomb->id, 2) ?>"><?php echo img_delete() ?></a>
|
||||
|
||||
@ -77,7 +77,7 @@ print '<input type="hidden" name="backtopage" value="'.$backtopage.'">';
|
||||
|
||||
?>
|
||||
|
||||
<table class="border" style="width: 100%">
|
||||
<table class="border centpercent">
|
||||
<tr>
|
||||
<td class="titlefield fieldrequired"><label for="ref"><?php echo $langs->trans('Ref') ?></label></td>
|
||||
<td><input type="text" id="ref" name="ref" value="<?php echo $ref ?>"></td>
|
||||
|
||||
@ -116,17 +116,17 @@ $forcereloadpage=empty($conf->global->MAIN_FORCE_RELOAD_PAGE)?0:1;
|
||||
<tr class="liste_titre nodrag nodrop">
|
||||
<th class="liste_titre"><?php print $langs->trans('Ref') ?></th>
|
||||
<th class="liste_titre"><?php print $langs->trans('Label') ?></th>
|
||||
<th class="liste_titre" align="right"><?php print $langs->trans('NbOfDifferentValues') ?></th>
|
||||
<th class="liste_titre" align="right"><?php print $langs->trans('NbProducts') ?></th>
|
||||
<th class="liste_titre right"><?php print $langs->trans('NbOfDifferentValues') ?></th>
|
||||
<th class="liste_titre right"><?php print $langs->trans('NbProducts') ?></th>
|
||||
<th class="liste_titre" colspan="2"></th>
|
||||
</tr>
|
||||
<?php foreach ($variants as $key => $attribute): ?>
|
||||
<tr id="row-<?php echo $attribute->id ?>" class="drag drop oddeven">
|
||||
<td><a href="card.php?id=<?php echo $attribute->id ?>"><?php echo dol_htmlentities($attribute->ref) ?></a></td>
|
||||
<td><a href="card.php?id=<?php echo $attribute->id ?>"><?php echo dol_htmlentities($attribute->label) ?></a></td>
|
||||
<td align="right"><?php echo $attribute->countChildValues() ?></td>
|
||||
<td align="right"><?php echo $attribute->countChildProducts() ?></td>
|
||||
<td style="text-align: right">
|
||||
<td class="right"><?php echo $attribute->countChildValues() ?></td>
|
||||
<td class="right"><?php echo $attribute->countChildProducts() ?></td>
|
||||
<td class="right">
|
||||
<a href="card.php?id=<?php echo $attribute->id ?>&action=edit"><?php echo img_edit() ?></a>
|
||||
<a href="card.php?id=<?php echo $attribute->id ?>&action=delete"><?php echo img_delete() ?></a>
|
||||
</td>
|
||||
@ -151,4 +151,4 @@ $forcereloadpage=empty($conf->global->MAIN_FORCE_RELOAD_PAGE)?0:1;
|
||||
|
||||
// End of page
|
||||
llxFooter();
|
||||
$db->close();
|
||||
$db->close();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user