修复黑河数据不能在线下载的问题
This commit is contained in:
parent
c2eacdfd13
commit
37670a58ab
|
@ -106,7 +106,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="/data/download/uuid/<?php echo $md->uuid; ?>"><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; ?>
|
||||
|
@ -333,10 +333,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="returninfo" style="">
|
||||
|
||||
</div>
|
||||
<div id="formcontent"></div>
|
||||
</div>
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
|
||||
|
@ -356,6 +353,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({
|
||||
|
@ -363,10 +361,10 @@ function todownload(ft)
|
|||
url:url,
|
||||
data:date,
|
||||
success:function(html){
|
||||
$('#returninfo').html(html);
|
||||
$('#formcontent').html(html);
|
||||
},
|
||||
beforeSend:function(){
|
||||
$('#returninfo').html('<img src="/images/loading.gif" />');
|
||||
$('#formcontent').html('<img src="/images/11887177066.gif" />');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue