本文整理汇总了PHP中wf_delimiter函数的典型用法代码示例。如果您正苦于以下问题:PHP wf_delimiter函数的具体用法?PHP wf_delimiter怎么用?PHP wf_delimiter使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了wf_delimiter函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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";
}
}
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:27,代码来源:api.migration.php
示例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;
}
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:14,代码来源:index.php
示例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);
}
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:16,代码来源:api.ymaps.php
示例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;
}
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:16,代码来源:api.idlelogout.php
示例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);
}
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:14,代码来源:index.php
示例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;
}
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:24,代码来源:index.php
示例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;
}
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:40,代码来源:index.php
示例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;
}
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:36,代码来源:api.ticketing.php
示例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'));
}
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:31,代码来源:index.php
示例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);
}
}
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:83,代码来源:api.ukv.php
示例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);
}
开发者ID:carriercomm,项目名称:Ubilling,代码行数:18,代码来源:api.networking.php
示例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();
}
}
}
}
}
开发者ID:nightflyza,项目名称:Ubilling,代码行数:21,代码来源:api.userprofile.php
示例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'));
}
开发者ID:nightflyza,项目名称:Ubilling,代码行数:30,代码来源:index.php
示例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;
}
开发者ID:syscenter,项目名称:ubilling-sms,代码行数:30,代码来源:index.php
示例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
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:31,代码来源:index.php
示例16: web_PayFindForm
function web_PayFindForm()
{
//try to save calendar states
if (wf_CheckPost(array('datefrom', 'dateto'))) {
$curdate = $_POST['dateto'];
$yesterday = $_POST['datefrom'];
} else {
$curdate = date("Y-m-d", time() + 60 * 60 * 24);
$yesterday = curdate();
}
$inputs = __('Date');
$inputs .= wf_DatePickerPreset('datefrom', $yesterday) . ' ' . __('From');
$inputs .= wf_DatePickerPreset('dateto', $curdate) . ' ' . __('To');
$inputs .= wf_delimiter();
$inputs .= wf_CheckInput('type_payid', '', false, false);
$inputs .= wf_TextInput('payid', __('Search by payment ID'), '', true, '10');
$inputs .= wf_CheckInput('type_contract', '', false, false);
$inputs .= wf_TextInput('contract', __('Search by users contract'), '', true, '10');
$inputs .= wf_CheckInput('type_login', '', false, false);
$inputs .= wf_TextInput('login', __('Search by users login'), '', true, '10');
$inputs .= wf_CheckInput('type_summ', '', false, false);
$inputs .= wf_TextInput('summ', __('Search by payment sum'), '', true, '10');
$inputs .= wf_CheckInput('type_cashtype', '', false, false);
$inputs .= web_CashTypeSelector() . wf_tag('label', false, '', 'for="cashtype"') . __('Search by cash type') . wf_tag('label', true) . wf_tag('br');
$inputs .= wf_CheckInput('type_cashier', '', false, false);
$inputs .= web_PayFindCashierSelector();
$inputs .= wf_CheckInput('type_tagid', '', false, false);
$inputs .= web_PayFindTagidSelector();
$inputs .= wf_CheckInput('type_paysys', '', false, false);
$inputs .= web_PaySysPercentSelector();
$inputs .= wf_Link("?module=payfind&confpaysys=true", __('Settings')) . wf_tag('br');
$inputs .= wf_CheckInput('only_positive', __('Show only positive payments'), true, false);
$inputs .= wf_CheckInput('numeric_notes', __('Show payments with numeric notes'), true, false);
$inputs .= wf_CheckInput('numericonly_notes', __('Show payments with only numeric notes'), true, false);
//ugly spacing hack
$inputs .= ' ' . web_PayFindTableSelect() . wf_delimiter();
$inputs .= wf_HiddenInput('dosearch', 'true');
$inputs .= wf_Submit(__('Search'));
$result = wf_Form('', 'POST', $inputs, 'glamour');
$result .= wf_Link("?module=report_finance", __('Back'), true, 'ubButton');
return $result;
}
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:42,代码来源:index.php
示例17: docsis_ModemProfileShow
function docsis_ModemProfileShow($modemid)
{
$modemid = vf($modemid, 3);
$data = docsis_ModemGetData($modemid);
$netdata = array();
$netdata_q = "SELECT * from `nethosts` where `ip`='" . $data['ip'] . "'";
$netdata = simple_queryall($netdata_q);
$netdata = print_r($netdata, true);
$netdata = nl2br($netdata);
$alluserips = zb_UserGetAllIPs();
$alluserips = array_flip($alluserips);
$result = wf_Link("?module=docsis", __('Back'), false, 'ubButton');
$ajaxcontainer = wf_AjaxLoader() . wf_AjaxLink("?module=docsis&ajaxsnmp=" . $modemid, __('Renew modem data'), 'ajaxdata', true, 'ubButton') . wf_tag('div', false, '', 'id="ajaxdata"') . wf_tag('div', true);
$result .= wf_modal(__('Modem diagnostics'), __('Modem diagnostics'), $ajaxcontainer, 'ubButton', '500', '400');
$result .= wf_modal(__('Networking data'), __('Networking data'), $netdata, 'ubButton', '500', '400');
$result .= wf_delimiter();
if (!empty($data)) {
$cells = wf_TableCell(__('ID'));
$cells .= wf_TableCell($data['id'] . ' ' . wf_JSAlert("?module=docsis&deletemodem=" . $modemid, web_delete_icon(), __('Removing this may lead to irreparable results')));
$rows = wf_TableRow($cells, 'row3');
$cells = wf_TableCell(__('IP'));
$cells .= wf_TableCell($data['ip']);
$rows .= wf_TableRow($cells, 'row3');
$cells = wf_TableCell(__('MAC Lan'));
$cells .= wf_TableCell($data['maclan']);
$rows .= wf_TableRow($cells, 'row3');
$cells = wf_TableCell(__('Date'));
$cells .= wf_TableCell($data['date']);
$rows .= wf_TableRow($cells, 'row3');
if (isset($alluserips[$data['userbind']])) {
$bindedLogin = $alluserips[$data['userbind']];
$profileLink = ' ' . wf_Link('?module=userprofile&username=' . $bindedLogin, web_profile_icon() . ' ' . $bindedLogin, false, '');
} else {
$profileLink = '';
}
$cells = wf_TableCell(__('Linked user'));
$cells .= wf_TableCell($data['userbind'] . $profileLink);
$rows .= wf_TableRow($cells, 'row3');
$cells = wf_TableCell(__('Notes'));
$cells .= wf_TableCell($data['note']);
$rows .= wf_TableRow($cells, 'row3');
$result .= wf_TableBody($rows, '100%', '0', '');
$inputs = wf_TextInput('edituserbind', __('Linked user'), $data['userbind'], true, '40');
$inputs .= wf_TextInput('editnote', __('Notes'), $data['note'], true, '40');
$inputs .= wf_Submit(__('Save'));
$form = wf_Form("", 'POST', $inputs, 'glamour');
$result .= $form;
show_window(__('Modem profile'), $result);
} else {
show_window(__('Error'), __('Strange exeption'));
}
}
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:52,代码来源:index.php
示例18: web_opt82_ShowForm
/**
* Returns nethost option modify form
*
* @param $allLeases - all available leases parsed from log
* @param $login - user`s login
*
* @return string
*/
function web_opt82_ShowForm($allLeases, $login)
{
$result = '';
$currentData = opt82_GetCurrentOptions($login);
$cells = wf_TableCell(__('IP'));
$cells .= wf_TableCell($currentData['hostip']);
$rows = wf_TableRow($cells, 'row3');
$cells = wf_TableCell(__('Remote-ID'));
$cells .= wf_TableCell($currentData['remoteid']);
$rows .= wf_TableRow($cells, 'row3');
$cells = wf_TableCell(__('Circuit-ID'));
$cells .= wf_TableCell($currentData['circuitid']);
$rows .= wf_TableRow($cells, 'row3');
$currentTable = wf_TableBody($rows, '30%', '0', '');
$result .= $currentTable;
$result .= wf_delimiter();
$inputs = wf_Selector('newopt82', $allLeases, __('New DHCP option 82'), '', true);
$inputs .= wf_HiddenInput('edithostid', $currentData['hostid']);
$inputs .= wf_HiddenInput('edithostip', $currentData['hostip']);
$inputs .= wf_CheckInput('setrandomopt82', __('Set random'), true, false);
$inputs .= wf_Submit(__('Save'));
$form = wf_Form('', 'POST', $inputs, 'glamour');
$result .= $form;
$result .= wf_delimiter();
$result .= web_UserControls($login);
return $result;
}
开发者ID:nightflyza,项目名称:Ubilling,代码行数:35,代码来源:index.php
示例19: web_UserSearchContractForm
/**
* Returns custom contract search form
*
* @global object $ubillingConfig
* @return string
*/
function web_UserSearchContractForm()
{
$result = '';
global $ubillingConfig;
$altercfg = $ubillingConfig->getAlter();
if (isset($altercfg['SEARCH_CUSTOM_CONTRACT'])) {
if ($altercfg['SEARCH_CUSTOM_CONTRACT']) {
$result .= wf_tag('h3') . __('Contract search') . wf_tag('h3', true);
$inputs = wf_TextInput('searchquery', '', '', false);
$inputs .= wf_HiddenInput('searchtype', 'contract');
$inputs .= wf_Submit(__('Search'));
$result .= wf_Form("", 'POST', $inputs, '');
$result .= wf_delimiter();
}
}
return $result;
}
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:23,代码来源:api.usersearch.php
示例20: web_UserPassportDataShow
/**
* Returns users passport data
*
* @param string $login
* @return string
*/
function web_UserPassportDataShow($login)
{
$login = mysql_real_escape_string($login);
$passportdata = zb_UserPassportDataGet($login);
if (!empty($passportdata)) {
$cells = wf_TableCell(__('Birth date'));
$cells .= wf_TableCell($passportdata['birthdate']);
$rows = wf_TableRow($cells, 'row3');
$cells = wf_TableCell(__('Passport number'));
$cells .= wf_TableCell($passportdata['passportnum']);
$rows .= wf_TableRow($cells, 'row3');
$cells = wf_TableCell(__('Issuing authority'));
$cells .= wf_TableCell($passportdata['passportwho']);
$rows .= wf_TableRow($cells, 'row3');
$cells = wf_TableCell(__('Date of issue'));
$cells .= wf_TableCell($passportdata['passportdate']);
$rows .= wf_TableRow($cells, 'row3');
$cells = wf_TableCell(__('Registration address'));
$cells .= wf_TableCell($passportdata['pcity'] . ' ' . $passportdata['pstreet'] . ' ' . $passportdata['pbuild'] . '/' . $passportdata['papt']);
$rows .= wf_TableRow($cells, 'row3');
$result = wf_TableBody($rows, '100%', '0');
} else {
$result = __('User passport data is empty') . ' ' . __('You can fill them with the appropriate module');
}
if (cfr('PDATA')) {
$result .= wf_delimiter();
$result .= wf_Link("?module=pdataedit&username=" . $login, __('Edit') . ' ' . __('passport data'), false, 'ubButton');
}
return $result;
}
开发者ID:l1ght13aby,项目名称:Ubilling,代码行数:36,代码来源:api.crm.php
注:本文中的wf_delimiter函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论