コード例 #1
0
ファイル: order.php プロジェクト: JulienRst/Biothys-Manager
 public function getLineProduct()
 {
     $stmt = $this->pdo->PDOInstance->prepare("SELECT id FROM link_order_product WHERE id_order = :id");
     $stmt->bindParam(':id', $this->id);
     try {
         $stmt->execute();
     } catch (Exception $e) {
         echo "Problem at " . $e->getLine() . " from model order :" . $e->getMessage();
     }
     $stmt = $stmt->fetchAll(PDO::FETCH_ASSOC);
     foreach ($stmt as $line_product) {
         $line_product = new link_order_product($line_product["id"]);
         $this->price += $line_product->getAmount() * $line_product->getPrice_bis();
         array_push($this->line_product, $line_product);
     }
 }
コード例 #2
0
		<label for="parameter">Parameter</label>
		<select name="parameter" type="text" class="form-control">
			<!-- Rajouter les options en fonctions du type etc... -->
		</select>
	</div>
	<div class="form-group">
		<label for="ref_batch">Ref Batch (n°lot)</label>
		<input name="ref_batch" type="text" class="form-control" value="<?php 
echo $lop->getRef_batch();
?>
">
	</div>
	<div class="form-group">
		<label for="quantity">Quantity</label>
		<input name="quantity" type="text" class="form-control" value="<?php 
echo $lop->getAmount();
?>
">
	</div>
	<div class="form-group">
		<label for="amount_already_delivered">Déjà livré + en cours</label>
		<input name="amount_already_delivered" type="text" class="form-control" value="<?php 
echo $lop->getAmount_already_delivered();
?>
">
	</div>
	<div class="form-group">
		<label for="amount_to_be_delivered">En cours</label>
		<input name="amount_to_be_delivered" type="text" class="form-control" value="<?php 
echo $lop->getAmount_to_be_delivered();
?>