本文整理汇总了PHP中echoT函数的典型用法代码示例。如果您正苦于以下问题:PHP echoT函数的具体用法?PHP echoT怎么用?PHP echoT使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了echoT函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: showClientAgeTable
function showClientAgeTable(&$ageRanges)
{
echoT('<table class="enpRpt">
<tr>
<td class="enpRptTitle" colspan="3">
Active Clients By Age
</td>
</tr>');
echoT('
<tr>
<td class="enpRptLabel">
Age Range
</td>
<td class="enpRptLabel">
Count
</td>
</tr>');
$idx = 0;
foreach ($ageRanges as $ageGroup) {
echoT('
<tr>
<td class="enpRpt">' . $ageGroup['label'] . '
</td>
<td class="enpRpt" style="text-align: right;">' . $ageGroup['numClients'] . ' ' . strLinkView_RptClientAge($idx, 'View details', true) . '
</td>
</tr>');
++$idx;
}
echoT('</table>');
}
示例2: showVolStats
function showVolStats($clsRpt, $strLabel, $volStats, $bUseAtts, $attributes, $lMonth)
{
//---------------------------------------------------------------------
//
//---------------------------------------------------------------------
if ($bUseAtts) {
$attributes->bCloseDiv = false;
$attributes->divID = 'group_' . $lMonth . '_Div';
$attributes->divImageID = 'group_' . $lMonth . '_DivImg';
openBlock($strLabel, '', $attributes);
} else {
openBlock($strLabel, '');
}
echoT($clsRpt->openReport());
// new volunteers
echoT($clsRpt->openRow() . $clsRpt->writeLabel('# New Volunteers:') . $clsRpt->writeCell(number_format($volStats->lNewVols)) . $clsRpt->closeRow());
// inactive volunteers
echoT($clsRpt->openRow() . $clsRpt->writeLabel('# Inactive Volunteers:') . $clsRpt->writeCell(number_format($volStats->lInactiveVols) . ' <i>(volunteers who became inactive in this time period)</i>') . $clsRpt->closeRow());
// patient visit hours
echoT($clsRpt->openRow() . $clsRpt->writeLabel('Patient Visit Hours:') . $clsRpt->writeCell(number_format($volStats->sngPVisitHrs, 2) . ' hrs.') . $clsRpt->closeRow());
// other volunteer hours
echoT($clsRpt->openRow() . $clsRpt->writeLabel('Other Volunteer Hours:') . $clsRpt->writeCell(number_format($volStats->sngNonPVHrs, 2) . ' hrs.') . $clsRpt->closeRow());
// Total volunteer training hours
echoT($clsRpt->openRow() . $clsRpt->writeLabel('Vol. Training Hours:') . $clsRpt->writeCell(number_format($volStats->sngVolTrainingHrs, 2) . ' hrs.') . $clsRpt->closeRow());
// Total volunteer training sessions
echoT($clsRpt->openRow() . $clsRpt->writeLabel('Vol. Training Sessions:') . $clsRpt->writeCell(number_format($volStats->lNumTrainingSessions)) . $clsRpt->closeRow());
echoT($clsRpt->closeReport());
if ($bUseAtts) {
$attributes->bCloseDiv = true;
closeBlock($attributes);
} else {
closeBlock();
}
}
示例3: closeTSProjectsTable
function closeTSProjectsTable()
{
//---------------------------------------------------------------------
//
//---------------------------------------------------------------------
echoT('</table><br><br>');
}
示例4: writeUserBlock
function writeUserBlock($uperm)
{
//---------------------------------------------------------------------
//
//---------------------------------------------------------------------
if ($uperm->lNumAccts == 0) {
echoT('<i>There are no users in this category.</i>');
} else {
echoT('<table style="width: 270pt;">');
foreach ($uperm->accounts as $acct) {
$lUserID = $acct->lUserID;
if ($acct->bInactive) {
$strColor = 'color: #aaa;';
} else {
$strColor = '';
}
echoT('
<tr class="makeStripe">
<td style="width: 80pt; text-align: left; ' . $strColor . '">' . strLinkView_User($lUserID, 'View user account', true) . ' ' . strLinkEdit_User($lUserID, 'Edit user account', true) . ' ' . str_pad($lUserID, 5, '0', STR_PAD_LEFT) . '
</td>
<td style="' . $strColor . '">' . htmlspecialchars($acct->strLastName . ', ' . $acct->strFirstName) . ' <i>(' . htmlspecialchars($acct->strUserName) . ')</i>
</td>
</tr>');
}
echoT('</table>');
}
}
示例5: writeReportFields
function writeReportFields(&$report)
{
echoT('<table class="enpRpt">
<tr>
<td class="enpRptTitle" colspan="8">Report Fields</td>
</tr>');
echoT('
<tr>
<td class="enpRptLabel"> </td>
<td class="enpRptLabel">keyID</td>
<td class="enpRptLabel">Field Name</td>
<td class="enpRptLabel">sortIDX</td>
<td class="enpRptLabel">fieldID</td>
<td class="enpRptLabel">tableID</td>
<td class="enpRptLabel">tableName</td>
</tr>');
$idx = 0;
foreach ($report->fields as $field) {
echoT('
<tr>
<td class="enpRpt" style="text-align: center;">' . $idx . '</td>
<td class="enpRpt" style="text-align: center;">' . $field->lKeyID . '</td>
<td class="enpRpt" style="text-align: left;" >' . $field->strFieldName . '</td>
<td class="enpRpt" style="text-align: center;">' . $field->lSortIDX . '</td>
<td class="enpRpt" style="text-align: center;">' . $field->lFieldID . '</td>
<td class="enpRpt" style="text-align: center;">' . $field->lTableID . '</td>
<td class="enpRpt" style="text-align: center;">' . $field->strUserTableName . '</td>
</tr>');
++$idx;
}
echoT('</table><br>');
}
示例6: openUserDirectory
function openUserDirectory($strDirLetter, &$strLinkBase, &$strImgBase, &$lTotRecs, $lRecsPerPage, $lStartRec, $lNumThisPage)
{
//---------------------------------------------------------------------
//
//---------------------------------------------------------------------
if ($strDirLetter . '' == '') {
$strUsers = 'All Sponsors';
} else {
$strUsers = '"' . $strDirLetter . '"';
}
echoT('<br>
<table class="enpRpt" id="myLittleTable">
<tr>
<td class="enpRptLabel">
Sponsor Directory: <b>' . $strUsers . '</b>
</td>
</tr>
<tr>
<td class="recSel">');
$strLinkBase = $strLinkBase . (is_null($strDirLetter) ? 'showAll' : $strDirLetter) . '/';
$strImgBase = base_url() . 'images/dbNavigate/rs_page_';
$opts = new stdClass();
$opts->strLinkBase = $strLinkBase;
$opts->strImgBase = $strImgBase;
$opts->lTotRecs = $lTotRecs;
$opts->lRecsPerPage = $lRecsPerPage;
$opts->lStartRec = $lStartRec;
echoT(set_RS_Navigation($opts));
echoT('<i>Showing records ' . ($lStartRec + 1) . ' to ' . ($lStartRec + $lNumThisPage) . " ({$lTotRecs} total)</i>");
echoT('</td></tr></table><br>');
}
示例7: writeProjectRow
function writeProjectRow($idx, $project)
{
//---------------------------------------------------------------------
//
//---------------------------------------------------------------------
if (is_numeric($project->lAssignedMin)) {
$strValue = strDurationViaMinutes($project->lAssignedMin);
} else {
$strValue = $project->lAssignedMin;
}
echoT('
<tr>
<td class="enpViewLabel" style="padding-top: 8px;">' . htmlspecialchars($project->strGroupName) . ':
</td>
<td class="enpView" style="vertical-align: top;">
<input type="text" name="txtPMin' . $idx . '"
size="5"
maxlength="8"
style="text-align: right;" onFocus="txtPMin' . $idx . '.style.background=\'#fff\';"
id="addEditEntry"
value="' . $strValue . '">
</td>
<td style="vertical-align: top; padding-top: 6pt;">
hh:mm
</td>
<td style="width: 45pt; text-align: right;vertical-align: top; padding-top: 6pt;">
Notes:
</td>
<td style="text-align: top;">
<textarea name="txtNotes' . $idx . '" rows="2" cols="30">' . $project->notes . '</textarea>' . form_error('txtPMin' . $idx) . '
</td>
</tr>');
}
示例8: showAuctionInfo
function showAuctionInfo(&$clsRpt, &$auction, $lAuctionID)
{
//---------------------------------------------------------------------
//
//---------------------------------------------------------------------
global $genumDateFormat;
$attributes = new stdClass();
$attributes->lUnderscoreWidth = 600;
openBlock('Silent Auction Overview: <b>' . htmlspecialchars($auction->strAuctionName) . '</b>', strLinkView_AuctionRecord($lAuctionID, 'View auction record', true) . ' ' . strLinkEdit_Auction($lAuctionID, 'Edit auction information', true) . ' ' . strLinkRem_Auction($lAuctionID, 'Remove this auction record', true, true), $attributes);
echoT($clsRpt->openReport());
echoT($clsRpt->openRow() . $clsRpt->writeLabel('Auction ID:') . $clsRpt->writeCell(str_pad($lAuctionID, 5, '0', STR_PAD_LEFT)) . $clsRpt->closeRow() . $clsRpt->openRow() . $clsRpt->writeLabel('Name:') . $clsRpt->writeCell(htmlspecialchars($auction->strAuctionName)) . $clsRpt->closeRow());
echoT($clsRpt->openRow() . $clsRpt->writeLabel('Date of Auction:') . $clsRpt->writeCell(date($genumDateFormat, $auction->dteAuction)) . $clsRpt->closeRow());
echoT($clsRpt->openRow() . $clsRpt->writeLabel('Contact:') . $clsRpt->writeCell(htmlspecialchars($auction->strContact)) . $clsRpt->closeRow() . $clsRpt->openRow() . $clsRpt->writeLabel('Email:') . $clsRpt->writeCell(htmlspecialchars($auction->strEmail)) . $clsRpt->closeRow());
echoT($clsRpt->openRow() . $clsRpt->writeLabel('Phone:') . $clsRpt->writeCell(htmlspecialchars($auction->strPhone)) . $clsRpt->closeRow() . $clsRpt->openRow() . $clsRpt->writeLabel('Location:') . $clsRpt->writeCell(htmlspecialchars($auction->strLocation)) . $clsRpt->closeRow());
echoT($clsRpt->openRow() . $clsRpt->writeLabel('Account/Campaign:') . $clsRpt->writeCell(htmlspecialchars($auction->strAccount . ' / ' . $auction->strCampaign)) . $clsRpt->closeRow());
// Accounting Country
echoT($clsRpt->openRow() . $clsRpt->writeLabel('Accounting Country:') . $clsRpt->writeCell($auction->strFlagImg . ' ' . $auction->strCurrencySymbol) . $clsRpt->closeRow());
// description
echoT($clsRpt->openRow() . $clsRpt->writeLabel('Description:') . $clsRpt->writeCell(nl2br(htmlspecialchars($auction->strDescription))) . $clsRpt->closeRow());
// default bidsheet
if (is_null($auction->lBidsheetID)) {
echoT($clsRpt->openRow() . $clsRpt->writeLabel('Default Bid Sheet:') . $clsRpt->writeCell('<i>Not set!</i> Click ' . strLinkView_BidSheets('here', false) . ' to work with bid sheet templates.') . $clsRpt->closeRow());
} else {
echoT($clsRpt->openRow() . $clsRpt->writeLabel('Default Bid Sheet:') . $clsRpt->writeCell(htmlspecialchars($auction->strSheetName) . ' ' . strLinkView_BidSheetRecord($auction->lDefaultBidSheet, 'View bid sheet', true) . ' (based on template "' . $auction->tInfo->title . '")') . $clsRpt->closeRow());
}
echoT($clsRpt->closeReport());
closeBlock();
}
示例9: closeVolEventTable
function closeVolEventTable()
{
//---------------------------------------------------------------------
//
//---------------------------------------------------------------------
echoT('</table>');
}
示例10: showChartStatusDetails
function showChartStatusDetails(&$chart, $bActive)
{
//---------------------------------------------------------------------
//
//---------------------------------------------------------------------
echoT('
<table class="enpRpt">
<tr>
<td class="enpRptLabel">
Status
</td>
<td class="enpRptLabel">
# Clients
</td>
</tr>');
foreach ($chart->details as $detail) {
$lNumClients = $detail->lNumClients;
if ($lNumClients > 0) {
$strLink = ' ' . strLinkView_ClientViaStatID($detail->lStatusID, $bActive, 'View clients with this status', true);
echoT('
<tr class="makeStripe">
<td class="enpRpt">' . htmlspecialchars($detail->status) . '
</td>
<td class="enpRpt" style="text-align: right; padding-right: 3px;">' . number_format($lNumClients) . $strLink . '
</td>
</tr>');
}
}
echoT('</table><br><br>');
}
示例11: showJobCodes
function showJobCodes($strLabel, $lNumJC, $jobCodes, $bUseAtts, $attributes, $lMonth)
{
//---------------------------------------------------------------------
//
//---------------------------------------------------------------------
if ($bUseAtts) {
$attributes->bCloseDiv = false;
$attributes->divID = 'group_' . $lMonth . '_Div';
$attributes->divImageID = 'group_' . $lMonth . '_DivImg';
openBlock($strLabel, '', $attributes);
} else {
openBlock($strLabel, '');
}
if ($lNumJC == 0) {
echoT('<i>No job code information for this month.</i><br>');
} else {
echoT('<br>
<table class="enpRpt">
<tr>
<td class="enpRptLabel">
Job Code
</td>
<td class="enpRptLabel">
# Activities
</td>
<td class="enpRptLabel">
Hours
</td>
</tr>');
$sngTotHrs = 0.0;
foreach ($jobCodes as $jc) {
$sngTotHrs += $jc->dHours;
echoT('
<tr class="makeStripe">
<td class="enpRpt">' . htmlspecialchars($jc->strActivity) . '
</td>
<td class="enpRpt" style="text-align: center;">' . number_format($jc->lNumActs) . '
</td>
<td class="enpRpt" style="text-align: right;">' . number_format($jc->dHours, 2) . ' hrs
</td>
</tr>');
}
echoT('
<tr class="makeStripe">
<td class="enpRptLabel" colspan="2">
Total
</td>
<td class="enpRpt" style="text-align: right;"><b>' . number_format($sngTotHrs, 2) . ' hrs</b>
</td>
</tr>');
echoT('
</table><br>');
}
if ($bUseAtts) {
$attributes->bCloseDiv = true;
closeBlock($attributes);
} else {
closeBlock();
}
}
示例12: showUFTableInfo
function showUFTableInfo(&$clsRpt, &$schema, $lTableID)
{
//---------------------------------------------------------------------
//
//---------------------------------------------------------------------
$table =& $schema[$lTableID];
/*
echo('<font class="debug">'.substr(__FILE__, strrpos(__FILE__, '\\'))
.': '.__LINE__.'<br>$schema <pre>');
echo(htmlspecialchars( print_r($schema, true))); echo('</pre></font><br>');
echo('<font class="debug">'.substr(__FILE__, strrpos(__FILE__, '\\'))
.': '.__LINE__.'<br>$table <pre>');
echo(htmlspecialchars( print_r($table, true))); echo('</pre></font><br>');
*/
// $lTableID = $table->lTableID;
openBlock('User Table <b>' . htmlspecialchars($table->strUserTableName) . '</b>', '');
echoT($clsRpt->openReport());
echoT($clsRpt->openRow() . $clsRpt->writeLabel('Table ID:') . $clsRpt->writeCell(str_pad($lTableID, 5, '0', STR_PAD_LEFT)) . $clsRpt->closeRow() . $clsRpt->openRow() . $clsRpt->writeLabel('User Name:') . $clsRpt->writeCell(htmlspecialchars($table->strUserTableName)) . $clsRpt->closeRow());
echoT($clsRpt->openRow() . $clsRpt->writeLabel('Internal Name:') . $clsRpt->writeCell(htmlspecialchars($table->strDataTableName)) . $clsRpt->closeRow());
echoT($clsRpt->openRow() . $clsRpt->writeLabel('Parent Table:') . $clsRpt->writeCell(htmlspecialchars($table->enumAttachType)) . $clsRpt->closeRow());
echoT($clsRpt->openRow() . $clsRpt->writeLabel('Multi-Entry?:') . $clsRpt->writeCell($table->bMultiEntry ? 'Yes' : 'No') . $clsRpt->closeRow());
echoT($clsRpt->openRow() . $clsRpt->writeLabel('Field Prefix:') . $clsRpt->writeCell(htmlspecialchars($table->strFieldPrefix)) . $clsRpt->closeRow());
echoT($clsRpt->openRow() . $clsRpt->writeLabel('Data Table Key FN:') . $clsRpt->writeCell(htmlspecialchars($table->strDataTableKeyID)) . $clsRpt->closeRow());
echoT($clsRpt->openRow() . $clsRpt->writeLabel('Data Table Foreign FN:') . $clsRpt->writeCell(htmlspecialchars($table->strDataTableFID)) . $clsRpt->closeRow());
echoT($clsRpt->openRow() . $clsRpt->writeLabel('# Fields:') . $clsRpt->writeCell($table->lNumFields) . $clsRpt->closeRow());
echoT($clsRpt->closeReport());
closeBlock();
}
示例13: openDDL_EntryTable
function openDDL_EntryTable($clsEntries, $clsRpt, $strContext)
{
//---------------------------------------------------------------------
//
//---------------------------------------------------------------------
echoT($clsRpt->openReport());
echoT($clsRpt->openRow() . $clsRpt->writeTitle('Tags for <b><i>' . htmlspecialchars($strContext) . '</i></b></font>', '', ' vertical-align: middle; ', 5, 1, '') . $clsRpt->closeRow() . $clsRpt->openRow() . $clsRpt->writeLabel('Entry ID', '55pt') . $clsRpt->writeLabel(' ', '') . $clsRpt->writeLabel('Entry', '175pt') . $clsRpt->writeLabel('Order', '') . $clsRpt->closeRow());
}
示例14: openDDL_EntryTable
function openDDL_EntryTable($clsEntries, $clsRpt, $strUserTableName, $strUserFieldName, $strLinkSort)
{
//---------------------------------------------------------------------
//
//---------------------------------------------------------------------
echoT($clsRpt->openReport());
echoT($clsRpt->openRow() . $clsRpt->writeTitle('Entries in Drop-down List:<br><b><i>' . htmlspecialchars($strUserTableName . ': ' . $strUserFieldName) . '</i></b></font>', '', ' vertical-align: middle; ', 5, 1, '') . $clsRpt->closeRow() . $clsRpt->openRow() . $clsRpt->writeLabel('Entry ID', '55pt') . $clsRpt->writeLabel(' ', '') . $clsRpt->writeLabel('Entry', '175pt') . $clsRpt->writeLabel('Order <span style="font-weight: normal;">' . $strLinkSort . '</span>', '') . $clsRpt->closeRow());
}
示例15: searchPeopleBizTableForm
function searchPeopleBizTableForm($bPeople, $search)
{
//---------------------------------------------------------------------
// When setting up this form....
//
// $clsSearch = new search;
// $clsSearch->strLegendLabel =
// 'Search the PEOPLE table for a link to volunteer '.$strFName.' '.$strLName;
// $clsSearch->strButtonLabel = 'Click here to search';
// $clsSearch->strFormTag =
// '<form method="POST" action="../main/mainOpts.php" '
// .'name="frmVolSearch" '
// .'onSubmit="return verifySimpleSearch(frmVolSearch);"> '
// .'<input type="hidden" name="type" value="vols"> '
// .'<input type="hidden" name="subType" value="ptabSearch"> '
// .'<input type="hidden" name="vID" value="'.$strVolID.'"> ';
//
// $clsSearch->lSearchTableWidth = 200;
// $clsSearch->searchPeopleTableForm();
//---------------------------------------------------------------------
// When responding to this form....
// $strSearch = strLoad_REQ('txtSearch', true, false);
//---------------------------------------------------------------------
echoT('<table class="enpRptC" >
<tr>
<td colspan="2" class="enpRptTitle">' . $search->strLegendLabel . '
</td>
</tr>
<tr>
<td class="enpRpt" align="right" width="' . $search->lSearchTableWidth . '">
First few letters of <b>' . ($bPeople ? 'the last name' : 'the business name') . '</b>:
</td>
<td class="enpRpt">
<input type="text" size="5" maxlength="20" name="txtSearch" value="" id="txtSearchID">
<i><small>(name must be in the ' . ($bPeople ? 'People' : 'Business') . ' table)</small></i>' . form_error('txtSearch') . '
</td>
</tr>
<tr>
<td class="enpRpt" align="center" colspan="2">
<input type="submit"
name="cmdAdd"
value="' . $search->strButtonLabel . '"
onclick="this.disabled=1; this.form.submit();"
class="btn"
onmouseover="this.className=\'btn btnhov\'"
onmouseout="this.className=\'btn\'">
</td>');
//------------------------------------
// set the focus to this text field
//------------------------------------
echoT('<script language="javascript">
document.getElementById("txtSearchID").focus();
</script>');
echoT('</form>
</tr>
</table><br><br>');
}