1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
<?php
if ($action == 'choix') {
// récup du prix d'achat HT AT, quantité et compte compta d'un produit à partir id recu par menu déroulant
$products_name_query = tep_db_query("select products_model, products_tarif_ha_ht_last, products_quantity, products_cptp, products_price from " . TABLE_PRODUCTS . " where products_id = '" . (int)$products_id . "'");
while ($products_req = tep_db_fetch_array($products_name_query))
{$products_model[] = $products_req['products_model'] ;
$products_tarif_ha_ht_last[] = $products_req['products_tarif_ha_ht_last'] ;
$products_cptp[] = $products_req['products_cptp'] ;
$products_quantity[] = $products_req['products_quantity'] ;
$products_price[] = $products_req['products_price'] ;
}
}
?>
<!-- tableau de saisie
#################################
//-->
<?php
// dernier numéro de bundle
$products_bundle_model_query = tep_db_query("select products_bundle_model as order_bundle from " . TABLE_PRODUCTS_BUNDLES . " where products_bundle_model LIKE 'KD%' ORDER BY order_bundle DESC LIMIT 0,1");
$products_bundle_req = tep_db_fetch_array($products_bundle_model_query);
$last_products_bundle_model = $products_bundle_req['order_bundle'];
?>
<table width="850" border="1">
<?php echo tep_draw_form('choix_1', FILENAME_BUNDLE, 'cPath=' . $cPath . (isset($HTTP_GET_VARS['pID']) ? '&pID=' . $HTTP_GET_VARS['pID'] : '') . '&action=choix', 'post', 'enctype="multipart/form-data"');
echo tep_draw_bundle_products_pull_down('products_id', 'style="width:300px" onchange="document.choix_1.submit()"', $parameters, $HTTP_GET_VARS['pID']);
echo $products_price[0];
echo $products_tarif_ha_ht_last[0];
echo tep_draw_input_field('products_cpta_price');
echo $products_quantity[0];
echo ' ' . tep_draw_radio_field('products_type','S',true) . ' ' . TEXT_SPECIAL . ' ' . tep_draw_radio_field('products_type','G') . ' ' . TEXT_GRATUIT;
?>
</table>
<table width="850" border="1">
<?php echo tep_draw_bundle_products_pull_down('product_2', 'style="width:300px" onchange="document.choix_1.submit()"', $parameters, $HTTP_GET_VARS['pID']);
echo $products_price[1];
echo $products_tarif_ha_ht_last[1];
echo tep_draw_input_field('products_cpta_price');
echo $products_quantity[1];
echo ' ' . tep_draw_radio_field('products_type','S',true) . ' ' . TEXT_SPECIAL . ' ' . tep_draw_radio_field('products_type','G') . ' ' . TEXT_GRATUIT;?>
</tr>
</table>
</form>
</table> |
Partager