コード例 #1
0
ファイル: admin.caddy.php プロジェクト: bizanto/Hooked
 case "shipping":
     switch ($task) {
         case 'save':
             JRequest::setvar('task', "shipping");
             //shipping::doViewShippingZones();
             $msg = shipping::saveShipping();
             $mainframe->redirect("index.php?option=com_caddy&action=shipping&task=show", $msg);
             break;
         case 'add':
         case 'edit':
             $row = shipping::prepareEditShipping($cid);
             shipping_HTML::editShipping($row);
             break;
         case 'remove':
             JRequest::setvar('task', "shipping");
             shipping::doViewShippingZones(shipping::deleteZone($cid));
             break;
         case 'show':
         default:
             JRequest::setvar('task', "shipping");
             shipping::doViewShippingZones();
             break;
     }
     break;
 case "configuration":
     switch ($task) {
         case "saveconfig":
             $cfgset = JRequest::getvar('cfgset');
             JRequest::setvar('task', "configuration");
             $cfg = new sc_configuration($cfgset);
             $cfg->setAll();