diff --git a/application/default/views/scripts/data/advancesearch.phtml b/application/default/views/scripts/data/advancesearch.phtml index 043d933a..5ad05334 100644 --- a/application/default/views/scripts/data/advancesearch.phtml +++ b/application/default/views/scripts/data/advancesearch.phtml @@ -135,7 +135,7 @@ function setRectangle(east,west,south,north){ google.maps.event.addListener(rectangle, 'bounds_changed', function () { var latlng = rectangle.getBounds(); - MapValueChange(latlng.ca.d,latlng.Z.d,latlng.ca.b,latlng.Z.b); + MapValueChange(latlng.fa.d,latlng.Z.d,latlng.fa.b,latlng.Z.b); //console.dir(latlng); }); diff --git a/application/default/views/scripts/data/view.phtml b/application/default/views/scripts/data/view.phtml index ab43f553..b080ce0e 100755 --- a/application/default/views/scripts/data/view.phtml +++ b/application/default/views/scripts/data/view.phtml @@ -1,238 +1,243 @@ -headTitle($this->config->title->site); - $this->headTitle($this->config->title->data); - $this->headTitle($this->metadata->title); - $this->headTitle()->setSeparator(' - '); - $this->breadcrumb('首页'); - $this->breadcrumb(''.$this->config->title->data.''); - $this->breadcrumb('查看元数据'); - $this->breadcrumb()->setSeparator(' > '); - $this->theme->AppendPlus($this,'google_map_v3'); - $this->theme->AppendPlus($this,'colorbox'); -?> - -metadata;if ($md):?> -

escape($md->title); -if ($md->title_en) echo '
'.$this->escape($md->title_en);?> -

-
-
-
-
- -

-

',$md->description);?> -

-
-
-
- citation) : ?> -
-

本数据引用方式

-

escape($md->citation);?>

- - ref) : ?> -
-

建议参考文献

-
    - ref as $ref) : - if (empty($ref->link)) - echo '
  1. '.$ref->reference.'
  2. '; - else - echo '
  3. '.$ref->reference.' 下载
  4. '; - endforeach; - ?> -
- - userref) : ?> -
-

数据用户发表文献

-
    - userref as $ref) : - if (empty($ref->link)) - echo '
  1. '.$ref->reference.'
  2. '; - else - echo '
  3. '.$ref->reference.' 下载
  4. '; - endforeach; - ?> -
- -
-

数据使用声明

- uselimits) : - foreach($this->uselimits as $uselimit) : - echo '

'.str_replace(array("\r\n", "\n", "\r"),'

',$this->escape($uselimit->uselimit)).'

'; - endforeach; - ?> - -

为尊重知识产权、保障数据作者的权益、扩展数据中心的服务、评估数据的应用潜力,请数据使用者在使用数据所产生的研究成果中(包括公开发表的论文、论著、数据产品和未公开发表的研究报告、数据产品等成果),明确注明数据来源和数据作者。对于转载(二次或多次发布)的数据,作者还须注明原始数据来源。

-

中文发表的成果参考以下规范注明: 数据来源于国家自然科学基金委员会"中国西部环境与生态科学数据中心"(http://westdc.westgis.ac.cn)

-

英文发表的成果依据以下规范注明: The data set is provided by Environmental and Ecological Science Data Center for West China,National Natural Science Foundation of China (http://westdc.westgis.ac.cn)

-

- - data_archives){ ?> -

数据相关新闻

-
    - data_archives as $v){?> -
  • - -
-
- - suppinfo) : ?> -

资助项目

- '.str_replace(array("\r\n", "\n", "\r"),'

',$this->escape($md->suppinfo)).'

';?> -
- - resources) : ?> -

相关资源

- -
- -
-
- keys as $cg){ - if($cg['keytype']=="theme") - $keywords[]=$cg['keyword']; - } - $ev = join(" ",$keywords); - ?> -
- -
- -
-
- -
- downhistory) : ?> -

最近10条服务记录如下:

-
    - downhistory as $v){ - echo '
  1. '.date("Y-m-d",strtotime($v->ts_created))." ".$v->unit." ".$v->realname; - if (!empty($v->offlineproject)) - echo ' 用途:'.$v->offlineproject; - elseif (!empty($v->onlineproject)) - echo ' 用途:'.$v->onlineproject; - echo '
  2. '; - } - ?> -
- - 暂时没有服务记录,欢迎您下载使用! - -
-
- -
-
-
-
-
- status>0 and $md->status<5) : ?> -

