uawdijnntqw1x1x1
IP : 216.73.216.26
Hostname : server.wtmmart.in
Kernel : Linux server.wtmmart.in 4.18.0-553.45.1.el8_10.x86_64 #1 SMP Wed Mar 19 09:44:46 EDT 2025 x86_64
Disable Function : exec,passthru,shell_exec,system
OS : Linux
PATH:
/
home2
/
wtmwscom
/
www
/
themes5931.wtmwebshop.com
/
..
/
admin
/
product_page.php
/
/
<?php include 'header.php'; include('../connection.php'); //include '../function_lib.php'; //include('imageresize.php'); ?> <!-- <h1>Add Product to product gallary</h1>--> <?php echo getMessage(); ?> <div class="container-fluid"> <div class="row"> <div class="col-sm-12"> <div class="page-title-box"> <h4 class="page-title">Product Gallary</h4> <ol class="breadcrumb"> <li class="breadcrumb-item"><a href="index.php">Home</a></li> <li class="breadcrumb-item"><a href="#">Admin Setting</a></li> <li class="breadcrumb-item active">Product Gallary</li> </ol> <!-- <div class="state-information d-none d-sm-block"> <div class="state-graph"> <div id="header-chart-1"></div> <div class="info">Balance $ 2,317</div> </div> <div class="state-graph"> <div id="header-chart-2"></div> <div class="info">Item Sold 1230</div> </div> </div>--> </div> </div> </div> <!-- end row --> <div class="row"> <div class="col-12"> <div class="card m-b-20"> <div class="card-body"> <form name="form" id="form" action="product_page_model.php" method="post" enctype="multipart/form-data"> <!-- <h4 class="mt-0 header-title">Textual inputs</h4> <p class="text-muted m-b-30">Here are examples of <code class="highlighter-rouge">.form-control</code> applied to each textual HTML5 <code class="highlighter-rouge"><input></code> <code class="highlighter-rouge">type</code>.</p>--> <div class="form-group row"> <!-- <label for="example-text-input" class="col-sm-2 col-form-label">Text</label>--> <label class="col-sm-2 col-form-label" for="product_name">Product Category</label> <!-- <label class="col-sm-2 col-form-label" for="dob"> Name<span>*</span></label>--> <div class="col-sm-10"> <select name="product_cat" id="product_cat" value="" required="required"> <option value="">Select Product Category</option> <?php $result = mysqli_query($connection, "SELECT * FROM `product_cat` WHERE 1"); while ($row = mysqli_fetch_object($result)) { ?> <option value="<?php echo $row->cat_id; ?>"><?php echo $row->name; ?></option> <?php } ?> </select> </div> </div> <div class="form-group row"> <label class="col-sm-2 col-form-label" for="product_name">Product Name <span>*</span></label> <div class="col-sm-10"> <input class="form-control" type="text" name="product_name" id="product_name" value="" required="required" maxlength="250"> </div> </div> <div class="form-group row"> <label class="col-sm-2 col-form-label" for="description">Description <span>*</span></label> <div class="col-sm-10"> <input class="form-control" type="text" name="description" id="description"> </div> <!-- <select class="custom-select"> <option selected>Open this select menu</option> <option value="1">One</option> <option value="2">Two</option> <option value="3">Three</option> </select>--> </div> <div class="form-group row"> <label class="col-sm-2 col-form-label" for="product_code">Product Code <span>*</span></label> <div class="col-sm-10"> <input class="form-control" <input type="text" name="product_code" id="product_code" required="required"> </div> </div> <div class="form-group row"> <label class="col-sm-2 col-form-label" or="product_cost">Product Cost<span>*</span></label> <div class="col-sm-10"> <input class="form-control" type="number" name="product_cost" id="product_cost" value="" maxlength="50" required="required"> </div> </div> <div class="form-group row"> <label class="col-sm-2 col-form-label" for="mrp">MRP <span>*</span></label> <div class="col-sm-10"> <input class="form-control" type="number" name="mrp" id="mrp" value="" maxlength="50" required="required"> </div> </div> <div class="form-group row"> <label class="col-sm-2 col-form-label" for="quantity">Quantity <span>*</span></label> <div class="col-sm-10"> <input class="form-control" type="number" name="quantity" id="quantity" value="" maxlength="50" required="required"> </div> </div> <div class="form-group row"> <label class="col-sm-2 col-form-label" for="product_pv">Package PV <span>*</span></label> <div class="col-sm-10"> <input class="form-control" type="number" name="product_pv" id="product_pv" value="" maxlength="50" required="required"> </div> </div> <div class="form-group row"> <label class="col-sm-2 col-form-label" for="file">Select File<span>*</span></label> <div class="col-sm-10"> <input class="form-control" type="file" name="file" id="file" value="" maxlength="50" required="required"> </div> </div> <div class="form-group row"> <label class="col-sm-2 col-form-label" for="file">Is Active<span>*</span></label> <div class="checkbox col-sm-10 "> <input class="form-group checkbox" type="checkbox" name="is_active" id="is_active" value="1" checked="checked" maxlength="50" required="required" is_activeed> </div> </div> <div class="form-group"> <div> <!-- <input style="position: relative; left: 160px;" name="submit" type="submit" id="submit" value="Save"> --> <button name="submit" type="submit" id="submit" value="Submit"class="btn btn-primary waves-effect waves-light"> Submit </button> <!-- <button type="reset" class="btn btn-secondary waves-effect m-l-5"> Cancel </button>--> </div> </div> <!-- <div class="form-group row"> <label for="example-color-input" class="col-sm-2 col-form-label">Color</label> <div class="col-sm-10"> <input class="form-control" type="color" value="#67a8e4" id="example-color-input"> </div> </div>--> <!-- <div class="form-group row"> <label class="col-sm-2 col-form-label">Select</label> <div class="col-sm-10"> <select class="form-control"> <option>Select</option> <option>Large select</option> <option>Small select</option> </select> </div> </div> <div class="form-group row"> <label class="col-sm-2 col-form-label">Custom Select</label> <div class="col-sm-10"> <select class="custom-select"> <option selected>Open this select menu</option> <option value="1">One</option> <option value="2">Two</option> <option value="3">Three</option> </select> </div> </div>--> <!-- <div class="form-group row"> <label for="example-text-input-lg" class="col-sm-2 col-form-label">Large</label> <div class="col-sm-10"> <input class="form-control form-control-lg" type="text" placeholder=".form-control-lg" id="example-text-input-lg"> </div> </div> <div class="form-group row"> <label for="example-text-input-sm" class="col-sm-2 col-form-label">Small</label> <div class="col-sm-10"> <input class="form-control form-control-sm" type="text" placeholder=".form-control-sm" id="example-text-input-sm"> </div> </div>--> </form> </div> </div> </div> <!-- end col --> </div> <!-- end row --> </div> <!-- container-fluid --> <div class="container-fluid"> <div class="row"> <div class="col-sm-12"> <div class="page-title-box"> <h4 class="page-title">Product Detail's</h4> <ol class="breadcrumb"> <li class="breadcrumb-item"><a href="#">Home</a></li> <li class="breadcrumb-item"><a href="#">Admin Setting</a></li> <li class="breadcrumb-item active"><a href="#">Product Detail</li> </ol> <!-- <div class="state-information d-none d-sm-block"> <div class="state-graph"> <div id="header-chart-1"></div> <div class="info">Balance $ 2,317</div> </div> <div class="state-graph"> <div id="header-chart-2"></div> <div class="info">Item Sold 1230</div> </div> </div>--> </div> </div> </div> <div class="row"> <div class="col-lg-12"> <div class="card m-b-20"> <div class="card-body"> <!-- <h4 class="mt-0 header-title">Basic example</h4> <p class="text-muted m-b-30">For basic styling—light padding and only horizontal dividers—add the base class <code>.table</code> to any <code><table></code>. </p>--> <table class="table mb-0 datatable"> <thead> <tr> <th>S. No.</th> <th>Name</th> <th>Description</th> <th>Code</th> <th>Cost</th> <th>MRP</th> <th>PV</th> <th>Active</th> <th>Created Date</th> <th>Image</th> <th>Edit/Delete</th> </tr> </thead> <tbody> <?php $query = "SELECT * FROM product_kit ORDER BY pid DESC "; $result = mysqli_query($connection, $query); $i = 1; if ($result) { while ($row = mysqli_fetch_object($result)) { ?> <tr> <!--<td><?php echo $i; ?></td>--> <td><?php echo $row->pid; ?></td> <td><?php echo $row->pname; ?></td> <td><?php echo $row->description; ?></td> <td><?php echo $row->pcode; ?></td> <td><?php echo $row->pcost; ?></td> <td><?php echo $row->mrp; ?></td> <td><?php echo $row->pv; ?></td> <td><?php echo $row->is_active ? "YES" : "NO"; ?></td> <td><?php echo empty($row->datetime) ? '-' : date("d/m/Y", strtotime($row->datetime)); ?></td> <td><a href="./images/product_gallary/<?php echo $row->filename; ?>" target="_blank">view</a></td> <td> <a href="./product_page_edit.php?product_id=<?php echo $row->pid; ?>">edit</a> <a href="./product_page_delete.php?product_id=<?php echo $row->pid . "&filename=$row->filename"; ?>">delete</a> </td> </tr> <?php $i++; } } ?> </tbody> </table> <?php //echo $pager->renderFullNav(); ?> </div> </div> </div> <!-- end col --> </div> <!--table content ends here--> </div> <?php include 'footer.php'; ?>
/home2/wtmwscom/www/themes5931.wtmwebshop.com/../admin/product_page.php