当前位置: 首页>>代码示例>>PHP>>正文


PHP show_window函数代码示例

本文整理汇总了PHP中show_window函数的典型用法代码示例。如果您正苦于以下问题:PHP show_window函数的具体用法?PHP show_window怎么用?PHP show_window使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了show_window函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: web_MessagesShowPrevious

 function web_MessagesShowPrevious($login)
 {
     $login = mysql_real_escape_string($login);
     $query = "SELECT * from `ticketing` WHERE `to`='" . $login . "' AND `from`='NULL' AND `status`='1' ORDER BY `date` DESC";
     $allmessages = simple_queryall($query);
     $result = '<table width="100%" class="sortable">';
     $result .= '
                 <tr class="row1">
                 <td>' . __('Date') . '</td>
                 <td>' . __('Text') . '</td>
                 </tr>
                 ';
     if (!empty($allmessages)) {
         foreach ($allmessages as $io => $eachmessage) {
             $result .= '
                 <tr class="row3">
                 <td>' . $eachmessage['date'] . '</td>
                 <td>' . $eachmessage['text'] . '</td>
                 </tr>
                 ';
         }
     }
     $result .= '</table>';
     show_window(__('Previous messages'), $result);
 }
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:25,代码来源:index.php

示例2: zbs_ShowUserPayments

function zbs_ShowUserPayments($login)
{
    $usConfig = zbs_LoadConfig();
    if ($usConfig['PAYMENTS_ENABLED']) {
        $allpayments = zbs_CashGetUserPayments($login);
        $cells = la_TableCell(__('Date'));
        $cells .= la_TableCell(__('Payment'));
        $cells .= la_TableCell(__('Balance'));
        $rows = la_TableRow($cells, 'row1');
        if (!empty($allpayments)) {
            foreach ($allpayments as $io => $eachpayment) {
                if ($usConfig['PAYMENTSTIMEHIDE']) {
                    $timestamp = strtotime($eachpayment['date']);
                    $cleanDate = date("Y-m-d", $timestamp);
                    $dateCells = $cleanDate;
                } else {
                    $dateCells = $eachpayment['date'];
                }
                $cells = la_TableCell($dateCells);
                $cells .= la_TableCell($eachpayment['summ']);
                $cells .= la_TableCell($eachpayment['balance']);
                $rows .= la_TableRow($cells, 'row2');
            }
        }
        $result = la_TableBody($rows, '100%', 0);
        show_window(__('Last payments'), $result);
    } else {
        $result = __('This module is disabled');
        show_window(__('Sorry'), $result);
    }
}
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:31,代码来源:index.php

示例3: zbs_AnnouncementsShow

function zbs_AnnouncementsShow()
{
    $query = "SELECT * from `zbsannouncements` WHERE `public`='1' ORDER by `id` DESC";
    $all = simple_queryall($query);
    $result = '';
    if (!empty($all)) {
        foreach ($all as $io => $each) {
            if (!isset($_COOKIE['zbsanread_' . $each['id']])) {
                $readControl = la_Link('?module=announcements&anmarkasread=' . $each['id'], la_img('iconz/anunread.gif', __('Mark as read'))) . ' ';
            } else {
                $readControl = la_Link('?module=announcements&anmarkasunread=' . $each['id'], la_img('iconz/anread.gif', __('Mark as unread'))) . ' ';
            }
            $result .= la_tag('h3', false, 'row1', '') . $readControl . $each['title'] . '&nbsp;' . la_tag('h3', true);
            $result .= la_delimiter();
            if ($each['type'] == 'text') {
                $eachtext = strip_tags($each['text']);
                $result .= nl2br($eachtext);
            }
            if ($each['type'] == 'html') {
                $result .= $each['text'];
            }
            $result .= la_delimiter();
        }
    } else {
        show_window(__('Sorry'), __('There are not any announcements.'));
    }
    show_window('', $result);
}
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:28,代码来源:index.php

示例4: web_FDBTableShowDataTable

 /**
  * Shows current FDB cache list container
  * 
  * @param string $fdbSwitchFilter
  */
 function web_FDBTableShowDataTable($fdbSwitchFilter = '')
 {
     $filter = !empty($fdbSwitchFilter) ? '&swfilter=' . $fdbSwitchFilter : '';
     $filtersForm = wf_modalAuto(web_icon_search('MAC filters setup'), __('MAC filters setup'), web_FDBTableFiltersForm(), '');
     $columns = array('Switch IP', 'Port', 'Location', 'MAC', 'User');
     $result = wf_JqDtLoader($columns, '?module=switchpoller&ajax=true' . $filter, true, 'Objects', 100);
     show_window(__('Current FDB cache') . ' ' . $filtersForm, $result);
 }
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:13,代码来源:index.php

