2011-10-14 07:34:01 +00:00
|
|
|
<?php
|
|
|
|
$this->headTitle($this->config->title->site);
|
|
|
|
$this->headTitle($this->config->title->review);
|
|
|
|
$this->headTitle('数据查看');
|
|
|
|
$this->headTitle()->setSeparator(' - ');
|
|
|
|
$this->headLink()->appendStylesheet('/css/mdview.css');
|
2011-10-14 10:29:26 +00:00
|
|
|
$this->headLink()->appendStylesheet('/css/mdreview.css');
|
|
|
|
$this->headScript()->appendFile('/js/jquery-1.6.4.min.js');
|
2011-10-14 07:34:01 +00:00
|
|
|
$this->breadcrumb('<a href="/">首页</a>');
|
|
|
|
$this->breadcrumb('<a href="/review">'.$this->config->title->review.'</a>');
|
|
|
|
$this->breadcrumb('评审元数据');
|
|
|
|
$this->breadcrumb()->setSeparator(' > ');
|
2011-10-14 10:29:26 +00:00
|
|
|
$auth = Zend_Auth::getInstance();
|
2011-10-14 07:34:01 +00:00
|
|
|
?>
|
|
|
|
<?php $md=$this->metadata;if ($md):?>
|
2011-10-14 10:29:26 +00:00
|
|
|
<h1><?php echo $this->escape($md['title']); ?>
|
|
|
|
[<a href="/data/<?php echo $md['uuid']; ?>">查看</a>
|
|
|
|
<a href="/data/xml/uuid/<?php echo $md['uuid'];?>"><img src="/images/xml.gif" alt="查看XML源文件"></a>
|
|
|
|
<a href="/data/doc/uuid/<?php echo $md['uuid']; ?>"><img src="/images/doc-icon.png" alt="Word doc格式"></a>
|
|
|
|
]
|
2011-10-14 07:34:01 +00:00
|
|
|
<?php if ($md['title_en']) echo '<br />'.$this->escape($md['title_en']);?>
|
|
|
|
</h1>
|
|
|
|
<div id="left">
|
|
|
|
<div id="ImageViewer"><img src="/data/thumb/id/<?php echo $md['id'];?>" /> </div>
|
|
|
|
<div id="abstract">
|
|
|
|
<p>
|
|
|
|
<?php echo str_replace(array("\r\n", "\n", "\r"),'</p><p>',$md['description']);?>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<hr />
|
|
|
|
<div id="comments">
|
|
|
|
<h2>数据评审意见</h2>
|
2011-10-14 10:29:26 +00:00
|
|
|
<div class="form">
|
|
|
|
<?php
|
|
|
|
if($auth->hasIdentity())
|
|
|
|
{
|
|
|
|
?>
|
2011-10-17 03:22:00 +00:00
|
|
|
<form id="postcomment" action="/review/review/uuid/<?php echo $md['uuid'];?>" method="POST" enctype='multipart/form-data'>
|
2011-10-14 10:29:26 +00:00
|
|
|
<input type="hidden" name="submit" value="1" />
|
|
|
|
<p>
|
|
|
|
评审意见(必选)<br />
|
|
|
|
<input type="radio" name="conclusion" value="1" <?php if($this->conclusion == 1) echo 'checked="checked"'; ?> />修改后再审
|
|
|
|
<input type="radio" name="conclusion" value="2" <?php if($this->conclusion == 2) echo 'checked="checked"'; ?> />修改后发布
|
|
|
|
<input type="radio" name="conclusion" value="3" <?php if($this->conclusion == 3) echo 'checked="checked"'; ?> />发布
|
|
|
|
<input type="radio" name="conclusion" value="-1" <?php if($this->conclusion == -1) echo 'checked="checked"'; ?> />退稿
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
元数据意见(必填)<br/>
|
2011-10-17 03:22:00 +00:00
|
|
|
<textarea id="mdcomment" class="medium half" name="mdcomment"><?php echo $this->keyword.$this->mdcomment;?></textarea>
|
2011-10-14 10:29:26 +00:00
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
对数据的意见:<br/>
|
|
|
|
<textarea id="datacomment" class="small half" name="datacomment"><?php echo $this->datacomment;?></textarea>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
给数据中心的意见:<br/>
|
|
|
|
<textarea id="editorcomment" class="small half" name="editorcomment"><?php echo $this->editorcomment;?></textarea>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
评审附件:<br/>
|
2011-10-17 03:22:00 +00:00
|
|
|
<select name="dir" style="width:100px;">
|
2011-10-14 10:29:26 +00:00
|
|
|
<option value="file">文件</option>
|
|
|
|
<option value="image">图片</option>
|
|
|
|
<option value="media">媒体</option>
|
|
|
|
</select>
|
2011-10-17 03:22:00 +00:00
|
|
|
<input type="file" name="Filedata" class="half" />
|
2011-10-14 10:29:26 +00:00
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<input id="submit" type="submit" value="提交" class="btn" onclick="return confirm('是否确定提交评审意见?')" />
|
|
|
|
</p>
|
|
|
|
</form>
|
|
|
|
<?php
|
|
|
|
} else {
|
|
|
|
echo '发表评审意见,请先<a href="/account/login/?href=/review/review/uuid/'.$md['uuid'].'">登录</a>';
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<?php if ($this->msg or $this->messages) :?>
|
|
|
|
<div id="message">
|
|
|
|
<?php if ($this->msg) : ?>
|
|
|
|
<p><?php echo $this->msg; ?></p>
|
|
|
|
<?php endif; if ($this->messages): foreach($this->messages as $msg): ?>
|
|
|
|
<p><?php echo $msg; ?></p>
|
|
|
|
<?php endforeach;endif; ?>
|
|
|
|
<script></script>
|
|
|
|
</div>
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
|
|
<div id="allcomments">
|
|
|
|
|
|
|
|
</div>
|
2011-10-14 07:34:01 +00:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<?php else: ?>
|
|
|
|
<p>Cannot find the metadata.</p>
|
|
|
|
<p>没有找到对应的元数据。</p>
|
|
|
|
<?php endif;?>
|
|
|
|
|