在在线申请数据中添加了项目类型、项目ID、项目名称的填写
This commit is contained in:
parent
eb5879c14f
commit
65072d0317
|
@ -582,11 +582,11 @@ class DataController extends Zend_Controller_Action
|
|||
//建议参考文献
|
||||
$sql="select r.* from reference r left join mdref m on m.refid=r.id where m.uuid=? and m.reftype=0";
|
||||
$sql=$this->db->quoteInto($sql,$uuid);
|
||||
$this->view->ref=$this->db->fetchAll($sql);
|
||||
$this->view->ref=$this->db->fetchAll($sql);
|
||||
//用户发表文献
|
||||
$sql="select r.* from reference r left join mdref m on m.refid=r.id where m.uuid=? and m.reftype=1";
|
||||
$sql=$this->db->quoteInto($sql,$uuid);
|
||||
$this->view->userref=$this->db->fetchAll($sql);
|
||||
$this->view->userref=$this->db->fetchAll($sql);
|
||||
//相关用户
|
||||
$sql="select p.email,p.individual,p.organisation,r.role from role r left join responsible p on r.resid=p.id where r.uuid=? order by r.role,r.id";
|
||||
$this->view->authors=$this->db->fetchAll($sql,array($uuid));
|
||||
|
@ -762,7 +762,7 @@ class DataController extends Zend_Controller_Action
|
|||
array(
|
||||
'user' =>$user->username,
|
||||
'uuid' =>$data['uuid'],
|
||||
'title' =>$this->replace(trim($this->_request->getParam('mdtitle'))),
|
||||
'title' =>$this->replace(trim($this->_request->getParam('mdtitle'))),
|
||||
'content'=>$content
|
||||
)
|
||||
);
|
||||
|
@ -826,13 +826,26 @@ class DataController extends Zend_Controller_Action
|
|||
<div class="downloadtip">温馨提示:您需要填写以下信息才可以下载该数据</div>
|
||||
<form id="todownloadform" name="todownloadform" action="/data/todownload/">
|
||||
<table>
|
||||
<tr><td>真实姓名</td><td><input type="text" name="username" value="'.$datas['username'].'" /></td></tr>
|
||||
<tr><td>单位名称</td><td><input type="text" name="unit" value="'.$datas['unit'].'"/></td></tr>
|
||||
<tr><td>联系电话</td><td><input type="text" name="phone" value="'.$datas['phone'].'"/></td></tr>
|
||||
<tr><td>联系地址</td><td><input type="text" name="address" value="'.$datas['address'].'"/></td></tr>
|
||||
<tr><td>邮政编码</td><td><input type="text" name="postcode" value="'.$datas['postcode'].'"/></td></tr>
|
||||
<tr><td>电子邮箱</td><td><input type="text" name="email" value="'.$datas['email'].'"/></td></tr>
|
||||
<tr><td>项目说明</td><td><textarea name="project">'.$datas['project'].'</textarea></td></tr>
|
||||
<tr><td class="first">真实姓名</td><td><input type="text" name="username" value="'.$datas['username'].'" /></td></tr>
|
||||
<tr><td class="first">单位名称</td><td><input type="text" name="unit" value="'.$datas['unit'].'"/></td></tr>
|
||||
<tr><td class="first">联系电话</td><td><input type="text" name="phone" value="'.$datas['phone'].'"/></td></tr>
|
||||
<tr><td class="first">联系地址</td><td><input type="text" name="address" value="'.$datas['address'].'"/></td></tr>
|
||||
<tr><td class="first">邮政编码</td><td><input type="text" name="postcode" value="'.$datas['postcode'].'"/></td></tr>
|
||||
<tr><td class="first">电子邮箱</td><td><input type="text" name="email" value="'.$datas['email'].'"/></td></tr>
|
||||
<tr><td class="first">项目编号</td><td><input type="text" name="projectid" /></td></tr>
|
||||
<tr><td class="first">项目名称</td><td><input type="text" name="projecttitle" /></td></tr>
|
||||
<tr><td class="first">项目类型</td><td><select name="projecttype">
|
||||
<option value="国家973计划项目课题">国家973计划项目课题</option>
|
||||
<option value="国家863计划课题">国家863计划课题</option>
|
||||
<option value="国家级科技支撑课题">国家级科技支撑课题</option>
|
||||
<option value="国家级科技重大专项">国家级科技重大专项</option>
|
||||
<option value="国家级国家重大工程">国家级国家重大工程</option>
|
||||
<option value="国家级国家自然科学基金">国家级国家自然科学基金</option>
|
||||
<option value="国际合作项目">国际合作项目</option>
|
||||
<option value="省部级项目">省部级项目</option>
|
||||
<option value="其他项目工程">其他项目工程</option>
|
||||
</select></td></tr>
|
||||
<tr><td class="first">项目说明</td><td><textarea name="project" class="half">'.$datas['project'].'</textarea></td></tr>
|
||||
</table>
|
||||
请您填写完整的数据用途信息,包括项目类型、编号、题目、负责人等信息;若仅用于论文写作,请告知研究题目或主要内容,并注明导师姓名;其他用途如实注明即可。清晰明确的数据用途有助于我们更快得审核和通过申请,也会使您更快获得数据!<br />
|
||||
例一:<br />
|
||||
|
@ -890,6 +903,9 @@ class DataController extends Zend_Controller_Action
|
|||
$datas['postcode'] = $this->_request->getParam('postcode');
|
||||
$datas['email'] = $this->_request->getParam('email');
|
||||
$datas['project'] = $this->_request->getParam('project');
|
||||
$datas['project_id'] = $this->_request->getParam('projectid');
|
||||
$datas['project_type'] = $this->_request->getParam('projecttype');
|
||||
$datas['project_title'] = $this->_request->getParam('projecttitle');
|
||||
|
||||
|
||||
|
||||
|
@ -927,7 +943,10 @@ class DataController extends Zend_Controller_Action
|
|||
'postcode' => $datas['postcode'],
|
||||
'project' => $datas['project'],
|
||||
'uuid' =>$uuid,
|
||||
'email' =>$datas['email']
|
||||
'email' =>$datas['email'],
|
||||
'project_id'=>$datas['project_id'],
|
||||
'project_title'=>$datas['project_title'],
|
||||
'project_type'=>$datas['project_type']
|
||||
);
|
||||
|
||||
if($this->db->insert('onlineapp',$data))
|
||||
|
|
|
@ -105,7 +105,7 @@ else
|
|||
<?php if ($md->status>0 and $md->status<5) : ?>
|
||||
<a href="/review/review/uuid/<?php echo $md->uuid; ?>"><img src="/images/review.png" title="此数据正在评审中,我们邀请您对此数据进行评审,以便其能尽快发布!" /></a>
|
||||
<?php else : if (!$md->datatype) : ?>
|
||||
<a href="javascript:$('#todownload').show();todownload(1);"><img src="/images/download.png" title="直接下载" /></a>
|
||||
<a href="javascript:todownload(1);"><img src="/images/download.png" title="直接下载" /></a>
|
||||
<?php else: ?>
|
||||
<a href="/data/order/uuid/<?php echo $md->uuid; ?>"><img src="/images/order.png" title="免费!离线申请此数据(在线数据和离线数据都可申请)"/></a>
|
||||
<?php endif;endif; ?>
|
||||
|
@ -180,7 +180,7 @@ endforeach;
|
|||
endforeach;
|
||||
?>
|
||||
</ol>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->userref) : ?>
|
||||
<h2>数据用户发表文献</h2>
|
||||
<ol>
|
||||
|
@ -335,7 +335,6 @@ if($auth->hasIdentity())
|
|||
</div>
|
||||
<div id="window-outter" style="display:none;">
|
||||
<div id="window-inner">
|
||||
<div id="window-closer-container">[<a href="#" id="window-closer" onclick="$('#window-outter').hide()">关闭</a>]</div>
|
||||
<div id="window-content-container">
|
||||
<div id="window-loading">加载中...</div>
|
||||
<ol id="file-list">
|
||||
|
@ -345,10 +344,7 @@ if($auth->hasIdentity())
|
|||
</div>
|
||||
|
||||
<div id="todownload" style="display:none;">
|
||||
<div class="closeox"><a href="javascript:void(0);" onclick="$('#todownload').hide()">[关闭]</a></div>
|
||||
<div id="formcontent" style="">
|
||||
|
||||
</div>
|
||||
<div id="formcontent"></div>
|
||||
</div>
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
$(document).ready(function(){$(".colorbox").colorbox({photo:"true"});});
|
||||
|
@ -367,6 +363,7 @@ function initLoader() {
|
|||
//ajax download
|
||||
function todownload(ft)
|
||||
{
|
||||
if(ft!=0){$.colorbox({width:"80%",height:"80%",html:$('#todownload').html()});}
|
||||
var url = "/data/todownload/uuid/<?php echo $md->uuid;?>/ft/"+ft;
|
||||
if($('#todownloadform')) var date = $('#todownloadform').serialize();
|
||||
$.ajax({
|
||||
|
@ -441,9 +438,7 @@ function postcomment(){
|
|||
|
||||
|
||||
function getFileList(){
|
||||
var tw = ($(window).width() - $('#window-outter').width())/2;
|
||||
$('#window-outter').css({'right':tw});
|
||||
$('#window-outter').show();
|
||||
$.colorbox({width:"80%",height:"80%",html:$('#window-outter').html()});
|
||||
$.getJSON("/service/filelist/uuid/<?php echo $md->uuid;?>", function(data) {
|
||||
var items = [];
|
||||
if(data.length>0)
|
||||
|
|
|
@ -12,7 +12,7 @@ li {white-space:nowrap;}
|
|||
#OtherInfo{}
|
||||
#OtherInfo li{ float:left; width:300px;}
|
||||
#OtherInfo #filesize,#OtherInfo #downtimes,#OtherInfo #viewtimes{ width:140px;}
|
||||
#OtherInfo #datatype,#OtherInfo #fileformat,#OtherInfo #projection,#OtherInfo #datatimes,#OtherInfo #datadoc,#OtherInfo #attach{ width:290px;}
|
||||
#OtherInfo #datatype,#OtherInfo #fileformat,#OtherInfo #projection,#OtherInfo #datatimes,#OtherInfo #datadoc,#OtherInfo #attach{ width:290px;}
|
||||
#OtherInfo #attach img{height: 24px;}
|
||||
#linkurl {text-align:center;display:block;width:300px;}
|
||||
|
||||
|
@ -86,8 +86,8 @@ img{border:0px;}
|
|||
border:1px solid #555555;
|
||||
font-weight:normal;
|
||||
padding:2px;
|
||||
position:relative;
|
||||
max-height:500px;
|
||||
position:relative;
|
||||
max-height:500px;
|
||||
overflow:auto;
|
||||
}
|
||||
#window-closer-container {
|
||||
|
@ -105,9 +105,11 @@ img{border:0px;}
|
|||
}
|
||||
#todownload {width:600px;position: absolute; left: 35%;top: 5%; border:10px solid #333;background: #FFF;padding:5px;border-radius: 5px;}
|
||||
#todownload .closeox{position: absolute;right: 0;top: 0;}
|
||||
#todownload input{width:300px;}
|
||||
#todownload textarea{width:400px;height:200px;}
|
||||
#todownload input.btn{width:100px;}
|
||||
#formcontent {width:70%; margin:0px auto;}
|
||||
#todownloadform {width:100%;}
|
||||
#todownloadform table{width:100%;}
|
||||
#todownloadform table tr td.first{width:100px;}
|
||||
.strong {font:20px bold;color:red;}
|
||||
ol li{margin-left:20px;list-style:decimal;}
|
||||
#file-list li{list-style:none;}
|
||||
|
|
Loading…
Reference in New Issue