1 <?php global $manager; ?>
6 <div id="showingLabel"><?php echo $count ; ?>·ïÃæ 1 - 5 ·ïÌܤòɽ¼¨¤·¤Æ¤¤¤Þ¤¹</div>
8 <div style="width: 100%">
9 <div id="viewPort" style="float:left; width: 420px">
10 <table id="tb_grid" style="border:0; margin:0; width: 400px">
13 <th style="width:80px">Date</th>
14 <th style="width:120px">Story</th>
15 <th >Title, Blog and Excerpt</th>
16 <th style="width:20px"> </th>
17 <th style="width:20px"> </th>
21 <tr style="height:110px" onmouseover='focusRow(this);' onmouseout='blurRow(this);'>
22 <td style="width:80px"> </td>
23 <td style="width:120px"> </td>
25 <td style="width:20px"> </td>
26 <td style="width:20px"> </td>
28 <tr style="height:110px" onmouseover='focusRow(this);' onmouseout='blurRow(this);'>
29 <td style="width:80px"> </td>
30 <td style="width:120px"> </td>
32 <td style="width:20px"> </td>
33 <td style="width:20px"> </td>
35 <tr style="height:110px" onmouseover='focusRow(this);' onmouseout='blurRow(this);'>
36 <td style="width:80px"> </td>
37 <td style="width:120px"> </td>
39 <td style="width:20px"> </td>
40 <td style="width:20px"> </td>
42 <tr style="height:110px" onmouseover='focusRow(this);' onmouseout='blurRow(this);'>
43 <td style="width:80px"> </td>
44 <td style="width:120px"> </td>
46 <td style="width:20px"> </td>
47 <td style="width:20px"> </td>
49 <tr style="height:110px" onmouseover='focusRow(this);' onmouseout='blurRow(this);'>
50 <td style="width:80px"> </td>
51 <td style="width:120px"> </td>
53 <td style="width:20px"> </td>
54 <td style="width:20px"> </td>
56 <tr style="height:110px" onmouseover='focusRow(this);' onmouseout='blurRow(this);'>
57 <td style="width:80px"> </td>
58 <td style="width:120px"> </td>
60 <td style="width:20px"> </td>
61 <td style="width:20px"> </td>
63 <tr style="height:110px" onmouseover='focusRow(this);' onmouseout='blurRow(this);'>
64 <td style="width:80px"> </td>
65 <td style="width:120px"> </td>
67 <td style="width:20px"> </td>
68 <td style="width:20px"> </td>
70 <tr style="height:110px" onmouseover='focusRow(this);' onmouseout='blurRow(this);'>
71 <td style="width:80px"> </td>
72 <td style="width:120px"> </td>
74 <td style="width:20px"> </td>
75 <td style="width:20px"> </td>
77 <tr style="height:110px" onmouseover='focusRow(this);' onmouseout='blurRow(this);'>
78 <td style="width:80px"> </td>
79 <td style="width:120px"> </td>
81 <td style="width:20px"> </td>
82 <td style="width:20px"> </td>
84 <tr style="height:110px" onmouseover='focusRow(this);' onmouseout='blurRow(this);'>
85 <td style="width:80px"> </td>
86 <td style="width:120px"> </td>
88 <td style="width:20px"> </td>
89 <td style="width:20px"> </td>
95 <div style="clear:both"></div>
99 function updateHeader( liveGrid, offset ) {
100 $('showingLabel').innerHTML = liveGrid.metaData.getTotalRows() + "·ïÃæ " + (offset+1) + " - " + (offset+liveGrid.metaData.getPageSize()) + "·ïÌܤòɽ¼¨¤·¤Æ¤¤¤Þ¤¹¡£";
103 function loadGrid() {
104 var width = $('content').offsetWidth
105 $('viewPort').style.width = width + 'px';
106 $('tb_grid').style.width = ( width - 40 ) + 'px';
108 var max = <?php echo $count; ?>;
109 var params = ['action=ajax','type=all','ticket=' + '<?php echo $ticket ;?>'];
113 ,onscroll: updateHeader
114 ,requestParameters: params
115 ,sortAscendImg: '<?php echo $CONF['PluginURL'].'trackback/';?>images/sort_asc.gif'
116 ,sortDescendImg: '<?php echo $CONF['PluginURL'].'trackback/';?>images/sort_desc.gif'
117 ,columns: [ ["date", true], ["item", true], ["title", true], ["ban", false], ["del", false] ]
119 var liveGrid = new Rico.LiveGrid('tb_grid',5 , max, '<?php echo $CONF['PluginURL'].'trackback/';?>grid.php', opts);
122 window.onload = loadGrid;