示例5: ms_ShowForm

 function ms_ShowForm()
 {
     $inputs = __('Message') . '<br>';
     $inputs .= wf_TextArea('message', '', '', true, '60x6');
     $inputs .= wf_TextInput('exactuserlogins', 'Exact users, comma delimiter', '', true, '30');
     $inputs .= wf_RadioInput('sendtype', 'Exact users', 'exactusers', true, true);
     $inputs .= wf_RadioInput('sendtype', 'Debtors', 'debtors', true);
     $inputs .= wf_RadioInput('sendtype', 'All users', 'allusers', true);
     $inputs .= wf_Submit('Send');
     $form = wf_Form('', 'POST', $inputs, 'glamour');
     show_window(__('Masssender'), $form);
 }
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:12,代码来源:index.php

示例6: web_AnnihilateFormShow

 function web_AnnihilateFormShow($login)
 {
     $alladdress = zb_AddressGetFulladdresslist();
     $inputs = __('Be careful, this module permanently deletes user and all data associated with it. Opportunities to raise from the dead no longer.');
     $inputs .= wf_tag('br');
     $inputs .= __('To ensure that we have seen the seriousness of your intentions to enter the word сonfirm the field below.');
     $inputs .= wf_tag('br');
     $inputs .= wf_tag('input', false, '', 'type="text" name="confirmation" autocomplete="off"');
     $inputs .= wf_HiddenInput('anihilation', 'true');
     $inputs .= wf_delimiter();
     $inputs .= wf_Submit(__('I really want to stop suffering User'));
     $form = wf_Form('', 'POST', $inputs, 'glamour');
     show_window(__('Deleting user') . ' ' . @$alladdress[$login] . ' (' . $login . ')', $form);
 }
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:14,代码来源:index.php

示例7: web_CardShowUsageByMonth

 /**
  * Renders search results for used cards
  * 
  * @param int $year
  * @param string $month
  * 
  * @return void
  */
 function web_CardShowUsageByMonth($year, $month)
 {
     $month = mysql_real_escape_string($month);
     $year = mysql_real_escape_string($year);
     $query = "SELECT * from `cardbank` WHERE `usedate` LIKE '%" . $year . "-" . $month . "-%'";
     $allusedcards = simple_queryall($query);
     $allrealnames = zb_UserGetAllRealnames();
     $alladdress = zb_AddressGetFulladdresslist();
     $totalsumm = 0;
     $totalcount = 0;
     $csvdata = '';
     $tablecells = wf_TableCell(__('ID'));
     $tablecells .= wf_TableCell(__('Serial number'));
     $tablecells .= wf_TableCell(__('Cash'));
     $tablecells .= wf_TableCell(__('Usage date'));
     $tablecells .= wf_TableCell(__('Used login'));
     $tablecells .= wf_TableCell(__('Full address'));
     $tablecells .= wf_TableCell(__('Real name'));
     $tablerows = wf_TableRow($tablecells, 'row1');
     if (!empty($allusedcards)) {
         $csvdata = __('ID') . ';' . __('Serial number') . ';' . __('Cash') . ';' . __('Usage date') . ';' . __('Used login') . ';' . __('Full address') . ';' . __('Real name') . "\n";
         foreach ($allusedcards as $io => $eachcard) {
             $tablecells = wf_TableCell($eachcard['id']);
             $tablecells .= wf_TableCell($eachcard['serial']);
             $tablecells .= wf_TableCell($eachcard['cash']);
             $tablecells .= wf_TableCell($eachcard['usedate']);
             $profilelink = wf_Link("?module=userprofile&username=" . $eachcard['usedlogin'], web_profile_icon() . ' ' . $eachcard['usedlogin'], false);
             $tablecells .= wf_TableCell($profilelink);
             @($useraddress = $alladdress[$eachcard['usedlogin']]);
             $tablecells .= wf_TableCell($useraddress);
             @($userrealname = $allrealnames[$eachcard['usedlogin']]);
             $tablecells .= wf_TableCell($userrealname);
             $tablerows .= wf_TableRow($tablecells, 'row3');
             $totalcount++;
             $totalsumm = $totalsumm + $eachcard['cash'];
             $csvdata .= $eachcard['id'] . ';' . $eachcard['serial'] . ';' . $eachcard['cash'] . ';' . $eachcard['usedate'] . ';' . $eachcard['usedlogin'] . ';' . $useraddress . ';' . $userrealname . "\n";
         }
     }
     if (!empty($csvdata)) {
         $exportFilename = 'exports/cardreport_' . $year . '-' . $month . '.csv';
         $csvdata = iconv('utf-8', 'windows-1251', $csvdata);
         file_put_contents($exportFilename, $csvdata);
         $exportLink = wf_Link('?module=cardreport&dloadcsv=' . base64_encode($exportFilename), wf_img('skins/excel.gif', __('Export')), false, '');
     } else {
         $exportLink = '';
     }
     $result = wf_TableBody($tablerows, '100%', '0', 'sortable');
     $result .= __('Total') . ': ' . $totalcount . ' ' . __('payments') . ', ' . __('with total amount') . ': ' . $totalsumm;
     show_window(__('Payment cards usage report') . ' ' . $exportLink, $result);
 }
