</label> </td> <td width="30%"><?php echo vmToolTip($VM_LANG->_('VM_ADMIN_CFG_MAX_TEXT_LENGTH_TIP')); ?> </td> </tr> </table> <?php $tabs->endTab(); $tabs->endPane(); // Add necessary hidden fields $formObj->hiddenField('myname', 'Jabba Binks'); // Write your form with mixed tags and text fields // and finally close the form: $formObj->finishForm('writeConfig', 'store.index', $option); ?> <br style="clear:both;" /> <script type="text/javascript"> function validateForm(pressbutton) { var form = document.adminForm; /* Shipping Configuration */ var correct = false; var n = document.adminForm.shippingMethodCount.value; var fldName = 'sh'; var f = document.adminForm; var n2 = 0; for (i=0; i <= n; i++) { cb = eval( 'f.' + fldName + '' + i );
foreach ($packageContents['queryArr'] as $query) { echo '<tr><td><pre>' . $query . "</pre></td></tr>"; } echo '</tbody></table>'; } if ($valid) { echo '<div align="center"> <input type="checkbox" name="confirm_update" id="confirm_update"> <label for="confirm_update">' . $VM_LANG->_('VM_UPDATE_PATCH_CONFIRM_TEXT') . '</label> <br /><br /> <input class="vmicon vmicon32 vmicon-32-apply" type="submit" onclick="return checkConfirm()" value="' . $VM_LANG->_('VM_UPDATE_PATCH_APPLY') . '" name="submitbutton" /> <input type="button" onclick="document.adminForm.page.value=\'store.index\';document.adminForm.func.value=\'removePatchPackage\';submitform(\'save\');" class="vmicon vmicon32 vmicon-32-cancel" value="' . $VM_LANG->_('CMN_CANCEL') . '" /> </div>'; } else { echo '<div class="shop_error">' . $VM_LANG->_('VM_UPDATE_PATCH_ERR_UNWRITABLE') . '</div>'; } $formObj->finishForm('applypatchpackage', 'admin.update_result'); ?> <script type="text/javascript"> function checkConfirm() { if( document.adminForm.confirm_update.checked ) { return true; } alert( "<?php echo $VM_LANG->_('VM_UPDATE_PATCH_PLEASEMARK'); ?> " ); return false; } </script>
$tabs->endTab(); $tabs->startTab('Upload a Patch', 'upload_patch'); ?> <div style="padding: 20px;"> <h2 class="vmicon vmicon32 vmicon-32-upload" name="patchupload">Upload a Patch Package</h2> <input type="file" name="uploaded_package" class="inputbox" /> <br /> <br /> <input type="submit" value="Upload & Preview" /> <br /> <br /> </div> <?php $tabs->endTab(); $tabs->endPane(); $formObj->finishForm('getupdatepackage', 'admin.update_preview'); ?> <script type="text/javascript"> //<!-- function performUpdateCheck() { form = document.adminForm; $("checkingindicator").setStyle("display", "inline"); form.checkbutton.value="<?php echo $VM_LANG->_('VM_UPDATE_CHECK_CHECKING'); ?> "; var vRequest = new Json.Remote("<?php echo $mosConfig_live_site; ?> /administrator/index2.php?option=com_virtuemart&task=checkForUpdate&page=admin.ajax_tools&only_page=1&no_html=1", {
</table> </div> <table class="adminform"> <tr> <td colspan="3"> </td> </tr> </table> <?php // Add necessary hidden fields $formObj->hiddenField('fieldid', $fieldid); $formObj->hiddenField('valueCount', $i); $formObj->hiddenField('ordering', $db->f('ordering')); // Write your form with mixed tags and text fields // and finally close the form: $formObj->finishForm('userfieldSave', $modulename . '.user_field_list', $option); $duration = 500; ?> <script type="text/javascript"> function getObject(obj) { var strObj; if (document.all) { strObj = document.all.item(obj); } else if (document.getElementById) { strObj = document.getElementById(obj); } return strObj; } function insertRow() { var oTable = getObject("fieldValuesBody");
echo vmToolTip($VM_LANG->_('PHPSHOP_SHOPPER_GROUP_FORM_DISCOUNT_TIP')); ?> </td> </tr> <tr> <td width="23%" valign="top"><strong><div align="right"> <?php echo $VM_LANG->_('PHPSHOP_SHOPPER_GROUP_FORM_DESC'); ?> :</div></strong> </td> <td width="77%" valign="top" > <?php editorArea('editor1', $db->f('shopper_group_desc'), 'shopper_group_desc', 500, 250, 75, 25); ?> </td> </tr> <tr> <td width="23%" valign="top" > </td> <td width="77%" valign="top" > </td> </tr> </table> <?php // Add necessary hidden fields $formObj->hiddenField('shopper_group_id', $shopper_group_id); $funcname = !empty($shopper_group_id) ? "shopperGroupUpdate" : "shopperGroupAdd"; // Write your form with mixed tags and text fields // and finally close the form: $formObj->finishForm($funcname, $modulename . '.shopper_group_list', $option);
echo $VM_LANG->_('VM_USERGROUP_NAME'); ?> :</td> <td width="76%"> <input type="text" class="inputbox" name="group_name" value="<?php $db->sp("group_name"); ?> " /> </td> </tr> <tr> <td width="24%" align="right"><?php echo $VM_LANG->_('VM_USERGROUP_LEVEL'); ?> :</td> <td width="76%"> <input type="text" class="inputbox" name="group_level" value="<?php $db->sp("group_level"); ?> " /> <?php echo vmToolTip($VM_LANG->_('VM_USERGROUP_LEVEL_TIP')); ?> </td> </tr> </table> <?php // Write common hidden input fields // and close the form $formObj->finishForm($funcname, 'admin.usergroup_list', $option);
} } $tabs->endPane(); // Add necessary hidden fields $formObj->hiddenField('product_id', $product_id); $formObj->hiddenField('product_parent_id', $product_parent_id); $formObj->hiddenField('pshop_mode', 'admin'); if (!stristr($db->f("product_thumb_image"), "http") && $clone_product != "1") { $formObj->hiddenField('product_thumb_image_curr', $db->f("product_thumb_image")); } if (!stristr($db->f("product_full_image"), "http") && $clone_product != "1") { $formObj->hiddenField('product_full_image_curr', $db->f("product_full_image")); } $funcname = !empty($product_id) ? "productUpdate" : "productAdd"; // finally close the form: $formObj->finishForm($funcname, $next_page, $option); ?> <script type="text/javascript"> //<!-- function toggleDisable( elementOnChecked, elementDisable, disableOnChecked ) { try { if( !disableOnChecked ) { if(elementOnChecked.checked==true) { elementDisable.disabled=false; } else { elementDisable.disabled=true; } } else {
</tr> <tr> <td width="24%" align="right"><?php echo $VM_LANG->_('PHPSHOP_COUNTRY_LIST_2_CODE'); ?> :</td> <td width="76%"> <input type="text" class="inputbox" name="country_2_code" value="<?php $db->sp("country_2_code"); ?> " /> </td> </tr> <tr> <td width="24%" align="right"><?php echo $VM_LANG->_('PHPSHOP_COUNTRY_LIST_3_CODE'); ?> :</td> <td width="76%"> <input type="text" class="inputbox" name="country_3_code" value="<?php $db->sp("country_3_code"); ?> " /> </td> </tr> </table> <?php // Write common hidden input fields // and close the form $formObj->finishForm($funcname, 'admin.country_list', $option);
:</td> <td> <?php editorArea('order_status_description', $db->sf("order_status_description"), 'order_status_description', 500, 250, 75, 25); ?> </td> </tr> <tr> <td class="labelcell"><?php echo $VM_LANG->_('PHPSHOP_ORDER_STATUS_FORM_LIST_ORDER'); ?> :</td> <td> <input type="text" class="inputbox" name="list_order" value="<?php $db->sp("list_order"); ?> " size="3" maxlength="3" /> </td> </tr> <tr align="center"> <td colspan="2"> </td> </tr> </table> <?php // Add necessary hidden fields $formObj->hiddenField('order_status_id', $order_status_id); $funcname = !empty($order_status_id) ? "orderstatusupdate" : "orderstatusadd"; // Write your form with mixed tags and text fields // and finally close the form: $formObj->finishForm($funcname, $modulename . '.order_status_list', $option);
</td> </tr> </table><br /> <fieldset> <legend><?php echo $VM_LANG->_('PHPSHOP_STORE_FORM_DESCRIPTION'); ?> </legend> <?php editorArea('editor1', $db->f("vendor_store_desc"), 'vendor_store_desc', '400', '200', '70', '15'); ?> </fieldset> <fieldset> <legend><?php echo $VM_LANG->_('PHPSHOP_STORE_FORM_TOS'); ?> </legend> <?php editorArea('editor2', $db->f("vendor_terms_of_service"), 'vendor_terms_of_service', '400', '200', '70', '15'); ?> </fieldset> <?php // Add necessary hidden fields $formObj->hiddenField('vendor_id', $ps_vendor_id); $formObj->hiddenField('vendor_thumb_image_action', 'none'); $formObj->hiddenField('vendor_full_image_action', 'none'); $formObj->hiddenField('pshop_mode', 'admin'); // Write your form with mixed tags and text fields // and finally close the form: $formObj->finishForm("vendorUpdate", $modulename . '.display', $option);
</option> </select> <?php echo mm_ToolTip($VM_LANG->_('PHPSHOP_COUPON_TYPE_TOOLTIP')); ?> </td> </tr> <tr> <td width="24%"><div align="right"><?php echo $VM_LANG->_('PHPSHOP_COUPON_VALUE'); ?> :</div></td> <td width="76%"> <input type="text" class="inputbox" name="coupon_value" value="<?php $db->sp("coupon_value"); ?> " /> </td> </tr> <tr> <td valign="top" colspan="2" align="right"> </td> </tr> </table> <?php $funcname = !empty($coupon_id) ? 'couponUpdate' : 'couponAdd'; // Add necessary hidden fields $formObj->hiddenField('coupon_id', $coupon_id); // Write your form with mixed tags and text fields // and finally close the form: $formObj->finishForm($funcname, $modulename . '.coupon_list', $option);
?> </div> </td> </tr> </table> </td> </tr> </table> <?php $tabs->endTab(); $tabs->endPane(); // Add necessary hidden fields $formObj->hiddenField('category_id', $category_id); $funcname = !empty($category_id) ? "productCategoryUpdate" : "productCategoryAdd"; //finally close the form: $formObj->finishForm($funcname, $modulename . '.product_category_list', $option); ?> <script type="text/javascript">//<!-- function toggleDisable( elementOnChecked, elementDisable, disableOnChecked ) { if( !disableOnChecked ) { if(elementOnChecked.checked==true) { elementDisable.disabled=false; } else { elementDisable.disabled=true; } } else { if(elementOnChecked.checked==true) { elementDisable.disabled=true; }
</tr> <tr> <td width="24%"><div align="right"><?php echo $VM_LANG->_('PHPSHOP_PRODUCT_DISCOUNT_ENDDATE'); ?> :</div></td> <td width="76%"> <input type="text" class="inputbox" name="end_date" id="end_date" value="<?php if ($db->sf("end_date")) { echo strftime("%Y-%m-%d", $db->sf("end_date")); } ?> " /> <input name="reset" type="reset" class="button" onclick="return showCalendar('end_date', 'y-mm-dd');" value="..." /> <?php echo mm_ToolTip($VM_LANG->_('PHPSHOP_PRODUCT_DISCOUNT_ENDDATE_TIP')); ?> </td> </tr> <tr> <td valign="top" colspan="2" align="right"> </td> </tr> </table> <?php // Add necessary hidden fields $formObj->hiddenField('discount_id', $discount_id); $funcname = empty($discount_id) ? "discountAdd" : "discountUpdate"; // finally close the form: $formObj->finishForm($funcname, $modulename . '.product_discount_list', $option);
<textarea onblur="refresh_counter();" onfocus="refresh_counter();" onkeypress="refresh_counter();" rows="20" cols="60" name="comment"><?php $db->sp("comment"); ?> </textarea> <div align="right"><?php echo $VM_LANG->_('PHPSHOP_REVIEW_COUNT'); ?> <input type="text" value="0" size="4" class="inputbox" name="counter" maxlength="4" readonly="readonly" /> </div> </td> </tr> </table> <?php // Write common hidden input fields // and close the form $formObj->finishForm($funcname, $nextpage); } ?> <script type="text/javascript"> function refresh_counter() { var form = document.adminForm; form.counter.value= form.comment.value.length; } refresh_counter(); // Preselect the userrating try { document.getElementById('user_rating<?php $db->sp("user_rating"); ?> ').checked = true; }
<td width="78%" ><?php editorArea('editor1', $db->f("vendor_store_desc"), 'vendor_store_desc', '400', '200', '70', '15'); ?> </td> </tr> <tr> <td width="22%" align="right" valign="top"><?php echo $VM_LANG->_('PHPSHOP_STORE_FORM_TOS'); ?> :</td> <td width="78%" ><?php editorArea('editor2', $db->f("vendor_terms_of_service"), 'vendor_terms_of_service', '400', '200', '70', '15'); ?> </td> </tr> <tr align="center"> <td colspan="2" > </td> </tr> </table> <?php $tabs->endTab(); $tabs->endPane(); // Add necessary hidden fields $formObj->hiddenField('vendor_id', $vendor_id); $formObj->hiddenField('vendor_thumb_image_action', 'none'); $formObj->hiddenField('vendor_full_image_action', 'none'); $funcname = !empty($vendor_id) ? "vendorupdate" : "vendoradd"; // Write your form with mixed tags and text fields // and finally close the form: $formObj->finishForm($funcname, $modulename . '.vendor_list', $option);
<td valign="top" align="right" ><?php echo $VM_LANG->_('PHPSHOP_MODULE_FORM_DESCRIPTION'); ?> :</td> <td valign="top" > </td> </tr> <tr align="center"> <td valign="top" colspan="2" > <textarea name="module_description" cols="50" rows="10"><?php $db->sp("module_description"); ?> </textarea> </td> </tr> <tr> <td width="24%" > </td> <td width="76%" > </td> </tr> <tr> <td valign="top" colspan="2" align="center"> </td> </tr> </table> <?php // Add necessary hidden fields $formObj->hiddenField('module_id', $module_id); $funcname = !empty($module_id) ? "moduleUpdate" : "moduleAdd"; // Write your form with mixed tags and text fields // and finally close the form: $formObj->finishForm($funcname, 'admin.module_list', $option);
echo mm_ToolTip($VM_LANG->_('VM_PAYMENT_EXTRAINFO_TIP')); ?> <br /> <textarea class="inputbox" name="payment_extrainfo" cols="120" rows="20"><?php echo htmlspecialchars($db->sf("payment_extrainfo")); ?> </textarea> <?php $tabs->endTab(); $tabs->endPane(); // Add necessary hidden fields $formObj->hiddenField('payment_method_id', $payment_method_id); $funcname = !empty($payment_method_id) ? "paymentMethodUpdate" : "paymentMethodAdd"; // Write your form with mixed tags and text fields // and finally close the form: $formObj->finishForm($funcname, $modulename . '.payment_method_list', $option); ?> <script type="text/javascript"> function check() { if (document.adminForm.enable_processor[0].checked == true || document.adminForm.enable_processor[1].checked == true) { document.getElementById('accepted_creditcards1').innerHTML = '<strong><?php echo $VM_LANG->_('VM_PAYMENT_ACCEPTED_CREDITCARDS'); ?> :'; if (document.getElementById('accepted_creditcards_store').innerHTML != '') document.getElementById('accepted_creditcards2').innerHTML ='<input type="text" name="accepted_creditcards" value="' + document.getElementById('accepted_creditcards_store').innerHTML + '" class="inputbox" />'; else document.getElementById('accepted_creditcards2').innerHTML = '<?php ps_creditcard::creditcard_checkboxes($db->f("accepted_creditcards")); ?>
<td width="21%" ><div align="right"><strong><?php echo $VM_LANG->_('PHPSHOP_RATE_FORM_CURRENCY'); ?> :</strong></div></td> <td width="79%" > <?php $ps_html->list_currency_id("shipping_rate_currency_id", $db->sf("shipping_rate_currency_id")); ?> </td> </tr> <tr> <td width="21%" ><div align="right"><strong><?php echo $VM_LANG->_('PHPSHOP_RATE_FORM_VAT_ID'); ?> :</strong></div></td> <td width="79%" > <?php require_once CLASSPATH . 'ps_tax.php'; $ps_tax = new ps_tax(); $ps_tax->list_tax_value("shipping_rate_vat_id", $db->sf("shipping_rate_vat_id")); ?> </td> </tr> </table> <?php // Add necessary hidden fields $formObj->hiddenField('shipping_rate_id', $shipping_rate_id); $funcname = !empty($shipping_rate_id) ? "rateupdate" : "rateadd"; // finally close the form: $formObj->finishForm($funcname, $modulename . '.rate_list', $option);
?> <br /> <table class="adminform"> <tr> <td width="21%" ><div align="right"><?php echo $VM_LANG->_('PHPSHOP_CARRIER_FORM_NAME'); ?> :</div></td> <td width="79%" ><input class="inputbox" type="text" name="shipping_carrier_name" size="32" maxlength="255" value="<?php $db->sp("shipping_carrier_name"); ?> "></td> </tr> <tr> <td width="21%" ><div align="right"><?php echo $VM_LANG->_('PHPSHOP_CARRIER_FORM_LIST_ORDER'); ?> :</div></td> <td width="79%" ><input class="inputbox" type="text" name="shipping_carrier_list_order" size="32" maxlength="255" value="<?php $db->sp("shipping_carrier_list_order"); ?> "></td> </tr> </table> <?php // Add necessary hidden fields $formObj->hiddenField('shipping_carrier_id', $shipping_carrier_id); $funcname = !empty($shipping_carrier_id) ? "carrierupdate" : "carrieradd"; // finally close the form: $formObj->finishForm($funcname, $modulename . '.carrier_list', $option);
if ($first) { $q .= " WHERE "; $first = false; } $q .= "product_type_id != '" . $db->f("product_type_id") . "' "; if (!$db->is_last_record()) { $q .= "AND "; } } $q .= "ORDER BY product_type_list_order ASC"; $db->query($q); while ($db->next_record()) { echo "<option value=\"" . $db->f("product_type_id") . "\">" . $db->f("product_type_name") . "</option>"; } echo "</select>"; ?> </td> </tr> </table> <?php // Add necessary hidden fields foreach ($product_id as $prod_id) { $formObj->hiddenField('product_id[]', $prod_id); } $formObj->hiddenField('product_parent_id', $product_parent_id); $formObj->hiddenField('return_args', $return_args); // // finally close the form: $formObj->finishForm('productProductTypeAdd', $modulename . '.product_product_type_list', $option);
echo $VM_LANG->_('PHPSHOP_CREDITCARD_NAME'); ?> :</td> <td width="76%"> <input type="text" class="inputbox" name="creditcard_name" value="<?php $db->sp("creditcard_name"); ?> " /> </td> </tr> <tr> <td width="24%" align="right"><?php echo $VM_LANG->_('PHPSHOP_CREDITCARD_CODE'); ?> :</td> <td width="76%"> <input type="text" class="inputbox" name="creditcard_code" value="<?php $db->sp("creditcard_code"); ?> "> </td> </tr> </table> <?php // Add necessary hidden fields $formObj->hiddenField('creditcard_id', $creditcard_id); $funcname = !empty($creditcard_id) ? "creditcardUpdate" : "creditcardAdd"; // Write your form with mixed tags and text fields // and finally close the form: $formObj->finishForm($funcname, $modulename . '.creditcard_list', $option);
" size="32" maxlength="255" /> </td> </tr> <tr> <td width="23%" height="10" valign="top"> <div align="right"><?php echo $VM_LANG->_('PHPSHOP_ATTRIBUTE_FORM_ORDER'); ?> :</div> </td> <td width="77%" height="10"> <input type="text" class="inputbox" name="attribute_list" value="<?php $db->sp("attribute_list"); ?> " size="5" maxlength="11" /> </td> </tr> <tr> <td colspan="2" height="22"> </td> </tr> </table> <?php // Add necessary hidden fields $formObj->hiddenField('product_id', $product_id); $formObj->hiddenField('old_attribute_name', $attribute_name); $formObj->hiddenField('return_args', $return_args); $funcname = !empty($attribute_name) ? "productAttributeUpdate" : "productAttributeAdd"; // Write your form with mixed tags and text fields // and finally close the form: $formObj->finishForm($funcname, $modulename . '.product_attribute_list', $option);
<input type="text" class="inputbox" name="mf_email" value="<?php $db->sp("mf_email"); ?> " size="18" /> </td> </tr> <tr> <td align="right" > </td> <td> </td> </tr> <tr> <td width="22%" align="right" valign="top"><?php echo $VM_LANG->_('PHPSHOP_MANUFACTURER_FORM_DESCRIPTION'); ?> :</td> <td width="78%" ><?php editorArea('editor1', $db->f("mf_desc"), 'mf_desc', '300', '150', '70', '25'); ?> </td> <tr align="center"> <td colspan="2" > </td> </tr> </table> <?php // Add necessary hidden fields $formObj->hiddenField('manufacturer_id', $manufacturer_id); $funcname = !empty($manufacturer_id) ? "manufacturerupdate" : "manufactureradd"; // Write your form with mixed tags and text fields // and finally close the form: $formObj->finishForm($funcname, $modulename . '.manufacturer_list', $option);
<textarea name="function_description" cols="60" rows="10"><?php $db->sp("function_description"); ?> </textarea> </td> </tr> </table> <?php // Add necessary hidden fields $formObj->hiddenField('function_id', $function_id); $formObj->hiddenField('module_id', $module_id); $funcname = !empty($function_id) ? "functionUpdate" : "functionAdd"; // Write your form with mixed tags and text fields // and finally close the form: $formObj->finishForm($funcname, 'admin.function_list', $option); $script = 'function updateFunc(){ var el = $("function_class" ); new Ajax( "' . $_SERVER['PHP_SELF'] . '?" + $(document.adminForm).toQueryString() + "&func=&page=admin.ajax_tools&task=get_class_methods&class=" + el.options[el.selectedIndex].value + "&function=" + document.adminForm.function_method.value, { method: "get", update: $("function_method_container") }).request(); return false; } $("function_class").onchange = function() { updateFunc() }; updateFunc(); '; echo vmCommonHTML::scriptTag('', $script);
} $ps_html->writableIndicator(CLASSPATH . "shipping/" . basename($shipping_module, ".php") . '.cfg.php'); ?> <div id="overDiv" style="position:absolute; visibility:hidden; z-index:10000;"></div> <script type="text/javascript" src="<?php echo $mosConfig_live_site; ?> /includes/js/overlib_mini.js"></script> <table class="adminform"> <tr> <td> <?php // Create the Form Control Object $formObj = new formFactory($VM_LANG->_('VM_SHIPPING_MODULE_CONFIG_LBL') . ': ' . $shipping_module); // Start the the Form $formObj->startForm(); $_SHIPPING->show_configuration(); // Write common hidden input fields $formObj->hiddenField('shipping_class', basename($shipping_module, ".php")); $formObj->hiddenField('shipping_module', $shipping_module); // and close the form $formObj->finishForm('shippingmethodSave', 'store.shipping_module_form', $option); ?> </td> </tr> </table> <?php } else { //TODO: Form for new shipping modules }