在在线申请数据中添加了项目类型、项目ID、项目名称的填写
This commit is contained in:
parent
eb5879c14f
commit
65072d0317
|
@ -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; ?>
|
||||
|
@ -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)
|
||||
|
|
|
@ -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