ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
payment.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 
13 define('ILIAS_MODULE','payment');
14 
15 require_once "include/inc.header.php";
16 
17 switch ($_GET["view"])
18 {
19  case "payment_admin" : require_once "./payment/classes/class.ilPaymentAdminGUI.php";
20 
21  $ilCtrl->setTargetScript("payment.php");
22  $ilCtrl->setParameterByClass("ilpaymentadmingui", "view", "payment_admin");
23  $ilCtrl->getCallStructure("ilpaymentadmingui");
24 
25  $pa =& new ilPaymentAdminGUI($ilias->account);
26  $ilCtrl->forwardCommand($pa);
27  break;
28  case "start_purchase" : require_once "./payment/classes/class.ilPaymentPurchaseGUI.php";
29 
30  $ilCtrl->setTargetScript("payment.php");
31  $ilCtrl->setParameterByClass("ilpaymentpurchasegui", "view", "start_purchase");
32  $ilCtrl->getCallStructure("ilpaymentpurchasegui");
33 
34  $pa =& new ilPaymentPurchaseGUI((int) $_GET['ref_id']);
35  $ilCtrl->forwardCommand($pa);
36  break;
37  case "start_bmf" : require_once "./payment/classes/class.ilPurchaseBMFGUI.php";
38 
39  $ilCtrl->setTargetScript("payment.php");
40  $ilCtrl->setParameterByClass("ilpurchasebmfgui", "view", "start_bmf");
41  $ilCtrl->getCallStructure("ilpurchasebmfgui");
42 
43  $pa =& new ilPurchaseBMFGUI($ilias->account);
44  $ilCtrl->forwardCommand($pa);
45  break;
46  case "conditions" : require_once "./payment/classes/class.ilTermsCondition.php";
47 
48  $pa =& new ilTermsCondition($ilias->account);
49  $pa->show();
50  break;
51  default : require_once "./payment/classes/class.ilPaymentGUI.php";
52 
53  $ilCtrl->setTargetScript("payment.php");
54  $ilCtrl->setParameterByClass("ilpaymentgui", "view", "payment");
55  $ilCtrl->getCallStructure("ilpaymentgui");
56 
57  $pa =& new ilPaymentGUI($ilias->account);
58  $ilCtrl->forwardCommand($pa);
59  break;
60 
61 }
62 
63 $tpl->show();
64 ?>