Location: PHPKode > projects > Bug Jr. Support System > dist/myitems.php
<?php
//Include Common Files @1-5471E0F2
define("RelativePath", ".");
include(RelativePath . "/Common.php");
include(RelativePath . "/Template.php");
include(RelativePath . "/Sorter.php");
include(RelativePath . "/Navigator.php");
  
//End Include Common Files

//Include Page implementation @2-503267A8
include("./Header.php");
//End Include Page implementation

class clsGridsupport { //support class @4-2772E0FB

//Variables @4-B2EC5EA9

    // Public variables
    var $ComponentName;
    var $Visible; var $Errors;
    var $ds; var $PageSize;
    var $SorterName = "";
    var $SorterDirection = "";
    var $PageNumber;

    var $CCSEvents = "";
    var $CCSEventResult;

    // Grid Controls
    var $StaticControls; var $RowControls;
    var $Sorter_support_ticket_number;
    var $Sorter_support_customer_name;
    var $Sorter_support_opened_datetime;
    var $Sorter_support_status;
    var $Navigator;
//End Variables

//Class_Initialize Event @4-51D13200
    function clsGridsupport()
    {
        global $FileName;
        $this->ComponentName = "support";
        $this->Visible = True;
        $this->Errors = new clsErrors();
        $this->ds = new clssupportDataSource();
        $this->PageSize = CCGetParam($this->ComponentName . "PageSize", "");
        if(!is_numeric($this->PageSize) || !strlen($this->PageSize))
            $this->PageSize = 10;
        else
            $this->PageSize = intval($this->PageSize);
        $this->PageNumber = intval(CCGetParam($this->ComponentName . "Page", 1));
        $this->SorterName = CCGetParam("supportOrder", "");
        $this->SorterDirection = CCGetParam("supportDir", "");

        $this->support_tick_num = new clsControl(ccsLink, "support_tick_num", "support_tick_num", ccsText, "", CCGetRequestParam("support_tick_num", ccsGet));
        $this->support_customer_name = new clsControl(ccsLabel, "support_customer_name", "support_customer_name", ccsMemo, "", CCGetRequestParam("support_customer_name", ccsGet));
        $this->support_opened_datetime = new clsControl(ccsLabel, "support_opened_datetime", "support_opened_datetime", ccsDate, Array("GeneralDate"), CCGetRequestParam("support_opened_datetime", ccsGet));
        $this->support_status = new clsControl(ccsLabel, "support_status", "support_status", ccsText, "", CCGetRequestParam("support_status", ccsGet));
        $this->Sorter_support_ticket_number = new clsSorter($this->ComponentName, "Sorter_support_ticket_number", $FileName);
        $this->Sorter_support_customer_name = new clsSorter($this->ComponentName, "Sorter_support_customer_name", $FileName);
        $this->Sorter_support_opened_datetime = new clsSorter($this->ComponentName, "Sorter_support_opened_datetime", $FileName);
        $this->Sorter_support_status = new clsSorter($this->ComponentName, "Sorter_support_status", $FileName);
        $this->Navigator = new clsNavigator($this->ComponentName, "Navigator", $FileName, 10, tpCentered);
    }
//End Class_Initialize Event

//Initialize Method @4-383CA3E0
    function Initialize()
    {
        if(!$this->Visible) return;

        $this->ds->PageSize = $this->PageSize;
        $this->ds->SetOrder($this->SorterName, $this->SorterDirection);
        $this->ds->AbsolutePage = $this->PageNumber;
    }
//End Initialize Method

//Show Method @4-A4CD1BD0
    function Show()
    {
        global $Tpl;
        if(!$this->Visible) return;


        $ShownRecords = 0;

        $this->ds->Parameters["sesUserID"] = CCGetSession("UserID");
        $this->ds->Prepare();
        $this->ds->Open();

        $GridBlock = "Grid " . $this->ComponentName;
        $Tpl->block_path = $GridBlock;

        $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShow");


        $is_next_record = $this->ds->next_record();
        if($is_next_record && $ShownRecords < $this->PageSize)
        {
            do {
                    $this->ds->SetValues();
                $Tpl->block_path = $GridBlock . "/Row";
                $this->support_tick_num->SetValue($this->ds->support_tick_num->GetValue());
                $this->support_tick_num->Parameters = CCGetQueryString("Form", Array("ccsForm"));
                $this->support_tick_num->Parameters = CCAddParam($this->support_tick_num->Parameters, "support_id", $this->ds->f("support_id"));
                $this->support_tick_num->Page = "edittick.php";
                $this->support_customer_name->SetValue($this->ds->support_customer_name->GetValue());
                $this->support_opened_datetime->SetValue($this->ds->support_opened_datetime->GetValue());
                $this->support_status->SetValue($this->ds->support_status->GetValue());
                $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShowRow");
                $this->support_tick_num->Show();
                $this->support_customer_name->Show();
                $this->support_opened_datetime->Show();
                $this->support_status->Show();
                $Tpl->block_path = $GridBlock;
                $Tpl->parse("Row", true);
                $ShownRecords++;
                $is_next_record = $this->ds->next_record();
            } while ($is_next_record && $ShownRecords < $this->PageSize);
        }
        else // Show NoRecords block if no records are found
        {
            $Tpl->parse("NoRecords", false);
        }

        $this->Navigator->TotalPages = $this->ds->PageCount();
        $this->Sorter_support_ticket_number->Show();
        $this->Sorter_support_customer_name->Show();
        $this->Sorter_support_opened_datetime->Show();
        $this->Sorter_support_status->Show();
        $this->Navigator->Show();
        $Tpl->parse("", false);
        $Tpl->block_path = "";
    }
//End Show Method

} //End support Class @4-FCB6E20C

