_page();
for ($i = $begin; $i <= $begin + $plus * 2;$i++)
{
if($i>$this->total_pages)
{
break;
}
if($i == $this->now_page)
{
$return .= "<a class=''now_page''>$i</a>\n";
}
else
{
$return .= $this->_get_link($i, $i) . "\n";
}
}
$return .= $this->down_page();
$return .= $this->last_page();
return $return;
}
protected function show_3()
{
$plus = $this->plus;
if( $plus + $this->now_page > $this->total_pages)
{
$begin = $this->total_pages - $plus * 2;
}else{
$begin = $this->now_page - $plus;
}
$begin = ($begin >= 1) ? $begin : 1;
$return = ''总计 '' .$this->total_rows. '' 个记录分为 '' .$this->total_pages. '' 页, 当前第 '' . $this->now_page . '' 页 '';
$return .= '',每页 '';
$return .= ''<input type="text" value="''.$this->list_rows.''" id="pageSize" size="3"> '';
$return .= $this->first_page()."\n";
$return .= $this->up_page()."\n";
$return .= $this->down_page()."\n";
$return .= $this->last_page()."\n";
$return .= ''<select onchange="''.$this->ajax_func_name.''(this.value)" id="gotoPage">'';
for ($i = $begin;$i<=$begin+10;$i++)
{
if($i>$this->total_pages)
{
break;
}
if($i == $this->now_page)
{
$return .= ''<option selected="true" value="''.$i.''">''.$i.''</option>'';
}
else
{
$return .= ''<option value="'' .$i. ''">'' .$i. ''</option>'';
}
}
$return .= ''</select>'';
return $return;
}
}
?>