コード例 #1
0
</pre>
<?php 
        break;
    case "saveprices":
        if ($v15) {
            JToolBarHelper::title(JText::_("DOCman PayPal IPN Prices Saved!"), 'docmanPayPalLogo');
        }
        $dm->updatePrices(JRequest::getVar('price'), JRequest::getVar('downloadslimit'), JRequest::getVar('saleslimit'), JRequest::getVar('offlineGood'), JRequest::getVar('vendor'), JRequest::getVar('buttons'));
        $mainframe->redirect('index.php?&option=com_docmanpaypal&task=modifyprice', JText::_("COM_DOCMANPAYPAL_DMP_PRICESUPDATED"));
        //echo "<h1>" . JText::_("COM_DOCMANPAYPAL_DMP_OPERATION_COMPLETED") . "</h1>";
        break;
    case "saveconfig":
        if ($v15) {
            JToolBarHelper::title(JText::_("DOCman PayPal IPN Configuration Saved!"), 'docmanPayPalLogo');
        }
        $dm->saveConfig();
        $mainframe->redirect('index.php?&option=com_docmanpaypal&task=config', JText::_("COM_DOCMANPAYPAL_DMP_CONFIGURATIONSAVED"));
        //echo "<h1>" . JText::_("COM_DOCMANPAYPAL_DMP_OPERATION_COMPLETED") . "</h1>";
        break;
    case "config":
        $dm->hackDOCman();
        if ($v15) {
            JToolBarHelper::title(JText::_("DOCman PayPal IPN " . $dm->getVersion() . ' ' . JText::_("COM_DOCMANPAYPAL_DMP_CONFIGURATION")), 'docmanPayPalLogo');
            JToolBarHelper::apply('saveconfig');
            //JToolBarHelper::help('loadhelp');
        }
        $dmpcfg = $dm->getConfig();
        //var_dump($dmpcfg);
        ?>
<link rel="stylesheet" href="components/com_docmanpaypal/css/redmond/jquery-ui-1.8.4.custom.css" type="text/css" media="all" />
<script src="components/com_docmanpaypal/js/jquery-1.4.2.min.js" type="text/javascript"></script>