Viewing file: index.php (50.17 KB) -rwxr-xr-x Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
//Include Common Files @1-FFB24655
define("RelativePath", ".");
define("PathToCurrentPage", "/");
define("FileName", "index.php");
include(RelativePath . "/Common.php");
include(RelativePath . "/Template.php");
include(RelativePath . "/Sorter.php");
include(RelativePath . "/Navigator.php");
//End Include Common Files
//Include Page implementation @97-3DD2EFDC
include_once(RelativePath . "/Header.php");
//End Include Page implementation
//radacct ReportGroup class @99-9D0D8FEA
class clsReportGroupradacct {
var $GroupType;
var $mode; //1 - open, 2 - close
var $UserName, $UserNameDup;
var $AcctSessionTime;
var $AcctInputOctets;
var $AcctOutputOctets;
var $ServiceType;
var $AcctTerminateCause;
var $Sum_AcctSessionTime;
var $Percent_AcctSessionTime, $Percent_AcctSessionTime114Rel;
var $Sum_AcctInputOctets;
var $Percent_AcctInputOctets, $Percent_AcctInputOctets116Rel;
var $Sum_AcctOutputOctets;
var $Percent_AcctOutputOctets, $Percent_AcctOutputOctets118Rel;
var $TotalSum_AcctSessionTime;
var $TotalSum_AcctInputOctets;
var $TotalSum_AcctOutputOctets;
var $Report_CurrentDate;
var $Report_CurrentPage;
var $Report_TotalPages;
var $ReportTotalIndex = 0;
var $PageTotalIndex;
var $PageNumber;
var $RowNumber;
var $Parent;
var $UserNameTotalIndex;
function clsReportGroupradacct(& $parent) {
$this->Parent = & $parent;
}
function SetControls($PrevGroup = "") {
$this->UserName = $this->Parent->UserName->Value;
$this->AcctSessionTime = $this->Parent->AcctSessionTime->Value;
$this->AcctInputOctets = $this->Parent->AcctInputOctets->Value;
$this->AcctOutputOctets = $this->Parent->AcctOutputOctets->Value;
$this->ServiceType = $this->Parent->ServiceType->Value;
$this->AcctTerminateCause = $this->Parent->AcctTerminateCause->Value;
if ($PrevGroup) {
$this->UserNameDup = CCCompareValues($this->UserName, $PrevGroup->UserName, $this->Parent->UserName->DataType) == 0;
}
}
function SetTotalControls($mode = "", $PrevGroup = "") {
$this->Sum_AcctSessionTime = $this->Parent->Sum_AcctSessionTime->GetTotalValue($mode);
$this->Percent_AcctSessionTime = $this->Parent->Percent_AcctSessionTime->GetTotalValue($mode);
$this->Sum_AcctInputOctets = $this->Parent->Sum_AcctInputOctets->GetTotalValue($mode);
$this->Percent_AcctInputOctets = $this->Parent->Percent_AcctInputOctets->GetTotalValue($mode);
$this->Sum_AcctOutputOctets = $this->Parent->Sum_AcctOutputOctets->GetTotalValue($mode);
$this->Percent_AcctOutputOctets = $this->Parent->Percent_AcctOutputOctets->GetTotalValue($mode);
$this->TotalSum_AcctSessionTime = $this->Parent->TotalSum_AcctSessionTime->GetTotalValue($mode);
$this->TotalSum_AcctInputOctets = $this->Parent->TotalSum_AcctInputOctets->GetTotalValue($mode);
$this->TotalSum_AcctOutputOctets = $this->Parent->TotalSum_AcctOutputOctets->GetTotalValue($mode);
$this->Percent_AcctSessionTime114Rel = $this->Parent->Percent_AcctSessionTime->ValueRelative;
$this->Percent_AcctInputOctets116Rel = $this->Parent->Percent_AcctInputOctets->ValueRelative;
$this->Percent_AcctOutputOctets118Rel = $this->Parent->Percent_AcctOutputOctets->ValueRelative;
}
function SyncWithHeader(& $Header) {
$Header->Sum_AcctSessionTime = $this->Sum_AcctSessionTime;
$Header->Percent_AcctSessionTime = $this->Percent_AcctSessionTime;
$Header->Sum_AcctInputOctets = $this->Sum_AcctInputOctets;
$Header->Percent_AcctInputOctets = $this->Percent_AcctInputOctets;
$Header->Sum_AcctOutputOctets = $this->Sum_AcctOutputOctets;
$Header->Percent_AcctOutputOctets = $this->Percent_AcctOutputOctets;
$Header->TotalSum_AcctSessionTime = $this->TotalSum_AcctSessionTime;
$Header->TotalSum_AcctInputOctets = $this->TotalSum_AcctInputOctets;
$Header->TotalSum_AcctOutputOctets = $this->TotalSum_AcctOutputOctets;
$Header->Percent_AcctSessionTime114Rel = $this->Percent_AcctSessionTime114Rel;
$Header->Percent_AcctInputOctets116Rel = $this->Percent_AcctInputOctets116Rel;
$Header->Percent_AcctOutputOctets118Rel = $this->Percent_AcctOutputOctets118Rel;
$this->UserName = $Header->UserName;
$this->Parent->UserName->Value = $Header->UserName;
$this->AcctSessionTime = $Header->AcctSessionTime;
$this->Parent->AcctSessionTime->Value = $Header->AcctSessionTime;
$this->AcctInputOctets = $Header->AcctInputOctets;
$this->Parent->AcctInputOctets->Value = $Header->AcctInputOctets;
$this->AcctOutputOctets = $Header->AcctOutputOctets;
$this->Parent->AcctOutputOctets->Value = $Header->AcctOutputOctets;
$this->ServiceType = $Header->ServiceType;
$this->Parent->ServiceType->Value = $Header->ServiceType;
$this->AcctTerminateCause = $Header->AcctTerminateCause;
$this->Parent->AcctTerminateCause->Value = $Header->AcctTerminateCause;
}
function ChangeTotalControls() {
$this->Sum_AcctSessionTime = $this->Parent->Sum_AcctSessionTime->GetValue();
$this->Percent_AcctSessionTime = $this->Parent->Percent_AcctSessionTime->GetValue();
$this->Sum_AcctInputOctets = $this->Parent->Sum_AcctInputOctets->GetValue();
$this->Percent_AcctInputOctets = $this->Parent->Percent_AcctInputOctets->GetValue();
$this->Sum_AcctOutputOctets = $this->Parent->Sum_AcctOutputOctets->GetValue();
$this->Percent_AcctOutputOctets = $this->Parent->Percent_AcctOutputOctets->GetValue();
$this->TotalSum_AcctSessionTime = $this->Parent->TotalSum_AcctSessionTime->GetValue();
$this->TotalSum_AcctInputOctets = $this->Parent->TotalSum_AcctInputOctets->GetValue();
$this->TotalSum_AcctOutputOctets = $this->Parent->TotalSum_AcctOutputOctets->GetValue();
}
}
//End radacct ReportGroup class
//radacct GroupsCollection class @99-48A2E654
class clsGroupsCollectionradacct {
var $Groups;
var $mPageCurrentHeaderIndex;
var $mUserNameCurrentHeaderIndex;
var $PageSize;
var $TotalPages = 0;
var $TotalRows = 0;
var $CurrentPageSize = 0;
var $Pages;
var $Parent;
var $LastDetailIndex;
function clsGroupsCollectionradacct(& $parent) {
$this->Parent = & $parent;
$this->Groups = array();
$this->Pages = array();
$this->mUserNameCurrentHeaderIndex = 1;
$this->mReportTotalIndex = 0;
$this->mPageTotalIndex = 1;
}
function & InitGroup() {
$group = new clsReportGroupradacct($this->Parent);
$group->RowNumber = $this->TotalRows + 1;
$group->PageNumber = $this->TotalPages;
$group->PageTotalIndex = $this->mPageCurrentHeaderIndex;
$group->UserNameTotalIndex = $this->mUserNameCurrentHeaderIndex;
return $group;
}
function RestoreValues() {
$this->Parent->UserName->Value = $this->Parent->UserName->initialValue;
$this->Parent->AcctSessionTime->Value = $this->Parent->AcctSessionTime->initialValue;
$this->Parent->AcctInputOctets->Value = $this->Parent->AcctInputOctets->initialValue;
$this->Parent->AcctOutputOctets->Value = $this->Parent->AcctOutputOctets->initialValue;
$this->Parent->ServiceType->Value = $this->Parent->ServiceType->initialValue;
$this->Parent->AcctTerminateCause->Value = $this->Parent->AcctTerminateCause->initialValue;
$this->Parent->Sum_AcctSessionTime->Value = $this->Parent->Sum_AcctSessionTime->initialValue;
$this->Parent->Percent_AcctSessionTime->Value = $this->Parent->Percent_AcctSessionTime->initialValue;
$this->Parent->Sum_AcctInputOctets->Value = $this->Parent->Sum_AcctInputOctets->initialValue;
$this->Parent->Percent_AcctInputOctets->Value = $this->Parent->Percent_AcctInputOctets->initialValue;
$this->Parent->Sum_AcctOutputOctets->Value = $this->Parent->Sum_AcctOutputOctets->initialValue;
$this->Parent->Percent_AcctOutputOctets->Value = $this->Parent->Percent_AcctOutputOctets->initialValue;
$this->Parent->TotalSum_AcctSessionTime->Value = $this->Parent->TotalSum_AcctSessionTime->initialValue;
$this->Parent->TotalSum_AcctInputOctets->Value = $this->Parent->TotalSum_AcctInputOctets->initialValue;
$this->Parent->TotalSum_AcctOutputOctets->Value = $this->Parent->TotalSum_AcctOutputOctets->initialValue;
}
function OpenPage() {
$this->TotalPages++;
$Group = & $this->InitGroup();
$this->Parent->Page_Header->CCSEventResult = CCGetEvent($this->Parent->Page_Header->CCSEvents, "OnInitialize", $this->Parent->Page_Header);
if ($this->Parent->Page_Header->Visible)
$this->CurrentPageSize = $this->CurrentPageSize + $this->Parent->Page_Header->Height;
$Group->SetTotalControls("GetNextValue");
$this->Parent->Page_Header->CCSEventResult = CCGetEvent($this->Parent->Page_Header->CCSEvents, "OnCalculate", $this->Parent->Page_Header);
$Group->SetControls();
$Group->Mode = 1;
$Group->GroupType = "Page";
$Group->PageTotalIndex = count($this->Groups);
$this->mPageCurrentHeaderIndex = count($this->Groups);
$this->Groups[] = & $Group;
$this->Pages[] = count($this->Groups) == 2 ? 0 : count($this->Groups) - 1;
}
function OpenGroup($groupName) {
$Group = "";
$OpenFlag = false;
if ($groupName == "Report") {
$Group = & $this->InitGroup(true);
$this->Parent->Report_Header->CCSEventResult = CCGetEvent($this->Parent->Report_Header->CCSEvents, "OnInitialize", $this->Parent->Report_Header);
if ($this->Parent->Report_Header->Visible)
$this->CurrentPageSize = $this->CurrentPageSize + $this->Parent->Report_Header->Height;
$Group->SetTotalControls("GetNextValue");
$this->Parent->Report_Header->CCSEventResult = CCGetEvent($this->Parent->Report_Header->CCSEvents, "OnCalculate", $this->Parent->Report_Header);
$Group->SetControls();
$Group->Mode = 1;
$Group->GroupType = "Report";
$this->Groups[] = & $Group;
$this->OpenPage();
}
if ($groupName == "UserName") {
$GroupUserName = & $this->InitGroup(true);
$this->Parent->UserName_Header->CCSEventResult = CCGetEvent($this->Parent->UserName_Header->CCSEvents, "OnInitialize", $this->Parent->UserName_Header);
if ($this->Parent->Page_Footer->Visible)
$OverSize = $this->Parent->UserName_Header->Height + $this->Parent->Page_Footer->Height;
else
$OverSize = $this->Parent->UserName_Header->Height;
if (($this->PageSize > 0) and $this->Parent->UserName_Header->Visible and ($this->CurrentPageSize + $OverSize > $this->PageSize)) {
$this->ClosePage();
$this->OpenPage();
}
if ($this->Parent->UserName_Header->Visible)
$this->CurrentPageSize = $this->CurrentPageSize + $this->Parent->UserName_Header->Height;
$GroupUserName->SetTotalControls("GetNextValue");
$this->Parent->UserName_Header->CCSEventResult = CCGetEvent($this->Parent->UserName_Header->CCSEvents, "OnCalculate", $this->Parent->UserName_Header);
$GroupUserName->SetControls();
$GroupUserName->Mode = 1;
$GroupUserName->GroupType = "UserName";
$this->mUserNameCurrentHeaderIndex = count($this->Groups);
$this->Groups[] = & $GroupUserName;
$this->Parent->Sum_AcctSessionTime->Reset();
$this->Parent->Percent_AcctSessionTime->Reset();
$this->Parent->Sum_AcctInputOctets->Reset();
$this->Parent->Percent_AcctInputOctets->Reset();
$this->Parent->Sum_AcctOutputOctets->Reset();
$this->Parent->Percent_AcctOutputOctets->Reset();
}
}
function ClosePage() {
$Group = & $this->InitGroup();
$this->Parent->Page_Footer->CCSEventResult = CCGetEvent($this->Parent->Page_Footer->CCSEvents, "OnInitialize", $this->Parent->Page_Footer);
$Group->SetTotalControls("GetPrevValue");
$Group->SyncWithHeader($this->Groups[$this->mPageCurrentHeaderIndex]);
$this->Parent->Page_Footer->CCSEventResult = CCGetEvent($this->Parent->Page_Footer->CCSEvents, "OnCalculate", $this->Parent->Page_Footer);
$Group->SetControls();
$this->RestoreValues();
$this->CurrentPageSize = 0;
$Group->Mode = 2;
$Group->GroupType = "Page";
$this->Groups[] = & $Group;
}
function CloseGroup($groupName)
{
$Group = "";
if ($groupName == "Report") {
$Group = & $this->InitGroup(true);
$this->Parent->Report_Footer->CCSEventResult = CCGetEvent($this->Parent->Report_Footer->CCSEvents, "OnInitialize", $this->Parent->Report_Footer);
if ($this->Parent->Page_Footer->Visible)
$OverSize = $this->Parent->Report_Footer->Height + $this->Parent->Page_Footer->Height;
else
$OverSize = $this->Parent->Report_Footer->Height;
if (($this->PageSize > 0) and $this->Parent->Report_Footer->Visible and ($this->CurrentPageSize + $OverSize > $this->PageSize)) {
$this->ClosePage();
$this->OpenPage();
}
$Group->SetTotalControls("GetPrevValue");
$Group->SyncWithHeader($this->Groups[0]);
if ($this->Parent->Report_Footer->Visible)
$this->CurrentPageSize = $this->CurrentPageSize + $this->Parent->Report_Footer->Height;
$this->Parent->Report_Footer->CCSEventResult = CCGetEvent($this->Parent->Report_Footer->CCSEvents, "OnCalculate", $this->Parent->Report_Footer);
$Group->SetControls();
$this->RestoreValues();
$Group->Mode = 2;
$Group->GroupType = "Report";
$this->Groups[] = & $Group;
$this->ClosePage();
return;
}
$GroupUserName = & $this->InitGroup(true);
$this->Parent->UserName_Footer->CCSEventResult = CCGetEvent($this->Parent->UserName_Footer->CCSEvents, "OnInitialize", $this->Parent->UserName_Footer);
if ($this->Parent->Page_Footer->Visible)
$OverSize = $this->Parent->UserName_Footer->Height + $this->Parent->Page_Footer->Height;
else
$OverSize = $this->Parent->UserName_Footer->Height;
if (($this->PageSize > 0) and $this->Parent->UserName_Footer->Visible and ($this->CurrentPageSize + $OverSize > $this->PageSize)) {
$this->ClosePage();
$this->OpenPage();
}
$GroupUserName->SetTotalControls("GetPrevValue");
$GroupUserName->SyncWithHeader($this->Groups[$this->mUserNameCurrentHeaderIndex]);
if ($this->Parent->UserName_Footer->Visible)
$this->CurrentPageSize = $this->CurrentPageSize + $this->Parent->UserName_Footer->Height;
$this->Parent->UserName_Footer->CCSEventResult = CCGetEvent($this->Parent->UserName_Footer->CCSEvents, "OnCalculate", $this->Parent->UserName_Footer);
$GroupUserName->SetControls();
$this->Parent->Sum_AcctSessionTime->Reset();
$this->Parent->Percent_AcctSessionTime->Reset();
$this->Parent->Sum_AcctInputOctets->Reset();
$this->Parent->Percent_AcctInputOctets->Reset();
$this->Parent->Sum_AcctOutputOctets->Reset();
$this->Parent->Percent_AcctOutputOctets->Reset();
$this->RestoreValues();
$GroupUserName->Mode = 2;
$GroupUserName->GroupType ="UserName";
$this->Groups[] = & $GroupUserName;
}
function AddItem()
{
$Group = & $this->InitGroup(true);
$this->Parent->Detail->CCSEventResult = CCGetEvent($this->Parent->Detail->CCSEvents, "OnInitialize", $this->Parent->Detail);
if ($this->Parent->Page_Footer->Visible)
$OverSize = $this->Parent->Detail->Height + $this->Parent->Page_Footer->Height;
else
$OverSize = $this->Parent->Detail->Height;
if (($this->PageSize > 0) and $this->Parent->Detail->Visible and ($this->CurrentPageSize + $OverSize > $this->PageSize)) {
$this->ClosePage();
$this->OpenPage();
}
$this->TotalRows++;
if ($this->LastDetailIndex)
$PrevGroup = & $this->Groups[$this->LastDetailIndex];
else
$PrevGroup = "";
$Group->SetTotalControls("", $PrevGroup);
if ($this->Parent->Detail->Visible)
$this->CurrentPageSize = $this->CurrentPageSize + $this->Parent->Detail->Height;
$this->Parent->Detail->CCSEventResult = CCGetEvent($this->Parent->Detail->CCSEvents, "OnCalculate", $this->Parent->Detail);
$Group->SetControls($PrevGroup);
$this->LastDetailIndex = count($this->Groups);
$this->Groups[] = & $Group;
}
}
//End radacct GroupsCollection class
class clsReportradacct { //radacct Class @99-EAA3366A
//radacct Variables @99-E80EF49F
var $ComponentType = "Report";
var $PageSize;
var $ComponentName;
var $Visible;
var $Errors;
var $CCSEvents = array();
var $CCSEventResult;
var $RelativePath = "";
var $ViewMode = "Web";
var $TemplateBlock;
var $PageNumber;
var $RowNumber;
var $TotalRows;
var $TotalPages;
var $DetailBlock, $Detail;
var $Report_FooterBlock, $Report_Footer;
var $Report_HeaderBlock, $Report_Header;
var $Page_FooterBlock, $Page_Footer;
var $Page_HeaderBlock, $Page_Header;
var $UserName_HeaderBlock, $UserName_Header;
var $UserName_FooterBlock, $UserName_Footer;
var $SorterName, $SorterDirection;
var $ds;
var $DataSource;
//Report Controls
var $StaticControls, $RowControls, $Report_FooterControls, $Report_HeaderControls;
var $Page_FooterControls, $Page_HeaderControls;
var $UserName_HeaderControls, $UserName_FooterControls;
var $Sorter_AcctSessionTime;
var $Sorter_AcctInputOctets;
var $Sorter_AcctOutputOctets;
var $Sorter_ServiceType;
var $Sorter_AcctTerminateCause;
//End radacct Variables
//Class_Initialize Event @99-96D5DEF8
function clsReportradacct($RelativePath = "", & $Parent)
{
global $FileName;
global $CCSLocales;
global $DefaultDateFormat;
$this->ComponentName = "radacct";
$this->Visible = True;
$this->Parent = & $Parent;
$this->RelativePath = $RelativePath;
$this->Detail = new clsSection($this);
$MinPageSize = 0;
$MaxSectionSize = 0;
$this->Detail->Height = 1;
$MaxSectionSize = max($MaxSectionSize, $this->Detail->Height);
$this->Report_Footer = new clsSection($this);
$this->Report_Footer->Height = 1;
$MaxSectionSize = max($MaxSectionSize, $this->Report_Footer->Height);
$this->Report_Header = new clsSection($this);
$this->Page_Footer = new clsSection($this);
$this->Page_Footer->Height = 1;
$MinPageSize += $this->Page_Footer->Height;
$this->Page_Header = new clsSection($this);
$this->Page_Header->Height = 1;
$MinPageSize += $this->Page_Header->Height;
$this->UserName_Footer = new clsSection($this);
$this->UserName_Footer->Height = 1;
$MaxSectionSize = max($MaxSectionSize, $this->UserName_Footer->Height);
$this->UserName_Header = new clsSection($this);
$this->Errors = new clsErrors();
$this->DataSource = new clsradacctDataSource($this);
$this->ds = & $this->DataSource;
$this->ViewMode = CCGetParam("ViewMode", "Web");
$PageSize = CCGetParam($this->ComponentName . "PageSize", "");
if(is_numeric($PageSize) && $PageSize > 0) {
$this->PageSize = $PageSize;
} else if($this->ViewMode == "Print") {
if (!is_numeric($PageSize) || $PageSize < 0)
$this->PageSize = 50;
else if ($PageSize == "0")
$this->PageSize = 0;
else
$this->PageSize = $PageSize;
} else {
if (!is_numeric($PageSize) || $PageSize < 0)
$this->PageSize = 40;
else if ($PageSize == "0")
$this->PageSize = 100;
else
$this->PageSize = min(100, $PageSize);
}
$MinPageSize += $MaxSectionSize;
if ($this->PageSize && $MinPageSize && $this->PageSize < $MinPageSize)
$this->PageSize = $MinPageSize;
$this->PageNumber = $this->ViewMode == "Print" ? 1 : intval(CCGetParam($this->ComponentName . "Page", 1));
if ($this->PageNumber <= 0 ) {
$this->PageNumber = 1;
}
$this->SorterName = CCGetParam("radacctOrder", "");
$this->SorterDirection = CCGetParam("radacctDir", "");
$this->Sorter_AcctSessionTime = & new clsSorter($this->ComponentName, "Sorter_AcctSessionTime", $FileName, $this);
$this->Sorter_AcctInputOctets = & new clsSorter($this->ComponentName, "Sorter_AcctInputOctets", $FileName, $this);
$this->Sorter_AcctOutputOctets = & new clsSorter($this->ComponentName, "Sorter_AcctOutputOctets", $FileName, $this);
$this->Sorter_ServiceType = & new clsSorter($this->ComponentName, "Sorter_ServiceType", $FileName, $this);
$this->Sorter_AcctTerminateCause = & new clsSorter($this->ComponentName, "Sorter_AcctTerminateCause", $FileName, $this);
$this->UserName = & new clsControl(ccsReportLabel, "UserName", "UserName", ccsText, "", "", $this);
$this->AcctSessionTime = & new clsControl(ccsReportLabel, "AcctSessionTime", "AcctSessionTime", ccsInteger, "", "", $this);
$this->AcctInputOctets = & new clsControl(ccsReportLabel, "AcctInputOctets", "AcctInputOctets", ccsInteger, "", "", $this);
$this->AcctOutputOctets = & new clsControl(ccsReportLabel, "AcctOutputOctets", "AcctOutputOctets", ccsInteger, "", "", $this);
$this->ServiceType = & new clsControl(ccsReportLabel, "ServiceType", "ServiceType", ccsText, "", "", $this);
$this->AcctTerminateCause = & new clsControl(ccsReportLabel, "AcctTerminateCause", "AcctTerminateCause", ccsText, "", "", $this);
$this->Sum_AcctSessionTime = & new clsControl(ccsReportLabel, "Sum_AcctSessionTime", "Sum_AcctSessionTime", ccsInteger, "", "", $this);
$this->Sum_AcctSessionTime->TotalFunction = "Sum";
$this->Percent_AcctSessionTime = & new clsControl(ccsReportLabel, "Percent_AcctSessionTime", "Percent_AcctSessionTime", ccsFloat, array(True, 2, Null, "", False, array("#"), array("0", "0", "%"), 100, True, ""), "", $this);
$this->Percent_AcctSessionTime->TotalFunction = "Sum";
$this->Percent_AcctSessionTime->IsPercent = true;
$this->Sum_AcctInputOctets = & new clsControl(ccsReportLabel, "Sum_AcctInputOctets", "Sum_AcctInputOctets", ccsInteger, "", "", $this);
$this->Sum_AcctInputOctets->TotalFunction = "Sum";
$this->Percent_AcctInputOctets = & new clsControl(ccsReportLabel, "Percent_AcctInputOctets", "Percent_AcctInputOctets", ccsFloat, array(True, 2, Null, "", False, array("#"), array("0", "0", "%"), 100, True, ""), "", $this);
$this->Percent_AcctInputOctets->TotalFunction = "Sum";
$this->Percent_AcctInputOctets->IsPercent = true;
$this->Sum_AcctOutputOctets = & new clsControl(ccsReportLabel, "Sum_AcctOutputOctets", "Sum_AcctOutputOctets", ccsInteger, "", "", $this);
$this->Sum_AcctOutputOctets->TotalFunction = "Sum";
$this->Percent_AcctOutputOctets = & new clsControl(ccsReportLabel, "Percent_AcctOutputOctets", "Percent_AcctOutputOctets", ccsFloat, array(True, 2, Null, "", False, array("#"), array("0", "0", "%"), 100, True, ""), "", $this);
$this->Percent_AcctOutputOctets->TotalFunction = "Sum";
$this->Percent_AcctOutputOctets->IsPercent = true;
$this->NoRecords = & new clsPanel("NoRecords", $this);
$this->TotalSum_AcctSessionTime = & new clsControl(ccsReportLabel, "TotalSum_AcctSessionTime", "TotalSum_AcctSessionTime", ccsInteger, "", "", $this);
$this->TotalSum_AcctSessionTime->TotalFunction = "Sum";
$this->TotalSum_AcctInputOctets = & new clsControl(ccsReportLabel, "TotalSum_AcctInputOctets", "TotalSum_AcctInputOctets", ccsInteger, "", "", $this);
$this->TotalSum_AcctInputOctets->TotalFunction = "Sum";
$this->TotalSum_AcctOutputOctets = & new clsControl(ccsReportLabel, "TotalSum_AcctOutputOctets", "TotalSum_AcctOutputOctets", ccsInteger, "", "", $this);
$this->TotalSum_AcctOutputOctets->TotalFunction = "Sum";
$this->Report_CurrentDate = & new clsControl(ccsReportLabel, "Report_CurrentDate", "Report_CurrentDate", ccsText, array('ShortDate'), "", $this);
$this->Report_CurrentPage = & new clsControl(ccsReportLabel, "Report_CurrentPage", "Report_CurrentPage", ccsInteger, "", "", $this);
$this->Report_TotalPages = & new clsControl(ccsReportLabel, "Report_TotalPages", "Report_TotalPages", ccsInteger, "", "", $this);
$this->Navigator = & new clsNavigator($this->ComponentName, "Navigator", $FileName, 10, tpCentered, $this);
$this->PageBreak = & new clsPanel("PageBreak", $this);
}
//End Class_Initialize Event
//Initialize Method @99-6C59EE65
function Initialize()
{
if(!$this->Visible) return;
$this->DataSource->PageSize = $this->PageSize;
$this->DataSource->AbsolutePage = $this->PageNumber;
$this->DataSource->SetOrder($this->SorterName, $this->SorterDirection);
}
//End Initialize Method
//CheckErrors Method @99-E2E043AE
function CheckErrors()
{
$errors = false;
$errors = ($errors || $this->UserName->Errors->Count());
$errors = ($errors || $this->AcctSessionTime->Errors->Count());
$errors = ($errors || $this->AcctInputOctets->Errors->Count());
$errors = ($errors || $this->AcctOutputOctets->Errors->Count());
$errors = ($errors || $this->ServiceType->Errors->Count());
$errors = ($errors || $this->AcctTerminateCause->Errors->Count());
$errors = ($errors || $this->Sum_AcctSessionTime->Errors->Count());
$errors = ($errors || $this->Percent_AcctSessionTime->Errors->Count());
$errors = ($errors || $this->Sum_AcctInputOctets->Errors->Count());
$errors = ($errors || $this->Percent_AcctInputOctets->Errors->Count());
$errors = ($errors || $this->Sum_AcctOutputOctets->Errors->Count());
$errors = ($errors || $this->Percent_AcctOutputOctets->Errors->Count());
$errors = ($errors || $this->TotalSum_AcctSessionTime->Errors->Count());
$errors = ($errors || $this->TotalSum_AcctInputOctets->Errors->Count());
$errors = ($errors || $this->TotalSum_AcctOutputOctets->Errors->Count());
$errors = ($errors || $this->Report_CurrentDate->Errors->Count());
$errors = ($errors || $this->Report_CurrentPage->Errors->Count());
$errors = ($errors || $this->Report_TotalPages->Errors->Count());
$errors = ($errors || $this->Errors->Count());
$errors = ($errors || $this->DataSource->Errors->Count());
return $errors;
}
//End CheckErrors Method
//GetErrors Method @99-7F80F48F
function GetErrors()
{
$errors = "";
$errors = ComposeStrings($errors, $this->UserName->Errors->ToString());
$errors = ComposeStrings($errors, $this->AcctSessionTime->Errors->ToString());
$errors = ComposeStrings($errors, $this->AcctInputOctets->Errors->ToString());
$errors = ComposeStrings($errors, $this->AcctOutputOctets->Errors->ToString());
$errors = ComposeStrings($errors, $this->ServiceType->Errors->ToString());
$errors = ComposeStrings($errors, $this->AcctTerminateCause->Errors->ToString());
$errors = ComposeStrings($errors, $this->Sum_AcctSessionTime->Errors->ToString());
$errors = ComposeStrings($errors, $this->Percent_AcctSessionTime->Errors->ToString());
$errors = ComposeStrings($errors, $this->Sum_AcctInputOctets->Errors->ToString());
$errors = ComposeStrings($errors, $this->Percent_AcctInputOctets->Errors->ToString());
$errors = ComposeStrings($errors, $this->Sum_AcctOutputOctets->Errors->ToString());
$errors = ComposeStrings($errors, $this->Percent_AcctOutputOctets->Errors->ToString());
$errors = ComposeStrings($errors, $this->TotalSum_AcctSessionTime->Errors->ToString());
$errors = ComposeStrings($errors, $this->TotalSum_AcctInputOctets->Errors->ToString());
$errors = ComposeStrings($errors, $this->TotalSum_AcctOutputOctets->Errors->ToString());
$errors = ComposeStrings($errors, $this->Report_CurrentDate->Errors->ToString());
$errors = ComposeStrings($errors, $this->Report_CurrentPage->Errors->ToString());
$errors = ComposeStrings($errors, $this->Report_TotalPages->Errors->ToString());
$errors = ComposeStrings($errors, $this->Errors->ToString());
$errors = ComposeStrings($errors, $this->DataSource->Errors->ToString());
return $errors;
}
//End GetErrors Method
//Show Method @99-A0087ABA
function Show()
{
global $Tpl;
global $CCSLocales;
if(!$this->Visible) return;
$ShownRecords = 0;
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeSelect", $this);
$this->DataSource->Prepare();
$this->DataSource->Open();
$UserNameKey = "";
$Groups = new clsGroupsCollectionradacct($this);
$Groups->PageSize = $this->PageSize > 0 ? $this->PageSize : 0;
$is_next_record = $this->DataSource->next_record();
while($is_next_record) {
$this->DataSource->SetValues();
$this->UserName->SetValue($this->DataSource->UserName->GetValue());
$this->AcctSessionTime->SetValue($this->DataSource->AcctSessionTime->GetValue());
$this->AcctInputOctets->SetValue($this->DataSource->AcctInputOctets->GetValue());
$this->AcctOutputOctets->SetValue($this->DataSource->AcctOutputOctets->GetValue());
$this->ServiceType->SetValue($this->DataSource->ServiceType->GetValue());
$this->AcctTerminateCause->SetValue($this->DataSource->AcctTerminateCause->GetValue());
$this->Sum_AcctSessionTime->SetValue($this->DataSource->Sum_AcctSessionTime->GetValue());
$this->Percent_AcctSessionTime->SetValue($this->DataSource->Percent_AcctSessionTime->GetValue());
$this->Sum_AcctInputOctets->SetValue($this->DataSource->Sum_AcctInputOctets->GetValue());
$this->Percent_AcctInputOctets->SetValue($this->DataSource->Percent_AcctInputOctets->GetValue());
$this->Sum_AcctOutputOctets->SetValue($this->DataSource->Sum_AcctOutputOctets->GetValue());
$this->Percent_AcctOutputOctets->SetValue($this->DataSource->Percent_AcctOutputOctets->GetValue());
$this->TotalSum_AcctSessionTime->SetValue($this->DataSource->TotalSum_AcctSessionTime->GetValue());
$this->TotalSum_AcctInputOctets->SetValue($this->DataSource->TotalSum_AcctInputOctets->GetValue());
$this->TotalSum_AcctOutputOctets->SetValue($this->DataSource->TotalSum_AcctOutputOctets->GetValue());
if (count($Groups->Groups) == 0) $Groups->OpenGroup("Report");
if (count($Groups->Groups) == 2 or $UserNameKey != $this->DataSource->f("UserName")) {
$Groups->OpenGroup("UserName");
}
$Groups->AddItem();
$UserNameKey = $this->DataSource->f("UserName");
$is_next_record = $this->DataSource->next_record();
if (!$is_next_record || $UserNameKey != $this->DataSource->f("UserName")) {
$Groups->CloseGroup("UserName");
}
}
if (!count($Groups->Groups))
$Groups->OpenGroup("Report");
else
$this->NoRecords->Visible = false;
$Groups->CloseGroup("Report");
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShow", $this);
if(!$this->Visible) return;
$ReportBlock = "Report " . $this->ComponentName;
$ParentPath = $Tpl->block_path;
$Tpl->block_path = $ParentPath . "/" . $ReportBlock;
if($this->CheckErrors()) {
$Tpl->replaceblock("", $this->GetErrors());
$Tpl->block_path = $ParentPath;
return;
} else {
$this->TotalPages = $Groups->TotalPages;
$this->TotalRows = $Groups->TotalRows;
$items = & $Groups->Groups;
$i = $Groups->Pages[min($this->PageNumber, $Groups->TotalPages) - 1];
do {
$this->RowNumber = $items[$i]->RowNumber;
switch ($items[$i]->GroupType) {
Case "":
$Tpl->block_path = $ParentPath . "/" . $ReportBlock . "/Section Detail";
$this->UserName->Visible = !$items[$i]->UserNameDup;
$this->UserName->SetValue($items[$i]->UserName);
$this->AcctSessionTime->SetValue($items[$i]->AcctSessionTime);
$this->AcctInputOctets->SetValue($items[$i]->AcctInputOctets);
$this->AcctOutputOctets->SetValue($items[$i]->AcctOutputOctets);
$this->ServiceType->SetValue($items[$i]->ServiceType);
$this->AcctTerminateCause->SetValue($items[$i]->AcctTerminateCause);
$this->Detail->CCSEventResult = CCGetEvent($this->Detail->CCSEvents, "BeforeShow", $this->Detail);
$this->UserName->Show();
$this->AcctSessionTime->Show();
$this->AcctInputOctets->Show();
$this->AcctOutputOctets->Show();
$this->ServiceType->Show();
$this->AcctTerminateCause->Show();
$Tpl->block_path = $ParentPath . "/" . $ReportBlock;
if ($this->Detail->Visible)
$Tpl->parseto("Section Detail", true, "Section Detail");
break;
case "Report":
if ($items[$i]->Mode == 1) {
$this->Report_Header->CCSEventResult = CCGetEvent($this->Report_Header->CCSEvents, "BeforeShow", $this->Report_Header);
if ($this->Report_Header->Visible)
$Tpl->parseto("Section Report_Header", true, "Section Detail");
}
if ($items[$i]->Mode == 2) {
$this->TotalSum_AcctSessionTime->SetValue($items[$i]->TotalSum_AcctSessionTime);
$this->TotalSum_AcctInputOctets->SetValue($items[$i]->TotalSum_AcctInputOctets);
$this->TotalSum_AcctOutputOctets->SetValue($items[$i]->TotalSum_AcctOutputOctets);
$this->Report_Footer->CCSEventResult = CCGetEvent($this->Report_Footer->CCSEvents, "BeforeShow", $this->Report_Footer);
if ($this->Report_Footer->Visible) {
$Tpl->block_path = $ParentPath . "/" . $ReportBlock . "/Section Report_Footer";
$this->NoRecords->Show();
$this->TotalSum_AcctSessionTime->Show();
$this->TotalSum_AcctInputOctets->Show();
$this->TotalSum_AcctOutputOctets->Show();
$Tpl->block_path = $ParentPath . "/" . $ReportBlock;
$Tpl->parseto("Section Report_Footer", true, "Section Detail");
}
}
break;
case "Page":
if ($items[$i]->Mode == 1) {
$this->Page_Header->CCSEventResult = CCGetEvent($this->Page_Header->CCSEvents, "BeforeShow", $this->Page_Header);
if ($this->Page_Header->Visible) {
$Tpl->block_path = $ParentPath . "/" . $ReportBlock . "/Section Page_Header";
$this->Sorter_AcctSessionTime->Show();
$this->Sorter_AcctInputOctets->Show();
$this->Sorter_AcctOutputOctets->Show();
$this->Sorter_ServiceType->Show();
$this->Sorter_AcctTerminateCause->Show();
$Tpl->block_path = $ParentPath . "/" . $ReportBlock;
$Tpl->parseto("Section Page_Header", true, "Section Detail");
}
}
if ($items[$i]->Mode == 2) {
$this->PageBreak->Visible = (($i < count($items) - 1) && ($this->ViewMode == "Print"));
$this->Report_CurrentDate->SetValue(CCFormatDate(CCGetDateArray(), $this->Report_CurrentDate->Format));
$this->Report_CurrentPage->SetValue($items[$i]->PageNumber);
$this->Report_TotalPages->SetValue($Groups->TotalPages);
$this->Navigator->PageNumber = $items[$i]->PageNumber;
$this->Navigator->TotalPages = $Groups->TotalPages;
$this->Navigator->Visible = ("Print" != $this->ViewMode);
$this->Page_Footer->CCSEventResult = CCGetEvent($this->Page_Footer->CCSEvents, "BeforeShow", $this->Page_Footer);
if ($this->Page_Footer->Visible) {
$Tpl->block_path = $ParentPath . "/" . $ReportBlock . "/Section Page_Footer";
$this->Report_CurrentDate->Show();
$this->Report_CurrentPage->Show();
$this->Report_TotalPages->Show();
$this->Navigator->Show();
$this->PageBreak->Show();
$Tpl->block_path = $ParentPath . "/" . $ReportBlock;
$Tpl->parseto("Section Page_Footer", true, "Section Detail");
}
}
break;
case "UserName":
if ($items[$i]->Mode == 1) {
$this->UserName_Header->CCSEventResult = CCGetEvent($this->UserName_Header->CCSEvents, "BeforeShow", $this->UserName_Header);
if ($this->UserName_Header->Visible)
$Tpl->parseto("Section UserName_Header", true, "Section Detail");
}
if ($items[$i]->Mode == 2) {
$this->Sum_AcctSessionTime->SetValue($items[$i]->Sum_AcctSessionTime);
$this->Percent_AcctSessionTime->SetText(CCFormatNumber($items[$items[$i]->ReportTotalIndex]->Percent_AcctSessionTime114Rel && strval($items[$i]->Percent_AcctSessionTime) != "" ? $items[$i]->Percent_AcctSessionTime / $items[$items[$i]->ReportTotalIndex]->Percent_AcctSessionTime114Rel : "", array(True, 2, Null, "", False, array("#"), array("0", "0", "%"), 100, True, "")), ccsFloat);
$this->Sum_AcctInputOctets->SetValue($items[$i]->Sum_AcctInputOctets);
$this->Percent_AcctInputOctets->SetText(CCFormatNumber($items[$items[$i]->ReportTotalIndex]->Percent_AcctInputOctets116Rel && strval($items[$i]->Percent_AcctInputOctets) != "" ? $items[$i]->Percent_AcctInputOctets / $items[$items[$i]->ReportTotalIndex]->Percent_AcctInputOctets116Rel : "", array(True, 2, Null, "", False, array("#"), array("0", "0", "%"), 100, True, "")), ccsFloat);
$this->Sum_AcctOutputOctets->SetValue($items[$i]->Sum_AcctOutputOctets);
$this->Percent_AcctOutputOctets->SetText(CCFormatNumber($items[$items[$i]->ReportTotalIndex]->Percent_AcctOutputOctets118Rel && strval($items[$i]->Percent_AcctOutputOctets) != "" ? $items[$i]->Percent_AcctOutputOctets / $items[$items[$i]->ReportTotalIndex]->Percent_AcctOutputOctets118Rel : "", array(True, 2, Null, "", False, array("#"), array("0", "0", "%"), 100, True, "")), ccsFloat);
$this->UserName_Footer->CCSEventResult = CCGetEvent($this->UserName_Footer->CCSEvents, "BeforeShow", $this->UserName_Footer);
if ($this->UserName_Footer->Visible) {
$Tpl->block_path = $ParentPath . "/" . $ReportBlock . "/Section UserName_Footer";
$this->Sum_AcctSessionTime->Show();
$this->Percent_AcctSessionTime->Show();
$this->Sum_AcctInputOctets->Show();
$this->Percent_AcctInputOctets->Show();
$this->Sum_AcctOutputOctets->Show();
$this->Percent_AcctOutputOctets->Show();
$Tpl->block_path = $ParentPath . "/" . $ReportBlock;
$Tpl->parseto("Section UserName_Footer", true, "Section Detail");
}
}
break;
}
$i++;
} while ($i < count($items) && ($this->ViewMode == "Print" || !($i > 1 && $items[$i]->GroupType == 'Page' && $items[$i]->Mode == 1)));
$Tpl->block_path = $ParentPath;
$Tpl->parse($ReportBlock);
$this->DataSource->close();
}
}
//End Show Method
} //End radacct Class @99-FCB6E20C
class clsradacctDataSource extends clsDBConnection1 { //radacctDataSource Class @99-477E1887
//DataSource Variables @99-92133035
var $Parent = "";
var $CCSEvents = "";
var $CCSEventResult;
var $ErrorBlock;
var $CmdExecution;
var $wp;
// Datasource fields
var $UserName;
var $AcctSessionTime;
var $AcctInputOctets;
var $AcctOutputOctets;
var $ServiceType;
var $AcctTerminateCause;
var $Sum_AcctSessionTime;
var $Percent_AcctSessionTime;
var $Sum_AcctInputOctets;
var $Percent_AcctInputOctets;
var $Sum_AcctOutputOctets;
var $Percent_AcctOutputOctets;
var $TotalSum_AcctSessionTime;
var $TotalSum_AcctInputOctets;
var $TotalSum_AcctOutputOctets;
//End DataSource Variables
//DataSourceClass_Initialize Event @99-BC489CE2
function clsradacctDataSource(& $Parent)
{
$this->Parent = & $Parent;
$this->ErrorBlock = "Report radacct";
$this->Initialize();
$this->UserName = new clsField("UserName", ccsText, "");
$this->AcctSessionTime = new clsField("AcctSessionTime", ccsInteger, "");
$this->AcctInputOctets = new clsField("AcctInputOctets", ccsInteger, "");
$this->AcctOutputOctets = new clsField("AcctOutputOctets", ccsInteger, "");
$this->ServiceType = new clsField("ServiceType", ccsText, "");
$this->AcctTerminateCause = new clsField("AcctTerminateCause", ccsText, "");
$this->Sum_AcctSessionTime = new clsField("Sum_AcctSessionTime", ccsInteger, "");
$this->Percent_AcctSessionTime = new clsField("Percent_AcctSessionTime", ccsFloat, "");
$this->Sum_AcctInputOctets = new clsField("Sum_AcctInputOctets", ccsInteger, "");
$this->Percent_AcctInputOctets = new clsField("Percent_AcctInputOctets", ccsFloat, "");
$this->Sum_AcctOutputOctets = new clsField("Sum_AcctOutputOctets", ccsInteger, "");
$this->Percent_AcctOutputOctets = new clsField("Percent_AcctOutputOctets", ccsFloat, "");
$this->TotalSum_AcctSessionTime = new clsField("TotalSum_AcctSessionTime", ccsInteger, "");
$this->TotalSum_AcctInputOctets = new clsField("TotalSum_AcctInputOctets", ccsInteger, "");
$this->TotalSum_AcctOutputOctets = new clsField("TotalSum_AcctOutputOctets", ccsInteger, "");
}
//End DataSourceClass_Initialize Event
//SetOrder Method @99-2691A279
function SetOrder($SorterName, $SorterDirection)
{
$this->Order = "";
$this->Order = CCGetOrder($this->Order, $SorterName, $SorterDirection,
array("Sorter_AcctSessionTime" => array("AcctSessionTime", ""),
"Sorter_AcctInputOctets" => array("AcctInputOctets", ""),
"Sorter_AcctOutputOctets" => array("AcctOutputOctets", ""),
"Sorter_ServiceType" => array("ServiceType", ""),
"Sorter_AcctTerminateCause" => array("AcctTerminateCause", "")));
}
//End SetOrder Method
//Prepare Method @99-14D6CD9D
function Prepare()
{
global $CCSLocales;
global $DefaultDateFormat;
}
//End Prepare Method
//Open Method @99-06C47DA6
function Open()
{
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeBuildSelect", $this->Parent);
$this->SQL = "SELECT * " .
"FROM radacct {SQL_Where} {SQL_OrderBy}";
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeExecuteSelect", $this->Parent);
$this->query(CCBuildSQL($this->SQL, $this->Where, "UserName asc" . ($this->Order ? ", " . $this->Order: "")));
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "AfterExecuteSelect", $this->Parent);
}
//End Open Method
//SetValues Method @99-376F01E3
function SetValues()
{
$this->UserName->SetDBValue($this->f("UserName"));
$this->AcctSessionTime->SetDBValue(trim($this->f("AcctSessionTime")));
$this->AcctInputOctets->SetDBValue(trim($this->f("AcctInputOctets")));
$this->AcctOutputOctets->SetDBValue(trim($this->f("AcctOutputOctets")));
$this->ServiceType->SetDBValue($this->f("ServiceType"));
$this->AcctTerminateCause->SetDBValue($this->f("AcctTerminateCause"));
$this->Sum_AcctSessionTime->SetDBValue(trim($this->f("AcctSessionTime")));
$this->Percent_AcctSessionTime->SetDBValue(trim($this->f("AcctSessionTime")));
$this->Sum_AcctInputOctets->SetDBValue(trim($this->f("AcctInputOctets")));
$this->Percent_AcctInputOctets->SetDBValue(trim($this->f("AcctInputOctets")));
$this->Sum_AcctOutputOctets->SetDBValue(trim($this->f("AcctOutputOctets")));
$this->Percent_AcctOutputOctets->SetDBValue(trim($this->f("AcctOutputOctets")));
$this->TotalSum_AcctSessionTime->SetDBValue(trim($this->f("AcctSessionTime")));
$this->TotalSum_AcctInputOctets->SetDBValue(trim($this->f("AcctInputOctets")));
$this->TotalSum_AcctOutputOctets->SetDBValue(trim($this->f("AcctOutputOctets")));
}
//End SetValues Method
} //End radacctDataSource Class @99-FCB6E20C
//Include Page implementation @98-58DBA1E3
include_once(RelativePath . "/Footer.php");
//End Include Page implementation
//Initialize Page @1-757BFA32
// Variables
$FileName = "";
$Redirect = "";
$Tpl = "";
$TemplateFileName = "";
$BlockToParse = "";
$ComponentName = "";
// Events;
$CCSEvents = "";
$CCSEventResult = "";
$FileName = FileName;
$Redirect = "";
$TemplateFileName = "index.html";
$BlockToParse = "main";
$TemplateEncoding = "CP1252";
$PathToRoot = "./";
//End Initialize Page
//Include events file @1-7D9DFCA7
include("./index_events.php");
//End Include events file
//Initialize Objects @1-746EF0D2
$DBConnection1 = new clsDBConnection1();
$MainPage->Connections["Connection1"] = & $DBConnection1;
// Controls
$Header = & new clsHeader("", "Header", $MainPage);
$Header->Initialize();
$Report_Print = & new clsControl(ccsLink, "Report_Print", "Report_Print", ccsText, "", CCGetRequestParam("Report_Print", ccsGet), $MainPage);
$Report_Print->Page = "index.php";
$radacct = & new clsReportradacct("", $MainPage);
$Footer = & new clsFooter("", "Footer", $MainPage);
$Footer->Initialize();
$MainPage->Header = & $Header;
$MainPage->Report_Print = & $Report_Print;
$MainPage->radacct = & $radacct;
$MainPage->Footer = & $Footer;
$Report_Print->Parameters = CCGetQueryString("QueryString", array("ccsForm"));
$Report_Print->Parameters = CCAddParam($Report_Print->Parameters, "ViewMode", "Print");
$radacct->Initialize();
BindEvents();
$CCSEventResult = CCGetEvent($CCSEvents, "AfterInitialize", $MainPage);
$Charset = $Charset ? $Charset : "windows-1252";
if ($Charset)
header("Content-Type: text/html; charset=" . $Charset);
//End Initialize Objects
//Initialize HTML Template @1-8F4531F3
$CCSEventResult = CCGetEvent($CCSEvents, "OnInitializeView", $MainPage);
$Tpl = new clsTemplate($FileEncoding, $TemplateEncoding);
$Tpl->LoadTemplate(PathToCurrentPage . $TemplateFileName, $BlockToParse, "CP1252");
$Tpl->block_path = "/$BlockToParse";
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeShow", $MainPage);
//End Initialize HTML Template
//Execute Components @1-351F985C
$Header->Operations();
$Footer->Operations();
//End Execute Components
//Go to destination page @1-7522FE99
if($Redirect)
{
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeUnload", $MainPage);
$DBConnection1->close();
header("Location: " . $Redirect);
$Header->Class_Terminate();
unset($Header);
unset($radacct);
$Footer->Class_Terminate();
unset($Footer);
unset($Tpl);
exit;
}
//End Go to destination page
//Show Page @1-E7B6D024
$Header->Show();
$radacct->Show();
$Footer->Show();
$Report_Print->Show();
$Tpl->block_path = "";
$Tpl->Parse($BlockToParse, false);
$main_block = $Tpl->GetVar($BlockToParse);
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeOutput", $MainPage);
if ($CCSEventResult) echo $main_block;
//End Show Page
//Unload Page @1-C9BA6218
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeUnload", $MainPage);
$DBConnection1->close();
$Header->Class_Terminate();
unset($Header);
unset($radacct);
$Footer->Class_Terminate();
unset($Footer);
unset($Tpl);
//End Unload Page
?>
|