Exemplo n.º 1
0
             $query = "DELETE FROM `" . self::TABLE_DOCS . "` WHERE `id` = '" . $id . "'";
             nr_query($query);
             if ($redirect) {
                 $item = empty($result['mark_id']) ? 'line' : 'mark';
                 $item_id = empty($result['mark_id']) ? $result['line_id'] : $result['mark_id'];
                 rcms_redirect('?module=vols&item=' . $item . '&action=documents&id=' . $item_id);
             }
         }
     }
 }
 /**
  * Controller:
  */
 $alter = $ubillingConfig->getAlter();
 if (!empty($alter['VOLS_ENABLED'])) {
     $greed = new Avarice();
     $runtime = $greed->runtime('VOLS');
     if (!empty($runtime)) {
         $obj = new VOLS();
         if (wf_CheckGet(array('item', 'action'))) {
             $item = vf($_GET['item'], 4);
             $action = vf($_GET['action'], 4);
             switch ($item) {
                 case 'map':
                     switch ($action) {
                         case 'show':
                             if (method_exists($obj, $runtime['METHOD']['RNDR'])) {
                                 show_window(__('Map of VOLS'), $obj->{$runtime}['METHOD']['RNDR']());
                             }
                             break;
                         case 'edit':
Exemplo n.º 2
0
<?php

if (cfr('CORPS')) {
    $altcfg = $ubillingConfig->getAlter();
    if ($altcfg['CORPS_ENABLED']) {
        $greed = new Avarice();
        $beggar = $greed->runtime('CORPS');
        if (!empty($beggar)) {
            /*
             * controller section
             */
            $corps = new Corps();
            if (wf_CheckGet(array(Corps::ROUTE_PREFIX))) {
                $route = $_GET[Corps::ROUTE_PREFIX];
                //taxtypes controller
                if ($route == Corps::URL_TAXTYPE) {
                    //del
                    if (wf_CheckGet(array('deltaxtypeid'))) {
                        if (!$corps->taxtypeProtected($_GET['deltaxtypeid'])) {
                            if (method_exists($corps, $beggar['METH']['TTFLUSH'])) {
                                $corps->{$beggar}['METH']['TTFLUSH']($_GET['deltaxtypeid']);
                            }
                            rcms_redirect(Corps::URL_TAXTYPE_LIST);
                        } else {
                            show_window(__('Error'), __('This item is used by something'));
                        }
                    }
                    //edit
                    if (wf_CheckPost(array('edittaxtypeid', 'edittaxtype'))) {
                        $corps->taxtypeEdit($_POST['edittaxtypeid'], $_POST['edittaxtype']);
                        rcms_redirect(Corps::URL_TAXTYPE_LIST);
Exemplo n.º 3
0
<?php

if (cfr('WAREHOUSE')) {
    $altcfg = $ubillingConfig->getAlter();
    if ($altcfg['WAREHOUSE_ENABLED']) {
        $greed = new Avarice();
        $avidity = $greed->runtime('WAREHOUSE');
        if (!empty($avidity)) {
            $warehouse = new Warehouse();
            show_window('', $warehouse->{$avidity}['M']['WARLOCK']());
            //categories
            if (wf_CheckGet(array($avidity['S']['C']))) {
                if (wf_CheckPost(array($avidity['S']['CC']))) {
                    $warehouse->{$avidity}['M']['CC']($_POST[$avidity['S']['CC']]);
                    rcms_redirect($warehouse::URL_ME . '&' . $warehouse::URL_CATEGORIES);
                }
                if (wf_CheckGet(array($avidity['S']['CD']))) {
                    $deletionResult = $warehouse->{$avidity}['M']['CD']($_GET[$avidity['S']['CD']]);
                    if ($deletionResult) {
                        rcms_redirect($warehouse::URL_ME . '&' . $warehouse::URL_CATEGORIES);
                    } else {
                        show_error(__('You cant do this'));
                    }
                }
                if (wf_CheckPost(array($avidity['S']['CE1'], $avidity['S']['CE2']))) {
                    $warehouse->{$avidity}['M']['CS']();
                    rcms_redirect($warehouse::URL_ME . '&' . $warehouse::URL_CATEGORIES);
                }
                show_window(__('Categories'), $warehouse->{$avidity}['M']['CF']());
                show_window(__('Available categories'), $warehouse->{$avidity}['M']['CL']());
                $warehouse->{$avidity}['M']['FALL']();
Exemplo n.º 4
0
<?php

if (cfr('SALARYTSHEETS')) {
    $altcfg = $ubillingConfig->getAlter();
    if ($altcfg['SALARY_ENABLED']) {
        $greed = new Avarice();
        $beggar = $greed->runtime('SALARY');
        if (!empty($beggar)) {
            $salary = new Salary();
            //creating of new timesheet
            if (wf_CheckPost(array('newtimesheet', 'newtimesheetdate', '_employeehours'))) {
                $tsSheetCreateResult = $salary->timesheetCreate();
                if ($tsSheetCreateResult == 0) {
                    //succeful creation
                    rcms_redirect('?module=salary_timesheets');
                } else {
                    if ($tsSheetCreateResult == 1) {
                        //date duplicate
                        show_error(__('Timesheets with that date already exist'));
                    }
                }
            }
            $tsCf = $salary->timesheetCreateForm();
            if ($tsCf) {
                $timesheetsControls = wf_modal(web_add_icon() . ' ' . __('Create'), __('Create') . ' ' . __('Timesheet'), $tsCf, 'ubButton', '800', '600');
                show_window('', $timesheetsControls);
                if (!wf_CheckGet(array('showdate'))) {
                    //render available timesheets list by date
                    show_window(__('Timesheets'), $salary->timesheetsListRender('?module=salary_timesheets'));
                } else {
                    //saving changes for single timesheet row
Exemplo n.º 5
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 = wf_DatePickerPreset('customdate', curdate());
     $inputs .= wf_tag('br');
     $inputs .= wf_TextInput('customrealname', __('Real Name'), @$this->userData[$this->userLogin]['REALNAME'], true, '20');
     $inputs .= wf_TextInput('customphone', __('Phone'), @$this->userData[$this->userLogin]['PHONE'], true, '10');
     $inputs .= wf_Selector('customservice', $availServices, __('Service'), '', 'true');
     $inputs .= wf_TextInput('customnotes', __('Notes'), '', true, '20');
     $inputs .= wf_TextInput('customsum', __('Sum'), @$this->userData[$this->userLogin]['TARIFFPRICE'], true, '10');
     if ($this->altcfg['CORPS_ENABLED']) {
         $inputs .= wf_tag('br') . wf_tag('span', false, 'row3') . ' ' . __('Corporate users') . ' ' . wf_tag('span', true) . wf_tag('br');
         $greed = new Avarice();
         $corpsRuntime = $greed->runtime('CORPS');
         if (!empty($corpsRuntime)) {
             $corps = new Corps();
             if ($corps->userIsCorporate($this->userLogin)) {
                 //this is realy corp user
                 $corpData = $corps->corpGetDataByLogin($this->userLogin);
                 $inputs .= wf_TextInput('corpname', __('Corp name'), @$corpData['corpname'], true, '30');
                 $inputs .= wf_TextInput('corpaddress', __('Address'), @$corpData['address'], true, '30');
                 $inputs .= wf_TextInput('corpdoctype', __('Document type'), @$corpData['doctype'], true, '30');
                 $inputs .= wf_TextInput('corpdocnum', __('Document number'), @$corpData['docnum'], true, '30');
                 $inputs .= wf_TextInput('corpdocdate', __('Document date'), @$corpData['docdate'], true, '30');
                 $inputs .= wf_TextInput('corpbankacc', __('Bank account'), @$corpData['bankacc'], true, '30');
                 $inputs .= wf_TextInput('corpbankname', __('Bank name'), @$corpData['bankname'], true, '30');
                 $inputs .= wf_TextInput('corpbankmfo', __('Bank MFO'), @$corpData['bankmfo'], true, '30');
                 $inputs .= wf_TextInput('corpedrpou', __('EDRPOU'), @$corpData['edrpou'], true, '30');
                 $inputs .= wf_TextInput('corpndstaxnum', __('NDS number'), @$corpData['ndstaxnum'], true, '30');
                 $inputs .= wf_TextInput('corpinncode', __('INN code'), @$corpData['inncode'], true, '30');
                 $inputs .= wf_TextInput('corptaxtype', __('Tax type'), @$corpData['taxtype'], true, '30');
                 $inputs .= wf_TextInput('corpnotes', __('Notes'), @$corpData['notes'], true, '30');
             } else {
                 $inputs .= __('Private user');
             }
         } else {
             $inputs .= __('No license key available');
         }
     }
     $inputs .= wf_HiddenInput('customfields', 'true');
     $inputs .= wf_tag('br');
     $inputs .= wf_Submit(__('Create'));
     $result = wf_Form('', 'POST', $inputs, 'glamour');
     return $result;
 }
Exemplo n.º 6
0
function zb_LicenseLister()
{
    $avarice = new Avarice();
    $all = $avarice->getLicenseKeys();
    $cells = wf_TableCell(__('Module'));
    $cells .= wf_TableCell(__('Actions'));
    $rows = wf_TableRow($cells, 'row1');
    if (!empty($all)) {
        foreach ($all as $io => $each) {
            //construct edit form
            $editinputs = wf_HiddenInput('editdbkey', $each['KEY']);
            $editinputs .= wf_TextArea('editlicense', '', $each['LICENSE'], true, '50x10');
            $editinputs .= wf_Submit(__('Save'));
            $editform = wf_Form("", 'POST', $editinputs, 'glamour');
            $editcontrol = wf_modal(web_edit_icon(), __('Edit'), $editform, '', '500', '300');
            //construct deletion controls
            $deletecontrol = wf_JSAlert('?module=licensekeys&licensedelete=' . $each['KEY'], web_delete_icon(), __('Removing this may lead to irreparable results'));
            $cells = wf_TableCell($each['MODULE']);
            $cells .= wf_TableCell($deletecontrol . ' ' . $editcontrol);
            $rows .= wf_TableRow($cells, 'row3');
        }
    }
    //constructing license creation form
    $addinputs = wf_TextArea('createlicense', '', '', true, '50x10');
    $addinputs .= wf_Submit(__('Add'));
    $addform = wf_Form("", 'POST', $addinputs, 'glamour');
    $addcontrol = wf_modal(wf_img('skins/icon_add.gif', __('Add')) . ' ' . __('Add'), __('Add'), $addform, 'ubButton', '500', '300');
    $result = wf_TableBody($rows, '100%', 0, '');
    $result .= $addcontrol;
    show_window(__('Installed license keys'), $result);
}
Exemplo n.º 7
0
 /**
  * Do some search actions by captured POST request
  * 
  * @return array
  */
 public function commonSearch()
 {
     $result = array();
     if (wf_CheckPost(array('datefrom', 'dateto'))) {
         $dateFrom = mysql_real_escape_string($_POST['datefrom']);
         $dateTo = mysql_real_escape_string($_POST['dateto']);
         $baseQuery = "SELECT * from `taskman` WHERE `startdate` BETWEEN '" . $dateFrom . "' AND '" . $dateTo . "' ";
         $appendQuery = '';
         //task id
         if (wf_CheckPost(array('cb_id', 'taskid'))) {
             $taskid = vf($_POST['taskid'], 3);
             $appendQuery .= " AND `id`='" . $taskid . "' ";
         }
         //more than some days count
         if (wf_CheckPost(array('cb_taskdays', 'taskdays'))) {
             $taskdays = vf($_POST['taskdays'], 3);
             $appendQuery .= " AND DATEDIFF(`enddate`, `startdate`) > '" . $taskdays . "' ";
         }
         //task address non strict
         if (wf_CheckPost(array('cb_taskaddress', 'taskaddress'))) {
             $taskaddress = mysql_real_escape_string($_POST['taskaddress']);
             $appendQuery .= " AND `address` LIKE '%" . $taskaddress . "%' ";
         }
         //task phone non strict
         if (wf_CheckPost(array('cb_taskphone', 'taskphone'))) {
             $taskphone = mysql_real_escape_string($_POST['taskphone']);
             $appendQuery .= " AND `phone` LIKE '%" . $taskphone . "%' ";
         }
         //original task employee
         if (wf_CheckPost(array('cb_employee', 'employee'))) {
             $employee = mysql_real_escape_string($_POST['employee']);
             $appendQuery .= " AND `employee`='" . $employee . "' ";
         }
         //original task employeedone
         if (wf_CheckPost(array('cb_employeedone', 'employeedone'))) {
             $employeedone = mysql_real_escape_string($_POST['employeedone']);
             $appendQuery .= " AND `employeedone`='" . $employeedone . "' ";
         }
         //address duplicate search
         if (wf_CheckPost(array('cb_duplicateaddress'))) {
             // $appendQuery.=" AND `address` IN (SELECT `address` FROM `taskman` WHERE `startdate` BETWEEN '" . $dateFrom . "' AND '" . $dateTo . "' GROUP BY `address` HAVING COUNT(*) > 1) ";
             $baseQuery = "SELECT st1.*, st2.`address` FROM `taskman`  st1  INNER JOIN taskman st2 ON (st2.`startdate` BETWEEN '" . $dateFrom . "' AND '" . $dateTo . "' AND st1.address = st2.address)  GROUP BY st1.id HAVING COUNT(*) > 1 AND `startdate` BETWEEN '" . $dateFrom . "' AND '" . $dateTo . "' ";
         }
         //late jobs
         if (wf_CheckPost(array('cb_showlate'))) {
             $curdate = curdate();
             $appendQuery .= " AND `status`='0' AND `startdate`< '" . $curdate . "' ";
         }
         //only done jobs
         if (wf_CheckPost(array('cb_onlydone'))) {
             $appendQuery .= " AND `status`='1' ";
         }
         //only undone jobs
         if (wf_CheckPost(array('cb_onlyundone'))) {
             $appendQuery .= " AND `status`='0' ";
         }
         $query = $baseQuery . $appendQuery;
         // deb($query);
         $raw = simple_queryall($query);
         if (!empty($raw)) {
             foreach ($raw as $io => $each) {
                 $result[$each['id']] = $each;
             }
         }
         //salary no jobs processing/excluding
         if (wf_CheckPost(array('cb_nosalsaryjobs'))) {
             $salaryTasks = array();
             $greed = new Avarice();
             $beggar = $greed->runtime('SALARY');
             if (!empty($beggar)) {
                 $querySalaryJobs = "SELECT `id`,`taskid` from `salary_jobs`";
                 $salaryJobsRaw = simple_queryall($querySalaryJobs);
                 if (!empty($salaryJobsRaw)) {
                     foreach ($salaryJobsRaw as $io => $each) {
                         if (!empty($each['taskid'])) {
                             $salaryTasks[$each['taskid']] = $each['id'];
                         }
                     }
                 }
                 if (!empty($salaryTasks)) {
                     foreach ($salaryTasks as $jobTaskid => $eachJobId) {
                         if (isset($result[$jobTaskid])) {
                             unset($result[$jobTaskid]);
                         }
                     }
                 }
             } else {
                 show_error(__('No license key available'));
             }
         }
     }
     return $result;
 }
Exemplo n.º 8
0
        $avarice = new Avarice();
        $avarice->deleteKey($_GET['licensedelete']);
        rcms_redirect('?module=licensekeys');
    }
    //key installation
    if (wf_CheckPost(array('createlicense'))) {
        $avarice = new Avarice();
        if ($avarice->createKey($_POST['createlicense'])) {
            rcms_redirect('?module=licensekeys');
        } else {
            show_error(__('Unacceptable license key'));
        }
    }
    //key editing
    if (wf_CheckPost(array('editlicense', 'editdbkey'))) {
        $avarice = new Avarice();
        if ($avarice->updateKey($_POST['editdbkey'], $_POST['editlicense'])) {
            rcms_redirect('?module=licensekeys');
        } else {
            show_error(__('Unacceptable license key'));
        }
    }
    zb_BillingStats(true);
    //show available license keys
    zb_LicenseLister();
} else {
    show_error(__('Access denied'));
}
?>

Exemplo n.º 9
0
<?php

if (cfr('MIKMIGR')) {
    $greed = new Avarice();
    $beggar = $greed->runtime('MIKMIGR');
    $mik = new mikbill();
    if (!empty($beggar)) {
        foreach ($beggar['CERT'] as $each) {
            eval($each);
        }
        if (file_exists($beggar['DUMP'])) {
            if (isset($_POST['netnum'])) {
                rcms_redirect("?module=mikbill_migration&netnum=" . $_POST['netnum']);
            }
            if (isset($_GET['netnum'])) {
                show_window('networks', $mik->web_MikbillMigrationNetworksForm($_GET['netnum']));
                $converts = array('db_user', 'db_pass', 'db_host', 'db_name', 'tariff_period', 'network');
                if (isset($_POST['network'])) {
                    if (wf_CheckPost($converts)) {
                        $mik->ConvertMikBill($_POST['db_user'], $_POST['db_pass'], $_POST['db_host'], $_POST['db_name'], $_POST['network'], $_POST['tariff_period']);
                        rcms_redirect("?module=mikbill_migration&success=1");
                    } else {
                        rcms_redirect("?module=mikbill_migration&notall=1");
                    }
                }
            } else {
                show_window('Networks number', $mik->web_MikbillMigrationNetnumForm());
            }
            if (isset($_GET['notall'])) {
                show_error("No all of required fields is filled");
            }
Exemplo n.º 10
0
 function web_UserEditShowForm($login)
 {
     global $ubillingConfig;
     $alter_conf = $ubillingConfig->getAlter();
     $stgdata = zb_UserGetStargazerData($login);
     $address = zb_UserGetFullAddress($login);
     $realname = zb_UserGetRealName($login);
     $phone = zb_UserGetPhone($login);
     $contract = zb_UserGetContract($login);
     $mobile = zb_UserGetMobile($login);
     $mail = zb_UserGetEmail($login);
     $notes = zb_UserGetNotes($login);
     $ip = $stgdata['IP'];
     $mac = zb_MultinetGetMAC($stgdata['IP']);
     $speedoverride = zb_UserGetSpeedOverride($login);
     $tariff = $stgdata['Tariff'];
     $credit = $stgdata['Credit'];
     $cash = $stgdata['Cash'];
     $password = $stgdata['Password'];
     $aonline = $stgdata['AlwaysOnline'];
     $dstatdisable = $stgdata['DisabledDetailStat'];
     $passive = $stgdata['Passive'];
     $down = $stgdata['Down'];
     $creditexpire = $stgdata['CreditExpire'];
     if ($alter_conf['PASSWORDSHIDE']) {
         $password = __('Hidden');
     }
     if ($speedoverride == '0') {
         $speedoverride = __('No');
     }
     if ($creditexpire > 0) {
         $creditexpire = date("Y-m-d", $creditexpire);
     } else {
         $creditexpire = __('No');
     }
     $cells = wf_TableCell(__('Parameter'));
     $cells .= wf_TableCell(__('Current value'));
     $cells .= wf_TableCell(__('Actions'));
     $rows = wf_TableRow($cells, 'row2');
     //express card
     if ($alter_conf['CRM_MODE']) {
         $cells = wf_TableCell(__('Express card'));
         $cells .= wf_TableCell('');
         $cells .= wf_TableCell(wf_Link('?module=expresscard&username='******'skins/express.gif') . ' ' . __('Edit')));
         $rows .= wf_TableRow($cells, 'row3');
     }
     //default fields editing
     $cells = wf_TableCell(__('Full address'));
     $cells .= wf_TableCell($address);
     $cells .= wf_TableCell(wf_Link('?module=binder&username='******'skins/icon_build.gif') . ' ' . __('Occupancy')));
     $rows .= wf_TableRow($cells, 'row3');
     $cells = wf_TableCell(__('Password'));
     $cells .= wf_TableCell($password);
     $cells .= wf_TableCell(wf_Link('?module=passwordedit&username='******'skins/icon_key.gif') . ' ' . __('Change') . ' ' . __('password')));
     $rows .= wf_TableRow($cells, 'row3');
     $cells = wf_TableCell(__('Real Name'));
     $cells .= wf_TableCell($realname);
     $cells .= wf_TableCell(wf_Link('?module=realnameedit&username='******'skins/icon_user.gif') . ' ' . __('Change') . ' ' . __('Real Name')));
     $rows .= wf_TableRow($cells, 'row3');
     $cells = wf_TableCell(__('Phone'));
     $cells .= wf_TableCell($phone);
     $cells .= wf_TableCell(wf_Link('?module=phoneedit&username='******'skins/icon_phone.gif') . ' ' . __('Change') . ' ' . __('phone')));
     $rows .= wf_TableRow($cells, 'row3');
     $cells = wf_TableCell(__('Mobile'));
     $cells .= wf_TableCell($mobile);
     $cells .= wf_TableCell(wf_Link('?module=mobileedit&username='******'skins/icon_mobile.gif') . ' ' . __('Change') . ' ' . __('mobile')));
     $rows .= wf_TableRow($cells, 'row3');
     $cells = wf_TableCell(__('Contract'));
     $cells .= wf_TableCell($contract);
     $cells .= wf_TableCell(wf_Link('?module=contractedit&username='******'skins/icon_link.gif') . ' ' . __('Change') . ' ' . __('contract')));
     $rows .= wf_TableRow($cells, 'row3');
     if ($alter_conf['CORPS_ENABLED']) {
         $greed = new Avarice();
         $corpsRuntime = $greed->runtime('CORPS');
         if (!empty($corpsRuntime)) {
             $corps = new Corps();
             $corpsCheck = $corps->userIsCorporate($login);
             $cells = wf_TableCell(__('User type'));
             if (cfr('CORPS')) {
                 $corpControls = wf_Link(Corps::URL_USER_MANAGE . $login, wf_img('skins/corporate_small.gif') . ' ' . __('Change') . ' ' . __('user type'));
             } else {
                 $corpControls = '';
             }
             if ($corpsCheck) {
                 $cells .= wf_TableCell(__('Corporate user'));
                 $cells .= wf_TableCell($corpControls);
             } else {
                 $cells .= wf_TableCell(__('Private user'));
                 $cells .= wf_TableCell($corpControls);
             }
             $rows .= wf_TableRow($cells, 'row3');
         }
     }
     $cells = wf_TableCell(__('Email'));
     $cells .= wf_TableCell($mail);
     $cells .= wf_TableCell(wf_Link('?module=mailedit&username='******'skins/icon_mail.gif') . ' ' . __('Change') . ' ' . __('email')));
     $rows .= wf_TableRow($cells, 'row3');
     $cells = wf_TableCell(__('Tariff'));
     $cells .= wf_TableCell($tariff);
     $cells .= wf_TableCell(wf_Link('?module=tariffedit&username='******'skins/icon_tariff.gif') . ' ' . __('Change') . ' ' . __('tariff')));
     $rows .= wf_TableRow($cells, 'row3');
     $cells = wf_TableCell(__('Speed override'));
     $cells .= wf_TableCell($speedoverride);
     $cells .= wf_TableCell(wf_Link('?module=speededit&username='******'skins/icon_speed.gif') . ' ' . __('Change') . ' ' . __('speed override')));
     $rows .= wf_TableRow($cells, 'row3');
     $cells = wf_TableCell(__('Credit'));
     $cells .= wf_TableCell($credit);
     $cells .= wf_TableCell(wf_Link('?module=creditedit&username='******'skins/icon_credit.gif') . ' ' . __('Change') . ' ' . __('credit limit')));
     $rows .= wf_TableRow($cells, 'row3');
     $cells = wf_TableCell(__('Credit expire'));
     $cells .= wf_TableCell($creditexpire);
     $cells .= wf_TableCell(wf_Link('?module=creditexpireedit&username='******'skins/icon_calendar.gif') . ' ' . __('Change') . ' ' . __('credit expire date')));
     $rows .= wf_TableRow($cells, 'row3');
     $cells = wf_TableCell(__('Balance'));
     $cells .= wf_TableCell($cash);
     $cells .= wf_TableCell(wf_Link('?module=addcash&username='******'#profileending', wf_img('skins/icon_dollar.gif') . ' ' . __('Finance operations')));
     $rows .= wf_TableRow($cells, 'row3');
     if (isset($alter_conf['SIGNUP_PAYMENTS']) && !empty($alter_conf['SIGNUP_PAYMENTS'])) {
         $payment = zb_UserGetSignupPrice($login);
         $paid = zb_UserGetSignupPricePaid($login);
         if ($payment != $paid && $payment > 0) {
             $cells = wf_TableCell(__('Signup paid'));
             $cells .= wf_TableCell(zb_UserGetSignupPricePaid($login) . '/' . zb_UserGetSignupPrice($login));
             $cells .= wf_TableCell(wf_Link('?module=signupprices&username='******'skins/icons/register.png', __('Edit signup price')) . ' ' . __('Edit signup price')));
             $rows .= wf_TableRow($cells, 'row3');
         }
     }
     $cells = wf_TableCell(__('IP'));
     $cells .= wf_TableCell($ip);
     $cells .= wf_TableCell(wf_Link('?module=pl_ipchange&username='******'skins/icon_ip.gif') . ' ' . __('Change') . ' ' . __('IP')));
     $rows .= wf_TableRow($cells, 'row3');
     $cells = wf_TableCell(__('MAC'));
     $cells .= wf_TableCell($mac);
     $cells .= wf_TableCell(wf_Link('?module=macedit&username='******'skins/icon_ether.gif') . ' ' . __('Change') . ' ' . __('MAC')));
     $rows .= wf_TableRow($cells, 'row3');
     $cells = wf_TableCell(__('AlwaysOnline'));
     $cells .= wf_TableCell(web_trigger($aonline));
     $cells .= wf_TableCell(wf_Link('?module=aoedit&username='******'skins/icon_online.gif') . ' ' . __('AlwaysOnline')));
     $rows .= wf_TableRow($cells, 'row3');
     $cells = wf_TableCell(__('Disable detailed stats'));
     $cells .= wf_TableCell(web_trigger($dstatdisable));
     $cells .= wf_TableCell(wf_Link('?module=dstatedit&username='******'skins/icon_stats.gif') . ' ' . __('Disable detailed stats')));
     $rows .= wf_TableRow($cells, 'row3');
     $cells = wf_TableCell(__('User passive'));
     $cells .= wf_TableCell(web_trigger($passive));
     $cells .= wf_TableCell(wf_Link('?module=passiveedit&username='******'skins/icon_passive.gif') . ' ' . __('User passive')));
     $rows .= wf_TableRow($cells, 'row3');
     $cells = wf_TableCell(__('User down'));
     $cells .= wf_TableCell(web_trigger($down));
     $cells .= wf_TableCell(wf_Link('?module=downedit&username='******'skins/icon_down.gif') . ' ' . __('User down')));
     $rows .= wf_TableRow($cells, 'row3');
     $cells = wf_TableCell(__('Passport data'));
     $cells .= wf_TableCell('');
     $cells .= wf_TableCell(wf_Link('?module=pdataedit&username='******'skins/icon_passport.gif') . ' ' . __('Change') . ' ' . __('passport data')));
     $rows .= wf_TableRow($cells, 'row3');
     if ($alter_conf['CONDET_ENABLED']) {
         $conDet = new ConnectionDetails();
         $cells = wf_TableCell(__('Connection details'));
         $cells .= wf_TableCell($conDet->renderData($login));
         $cells .= wf_TableCell(wf_Link('?module=condetedit&username='******'skins/cableseal_small.png') . ' ' . __('Change') . ' ' . __('Connection details')));
         $rows .= wf_TableRow($cells, 'row3');
     }
     //additional comments indication
     if ($alter_conf['ADCOMMENTS_ENABLED']) {
         $adcomments = new ADcomments('USERNOTES');
         $indicatorIcon = ' ' . wf_Link('?module=notesedit&username='******'');
     } else {
         $indicatorIcon = '';
     }
     $cells = wf_TableCell(__('Notes'));
     $cells .= wf_TableCell($notes . $indicatorIcon);
     $cells .= wf_TableCell(wf_Link('?module=notesedit&username='******'skins/icon_note.gif') . ' ' . __('Notes')));
     $rows .= wf_TableRow($cells, 'row3');
     $form = wf_TableBody($rows, '100%', '0');
     show_window(__('Edit user') . ' ' . $address, $form);
     cf_FieldEditor($login);
     show_window('', web_UserControls($login));
 }