示例#1
0
 /**
  * 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);
 }
示例#2
0
 /**
  * renders full user list with some ajax data
  * 
  * @return string
  */
 public function renderUsers()
 {
     $columns = array('Full address', 'Real Name', 'Contract', 'Tariff', 'Connected', 'Cash');
     $result = wf_JqDtLoader($columns, self::URL_USERS_AJAX_SOURCE, false, 'users', 50);
     return $result;
 }
示例#3
0
 /**
  * Renders transaction list container
  * 
  * @return void
  */
 public function renderTransactionList()
 {
     $columns = array('ID', 'Date', 'Cash', 'Payment ID', 'Real Name', 'Full address', 'Payment system', 'Processed');
     $graphsUrl = wf_Link(self::URL_CHARTS, wf_img('skins/icon_stats.gif', __('Graphs')), false, '');
     show_window(__('OpenPayz transactions') . ' ' . $graphsUrl, wf_JqDtLoader($columns, self::URL_AJAX_SOURCE, true, 'payments', 100));
 }
示例#4
0
 /**
  * Returns display container of available connection details
  * 
  * @return string
  */
 public function renderReportBodyUkv()
 {
     $columns = array('Address', 'Real Name', 'Tariff', 'Connected', 'Cash', 'Seal');
     $result = wf_JqDtLoader($columns, '?module=report_condet&ajaxukv=true', true, 'users');
     return $result;
 }
示例#5
0
 /**
  * Renders localhost ARP table placeholder
  * 
  * @return string
  */
 public function renderArpTable()
 {
     $result = wf_JqDtLoader(array('IP', 'MAC', 'Host'), self::URL_ME . '&ajaxarp=true', true, __('Host'), '100');
     return $result;
 }
示例#6
0
 /**
  * Renders available ONU JQDT list container
  * 
  * @return string
  */
 public function renderOnuList()
 {
     $columns = array('ID', 'Model', 'OLT', 'IP', 'MAC', 'Signal', 'Address', 'Real Name', 'Actions');
     $result = wf_JqDtLoader($columns, '?module=ponizer&ajaxonu=true', true, 'ONU');
     return $result;
 }
示例#7
0
 /**
  * Returns income operations list available at storages
  * 
  * @return string
  */
 public function reportAllStoragesRemains()
 {
     $result = '';
     if (!empty($this->allIncoming)) {
         $columns = array('Category', 'Warehouse item types', 'Count', 'Actions');
         $result = wf_JqDtLoader($columns, self::URL_ME . '&' . self::URL_REPORTS . '&' . self::URL_REAJTREM, true, 'Warehouse item types', 50);
     } else {
         $result = $this->messages->getStyledMessage(__('Nothing found'), 'warning');
     }
     return $result;
 }
示例#8
0
 /**
  * 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;
 }
示例#9
0
 /**
  * Returns data container for active subscriptions
  * 
  * @return string
  */
 public function renderSubscribtions()
 {
     $result = '';
     $columns = array(__('ID'), __('Full address'), __('Real Name'), __('Cash'), __('Current tariff'), __('Date'), __('Active'), __('Primary'), __('Free period'), __('Actions'));
     $result = wf_JqDtLoader($columns, self::URL_ME . '&' . self::URL_SUBS . '&' . self::URL_AJSUBS, true, __('Subscriptions'), '100');
     return $result;
 }
示例#10
0
    /**
     * Returns container of succefull UHW usages
     * 
     * @return string
     */
    public function renderUsageList()
    {
        $result = '';
        $jq_dt = '
          <script type="text/javascript" charset="utf-8">
                
		$(document).ready(function() {
		$(\'#uhwlisthp\').dataTable( {
 	       "oLanguage": {
			"sLengthMenu": "' . __('Show') . ' _MENU_",
			"sZeroRecords": "' . __('Nothing found') . '",
			"sInfo": "' . __('Showing') . ' _START_ ' . __('to') . ' _END_ ' . __('of') . ' _TOTAL_ ' . __('users') . '",
			"sInfoEmpty": "' . __('Showing') . ' 0 ' . __('to') . ' 0 ' . __('of') . ' 0 ' . __('users') . '",
			"sInfoFiltered": "(' . __('Filtered') . ' ' . __('from') . ' _MAX_ ' . __('Total') . ')",
                        "sSearch":       "' . __('Search') . '",
                        "sProcessing":   "' . __('Processing') . '...",
                        "oPaginate": {
                        "sFirst": "' . __('First') . '",
                        "sPrevious": "' . __('Previous') . '",
                        "sNext": "' . __('Next') . '",
                        "sLast": "' . __('Last') . '"
                    },
		},
           
                "aoColumns": [
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null
            ],      
         
        "bPaginate": true,
        "bLengthChange": true,
        "bFilter": true,
        "bSort": true,
        "bInfo": true,
        "bAutoWidth": false,
        "bProcessing": true,
        "bStateSave": true,
        "iDisplayLength": 50,
        "sAjaxSource": \'?module=uhw&ajax=true\',
	"bDeferRender": true,
        "bJQueryUI": true

                } );
		} );
		</script>
          ';
        $result = $jq_dt;
        $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', true, 'users', 50);
        return $result;
    }
示例#11
0
 /**
  * Returns display container of available connection details
  * 
  * @return string
  */
 public function renderReportBody()
 {
     $columns = array('Address', 'Real Name', 'IP', 'Tariff', 'Active', 'Cash', 'Credit', 'Seal', 'Cost', 'Cable');
     $result = wf_JqDtLoader($columns, '?module=report_condet&ajax=true', true, 'users');
     return $result;
 }