Пример #1
0
<?php 
}
// Load recordset
$bExportAll = defined("EW_EXPORT_ALL") && $archives->Export != "";
$bSelectLimit = $archives->Export == "" && $archives->SelectLimit;
if (!$bSelectLimit) {
    $rs = LoadRecordset();
}
$nTotalRecs = $bSelectLimit ? $archives->SelectRecordCount() : $rs->RecordCount();
$nStartRec = 1;
if ($nDisplayRecs <= 0) {
    $nDisplayRecs = $nTotalRecs;
}
// Display all records
if (!$bExportAll) {
    SetUpStartRec();
}
// Set up start record position
if ($bSelectLimit) {
    $rs = LoadRecordset($nStartRec - 1, $nDisplayRecs);
}
?>

<?php 
if ($archives->Export == "") {
    if ($Security->IsLoggedIn()) {
        ?>
<form name="farchiveslistsrch" id="farchiveslistsrch" action="archiveslist.php" >
<div class="menuhead">实时检索</div>
<table class="ewBasicSearch">
	<tr>
Пример #2
0
if (!$bSelectLimit) $rs = LoadRecordset();
$nTotalRecs = ($bSelectLimit) ? $posts->SelectRecordCount() : $rs->RecordCount();
$nStartRec = 1;
if ($nDisplayRecs <= 0) $nDisplayRecs = $nTotalRecs; // Display all records
if (!$bExportAll) SetUpStartRec(); // Set up start record position
if ($bSelectLimit) $rs = LoadRecordset($nStartRec-1, $nDisplayRecs);
}else
{
// Load recordset
$bExportAll = (defined("EW_EXPORT_ALL") && $posts->Export <> "");
$bSelectLimit = ($posts->Export == "" && $posts->SelectLimit);
if (!$bSelectLimit) $rs = LoadRecordset();
$nTotalRecs = ($bSelectLimit) ? $posts->SelectRecordCount() : $rs->RecordCount();
$nStartRec = 1;
if ($nDisplayRecs <= 0) $nDisplayRecs = $nTotalRecs; // Display all records
if (!$bExportAll) SetUpStartRec(); // Set up start record position
if ($bSelectLimit) $rs = LoadRecordset($nStartRec-1, $nDisplayRecs);
}

?>

<?php if ($posts->Export == "") { ?>
<?php if ($Security->IsLoggedIn()) { ?>
<form name="fpostslistsrch" id="fpostslistsrch" action="postslist.php" >
<div class="menuhead">实时检索</div>
<?php
	$sAdvance = "";
	if($sSrchAdvanced <> "")
	{
		$sWhere = "(".$posts->getSearchWhere()." AND id IN(SELECT id FROM `posts` WHERE (".$sSrchAdvanced."))";
	}else