|
@@ 366-372 (lines=7) @@
|
| 363 |
|
{ |
| 364 |
|
$str_html .= $this->mIndexTips[$this->mIndexTipsId][0] . ' ' . $this->mIndexTips[$this->mIndexTipsId][1] . ' '; |
| 365 |
|
} |
| 366 |
|
else |
| 367 |
|
{ |
| 368 |
|
$s_url = $this->SetUrlParam($this->mSubmitUrl, 'page', '1'); |
| 369 |
|
$str_html .= '<a href=' . $s_url . ' title="' . $this->mIndexTips[0][0] . '">' . $this->mIndexTips[$this->mIndexTipsId][0] . '</a> '; |
| 370 |
|
$s_url = $this->SetUrlParam($this->mSubmitUrl, 'page', strval($this->mCurPage - 1)); |
| 371 |
|
$str_html .='<a href=' . $s_url . ' title="' . $this->mIndexTips[0][1] . '">' . $this->mIndexTips[$this->mIndexTipsId][1] . '</a> '; |
| 372 |
|
} |
| 373 |
|
if ($this->mCurPage == $total_pages) |
| 374 |
|
{ |
| 375 |
|
$str_html .= $this->mIndexTips[$this->mIndexTipsId][2] . ' ' . $this->mIndexTips[$this->mIndexTipsId][3] . ' '; |
|
@@ 377-383 (lines=7) @@
|
| 374 |
|
{ |
| 375 |
|
$str_html .= $this->mIndexTips[$this->mIndexTipsId][2] . ' ' . $this->mIndexTips[$this->mIndexTipsId][3] . ' '; |
| 376 |
|
} |
| 377 |
|
else |
| 378 |
|
{ |
| 379 |
|
$s_url = $this->SetUrlParam($this->mSubmitUrl, 'page', strval($this->mCurPage + 1)); |
| 380 |
|
$str_html .= '<a href=' . $s_url . ' title="' . $this->mIndexTips[0][2] . '">' . $this->mIndexTips[$this->mIndexTipsId][2] . '</a> '; |
| 381 |
|
$s_url = $this->SetUrlParam($this->mSubmitUrl, 'page', strval($total_pages)); |
| 382 |
|
$str_html .='<a href=' . $s_url . ' title="' . $this->mIndexTips[0][3] . '">' . $this->mIndexTips[$this->mIndexTipsId][3] . '</a> '; |
| 383 |
|
} |
| 384 |
|
$str_html .= '当前为第' . $this->mCurPage . '/' . $total_pages . '页,共' . $this->mTotalRows . '条记录 '; |
| 385 |
|
$str_html .= '跳转<input name="page" id="page" type="text" value="' . $this->mCurPage . '" size="3" align="right"> <input type="button" value="Go" onClick="return jump(page.value);"></td></tr></FORM></table>'; |
| 386 |
|
$str_html .= '<script language="JavaScript" type="text/JavaScript">function jump(p) {if (document.URL.match(/(page=[0-9]+)/)){document.URL=(document.URL.replace(/(page=[0-9]+)/, "page=" + p));}else{if (document.URL.match(/[?]{1}/)) {document.URL=document.URL + "&page=" + p;} else {document.URL=document.URL + "?page=" + p;}}return false;}</script>'; |