function createOrUpdateCongfigOptions() { $productConfGroupId = createOrUpdateProductCongfigGroup(); $productConfOptionId = createOrUpdateProductCongfigOptions($productConfGroupId); //lets remove all templates before updating deleteProductCongfigOptionsSub($productConfOptionId); updateTemplates($productConfOptionId); return $productConfGroupId; }
<div id = "selectproduct">Select which products to update (valid only with products assigned to module LVMCloud)</div> <br> <div id = "container"> <form action="" method="POST"> <div id = "pbox"> <input type="checkbox" id="selecctall"/> Select All <hr> <?php while ($as = mysql_fetch_object($qr)) { echo '<div class="cb-row"> <input type="checkbox" class="checkbox1" name="check[]" value="' . $as->id . '"/> ' . $as->name . ' </div>'; } ?> <hr> <br> <input type="submit" name="submit" value="OK" /> </div> </form> <?php } if ($_POST['submit'] == "OK") { updateTemplates(); updateLocalizations(); createVmIdField(); } ?> <div id="pBox"><a href="javascript:window.close();">Close Window</a></div> </div>