OSDN Git Service

git-svn-id: https://svn.sourceforge.jp/svnroot/nucleus-jp/plugin@1020 1ca29b6e-896d...
[nucleus-jp/nucleus-plugins.git] / NP_TrackBack / trunk / trackback / japanese-utf8.templates / all.html
1 <?php global $manager; ?>
2 <h2>
3         All trackbacks
4         <?php if ($count > $amount): ?>
5                 (Page <?php echo ceil($start / $amount) + 1;?> of <?php echo ceil($count / $amount);?>)
6         <?php endif; ?>
7 </h2>
8
9 <?php if(count($items)): ?>
10 <?php if ($count > $amount): ?>
11 <table class="navigation">
12         <tr>
13                 <td style='padding: 0;'>
14                         <?php if ($start > 0): ?>
15                         <form method="post" action="<?php echo $CONF['PluginURL'];?>trackback/index.php">
16                                 <div>
17                                         <input type="submit" value="&lt;&lt; Previous" />       
18                                         <input type="hidden" name="action" value="all" />
19                                         <input type="hidden" name="start" value="<?php echo max(0,$start - $amount);?>" />
20                                         <?php $manager->addTicketHidden(); ?>
21                                 </div>
22                         </form>
23                         <?php endif; ?>
24                 </td>
25                 <td style='padding: 0; text-align: right;'>     
26                         <?php if ($start + $amount < $count): ?>
27                         <form method="post" action="<?php echo $CONF['PluginURL'];?>trackback/index.php">
28                                 <div>
29                                         <input type="submit" value="Next &gt; &gt;" />
30                                         <input type="hidden" name="action" value="all" />
31                                         <input type="hidden" name="start" value="<?php echo ($start + $amount);?>" />
32                                         <?php $manager->addTicketHidden(); ?>
33                                 </div>
34                         </form>
35                         <?php endif; ?>
36                 </td>
37         </tr>
38 </table>
39 <?php endif; ?>
40
41 <table>
42         <thead>
43                 <tr>
44                         <th>Date</th>
45                         <th>Story</th>
46                         <th>Title, Blog and Excerpt</th>
47                         <th colspan="2">Actions</th>
48                 </tr>
49         </thead>
50         <tbody>
51                 <?php while (list(,$item) = each ($items)): ?>
52                 <tr onmouseover='focusRow(this);' onmouseout='blurRow(this);'>
53                         <td>
54                                 <?php echo str_replace(' ', '&nbsp;', date("Y-m-d @ H:i",$item['timestamp']));?>
55                         </td>
56                         <td>
57                                 <a href="<?php echo $item['story_url']; ?>"><?php echo $item['story'];?></a>
58                         </td>
59                         <td>
60                                 <a href="<?php echo $item['url'];?>"><img alt="Visit" border="0" src="<?php echo $plugindirurl?>silk/house_go.png" /></a>
61                                 <strong><?php echo $item['title'];?></strong> 
62                                 <em>(<?php echo $item['blog_name'];?>)</em><br />
63                                 <?php echo $item['excerpt'];?>
64                         </td>
65                         <td>
66                                 <a href="<?php echo htmlspecialchars($manager->addTicketToUrl($CONF['PluginURL'].'trackback/index.php?action=block&tb='.$item['id'].'&next=all&start='.$start),ENT_QUOTES);?>"><img alt="Block" border="0" src="<?php echo $plugindirurl?>silk/delete.png" /></a>
67                         </td>
68                         <td>
69                                 <a href="<?php echo htmlspecialchars($manager->addTicketToUrl($CONF['PluginURL'].'trackback/index.php?action=delete&tb='.$item['id'].'&next=all&start='.$start),ENT_QUOTES);?>"><img alt="Delete" border="0" src="<?php echo $plugindirurl?>silk/cross.png" /></a>
70                         </td>
71                 </tr>
72                 <?php endwhile; ?>
73         </tbody>
74 </table>
75
76 <?php if ($count > $amount): ?>
77 <table class="navigation">
78         <tr>
79                 <td style='padding: 0;'>
80                         <?php if ($start > 0): ?>
81                         <form method="post" action="<?php echo $CONF['PluginURL'];?>trackback/index.php">
82                                 <div>
83                                         <input type="submit" value="&lt;&lt; Previous" />       
84                                         <input type="hidden" name="action" value="all" />
85                                         <input type="hidden" name="start" value="<?php echo max(0,$start - $amount);?>" />
86                                         <?php $manager->addTicketHidden(); ?>
87                                 </div>
88                         </form>
89                         <?php endif; ?>
90                 </td>
91                 <td style='padding: 0; text-align: right;'>     
92                         <?php if ($start + $amount < $count): ?>
93                         <form method="post" action="<?php echo $CONF['PluginURL'];?>trackback/index.php">
94                                 <div>
95                                         <input type="submit" value="Next &gt; &gt;" />
96                                         <input type="hidden" name="action" value="all" />
97                                         <input type="hidden" name="start" value="<?php echo ($start + $amount);?>" />
98                                         <?php $manager->addTicketHidden(); ?>
99                                 </div>
100                         </form>
101                         <?php endif; ?>
102                 </td>
103         </tr>
104 </table>
105 <?php endif; ?>
106 <?php endif; ?>