OSDN Git Service

v2.2.0
[nucleus-jp/nucleus-plugins.git] / trunk / NP_TrackBack / trackback / japanese-euc.templates / all_ajax.html
1 <?php global $manager; ?>
2 <h2>
3         All trackbacks
4 </h2>
5
6 <div id="showingLabel"><?php echo $count ; ?>·ïÃæ 1 - 5 ·ïÌܤòɽ¼¨¤·¤Æ¤¤¤Þ¤¹</div>
7
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">
11         <thead>
12                 <tr>
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">&#160;</th>
17                         <th style="width:20px">&#160;</th>
18                 </tr>
19         </thead>
20         <tbody>
21                 <tr style="height:110px"  onmouseover='focusRow(this);' onmouseout='blurRow(this);'>
22                         <td style="width:80px">&#160;</td>
23                         <td style="width:120px">&#160;</td>
24                         <td >&#160;</td>
25                         <td style="width:20px">&#160;</td>
26                         <td style="width:20px">&#160;</td>
27                 </tr>
28                 <tr style="height:110px"  onmouseover='focusRow(this);' onmouseout='blurRow(this);'>
29                         <td style="width:80px">&#160;</td>
30                         <td style="width:120px">&#160;</td>
31                         <td >&#160;</td>
32                         <td style="width:20px">&#160;</td>
33                         <td style="width:20px">&#160;</td>
34                 </tr>
35                 <tr style="height:110px"  onmouseover='focusRow(this);' onmouseout='blurRow(this);'>
36                         <td style="width:80px">&#160;</td>
37                         <td style="width:120px">&#160;</td>
38                         <td >&#160;</td>
39                         <td style="width:20px">&#160;</td>
40                         <td style="width:20px">&#160;</td>
41                 </tr>
42                 <tr style="height:110px"  onmouseover='focusRow(this);' onmouseout='blurRow(this);'>
43                         <td style="width:80px">&#160;</td>
44                         <td style="width:120px">&#160;</td>
45                         <td >&#160;</td>
46                         <td style="width:20px">&#160;</td>
47                         <td style="width:20px">&#160;</td>
48                 </tr>
49                 <tr style="height:110px"  onmouseover='focusRow(this);' onmouseout='blurRow(this);'>
50                         <td style="width:80px">&#160;</td>
51                         <td style="width:120px">&#160;</td>
52                         <td >&#160;</td>
53                         <td style="width:20px">&#160;</td>
54                         <td style="width:20px">&#160;</td>
55                 </tr>
56                 <tr style="height:110px"  onmouseover='focusRow(this);' onmouseout='blurRow(this);'>
57                         <td style="width:80px">&#160;</td>
58                         <td style="width:120px">&#160;</td>
59                         <td >&#160;</td>
60                         <td style="width:20px">&#160;</td>
61                         <td style="width:20px">&#160;</td>
62                 </tr>
63                 <tr style="height:110px"  onmouseover='focusRow(this);' onmouseout='blurRow(this);'>
64                         <td style="width:80px">&#160;</td>
65                         <td style="width:120px">&#160;</td>
66                         <td >&#160;</td>
67                         <td style="width:20px">&#160;</td>
68                         <td style="width:20px">&#160;</td>
69                 </tr>
70                 <tr style="height:110px"  onmouseover='focusRow(this);' onmouseout='blurRow(this);'>
71                         <td style="width:80px">&#160;</td>
72                         <td style="width:120px">&#160;</td>
73                         <td >&#160;</td>
74                         <td style="width:20px">&#160;</td>
75                         <td style="width:20px">&#160;</td>
76                 </tr>
77                 <tr style="height:110px"  onmouseover='focusRow(this);' onmouseout='blurRow(this);'>
78                         <td style="width:80px">&#160;</td>
79                         <td style="width:120px">&#160;</td>
80                         <td >&#160;</td>
81                         <td style="width:20px">&#160;</td>
82                         <td style="width:20px">&#160;</td>
83                 </tr>
84                 <tr style="height:110px"  onmouseover='focusRow(this);' onmouseout='blurRow(this);'>
85                         <td style="width:80px">&#160;</td>
86                         <td style="width:120px">&#160;</td>
87                         <td >&#160;</td>
88                         <td style="width:20px">&#160;</td>
89                         <td style="width:20px">&#160;</td>
90                 </tr>
91         </tbody>
92 </table>
93 </div>
94 </div>
95 <div style="clear:both"></div>
96
97 <script>
98 //<![CDATA[
99     function updateHeader( liveGrid, offset ) {
100         $('showingLabel').innerHTML = liveGrid.metaData.getTotalRows() + "·ïÃæ " + (offset+1) + " - " + (offset+liveGrid.metaData.getPageSize()) + "·ïÌܤòɽ¼¨¤·¤Æ¤¤¤Þ¤¹¡£";
101     }
102
103     function loadGrid() {
104         var width = $('content').offsetWidth
105         $('viewPort').style.width = width  + 'px';
106         $('tb_grid').style.width =  ( width - 40 ) + 'px';
107
108         var max = <?php echo $count; ?>;
109         var params = ['action=ajax','type=all','ticket=' + '<?php echo $ticket ;?>']; 
110         var opts = { 
111                 prefetchBuffer: true
112                 ,prefetchOffset: 50
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] ]
118         };
119         var liveGrid = new Rico.LiveGrid('tb_grid',5 , max, '<?php echo $CONF['PluginURL'].'trackback/';?>grid.php', opts);
120     }
121
122     window.onload = loadGrid;
123 //]]>
124 </script>