next up previous contents
Next: MySQL 資料庫查詢函式 Up: 未完成投稿 Previous: 起源   Contents

使用者首頁

  1. 在使用者首頁中的期刊管理員增加未完成投稿稿件的統計連結,不過為方便程式修改,暫時還是使用「編輯」的頁面。
    [root@csie5 ojs-isend]# diff -urNwbBE ../ojs-2.4.2/templates/user/index.tpl templates/user/index.tpl 
    --- ../ojs-2.4.2/templates/user/index.tpl	2013-03-05 07:53:15.000000000 +0800
    +++ templates/user/index.tpl	2014-04-17 17:04:12.559929915 +0800
    @@ -31,8 +31,12 @@
     	<table width="100%" class="info">
     		{if $isValid.JournalManager.$journalId}
     			<tr>
    +				{assign var="editorSubmissionsCount" value=$submissionsCount.Editor.$journalId}
     				<td>&#187; <a href="{url journal=$journalPath page="manager"}">{translate key="user.role.manager"}</a></td>
    -				<td></td>
    +				<td>{if $editorSubmissionsCount[3]}
    +						<a href="{url journal=$journalPath page="editor" op="submissions" path="submissionsUncompleted"}">{$editorSubmissionsCount[3]} {translate key="common.queue.short.submissionsUncompleted"}</a>
    +					{else}<span class="disabled">0 {translate key="common.queue.short.submissionsUncompleted"}</span>{/if}
    +				</td>
     				<td></td>
     				<td></td>
     				<td align="right">{if $setupIncomplete.$journalId}[<a href="{url journal=$journalPath page="manager" op="setup" path="1"}">{translate key="manager.setup"}</a>]{/if}</td>
    



2016-10-25