PHP Classes

File: app/views/new_product.php

Recommend this page to a friend!
  Classes of Ali YILMAZ  >  PHP API Service  >  app/views/new_product.php  >  Download  
File: app/views/new_product.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP API Service
Implements a project API using the Mind framework
Author: By
Last change:
Date: 6 months ago
Size: 2,697 bytes
 

Contents

Class file image Download
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>New Product</title>
</head>
<body>
    <form action="new_product" method="post">
        <div>
            <label for="branch_id">Select Branch:</label>
            <select name="branch_id" id="branch_id">
                <option value="">--Select--</option>
                <?php
               
foreach ($this->samantha('branches', null, ['id', 'branch_name']) as $branch) {
                    echo
'<option value="' . $branch['id'] . '">' . $branch['branch_name'] . '</option>';
                }
               
?>
</select>
        </div>
        <div>
            <label for="product_type">Product Type:</label>
            <select name="product_type" id="product_type">
                <option value="">--Select--</option>
                <option value="count">Count</option>
                <option value="nocount">No Count</option>
            </select>
        </div>
        <div>
            <label for="product_code">Product Code:</label>
            <input type="text" name="product_code">
        </div>
        <div>
            <label for="product_name">Product Name:</label>
            <input type="text" name="product_name">
        </div>
        <div>
            <label for="product_quantity">Product Quantity:</label>
            <input type="number" name="product_quantity">
        </div>
        <div>
            <label for="product_tax">Tax:</label>
            <select name="product_tax" id="product_tax">
                <option value="">--Select--</option>
                <option value="18">%18</option>
                <option value="8">%8</option>
            </select>
        </div>
        <div>
            <label for="product_status">Product Status:</label>
            <select name="product_status" id="product_status">
                <option value="">--Select--</option>
                <option value="true">Enable</option>
                <option value="false">Disable</option>
            </select>
        </div>
        <div>
            <label for="product_price">Product Price:</label>
            <input type="text" name="product_price">
        </div>
        <div>
            <label for="product_discount_price">Product Discounted Price:</label>
            <input type="text" name="product_discount_price">
        </div>
        <?=$_SESSION['csrf']['input'];?>
<button type="submit">Insert</button>
    </form>

    <div>
        <?php $this->addLayer('app/request/new_product'); ?>
</div>
</body>
</html>

For more information send a message to info at phpclasses dot org.