<?php
 require_once('class.TarUsed2.inc.php'); class OpTarUsed2 extends TarUsed2 { public function __construct( $app) { parent::__construct( $app); $this->owner->set_help( get_class($this)); $this->can_access = ValidateLevel( $this->owner->config['SECURITY']['RESELLER_OPERATORS']); $this->can_add = ValidateLevel( $this->owner->config['SECURITY']['RESELLER_OPERATORS']+LVL_ADD); $this->can_edit = ValidateLevel( $this->owner->config['SECURITY']['RESELLER_OPERATORS']+LVL_EDIT); $this->can_remove = ValidateLevel( $this->owner->config['SECURITY']['RESELLER_OPERATORS']+LVL_REMOVE); } protected function int_searchform( $id='', $page=-1, $val1='', $val2='', $tmp='') { if ( $page >= 0) array_push($this->owner->pan_menu,array('rad.Actions2.table_view&amp;page='.$page.'&amp;user='.$id,'bbar/table.png',STR_CMMN_TABLE)); $Template = $this->owner->load_template_resource(array('hForm'=>'acttarsearch')); $Template->set_block('hForm', 'list', 'hList'); $Template->set_var('hList', ''); $Template->set_var('hCall', ''); $Template->set_block('hForm', 'save', 'hSave'); $Template->set_var('hSave', ''); $Template->set_var('VAL_FORMACTION', Linkage()); $Template->set_var('TXT_FUNC_SAVED_SEARCH_JS', ''); $Template->set_var('LS_PATH', $this->owner->get_ls_path()); $Template->set_var('TXT_ACTSEARCH', STR_USR_SEARCH); $Template->set_var('VAL_TMPNAME', $tmp); $Template->set_var('TXT_TARNAME', STR_USR_TARNAME); $Template->set_var('TXT_SEARCHDATE1', STR_USR_STARTTIME); $Template->set_var('TXT_SEARCHDATE2', STR_USR_STOPTIME); $Template->set_var('TXT_TEMPNAME', STR_USR_TEMPNAME); $Template->set_var('TXT_SAVED_SEARCH', STR_USR_SAVED_SEARCH); $Template->set_var('BTN_SEARCH', STR_CMMN_SEARCH); $Template->set_var('BTN_SAVE', STR_CMMN_SAVE); $Template->set_var('BTN_DELETE', STR_CMMN_DELETE); $Template->set_var('TXT_GET_TARIFF', $this->get_track_packets_combo($GLOBALS['SSXID'])); $time_val = localtime(); if ( empty($val1)) $val1 = substr(date($this->owner->date_format, mktime(0,0,0,$time_val[4]+1,1,$time_val[5]+1900)),0,10); if ( empty($val2)) $val2 = substr(date($this->owner->date_format, mktime(0,0,0,$time_val[4]+2,0,$time_val[5]+1900)),0,10); $Template->set_var('TXT_FUNC_SEARCHDATE', $this->owner->get_calendar_link('date', $val1)); $Template->set_var('TXT_FUNC_SEARCHDATE2', $this->owner->get_calendar_link('edate', $val2)); $arr = $this->owner->get_ss1_combo("tar_used_search"); $Template->set_var('TXT_FUNC_SAVED_SEARCH_JS', $arr[0]); $Template->set_var('TXT_FUNC_SAVED_SEARCH', $arr[1]); if ( $id != '') $Template->set_var('HIDDEN_VARS', '<input type="hidden" name="q" value="rad.'.get_class($this).'.table_view" /><input type="hidden" name="classname" value="rad.'.get_class($this).'" />'); else $Template->set_var('HIDDEN_VARS', '<input type="hidden" name="q" value="rad.'.get_class($this).'.table_view" /><input type="hidden" name="classname" value="rad.'.get_class($this).'" />'); { $Template->set_var('TXT_UNAME', STR_USR_USERNAME); $Template->set_var('VAL_UNAME', $id); $Template->parse('hList', 'list', true); } $Template->parse('hSave', 'save', true); $Template->pparse('out', 'hForm'); } } ?>
