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
/
public_html
/
resources
/
..
/
.
/
admin
/
product_page_edit.php
/
/
<?php include 'header.php'; ?> <?php $query="SELECT * FROM `product_kit` WHERE `pid`='".$_GET['product_id']."'"; $result=mysqli_query($connection,$query); $row=mysqli_fetch_object($result); ?> <div class="container-fluid"> <div class="row"> <div class="col-sm-12"> <div class="page-title-box"> <h4 class="page-title">Product Edit</h4> <ol class="breadcrumb"> <li class="breadcrumb-item"><a href="index.php">Home</a></li> <li class="breadcrumb-item"><a href="#">Product Gallary</a></li> <li class="breadcrumb-item active">Product Edit</li> </ol> </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_edit_model.php" method="post" enctype="multipart/form-data"> <div class="form-group row"> <!-- <label for="example-text-input" class="col-sm-2 col-form-label">Text</label>--> <input type="hidden" name="pid" value="<?php echo $row->pid; ?>" /> <input type="hidden" name="filename" value="<?php echo $row->filename; ?>" /> <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($row1=mysqli_fetch_object($result)) { $cat_id=$row1->cat_id; $product_cat_id=$row->product_cat_id; //echo "<option '.$selected.' value='$row1->cat_id'> $row1->name </option>"; // if($row1['cat_id'] == $row['product_cat_id']){ echo ' selected="selected"'; } ?> <option value="<?php echo $row1->cat_id ?>" <?php if($cat_id == $product_cat_id ){ echo ' selected="selected"'; } ?>><?php echo $row1->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="<?php echo $row->pname; ?>" 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" value="<?php echo $row->description; ?>" maxlength="250"> </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" value="<?php echo $row->pcode; ?>" maxlength="250"> </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="<?php echo $row->pcost; ?>" maxlength="250"> </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="<?php echo $row->mrp; ?>" 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="<?php echo $row->quantity; ?>" 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" ype="number" name="product_pv" id="product_pv" value="<?php echo $row->pv; ?>" maxlength="250"> </div> </div> <div class="form-group row"> <label class="col-sm-2 col-form-label" for="receipt">Select File<span>*</span></label> <div class="col-sm-10"> <img src="images/product_gallary/<?php echo $row->filename; ?>" style="max-width: 200px" /> <input class="form-control" type="file" name="file" id="file"> </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" <?php echo $row->is_active == '1' ? 'checked="checked"' : ""; ?>/> </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> </form> </div> </div> </div> <!-- end col --> </div> <!-- end row --> </div> <!-- container-fluid -->
/home2/wtmwscom/public_html/resources/.././admin/product_page_edit.php