开发者ID:nightflyza,项目名称:Ubilling,代码行数:58,代码来源:index.php

示例8: mrst_FormShow

 function mrst_FormShow()
 {
     global $altcfg;
     $inputs = __('After clicking the button below for all users will perform the standard procedure reset. By default, this will reinitialize shapers and  MAC bindings.');
     if (!isset($altcfg['MASSRESET_NOCONFIRM'])) {
         $confirmKey = rand(1111, 9999);
         $inputs .= ' ' . __('If you are completely sure of what you wish, enter the following numbers into the next field.') . '<br>';
         $inputs .= wf_HiddenInput('confirmkey', $confirmKey);
         $inputs .= $confirmKey . ' ⇨ ' . wf_TextInput('confirmcheck', '', '', true, 5);
     }
     $inputs .= wf_HiddenInput('runmassreset', 'true') . '<br>';
     $inputs .= wf_Submit(__('I`m ready'));
     $form = wf_Form("", 'POST', $inputs, 'glamour');
     show_window(__('Mass user reset'), $form);
 }
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:15,代码来源:index.php

示例9: dhcp_show_templates

 function dhcp_show_templates()
 {
     $allTemplates = rcms_scandir(CONFIG_PATH . 'dhcp/');
     $result = '';
     if (!empty($allTemplates)) {
         foreach ($allTemplates as $each) {
             $templateData = file_get_contents(CONFIG_PATH . 'dhcp/' . $each);
             $templateData = nl2br($templateData);
             $result .= wf_modal($each, $each, $templateData, 'ubButton', 800, 600);
         }
     } else {
         $result = __('Nothing found');
     }
     show_window(__('Global templates'), $result);
 }
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:15,代码来源:index.php

示例10: web_UserGenForm

 function web_UserGenForm()
 {
     $alltariffs_raw = zb_TariffsGetAll();
     $alltariffs = array();
     if (!empty($alltariffs_raw)) {
         foreach ($alltariffs_raw as $it => $eachtariff) {
             $alltariffs[$eachtariff['name']] = $eachtariff['name'];
         }
     }
     $inputs = wf_TextInput('gencount', __('Count of users to generate'), '', true);
     $inputs .= wf_Selector('gentariff', $alltariffs, __('Existing tariff for this users'), '', true);
     $inputs .= multinet_service_selector() . ' ' . __('Service for new users') . wf_tag('br');
     $inputs .= wf_CheckInput('fastsqlgen', __('Fast SQL Inserts - need to shutdown stargazer'), true, false);
     $inputs .= wf_Submit(__('Go!'));
     $result = wf_Form("", "POST", $inputs, 'glamour');
     show_window(__('Sample user generator'), $result);
 }
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:17,代码来源:index.php