此数据还在评审过程中,我们真切地邀请您参加此数据的评审,以便我们能尽快发布此数据!评审

- -

数据评论

-
-
评论加载中
-
- hasIdentity()) - { - $user = $auth->getIdentity(); - $name = $user->realname; - $email = $user->email; - }else - { - $name = ""; - $email = ""; - } - ?> -
-
- -
- -
-
-
- -
- -
-
-
- -
- e.g. http://westdc.westgis.ac.cn/ -
-
-
- -
- -
-
-
- -
- -
-
-
-
- - - 提交 -
-
-
-
- -
-
-
-
- - '学科','place'=>'地点','theme'=>'主题','temporal'=>'时间词','stratum'=>'地层'); +headTitle($this->config->title->site); + $this->headTitle($this->config->title->data); + $this->headTitle($this->metadata->title); + $this->headTitle()->setSeparator(' - '); + $this->breadcrumb('首页'); + $this->breadcrumb(''.$this->config->title->data.''); + $this->breadcrumb('查看元数据'); + $this->breadcrumb()->setSeparator(' > '); + $this->theme->AppendPlus($this,'google_map_v3'); + $this->theme->AppendPlus($this,'colorbox'); +?> + +metadata;if ($md):?> +

escape($md->title); +if ($md->title_en) echo '
'.$this->escape($md->title_en);?> +

+
+
+
+
+ +

+

',$md->description);?> +

+
+
+
+ citation) : ?> +
+

本数据引用方式

+

escape($md->citation);?>

+ + ref) : ?> +
+

建议参考文献

+
    + ref as $ref) : + if (empty($ref->link)) + echo '
  1. '.$ref->reference.'
  2. '; + else + echo '
  3. '.$ref->reference.' 下载
  4. '; + endforeach; + ?> +
+ + userref) : ?> +
+

数据用户发表文献

+
    + userref as $ref) : + if (empty($ref->link)) + echo '
  1. '.$ref->reference.'
  2. '; + else + echo '
  3. '.$ref->reference.' 下载
  4. '; + endforeach; + ?> +
+ +
+

数据使用声明

+ uselimits) : + foreach($this->uselimits as $uselimit) : + echo '

'.str_replace(array("\r\n", "\n", "\r"),'

',$this->escape($uselimit->uselimit)).'

'; + endforeach; + ?> + +

为尊重知识产权、保障数据作者的权益、扩展数据中心的服务、评估数据的应用潜力,请数据使用者在使用数据所产生的研究成果中(包括公开发表的论文、论著、数据产品和未公开发表的研究报告、数据产品等成果),明确注明数据来源和数据作者。对于转载(二次或多次发布)的数据,作者还须注明原始数据来源。

+

中文发表的成果参考以下规范注明: 数据来源于国家自然科学基金委员会"中国西部环境与生态科学数据中心"(http://westdc.westgis.ac.cn)

+

英文发表的成果依据以下规范注明: The data set is provided by Environmental and Ecological Science Data Center for West China,National Natural Science Foundation of China (http://westdc.westgis.ac.cn)

+

+ + data_archives){ ?> +

数据相关新闻

+
    + data_archives as $v){?> +
  • + +
+
+ + suppinfo) : ?> +

资助项目

+ '.str_replace(array("\r\n", "\n", "\r"),'

',$this->escape($md->suppinfo)).'

';?> +
+ + resources) : ?> +

相关资源

