require_once 'mosh_tool.class.php'; require_once "fu_HTML_Table.class.php"; require_once CSHOP_CLASSES_PRODUCT . '.class.php'; require_once 'cshop/cmShipMethod_Zone.class.php'; $pagetitle = 'Shipping Zone'; $SHOWFORM = false; // are we showing a form or not? /* set of actions this script may perform */ $ACTION = null; define('OP_ADD', 'ADD ' . strtoupper($pagetitle)); define('OP_EDIT', 'EDIT ' . strtoupper($pagetitle)); define('OP_KILL', 'REMOVE ' . strtoupper($pagetitle)); $errs = array(); $msg = null; $req_id = null; $sm = new cmShipMethod_Zone(); $sm->dbcontainerSingleton(); // wtf $colmap = $sm->colmap_zones; /* form submission happened. See what we got */ if (isset($_POST['op'])) { $mosh = new mosh_tool(); $mosh->form_field_prefix = ''; /** if we have an id param, this is an edit not an add */ if (isset($_POST['id'])) { $req_id = $_POST['id']; $ACTION = OP_EDIT; } else { $ACTION = OP_ADD; } if (!($errs = $mosh->check_form($colmap))) {
require_once 'mosh_tool.class.php'; require_once "fu_HTML_Table.class.php"; require_once CSHOP_CLASSES_PRODUCT . '.class.php'; require_once 'cshop/cmShipMethod_Zone.class.php'; $pagetitle = 'Zone Shipping Method'; $SHOWFORM = false; // are we showing a form or not? /* set of actions this script may perform */ $ACTION = null; define('OP_ADD', 'ADD ' . strtoupper($pagetitle)); define('OP_EDIT', 'EDIT ' . strtoupper($pagetitle)); define('OP_KILL', 'REMOVE ' . strtoupper($pagetitle)); define('OP_KILL_R', 'REMOVE RANGE'); $errs = array(); $msg = null; $sm = new cmShipMethod_Zone(); $sm->dbcontainerSingleton(); $colmap = $sm->colmap; /* form submission happened. See what we got */ if (isset($_POST['op'])) { $mosh = new mosh_tool(); $mosh->form_field_prefix = ''; /** if we have an id param, this is an edit not an add */ if (isset($_POST['id'])) { $req_id = $_POST['id']; $ACTION = OP_EDIT; $sm->dbc->set_id($req_id); } else { $ACTION = OP_ADD; } if (!($errs = $mosh->check_form($colmap))) {