class clssupportDataSource extends clsDBBJSS {  //supportDataSource Class @4-14CF4EED

//DataSource Variables @4-EE154328
    var $CCSEvents = "";
    var $CCSEventResult;

    var $CountSQL;
    var $wp;

    // Datasource fields
    var $support_tick_num;
    var $support_customer_name;
    var $support_opened_datetime;
    var $support_status;
//End DataSource Variables

//Class_Initialize Event @4-11602969
    function clssupportDataSource()
    {
        $this->Initialize();
        $this->support_tick_num = new clsField("support_tick_num", ccsText, "");
        $this->support_customer_name = new clsField("support_customer_name", ccsMemo, "");
        $this->support_opened_datetime = new clsField("support_opened_datetime", ccsDate, Array("yyyy", "-", "mm", "-", "dd", " ", "HH", ":", "nn", ":", "ss"));
        $this->support_status = new clsField("support_status", ccsText, "");

    }
//End Class_Initialize Event

//SetOrder Method @4-08D066C5
    function SetOrder($SorterName, $SorterDirection)
    {
        $this->Order = "";
        $this->Order = CCGetOrder($this->Order, $SorterName, $SorterDirection, 
            array("Sorter_support_ticket_number" => array("support_ticket_number", ""), 
            "Sorter_support_customer_name" => array("support_customer_name", ""), 
            "Sorter_support_opened_datetime" => array("support_opened_datetime", ""), 
            "Sorter_support_status" => array("support_status", "")));
    }
//End SetOrder Method

//Prepare Method @4-FC3D0AB4
    function Prepare()
    {
        $this->wp = new clsSQLParameters();
        $this->wp->AddParameter("1", "sesUserID", ccsInteger, "", "", $this->Parameters["sesUserID"], "");
        $this->wp->Criterion[1] = $this->wp->Operation(opEqual, "`support_assigned_to`", $this->wp->GetDBValue("1"), $this->ToSQL($this->wp->GetDBValue("1"), ccsInteger));
        $this->wp->Criterion[2] = "support_status = 0";
        $this->Where = $this->wp->opAND(false, $this->wp->Criterion[1], $this->wp->Criterion[2]);
    }
//End Prepare Method

//Open Method @4-84169F5D
    function Open()
    {
        $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeBuildSelect");
        $this->CountSQL = "SELECT COUNT(*)  " .
        "FROM support INNER JOIN statuses ON support.support_status = statuses.status_id";
        $this->SQL = "SELECT *  " .
        "FROM support INNER JOIN statuses ON support.support_status = statuses.status_id";
        $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeExecuteSelect");
        $this->RecordsCount = CCGetDBValue(CCBuildSQL($this->CountSQL, $this->Where, ""), $this);
        $this->query(CCBuildSQL($this->SQL, $this->Where, $this->Order));
        $this->CCSEventResult = CCGetEvent($this->CCSEvents, "AfterExecuteSelect");
        $this->MoveToPage($this->AbsolutePage);
    }
//End Open Method

//SetValues Method @4-3B58D679
    function SetValues()
    {
        $this->support_tick_num->SetDBValue($this->f("support_ticket_number"));
        $this->support_customer_name->SetDBValue($this->f("support_customer_name"));
        $this->support_opened_datetime->SetDBValue($this->f("support_opened_datetime"));
        $this->support_status->SetDBValue($this->f("status_name"));
    }
//End SetValues Method

} //End supportDataSource Class @4-FCB6E20C

