OSDN Git Service

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