Funkcija za polno ime paketa - v delu
This commit is contained in:
parent
60818f036d
commit
94c6c0a325
@ -10098,6 +10098,8 @@ class SurveyAdminSettings {
|
||||
|
||||
$drupal_url = ($lang['id'] == '2') ? $site_url.'d/en/' : $site_url.'d/';
|
||||
|
||||
//echo $userAccess->getPackageName($rowA['package_id']); - ime paketa, v delu @TG
|
||||
|
||||
// Ni nobenega paketa
|
||||
if(mysqli_num_rows($sqlA) == 0){
|
||||
$package_string = $lang['paket_opis_1ka'].' ('.$lang['srv_access_package_free'].')</div><div class="setting_holder"><button class="medium yellow" type="button" onClick="window.location.href=\''.$drupal_url.''.$lang['srv_narocila_buyurl'].'\';">'.$lang['srv_narocila_buy'].'</button>';
|
||||
|
@ -463,6 +463,22 @@ class UserAccess{
|
||||
return $what;
|
||||
}
|
||||
|
||||
public function getPackageName($package_id) {
|
||||
global $lang;
|
||||
|
||||
$string = '';
|
||||
|
||||
if ($package_id == 1) {
|
||||
$string = $lang['paket_opis_1ka'];
|
||||
} else if($package_id == 2) {
|
||||
$string = $lang['paket_opis_2ka'];
|
||||
} else if($package_id == 3) {
|
||||
$string = $lang['paket_opis_3ka'];
|
||||
}
|
||||
|
||||
return $string;
|
||||
}
|
||||
|
||||
|
||||
// Ajax klici
|
||||
public function ajax(){
|
||||
|
Loading…
x
Reference in New Issue
Block a user