本文整理汇总了PHP中Paginator::BlockStartNr方法的典型用法代码示例。如果您正苦于以下问题:PHP Paginator::BlockStartNr方法的具体用法?PHP Paginator::BlockStartNr怎么用?PHP Paginator::BlockStartNr使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Paginator
的用法示例。
在下文中一共展示了Paginator::BlockStartNr方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
# href for close button
$smarty->assign('breakfile', $breakfile);
# Window bar title
$smarty->assign('sWindowTitle', "{$LDAddress} :: {$LDListAll}");
# Buffer page output
ob_start();
?>
<ul>
<br>
<?php
if (is_object($address)) {
if ($linecount) {
echo str_replace("~nr~", $totalcount, $LDSearchFound) . ' ' . $LDShowing . ' ' . $pagen->BlockStartNr() . ' ' . $LDTo . ' ' . $pagen->BlockEndNr() . '.';
} else {
echo str_replace('~nr~', '0', $LDSearchFound);
}
?>
<table border=0 cellpadding=2 cellspacing=1>
<tr class="wardlisttitlerow">
<td><b>
<?php
if ($oitem == 'name') {
$flag = TRUE;
} else {
$flag = FALSE;
}
echo $pagen->SortLink($LDCityTownName, 'name', $odir, $flag);
?>
示例2: createLDImgSrc
</table>
<p>
<a href="<?php
echo $breakfile;
?>
"><img <?php
echo createLDImgSrc($root_path, 'cancel.gif', '0');
?>
></a>
<p>
<?php
//echo $mode;
if ($linecount) {
echo '<hr width=80% align=left>' . str_replace("~nr~", $totalcount, $LDSearchFound) . ' ' . $LDShowing . ' ' . $pagen->BlockStartNr() . ' ' . $LDTo . ' ' . $pagen->BlockEndNr() . '.';
} else {
echo str_replace('~nr~', '0', $LDSearchFound);
}
if ($enc_obj->record_count) {
# Preload common icon images
$img_male = createComIcon($root_path, 'spm.gif', '0', '', TRUE);
$img_female = createComIcon($root_path, 'spf.gif', '0', '', TRUE);
$bgimg = 'tableHeaderbg3.gif';
//$tbg= 'background="'.$root_path.'gui/img/common/'.$theme_com_icon.'/'.$bgimg.'"';
$tbg = 'class="adm_list_titlebar"';
?>
<table border=0 cellpadding=2 cellspacing=1>
<tr bgcolor="#abcdef">
<td <?php
示例3: createLDImgSrc
$smarty->assign('sHiddenInputs', '<input type="image" ' . createLDImgSrc($root_path, 'searchlamp.gif', '0', 'absmiddle') . '>
<input type="hidden" name="sid" value="' . $sid . '">
<input type="hidden" name="lang" value="' . $lang . '">
<input type="hidden" name="noresize" value="' . $noresize . '">
<input type="hidden" name="target" value="' . $target . '">
<input type="hidden" name="user_origin" value="' . $user_origin . '">
<input type="hidden" name="origin" value="' . $origin . '">
<input type="hidden" name="retpath" value="' . $retpath . '">
<input type="hidden" name="aux1" value="' . $aux1 . '">
<input type="hidden" name="ipath" value="' . $ipath . '">
<input type="hidden" name="mode" value="search">
<input type="hidden" name="task" value="' . $task . '"');
$smarty->assign('sCancelButton', '<a href="patient.php' . URL_APPEND . '&target=search"><img ' . createLDImgSrc($root_path, 'cancel.gif', '0') . '></a>');
if ($mode == 'search' || $mode == 'paginate') {
if ($linecount) {
$smarty->assign('LDSearchFound', str_replace("~nr~", $totalcount, $LDSearchFound) . ' ' . $LDShowing . ' ' . $pagen->BlockStartNr() . ' ' . $LDTo . ' ' . $pagen->BlockEndNr() . '.');
} else {
$smarty->assign('LDSearchFound', str_replace('~nr~', '0', $LDSearchFound));
}
if ($linecount) {
$smarty->assign('bShowResult', TRUE);
# Load the common icons and images
$img_options = createComIcon($root_path, 'pdata.gif', '0');
$img_male = createComIcon($root_path, 'spm.gif', '0');
$img_female = createComIcon($root_path, 'spf.gif', '0');
$smarty->assign('LDCaseNr', $pagen->makeSortLink($LDCaseNr, 'encounter_nr', $oitem, $odir, $targetappend));
$smarty->assign('LDSex', $pagen->makeSortLink($LDSex, 'sex', $oitem, $odir, $targetappend));
$smarty->assign('LDLastName', $pagen->makeSortLink($LDLastName, 'name_last', $oitem, $odir, $targetappend));
$smarty->assign('LDName2', $pagen->makeSortLink($LDName2, 'name_2', $oitem, $odir, $targetappend));
$smarty->assign('LDFirstName', $pagen->makeSortLink($LDFirstName, 'name_first', $oitem, $odir, $targetappend));
$smarty->assign('LDBday', $pagen->makeSortLink($LDBday, 'date_birth', $oitem, $odir, $targetappend));
示例4: display
//.........这里部分代码省略.........
}
$this->smarty->assign('sCheckBoxFirstName', '<input type="checkbox" name="firstname_too" ' . $sTemp . '>');
$this->smarty->assign('LDIncludeFirstName', $LDIncludeFirstName);
}
#
# Prepare the hidden inputs
#
$this->smarty->assign('sHiddenInputs', '<input type="image" ' . createLDImgSrc($root_path, 'searchlamp.gif', '0', 'absmiddle') . '>
<input type="hidden" name="sid" value="' . $sid . '">
<input type="hidden" name="lang" value="' . $lang . '">
<input type="hidden" name="noresize" value="' . $noresize . '">
<input type="hidden" name="target" value="' . $target . '">
<input type="hidden" name="user_origin" value="' . $user_origin . '">
<input type="hidden" name="origin" value="' . $origin . '">
<input type="hidden" name="retpath" value="' . $retpath . '">
<input type="hidden" name="aux1" value="' . $aux1 . '">
<input type="hidden" name="ipath" value="' . $ipath . '">
<input type="hidden" name="mode" value="search">');
$this->smarty->assign('sCancelButton', '<a href="' . $this->cancelfile . URL_APPEND . '"><img ' . createLDImgSrc($root_path, 'cancel.gif', '0') . '></a>');
//include($root_path.'include/inc_patient_searchmask.php');
#
# Create append data for previous and next page links
#
$this->targetappend .= "&firstname_too={$firstname_too}&origin={$origin}";
//echo $mode;
if ($parent_admit) {
$bgimg = 'tableHeaderbg3.gif';
} else {
$bgimg = 'tableHeader_gr.gif';
}
$tbg = 'background="' . $root_path . 'gui/img/common/' . $theme_com_icon . '/' . $bgimg . '"';
if ($mode == 'search' || $mode == 'paginate') {
if ($linecount) {
$this->smarty->assign('LDSearchFound', str_replace("~nr~", $totalcount, $LDSearchFound) . ' ' . $LDShowing . ' ' . $pagen->BlockStartNr() . ' ' . $LDTo . ' ' . $pagen->BlockEndNr() . '.');
} else {
$this->smarty->assign('LDSearchFound', str_replace('~nr~', '0', $LDSearchFound));
}
}
if ($linecount) {
$this->smarty->assign('bShowResult', TRUE);
$img_male = createComIcon($root_path, 'spm.gif', '0');
$img_female = createComIcon($root_path, 'spf.gif', '0');
$this->smarty->assign('LDRegistryNr', $pagen->makeSortLink($LDRegistryNr, 'pid', $oitem, $odir, $this->targetappend));
$this->smarty->assign('LDSex', $pagen->makeSortLink($LDSex, 'sex', $oitem, $odir, $this->targetappend));
$this->smarty->assign('LDLastName', $pagen->makeSortLink($LDLastName, 'name_last', $oitem, $odir, $this->targetappend));
$this->smarty->assign('LDFirstName', $pagen->makeSortLink($LDFirstName, 'name_first', $oitem, $odir, $this->targetappend));
$this->smarty->assign('LDBday', $pagen->makeSortLink($LDBday, 'date_birth', $oitem, $odir, $this->targetappend));
$this->smarty->assign('LDZipCode', $pagen->makeSortLink($LDZipCode, 'addr_zip', $oitem, $odir, $this->targetappend));
if (!empty($this->targetfile)) {
$this->smarty->assign('LDOptions', $LDOptions);
}
#
# Generate the resulting list rows using the reg_search_list_row.tpl template
#
$sTemp = '';
$toggle = 0;
while ($zeile = $ergebnis->FetchRow()) {
if ($zeile['status'] == '' || $zeile['status'] == 'normal') {
$this->smarty->assign('toggle', $toggle);
$toggle = !$toggle;
$this->smarty->assign('sRegistryNr', $zeile['pid']);
switch (strtolower($zeile['sex'])) {
case 'f':
$this->smarty->assign('sSex', '<img ' . $img_female . '>');
break;
case 'm':
示例5: createMascot
?>
<ul>
<?php
if ($rows) {
?>
<table border=0>
<tr>
<td><img <?php
echo createMascot($root_path, 'mascot1_r.gif', '0', 'bottom');
?>
align="absmiddle"></td>
<td class="prompt">
<?php
echo "{$LDSearchKeyword} <font color=#0000ff>\"{$searchkey}\"</font> " . str_replace("~rows~", $totalcount, $LDWasFound) . ' ' . $LDShowing . ' ' . $pagen->BlockStartNr() . ' ' . $LDTo . ' ' . $pagen->BlockEndNr() . '.';
?>
<br>
<?php
echo $LDPlsClk;
?>
</td>
</tr>
</table>
<table border=0 cellpadding=0 cellspacing=0>
<tr class="adm_item">
<?php
$bgimg = 'tableHeaderbg3.gif';
//$bgimg='tableHeader_gr.gif';