<?php include_once MODELS . "/" . $model . "_model.php"; $WorkGroupName = $_SESSION['site']['pm_row']->WorkgroupName; $WorkGroupID = $_SESSION['site']['pm_row']->WorkgroupID; $objDash = new dashboard(); $RowGeneralMessage = $objDash->getAllMessageBoard(); $GeneralMessageBox = $objDash->displayMessageBoard($RowGeneralMessage); $RowInternalMessage = $objDash->getAllMessageBoard($WorkGroupID); $InternalMessageBox = $objDash->displayMessageBoard($RowInternalMessage, 'int'); $objDash->getAllDocument(); $GeneralDocuments = $objDash->makeHierarchy('gen'); $objDash->getAllDocument($WorkGroupID); $InternalDocuments = $objDash->makeHierarchy('int'); $RowAgenda = $objDash->getAllAgenda(); $strAgenda = $objDash->displayAgenda($RowAgenda); ?>
<?php include_once MODELS_ADMIN . "/" . $model . "_model.php"; $objDash = new dashboard(); $RowGeneralMessage = $objDash->getAllMessageBoard(); $GeneralMessageBox = $objDash->displayMessageBoard($RowGeneralMessage); $RowInternalMessage = $objDash->getAllMessageBoard(-1); $InternalMessageBox = $objDash->displayMessageBoard($RowInternalMessage); $objDash->getAllDocument(); $GeneralDocuments = $objDash->makeHierarchy('gen'); $objDash->getAllDocument(-1); $InternalDocuments = $objDash->makeHierarchy('int'); $RowAgenda = $objDash->getAllAgenda(); $strAgenda = $objDash->displayAgenda($RowAgenda); ?>
function getWorkGroupDocument() { $WorkGroupID = $_REQUEST['workgroup_id']; $WorkGroupID = $WorkGroupID == '' ? '-1' : $WorkGroupID; $objDash = new dashboard(); $objDash->getAllDocument($WorkGroupID); $InternalDocuments = $objDash->makeHierarchy('int'); return $InternalDocuments; }