Example #1
0
    if ($check_product == 1) {
        $info = array('company_id' => $_POST['company_id'], 'product_category_id' => $_POST['product_category_id'], 'article_no' => $_POST['jeans_article_no'], 'article_price' => $_POST['jeans_article_price'], 'our_price' => $_POST['jeans_our_price'], 'total_quantity' => $_POST['jeans_total_quantity'], 'qty_jeans_28' => $_POST['qty_jeans_28'], 'qty_jeans_30' => $_POST['qty_jeans_30'], 'qty_jeans_32' => $_POST['qty_jeans_32'], 'qty_jeans_34' => $_POST['qty_jeans_34'], 'qty_jeans_36' => $_POST['qty_jeans_36'], 'qty_jeans_38' => $_POST['qty_jeans_38'], 'qty_jeans_40' => $_POST['qty_jeans_40']);
    }
    if ($check_product == 2 || $check_product == 6) {
        $info = array('company_id' => $_POST['company_id'], 'product_category_id' => $_POST['product_category_id'], 'article_no' => $_POST['shirt_article_no'], 'article_price' => $_POST['shirt_article_price'], 'our_price' => $_POST['shirt_our_price'], 'total_quantity' => $_POST['shirt_total_quantity'], 'qty_shirt_s' => $_POST['qty_shirt_s'], 'qty_shirt_m' => $_POST['qty_shirt_m'], 'qty_shirt_l' => $_POST['qty_shirt_l'], 'qty_shirt_xl' => $_POST['qty_shirt_xl'], 'qty_shirt_xxl' => $_POST['qty_shirt_xxl'], 'qty_shirt_xxxl' => $_POST['qty_shirt_xxxl']);
    }
    if ($check_product == 3) {
        $info = array('company_id' => $_POST['company_id'], 'product_category_id' => $_POST['product_category_id'], 'article_no' => $_POST['capri_article_no'], 'article_price' => $_POST['capri_article_price'], 'our_price' => $_POST['capri_our_price'], 'total_quantity' => $_POST['capri_total_quantity'], 'qty_capri_28' => $_POST['qty_capri_28'], 'qty_capri_30' => $_POST['qty_capri_30'], 'qty_capri_32' => $_POST['qty_capri_32'], 'qty_capri_34' => $_POST['qty_capri_34'], 'qty_capri_36' => $_POST['qty_capri_36'], 'qty_capri_38' => $_POST['qty_capri_38'], 'qty_capri_40' => $_POST['qty_capri_40']);
    }
    if ($check_product == 4) {
        $info = array('company_id' => $_POST['company_id'], 'product_category_id' => $_POST['product_category_id'], 'article_no' => $_POST['under_garments_article_no'], 'article_price' => $_POST['under_garments_article_price'], 'our_price' => $_POST['under_garments_our_price'], 'total_quantity' => $_POST['under_garments_total_quantity'], 'qty_under_garments_75' => $_POST['qty_under_garments_75'], 'qty_under_garments_80' => $_POST['qty_under_garments_80'], 'qty_under_garments_85' => $_POST['qty_under_garments_85'], 'qty_under_garments_90' => $_POST['qty_under_garments_90'], 'qty_under_garments_95' => $_POST['qty_under_garments_95'], 'qty_under_garments_100' => $_POST['qty_under_garments_100'], 'qty_under_garments_105' => $_POST['qty_under_garments_105']);
    }
    if ($check_product == 5) {
        $info = array('company_id' => $_POST['company_id'], 'product_category_id' => $_POST['product_category_id'], 'article_no' => $_POST['others_article_no'], 'article_price' => $_POST['others_article_price'], 'our_price' => $_POST['others_our_price'], 'total_quantity' => $_POST['others_total_quantity'], 'product_name' => $_POST['others_product_name']);
    }
    $response = $db->addProducts($info);
    $flag = true;
}
?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Chanchal Garments</title>
    <link href="assets/css/bootstrap.min.css" rel="stylesheet">
    <link href="assets/font-awesome/css/font-awesome.css" rel="stylesheet">
    <link href="assets/css/animate.css" rel="stylesheet">
    <link href="assets/css/jquery.gritter.css" rel="stylesheet">
    <link href="assets/css/style.css" rel="stylesheet">
    <link href="assets/css/custom.css" rel="stylesheet">