<?php

$params = array('enumStyle' => 'terse', 'clsRpt');
$clsRpt = new generic_rpt($params);
$clsRpt->strWidthLabel = '130pt';
$lLabelWidth = 120;
showTimeSheetBlock($lTSTID, $clsRpt, $tst, $lLabelWidth);
showTSProjectsBlock($lTSTID, $groupsProj, $tst);
showTSLocationsBlock($lTSTID, $groupsLoc, $tst);
showTSUsersBlock($lTSTID, $userAssignments, $clsRpt, $tst, $lLabelWidth);
//   showTSAdminsBlock   ($lTSTID, $userAssignments, $clsRpt, $tst, $lLabelWidth);
showUserENPStats($clsRpt, $tst, $lLabelWidth);
function showTSProjectsBlock($lTSTID, $groupsProj, $tst)
{
    //---------------------------------------------------------------------
    //
    //---------------------------------------------------------------------
    showGroupInfo($lTSTID, $tst->strTSName, $groupsProj->lNumGroups, $groupsProj->groupList, $groupsProj->inGroups, $groupsProj->lCntGroupMembership, CENUM_CONTEXT_STAFF_TS_PROJECTS, 'timesheetRecView', null, true);
}
function showTSLocationsBlock($lTSTID, $groupsLoc, $tst)
{
    //---------------------------------------------------------------------
    //
    //---------------------------------------------------------------------
    showGroupInfo($lTSTID, $tst->strTSName, $groupsLoc->lNumGroups, $groupsLoc->groupList, $groupsLoc->inGroups, $groupsLoc->lCntGroupMembership, CENUM_CONTEXT_STAFF_TS_LOCATIONS, 'timesheetRecView', null, true);
}
function showTSUsersBlock($lTSTID, $userAssignments, $clsRpt, $tst, $lLabelWidth)
{
    //---------------------------------------------------------------------
    //
    //---------------------------------------------------------------------
Ejemplo n.º 2
0
    if (!$userRec->us_bVolAccount) {
        showGroupInfo($lUserID, $userRec->strSafeName, $lNumGroupsStaff, $groupListStaff, $inGroupsStaff, $lCntGroupMembershipStaff, CENUM_CONTEXT_STAFF, 'staffRecView', null);
    }
    if ($userRec->bStandardUser) {
        showGroupInfo($lUserID, $userRec->strSafeName, $lNumGroups, $groupList, $inGroups, $lCntGroupMembership, CENUM_CONTEXT_USER, 'uRecView', CENUM_CONTEXT_USER);
    }
}
if ($bAsAdmin) {
    showImageInfo(CENUM_CONTEXT_STAFF, $lUserID, 'Staff Images', $images, $lNumImages, $lNumImagesTot);
    showDocumentInfo(CENUM_CONTEXT_STAFF, $lUserID, 'Staff Documents', $docs, $lNumDocs, $lNumDocsTot);
    // personalized tables
    showCustomUserTableInfo($strPT, $lNumPTablesAvail);
    //   showReminderBlock     ($clsRem, $lUserID, CENUM_CONTEXT_USER, $lUserID);
}
if (!$gbVolLogin) {
    showUserENPStats($clsRpt, $userRec, $lLabelWidth);
}
function showCustomUserTableInfo($strPT, $lNumPTablesAvail)
{
    //---------------------------------------------------------------------
    //
    //---------------------------------------------------------------------
    $attributes = new stdClass();
    $attributes->lTableWidth = 900;
    $attributes->divID = 'userCus';
    $attributes->divImageID = 'userDivImg';
    $attributes->bStartOpen = false;
    openBlock('Personalized Tables <span style="font-size: 9pt;">(' . $lNumPTablesAvail . ')</span>', '', $attributes);
    echoT($strPT);
    $attributes = new stdClass();
    $attributes->bCloseDiv = true;
<?php

global $glChapterID;
$params = array('enumStyle' => 'terse');
$clsRpt = new generic_rpt($params);
$strLabWidth = 170;
chapterInfo($clsRpt, $strLabWidth, $chapterRec);
showVocabInfo($clsRpt, $strLabWidth, $chapterRec);
showImageInfo(CENUM_CONTEXT_ORGANIZATION, $glChapterID, ' Images', $images, $lNumImages, $lNumImagesTot);
showDocumentInfo(CENUM_CONTEXT_ORGANIZATION, $glChapterID, ' Documents', $docs, $lNumDocs, $lNumDocsTot);
showUserENPStats($clsRpt, $strLabWidth, $chapterRec);
function chapterInfo($clsRpt, $strLabWidth, $chapterRec)
{
    //---------------------------------------------------------------------
    //
    //---------------------------------------------------------------------
    global $gclsChapterVoc;
    $bUSDateFormat = $chapterRec->bUS_DateFormat;
    if ($bUSDateFormat) {
        $strDateFormat = 'US (m/d/Y)';
    } else {
        $strDateFormat = 'Europe/India (d/m/Y)';
    }
    openBlock('Your Organization', strLinkEdit_Chapter($chapterRec->lKeyID, 'Edit organization record', true));
    echoT($clsRpt->openReport() . $clsRpt->openRow() . $clsRpt->writeLabel('Name:', $strLabWidth) . $clsRpt->writeCell(htmlspecialchars($chapterRec->strChapterName)) . $clsRpt->closeRow() . $clsRpt->openRow() . $clsRpt->writeLabel('Banner Tag:', $strLabWidth) . $clsRpt->writeCell(htmlspecialchars($chapterRec->strBannerTagLine)) . $clsRpt->closeRow() . $clsRpt->openRow() . $clsRpt->writeLabel('Address:', $strLabWidth) . $clsRpt->writeCell($chapterRec->strAddress) . $clsRpt->closeRow() . $clsRpt->openRow() . $clsRpt->writeLabel('Phone:', $strLabWidth) . $clsRpt->writeCell($chapterRec->strPhone) . $clsRpt->closeRow() . $clsRpt->openRow() . $clsRpt->writeLabel('Fax:', $strLabWidth) . $clsRpt->writeCell($chapterRec->strFax) . $clsRpt->closeRow() . $clsRpt->openRow() . $clsRpt->writeLabel('Email:', $strLabWidth) . $clsRpt->writeCell($chapterRec->strEmail) . $clsRpt->closeRow() . $clsRpt->openRow() . $clsRpt->writeLabel('Web Site:', $strLabWidth) . $clsRpt->writeCell($chapterRec->strWebSite) . $clsRpt->closeRow() . $clsRpt->openRow() . $clsRpt->writeLabel('Default Area Code:', $strLabWidth) . $clsRpt->writeCell($chapterRec->strDefAreaCode) . $clsRpt->closeRow() . $clsRpt->openRow() . $clsRpt->writeLabel('Default ' . $gclsChapterVoc->vocState . ':', $strLabWidth) . $clsRpt->writeCell($chapterRec->strDefState) . $clsRpt->closeRow() . $clsRpt->openRow() . $clsRpt->writeLabel('Default Country:', $strLabWidth) . $clsRpt->writeCell($chapterRec->strDefCountry) . $clsRpt->closeRow() . $clsRpt->openRow() . $clsRpt->writeLabel('Default Date Format:', $strLabWidth) . $clsRpt->writeCell($strDateFormat) . $clsRpt->closeRow() . $clsRpt->openRow() . $clsRpt->writeLabel('Time Zone:', $strLabWidth) . $clsRpt->writeCell($chapterRec->strTimeZone, '', '', 1, 1, ' id="orgTZ" ') . $clsRpt->closeRow() . $clsRpt->openRow() . $clsRpt->writeLabel('Default Accounting Country:', $strLabWidth) . $clsRpt->writeCell($chapterRec->strCountryName . ' ' . $chapterRec->strFlagImg) . $clsRpt->closeRow() . $clsRpt->closeReport());
    $attributes = new stdClass();
    $attributes->strExtraText = '<br>';
    closeBlock($attributes);
}
function showVocabInfo($clsRpt, $strLabWidth, $chapterRec)
{
Ejemplo n.º 4
0
<?php

global $glChapterID;
$params = array('enumStyle' => 'terse');
$clsRpt = new generic_rpt($params);
$strLabWidth = 120;
chapterInfo($clsRpt, $strLabWidth, $locRec);
showUserENPStats($clsRpt, $strLabWidth, $locRec);
function chapterInfo($clsRpt, $strLabWidth, $locRec)
{
    //---------------------------------------------------------------------
    //
    //---------------------------------------------------------------------
    openBlock('Your Location', strLinkEdit_Location($locRec->lKeyID, 'Edit location record', true) . '&nbsp;' . strLinkEdit_Location($locRec->lKeyID, 'Edit location record', false));
    echoT($clsRpt->openReport() . $clsRpt->openRow() . $clsRpt->writeLabel('Name:', $strLabWidth) . $clsRpt->writeCell(htmlspecialchars($locRec->strLocationName)) . $clsRpt->closeRow() . $clsRpt->openRow() . $clsRpt->writeLabel('Banner Tag:', $strLabWidth) . $clsRpt->writeCell(htmlspecialchars($locRec->strBannerTagLine)) . $clsRpt->closeRow() . $clsRpt->openRow() . $clsRpt->writeLabel('Status:', $strLabWidth) . $clsRpt->writeCell($locRec->bActive ? 'Active' : 'Inactive') . $clsRpt->closeRow());
    echoT($clsRpt->openRow() . $clsRpt->writeLabel('Address:', $strLabWidth) . $clsRpt->writeCell($locRec->strAddress) . $clsRpt->closeRow() . $clsRpt->openRow() . $clsRpt->writeLabel('Phone:', $strLabWidth) . $clsRpt->writeCell($locRec->strPhone) . $clsRpt->closeRow() . $clsRpt->openRow() . $clsRpt->writeLabel('Fax:', $strLabWidth) . $clsRpt->writeCell($locRec->strFax) . $clsRpt->closeRow() . $clsRpt->openRow() . $clsRpt->writeLabel('Email:', $strLabWidth) . $clsRpt->writeCell($locRec->strEmail) . $clsRpt->closeRow() . $clsRpt->openRow() . $clsRpt->writeLabel('Web Site:', $strLabWidth) . $clsRpt->writeCell($locRec->strWebSite) . $clsRpt->closeRow());
    echoT($clsRpt->openRow() . $clsRpt->writeLabel('Notes:', $strLabWidth) . $clsRpt->writeCell(nl2br(htmlspecialchars($locRec->strNotes))) . $clsRpt->closeRow() . $clsRpt->closeReport());
    $attributes = new stdClass();
    $attributes->strExtraText = '<br>';
    closeBlock($attributes);
}
function showUserENPStats($clsRpt, $strLabWidth, $locRec)
{
    //---------------------------------------------------------------------
    //
    //---------------------------------------------------------------------
    $clsForm = new generic_form();
    $clsForm->strLabelClass = $clsForm->strLabelRowLabelClass = $clsForm->strLabelClassRequired = 'enpViewLabel';
    $clsForm->strEntryClass = 'enpView';
    $attributes = new stdClass();
    $attributes->lTableWidth = 900;