class clsGridsupport1 { //support1 class @19-350BB9C2

//Variables @19-E1BEF1C5

    // Public variables
    var $ComponentName;
    var $Visible; var $Errors;
    var $ds; var $PageSize;
    var $SorterName = "";
    var $SorterDirection = "";
    var $PageNumber;

    var $CCSEvents = "";
    var $CCSEventResult;

    // Grid Controls
    var $StaticControls; var $RowControls;
    var $Sorter_support_ticket_number;
    var $Sorter_support_customer_name;
    var $Navigator;
//End Variables

//Class_Initialize Event @19-21324313
    function clsGridsupport1()
    {
        global $FileName;
        $this->ComponentName = "support1";
        $this->Visible = True;
        $this->Errors = new clsErrors();
        $this->ds = new clssupport1DataSource();
        $this->PageSize = CCGetParam($this->ComponentName . "PageSize", "");
        if(!is_numeric($this->PageSize) || !strlen($this->PageSize))
            $this->PageSize = 10;
        else
            $this->PageSize = intval($this->PageSize);
        $this->PageNumber = intval(CCGetParam($this->ComponentName . "Page", 1));
        $this->SorterName = CCGetParam("support1Order", "");
        $this->SorterDirection = CCGetParam("support1Dir", "");

        $this->Link1 = new clsControl(ccsLink, "Link1", "Link1", ccsText, "", CCGetRequestParam("Link1", ccsGet));
        $this->support_customer_name = new clsControl(ccsLabel, "support_customer_name", "support_customer_name", ccsMemo, "", CCGetRequestParam("support_customer_name", ccsGet));
        $this->Label1 = new clsControl(ccsLabel, "Label1", "Label1", ccsDate, Array("GeneralDate"), CCGetRequestParam("Label1", ccsGet));
        $this->Sorter_support_ticket_number = new clsSorter($this->ComponentName, "Sorter_support_ticket_number", $FileName);
        $this->Sorter_support_customer_name = new clsSorter($this->ComponentName, "Sorter_support_customer_name", $FileName);
        $this->Navigator = new clsNavigator($this->ComponentName, "Navigator", $FileName, 10, tpCentered);
    }
//End Class_Initialize Event

//Initialize Method @19-383CA3E0
    function Initialize()
    {
        if(!$this->Visible) return;

        $this->ds->PageSize = $this->PageSize;
        $this->ds->SetOrder($this->SorterName, $this->SorterDirection);
        $this->ds->AbsolutePage = $this->PageNumber;
    }
//End Initialize Method

//Show Method @19-BF4C629B
    function Show()
    {
        global $Tpl;
        if(!$this->Visible) return;


        $ShownRecords = 0;

        $this->ds->Prepare();
        $this->ds->Open();

        $GridBlock = "Grid " . $this->ComponentName;
        $Tpl->block_path = $GridBlock;

        $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShow");


        $is_next_record = $this->ds->next_record();
        if($is_next_record && $ShownRecords < $this->PageSize)
        {
            do {
                    $this->ds->SetValues();
                $Tpl->block_path = $GridBlock . "/Row";
                $this->Link1->SetValue($this->ds->Link1->GetValue());
                $this->Link1->Parameters = CCGetQueryString("QueryString", Array("ccsForm"));
                $this->Link1->Parameters = CCAddParam($this->Link1->Parameters, "support_id", $this->ds->f("support_id"));
                $this->Link1->Page = "edittick.php";
                $this->support_customer_name->SetValue($this->ds->support_customer_name->GetValue());
                $this->Label1->SetValue($this->ds->Label1->GetValue());
                $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShowRow");
                $this->Link1->Show();
                $this->support_customer_name->Show();
                $this->Label1->Show();
                $Tpl->block_path = $GridBlock;
                $Tpl->parse("Row", true);
                $ShownRecords++;
                $is_next_record = $this->ds->next_record();
            } while ($is_next_record && $ShownRecords < $this->PageSize);
        }
        else // Show NoRecords block if no records are found
        {
            $Tpl->parse("NoRecords", false);
        }

        $this->Navigator->TotalPages = $this->ds->PageCount();
        $this->Sorter_support_ticket_number->Show();
        $this->Sorter_support_customer_name->Show();
        $this->Navigator->Show();
        $Tpl->parse("", false);
        $Tpl->block_path = "";
    }
//End Show Method

} //End support1 Class @19-FCB6E20C

