本文整理汇总了PHP中wf_tag函数的典型用法代码示例。如果您正苦于以下问题:PHP wf_tag函数的具体用法?PHP wf_tag怎么用?PHP wf_tag使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了wf_tag函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: render
/**
* Renders list of available SMS in queue with some controls
*
* @return string
*/
public function render()
{
$result = '';
if (!empty($this->queue)) {
$cells = wf_TableCell(__('Date'));
$cells .= wf_TableCell(__('Mobile'));
$cells .= wf_TableCell(__('Actions'));
$rows = wf_TableRow($cells, 'row1');
foreach ($this->queue as $io => $each) {
$cells = wf_TableCell($each['date']);
$cells .= wf_TableCell($each['number']);
$actLinks = wf_modalAuto(wf_img('skins/icon_search_small.gif', __('Preview')), __('Preview'), $this->smsPreview($each), '');
$actLinks .= wf_JSAlert('?module=tsmsqueue&deletesms=' . $each['filename'], web_delete_icon(), __('Are you serious'));
$cells .= wf_TableCell($actLinks);
$rows .= wf_TableRow($cells, 'row3');
}
$result = wf_TableBody($rows, '100%', 0, 'sortable');
} else {
$result .= wf_tag('span', false, 'alert_info');
$result .= wf_tag('center', false);
$result .= __('Nothing found');
$result .= wf_tag('center', true);
$result .= wf_tag('span', true);
}
return $result;
}
示例2: createDialog
/**
* returns logout dialog localised template
*
* @return string
*/
protected function createDialog()
{
$autoLogoutTimerContainer = wf_tag('div', false, '', 'id="idledialog" title="' . __('Your session is about to expire!') . '"');
$autoLogoutTimerContainer .= wf_tag('span', false, 'ui-icon ui-icon-alert', 'style="float:left; margin:0 7px 50px 0;"') . wf_tag('span', true);
$autoLogoutTimerContainer .= __('You will be logged off in') . ' ';
$autoLogoutTimerContainer .= wf_tag('span', false, '', 'id="dialog-countdown" style="font-weight:bold"') . wf_tag('span', true);
$autoLogoutTimerContainer .= ' ' . __('seconds') . wf_delimiter();
$autoLogoutTimerContainer .= wf_tag('center', false) . wf_tag('img', false, '', 'src="skins/idleicon.gif" width="160"') . wf_tag('center', true);
$autoLogoutTimerContainer .= wf_tag('div', true);
return $autoLogoutTimerContainer;
}
示例3: 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);
}
示例4: renderSearchInput
/**
* Renders search form
*
* @return string
*/
public function renderSearchInput()
{
$result = '';
if ($this->alterConf['GLOBALSEARCH_ENABLED']) {
$result .= $this->styles;
$result .= $this->jsRuntime;
$result .= wf_tag('input', false, '.ui-autocomplete', 'type="text" id="globalsearch" name="globalsearchquery"' . $this->placeholder);
$result .= wf_tag('input', false, '', 'type="hidden" id="globalsearch_type" name="globalsearch_type" value="" ');
} else {
$result = wf_tag('input', false, '', 'type="text" name="partialaddr"' . $this->placeholder);
}
$result .= '';
return $result;
}
示例5: web_FDBTableFiltersForm
/**
* Returns FDB cache lister MAC filters setup form
*
* @return string
*/
function web_FDBTableFiltersForm()
{
$currentFilters = '';
$oldFilters = zb_StorageGet('FDBCACHEMACFILTERS');
if (!empty($oldFilters)) {
$currentFilters = base64_decode($oldFilters);
}
$inputs = __('One MAC address per line') . wf_tag('br');
$inputs .= wf_TextArea('newmacfilters', '', $currentFilters, true, '40x10');
$inputs .= wf_HiddenInput('setmacfilters', 'true');
$inputs .= wf_CheckInput('deletemacfilters', __('Cleanup'), true, false);
$inputs .= wf_Submit(__('Save'));
$result = wf_Form('', 'POST', $inputs, 'glamour');
return $result;
}
示例6: 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);
}
示例7: render
/**
* Just demonstration of unstandart widgets usage
*
* @return string
*/
public function render()
{
$angle = rand(160, 280);
$result = wf_tag('style');
$result .= 'body.transform {
transform:rotate(' . $angle . 'deg);
-ms-transform:rotate(' . $angle . 'deg);
-webkit-transform:rotate(' . $angle . 'deg);
}
';
$result .= wf_tag('style', true);
$result .= wf_tag('script', false, '', '');
$result .= '
document.body.className = \'transform\';
setTimeout(function(){ document.body.className = \'\'; },3000);';
$result .= wf_tag('script', true);
return $result;
}
示例8: loadForm
/**
* Stores raw login form into private property
*
* @param bool $br
* @param bool $container
*
* @return void
*/
protected function loadForm($br, $container)
{
$this->breaks = $br;
$this->container = $container;
if (file_exists('DEMO_MODE')) {
$this->loginPreset = 'admin';
$this->passwordPreset = 'demo';
}
if ($this->container) {
$this->form .= wf_tag('div', false, 'ubLoginContainer');
}
$inputs = wf_HiddenInput('login_form', '1');
$inputs .= wf_TextInput('username', __('Login'), $this->loginPreset, $this->breaks, $this->inputSize);
$inputs .= wf_PasswordInput('password', __('Password'), $this->passwordPreset, $this->breaks, $this->inputSize);
$inputs .= wf_Submit(__('Log in'));
$this->form .= wf_Form("", 'POST', $inputs, 'ubLoginForm');
if ($this->container) {
$this->form .= wf_tag('div', true);
}
}
示例9: web_SignupsGraphYear
function web_SignupsGraphYear($year)
{
global $ubillingConfig;
$altCfg = $ubillingConfig->getAlter();
$cemeteryEnabled = @$altCfg['CEMETERY_ENABLED'] ? true : false;
if ($cemeteryEnabled) {
$cemetery = new Cemetery();
}
$year = vf($year);
$yearcount = zb_SignupsGetCountYear($year);
$maxsignups = max($yearcount);
$allmonths = months_array();
$totalcount = 0;
$tablecells = wf_TableCell('');
$tablecells .= wf_TableCell(__('Month'));
$tablecells .= wf_TableCell(__('Signups'));
if ($cemeteryEnabled) {
$tablecells .= wf_TableCell(__('Dead souls'));
$tablecells .= wf_TableCell('', '10%');
}
$tablecells .= wf_TableCell(__('Visual'), '50%');
$tablerows = wf_TableRow($tablecells, 'row1');
foreach ($yearcount as $eachmonth => $count) {
$totalcount = $totalcount + $count;
$tablecells = wf_TableCell($eachmonth);
$tablecells .= wf_TableCell(wf_Link('?module=report_signup&month=' . $year . '-' . $eachmonth, rcms_date_localise($allmonths[$eachmonth])));
$tablecells .= wf_TableCell($count);
if ($cemeteryEnabled) {
$deadDateMask = $year . '-' . $eachmonth . '-';
$deadCount = $cemetery->getDeadDateCount($deadDateMask);
$deadBar = web_barTariffs($count, $deadCount);
$tablecells .= wf_TableCell($deadCount);
$tablecells .= wf_TableCell($deadBar);
}
$tablecells .= wf_TableCell(web_bar($count, $maxsignups), '', '', 'sorttable_customkey="' . $count . '"');
$tablerows .= wf_TableRow($tablecells, 'row3');
}
$result = wf_TableBody($tablerows, '100%', '0', 'sortable');
$result .= wf_tag('b', false) . __('Total') . ': ' . $totalcount . wf_tag('b', true);
show_window(__('User signups by year') . ' ' . $year, $result);
}
示例10: ts_EmployeeMonthGraphs
function ts_EmployeeMonthGraphs()
{
$curmonth = curmonth();
$employees = ts_GetAllEmployee();
$month_jobs_q = "SELECT `workerid`,`jobid` from `jobs` WHERE `date` LIKE '" . $curmonth . "%'";
$alljobs = simple_queryall($month_jobs_q);
$jobtypes = ts_GetAllJobtypes();
$jobdata = array();
$result = '';
if (!empty($employees)) {
if (!empty($alljobs)) {
foreach ($alljobs as $io => $eachjob) {
if (isset($jobdata[$eachjob['workerid']][$eachjob['jobid']])) {
$jobdata[$eachjob['workerid']][$eachjob['jobid']]++;
} else {
$jobdata[$eachjob['workerid']][$eachjob['jobid']] = 1;
}
}
}
//build graphs for each employee
if (!empty($jobdata)) {
foreach ($jobdata as $employee => $each) {
$employeeName = isset($employees[$employee]) ? $employees[$employee] : __('Deleted');
$result .= wf_tag('h3', false) . $employeeName . wf_tag('h3', true);
$rows = '';
if (!empty($each)) {
foreach ($each as $jobid => $count) {
$cells = wf_TableCell(@$jobtypes[$jobid], '40%');
$cells .= wf_TableCell($count, '20%');
$cells .= wf_TableCell(web_bar($count, sizeof($alljobs)), '40%');
$rows .= wf_TableRow($cells, 'row3');
}
}
$result .= wf_TableBody($rows, '100%', 0);
$result .= wf_delimiter();
}
}
}
return $result;
}
示例11: renderUsageList
/**
* Returns container of succefull UHW usages
*
* @return string
*/
public function renderUsageList()
{
$result = '';
$result .= wf_tag('table', false, 'display compact', 'id="uhwlisthp"');
$result .= wf_tag('thead', false);
$tablecells = wf_TableCell(__('ID'));
$tablecells .= wf_TableCell(__('Date'));
$tablecells .= wf_TableCell(__('Password'));
$tablecells .= wf_TableCell(__('Login'));
$tablecells .= wf_TableCell(__('Address'));
$tablecells .= wf_TableCell(__('Real name'));
$tablecells .= wf_TableCell(__('IP'));
$tablecells .= wf_TableCell(__('NHID'));
$tablecells .= wf_TableCell(__('Old MAC'));
$tablecells .= wf_TableCell(__('New MAC'));
$result .= wf_TableRow($tablecells);
$result .= wf_tag('thead', true);
$result .= wf_tag('table', true);
$columns = array('ID', 'Date', 'Password', 'Login', 'Address', 'Real name', 'IP', 'NHID', 'Old MAC', 'New MAC');
$result = wf_JqDtLoader($columns, '?module=uhw&ajax=true', false, 'users', 100);
return $result;
}
示例12: sn_SnmpParseFdbExtract
/**
* Extracts array data for some mac from sn_SnmpParseFdbCacheArray results
*
* @param array $data
*
* @return string
*/
function sn_SnmpParseFdbExtract($data)
{
$result = '';
$modalContent = '';
if (!empty($data)) {
if (sizeof($data) == 1) {
foreach ($data as $io => $each) {
$result .= $each;
}
} else {
foreach ($data as $io => $each) {
$modalContent .= $each . wf_tag('br');
}
$result .= $each . ' ' . wf_modal(wf_img_sized('skins/menuicons/switches.png', __('Switches'), '12', '12'), __('Switches'), $modalContent, '', '600', '400');
}
}
return $result;
}
示例13: renderEditForm
/**
* returns some build passport edit form
*
* @praram $buildid existing build id
*
* @return string
*/
public function renderEditForm($buildid)
{
$buildid = vf($buildid, 3);
if (isset($this->data[$buildid])) {
$currentData = $this->data[$buildid];
} else {
$currentData = array();
}
$inputs = wf_HiddenInput('savebuildpassport', $buildid);
$inputs .= wf_Selector('powner', $this->ownersArr, __('Owner'), @$currentData['owner'], true);
$inputs .= wf_TextInput('pownername', __('Owner name'), @$currentData['ownername'], true, 30);
$inputs .= wf_TextInput('pownerphone', __('Owner phone'), @$currentData['ownerphone'], true, 30);
$inputs .= wf_TextInput('pownercontact', __('Owner contact person'), @$currentData['ownercontact'], true, 30);
$keys = @$currentData['keys'] == 1 ? true : false;
$inputs .= wf_CheckInput('pkeys', __('Keys available'), true, $keys);
$inputs .= wf_TextInput('paccessnotices', __('Build access notices'), @$currentData['accessnotices'], true, 40);
$inputs .= wf_Selector('pfloors', $this->floorsArr, __('Floors'), @$currentData['floors'], false);
$inputs .= wf_Selector('pentrances', $this->entrancesArr, __('Entrances'), @$currentData['entrances'], false);
$inputs .= wf_TextInput('papts', __('Apartments'), @$currentData['apts'], true, 5);
$inputs .= __('Notes') . wf_tag('br');
$inputs .= wf_TextArea('pnotes', '', @$currentData['notes'], true, '50x6');
$inputs .= wf_Submit(__('Save'));
$result = wf_Form('', 'POST', $inputs, 'glamour');
return $result;
}
示例14: render
/**
* Renders user profile with all loaded data
*
* @return string
*/
public function render()
{
//all configurable features must be received via getters
$profile = '';
//activity and other flags
$passiveicon = $this->userdata['Passive'] ? wf_img_sized('skins/icon_passive.gif', '', '', '12') . ' ' : '';
$downicon = $this->userdata['Down'] ? wf_img_sized('skins/icon_down.gif', '', '', '12') . ' ' : '';
$activity = $this->userdata['Cash'] < '-' . $this->userdata['Credit'] ? wf_img_sized('skins/icon_inactive.gif', '', '', '12') . ' ' . __('No') : wf_img_sized('skins/icon_active.gif', '', '', '12') . ' ' . __('Yes');
// user linking controller
$profile .= $this->getUserLinking();
$profile .= wf_tag('table', false, '', self::MAIN_TABLE_STYLE);
//external profile container
$profile .= wf_tag('tbody', false);
$profile .= wf_tag('tr', false);
$profile .= wf_tag('td', false, '', 'valign="top"');
$profile .= wf_tag('table', false, '', self::MAIN_TABLE_STYLE);
//main profile data
$profile .= wf_tag('tbody', false);
//address row and controls
$profile .= $this->addRow(__('Full address') . $this->getTaskCreateControl(), $this->useraddress . $this->getBuildControls());
//apt data like floor and entrance row
$profile .= $this->addRow(__('Entrance') . ', ' . __('Floor'), @$this->aptdata['entrance'] . ' ' . @$this->aptdata['floor']);
//realname row
$profile .= $this->addRow(__('Real name') . $this->getPhotostorageControls() . $this->getPassportDataControl(), $this->realname, true);
//contract row
$profile .= $this->addRow(__('Contract'), $this->contract, false);
//contract date row
$profile .= $this->getContractDate();
//assigned agents row
$profile .= $this->getAgentsControls();
//old corporate users aka userlinking
$profile .= $this->getCorporateControls();
//phone
$profile .= $this->addRow(__('Phone'), $this->phone);
//and mobile data rows
$profile .= $this->addRow(__('Mobile'), $this->mobile);
//Email data row
$profile .= $this->addRow(__('Email'), $this->mail);
//payment ID data
$profile .= $this->addRow(__('Payment ID'), $this->paymentid, true);
//LAT data row
$profile .= $this->getUserLat();
//login row
$profile .= $this->addRow(__('Login'), $this->userdata['login'], true);
//password row
$profile .= $this->addRow(__('Password'), $this->getUserPassword(), true);
//User IP data and extended networks controls if available
$profile .= $this->addRow(__('IP'), $this->userdata['IP'] . $this->getExtNetsControls(), true);
//MAC address row
$profile .= $this->addRow(__('MAC') . ' ' . $this->getSearchmacControl() . ' ' . $this->getProfileFdbSearchControl(), $this->mac);
//User tariff row
$profile .= $this->addRow(__('Tariff') . $this->getTariffInfoControls($this->userdata['Tariff']), $this->userdata['Tariff'] . $this->getTariffInfoContrainer(), true);
//Tariff change row
$profile .= $this->addRow(__('Planned tariff change') . $this->getTariffInfoControls($this->userdata['TariffChange']), $this->userdata['TariffChange']);
//old CaTv backlink if needed
$profile .= $this->getCatvBacklinks();
//Speed override row
$profile .= $this->addRow(__('Speed override'), $this->speedoverride);
// signup pricing row
$profile .= $this->getSignupPricing();
//User current cash row
$profile .= $this->addRow(__('Balance'), $this->getUserCash(), true);
//User credit row & easycredit control if needed
$profile .= $this->addRow(__('Credit') . ' ' . $this->getEasyCreditController(), $this->userdata['Credit'], true);
//credit expire row
$profile .= $this->addRow(__('Credit expire'), $this->getUserCreditExpire());
//Prepayed traffic
$profile .= $this->addRow(__('Prepayed traffic'), $this->userdata['FreeMb']);
//finance activity row
$profile .= $this->addRow(__('Active') . $this->getCemeteryControls(), $activity);
//DN online detection row
$profile .= $this->getUserOnlineDN();
//Always online flag row
$profile .= $this->addRow(__('Always Online'), web_trigger($this->userdata['AlwaysOnline']));
//Detail stats flag row
$profile .= $this->addRow(__('Disable detailed stats'), web_trigger($this->userdata['DisabledDetailStat']));
//Frozen aka passive flag row
$profile .= $this->addRow(__('Freezed'), $passiveicon . web_trigger($this->userdata['Passive']), true);
//Disable aka Down flag row
$profile .= $this->addRow(__('Disabled'), $downicon . web_trigger($this->userdata['Down']), true);
//Connection details row
$profile .= $this->getUserConnectionDetails();
//User notes row
$profile .= $this->addRow(__('Notes'), zb_UserGetNotes($this->login) . $this->getAdcommentsIndicator());
$profile .= wf_tag('tbody', true);
$profile .= wf_tag('table', true);
$profile .= wf_tag('td', true);
//end of main profile container
$profile .= wf_tag('td', false, '', 'valign="top" width="10%"');
//profile plugins container
$profile .= $this->plugins;
$profile .= wf_tag('td', true);
// end of plugins container
$profile .= wf_tag('tr', true);
// close profile+plugins row
//.........这里部分代码省略.........
示例15: renderGraphs
/**
* Renders per-payment system openpayz transaction charts
*
* @return string
*/
public function renderGraphs()
{
$psysdata = array();
$gcAllData = array();
$gcMonthData = array();
$result = wf_Link('?module=openpayz', __('Back'), true, 'ubButton');
if (!empty($this->allTransactions)) {
foreach ($this->allTransactions as $io => $each) {
$timestamp = strtotime($each['date']);
$curMonth = curmonth();
$date = date("Y-m-01", $timestamp);
if (isset($psysdata[$each['paysys']][$date]['count'])) {
$psysdata[$each['paysys']][$date]['count']++;
$psysdata[$each['paysys']][$date]['summ'] = $psysdata[$each['paysys']][$date]['summ'] + $each['summ'];
} else {
$psysdata[$each['paysys']][$date]['count'] = 1;
$psysdata[$each['paysys']][$date]['summ'] = $each['summ'];
}
//all time stats
if (isset($gcAllData[$each['paysys']])) {
$gcAllData[$each['paysys']]++;
} else {
$gcAllData[$each['paysys']] = 1;
}
//current month stats
if (ispos($date, $curMonth . '-')) {
if (isset($gcMonthData[$each['paysys']])) {
$gcMonthData[$each['paysys']]++;
} else {
$gcMonthData[$each['paysys']] = 1;
}
}
}
}
$chartOpts = "chartArea: { width: '90%', height: '90%' }, legend : {position: 'right'}, ";
if (!empty($gcAllData)) {
$gcAllPie = wf_gcharts3DPie($gcAllData, __('All time'), '400px', '400px', $chartOpts);
} else {
$gcAllPie = '';
}
if (!empty($gcMonthData)) {
$gcMonthPie = wf_gcharts3DPie($gcMonthData, __('Current month'), '400px', '400px', $chartOpts);
} else {
$gcMonthPie = '';
}
$gcells = wf_TableCell($gcAllPie);
$gcells .= wf_TableCell($gcMonthPie);
$grows = wf_TableRow($gcells);
$result .= wf_TableBody($grows, '100%', 0, '');
if (!empty($psysdata)) {
foreach ($psysdata as $psys => $opdate) {
$gdata = __('Date') . ',' . __('Count') . ',' . __('Cash') . "\n";
foreach ($opdate as $datestamp => $optrans) {
$gdata .= $datestamp . ',' . $optrans['count'] . ',' . $optrans['summ'] . "\n";
}
$result .= wf_tag('div', false, '', '');
$result .= wf_tag('h2') . $psys . wf_tag('h2', true) . wf_delimiter();
$result .= wf_Graph($gdata, '800', '200', false);
$result .= wf_tag('div', true);
}
}
return $result;
}