2011-10-14 07:34:01 +00:00
|
|
|
<?php
|
|
|
|
$this->headTitle($this->config->title->site);
|
|
|
|
$this->headTitle($this->config->title->review);
|
2011-11-04 14:30:06 +00:00
|
|
|
$this->headTitle('评审元数据');
|
2011-10-14 07:34:01 +00:00
|
|
|
$this->headTitle()->setSeparator(' - ');
|
2011-10-14 10:29:26 +00:00
|
|
|
$this->headLink()->appendStylesheet('/css/mdreview.css');
|
2011-11-04 08:01:27 +00:00
|
|
|
$this->headLink()->appendStylesheet('/static/js/uploadify/uploadify.css');
|
2011-11-08 09:43:34 +00:00
|
|
|
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
|
2011-11-04 08:01:27 +00:00
|
|
|
$this->headScript()->appendFile('/static/js/uploadify/swfobject.js');
|
2011-11-09 07:56:33 +00:00
|
|
|
$this->headScript()->appendFile('/static/js/uploadify/jquery.uploadify.v2.1.4.min.js');
|
|
|
|
$this->headScript()->appendFile('/js/jquery.colorbox-min.js');
|
2011-11-08 09:43:34 +00:00
|
|
|
$this->headLink()->appendStylesheet('/css/colorbox.css');
|
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']); ?>
|
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="abstract">
|
2011-11-09 07:56:33 +00:00
|
|
|
<p>
|
2011-11-08 09:43:34 +00:00
|
|
|
<a class="colorbox" href="/service/bigthumb/id/<?php echo $md['id'];?>" title="<?php echo $md['title'];?>">
|
2011-11-09 07:56:33 +00:00
|
|
|
<img src="/service/thumb/id/<?php echo $md['id'];?>" class="thumb" />
|
2011-11-08 09:43:34 +00:00
|
|
|
</a>
|
2011-10-14 07:34:01 +00:00
|
|
|
<?php echo str_replace(array("\r\n", "\n", "\r"),'</p><p>',$md['description']);?>
|
2011-10-31 03:39:06 +00:00
|
|
|
</p>
|
|
|
|
<p>
|
2011-11-07 02:46:35 +00:00
|
|
|
[<a href="/data/<?php echo $md['uuid']; ?>"><img src="/images/westdc_40w.gif" alt="查看元数据"/>元数据查看</a>]
|
|
|
|
[<a href="/service/pdf/review/1/uuid/<?php echo $md['uuid']; ?>"><img src="/images/pdf_icon.jpg" alt="Adobe PDF格式">PDF版本下载</a>]
|
|
|
|
[<a href="/service/odt/review/1/uuid/<?php echo $md['uuid']; ?>"><img src="/images/odt_icon.png" alt="OpenOffice odt格式">ODT版本下载</a>]
|
|
|
|
[<a href="/service/doc/review/1/uuid/<?php echo $md['uuid']; ?>"><img src="/images/doc_icon.gif" alt="MS Word doc格式">DOC版本下载</a>]
|
|
|
|
[<a href="/service/xml/uuid/<?php echo $md['uuid'];?>"><img src="/images/xml.gif" alt="查看XML源文件">XML源文件查看</a>]
|
2011-11-04 14:30:06 +00:00
|
|
|
[<a href="/review/help"><img src="/images/help_icon.jpg" alt="元数据评审说明">元数据评审说明</a>]
|
|
|
|
|
2011-10-31 03:39:06 +00:00
|
|
|
</p>
|
2011-10-14 07:34:01 +00:00
|
|
|
</div>
|
2011-11-04 14:30:06 +00:00
|
|
|
</div>
|
2011-10-14 07:34:01 +00:00
|
|
|
<hr />
|
|
|
|
<div id="comments">
|
2011-10-28 10:00:13 +00:00
|
|
|
<div class="tbox center slideabletbox" style="margin-top:10px;">
|
|
|
|
<div class="title"><img src="/images/listtitle.png" />所有评审意见<a href="javascript:void(0)" class="slidebtn"><img src="/images/slideup.png" /></a></div>
|
|
|
|
<div class="content">
|
|
|
|
<div id="allcomments"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="tbox center slideabletbox" style="margin-top:10px;">
|
|
|
|
<div class="title" id="commentsFormTitle"><img src="/images/formtitle.png" />发布评审意见<a href="javascript:void(0)" class="slidebtn"><img src="/images/slideup.png" /></a></div>
|
|
|
|
<div class="content" id="form">
|
2011-10-14 10:29:26 +00:00
|
|
|
<?php
|
|
|
|
if($auth->hasIdentity())
|
|
|
|
{
|
2011-10-31 03:10:26 +00:00
|
|
|
if(empty($this->review['id']) || $this->review['status']<0)
|
2011-10-17 08:10:25 +00:00
|
|
|
{
|
2011-10-18 08:15:32 +00:00
|
|
|
if($md['status']==5)
|
|
|
|
{
|
|
|
|
echo "该数据已经通过评审";
|
|
|
|
}else{
|
2011-10-14 10:29:26 +00:00
|
|
|
?>
|
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 />
|
2011-10-31 03:10:26 +00:00
|
|
|
<input type="radio" name="conclusion" value="1" <?php if($this->review['conclusion'] == 1) echo 'checked="checked"'; ?> />修改后再审
|
|
|
|
<input type="radio" name="conclusion" value="2" <?php if($this->review['conclusion'] == 2) echo 'checked="checked"'; ?> />修改后发布
|
|
|
|
<input type="radio" name="conclusion" value="3" <?php if($this->review['conclusion'] == 3) echo 'checked="checked"'; ?> />发布
|
|
|
|
<input type="radio" name="conclusion" value="-1" <?php if($this->review['conclusion'] == -1) echo 'checked="checked"'; ?> />退稿
|
2011-10-14 10:29:26 +00:00
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
元数据意见(必填)<br/>
|
2011-10-31 03:10:26 +00:00
|
|
|
<textarea id="mdcomment" class="medium full" name="mdcomment"><?php echo $this->review['mdcomment'];?></textarea>
|
2011-10-14 10:29:26 +00:00
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
对数据的意见:<br/>
|
2011-10-31 03:10:26 +00:00
|
|
|
<textarea id="datacomment" class="small full" name="datacomment"><?php echo $this->review['datacomment'];?></textarea>
|
2011-10-14 10:29:26 +00:00
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
给数据中心的意见:<br/>
|
2011-10-31 03:10:26 +00:00
|
|
|
<textarea id="editorcomment" class="small full" name="editorcomment"><?php echo $this->review['editorcomment'];?></textarea>
|
2011-10-14 10:29:26 +00:00
|
|
|
</p>
|
|
|
|
<p>
|
2011-11-04 08:01:27 +00:00
|
|
|
评审附件:
|
|
|
|
<ul id="datalist">
|
|
|
|
</ul>
|
|
|
|
<input id="file_upload" name="Filedata" type="file" />
|
2011-11-07 02:46:35 +00:00
|
|
|
<input type="button" class="btn btn-small" onclick="$('#file_upload').uploadifyUpload();" value="上传" />
|
2011-10-17 08:38:52 +00:00
|
|
|
<a href="javascript:void(0);" onclick="$('#showexts').toggle()">查看可上传的附件类型</a>
|
2011-10-28 10:00:13 +00:00
|
|
|
<div id='showexts' style="display:none;">'doc', 'docx', 'xls', 'xlsx', 'ppt', 'htm', 'html', 'txt', 'zip', 'rar', 'gz', 'bz2','gif', 'jpg', 'jpeg', 'png', 'bmp', 'pdf'</div>
|
2011-10-14 10:29:26 +00:00
|
|
|
</p>
|
2011-11-04 08:01:27 +00:00
|
|
|
<br />
|
2011-10-14 10:29:26 +00:00
|
|
|
<p>
|
2011-11-04 08:01:27 +00:00
|
|
|
<button class="btn btn-green" type="button" id="submit" onclick="return confirm('是否确定提交评审意见?')">提交</button>
|
2011-10-28 10:00:13 +00:00
|
|
|
<button class="btn btn-small" type="button" id="save">存草稿</button>
|
|
|
|
<button class="btn btn-small" type="reset" id="reset" onclick="return confirm('是否确定重置已经填写的意见?')">重置</button>
|
2011-10-14 10:29:26 +00:00
|
|
|
</p>
|
2011-11-04 08:01:27 +00:00
|
|
|
<p>
|
|
|
|
<label>注:评审意见提交之后不可更改,存草稿功能不能保存附件,请妥善保存附件。</label>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<?php
|
2011-10-31 03:10:26 +00:00
|
|
|
if($this->review['status']<0)
|
|
|
|
{
|
|
|
|
echo '<div class="box box-info">您保存的草稿已经加载</div>';
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</p>
|
2011-10-14 10:29:26 +00:00
|
|
|
</form>
|
2011-11-04 08:01:27 +00:00
|
|
|
<p id="infobox">
|
|
|
|
|
|
|
|
</p>
|
|
|
|
|
2011-10-28 10:00:13 +00:00
|
|
|
<?php
|
2011-10-18 08:15:32 +00:00
|
|
|
}
|
2011-10-17 08:10:25 +00:00
|
|
|
}else
|
|
|
|
{
|
2011-10-31 03:10:26 +00:00
|
|
|
echo '<div class="box box-info">您已经对此数据作出过评审</div>';
|
2011-10-17 08:10:25 +00:00
|
|
|
}
|
2011-10-14 10:29:26 +00:00
|
|
|
} else {
|
2011-10-31 03:10:26 +00:00
|
|
|
echo '<div class="box box-info">发表评审意见,请先<a href="/account/login/?href=/review/review/uuid/'.$md['uuid'].'">登录</a></div>';
|
2011-10-14 10:29:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
?>
|
2011-10-31 03:10:26 +00:00
|
|
|
<?php if ($this->msg or $this->messages) :?>
|
|
|
|
<div class="box box-success">
|
|
|
|
<?php if ($this->msg) : ?>
|
|
|
|
<?php echo $this->msg; ?>
|
|
|
|
<?php endif; if ($this->messages):?>
|
|
|
|
<ol>
|
|
|
|
<?php foreach($this->messages as $msg): ?>
|
|
|
|
<li><?php echo $msg; ?></li>
|
|
|
|
<?php endforeach;?>
|
|
|
|
</ol>
|
|
|
|
<?php endif; ?>
|
|
|
|
<script></script>
|
|
|
|
</div>
|
|
|
|
<?php endif; ?>
|
2011-10-28 10:00:13 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2011-10-14 07:34:01 +00:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
2011-11-04 08:25:55 +00:00
|
|
|
<script>
|
2011-11-08 04:02:38 +00:00
|
|
|
loadmdcomment(1);
|
2011-11-09 07:56:33 +00:00
|
|
|
function loadmdcomment(page){
|
|
|
|
var url="/review/allreview/uuid/<?php echo $md['uuid'];?>/";
|
|
|
|
if(page!=''){url+='page/'+page;}
|
|
|
|
$.ajax({
|
|
|
|
'type':"POST",
|
|
|
|
'url':url,
|
|
|
|
'data':'',
|
|
|
|
'success':function(html){$('#allcomments').html(html);},
|
|
|
|
'beforeSend':function(){$('#allcomments').html('<img src="/images/loading.gif" />正在加载...');}
|
|
|
|
});
|
|
|
|
}
|
2011-11-08 04:02:38 +00:00
|
|
|
|
|
|
|
function checkfiles(rid){
|
|
|
|
$.ajax({
|
2011-11-09 07:56:33 +00:00
|
|
|
'type':"POST",
|
|
|
|
'url':"/review/attlist/id/"+rid,
|
|
|
|
'data':'',
|
|
|
|
'success':function(html){
|
2011-11-08 04:02:38 +00:00
|
|
|
$('#filelist_'+rid).html(html);
|
|
|
|
},
|
2011-11-09 07:56:33 +00:00
|
|
|
'beforeSend':function(){
|
2011-11-08 04:02:38 +00:00
|
|
|
$('#filelist_'+rid).html('<img src="/images/11887177066.gif" />正在加载...');
|
2011-11-09 07:56:33 +00:00
|
|
|
}
|
2011-11-08 04:02:38 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2011-11-04 08:01:27 +00:00
|
|
|
$(document).ready(function() {
|
2011-11-08 04:02:38 +00:00
|
|
|
$('.slideabletbox .title').click(
|
2011-11-04 08:25:55 +00:00
|
|
|
function(){
|
|
|
|
$(this).next(".content").slideToggle(1000,function(){
|
|
|
|
if($(this).css('display')=='none')
|
|
|
|
$(this).prev('.title').find(".slidebtn").html('<img src="/images/slidedown.png" />');
|
|
|
|
else
|
|
|
|
$(this).prev('.title').find(".slidebtn").html('<img src="/images/slideup.png" />');
|
|
|
|
;})
|
|
|
|
});
|
|
|
|
|
|
|
|
$('#submit').click(function(){
|
|
|
|
savereview(1);
|
|
|
|
});
|
|
|
|
|
|
|
|
$('#save').click(function(){
|
|
|
|
savereview(0);
|
|
|
|
});
|
|
|
|
|
|
|
|
function savereview(save){
|
|
|
|
var url="/review/save/uuid/<?php echo $md['uuid'];?>";
|
|
|
|
if(save>0)
|
|
|
|
{
|
|
|
|
url = url+"/do/submit";
|
|
|
|
}
|
|
|
|
var date = $('#postcomment').serialize();
|
|
|
|
$.ajax({
|
2011-11-09 07:56:33 +00:00
|
|
|
'type':"POST",
|
|
|
|
'url':url,
|
|
|
|
'data':date,
|
|
|
|
'success':function(html){
|
2011-11-04 08:25:55 +00:00
|
|
|
$('#infobox').html(html);
|
|
|
|
$('#save').html('存草稿');
|
|
|
|
setTimeout("$('#save').removeAttr('disabled');$('.box').remove();",3000);
|
|
|
|
loadmdcomment(1);
|
|
|
|
},
|
2011-11-09 07:56:33 +00:00
|
|
|
'beforeSend':function(){
|
2011-11-04 08:25:55 +00:00
|
|
|
$('#save').attr('disabled','disabled');
|
|
|
|
$('#save').html('<img src="/images/11887177066.gif" />正在保存...');
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2011-11-04 08:01:27 +00:00
|
|
|
$('#file_upload').uploadify({
|
|
|
|
'uploader' : '/static/js/uploadify/uploadify.swf',
|
2011-11-07 02:46:35 +00:00
|
|
|
'scriptData': {'PHPSESSID' : '<?php echo session_id(); ?>'},
|
2011-11-07 06:22:51 +00:00
|
|
|
'script' : '/service/upload',
|
2011-11-04 08:01:27 +00:00
|
|
|
'cancelImg' : '/static/js/uploadify/cancel.png',
|
|
|
|
'folder' : '/uploads',
|
2011-11-08 07:09:23 +00:00
|
|
|
'sizeLimit' : 10485760,
|
|
|
|
'queueSizeLimit' : 10,
|
2011-11-07 08:09:19 +00:00
|
|
|
'multi' : true,
|
2011-11-04 08:01:27 +00:00
|
|
|
'auto' : false,
|
|
|
|
'displayData' : 'speed',
|
|
|
|
'buttonImg' : '/static/js/uploadify/selectfile.gif',
|
|
|
|
'onComplete' : function(event, ID, fileObj, response, data) {
|
|
|
|
var obj = jQuery.parseJSON(response);
|
|
|
|
var html;
|
|
|
|
if(obj.error=='')
|
2011-11-07 02:46:35 +00:00
|
|
|
{html = obj.html;}else{html = obj.error;}
|
2011-11-04 08:01:27 +00:00
|
|
|
$('<li/>', {
|
2011-11-04 08:25:55 +00:00
|
|
|
"id":'uploadedItem_'+obj.attid,
|
|
|
|
"class":'uploadifyQueueItem',
|
|
|
|
"html": html
|
2011-11-04 08:01:27 +00:00
|
|
|
}).appendTo('#datalist');
|
|
|
|
$('#deletebtn_'+obj.attid).bind('click', function() {
|
|
|
|
deleteatt(obj.attid);
|
|
|
|
});
|
2011-11-07 02:46:35 +00:00
|
|
|
},
|
|
|
|
'onError' : function (event,ID,fileObj,errorObj) {
|
|
|
|
alert(errorObj.type + ' Error: ' + errorObj.info);
|
2011-11-04 08:01:27 +00:00
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
function deleteatt(attid){
|
|
|
|
$.ajax({
|
|
|
|
type:"POST",
|
|
|
|
url:'/upload/delreviewatt/id/'+attid,
|
|
|
|
data:'',
|
|
|
|
success:function(html){
|
|
|
|
$('#uploadedItem_'+attid).remove();
|
|
|
|
},
|
|
|
|
beforeSend:function(){
|
|
|
|
$('#deletebtn_'+attid).html('<img src="/images/11887177066.gif" />');
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2011-11-25 09:10:20 +00:00
|
|
|
$.getJSON("/service/getatts/id/<?php echo $this->review['id'];?>", function(data) {
|
2011-11-09 07:56:33 +00:00
|
|
|
if(data)
|
2011-11-04 08:01:27 +00:00
|
|
|
{
|
|
|
|
$.each(data, function(key, val) {
|
|
|
|
$('<li/>', {
|
2011-11-04 08:25:55 +00:00
|
|
|
"id":'uploadedItem_'+val['id'],
|
|
|
|
"class":'uploadifyQueueItem',
|
|
|
|
"html": val['html']
|
2011-11-04 08:01:27 +00:00
|
|
|
}).appendTo('#datalist');
|
|
|
|
$('#deletebtn_'+val['id']).bind('click', function() {
|
|
|
|
deleteatt(val['id']);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
});
|
2011-11-08 04:02:38 +00:00
|
|
|
|
2011-11-09 07:56:33 +00:00
|
|
|
});
|
2011-11-08 09:43:34 +00:00
|
|
|
$(document).ready(function(){$(".colorbox").colorbox({photo:"true"});});
|
2011-10-17 08:10:25 +00:00
|
|
|
</script>
|
|
|
|
|
2011-10-14 07:34:01 +00:00
|
|
|
<?php else: ?>
|
|
|
|
<p>Cannot find the metadata.</p>
|
|
|
|
<p>没有找到对应的元数据。</p>
|
|
|
|
<?php endif;?>
|
|
|
|
|