本文整理汇总了PHP中wf_JSAlert函数 的典型用法代码示例。如果您正苦于以下问题:PHP wf_JSAlert函数的具体用法?PHP wf_JSAlert怎么用?PHP wf_JSAlert使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了wf_JSAlert函数 的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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;
}
开发者ID:l1ght13aby, 项目名称:Ubilling, 代码行数:31, 代码来源:index.php
示例2: web_AvailableDBBackupsList
function web_AvailableDBBackupsList()
{
$backupsPath = DATA_PATH . 'backups/sql/';
$availbacks = rcms_scandir($backupsPath);
$result = __('No existing DB backups here');
if (!empty($availbacks)) {
$cells = wf_TableCell(__('Date'));
$cells .= wf_TableCell(__('Size'));
$cells .= wf_TableCell(__('Filename'));
$cells .= wf_TableCell(__('Actions'));
$rows = wf_TableRow($cells, 'row1');
foreach ($availbacks as $eachDump) {
$fileDate = filectime($backupsPath . $eachDump);
$fileDate = date("Y-m-d H:i:s", $fileDate);
$fileSize = filesize($backupsPath . $eachDump);
$fileSize = stg_convert_size($fileSize);
$encodedDumpPath = base64_encode($backupsPath . $eachDump);
$downloadLink = wf_Link('?module=backups&download=' . $encodedDumpPath, $eachDump, false, '');
$actLinks = wf_JSAlert('?module=backups&deletedump=' . $encodedDumpPath, web_delete_icon(), __('Removing this may lead to irreparable results')) . ' ';
$actLinks .= wf_Link('?module=backups&download=' . $encodedDumpPath, wf_img('skins/icon_download.png', __('Download')), false, '');
$actLinks .= wf_JSAlert('?module=backups&restore=true&restoredump=' . $encodedDumpPath, wf_img('skins/icon_restoredb.png', __('Restore DB')), __('Are you serious'));
$cells = wf_TableCell($fileDate);
$cells .= wf_TableCell($fileSize);
$cells .= wf_TableCell($downloadLink);
$cells .= wf_TableCell($actLinks);
$rows .= wf_TableRow($cells, 'row3');
}
$result = wf_TableBody($rows, '100%', '0', 'sortable');
}
return $result;
}
开发者ID:l1ght13aby, 项目名称:Ubilling, 代码行数:31, 代码来源:index.php
示例3: stg_show_tagtypes
/**
* Render available tag types list with all needed controls
*
* @return string
*/
function stg_show_tagtypes()
{
$messages = new UbillingMessageHelper();
$query = "SELECT * from `tagtypes` ORDER BY `id` ASC";
$alltypes = simple_queryall($query);
$cells = wf_TableCell(__('ID'));
$cells .= wf_TableCell(__('Color'));
$cells .= wf_TableCell(__('Priority'));
$cells .= wf_TableCell(__('Text'));
$cells .= wf_TableCell(__('Actions'));
$rows = wf_TableRow($cells, 'row1');
if (!empty($alltypes)) {
foreach ($alltypes as $io => $eachtype) {
$eachtagcolor = $eachtype['tagcolor'];
$actions = wf_JSAlert('?module=usertags&delete=' . $eachtype['id'], web_delete_icon(), $messages->getDeleteAlert());
$actions .= wf_JSAlert('?module=usertags&edit=' . $eachtype['id'], web_edit_icon(), $messages->getEditAlert());
$cells = wf_TableCell($eachtype['id']);
$cells .= wf_TableCell(wf_tag('font', false, '', 'color="' . $eachtagcolor . '"') . $eachtagcolor . wf_tag('font', true));
$cells .= wf_TableCell($eachtype['tagsize']);
$cells .= wf_TableCell($eachtype['tagname']);
$cells .= wf_TableCell($actions);
$rows .= wf_TableRow($cells, 'row3');
}
}
$result = wf_TableBody($rows, '100%', 0, 'sortable');
//construct adding form
$inputs = wf_ColPicker('newcolor', __('Color'), '#' . rand(11, 99) . rand(11, 99) . rand(11, 99), false, '10');
$inputs .= wf_TextInput('newtext', __('Text'), '', false, '15');
$inputs .= web_priority_selector() . ' ';
$inputs .= wf_HiddenInput('addnewtag', 'true');
$inputs .= wf_Submit(__('Create'));
$form = wf_Form("", 'POST', $inputs, 'glamour');
$result .= $form;
return $result;
}
开发者ID:l1ght13aby, 项目名称:Ubilling, 代码行数:40, 代码来源:api.usertags.php
示例4: web_list_admins
/**
* Returns available administrators list
*
* @return string
*/
function web_list_admins()
{
$alladmins = rcms_scandir(USERS_PATH);
$cells = wf_TableCell(__('Admin'));
$cells .= wf_TableCell(__('Actions'));
$rows = wf_TableRow($cells, 'row1');
if (!empty($alladmins)) {
foreach ($alladmins as $eachadmin) {
$actions = wf_JSAlert('?module=permissions&delete=' . $eachadmin, web_delete_icon(), 'Removing this may lead to irreparable results');
$actions .= wf_Link('?module=permissions&passwd=' . $eachadmin, web_key_icon());
$actions .= wf_Link('?module=permissions&edit=' . $eachadmin, web_edit_icon('Rights'));
$cells = wf_TableCell($eachadmin);
$cells .= wf_TableCell($actions);
$rows .= wf_TableRow($cells, 'row3');
}
}
$form = wf_TableBody($rows, '100%', '0', 'sortable');
return $form;
}
开发者ID:l1ght13aby, 项目名称:Ubilling, 代码行数:24, 代码来源:index.php
示例5: web_UsersLister
function web_UsersLister($users)
{
$tablecells = wf_TableCell(__('Login'));
$tablecells .= wf_TableCell(__('Real Name'));
$tablecells .= wf_TableCell(__('Full address'));
$tablecells .= wf_TableCell(__('Tariff'));
$tablecells .= wf_TableCell(__('Tariff speeds'));
$tablecells .= wf_TableCell(__('Speed override'));
$tablecells .= wf_TableCell(__('Actions'));
$tablerows = wf_TableRow($tablecells, 'row1');
if (!empty($users)) {
$udata = array();
$alluserdata = zb_UserGetAllStargazerData();
$alladdress = zb_AddressGetFulladdresslist();
$allrealnames = zb_UserGetAllRealnames();
$allspeeds = zb_TariffGetAllSpeeds();
if (!empty($alluserdata)) {
foreach ($alluserdata as $ia => $eachdata) {
$udata[$eachdata['login']]['Tariff'] = $eachdata['Tariff'];
@($udata[$eachdata['login']]['Address'] = $alladdress[$eachdata['login']]);
@($udata[$eachdata['login']]['RealName'] = $allrealnames[$eachdata['login']]);
@($udata[$eachdata['login']]['NormalSpeedDown'] = $allspeeds[$eachdata['Tariff']]['speeddown']);
@($udata[$eachdata['login']]['NormalSpeedUp'] = $allspeeds[$eachdata['Tariff']]['speedup']);
}
}
foreach ($users as $io => $eachuser) {
$tablecells = wf_TableCell(wf_Link('?module=userprofile&username=' . $eachuser['login'], web_profile_icon() . ' ' . $eachuser['login']));
$tablecells .= wf_TableCell($udata[$eachuser['login']]['RealName']);
$tablecells .= wf_TableCell($udata[$eachuser['login']]['Address']);
$tablecells .= wf_TableCell($udata[$eachuser['login']]['Tariff']);
$tablecells .= wf_TableCell($udata[$eachuser['login']]['NormalSpeedDown'] . '/' . $udata[$eachuser['login']]['NormalSpeedUp']);
$tablecells .= wf_TableCell(zb_UserGetSpeedOverride($eachuser['login']));
$fixlink = wf_JSAlert('?module=speedcontrol&fix=' . $eachuser['login'], '<img src="skins/icon_repair.gif" title=' . __('Fix') . '>', 'Are you serious');
$tablecells .= wf_TableCell($fixlink);
$tablerows .= wf_TableRow($tablecells, 'row3');
}
}
$result = wf_TableBody($tablerows, '100%', '0', 'sortable');
return $result;
}
开发者ID:l1ght13aby, 项目名称:Ubilling, 代码行数:40, 代码来源:index.php
示例6: web_NasTemplatesShow
function web_NasTemplatesShow()
{
$query = "SELECT * from `nastemplates`";
$alltemplates = simple_queryall($query);
$tablecells = wf_TableCell(__('ID'));
$tablecells .= wf_TableCell(__('NAS'));
$tablecells .= wf_TableCell(__('Template'));
$tablecells .= wf_TableCell(__('Actions'));
$tablerows = wf_TableRow($tablecells, 'row1');
if (!empty($alltemplates)) {
foreach ($alltemplates as $io => $eachtemplate) {
$nasdata = zb_NasGetData($eachtemplate['nasid']);
$tablecells = wf_TableCell($eachtemplate['id']);
$tablecells .= wf_TableCell($eachtemplate['nasid'] . ':' . $nasdata['nasname']);
$tablecells .= wf_TableCell('<pre>' . $eachtemplate['template'] . '</pre>');
$actions = wf_JSAlert("?module=radiust&delete=" . $eachtemplate['id'], web_delete_icon(), 'Are you serious');
$actions .= wf_Link("?module=radiust&edit=" . $eachtemplate['id'], web_edit_icon(), false, '');
$tablecells .= wf_TableCell($actions);
$tablerows .= wf_TableRow($tablecells, 'row3');
}
}
$result = wf_TableBody($tablerows, '100%', '0', 'sortable');
show_window(__('Available NAS Radius attribute templates'), $result);
}
开发者ID:l1ght13aby, 项目名称:Ubilling, 代码行数:24, 代码来源:api.radius.php
示例7: web_PhpConsoleShowTemplates
function web_PhpConsoleShowTemplates()
{
$alltemplatekeys = zb_StorageFindKeys('PHPCONSOLETEMPLATE:');
$tablecells = wf_TableCell(__('Template'), '80%');
$tablecells .= wf_TableCell(__('Actions'));
$tablerows = wf_TableRow($tablecells, 'row1');
if (!empty($alltemplatekeys)) {
foreach ($alltemplatekeys as $eachtemplatekey) {
$templatearray = zb_PhpConsoleGetTemplate($eachtemplatekey['key']);
$templatename = $templatearray['name'];
$templatebody = $templatearray['body'];
//show code template
$runlink = wf_JSAlert('?module=sqlconsole&devconsole=true&runtpl=' . $eachtemplatekey['key'], $templatename, 'Insert this template into PHP console');
$tablecells = wf_TableCell($runlink);
$actionlinks = wf_JSAlert('?module=sqlconsole&devconsole=true&deltemplate=' . $eachtemplatekey['key'], web_delete_icon(), 'Are you serious');
$actionlinks .= wf_Link('?module=sqlconsole&devconsole=true&edittemplate=' . $eachtemplatekey['key'], web_edit_icon());
$tablecells .= wf_TableCell($actionlinks);
$tablerows .= wf_TableRow($tablecells, 'row3');
}
}
$createlink = __('Available code templates') . ' ' . wf_Link("?module=sqlconsole&devconsole=true&templateadd=true", wf_img("skins/icon_add.gif", __('Create')), false);
$result = $createlink . ' ' . wf_TableBody($tablerows, '100%', '0', 'sortable');
return $result;
}
开发者ID:l1ght13aby, 项目名称:Ubilling, 代码行数:24, 代码来源:index.php
示例8: multinet_show_available_services
function multinet_show_available_services()
{
$allservices = multinet_get_services();
$tablecells = wf_TableCell(__('ID'));
$tablecells .= wf_TableCell(__('Network'));
$tablecells .= wf_TableCell(__('Service name'));
$tablecells .= wf_TableCell(__('Actions'));
$tablerows = wf_TableRow($tablecells, 'row1');
if (!empty($allservices)) {
foreach ($allservices as $io => $eachservice) {
$netdesc = multinet_get_network_params($eachservice['netid']);
$tablecells = wf_TableCell($eachservice['id']);
$tablecells .= wf_TableCell($netdesc['desc']);
$tablecells .= wf_TableCell($eachservice['desc']);
$actionlinks = wf_JSAlert('?module=multinet&deleteservice=' . $eachservice['id'], web_delete_icon(), 'Removing this may lead to irreparable results');
$actionlinks .= wf_JSAlert('?module=multinet&editservice=' . $eachservice['id'], web_edit_icon(), 'Are you serious');
$tablecells .= wf_TableCell($actionlinks);
$tablerows .= wf_TableRow($tablecells, 'row3');
}
}
$result = wf_TableBody($tablerows, '100%', '0', 'sortable');
show_window(__('Services'), $result);
}
开发者ID:nightflyza, 项目名称:Ubilling, 代码行数:23, 代码来源:api.networking.php
示例9: ub_SwitchesTimeMachineCleanup
//show dead switch time machine
if (!isset($_GET['snapshot'])) {
//cleanup subroutine
if (wf_CheckGet(array('flushalldead'))) {
ub_SwitchesTimeMachineCleanup();
rcms_redirect("?module=switches&timemachine=true");
}
//calendar view time machine
if (!wf_CheckPost(array('switchdeadlogsearch'))) {
$deadTimeMachine = ub_JGetSwitchDeadLog();
$timeMachine = wf_FullCalendar($deadTimeMachine);
} else {
//search processing
$timeMachine = ub_SwitchesTimeMachineSearch($_POST['switchdeadlogsearch']);
}
$timeMachineCleanupControl = wf_JSAlert('?module=switches&timemachine=true&flushalldead=true', wf_img('skins/icon_cleanup.png', __('Cleanup')), __('Are you serious'));
//here some searchform
$timeMachineSearchForm = web_SwitchTimeMachineSearchForm() . wf_tag('br');
show_window(__('Dead switches time machine') . ' ' . $timeMachineCleanupControl, $timeMachineSearchForm . $timeMachine);
} else {
//showing dead switches snapshot
ub_SwitchesTimeMachineShowSnapshot($_GET['snapshot']);
}
}
} else {
//editing switch form
$switchid = vf($_GET['edit'], 3);
$switchdata = zb_SwitchGetData($switchid);
//if someone edit switch
if (wf_CheckPost(array('editmodel'))) {
if (cfr('SWITCHESEDIT')) {
开发者ID:l1ght13aby, 项目名称:Ubilling, 代码行数:31, 代码来源:index.php
示例10: web_SwitchModelsShow
/**
* Returns list of all available switch models
*
* @return string
*/
function web_SwitchModelsShow()
{
$query = 'SELECT * from `switchmodels`';
$allmodels = simple_queryall($query);
$tablecells = wf_TableCell(__('ID'));
$tablecells .= wf_TableCell(__('Model'));
$tablecells .= wf_TableCell(__('Ports'));
$tablecells .= wf_TableCell(__('SNMP template'));
$tablecells .= wf_TableCell(__('Actions'));
$tablerows = wf_TableRow($tablecells, 'row1');
/**
* Now its time to break up with the system
* Our reasons are clear and listed
* Come on and change the cause of the history
* Take off disguise of that rotten mystery
*/
if (!empty($allmodels)) {
foreach ($allmodels as $io => $eachmodel) {
$tablecells = wf_TableCell($eachmodel['id']);
$tablecells .= wf_TableCell($eachmodel['modelname']);
$tablecells .= wf_TableCell($eachmodel['ports']);
$tablecells .= wf_TableCell($eachmodel['snmptemplate']);
$switchmodelcontrols = wf_JSAlert('?module=switchmodels&deletesm=' . $eachmodel['id'], web_delete_icon(), 'Removing this may lead to irreparable results');
$switchmodelcontrols .= wf_Link('?module=switchmodels&edit=' . $eachmodel['id'], web_edit_icon());
$tablecells .= wf_TableCell($switchmodelcontrols);
$tablerows .= wf_TableRow($tablecells, 'row3');
}
}
$result = wf_TableBody($tablerows, '100%', '0', 'sortable');
return $result;
}
开发者ID:carriercomm, 项目名称:Ubilling, 代码行数:36, 代码来源:api.switches.php
示例11: renderList
/**
* Returns available time rules grid
*
* @return string
*/
public function renderList()
{
$messages = new UbillingMessageHelper();
$allTariffs = zb_TariffGetPricesAll();
$query = "SELECT * from `dshape_time` ORDER BY `id` ASC";
$allrules = simple_queryall($query);
$cells = wf_TableCell(__('ID'));
$cells .= wf_TableCell(__('Tariff'));
$cells .= wf_TableCell(__('Time from'));
$cells .= wf_TableCell(__('Time to'));
$cells .= wf_TableCell(__('Speed'));
$cells .= wf_TableCell(__('Actions'));
$rows = wf_TableRow($cells, 'row1');
if (!empty($allrules)) {
foreach ($allrules as $io => $eachrule) {
$rowClass = isset($allTariffs[$eachrule['tariff']]) ? 'row3' : 'sigdeleteduser';
$tariffControl = cfr('TARIFFSPEED') ? wf_Link('?module=tariffspeeds&tariff=' . $eachrule['tariff'], $eachrule['tariff'], false) : $eachrule['tariff'];
$cells = wf_TableCell($eachrule['id']);
$cells .= wf_TableCell($tariffControl);
$cells .= wf_TableCell($eachrule['threshold1']);
$cells .= wf_TableCell($eachrule['threshold2']);
$cells .= wf_TableCell($eachrule['speed']);
$actions = wf_JSAlert('?module=dshaper&delete=' . $eachrule['id'], web_delete_icon(), $messages->getDeleteAlert());
$actions .= wf_JSAlert('?module=dshaper&edit=' . $eachrule['id'], web_edit_icon(), $messages->getEditAlert());
$cells .= wf_TableCell($actions);
$rows .= wf_TableRow($cells, $rowClass);
}
}
$result = wf_TableBody($rows, '100%', '0', 'sortable');
return $result;
}
开发者ID:l1ght13aby, 项目名称:Ubilling, 代码行数:36, 代码来源:api.dshaper.php
示例12: gen_check_users
function gen_check_users()
{
global $etalon_day_band, $control_tariffs, $etalon_speed, $cur_day, $home_band_p;
$tariff_names = array_keys($control_tariffs);
$genocide_qarr = array();
$band_arr = array();
$geninputs = wf_TextInput('home_band_p', 'Normal bandwidth load', $home_band_p, false, '2') . ' %';
$geninputs .= wf_HiddenInput('change_settings', 'true') . ' ';
$geninputs .= wf_Submit('Change');
$genform = wf_Form('', 'POST', $geninputs, 'glamour');
$result = $genform;
$tablecells = wf_TableCell(__('Tariff'));
$tablecells .= wf_TableCell(__('Normal day band'));
$tablecells .= wf_TableCell(__('Current date normal band'));
$tablecells .= wf_TableCell(__('Speed'));
$tablecells .= wf_TableCell(__('Actions'));
$tablerows = wf_TableRow($tablecells, 'row1');
$i = 0;
foreach ($control_tariffs as $eachtariff) {
@($cspeed_k = $etalon_speed / $eachtariff);
@($cband_k = $etalon_day_band / $cspeed_k);
$dband_l = $cband_k * $cur_day;
$band_arr[$i][$tariff_names[$i]] = $dband_l * 1024 * 1024;
$tablecells = wf_TableCell($tariff_names[$i]);
$tablecells .= wf_TableCell(stg_convert_size($cband_k * 1024 * 1024));
$tablecells .= wf_TableCell(stg_convert_size($band_arr[$i][$tariff_names[$i]]));
$tablecells .= wf_TableCell($eachtariff);
$gactions = wf_JSAlert('?module=genocide&delete=' . $tariff_names[$i], web_delete_icon(), 'Are you serious');
$tablecells .= wf_TableCell($gactions);
$tablerows .= wf_TableRow($tablecells, 'row3');
$i++;
}
//controlled tariffs
$result .= wf_TableBody($tablerows, '100%', '0', '');
$i = 0;
foreach ($band_arr as $eachtariff => $eachband) {
$query = "SELECT * from `users` WHERE `D0`+`U0`>'" . $eachband[$tariff_names[$i]] . "' and `Tariff`='" . $tariff_names[$i] . "';";
$genocide_qarr[] = $query;
$i++;
}
$tablecells = wf_TableCell(__('Login'));
$tablecells .= wf_TableCell(__('Full address'));
$tablecells .= wf_TableCell(__('Real Name'));
$tablecells .= wf_TableCell(__('Tariff'));
$tablecells .= wf_TableCell(__('IP'));
$tablecells .= wf_TableCell(__('Downloaded'));
$tablecells .= wf_TableCell(__('Uploaded'));
$tablecells .= wf_TableCell(__('Total'));
$tablerows = wf_TableRow($tablecells, 'row1');
foreach ($genocide_qarr as $each_q) {
$genocide_users = simple_queryall($each_q);
if (!empty($genocide_users)) {
$alluseraddress = zb_AddressGetFulladdresslist();
$allusernames = zb_UserGetAllRealnames();
foreach ($genocide_users as $io => $eachuser) {
$profilelink = wf_Link('?module=userprofile&username=' . $eachuser['login'], web_profile_icon() . ' ' . $eachuser['login']);
$tablecells = wf_TableCell($profilelink);
$tablecells .= wf_TableCell(@$alluseraddress[$eachuser['login']]);
$tablecells .= wf_TableCell(@$allusernames[$eachuser['login']]);
$tablecells .= wf_TableCell($eachuser['Tariff']);
$tablecells .= wf_TableCell($eachuser['IP'], '', '', 'sorttable_customkey="' . ip2int($eachuser['IP']) . '"');
$tablecells .= wf_TableCell(stg_convert_size($eachuser['D0']), '', '', 'sorttable_customkey="' . $eachuser['D0'] . '"');
$tablecells .= wf_TableCell(stg_convert_size($eachuser['U0']), '', '', 'sorttable_customkey="' . $eachuser['U0'] . '"');
$tablecells .= wf_TableCell(stg_convert_size($eachuser['D0'] + $eachuser['U0']), '', '', 'sorttable_customkey="' . ($eachuser['D0'] + $eachuser['U0']) . '"');
$tablerows .= wf_TableRow($tablecells, 'row3');
}
}
}
$result .= wf_TableBody($tablerows, '100%', '0', 'sortable');
show_window(__('Genocide'), $result);
}
开发者ID:l1ght13aby, 项目名称:Ubilling, 代码行数:71, 代码来源:index.php
示例13: web_TariffLister
function web_TariffLister()
{
$alltariffs = billing_getalltariffs();
$dbSchema = zb_CheckDbSchema();
global $ubillingConfig;
$alter = $ubillingConfig->getAlter();
$cells = wf_TableCell(__('Tariff name'));
$cells .= wf_TableCell(__('Tariff Fee'));
if ($dbSchema > 0) {
$cells .= wf_TableCell(__('Period'));
}
$cells .= wf_TableCell(__('Actions'));
$rows = wf_TableRow($cells, 'row1');
$result = wf_Link("?module=tariffs&action=new", __('Create new tariff'), true, 'ubButton');
if (!empty($alltariffs)) {
foreach ($alltariffs as $io => $eachtariff) {
$cells = wf_TableCell($eachtariff['name']);
$cells .= wf_TableCell($eachtariff['Fee']);
if ($dbSchema > 0) {
$cells .= wf_TableCell(__($eachtariff['period']));
}
$actions = wf_JSAlert("?module=tariffs&action=delete&tariffname=" . $eachtariff['name'], web_delete_icon(), __('Delete') . ' ' . $eachtariff['name'] . '? ' . __('Removing this may lead to irreparable results'));
$actions .= wf_JSAlert("?module=tariffs&action=edit&tariffname=" . $eachtariff['name'], web_edit_icon(), __('Edit') . ' ' . $eachtariff['name'] . '? ' . __('Are you serious'));
$actions .= wf_Link('?module=tariffspeeds&tariff=' . $eachtariff['name'], wf_img('skins/icon_speed.gif', __('Edit speed')), false, '');
$actions .= isset($alter['SIGNUP_PAYMENTS']) && !empty($alter['SIGNUP_PAYMENTS']) ? wf_Link('?module=signupprices&tariff=' . $eachtariff['name'], wf_img('skins/icons/register.png', __('Edit signup price')), false, '') : null;
$cells .= wf_TableCell($actions);
$rows .= wf_TableRow($cells, 'row3');
}
}
$result .= wf_TableBody($rows, '100%', 0, 'sortable');
return $result;
}
开发者ID:l1ght13aby, 项目名称:Ubilling, 代码行数:32, 代码来源:index.php
示例14: wf_TableCell
$cells .= wf_TableCell(__('op'));
$cells .= wf_TableCell(__('Value'));
$cells .= wf_TableCell(__('Foreach'));
$cells .= wf_TableCell(__('Actions'));
$rows = wf_TableRow($cells, 'row1');
if (!empty($results)) {
foreach ($results as $result) {
$cells = wf_TableCell($result['id']);
$cells .= wf_TableCell($result['scenario']);
$cells .= wf_TableCell($result['Attribute']);
$cells .= wf_TableCell($result['op']);
$cells .= wf_TableCell($result['Value']);
$content = web_bool_led($result['login'] == '*');
$cells .= wf_TableCell($content);
$content = wf_Link("?module=freeradius&netid={$netid}&edit=" . $result['id'], web_edit_icon());
$content .= wf_JSAlert("?module=freeradius&netid={$netid}&delete=" . $result['id'], web_delete_icon(), 'Are you serious');
$cells .= wf_TableCell($content);
$rows .= wf_TableRow($cells, 'row3');
}
}
/* Кнопка "Назад" */
$html .= wf_Link("?module=multinet", __('Back'), false, 'ubButton');
// Форма добавления нового атрибута
$form = new InputForm('', 'POST', __('Save'), '', '', '', 'add');
// - Сценарий
$content = $form->radio_button('add[scenario]', $scenarios, 'check');
$form->addrow(__('Scenario'), $content);
// - Сервис (disabled)
$content = $form->select_tag('add[netid]', getServiceIdDesc(), $netid, 'disabled');
$content .= $form->checkbox('add[login]', '*', __('Foreach'), '');
$form->addrow(__('Service'), $content);
开发者ID:l1ght13aby, 项目名称:Ubilling, 代码行数:31, 代码来源:index.php
示例15: listAllTasks
public function listAllTasks()
{
$cells = wf_TableCell(__('ID'));
$cells .= wf_TableCell(__('Active'));
$cells .= wf_TableCell(__('Name'));
$cells .= wf_TableCell(__('Check type'));
$cells .= wf_TableCell(__('Parameter'));
$cells .= wf_TableCell(__('Operator'));
$cells .= wf_TableCell(__('Condition'));
$cells .= wf_TableCell(__('Actions'));
$cells .= wf_TableCell(__('Manage'));
$rows = wf_TableRow($cells, 'row1');
$lighter = 'onmouseover="this.className = \'row2\';" onmouseout="this.className = \'row3\';" ';
if (!empty($this->allTasks)) {
foreach ($this->allTasks as $io => $eachtask) {
$details = wf_tag('pre') . print_r($eachtask, true) . wf_tag('pre', true);
$detailLink = wf_modal($eachtask['id'], $eachtask['name'], $details, '', '600', '400');
$cells = wf_TableCell($detailLink, '', '', 'sorttable_customkey="' . $eachtask['id'] . '"');
$cells .= wf_TableCell(web_bool_led($eachtask['active']), '', '', 'sorttable_customkey="' . $eachtask['active'] . '"');
$cells .= wf_TableCell($eachtask['name']);
$cells .= wf_TableCell($eachtask['checktype']);
$cells .= wf_TableCell($eachtask['param']);
$cells .= wf_TableCell($eachtask['operator']);
$cells .= wf_TableCell($eachtask['condition']);
$cells .= wf_TableCell($eachtask['action']);
$controls = wf_JSAlert('?module=watchdog&delete=' . $eachtask['id'], web_delete_icon(), __('Removing this may lead to irreparable results'));
$controls .= wf_JSAlert('?module=watchdog&edit=' . $eachtask['id'], web_edit_icon(), __('Are you serious'));
$cells .= wf_TableCell($controls);
$rows .= wf_tag('tr', false, 'row3', $lighter);
$rows .= $cells;
$rows .= wf_tag('tr', true);
}
}
$result = wf_TableBody($rows, '100%', '0', 'sortable');
return $result;
}
开发者ID:l1ght13aby, 项目名称:Ubilling, 代码行数:36, 代码来源:api.watchdog.php
示例16: dhcp_show_available_nets
function dhcp_show_available_nets()
{
$query = "SELECT * from `dhcp`";
$allnets = simple_queryall($query);
$result = '<table width="100%" class="sortable" border="0" class="sortable">';
$result .= '
<tr class="row1">
<td>
ID
</td>
<td>
' . __('Network/CIDR') . '
</td>
<td>
' . __('DHCP custom subnet template') . '
</td>
<td>
' . __('DHCP config name') . '
</td>
<td>
' . __('Actions') . '
</td>
</tr>
';
if (!empty($allnets)) {
foreach ($allnets as $io => $eachnet) {
$netdata = multinet_get_network_params($eachnet['netid']);
$result .= '
<tr class="row3">
<td>
' . $eachnet['id'] . '
</td>
<td>
' . $netdata['desc'] . '
</td>
<td>
' . web_bool_led($eachnet['dhcpconfig']) . '
</td>
<td>
' . $eachnet['confname'] . '
</td>
<td>
' . wf_JSAlert('?module=dhcp&delete=' . $eachnet['id'], web_delete_icon(), 'Removing this may lead to irreparable results') . '
<a href="?module=dhcp&edit=' . $eachnet['id'] . '">' . web_edit_icon() . '</a>
</td>
</tr>
';
}
}
$result .= '</table>';
show_window(__('Available DHCP networks'), $result);
}
开发者ID:carriercomm, 项目名称:Ubilling, 代码行数:52, 代码来源:api.networking.php
示例17: web_ExpressAddressAptForm
/**
* Returns expresscard address modify form
*
* @param $login - user login for modifying apt
*
* @return string
*/
function web_ExpressAddressAptForm($login)
{
$login = vf($login);
$aptdata = zb_AddressGetAptData($login);
$useraddress = zb_AddressGetFulladdresslist();
@($useraddress = $useraddress[$login]);
$buildid = $aptdata['buildid'];
$builddata = zb_AddressGetBuildData($buildid);
$buildnum = $builddata['buildnum'];
$streetid = $builddata['streetid'];
$streetdata = zb_AddressGetStreetData($streetid);
$streetname = $streetdata['streetname'];
$cityid = $streetdata['cityid'];
$citydata = zb_AddressGetCityData($cityid);
$cityname = $citydata['cityname'];
$inputs = __('Full address') . ': ';
$inputs .= wf_tag('b') . $useraddress . ' ' . wf_tag('b', true);
$inputs .= __('Entrance');
$inputs .= wf_TextInput('editentrance', '', @$aptdata['entrance'], false, '5');
$inputs .= __('Floor');
$inputs .= wf_TextInput('editfloor', '', @$aptdata['floor'], false, '5');
$inputs .= __('Apartment');
$inputs .= wf_TextInput('editapt', '', @$aptdata['apt'], false, '5');
$inputs .= wf_JSAlert('?module=expresscard&username=' . $login . '&orphan=true', web_delete_icon(), __('Are you sure you want to make the homeless this user') . "?");
//same data for passport apartment
$inputs .= wf_HiddenInput('samepapt', $aptdata['apt']);
$inputs .= wf_HiddenInput('samepbuild', $buildnum);
$inputs .= wf_HiddenInput('samepstreet', $streetname);
$inputs .= wf_HiddenInput('samepcity', $cityname);
return $inputs;
}
开发者ID:l1ght13aby, 项目名称:Ubilling, 代码行数:38, 代码来源:api.crm.php
示例18: web_TicketDialogue
/**
* Renders ticket, all of replies and all needed controls/forms for they
*
* @param int $ticketid
*
* @return string
*/
function web_TicketDialogue($ticketid)
{
$ticketid = vf($ticketid, 3);
$ticketdata = zb_TicketGetData($ticketid);
$ticketreplies = zb_TicketGetReplies($ticketid);
$result = wf_tag('p', false, '', 'align="right"') . wf_Link('?module=ticketing', 'Back to tickets list', true, 'ubButton') . wf_tag('p', true);
if (!empty($ticketdata)) {
$alladdress = zb_AddressGetFulladdresslist();
$allrealnames = zb_UserGetAllRealnames();
$alltariffs = zb_TariffsGetAllUsers();
$allcash = zb_CashGetAllUsers();
$allcredits = zb_CreditGetAllUsers();
$alluserips = zb_UserGetAllIPs();
if ($ticketdata['status']) {
$actionlink = wf_Link('?module=ticketing&openticket=' . $ticketdata['id'], 'Open', false, 'ubButton');
} else {
$actionlink = wf_Link('?module=ticketing&closeticket=' . $ticketdata['id'], 'Close', false, 'ubButton');
}
$tablecells = wf_TableCell(__('ID'));
$tablecells .= wf_TableCell(__('Date'));
$tablecells .= wf_TableCell(__('Login'));
$tablecells .= wf_TableCell(__('Real Name'));
$tablecells .= wf_TableCell(__('Full address'));
$tablecells .= wf_TableCell(__('IP'));
$tablecells .= wf_TableCell(__('Tariff'));
$tablecells .= wf_TableCell(__('Balance'));
$tablecells .= wf_TableCell(__('Credit'));
$tablecells .= wf_TableCell(__('Processed'));
$tablerows = wf_TableRow($tablecells, 'row1');
$tablecells = wf_TableCell($ticketdata['id']);
$tablecells .= wf_TableCell($ticketdata['date']);
$profilelink = wf_Link('?module=userprofile&username=' . $ticketdata['from'], web_profile_icon() . ' ' . $ticketdata['from']);
$tablecells .= wf_TableCell($profilelink);
$tablecells .= wf_TableCell(@$allrealnames[$ticketdata['from']]);
$tablecells .= wf_TableCell(@$alladdress[$ticketdata['from']]);
$tablecells .= wf_TableCell(@$alluserips[$ticketdata['from']]);
$tablecells .= wf_TableCell(@$alltariffs[$ticketdata['from']]);
$tablecells .= wf_TableCell(@$allcash[$ticketdata['from']]);
$tablecells .= wf_TableCell(@$allcredits[$ticketdata['from']]);
$tablecells .= wf_TableCell(web_bool_led($ticketdata['status']));
$tablerows .= wf_TableRow($tablecells, 'row3');
$result .= wf_TableBody($tablerows, '100%', '0');
//ticket body
$tickettext = strip_tags($ticketdata['text']);
$tickettext = nl2br($tickettext);
$tablecells = wf_TableCell('', '20%');
$tablecells .= wf_TableCell($ticketdata['date']);
$tablerows = wf_TableRow($tablecells, 'row2');
$ticketauthor = wf_tag('center') . wf_tag('b') . @$allrealnames[$ticketdata['from']] . wf_tag('b', true) . wf_tag('center', true);
$ticketavatar = wf_tag('center') . wf_img('skins/userava.png') . wf_tag('center', true);
$ticketpanel = $ticketauthor . wf_tag('br') . $ticketavatar;
$tablecells = wf_TableCell($ticketpanel);
$tablecells .= wf_TableCell($tickettext);
$tablerows .= wf_TableRow($tablecells, 'row3');
$result .= wf_TableBody($tablerows, '100%', '0', 'glamour');
$result .= $actionlink;
}
if (!empty($ticketreplies)) {
$result .= wf_tag('h2') . __('Replies') . wf_tag('h2', true);
$result .= wf_CleanDiv();
foreach ($ticketreplies as $io => $eachreply) {
//reply
if ($eachreply['admin']) {
$replyauthor = wf_tag('center') . wf_tag('b') . $eachreply['admin'] . wf_tag('b', true) . wf_tag('center', true);
$replyavatar = wf_tag('center') . gravatar_ShowAdminAvatar($eachreply['admin'], '64') . wf_tag('center', true);
} else {
$replyauthor = wf_tag('center') . wf_tag('b') . @$allrealnames[$eachreply['from']] . wf_tag('b', true) . wf_tag('center', true);
$replyavatar = wf_tag('center') . wf_img('skins/userava.png') . wf_tag('center', true);
}
$replyactions = wf_tag('center');
$replyactions .= wf_JSAlert('?module=ticketing&showticket=' . $ticketdata['id'] . '&deletereply=' . $eachreply['id'], web_delete_icon(), 'Removing this may lead to irreparable results') . ' ';
$replyactions .= wf_JSAlert('?module=ticketing&showticket=' . $ticketdata['id'] . '&editreply=' . $eachreply['id'], web_edit_icon(), 'Are you serious');
$replyactions .= wf_tag('center', true);
// reply body
if (isset($_GET['editreply'])) {
if ($_GET['editreply'] == $eachreply['id']) {
//is this reply editing?
$replytext = web_TicketReplyEditForm($eachreply['id']);
} else {
//not this ticket edit
$replytext = strip_tags($eachreply['text']);
}
} else {
//normal text by default
$replytext = strip_tags($eachreply['text']);
$replytext = nl2br($replytext);
}
$replypanel = $replyauthor . wf_tag('br') . $replyavatar . wf_tag('br') . $replyactions;
$tablecells = wf_TableCell('', '20%');
$tablecells .= wf_TableCell($eachreply['date']);
$tablerows = wf_TableRow($tablecells, 'row2');
$tablecells = wf_TableCell($replypanel);
$tablecells .= wf_TableCell($replytext);
//.........这里部分代码省略.........
开发者ID:l1ght13aby, 项目名称:Ubilling, 代码行数:101, 代码来源:api.ticketing.php
示例19: zb_LicenseLister
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);
}
开发者ID:l1ght13aby, 项目名称:Ubilling, 代码行数:31, 代码来源:api.deploy.php
librespeed/speedtest: Self-hosted Speedtest for HTML5 and more. Easy setup, exam
阅读:1218| 2022-08-30
avehtari/BDA_m_demos: Bayesian Data Analysis demos for Matlab/Octave
阅读:1133| 2022-08-17
女人怀孕后,为了有一个健康聪明的宝宝,经历各种体检、筛查。其实这些体检和筛查中的
阅读:942| 2022-11-06
medfreeman/markdown-it-toc-and-anchor: markdown-it plugin to add a toc and ancho
阅读:1339| 2022-08-18
循环读取图片第一种方法①List =dir(amp;#39;*.jpgamp;#39;); %如需其它图片格式支持
阅读:966| 2022-07-18
http://www.borland.com/namespaces/Types-IAppServerSOAP 服务器未能识别HTTP头SO
阅读:542| 2022-07-18
Improper input validation vulnerability in Link of Cybozu Garoon 4.0.0 to 5.5.1
阅读:955| 2022-07-08
sydney0zq/covid-19-detection: The implementation of A Weakly-supervised Framewor
阅读:485| 2022-08-16
离中国最远的国家是阿根廷。从太平洋直线计算,即往东线走,北京到阿根廷的布宜诺斯艾
阅读:641| 2022-11-06
shem8/MaterialLogin: Login view with material design
阅读:725| 2022-08-17
请发表评论