/** * Shows current FDB cache list container * * @param string $fdbSwitchFilter */ function web_FDBTableShowDataTable($fdbSwitchFilter = '') { $filter = !empty($fdbSwitchFilter) ? '&swfilter=' . $fdbSwitchFilter : ''; $filtersForm = wf_modalAuto(web_icon_search('MAC filters setup'), __('MAC filters setup'), web_FDBTableFiltersForm(), ''); $columns = array('Switch IP', 'Port', 'Location', 'MAC', 'User'); $result = wf_JqDtLoader($columns, '?module=switchpoller&ajax=true' . $filter, true, 'Objects', 100); show_window(__('Current FDB cache') . ' ' . $filtersForm, $result); }
/** * Returns taskman controls * * @return string */ function ts_ShowPanel() { $createform = ts_TaskCreateForm(); $result = wf_modal(wf_img('skins/add_icon.png') . ' ' . __('Create task'), __('Create task'), $createform, 'ubButton', '450', '550'); $result .= wf_Link('?module=taskman&show=undone', wf_img('skins/undone_icon.png') . ' ' . __('Undone tasks'), false, 'ubButton'); $result .= wf_Link('?module=taskman&show=done', wf_img('skins/done_icon.png') . ' ' . __('Done tasks'), false, 'ubButton'); $result .= wf_Link('?module=taskman&show=all', wf_img('skins/icon_calendar.gif') . ' ' . __('All tasks'), false, 'ubButton'); if (cfr('TASKMANSEARCH')) { $result .= wf_Link('?module=tasksearch', web_icon_search() . ' ' . __('Tasks search'), false, 'ubButton'); } if (cfr('TASKMANTRACK')) { $result .= wf_Link('?module=taskmantrack', wf_img('skins/track_icon.png') . ' ' . __('Tracking'), false, 'ubButton'); } $result .= wf_Link('?module=taskman&print=true', wf_img('skins/icon_print.png') . ' ' . __('Tasks printing'), false, 'ubButton'); //show type selector $whoami = whoami(); $employeeid = ts_GetEmployeeByLogin($whoami); if ($employeeid) { $result .= wf_delimiter(); $curselected = isset($_POST['displaytype']) ? $_POST['displaytype'] : ''; $displayTypes = array('all' => __('Show tasks for all users'), 'onlyme' => __('Show only mine tasks')); $inputs = wf_Selector('displaytype', $displayTypes, '', $curselected, false); $inputs .= wf_Submit('Show'); $showTypeForm = wf_Form('', 'POST', $inputs, 'glamour'); $result .= $showTypeForm; } return $result; }
$dateform = wf_Form("?module=report_finance", 'POST', $dateinputs, 'glamour'); $yearinputs = wf_YearSelector('yearsel'); $yearinputs .= wf_Submit(__('Show')); $yearform = wf_Form("?module=report_finance", 'POST', $yearinputs, 'glamour'); $controlcells = wf_TableCell(wf_tag('h3', false, 'title') . __('Year') . wf_tag('h3', true)); $controlcells .= wf_TableCell(wf_tag('h3', false, 'title') . __('Payments by date') . wf_tag('h3', true)); $controlcells .= wf_TableCell(wf_tag('h3', false, 'title') . __('Payment search') . wf_tag('h3', true)); $controlcells .= wf_TableCell(wf_tag('h3', false, 'title') . __('Analytics') . wf_tag('h3', true)); $controlcells .= wf_TableCell(wf_tag('h3', false, 'title') . __('ARPU') . wf_tag('h3', true)); if ($altcfg['AGENTS_ASSIGN'] == '2') { $controlcells .= wf_TableCell(wf_tag('h3', false, 'title') . __('Agent payments') . wf_tag('h3', true)); } $controlrows = wf_TableRow($controlcells); $controlcells = wf_TableCell($yearform); $controlcells .= wf_TableCell($dateform); $controlcells .= wf_TableCell(wf_Link("?module=payfind", web_icon_search() . ' ' . __('Find'), false, 'ubButton')); $controlcells .= wf_TableCell(wf_Link("?module=report_finance&analytics=true", wf_img('skins/icon_stats.gif') . ' ' . __('Show'), false, 'ubButton')); $controlcells .= wf_TableCell(wf_Link("?module=report_arpu", wf_img('skins/ukv/report.png') . ' ' . __('Show'), false, 'ubButton')); if ($altcfg['AGENTS_ASSIGN'] == '2') { $controlcells .= wf_TableCell(wf_Link("?module=report_agentfinance", wf_img('skins/corporate_small.png') . ' ' . __('Search'), false, 'ubButton')); } $controlrows .= wf_TableRow($controlcells); $controlgrid = wf_TableBody($controlrows, '100%', 0, ''); show_window('', $controlgrid); web_PaymentsShowGraph($show_year); if (!isset($_GET['month'])) { // payments by somedate if (isset($_POST['showdatepayments'])) { $paydate = mysql_real_escape_string($_POST['showdatepayments']); $paydate = !empty($paydate) ? $paydate : curdate(); show_window(__('Payments by date') . ' ' . $paydate, web_PaymentsShow("SELECT * from `payments` WHERE `date` LIKE '" . $paydate . "%' ORDER by `date` DESC;"));
/** * Renders DHCP config templates previews * * @return string */ public function renderConfigTemplates() { $allTemplates = rcms_scandir(self::TEMPLATES_PATH); $result = ''; if (!empty($allTemplates)) { $cells = wf_TableCell(__('Filename')); $cells .= wf_TableCell(__('Actions')); $rows = wf_TableRow($cells, 'row1'); foreach ($allTemplates as $eachfilename) { $templateData = file_get_contents(self::TEMPLATES_PATH . $eachfilename); $templateData = nl2br($templateData); $actLinks = wf_Link(self::URL_ME . '&downloadtemplate=' . $eachfilename, web_icon_download(), false) . ' '; $actLinks .= wf_modal(web_icon_search(__('Preview') . ' ' . $eachfilename), $eachfilename, $templateData, '', 800, 600) . ' '; $cells = wf_TableCell($eachfilename); $cells .= wf_TableCell(__($actLinks)); $rows .= wf_TableRow($cells, 'row5'); } $result = wf_TableBody($rows, '100%', 0, 'sortable'); } else { $result = $this->messages->getStyledMessage(__('Nothing found'), 'warning'); } return $result; }