Esempio n. 1
0
// {
// 	echo "pid are $was[pid]";
// }
include_once dirname(__FILE__) . "/../model/inventory.php";
include_once dirname(__FILE__) . "/../model/lib/util.php";
include_once dirname(__FILE__) . "/../model/productCategory.php";
$categ = new productCategory("new category", "", "");
//productCategory::showSubCateg();
include 'sections/descr-gen.php';
include 'sections/descr-gen.php';
?>

   <!--  <div class="descrGen col-lg-6">
      <input type="text" class="input input-sm pCateg pull-left" list="categNames" >
      <?php 
productCategory::getCategOptions();
?>
      <input type="text" class="input input-sm pSubcateg pull-left" list="subcategNames" >
      <datalist id="subcategNames">
      </datalist>
      <input type="text" class="input input-sm pColor pull-left" list="colorNames" >
      <?php 
productCategory::getColorOptions();
?>
      <input type="text" class="btn btn-primary descr" readonly>
    </div> -->

<script>
</script>
<?php 
include 'template/blankEnd.php';
Esempio n. 2
0
?>
<script type="text/javascript" src="js/test.js"></script>

<?php 
// session_start(); //need to start the session
// echo $_SESSION['user'];
// include_once (dirname(__FILE__)."/../model/lib/util.php");
// $qry = db("select * from inventory");
// foreach($qry as $was)
// {
// 	echo "pid are $was[pid]";
// }
include_once dirname(__FILE__) . "/../model/inventory.php";
include_once dirname(__FILE__) . "/../model/lib/util.php";
include_once dirname(__FILE__) . "/../model/productCategory.php";
//$categ = new productCategory("new category","","");
productCategory::showTree();
?>
    <ul>
        <li>
            <input class="input" type="text">
            <span class="addEntry fa fa-plus-square fa-2x cur"></span>
        </li>
    </ul>


<script>
    
</script>
<?php 
include 'template/blankEnd.php';
Esempio n. 3
0
<?php

require_once '../productCategory.php';
//from root/model/
$function = @$_POST['function'];
$category = @$_POST['category'];
if ($function == "getSubcateg") {
    productCategory::getSubCategOptions("{$category}");
}
Esempio n. 4
0
            </div>
            <div class="panel-body">
                <?php 
include_once dirname(__FILE__) . "/../model/productCategory.php";
productCategory::showTreeR();
?>
            </div>
        </div>
    </div>
    <div class="col-lg-6">
        <div class="panel panel-primary">
            <div class="panel-heading">
                <h3 class="panel-title text-center">কালার</h3>
            </div>
            <div class="panel-body">
                <ul>
                    <?php 
productCategory::showColors();
?>
                    <li>
                        <input type="text" class="input colorName">
                        <span class="fa fa-plus-square fa-2x cur addColor"></span>
                    </li>
                </ul>
            </div>
        </div>
    </div>
</div>

<?php 
include 'template/blankEnd.php';
Esempio n. 5
0
<?php

require_once '../productCategory.php';
//from root/model/
$function = $_POST['function'];
$parent = @$_POST['parent'];
$parentIndex = @$_POST['parentIndex'];
$name = @$_POST['name'];
if ($function == "postNewEntry") {
    $category = new ProductCategory($name, $parent, $parentIndex);
    $category->create();
    echo "{$category->index}";
    //echo "obtainded info : $name , $parent , $parentIndex";
    //echo "$category->index is index, $category->parent";
}
if ($function == "createNewColor") {
    $colorName = $name;
    productCategory::createNewColor($colorName);
    echo productCategory::getLastColorIndex();
}