Example #1
0
            $OptionCnt++;
            // edit
        }
        if ($Security->IsLoggedIn()) {
            $OptionCnt++;
            // copy
        }
        if ($Security->IsLoggedIn()) {
            $OptionCnt++;
            // delete
        }
        ?>
			<!-- Table header -->
			<tr class="ewTableHeader">
<?php 
        if ($Security->CanDelete() || $Security->CanArchive()) {
            ?>
<td width="20"><input type="hidden" name="action" id="action" value=""/></td>
<?php 
        }
        ?>
				<td valign="top">
		<?php 
        if ($archives->Export != "") {
            ?>
		id
		<?php 
        } else {
            ?>
			编号
		<?php 
		var chk = document.forms["fpostslist"].elements["chkAll"];
		for(var i = 0;i < cbx.length;i ++){
				cbx[i].checked = chk.checked;
		}
	}	
</script>
	<?php
	if( isset($view) && $view == 'classic' ) {
		$keywords = trim($posts->getBasicSearchKeyword());
		if( $posts->getBasicSearchType() == 'OR' || $posts->getBasicSearchType() == 'AND' ) {
			$keywords = explode(' ',$keywords);
		}
	?>
		<table id="ewlistmain" class="ewTable">
		<tr>
<?php if ($Security->CanDelete()||$Security->CanArchive()) { ?>
<td><input type="hidden" name="action" id="action" value=""/></td>
<?php } ?>
</tr>
		<?php
		if (defined("EW_EXPORT_ALL") && $posts->Export <> "") {
			$nStopRec = $nTotalRecs;
		} else {
			$nStopRec = $nStartRec + $nDisplayRecs - 1; // Set the last record to display
		}
		$nRecCount = $nStartRec - 1;
		if (!$rs->EOF) {
			$rs->MoveFirst();
			if (!$posts->SelectLimit) $rs->Move($nStartRec - 1); // Move to first record directly
		}
		$RowCnt = 0;