class clssupport1DataSource extends clsDBBJSS {  //support1DataSource Class @19-98007351

//DataSource Variables @19-EDA4C437
    var $CCSEvents = "";
    var $CCSEventResult;

    var $CountSQL;
    var $wp;

    // Datasource fields
    var $Link1;
    var $support_customer_name;
    var $Label1;
//End DataSource Variables

//Class_Initialize Event @19-E2A39F46
    function clssupport1DataSource()
    {
        $this->Initialize();
        $this->Link1 = new clsField("Link1", ccsText, "");
        $this->support_customer_name = new clsField("support_customer_name", ccsMemo, "");
        $this->Label1 = new clsField("Label1", ccsDate, Array("yyyy", "-", "mm", "-", "dd", " ", "HH", ":", "nn", ":", "ss"));

    }
//End Class_Initialize Event

//SetOrder Method @19-6BCB71F9
    function SetOrder($SorterName, $SorterDirection)
    {
        $this->Order = "";
        $this->Order = CCGetOrder($this->Order, $SorterName, $SorterDirection, 
            array("Sorter_support_ticket_number" => array("support_ticket_number", ""), 
            "Sorter_support_customer_name" => array("support_customer_name", "")));
    }
//End SetOrder Method

//Prepare Method @19-E616C0A2
    function Prepare()
    {
        $this->wp = new clsSQLParameters();
        $this->wp->Criterion[1] = "support_assigned_to = 0";
        $this->Where = $this->wp->Criterion[1];
    }
//End Prepare Method

//Open Method @19-4F998382
    function Open()
    {
        $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeBuildSelect");
        $this->CountSQL = "SELECT COUNT(*)  " .
        "FROM support";
        $this->SQL = "SELECT *  " .
        "FROM support";
        $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeExecuteSelect");
        $this->RecordsCount = CCGetDBValue(CCBuildSQL($this->CountSQL, $this->Where, ""), $this);
        $this->query(CCBuildSQL($this->SQL, $this->Where, $this->Order));
        $this->CCSEventResult = CCGetEvent($this->CCSEvents, "AfterExecuteSelect");
        $this->MoveToPage($this->AbsolutePage);
    }
//End Open Method

//SetValues Method @19-642279E6
    function SetValues()
    {
        $this->Link1->SetDBValue($this->f("support_ticket_number"));
        $this->support_customer_name->SetDBValue($this->f("support_customer_name"));
        $this->Label1->SetDBValue($this->f("support_opened_datetime"));
    }
//End SetValues Method

} //End support1DataSource Class @19-FCB6E20C

class clsGridsupport2 { //support2 class @35-1E26EA01

//Variables @35-94234BE4

    // Public variables
    var $ComponentName;
    var $Visible; var $Errors;
    var $ds; var $PageSize;
    var $SorterName = "";
    var $SorterDirection = "";
    var $PageNumber;

    var $CCSEvents = "";
    var $CCSEventResult;

