本文整理汇总了PHP中wf_delimiter函数的典型用法代码示例。如果您正苦于以下问题:PHP wf_delimiter函数的具体用法?PHP wf_delimiter怎么用?PHP wf_delimiter使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了wf_delimiter函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: web_MikbillMigrationNetworksForm
public function web_MikbillMigrationNetworksForm($counter)
{
$period = array('day' => __('day'), 'month' => __('month'));
$inputs = wf_TextInput('db_user', __('Database user'), '', true, 20);
$inputs .= wf_TextInput('db_pass', __('Database password'), '', true, 20);
$inputs .= wf_TextInput('db_host', __('Database host'), '', true, 20);
$inputs .= wf_TextInput('db_name', __('Database name'), 'mikbill', true, 20);
$inputs .= wf_Selector('tariff_period', $period, __('Tariff period'), '', true);
$inputs .= wf_delimiter();
$radius = array('0' => __('no'), '1' => __('yes'));
$nettype = array('dhcpstatic' => 'DHCP static hosts', 'dhcpdynamic' => 'DHCP dynamic hosts', 'dhcp82' => 'DHCP option 82', 'dhcp82_vpu' => 'DHCP option 82 + vlan per user', 'pppstatic' => 'PPP static network', 'pppdynamic' => 'PPP dynamic network', 'other' => 'Other type');
if (isset($counter)) {
for ($i = $counter; $i > 0; $i--) {
$inputs .= wf_TextInput("network[{$i}][start_ip]", __('First IP'), '', true, 26);
$inputs .= wf_TextInput("network[{$i}][last_ip]", __('Last IP'), '', true, 26);
$inputs .= wf_TextInput("network[{$i}][net]", __('Network/CIDR'), '', true, 26);
$inputs .= wf_Selector("network[{$i}][type]", $nettype, __('Network type'), '', true);
$inputs .= wf_Selector("network[{$i}][radius]", $radius, __('Use Radius'), '', true);
$inputs .= wf_delimiter();
}
$inputs .= wf_Submit(__('Send'));
$form = wf_Form("", 'POST', $inputs, 'glamour');
return $form;
} else {
return "error netnum is empty";
}
}
示例2: web_IPChangeFormService
/**
* Returns new user service select form
*
* @return string
*/
function web_IPChangeFormService()
{
global $current_ip;
$inputs = multinet_service_selector() . ' ' . __('New IP service');
$inputs .= wf_delimiter();
$inputs .= wf_Submit(__('Save'));
$result = wf_Form("", 'POST', $inputs, 'floatpanels');
return $result;
}
示例3: um_ShowMapContainer
/**
* Shows map container for builds
*
* @return void
*/
function um_ShowMapContainer()
{
$container = wf_tag('div', false, '', 'id="swmap" style="width: 1000; height:800px;"');
$container .= wf_tag('div', true);
$controls = wf_Link("?module=switchmap", wf_img('skins/ymaps/network.png') . ' ' . __('Switches map'), false, 'ubButton');
$controls .= wf_Link("?module=usersmap", wf_img('skins/ymaps/build.png') . ' ' . __('Builds map'), false, 'ubButton');
$controls .= wf_Link("?module=usersmap&locfinder=true", wf_img('skins/ymaps/edit.png') . ' ' . __('Edit map'), false, 'ubButton');
$controls .= wf_Link("?module=usersmap&clusterer=true", wf_img('skins/ymaps/cluster.png') . ' ' . __('Clusterer'), false, 'ubButton');
$controls .= wf_delimiter(1);
show_window(__('Builds and users map'), $controls . $container);
}
示例4: 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;
}
示例5: 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);
}
示例6: map_controls
/**
* Generates HTML-code of Yandex.Maps control buttons
*
* @return string HTML-code of Yandex.Maps control buttons
*/
private function map_controls()
{
// Controls:
$this->html .= wf_Link(self::URL_MARK_TYPES_LIST, __('Types of marks'), false, 'ubButton');
$this->html .= wf_Link(self::URL_MARKS_LIST, __('VOLS marks'), false, 'ubButton');
$this->html .= wf_Link(self::URL_LINES_LIST, __('VOLS lines'), false, 'ubButton');
switch (true) {
case strpos($_SERVER['REQUEST_URI'], self::URL_MAP_EDIT) !== false:
case strpos($_SERVER['REQUEST_URI'], self::URL_MARK_PLACE) !== false:
case strpos($_SERVER['REQUEST_URI'], self::URL_LINE_PLACE) !== false:
$this->html .= wf_Link(self::URL_MAP_SHOW, __('Save'), false, 'ubButton');
break;
default:
$this->html .= wf_Link(self::URL_MAP_EDIT, __('Edit'), false, 'ubButton');
break;
}
$this->html .= wf_delimiter(1);
return $this->html;
}
示例7: 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;
}
示例8: web_TicketsTAPLister
/**
* Returns typical answer preset insertion form
*
* @return string
*/
function web_TicketsTAPLister()
{
$result = '';
$maxLen = 50;
$allReplies = zb_TicketsTAPgetAll();
if (!empty($allReplies)) {
$result .= wf_delimiter() . wf_tag('h3') . __('Typical answers presets') . wf_tag('h3', true);
$result .= wf_tag('ul', false);
foreach ($allReplies as $io => $each) {
$randId = wf_InputId();
$rawText = trim($each);
$result .= wf_tag('script', false, '', 'language="javascript" type="text/javascript"');
$result .= '
function jsAddReplyText_' . $randId . '() {
var replytext=\'' . json_encode($rawText) . '\';
$("#ticketreplyarea").val(replytext);
}
';
$result .= wf_tag('script', true);
$linkText = htmlspecialchars($rawText);
if (mb_strlen($linkText, 'UTF-8') > $maxLen) {
$linkText = mb_substr($rawText, 0, $maxLen, 'UTF-8') . '..';
} else {
$linkText = $rawText;
}
$result .= wf_tag('li') . wf_tag('a', false, '', 'href="#" onClick="jsAddReplyText_' . $randId . '();"') . $linkText . wf_tag('a', true) . wf_tag('li', true);
}
$result .= wf_tag('ul', true);
}
return $result;
}
示例9: simple_update_field
simple_update_field('switches', 'snmp', $_POST['editsnmp'], "WHERE `id`='" . $switchid . "'");
simple_update_field('switches', 'geo', $_POST['editgeo'], "WHERE `id`='" . $switchid . "'");
if ($_POST['editparentid'] != $switchid) {
simple_update_field('switches', 'parentid', $_POST['editparentid'], "WHERE `id`='" . $switchid . "'");
}
log_register('SWITCH CHANGE [' . $switchid . ']' . ' IP ' . $_POST['editip'] . " LOC `" . $_POST['editlocation'] . "`");
rcms_redirect("?module=switches&edit=" . $switchid);
} else {
show_error(__('Access denied'));
}
}
//render switch edit form
show_window(__('Edit switch'), web_SwitchEditForm($switchid));
//minimap container
if ($altCfg['SWYMAP_ENABLED']) {
if (!empty($switchdata['geo'])) {
show_window(__('Mini-map'), wf_delimiter() . web_SwitchMiniMap($switchdata));
}
}
//downlinks list
web_SwitchDownlinksList($switchid);
//additional comments engine
if ($altCfg['ADCOMMENTS_ENABLED']) {
$adcomments = new ADcomments('SWITCHES');
show_window(__('Additional comments'), $adcomments->renderComments($switchid));
}
show_window('', wf_Link('?module=switches', 'Back', true, 'ubButton'));
}
} else {
show_error(__('Access denied'));
}
示例10: reportTariffs
/**
* renders tariffs popularity report
*
* @return void
*/
public function reportTariffs()
{
$tariffArr = array();
$tariffUsers = array();
$tariffCounter = array();
$userTotalCount = sizeof($this->users);
$result = '';
if (!empty($this->tariffs)) {
foreach ($this->tariffs as $io => $each) {
$tariffArr[$each['id']] = $each['tariffname'];
$tariffCounter[$each['id']]['all'] = 0;
$tariffCounter[$each['id']]['alive'] = 0;
}
}
if (!empty($tariffArr) and !empty($this->users)) {
foreach ($this->users as $io => $eachUser) {
if (!empty($eachUser['tariffid'])) {
$tariffUsers[$eachUser['tariffid']][] = $eachUser;
$tariffCounter[$eachUser['tariffid']]['all'] = $tariffCounter[$eachUser['tariffid']]['all'] + 1;
if ($eachUser['active']) {
$tariffCounter[$eachUser['tariffid']]['alive'] = $tariffCounter[$eachUser['tariffid']]['alive'] + 1;
}
}
}
}
//tariff summary grid
$cells = wf_TableCell(__('Tariff'));
$cells .= wf_TableCell(__('Total'));
$cells .= wf_TableCell(__('Visual'));
$cells .= wf_TableCell(__('Active'));
$rows = wf_TableRow($cells, 'row1');
foreach ($tariffArr as $tariffId => $tariffName) {
$tariffLink = wf_Link(self::URL_REPORTS_MGMT . 'reportTariffs&showtariffusers=' . $tariffId, $tariffName);
$cells = wf_TableCell($tariffLink);
$cells .= wf_TableCell($tariffCounter[$tariffId]['all']);
$cells .= wf_TableCell(web_bar($tariffCounter[$tariffId]['all'], $userTotalCount));
$cells .= wf_TableCell(web_barTariffs($tariffCounter[$tariffId]['alive'], $tariffCounter[$tariffId]['all'] - $tariffCounter[$tariffId]['alive']));
$rows .= wf_TableRow($cells, 'row3');
}
$result .= wf_TableBody($rows, '100%', '0', 'sortable');
//show per tariff users
if (wf_CheckGet(array('showtariffusers'))) {
$tariffSearch = vf($_GET['showtariffusers'], 3);
if (isset($tariffUsers[$tariffSearch])) {
if (!empty($tariffUsers[$tariffSearch])) {
$result .= wf_delimiter();
$result .= wf_tag('h2') . __('Tariff') . ': ' . $tariffArr[$tariffSearch] . wf_tag('h2', true);
$cells = wf_TableCell(__('Contract'), '10%');
$cells .= wf_TableCell(__('Full address'), '31%');
$cells .= wf_TableCell(__('Real Name'), '30%');
$cells .= wf_TableCell(__('Tariff'), '15%');
$cells .= wf_TableCell(__('Cash'), '7%');
$cells .= wf_TableCell(__('Status'), '7%');
$rows = wf_TableRow($cells, 'row1');
foreach ($tariffUsers[$_GET['showtariffusers']] as $io => $eachUser) {
$cells = wf_TableCell($eachUser['contract']);
$fullAddress = $this->userGetFullAddress($eachUser['id']);
$profileLink = wf_Link(self::URL_USERS_PROFILE . $eachUser['id'], web_profile_icon() . ' ', false, '');
$cells .= wf_TableCell($profileLink . $fullAddress);
$cells .= wf_TableCell($eachUser['realname']);
$cells .= wf_TableCell($this->tariffs[$eachUser['tariffid']]['tariffname']);
$cells .= wf_TableCell($eachUser['cash']);
$cells .= wf_TableCell(web_bool_led($eachUser['active'], true));
$rows .= wf_TableRow($cells, 'row3');
}
$result .= wf_TableBody($rows, '100%', '0', 'sortable');
}
}
$printableControl = wf_Link(self::URL_REPORTS_MGMT . 'reportTariffs&showtariffusers=' . $tariffSearch . '&printable=true', wf_img('skins/icon_print.png', __('Print')));
} else {
$printableControl = wf_Link(self::URL_REPORTS_MGMT . 'reportTariffs&printable=true', wf_img('skins/icon_print.png', __('Print')));
}
if (!wf_CheckGet(array('printable'))) {
show_window(__('Tariffs report') . ' ' . $printableControl, $result);
} else {
$this->reportPrintable(__('Tariffs report'), $result);
}
}
示例11: dhcp_show_edit_form
function dhcp_show_edit_form($dhcpid)
{
$dhcpid = vf($dhcpid);
$dhcpnetdata = dhcp_get_data($dhcpid);
$form = '
<form action="" method="POST">
<input type="text" name="editdhcpconfname" value="' . $dhcpnetdata['confname'] . '"> ' . __('DHCP config name') . ' <br>
' . __('DHCP custom subnet template') . ' <br>
<textarea name="editdhcpconfig" cols="50" rows="10">' . $dhcpnetdata['dhcpconfig'] . '</textarea>
<br>
<input type="button" value="' . __('Cleanup') . '" onclick="this.form.elements[\'editdhcpconfig\'].value=\'\'">
<input type="submit" value="' . __('Save') . '">
</form>
';
$form .= wf_delimiter();
$form .= wf_Link("?module=dhcp", __('Back'), false, 'ubButton');
show_window(__('Edit custom subnet template'), $form);
}
示例12: loadPlugins
/**
* loads pofile plugins if enabled into private plugins property
*
* @return void
*/
protected function loadPlugins()
{
if (!empty($this->login)) {
$rawPlugins = $this->loadPluginsRaw('plugins.ini');
if (!empty($rawPlugins)) {
foreach ($rawPlugins as $modulename => $eachplugin) {
if (isset($eachplugin['overlay'])) {
$overlaydata = $this->loadPluginsOverlay($eachplugin['overlaydata']) . wf_delimiter();
$this->plugins .= wf_modal(wf_img_sized('skins/' . $eachplugin['icon'], __($eachplugin['name']), '', self::MAIN_PLUGINS_SIZE), __($eachplugin['name']), $overlaydata, '', 850, 650);
} else {
$this->plugins .= wf_Link('?module=' . $modulename . '&username=' . $this->login, wf_img_sized('skins/' . $eachplugin['icon'], __($eachplugin['name']), '', self::MAIN_PLUGINS_SIZE), false, '') . wf_delimiter();
}
}
}
}
}
示例13: UbillingCache
if (cfr('REPORTTARIFFS')) {
$altCfg = $ubillingConfig->getAlter();
$chartsCache = new UbillingCache();
show_window(__('Popularity of tariffs among users'), web_TariffShowReport());
show_window(__('Planned tariff changes'), web_TariffShowMoveReport());
if (!isset($altCfg['GCHARTS_ENABLED'])) {
$chartsEnabled = true;
} else {
if ($altCfg['GCHARTS_ENABLED']) {
$chartsEnabled = true;
} else {
$chartsEnabled = false;
}
}
//google charts
if ($chartsEnabled) {
$cachingTime = 3600;
$moveCharts = $chartsCache->getCallback('REPORT_TARIFFS_MOVECHART', function () {
return web_TariffShowMoveCharts();
}, $cachingTime);
$tariffCharts = $chartsCache->getCallback('REPORT_TARIFFS_TARIFFHCHART', function () {
return web_TariffShowTariffCharts();
}, $cachingTime);
//rendering charts
show_window(__('Graphs'), $tariffCharts . wf_delimiter() . $moveCharts);
zb_BillingStats(true);
}
} else {
show_error(__('You cant control this module'));
}
示例14: web_TsmsExcludeOpts
function web_TsmsExcludeOpts()
{
$excludedUsers = tsms_GetExcludeUsers();
$alladdress = zb_AddressGetFulladdresslist();
$allrealnames = zb_UserGetAllRealnames();
$allphones = tsms_GetAllMobileNumbers();
$cells = wf_TableCell(__('Login'));
$cells .= wf_TableCell(__('Full address'));
$cells .= wf_TableCell(__('Real Name'));
$cells .= wf_TableCell(__('Phone'));
$cells .= wf_TableCell(__('Actions'));
$rows = wf_TableRow($cells, 'row1');
if (!empty($excludedUsers)) {
foreach ($excludedUsers as $eachlogin => $io) {
$cells = wf_TableCell(wf_Link("?module=userprofile&username=" . $eachlogin, web_profile_icon() . ' ' . $eachlogin));
$cells .= wf_TableCell(@$alladdress[$eachlogin]);
$cells .= wf_TableCell(@$allrealnames[$eachlogin]);
$cells .= wf_TableCell(@$allphones[$eachlogin]);
$cells .= wf_TableCell(wf_JSAlert("?module=turbosms&excludedelete=" . $eachlogin, web_delete_icon(), __('Are you serious')));
$rows .= wf_TableRow($cells, 'row3');
}
}
//adding form
$inputs = wf_TextInput('newexcludelogin', __('User login to exclude from sending'), '', true, '15');
$inputs .= wf_Submit('Save');
$result = wf_TableBody($rows, '100%', '0', 'sortable');
$result .= wf_delimiter();
$result .= wf_Form("", 'POST', $inputs, 'glamour');
return $result;
}
示例15: show_window
} else {
show_window(__('Developer Console'), $phpgrid);
}
// SQL console processing
if (isset($_POST['sqlq'])) {
$newquery = trim($_POST['sqlq']);
if (!empty($newquery)) {
$stripquery = substr($newquery, 0, 70) . '..';
log_register('SQLCONSOLE ' . $stripquery);
ob_start();
// commented due Den1xxx patch
// $query_result=simple_queryall($newquery);
$queried = mysql_query($newquery);
if ($queried === false) {
ob_end_clean();
return show_window('SQL ' . __('Result'), wf_tag('b') . __('Wrong query') . ':' . wf_tag('b', true) . wf_delimiter() . $newquery);
} else {
while (@($row = mysql_fetch_assoc($queried))) {
$query_result[] = $row;
}
$sqlDebugData = ob_get_contents();
ob_end_clean();
log_register('SQLCONSOLE QUERYDONE');
if ($alterconf['DEVCON_VERBOSE_DEBUG']) {
show_window(__('Console debug data'), $sqlDebugData);
}
}
//end of wrong query exeption patch
if (!empty($query_result)) {
if (!isset($_POST['tableresult'])) {
//raw array result