baseline
[omp.pkp.sfu.ca.git] / templates / productionEditor / completed.tpl
blob25e08824ac9c1bc1d6ea1e73b5696f4a9a917f6f
1 {**
2  * completed.tpl
3  *
4  * Copyright (c) 2003-2008 John Willinsky
5  * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
6  *
7  * Show the details of completed submissions.
8  *
9  * $Id: completed.tpl,v 1.2 2009/07/30 23:16:15 tylerl Exp $
10  *}
11 <div id="submissions">
12 <table class="listing" width="100%">
13         <tr><td class="headseparator" colspan="{if $statViews}7{else}6{/if}">&nbsp;</td></tr>
14         <tr valign="bottom" class="heading">
15                 <td width="5%">{translate key="common.id"}</td>
16                 <td width="5%"><span class="disabled">MM-DD</span><br />{translate key="submissions.submit"}</td>
17                 <td width="5%">{translate key="submissions.arrangement"}</td>
18                 <td width="23%">{translate key="monograph.authors"}</td>
19                 <td width="32%">{translate key="monograph.title"}</td>
20                 {if $statViews}<td width="5%">{translate key="submission.views"}</td>{/if}
21                 <td width="25%" align="right">{translate key="common.status"}</td>
22         </tr>
23         <tr><td class="headseparator" colspan="{if $statViews}7{else}6{/if}">&nbsp;</td></tr>
24 {iterate from=submissions item=submission}
25         {assign var="monographId" value=$submission->getMonographId()}
26         <tr valign="top">
27                 <td>{$monographId|escape}</td>
28                 <td>{$submission->getDateSubmitted()|date_format:$dateFormatTrunc}</td>
29                 <td>{$submission->getArrangementAbbrev()|escape}</td>
30                 <td>{$submission->getAuthorString(true)|truncate:40:"..."|escape}</td>
31                 <td><a href="{url op="submission" path=$monographId}" class="action">{$submission->getLocalizedTitle()|strip_unsafe_html|truncate:60:"..."}</a></td>
32                 {assign var="status" value=$submission->getSubmissionStatus()}
33                 {if $statViews}
34                         <td>
35                                 {if $status==STATUS_PUBLISHED}
36                                         {assign var=viewCount value=0}
37                                         {foreach from=$submission->getGalleys() item=galley}
38                                                 {assign var=thisCount value=$galley->getViews()}
39                                                 {assign var=viewCount value=$viewCount+$thisCount}
40                                         {/foreach}
41                                         {$viewCount|escape}
42                                 {else}
43                                         &mdash;
44                                 {/if}
45                         </td>
46                 {/if}
47                 <td align="right">
48                         {if $status==STATUS_ARCHIVED}{translate key="submissions.archived"}
49                         {elseif $status==STATUS_PUBLISHED}Print isbn or somethin'
50                         {elseif $status==STATUS_DECLINED}{translate key="submissions.declined"}
51                         {/if}
52                 </td>
53         </tr>
55         <tr>
56                 <td colspan="{if $statViews}7{else}6{/if}" class="{if $submissions->eof()}end{/if}separator">&nbsp;</td>
57         </tr>
58 {/iterate}
59 {if $submissions->wasEmpty()}
60         <tr>
61                 <td colspan="{if $statViews}7{else}6{/if}" class="nodata">{translate key="submissions.noSubmissions"}</td>
62         </tr>
63         <tr>
64                 <td colspan="{if $statViews}7{else}6{/if}" class="endseparator">&nbsp;</td>
65         </tr>
66 {else}
67         <tr>
68                 <td colspan="{if $statViews}5{else}4{/if}" align="left">{page_info iterator=$submissions}</td>
69                 <td colspan="2" align="right">{page_links anchor="submissions" name="submissions" iterator=$submissions}</td>
70         </tr>
71 {/if}
72 </table>
73 </div>