+ +
+ +
+
+ keys as $cg){ + if($cg['keytype']=="theme") + $keywords[]=$cg['keyword']; + } + $ev = join(" ",$keywords); + ?> +
+ +
+ + +
+
    +
    +
    + downhistory) : ?> +

    最近10条服务记录如下:

    +
      + downhistory as $v){ + echo '
    1. '.date("Y-m-d",strtotime($v->ts_created))." ".$v->unit." ".$v->realname; + if (!empty($v->offlineproject)) + echo ' 用途:'.$v->offlineproject; + elseif (!empty($v->onlineproject)) + echo ' 用途:'.$v->onlineproject; + echo '
    2. '; + } + ?> +
    + + 暂时没有服务记录,欢迎您下载使用! + +
    +
    + +
    +
    +
    +
    +
    + status>0 and $md->status<5) : ?> +

    此数据还在评审过程中,我们真切地邀请您参加此数据的评审,以便我们能尽快发布此数据!评审

    + +

    数据评论

    +
    +
    评论加载中
    +
    + hasIdentity()) + { + $user = $auth->getIdentity(); + $name = $user->realname; + $email = $user->email; + }else + { + $name = ""; + $email = ""; + } + ?> +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    + +
    + e.g. http://westdc.westgis.ac.cn/ +
    +
    +
    + +
    + +
    +
    +
    + +
    + +
    +
    +
    +
    + + + 提交 +
    +
    +
    +
    + +
    +
    +
    +
    + + '学科','place'=>'地点','theme'=>'主题','temporal'=>'时间词','stratum'=>'地层'); $kt=''; $i=0; foreach($this->keys as $cg) : @@ -243,277 +248,279 @@ foreach($this->keys as $cg) : $kt=$cg['keytype']; $i=0; endif; - if ($i==0) { - ?> -
      -
    • - + - -
      -
      -

      数据细节文件列表

      -
        - fileformat) : ?> -
      • 格式:fileformat; ?>
      • - -
      • 大小:filesize; ?>MB
      • - downloaded>9) :?> -
      • 下载:downloaded; ?>次
      • - -
      • 浏览:viewed; ?>次
      • - - timebegin)) : ?> -
      • 数据时间范围:timebegin));if (!empty($md->timeend)) echo " 至 ".date('Y-m-d',strtotime($md->timeend)); ?>
      • - - doc)) : ?> -
      • doc; - }?>">数据说明文档
      • - - attachments) : ?> -
      • 相关文档: - attachments as $k=>$a) : ?> - - - -
      • - -
      • 数据共享方式:datatype) print "离线"; else print "在线(可直接下载)";?>
      • -
      -
      - status>0 and $md->status<5) : ?> - 数据评审 - datatype) : ?> - - 在线下载 - - - - 离线申请 - - -
      - -
      -
      -

      空间位置

      -
      -
      -

      联系信息

      -
      -
        - '资源提供者','custodian'=>'维护者','owner'=>'拥有者','user'=>'用户','distributor'=>'数据服务联系人','originator'=>'创建者','pointOfContact'=>'联系人','principalInvestigator'=>'数据调查与处理者','processor'=>'处理者','publisher'=>'元数据发布者','author'=>'元数据作者'); - $r=''; - $i=0; - foreach($this->authors as $k=>$author) : - if ($author->role!=$r) - { - $r=$author->role; - $i=0; - if ($k>0) echo ''; - echo '
      • '.$party_zh[$author->role].':'; - } - if ($i>0) echo ','; - $i+=1; - if (!empty($author->email) && $r!='principalInvestigator') - echo ''; - echo ''; - if (!empty($author->individual)) - echo $author->individual; - else - echo $author->organisation; - echo ''; - if (!empty($author->email)) echo ''; - if ($k+1==count($this->authors)) echo '
      • '; - endforeach; - ?> -
      -
      -
        -
      • 元数据更新时间:ts_created)); ?>
      • -
      • 下载元数据: +endforeach; + ?>
      + +
      +
      +

      数据细节文件列表

      +
        + fileformat) : ?> +
      • 格式:fileformat; ?>
      • + +
      • 大小:filesize; ?>MB
      • + downloaded>9) :?> +
      • 下载:downloaded; ?>次
      • + +
      • 浏览:viewed; ?>次
      • + + timebegin)) : ?> +
      • 数据时间范围:timebegin));if (!empty($md->timeend)) echo " 至 ".date('Y-m-d',strtotime($md->timeend)); ?>
      • + + doc)) : ?> +
      • doc; + }?>">数据说明文档
      • + + attachments) : ?> +
      • 相关文档: + attachments as $k=>$a) : ?> + + + +
      • + +
      • 数据共享方式:datatype) print "离线"; else print "在线(可直接下载)";?>
      • +
      +
      + status>0 and $md->status<5) : ?> + 数据评审 + datatype) : ?> + + 在线下载 + + + + 离线申请 + + +
      + +
      +
      +

      空间位置

      +
      +
      +

      联系信息

      +
      +
        + '资源提供者','custodian'=>'维护者','owner'=>'拥有者','user'=>'用户','distributor'=>'数据服务联系人','originator'=>'创建者','pointOfContact'=>'联系人','principalInvestigator'=>'数据调查与处理者','processor'=>'处理者','publisher'=>'元数据发布者','author'=>'元数据作者'); + $r=''; + $i=0; + foreach($this->authors as $k=>$author) : + if ($author->role!=$r) + { + $r=$author->role; + $i=0; + if ($k>0) echo ''; + echo '
      • '.$party_zh[$author->role].':'; + } + if ($i>0) echo ','; + $i+=1; + if (!empty($author->email) && $r!='principalInvestigator') + echo ''; + echo ''; + if (!empty($author->individual)) + echo $author->individual; + else + echo $author->organisation; + echo ''; + if (!empty($author->email)) echo ''; + if ($k+1==count($this->authors)) echo '
      • '; + endforeach; + ?> +
      +
      +
        +
      • 元数据更新时间:ts_created)); ?>
      • +
      • 下载元数据: Adobe PDF格式 OpenOffice odt格式 Word doc格式 - 查看XML源文件 -
      • - - version->c>0):?> -
      • 版本历史:version->c ?> 个
      • - -
      -
      -
      -
      分享到
      - -
      - - - - - - - - - -
      - -
      -
    -
    - - - -

    Cannot find the metadata.

    -

    没有找到对应的元数据。

    - - - + 查看XML源文件 + + + version->c>0):?> +
  • 版本历史:version->c ?> 个
  • + + +
    +
    +
    分享到
    + +
    + + + + + + + + + +
    + +
    + + + + + +

    Cannot find the metadata.

    +

    没有找到对应的元数据。

    + + + diff --git a/htdocs/js/metadata-view.js b/htdocs/js/metadata-view.js index 0f2f52c3..ee5e5c7f 100644 --- a/htdocs/js/metadata-view.js +++ b/htdocs/js/metadata-view.js @@ -1,198 +1,166 @@ -function postcomment(){ - var url="/data/postcomment"; - var date = $('#postcommentform').serialize(); - $.ajax({ - 'type':"POST", - 'url':url, - 'data':date, - 'success':function(html){ - $('#postcomment').html('提交'); - setTimeout("$('#postcomment').removeAttr('disabled');",3000); - $('#returninfo').html(html); - ajaxpage(0); - }, - 'beforeSend':function(){ - $('#postcomment').attr('disabled','disabled'); - $('#postcomment').html('正在提交...'); - } - }); -} - -function getSubFileList(uuid,id,depth){ - if($("#div_"+id).length>0) - { - $('#span_'+id).html('+'); - $("#div_"+id).remove(); - return false; - } - $('
    ', { - 'style':'overflow:auto;', - 'id': 'div_'+id, - "html": '
  • 加载中
  • ' - }).appendTo('#li_'+id); - url="/service/subfilelist/uuid/"+uuid+"/subpath/"+id+"/depth/"+depth; - $.getJSON(url, function(data) { - var items = []; - $.each(data, function(key, val) { - if(val['filename'].match(/\/$/)) - { - items.push('
  • + ' + val['filename'] + '
  • '); - }else{ - items.push('
  • ' + val['filename'] + '
  • '); - } - }); - $("#div_"+id).html(items.join('')); - }).complete(function(){ - if($("#div_"+id)){ - $('#span_'+id).html('-'); - } - }); -} - -function googleSearch(keyword){ - $.ajax({type:"POST",url:"/service/googlesearch",data:'q='+keyword, - success:function(html){ - var items = []; - var obj = jQuery.parseJSON(html); - $.each(obj.responseData.results, function(key, val) { - var html = '

    '+val['title']+'

    ' - +val['url'].replace(/%(.*)/i,"") +'

    ' - +val['content'] - +'

    '; - items.push('
  • ' + html + '
  • '); - }); - items.push('
  • 查看更多搜索结果(约'+obj.responseData.cursor.estimatedResultCount+'条)
  • '); - $('#searchlist').html(items.join('')); - searchFinish(); - }, - beforeSend:function(){$('#searchlist').html('结果加载中');}, - error:function(){$('#searchlist').html('');Alert('检索中发现错误,请稍后重试或直接访问');} - }); -} - -function scholarSearch(keyword){ - $.ajax({type:"POST",url:"/service/scholarsearch",data:'q='+keyword, - success:function(html){ - //$('#searchlist').html(html);return false; - var items = []; - var obj = jQuery.parseJSON(html); - if(obj.error != '') - { - items.push('
  • ' + obj.error + '
  • '); - }else{ - $.each(obj.result, function(key, val) { - var html = val['title'] - +'

    ' - +val['content'] - +'

    '; - items.push('
  • ' + html + '
  • '); - }); - } - items.push('
  • 查看更多搜索结果'); - $('#searchlist').html(items.join('')); - searchFinish(); - }, - beforeSend:function(){$('#searchlist').html('结果加载中');}, - error:function(){$('#searchlist').html('');Alert('检索中发现错误,请稍后重试或直接访问');} - }); -} - -function bingSearch(keyword){ - $.ajax({type:"POST",url:"/service/bingsearch",data:'q='+keyword, - success:function(html){ - var items = []; - var obj = jQuery.parseJSON(html); - if($.isArray(obj.SearchResponse.Web)) - { - if(obj.SearchResponse.Web.Total==0) - { - $('#searchlist').html("No results!"); - return false; - } - $.each(obj.SearchResponse.Web.Results, function(key, val) { - var html = '

    '+val['Title']+'

    ' - +val['DisplayUrl'].replace(/%(.*)/i,"") +'

    ' - +val['Description'] - +'

    '; - items.push('
  • ' + html + '
  • '); - }); - items.push('
  • 查看更多搜索结果(约'+obj.SearchResponse.Web.Total+'条)'); - }else{ - Alert('暂无搜索结果');$('#searchlist').html(''); - } - $('#searchlist').html(items.join('')); - searchFinish(); - }, - beforeSend:function(){$('#searchlist').html('结果加载中');}, - error:function(){$('#searchlist').html('');Alert('检索中发现错误,请稍后重试或直接访问');} - }); -} - -function cnkiSearch(keyword){ - $.ajax({type:"POST",url:"/service/cnkisearch",data:'q='+keyword, - success:function(html){ - var items = []; - var obj = jQuery.parseJSON(html); - if(obj.error != '') - { - items.push('
  • ' + obj.error + '
  • '); - }else{ - $.each(obj.result, function(key, val) { - var html = '

    '+val['title']+'

    ' - +val['url'].replace(/%(.*)/i,"") +'

    ' - +val['content'] - +'

    '; - - items.push('
  • ' + html + '
  • '); - }); - } - items.push('
  • 查看更多搜索结果'); - $('#searchlist').html(items.join('')); - searchFinish() - }, - beforeSend:function(){$('#searchlist').html('结果加载中');}, - error:function(){Alert('检索中发现错误,请稍后重试或直接访问');$('#searchlist').html('');} - }); -} - -function searchFinish() -{ - $('html, body').animate({scrollTop:$('#gsearch_t').offset().top}, 'slow'); -} - -function dataVersion(uuid) -{ - $.ajax({ - 'type':"POST", - 'url':'/data/getversion', - 'data':'ac=list&uuid='+uuid, - 'success':onDataVersionLoad, - 'timeout': 30000, - 'error': function(){Alert('处理中出现错误,请刷新页面后重试');return false;} - }); - -} -function onDataVersionLoad(data){ - if (typeof(data)=='object') - { - if(typeof(data.error)!='undefined') - {Alert(data.error);return false;} - if(typeof(data.list)!='undefined') - { - var html = ""; - for(v in data.list) - { - html+='
  • '+data.list[v].changelog+'

    '+data.list[v].ts_created+' by '+data.list[v].username+'

  • '; - } - $.colorbox({'innerWidth':'50%','innerHeight':'80%','html':'
    '}); - } - } - else{ - Alert('出现错误,请稍后再试');return false; - } -} - -function Alert(html){ - $.colorbox({'innerWidth':'50%','html':'

    '+html+'

    '}); +function postcomment(){ + var url="/data/postcomment"; + var date = $('#postcommentform').serialize(); + $.ajax({ + 'type':"POST", + 'url':url, + 'data':date, + 'success':function(html){ + $('#postcomment').html('提交'); + setTimeout("$('#postcomment').removeAttr('disabled');",3000); + $('#returninfo').html(html); + ajaxpage(0); + }, + 'beforeSend':function(){ + $('#postcomment').attr('disabled','disabled'); + $('#postcomment').html('正在提交...'); + } + }); +} + +function getSubFileList(uuid,id,depth){ + if($("#div_"+id).length>0) + { + $('#span_'+id).html('+'); + $("#div_"+id).remove(); + return false; + } + $('
    ', { + 'style':'overflow:auto;', + 'id': 'div_'+id, + "html": '
  • 加载中
  • ' + }).appendTo('#li_'+id); + url="/service/subfilelist/uuid/"+uuid+"/subpath/"+id+"/depth/"+depth; + $.getJSON(url, function(data) { + var items = []; + $.each(data, function(key, val) { + if(val['filename'].match(/\/$/)) + { + items.push('
  • + ' + val['filename'] + '
  • '); + }else{ + items.push('
  • ' + val['filename'] + '
  • '); + } + }); + $("#div_"+id).html(items.join('')); + }).complete(function(){ + if($("#div_"+id)){ + $('#span_'+id).html('-'); + } + }); +} + +function googleSearch(keyword){ + $.ajax({type:"POST",url:"/service/googlesearch",data:'q='+keyword, + success:function(html){ + var items = []; + var obj = jQuery.parseJSON(html); + $.each(obj.responseData.results, function(key, val) { + var html = '

    '+val['title']+'

    ' + +val['url'].replace(/%(.*)/i,"") +'

    ' + +val['content'] + +'

    '; + items.push('
  • ' + html + '
  • '); + }); + items.push('
  • 查看更多搜索结果(约'+obj.responseData.cursor.estimatedResultCount+'条)
  • '); + $('#searchlist').html(items.join('')); + searchFinish(); + }, + beforeSend:function(){$('#searchlist').html('结果加载中');}, + error:function(){$('#searchlist').html('');Alert('检索中发现错误,请稍后重试或直接访问');} + }); +} + +function scholarSearch(keyword){ + $.ajax({type:"POST",url:"/service/scholarsearch",data:'q='+keyword, + success:function(html){ + //$('#searchlist').html(html);return false; + var items = []; + var obj = jQuery.parseJSON(html); + if(obj.error != '') + { + items.push('
  • ' + obj.error + '
  • '); + }else{ + $.each(obj.result, function(key, val) { + var html = val['title'] + +'

    ' + +val['content'] + +'

    '; + items.push('
  • ' + html + '
  • '); + }); + } + items.push('
  • 查看更多搜索结果'); + $('#literature-list').html(items.join('')); + searchFinish(); + }, + beforeSend:function(){$('#literature-list').html('结果加载中');}, + error:function(){$('#literature-list').html('');Alert('检索中发现错误,请稍后重试或直接访问');} + }); +} + +function cnkiSearch(keyword){ + $.ajax({type:"POST",url:"/service/cnkisearch",data:'q='+keyword, + success:function(html){ + var items = []; + var obj = jQuery.parseJSON(html); + if(obj.error != '') + { + items.push('
  • ' + obj.error + '
  • '); + }else{ + $.each(obj.result, function(key, val) { + var html = '

    '+val['title']+'

    ' + +val['url'].replace(/%(.*)/i,"") +'

    ' + +val['content'] + +'

    '; + + items.push('
  • ' + html + '
  • '); + }); + } + items.push('
  • 查看更多搜索结果'); + $('#literature-list').html(items.join('')); + searchFinish() + }, + beforeSend:function(){$('#literature-list').html('结果加载中');}, + error:function(){Alert('检索中发现错误,请稍后重试或直接访问');$('#literature-list').html('');} + }); +} + +function searchFinish() +{ + $('html, body').animate({scrollTop:$('#gsearch_t').offset().top}, 'slow'); +} + +function dataVersion(uuid) +{ + $.ajax({ + 'type':"POST", + 'url':'/data/getversion', + 'data':'ac=list&uuid='+uuid, + 'success':onDataVersionLoad, + 'timeout': 30000, + 'error': function(){Alert('处理中出现错误,请刷新页面后重试');return false;} + }); + +} +function onDataVersionLoad(data){ + if (typeof(data)=='object') + { + if(typeof(data.error)!='undefined') + {Alert(data.error);return false;} + if(typeof(data.list)!='undefined') + { + var html = ""; + for(v in data.list) + { + html+='
  • '+data.list[v].changelog+'

    '+data.list[v].ts_created+' by '+data.list[v].username+'

  • '; + } + $.colorbox({'innerWidth':'50%','innerHeight':'80%','html':'
    '}); + } + } + else{ + Alert('出现错误,请稍后再试');return false; + } +} + +function Alert(html){ + $.colorbox({'innerWidth':'50%','html':'

    '+html+'

    '}); } \ No newline at end of file