Commit 54b28d20013ec99db290b9f782656540169e0c0d

Authored by u123231312
1 parent c93931de

pc 支持安卓下载

... ... @@ -38,6 +38,17 @@ class EmptyController extends Common{
}
$this->assign('options',$optionsarr);
}
//下载页面
if(DBNAME=='downapp'){
//手机
$Mobile = db('android')->where(array('flag'=>1))->order('version desc')->limit(1)->select();
//ipad
$IPad = db('android')->where(array('flag'=>2))->order('version desc')->limit(1)->select();
$Mobile=is_array($Mobile) ? $Mobile: NULL;
$IPad=is_array($IPad) ? $IPad: NULL;
$link = array($Mobile[0]['file_url'],$IPad[0]['file_url']);
$this->assign('link',$link);
}
$arrchildid = db('category')->where(['id'=>input('catId')])->value('arrchildid');
$map = ' ';
if($arrchildid!=input('catId')){
... ...
... ... @@ -6,7 +6,7 @@ class Index extends Common{
parent::initialize();
}
public function index(){
return redirect('http://xt03.colorcun.com/admin');
//return redirect('http://xt03.colorcun.com/admin');
$order = input('order','createtime');
$time = time();
$list=db('article')->alias('a')
... ...
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="zh-cn"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" lang="zh-cn"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="zh-cn"> <!--<![endif]-->
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>{$info['title']??($title ? $title : $sys.title)}</title>
<meta name="keywords" content="{$info['keywords']??($keywords ? $keywords : $sys.key)}" />
<meta name="description" content="{$info['description']??($description ? $description : $sys.des)}" />
<!-- ////////////////////////////////// -->
<!-- // Stylesheets Files // -->
<!-- ////////////////////////////////// -->
<link rel="stylesheet" href="/static/home/css/base.css" id="camera-css" />
<link rel="stylesheet" href="/static/home/css/framework.css" />
<link rel="stylesheet" href="/static/home/css/style.css" />
<link rel="stylesheet" href="/static/home/css/noscript.css" media="screen,all" id="noscript" />
<!-- ////////////////////////////////// -->
<!-- // Favicon Files // -->
<!-- ////////////////////////////////// -->
<!-- ////////////////////////////////// -->
<!-- // Javascript Files // -->
<!-- ////////////////////////////////// -->
<script>
var HOME = '/static/home';
</script>
<!-- IE Fix for HTML5 Tags -->
<!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<!-- pagetitle start here -->
<section id="pagetitle-wrapper">
<div class="pagetitle-content">
<h2>{$title}</h2>
</div>
</section>
<!-- pagetitle end here -->
<!-- maincontent start here -->
<ul class="popular-list">
<li >
<p class="author-name">
<a style="text-align:center;font-style: normal;border: 1px solid #eee;" href="{$link.0}">手机下载</a>
</p>
</li>
</ul>
<ul class="popular-list">
<li>
<p class="author-name">
<a style="font-style: normal;border: 1px solid #eee;" href="{$link.1}">平板下载</a>
</p>
</li>
</ul>
<!-- maincontent end here -->
\ No newline at end of file
... ...
... ... @@ -30,6 +30,18 @@ class EmptyController extends Common{
}
$this->assign('options',$optionsarr);
}
//下载页面
if(DBNAME=='downapp'){
//手机
$Mobile = db('android')->where(array('flag'=>1))->order('version desc')->limit(1)->select();
//ipad
$IPad = db('android')->where(array('flag'=>2))->order('version desc')->limit(1)->select();
$Mobile=is_array($Mobile) ? $Mobile: NULL;
$IPad=is_array($IPad) ? $IPad: NULL;
$link = array(array('name'=>'手机下载','link'=>$Mobile[0]['file_url']),array('name'=>'平板下载','link'=>$IPad[0]['file_url']));
$this->assign('title','应用下载');
$this->assign('link',$link);
}
$map['catid'] = input('catId');
if(DBNAME=='team'){
$donation = db('donation')->order('id desc')->paginate($this->pagesize);
... ...
... ... @@ -6,7 +6,6 @@ class Index extends Common{
parent::initialize();
}
public function index(){
return redirect('http://www.cltphp.com/admin');
return view();
}
}
\ No newline at end of file
... ...
{include file="common/head"/}
<body>
<!-- Main Container -->
<div id="main" class="main">
<!-- End of Toolbar -->
<!-- Page Contents -->
<!-- Page Contents -->
<div class="animated fadeinup">
<div class="hero-material animated fadeindown">
<div class="parallax primary-color">
<div class="banner-title">{$title}</div>
</div>
</div>
<!-- Testimonials Slider -->
<!-- Slider -->
<div class="swiper-container testimonials">
<div class="swiper-wrapper">
{volist name="$link" id="vo"}
<a href="{$vo.link}" style="margin:40px;" class="system">{$vo.name}</a>
{/volist}
</div>
<!-- Add Pagination -->
</div>
<!-- End of Slider -->
<!-- Footer -->
<footer class="page-footer primary-color">
<div class="section center">
<h2 class="heading white-text">{$sys.title}</h2>
</div>
<div class="footer-copyright">
<div class="container center">
<span>Made with <i class="ion-ios-heart"></i> by ThinkPHP</span>
</div>
</div>
</footer>
</div>
<!-- End of Page Contents -->
</div>
</body>
<script src="/static/home/js/jquery.min.js"></script>
<script language="javascript">
window.onload = function () {
$('.system').on('click',function(){
var u = navigator.userAgent;
if (u.indexOf('iPhone') > -1) {
alert("苹果系统暂未开放下载");$('.system').attr('href','javascript:;');
} else if (u.indexOf('Windows Phone') > -1) {
alert("WP暂未开放下载");$('.system').attr('href','javascript:;');
}
})
}
</script>
</html>
... ...