示例11: show_window

            }
            //reports
            if (wf_CheckGet(array('reports'))) {
                if (wf_CheckGet(array('ajaxtremains'))) {
                    $warehouse->{$avidity}['A']['SEENOEVIL']();
                }
                if (wf_CheckGet(array('calendarops'))) {
                    show_window(__('Operations in the context of time'), $warehouse->reportCalendarOps());
                    $warehouse->{$avidity}['M']['FALL']($warehouse::URL_ME . '&' . $warehouse::URL_REPORTS . '&' . 'totalremains=true');
                }
                if (wf_CheckGet(array('totalremains'))) {
                    $calendarLink = wf_Link($warehouse::URL_ME . '&' . $warehouse::URL_REPORTS . '&calendarops=true', wf_img('skins/icon_calendar.gif', __('Operations in the context of time')), false, '');
                    $dateRemainsLink = wf_Link($warehouse::URL_ME . '&' . $warehouse::URL_REPORTS . '&dateremains=true', wf_img('skins/ukv/report.png', __('Date remains')));
                    show_window(__('The remains in all storages') . ' ' . $calendarLink . ' ' . $dateRemainsLink, $warehouse->reportAllStoragesRemains());
                    $warehouse->{$avidity}['M']['FALL']();
                }
                if (wf_CheckGet(array('dateremains'))) {
                    show_window(__('Date remains'), $warehouse->reportDateRemains());
                    $warehouse->{$avidity}['M']['FALL']();
                }
            }
            $warehouse->{$avidity}['M']['FRONT']();
        } else {
            show_error(__('No license key available'));
        }
    } else {
        show_error(__('This module is disabled'));
    }
} else {
    show_error(__('Permission denied'));
}
开发者ID:carriercomm,项目名称:Ubilling,代码行数:31,代码来源:index.php

示例12: define

<?php

if (!defined('SLIDER_PATH')) {
    define('SLIDER_PATH', DATA_PATH . 'slider/');
}
show_window('', @file_get_contents(SLIDER_PATH . 'code.html'));
开发者ID:Parashutik,项目名称:ReloadCMS,代码行数:6,代码来源:index.php

示例13: linksdb

<?php

////////////////////////////////////////////////////////////////////////////////
//   Copyright (C) ReloadCMS Development Team                                 //
//   http://reloadcms.com                                                     //
//   This product released under GNU General Public License v2                //
////////////////////////////////////////////////////////////////////////////////
$filesdb = new linksdb(DOWNLOADS_DATAFILE);
$files = array_reverse($filesdb->getLastFiles(10));
$i = 2;
$lst_c_id = -1;
if (!empty($files)) {
    $result = '<ul style="margin: 0px 0px 0px 0px; text-indent: 0px; list-style-type: none; padding: 0px 0px 0px 0px;">';
    foreach ($files as $id) {
        if ($lst_c_id !== $id[0]) {
            $result .= '<li style="text-align: center"><a href="?module=filesdb&amp;id=' . ($id[0] + 1) . '" style="font-weight: bold;">' . $filesdb->data[$id[0]]['name'] . '</a></li>';
            $lst_c_id = $id[0];
        }
        $result .= '<li class="row' . $i . '"><a href="?module=filesdb&amp;id=' . ($id[0] + 1) . '&amp;fid=' . ($id[1] + 1) . '">' . $filesdb->data[$id[0]]['files'][$id[1]]['name'] . '</a></li>';
        $i++;
        if ($i > 3) {
            $i = 2;
        }
    }
    $result .= '</ul>';
    show_window(__('Last files'), $result);
}
开发者ID:Parashutik,项目名称:ReloadCMS,代码行数:27,代码来源:index.php

示例14: vf

<?php

if (cfr('USERPROFILE')) {
    if (isset($_GET['username'])) {
        $login = vf($_GET['username']);
        $login = trim($login);
        try {
            $profile = new UserProfile($login);
            show_window(__('User profile'), $profile->render());
        } catch (Exception $exception) {
            show_window(__('Error'), __('Strange exeption') . ': ' . wf_tag('pre') . $exception->getMessage() . wf_tag('pre', true));
        }
    } else {
        throw new Exception('GET_NO_USERNAME');
    }
}
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:16,代码来源:index.php

示例15: downloadUserDocument

 /**
  * downloads previous users document and check it validity
  * 
  * @param $documentid id of existing document
  * 
  * @return void
  */
 public function downloadUserDocument($documentid)
 {
     $documentid = vf($documentid, 3);
     if (!empty($documentid)) {
         if (isset($this->userDocuments[$documentid])) {
             $documentFileName = $this->userDocuments[$documentid]['path'];
             $fullPath = $this->dOCUMENTS_PATH . $documentFileName;
             zbs_DownloadFile($fullPath, 'docx');
         } else {
             show_window(__('Sorry'), __('No such document'));
         }
     }
 }
开发者ID:nightflyza,项目名称:Ubilling,代码行数:20,代码来源:api.documents.php


注:本文中的show_window函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。