-
Notifications
You must be signed in to change notification settings - Fork 0
/
ZobHome.php
34 lines (34 loc) · 1.84 KB
/
ZobHome.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php include 'ZobHeader.php' ?>
<script language="javascript" type="text/javascript">
function fnOnPageChanged(page) {
var url = '<?php echo $this->_url(null); ?>&page=' + page;
document.location.href = url;
}
</script>
<div id=home_cont class="home_cont">
<div id=home_left class="home_left">
<?php $i = 0; foreach($rowset as $row): $id = array('id' => $row[$pk]); ?>
<div class="title"><img class="image" src="images/arrow.bmp" /><?php echo $row['title']; ?></div>
<span><?php echo $this->_formatPost($row['body']); ?></span>
<div class="time"><?php echo $row['created']; ?></div>
<hr size="1" noshade style="{border:1px dotted #A0A0A0}" />
<?php $i++; endforeach; ?>
<?php if ($pager->count > 0): ?>
<table width="100%" border="0" cellpadding="2" cellspacing="0">
<tr>
<td bgcolor="#FCFCFC">
<input name="FirstPage" type="button" id="FirstPage"
value=" |< " onclick="fnOnPageChanged(<?php echo $pager->firstPage; ?>);" />
<input name="PrevPage" type="button" id="PrevPage" value=" < "
onclick="fnOnPageChanged(<?php echo $pager->prevPage; ?>);" />
<?php $pager->renderPageJumper(_T('ui_p_jump_page')); ?>
<input name="NextPage" type="button" id="NextPage" value=" > "
onclick="fnOnPageChanged(<?php echo $pager->nextPage; ?>);" />
<input name="LastPage" type="button" id="LastPage" value=" >| "
onclick="fnOnPageChanged(<?php echo $pager->lastPage; ?>);" />
</td></tr></table>
<?php endif; // if ($pager->count > 0) ?>
</div>
<?php include 'ZobRightBar.php' ?>
</div>
<?php include 'ZobFoot.php' ?>