    // Grid Controls
    var $StaticControls; var $RowControls;
    var $Sorter_support_ticket_number;
    var $Sorter_support_customer_name;
    var $Sorter_support_opened_datetime;
    var $Sorter_support_closed_datetime;
    var $Navigator;
//End Variables

//Class_Initialize Event @35-85E4D12F
    function clsGridsupport2()
    {
        global $FileName;
        $this->ComponentName = "support2";
        $this->Visible = True;
        $this->Errors = new clsErrors();
        $this->ds = new clssupport2DataSource();
        $this->PageSize = CCGetParam($this->ComponentName . "PageSize", "");
        if(!is_numeric($this->PageSize) || !strlen($this->PageSize))
            $this->PageSize = 10;
        else
            $this->PageSize = intval($this->PageSize);
        $this->PageNumber = intval(CCGetParam($this->ComponentName . "Page", 1));
        $this->SorterName = CCGetParam("support2Order", "");
        $this->SorterDirection = CCGetParam("support2Dir", "");

        $this->Link1 = new clsControl(ccsLink, "Link1", "Link1", ccsText, "", CCGetRequestParam("Link1", ccsGet));
        $this->support_customer_name = new clsControl(ccsLabel, "support_customer_name", "support_customer_name", ccsMemo, "", CCGetRequestParam("support_customer_name", ccsGet));
        $this->support_opened_datetime = new clsControl(ccsLabel, "support_opened_datetime", "support_opened_datetime", ccsDate, Array("GeneralDate"), CCGetRequestParam("support_opened_datetime", ccsGet));
        $this->support_closed_datetime = new clsControl(ccsLabel, "support_closed_datetime", "support_closed_datetime", ccsDate, Array("GeneralDate"), CCGetRequestParam("support_closed_datetime", ccsGet));
        $this->Sorter_support_ticket_number = new clsSorter($this->ComponentName, "Sorter_support_ticket_number", $FileName);
        $this->Sorter_support_customer_name = new clsSorter($this->ComponentName, "Sorter_support_customer_name", $FileName);
        $this->Sorter_support_opened_datetime = new clsSorter($this->ComponentName, "Sorter_support_opened_datetime", $FileName);
        $this->Sorter_support_closed_datetime = new clsSorter($this->ComponentName, "Sorter_support_closed_datetime", $FileName);
        $this->Navigator = new clsNavigator($this->ComponentName, "Navigator", $FileName, 10, tpCentered);
    }
//End Class_Initialize Event

//Initialize Method @35-383CA3E0
    function Initialize()
    {
        if(!$this->Visible) return;

        $this->ds->PageSize = $this->PageSize;
        $this->ds->SetOrder($this->SorterName, $this->SorterDirection);
        $this->ds->AbsolutePage = $this->PageNumber;
    }
//End Initialize Method

//Show Method @35-50F18F2D
    function Show()
    {
        global $Tpl;
        if(!$this->Visible) return;


        $ShownRecords = 0;

        $this->ds->Prepare();
        $this->ds->Open();

        $GridBlock = "Grid " . $this->ComponentName;
        $Tpl->block_path = $GridBlock;

        $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShow");


        $is_next_record = $this->ds->next_record();
        if($is_next_record && $ShownRecords < $this->PageSize)
        {
            do {
                    $this->ds->SetValues();
                $Tpl->block_path = $GridBlock . "/Row";
                $this->Link1->SetValue($this->ds->Link1->GetValue());
                $this->Link1->Parameters = CCGetQueryString("QueryString", Array("ccsForm"));
                $this->Link1->Parameters = CCAddParam($this->Link1->Parameters, "s_support_ticket_number", $this->ds->f("support_ticket_number"));
                $this->Link1->Page = "status.php";
                $this->support_customer_name->SetValue($this->ds->support_customer_name->GetValue());
                $this->support_opened_datetime->SetValue($this->ds->support_opened_datetime->GetValue());
                $this->support_closed_datetime->SetValue($this->ds->support_closed_datetime->GetValue());
                $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShowRow");
                $this->Link1->Show();
                $this->support_customer_name->Show();
                $this->support_opened_datetime->Show();
                $this->support_closed_datetime->Show();
                $Tpl->block_path = $GridBlock;
                $Tpl->parse("Row", true);
                $ShownRecords++;
                $is_next_record = $this->ds->next_record();
            } while ($is_next_record && $ShownRecords < $this->PageSize);
        }
        else // Show NoRecords block if no records are found
        {
            $Tpl->parse("NoRecords", false);
        }

        $this->Navigator->TotalPages = $this->ds->PageCount();
        $this->Sorter_support_ticket_number->Show();
        $this->Sorter_support_customer_name->Show();
        $this->Sorter_support_opened_datetime->Show();
        $this->Sorter_support_closed_datetime->Show();
        $this->Navigator->Show();
        $Tpl->parse("", false);
        $Tpl->block_path = "";
    }
//End Show Method

} //End support2 Class @35-FCB6E20C

class clssupport2DataSource extends clsDBBJSS {  //support2DataSource Class @35-9ADE7476

//DataSource Variables @35-2BF43138
    var $CCSEvents = "";
    var $CCSEventResult;

    var $CountSQL;
    var $wp;

