示例#1
0
 public function actionAddOrders()
 {
     $order = new ModelOrders();
     $order->part = $_POST['part'];
     $order->article = $_POST['article'];
     $order->OE = $_POST['oe'];
     $order->provider = $_POST['provider'];
     $order->quantity = $_POST['quantity'];
     $order->price = $_POST['price'];
     $order->cars_id = $_POST['cars_id_hidden'];
     $order->data_a = date('Y-m-d H:i:s');
     $order->insert();
     header("Location: http://" . $_SERVER['SERVER_NAME'] . "/orders/AllShowOrders?id=" . $_POST['cars_id_hidden']);
 }