?> </div> <? } ?> <div id="store_overview"> <ul class="btn"> <li><a href="<?php echo $ROOT_URL; ?> _admin/modules_products/options/<?php echo $_REQUEST['product_id']; ?> /">Back</a></li> </ul> </div> <? $options = ProductsOption::findProductsOption($_REQUEST['id'],$_REQUEST['product_id']); $optionsM = Options::findOptions($options->fldProductsOptionMainId); ?> <form id="store_page" action="<? $PHP_SELF; ?>" method="post" enctype="multipart/form-data"> <h3>ACM Simple E-Cart (Product Options)</h3> <fieldset style="width:1065px;"> <legend>Options Panel</legend> <ul> <li> <label for="title">Option Name</label> <?php echo $optionsM->fldOptionsName; ?> </li>
$options = Options::displayAllOptions($category_id); ?> <b><?php echo $cat->fldOptionsCategoryName; ?> </b><br /> <select multiple style="width:700px" id="options<?php echo $cat->fldOptionsCategoryID; ?> " name="options<?php echo $cat->fldOptionsCategoryID; ?> []"> <? foreach($options as $option): $option_id = $option->fldOptionsID; if( ProductsOption::isOptionSettingExists($product_id, $category_id, $option_id) ): $selected = "selected='selected'"; else: $selected = ""; endif; ?> <option <?php echo $selected; ?> value="<?php echo $option->fldOptionsID; ?> "> <?php echo $option->fldOptionsName; ?> </option>
} else { $isFeatured = 0; } $_POST = sanitize($_POST); $products = $_POST; settype($products, 'object'); $products->isAvailable = $isAvailable; $products->isFeatured = $isFeatured; $product_id = Products::addProducts($products, $full_path); $success = "Product Successfully Saved!"; if (isset($_POST['options'])) { foreach ($_POST['options'] as $options) { $option = explode(';', $options); $category_id = $option[0]; $option_id = $option[1]; ProductsOption::addProductsOption($category_id, $option_id, $product_id); } } $updates = 'Add new products content'; AdminAction::addAdminAction($_SESSION['admin_name'], $updates); } ?> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us" lang="en-us"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> <link rel="stylesheet" type="text/css" media="screen" href="<?php echo $ROOT_URL; ?> _admin/_assets/css/core3.css" />
<p>Availability: <?php echo $available; ?> </p> <big>$<?php echo number_format($products->fldProductsPrice, 2); ?> </big> <form action="shopping-cart.html" method="post"> <? $optionCat = OptionsCategory::displayAllOptionsCategory(); $ctr=0; foreach($optionCat as $optionsCat) { if(ProductsOption::countProductOptionsByCategory($_REQUEST['id'],$optionsCat->fldOptionsCategoryID)>=1) { //$option = Options::displayAllOptions($optionsCat->fldOptionsCategoryID); $option = ProductsOption::displayAllProductOptionsCategory($_REQUEST['id'],$optionsCat->fldOptionsCategoryID); ?> <p><strong><?php echo $optionsCat->fldOptionsCategoryName; ?> </strong> <select name="options[<?php echo $ctr; ?> ][<?php echo $optionsCat->fldOptionsCategoryName; ?> ]" class=":required" > <option value="">Select <?php echo $optionsCat->fldOptionsCategoryName; ?>
echo $products->fldProductsImage; ?> " alt="" border=0 align="left" width="75"> <table border="0"> <tr><td align="left"> <B><font face="Arial, Helvetica, sans-serif" size="2"><?php echo $carts->fldTempCartProductName; ?> </font></B><br /> <? if($carts->fldTempCartOptions != "") { $option = explode(',',$carts->fldTempCartOptions); foreach($option as $options) { $pOptions = ProductsOption::findProductsOptionCart($options); $nOptions = Options::findOptions($pOptions->fldProductsOptionMainId); $cOptions = OptionsCategory::findOptionsCategory($pOptions->fldProductsOptionCategoryId); $optionAmount = $optionAmount + $pOptions->fldProductsOptionAmount; ?> <strong><?php echo $cOptions->fldOptionsCategoryName; ?> : </strong> <?php echo $nOptions->fldOptionsName; ?> - (+) $ <?php echo number_format($pOptions->fldProductsOptionAmount, 2); ?> <br />
</tr> </thead> <tbody id="alter_rows"> <?php $count_record = ProductsOption::countProductOptionsByProducts($_REQUEST['id']); if (!isset($_REQUEST['page'])) { $page = 1; } else { $page = $_GET[page]; } $pagination = new Pagination(); //for display $pg = $pagination->page_pagination(20, $count_record, $page, 20); //$result_prod = mysql_query($query_Recordset2.$pg[1]); $product = ProductsOption::findAll($pg[1], $_REQUEST['id']); ?> <? if($count_record == 0) { ?> <tr> <td colspan="6" align="center" style="font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#F00; font-weight:bold">No Record Found</td> </tr> <? } else { foreach($product as $products) { $options = Options::findOptions($products->fldProductsOptionMainId); ?> <tr> <td> <?php echo $products->fldProductsOptionID; ?> </td> <td><?php