    // Datasource fields
    var $Link1;
    var $support_customer_name;
    var $support_opened_datetime;
    var $support_closed_datetime;
//End DataSource Variables

//Class_Initialize Event @35-354AA56D
    function clssupport2DataSource()
    {
        $this->Initialize();
        $this->Link1 = new clsField("Link1", ccsText, "");
        $this->support_customer_name = new clsField("support_customer_name", ccsMemo, "");
        $this->support_opened_datetime = new clsField("support_opened_datetime", ccsDate, Array("yyyy", "-", "mm", "-", "dd", " ", "HH", ":", "nn", ":", "ss"));
        $this->support_closed_datetime = new clsField("support_closed_datetime", ccsDate, Array("yyyy", "-", "mm", "-", "dd", " ", "HH", ":", "nn", ":", "ss"));

    }
//End Class_Initialize Event

//SetOrder Method @35-DB5B4445
    function SetOrder($SorterName, $SorterDirection)
    {
        $this->Order = "";
        $this->Order = CCGetOrder($this->Order, $SorterName, $SorterDirection, 
            array("Sorter_support_ticket_number" => array("support_ticket_number", ""), 
            "Sorter_support_customer_name" => array("support_customer_name", ""), 
            "Sorter_support_opened_datetime" => array("support_opened_datetime", ""), 
            "Sorter_support_closed_datetime" => array("support_closed_datetime", "")));
    }
//End SetOrder Method

//Prepare Method @35-3DC49FF9
    function Prepare()
    {
        $this->wp = new clsSQLParameters();
        $this->wp->Criterion[1] = "support_status = 1";
        $this->Where = $this->wp->Criterion[1];
    }
//End Prepare Method

//Open Method @35-4F998382
    function Open()
    {
        $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeBuildSelect");
        $this->CountSQL = "SELECT COUNT(*)  " .
        "FROM support";
        $this->SQL = "SELECT *  " .
        "FROM support";
        $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeExecuteSelect");
        $this->RecordsCount = CCGetDBValue(CCBuildSQL($this->CountSQL, $this->Where, ""), $this);
        $this->query(CCBuildSQL($this->SQL, $this->Where, $this->Order));
        $this->CCSEventResult = CCGetEvent($this->CCSEvents, "AfterExecuteSelect");
        $this->MoveToPage($this->AbsolutePage);
    }
//End Open Method

//SetValues Method @35-BE8056A5
    function SetValues()
    {
        $this->Link1->SetDBValue($this->f("support_ticket_number"));
        $this->support_customer_name->SetDBValue($this->f("support_customer_name"));
        $this->support_opened_datetime->SetDBValue($this->f("support_opened_datetime"));
        $this->support_closed_datetime->SetDBValue($this->f("support_closed_datetime"));
    }
//End SetValues Method

} //End support2DataSource Class @35-FCB6E20C

//Include Page implementation @3-353B2997
include("./Footer.php");
//End Include Page implementation

//Initialize Page @1-A3DEAA6E
// Variables
$FileName = "";
$Redirect = "";
$Tpl = "";
$TemplateFileName = "";
$BlockToParse = "";
$ComponentName = "";

// Events;
$CCSEvents = "";
$CCSEventResult = "";

$FileName = "myitems.php";
$Redirect = "";
$TemplateFileName = "myitems.html";
$BlockToParse = "main";
$PathToRoot = "./";
//End Initialize Page

//Authenticate User @1-D052AC4F
CCSecurityRedirect("1;2", "", $FileName, CCGetQueryString("QueryString", ""));
//End Authenticate User

//Initialize Objects @1-D5FE49EB
$DBBJSS = new clsDBBJSS();

// Controls
$Header = new clsHeader();
$Header->BindEvents();
$Header->TemplatePath = "./";
$Header->Initialize();
$support = new clsGridsupport();
$support1 = new clsGridsupport1();
$support2 = new clsGridsupport2();
$Footer = new clsFooter();
$Footer->BindEvents();
$Footer->TemplatePath = "./";
$Footer->Initialize();
$support->Initialize();
$support1->Initialize();
$support2->Initialize();

$CCSEventResult = CCGetEvent($CCSEvents, "AfterInitialize");
//End Initialize Objects

//Execute Components @1-351F985C
$Header->Operations();
$Footer->Operations();
//End Execute Components

//Go to destination page @1-BEB91355
if($Redirect)
{
    $CCSEventResult = CCGetEvent($CCSEvents, "BeforeUnload");
    header("Location: " . $Redirect);
    exit;
}
//End Go to destination page

//Initialize HTML Template @1-A0111C9D
$CCSEventResult = CCGetEvent($CCSEvents, "OnInitializeView");
$Tpl = new clsTemplate();
$Tpl->LoadTemplate(TemplatePath . $TemplateFileName, "main");
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeShow");
//End Initialize HTML Template

//Show Page @1-14DA20B6
$Header->Show("Header");
$support->Show();
$support1->Show();
$support2->Show();
$Footer->Show("Footer");
$Tpl->PParse("main", false);
//End Show Page

//Unload Page @1-AB7622EF
$CCSEventResult = CCGetEvent($CCSEvents, "BeforeUnload");
unset($Tpl);
//End Unload Page



?>
Return current item: Bug Jr. Support System