示例#1
0
/**
 * returns main self-credit module form
 * 
 * @return string
 */
function zbs_ShowCreditForm()
{
    $inputs = la_tag('center');
    $inputs .= la_HiddenInput('setcredit', 'true');
    $inputs .= la_CheckInput('agree', __('I am sure that I am an adult and have read everything that is written above'), false, false);
    $inputs .= la_delimiter();
    $inputs .= la_Submit(__('Set me credit please'));
    $inputs .= la_tag('center', true);
    $form = la_Form("", 'POST', $inputs, '');
    return $form;
}
示例#2
0
/**
 * Renders user logout form (only for login auth)
 * 
 * @return void
 */
function zbs_LogoutForm()
{
    $inputs = la_HiddenInput('ulogout', 'true');
    $inputs .= la_Submit(__('Logout'));
    $form = la_Form('', 'POST', $inputs);
    show_window('', $form);
}
示例#3
0
 /**
  * returns custom documents form fields
  * 
  * @return string
  */
 public function customDocumentFieldsForm()
 {
     $rawServices = $this->altcfg['DOCX_SERVICES'];
     $availServices = array();
     if (!empty($rawServices)) {
         $rawServices = explode(',', $rawServices);
         if (!empty($rawServices)) {
             foreach ($rawServices as $io => $each) {
                 $availServices[__($each)] = __($each);
             }
         }
     }
     $inputs = la_DatePickerPreset('customdate', date("Y-m-d"));
     $inputs .= la_tag('br');
     $inputs .= la_TextInput('customrealname', __('Real Name'), @$this->userData[$this->userLogin]['REALNAME'], true, '20');
     $inputs .= la_TextInput('customphone', __('Phone'), @$this->userData[$this->userLogin]['PHONE'], true, '10');
     $inputs .= la_Selector('customservice', $availServices, __('Service'), '', 'true');
     $inputs .= la_TextInput('customnotes', __('Notes'), '', true, '20');
     $inputs .= la_TextInput('customsum', __('Sum'), @$this->userData[$this->userLogin]['TARIFFPRICE'], true, '10');
     $inputs .= la_HiddenInput('customfields', 'true');
     $inputs .= la_Submit(__('Create'));
     $result = la_Form('', 'POST', $inputs, 'glamour');
     return $result;
 }
示例#4
0
    //extracting paysys description
    if (file_exists('config/opayz.ini')) {
        $opz_config = parse_ini_file('config/opayz.ini');
    } else {
        $opz_config = array();
    }
    $inputs = '';
    $forms = '';
    if (!empty($paysys)) {
        foreach ($paysys as $eachpaysys) {
            if (isset($opz_config[$eachpaysys])) {
                $paysys_desc = $opz_config[$eachpaysys];
            } else {
                $paysys_desc = '';
            }
            $inputs = la_tag('center', false);
            $inputs .= la_HiddenInput('customer_id', $payid);
            $inputs .= la_Submit(strtoupper($eachpaysys));
            $inputs .= la_tag('br');
            $inputs .= $paysys_desc;
            $inputs .= la_tag('center', true);
            $inputs .= la_tag('br');
            $forms .= la_Form($us_config['OPENPAYZ_URL'] . $eachpaysys . '/', 'GET', $inputs, '');
        }
        show_window('', $forms);
    } else {
        show_window(__('Sorry'), __('No available payment systems'));
    }
} else {
    show_window(__('Sorry'), __('Unfortunately online payments are disabled'));
}
示例#5
0
 /**
  * 
  * @return type form for changin mobile
  */
 function zbs_ShowChangeMobileForm()
 {
     global $us_config;
     $inputs = la_tag('center');
     $inputs .= la_HiddenInput('changemobile', 'true');
     $inputs .= @$us_config['REMINDER_PREFIX'] . ' ';
     $inputs .= la_TextInput('mobile');
     $inputs .= la_delimiter();
     $inputs .= la_Submit(__('Change mobile'));
     $inputs .= la_tag('center', true);
     $form = la_Form("", 'POST', $inputs, '');
     return $form;
 }
示例#6
0
 /**
  * returns signup service main form
  * 
  * @retun string
  */
 public function renderForm()
 {
     $inputs = '';
     $inputs .= la_HiddenInput('createrequest', 'true');
     //greeting text
     $inputs .= $this->optionGreetingText;
     //optional city selector
     if ($this->optionCityDisplay) {
         $inputs .= $this->cityInput();
         $inputs .= la_tag('br');
     }
     //street selector
     $inputs .= $this->streetInput();
     //build and apt inputs
     $baCells = la_TableCell($this->buildInput());
     $baCells .= la_TableCell($this->aptInput());
     $baRows = la_TableRow($baCells);
     $inputs .= la_TableBody($baRows, '', 0, '');
     //realname input
     $inputs .= $this->realnameInput();
     $inputs .= la_tag('br');
     //dirty magic here
     if ($this->optionSpamTraps) {
         $inputs .= $this->spambotsTrap();
     }
     //phone input
     $inputs .= $this->phoneInput();
     //email optional input
     if ($this->optionEmailDisplay) {
         $inputs .= $this->emailInput();
         $inputs .= la_tag('br');
     }
     //service combo selector
     if (!empty($this->services)) {
         $inputs .= $this->serviceInput();
         $inputs .= la_tag('br');
     }
     //optional tariffs selector
     if (!empty($this->tariffs)) {
         $inputs .= $this->tariffsInput();
         $inputs .= la_tag('br');
     }
     //notes text area
     $inputs .= $this->notesInput();
     $inputs .= la_tag('br');
     $inputs .= la_tag('small') . __('All fields marked with an asterisk (*) are required') . la_tag('small', true);
     $inputs .= la_tag('br');
     $inputs .= la_tag('br');
     $inputs .= la_Submit(__('Send signup request'));
     $result = la_tag('div', false, '', 'id="signup_form"');
     $result .= la_Form("", 'POST', $inputs, '');
     $result .= la_tag('div', true);
     return $result;
 }
示例#7
0
                        zbs_PaymentLog($user_login, '-' . $freezeprice, $af_cahtypeid, "AFFEE");
                        billing_addcash($user_login, '-' . $freezeprice);
                        rcms_redirect("index.php");
                    } else {
                        show_window(__('Error'), __('You must accept our policy'));
                    }
                } else {
                    //show some forms and notices
                    $af_message = __('Service "account freeze" will allow you to suspend the charge of the monthly fee during your long absence - such as holidays or vacations. The cost of this service is:') . ' ';
                    $af_message .= la_tag('b') . $freezeprice . ' ' . $af_currency . la_tag('b', true) . '. ';
                    $af_message .= __('Be aware that access to the network will be limited to immediately after you confirm your desire to freeze the account. To unfreeze the account you need to contact the nearest office.');
                    // terms of service
                    show_window(__('Account freezing'), $af_message);
                    //account freezing form
                    $inputs = la_CheckInput('afagree', __('I am sure that I am an adult and have read everything that is written above'), false, false);
                    $inputs .= la_HiddenInput('dofreeze', 'true');
                    $inputs .= la_delimiter();
                    $inputs .= la_Submit(__('I want to freeze my account right now'));
                    $af_form = la_Form('', 'POST', $inputs);
                    show_window('', $af_form);
                }
            } else {
                show_window('', __('Your account has been frozen'));
            }
        } else {
            show_window(__('Sorry'), __('Your account is now a negative amount'));
        }
    } else {
        show_window(__('Sorry'), __('Your tariff does not provide this service'));
    }
} else {