| 8 | | $language_list = array(); |
|---|
| 9 | | $language_list["0"] = array( gettext("ENGLISH"), "en"); |
|---|
| 10 | | $language_list["1"] = array( gettext("SPANISH"), "es"); |
|---|
| 11 | | $language_list["2"] = array( gettext("FRENCH"), "fr"); |
|---|
| 12 | | return $language_list; |
|---|
| 13 | | } |
|---|
| 14 | | |
|---|
| 15 | | public static function getYesNoList(){ |
|---|
| 16 | | $yesno = array(); |
|---|
| 17 | | $yesno["1"] = array( gettext("Yes"), "1"); |
|---|
| 18 | | $yesno["0"] = array( gettext("No"), "0"); |
|---|
| 19 | | return $yesno; |
|---|
| 20 | | } |
|---|
| 21 | | |
|---|
| 22 | | public static function getCurrenciesList(){ |
|---|
| 23 | | $currencies_list = get_currencies(); |
|---|
| 24 | | foreach($currencies_list as $key => $cur_value) { |
|---|
| 25 | | $currency_list[$key] = array( $cur_value[1].' ('.$cur_value[2].')', $key); |
|---|
| 26 | | } |
|---|
| 27 | | return $currency_list; |
|---|
| 28 | | } |
|---|
| 29 | | |
|---|
| 30 | | |
|---|
| 31 | | public static function getCurrenciesKeyList(){ |
|---|
| 32 | | $currencies_list = get_currencies(); |
|---|
| 33 | | foreach($currencies_list as $key => $cur_value) { |
|---|
| 34 | | $currency_list_key[$key][0] = $key; |
|---|
| 35 | | } |
|---|
| 36 | | return $currency_list_key; |
|---|
| 37 | | } |
|---|
| 38 | | |
|---|
| 39 | | |
|---|
| 40 | | public static function getCurrenciesRateList(){ |
|---|
| 41 | | $currencies_list = get_currencies(); |
|---|
| 42 | | foreach($currencies_list as $key => $cur_value) { |
|---|
| 43 | | $currency_list_r[$key] = array( $key, $cur_value[1]); |
|---|
| 44 | | } |
|---|
| 45 | | return $currency_list_r; |
|---|
| 46 | | } |
|---|
| 47 | | |
|---|
| 48 | | public static function getPeriodsList(){ |
|---|
| 49 | | $period_list = array(); |
|---|
| 50 | | $period_list["1"] = array( "Hourly", "1"); |
|---|
| 51 | | $period_list["2"] = array( "Daily", "2"); |
|---|
| 52 | | $period_list["3"] = array( "Weekly", "3"); |
|---|
| 53 | | $period_list["4"] = array( "Monthly", "4"); |
|---|
| 54 | | return $period_list; |
|---|
| 55 | | |
|---|
| 56 | | } |
|---|
| 57 | | |
|---|
| 58 | | |
|---|
| 59 | | |
|---|
| 60 | | public static function getActivationList(){ |
|---|
| 61 | | $actived_list = array(); |
|---|
| 62 | | $actived_list["0"] = array( gettext("Inactive"), "0"); |
|---|
| 63 | | $actived_list["1"] = array( gettext("Active"), "1"); |
|---|
| 64 | | return $actived_list; |
|---|
| 65 | | |
|---|
| 66 | | } |
|---|
| 67 | | |
|---|
| 68 | | public static function getActivationTrueFalseList(){ |
|---|
| 69 | | $actived_list = array(); |
|---|
| 70 | | $actived_list["t"] = array( "Active", "t"); |
|---|
| 71 | | $actived_list["f"] = array( "Disactive", "f"); |
|---|
| 72 | | return $actived_list; |
|---|
| 73 | | |
|---|
| 74 | | } |
|---|
| 75 | | |
|---|
| 76 | | |
|---|
| 77 | | public static function getBillingTypeList(){ |
|---|
| 78 | | |
|---|
| 79 | | $billingtype_list = array(); |
|---|
| 80 | | $billingtype_list["0"] = array( gettext("Fix per month + dialoutrate"), "0"); |
|---|
| 81 | | $billingtype_list["1"] = array( gettext("Fix per month"), "1"); |
|---|
| 82 | | $billingtype_list["2"] = array( gettext("Only dialout rate"), "2"); |
|---|
| 83 | | $billingtype_list["3"] = array( gettext("Free"), "3"); |
|---|
| 84 | | return $billingtype_list; |
|---|
| 85 | | } |
|---|
| 86 | | |
|---|
| 87 | | public static function getBillingTypeShortList(){ |
|---|
| 88 | | $billingtype_list_short = array(); |
|---|
| 89 | | $billingtype_list_short["0"] = array( gettext("Fix+Dial"), "0"); |
|---|
| 90 | | $billingtype_list_short["1"] = array( gettext("Fix"), "1"); |
|---|
| 91 | | $billingtype_list_short["2"] = array( gettext("Dial"), "2"); |
|---|
| 92 | | $billingtype_list_short["3"] = array( gettext("Free"), "3"); |
|---|
| 93 | | return $billingtype_list_short; |
|---|
| 94 | | } |
|---|
| 95 | | public static function getSimultAccessList(){ |
|---|
| 96 | | $billingtype_list_short = array(); |
|---|
| 97 | | $simultaccess_list["0"] = array( gettext("INDIVIDUAL ACCESS"), "0"); |
|---|
| 98 | | $simultaccess_list["1"] = array( gettext("SIMULTANEOUS ACCESS"), "1"); |
|---|
| 99 | | return $billingtype_list_short; |
|---|
| 100 | | } |
|---|
| 101 | | |
|---|
| 102 | | public static function getPaidTypeList(){ |
|---|
| 103 | | $typepaid_list = array(); |
|---|
| 104 | | $typepaid_list["0"] = array( gettext("PREPAID CARD"), "0"); |
|---|
| 105 | | $typepaid_list["1"] = array( gettext("POSTPAY CARD"), "1"); |
|---|
| 106 | | return $typepaid_list; |
|---|
| 107 | | } |
|---|
| 108 | | |
|---|
| 109 | | public static function getExpirationList(){ |
|---|
| 110 | | $expire_list = array(); |
|---|
| 111 | | $expire_list["0"] = array( gettext("NO EXPIRATION"), "0"); |
|---|
| 112 | | $expire_list["1"] = array( gettext("EXPIRE DATE"), "1"); |
|---|
| 113 | | $expire_list["2"] = array( gettext("EXPIRE DAYS SINCE FIRST USE"), "2"); |
|---|
| 114 | | $expire_list["3"] = array( gettext("EXPIRE DAYS SINCE CREATION"), "3"); |
|---|
| 115 | | return $expire_list; |
|---|
| 116 | | } |
|---|
| 117 | | public static function getPaymentStatusList(){ |
|---|
| | 7 | $language_list = array(); |
|---|
| | 8 | $language_list["0"] = array( gettext("ENGLISH"), "en"); |
|---|
| | 9 | $language_list["1"] = array( gettext("SPANISH"), "es"); |
|---|
| | 10 | $language_list["2"] = array( gettext("FRENCH"), "fr"); |
|---|
| | 11 | return $language_list; |
|---|
| | 12 | } |
|---|
| | 13 | |
|---|
| | 14 | public static function getYesNoList(){ |
|---|
| | 15 | $yesno = array(); |
|---|
| | 16 | $yesno["1"] = array( gettext("Yes"), "1"); |
|---|
| | 17 | $yesno["0"] = array( gettext("No"), "0"); |
|---|
| | 18 | return $yesno; |
|---|
| | 19 | } |
|---|
| | 20 | |
|---|
| | 21 | public static function getCurrenciesList(){ |
|---|
| | 22 | $currencies_list = get_currencies(); |
|---|
| | 23 | foreach($currencies_list as $key => $cur_value) { |
|---|
| | 24 | $currency_list[$key] = array( $cur_value[1].' ('.$cur_value[2].')', $key); |
|---|
| | 25 | } |
|---|
| | 26 | return $currency_list; |
|---|
| | 27 | } |
|---|
| | 28 | |
|---|
| | 29 | public static function getCurrenciesKeyList(){ |
|---|
| | 30 | $currencies_list = get_currencies(); |
|---|
| | 31 | foreach($currencies_list as $key => $cur_value) { |
|---|
| | 32 | $currency_list_key[$key][0] = $key; |
|---|
| | 33 | } |
|---|
| | 34 | return $currency_list_key; |
|---|
| | 35 | } |
|---|
| | 36 | |
|---|
| | 37 | public static function getCurrenciesRateList(){ |
|---|
| | 38 | $currencies_list = get_currencies(); |
|---|
| | 39 | foreach($currencies_list as $key => $cur_value) { |
|---|
| | 40 | $currency_list_r[$key] = array( $key, $cur_value[1]); |
|---|
| | 41 | } |
|---|
| | 42 | return $currency_list_r; |
|---|
| | 43 | } |
|---|
| | 44 | |
|---|
| | 45 | public static function getPeriodsList(){ |
|---|
| | 46 | $period_list = array(); |
|---|
| | 47 | $period_list["1"] = array( "Hourly", "1"); |
|---|
| | 48 | $period_list["2"] = array( "Daily", "2"); |
|---|
| | 49 | $period_list["3"] = array( "Weekly", "3"); |
|---|
| | 50 | $period_list["4"] = array( "Monthly", "4"); |
|---|
| | 51 | return $period_list; |
|---|
| | 52 | } |
|---|
| | 53 | |
|---|
| | 54 | public static function getActivationList(){ |
|---|
| | 55 | $actived_list = array(); |
|---|
| | 56 | $actived_list["0"] = array( gettext("Inactive"), "0"); |
|---|
| | 57 | $actived_list["1"] = array( gettext("Active"), "1"); |
|---|
| | 58 | return $actived_list; |
|---|
| | 59 | } |
|---|
| | 60 | |
|---|
| | 61 | public static function getActivationTrueFalseList(){ |
|---|
| | 62 | $actived_list = array(); |
|---|
| | 63 | $actived_list["t"] = array( "Active", "t"); |
|---|
| | 64 | $actived_list["f"] = array( "Disactive", "f"); |
|---|
| | 65 | return $actived_list; |
|---|
| | 66 | } |
|---|
| | 67 | |
|---|
| | 68 | |
|---|
| | 69 | public static function getBillingTypeList(){ |
|---|
| | 70 | $billingtype_list = array(); |
|---|
| | 71 | $billingtype_list["0"] = array( gettext("Fix per month + dialoutrate"), "0"); |
|---|
| | 72 | $billingtype_list["1"] = array( gettext("Fix per month"), "1"); |
|---|
| | 73 | $billingtype_list["2"] = array( gettext("Only dialout rate"), "2"); |
|---|
| | 74 | $billingtype_list["3"] = array( gettext("Free"), "3"); |
|---|
| | 75 | return $billingtype_list; |
|---|
| | 76 | } |
|---|
| | 77 | |
|---|
| | 78 | public static function getBillingTypeShortList(){ |
|---|
| | 79 | $billingtype_list_short = array(); |
|---|
| | 80 | $billingtype_list_short["0"] = array( gettext("Fix+Dial"), "0"); |
|---|
| | 81 | $billingtype_list_short["1"] = array( gettext("Fix"), "1"); |
|---|
| | 82 | $billingtype_list_short["2"] = array( gettext("Dial"), "2"); |
|---|
| | 83 | $billingtype_list_short["3"] = array( gettext("Free"), "3"); |
|---|
| | 84 | return $billingtype_list_short; |
|---|
| | 85 | } |
|---|
| | 86 | |
|---|
| | 87 | public static function getSimultAccessList(){ |
|---|
| | 88 | $billingtype_list_short = array(); |
|---|
| | 89 | $simultaccess_list["0"] = array( gettext("INDIVIDUAL ACCESS"), "0"); |
|---|
| | 90 | $simultaccess_list["1"] = array( gettext("SIMULTANEOUS ACCESS"), "1"); |
|---|
| | 91 | return $billingtype_list_short; |
|---|
| | 92 | } |
|---|
| | 93 | |
|---|
| | 94 | public static function getPaidTypeList(){ |
|---|
| | 95 | $typepaid_list = array(); |
|---|
| | 96 | $typepaid_list["0"] = array( gettext("PREPAID CARD"), "0"); |
|---|
| | 97 | $typepaid_list["1"] = array( gettext("POSTPAY CARD"), "1"); |
|---|
| | 98 | return $typepaid_list; |
|---|
| | 99 | } |
|---|
| | 100 | |
|---|
| | 101 | public static function getExpirationList(){ |
|---|
| | 102 | $expire_list = array(); |
|---|
| | 103 | $expire_list["0"] = array( gettext("NO EXPIRATION"), "0"); |
|---|
| | 104 | $expire_list["1"] = array( gettext("EXPIRE DATE"), "1"); |
|---|
| | 105 | $expire_list["2"] = array( gettext("EXPIRE DAYS SINCE FIRST USE"), "2"); |
|---|
| | 106 | $expire_list["3"] = array( gettext("EXPIRE DAYS SINCE CREATION"), "3"); |
|---|
| | 107 | return $expire_list; |
|---|
| | 108 | } |
|---|
| | 109 | |
|---|
| | 110 | public static function getPaymentStatusList(){ |
|---|