コード例 #1
0
    $collStArr = json_decode($stArrCollJson, true);
    $stArr = array_merge($collArray, $collStArr);
    $stArrSearchJson = json_encode($collArray);
} else {
    $collArray = $collManager->getSearchTerms();
    $collStArr = $collManager->getSearchTerms();
    $stArr = array_merge($collArray, $collStArr);
    $stArrSearchJson = json_encode($collArray);
    $stArrCollJson = json_encode($collArray);
}
$stArrJson = json_encode($stArr);
$collManager->setSearchTermsArr($stArr);
$collManager->setSorting($sortField1, $sortField2, $sortOrder);
$recArr = $collManager->getTableSpecimenMap($occIndex, 1000);
//Array(IID,Array(fieldName,value))
$targetClid = $collManager->getSearchTerm("targetclid");
if ($recArr) {
    $qryCnt = $collManager->getRecordCnt();
    $hrefPrefix = 'listtabledisplay.php?usecookies=false&starr=' . $stArrSearchJson . '&jsoncollstarr=' . $stArrCollJson . (array_key_exists('targettid', $_REQUEST) ? '&targettid=' . $_REQUEST["targettid"] : '') . '&sortfield1=' . $sortField1 . '&sortfield2=' . $sortField2 . '&sortorder=' . $sortOrder . '&occindex=';
    $navStr = '<div style="float:right;">';
    if ($occIndex >= 1000) {
        $navStr .= "<a href='" . $hrefPrefix . ($occIndex - 1000) . "' title='Previous 1000 records'>&lt;&lt;</a>";
    }
    $navStr .= ' | ';
    $navStr .= $occIndex + 1 . '-' . ($qryCnt < 1000 + $occIndex ? $qryCnt : 1000 + $occIndex) . ' of ' . $qryCnt . ' records';
    $navStr .= ' | ';
    if ($qryCnt > 1000 + $occIndex) {
        $navStr .= "<a href='" . $hrefPrefix . ($occIndex + 1000) . "' title='Next 1000 records'>&gt;&gt;</a>";
    }
    $navStr .= '</div>';
}
コード例 #2
0
ファイル: list.php プロジェクト: urban011/ut-prc-symbiota
            if ($isEditor || $symbUid && $symbUid == $fieldArr['observeruid']) {
                ?>
									<div style="float:right;" title="Edit Occurrence Record">
										<a href="editor/occurrenceeditor.php?occid=<?php 
                echo $occId;
                ?>
" target="_blank">
											<img src="../images/edit.png" style="border:solid 1px gray;height:13px;" />
										</a>
									</div>
									<?php 
            }
            if ($collManager->getClName() && array_key_exists('targettid', $_REQUEST)) {
                ?>
									<div style="float:right;cursor:pointer;" onclick="addVoucherToCl(<?php 
                echo $occId . "," . $collManager->getSearchTerm("targetclid") . "," . $_REQUEST["targettid"];
                ?>
)" title="Add as <?php 
                echo $collManager->getClName();
                ?>
 Voucher">
										<img src="../images/voucheradd.png" style="border:solid 1px gray;height:13px;margin-right:5px;" />
									</div>
									<?php 
            }
            ?>
								<div style="float:left;">
									<a target='_blank' href='../taxa/index.php?taxon=<?php 
            echo $fieldArr["sciname"];
            ?>
'>