Showing
6 changed files
with
135 additions
and
2 deletions
| @@ -38,6 +38,17 @@ class EmptyController extends Common{ | @@ -38,6 +38,17 @@ class EmptyController extends Common{ | ||
| 38 | } | 38 | } |
| 39 | $this->assign('options',$optionsarr); | 39 | $this->assign('options',$optionsarr); |
| 40 | } | 40 | } |
| 41 | + //下载页面 | ||
| 42 | + if(DBNAME=='downapp'){ | ||
| 43 | + //手机 | ||
| 44 | + $Mobile = db('android')->where(array('flag'=>1))->order('version desc')->limit(1)->select(); | ||
| 45 | + //ipad | ||
| 46 | + $IPad = db('android')->where(array('flag'=>2))->order('version desc')->limit(1)->select(); | ||
| 47 | + $Mobile=is_array($Mobile) ? $Mobile: NULL; | ||
| 48 | + $IPad=is_array($IPad) ? $IPad: NULL; | ||
| 49 | + $link = array($Mobile[0]['file_url'],$IPad[0]['file_url']); | ||
| 50 | + $this->assign('link',$link); | ||
| 51 | + } | ||
| 41 | $arrchildid = db('category')->where(['id'=>input('catId')])->value('arrchildid'); | 52 | $arrchildid = db('category')->where(['id'=>input('catId')])->value('arrchildid'); |
| 42 | $map = ' '; | 53 | $map = ' '; |
| 43 | if($arrchildid!=input('catId')){ | 54 | if($arrchildid!=input('catId')){ |
| @@ -6,7 +6,7 @@ class Index extends Common{ | @@ -6,7 +6,7 @@ class Index extends Common{ | ||
| 6 | parent::initialize(); | 6 | parent::initialize(); |
| 7 | } | 7 | } |
| 8 | public function index(){ | 8 | public function index(){ |
| 9 | - return redirect('http://xt03.colorcun.com/admin'); | 9 | + //return redirect('http://xt03.colorcun.com/admin'); |
| 10 | $order = input('order','createtime'); | 10 | $order = input('order','createtime'); |
| 11 | $time = time(); | 11 | $time = time(); |
| 12 | $list=db('article')->alias('a') | 12 | $list=db('article')->alias('a') |
application/home/view/downapp_list.html
0 → 100644
| 1 | +<!DOCTYPE html> | ||
| 2 | +<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]--> | ||
| 3 | +<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="zh-cn"> <![endif]--> | ||
| 4 | +<!--[if IE 8]> <html class="no-js lt-ie9" lang="zh-cn"> <![endif]--> | ||
| 5 | +<!--[if gt IE 8]><!--> <html class="no-js" lang="zh-cn"> <!--<![endif]--> | ||
| 6 | +<head> | ||
| 7 | + <meta charset="utf-8" /> | ||
| 8 | + <meta name="viewport" content="width=device-width" /> | ||
| 9 | + <title>{$info['title']??($title ? $title : $sys.title)}</title> | ||
| 10 | + <meta name="keywords" content="{$info['keywords']??($keywords ? $keywords : $sys.key)}" /> | ||
| 11 | + <meta name="description" content="{$info['description']??($description ? $description : $sys.des)}" /> | ||
| 12 | + <!-- ////////////////////////////////// --> | ||
| 13 | + <!-- // Stylesheets Files // --> | ||
| 14 | + <!-- ////////////////////////////////// --> | ||
| 15 | + <link rel="stylesheet" href="/static/home/css/base.css" id="camera-css" /> | ||
| 16 | + <link rel="stylesheet" href="/static/home/css/framework.css" /> | ||
| 17 | + <link rel="stylesheet" href="/static/home/css/style.css" /> | ||
| 18 | + <link rel="stylesheet" href="/static/home/css/noscript.css" media="screen,all" id="noscript" /> | ||
| 19 | + | ||
| 20 | + <!-- ////////////////////////////////// --> | ||
| 21 | + <!-- // Favicon Files // --> | ||
| 22 | + <!-- ////////////////////////////////// --> | ||
| 23 | + | ||
| 24 | + <!-- ////////////////////////////////// --> | ||
| 25 | + <!-- // Javascript Files // --> | ||
| 26 | + <!-- ////////////////////////////////// --> | ||
| 27 | + <script> | ||
| 28 | + var HOME = '/static/home'; | ||
| 29 | + </script> | ||
| 30 | + <!-- IE Fix for HTML5 Tags --> | ||
| 31 | + <!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> | ||
| 32 | + <![endif]--> | ||
| 33 | + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||
| 34 | +</head> | ||
| 35 | +<!-- pagetitle start here --> | ||
| 36 | +<section id="pagetitle-wrapper"> | ||
| 37 | + <div class="pagetitle-content"> | ||
| 38 | + <h2>{$title}</h2> | ||
| 39 | + </div> | ||
| 40 | +</section> | ||
| 41 | +<!-- pagetitle end here --> | ||
| 42 | +<!-- maincontent start here --> | ||
| 43 | + <ul class="popular-list"> | ||
| 44 | + <li > | ||
| 45 | + <p class="author-name"> | ||
| 46 | + <a style="text-align:center;font-style: normal;border: 1px solid #eee;" href="{$link.0}">手机下载</a> | ||
| 47 | + </p> | ||
| 48 | + </li> | ||
| 49 | + </ul> | ||
| 50 | + <ul class="popular-list"> | ||
| 51 | + <li> | ||
| 52 | + <p class="author-name"> | ||
| 53 | + <a style="font-style: normal;border: 1px solid #eee;" href="{$link.1}">平板下载</a> | ||
| 54 | + </p> | ||
| 55 | + </li> | ||
| 56 | + </ul> | ||
| 57 | +<!-- maincontent end here --> |
| @@ -30,6 +30,18 @@ class EmptyController extends Common{ | @@ -30,6 +30,18 @@ class EmptyController extends Common{ | ||
| 30 | } | 30 | } |
| 31 | $this->assign('options',$optionsarr); | 31 | $this->assign('options',$optionsarr); |
| 32 | } | 32 | } |
| 33 | + //下载页面 | ||
| 34 | + if(DBNAME=='downapp'){ | ||
| 35 | + //手机 | ||
| 36 | + $Mobile = db('android')->where(array('flag'=>1))->order('version desc')->limit(1)->select(); | ||
| 37 | + //ipad | ||
| 38 | + $IPad = db('android')->where(array('flag'=>2))->order('version desc')->limit(1)->select(); | ||
| 39 | + $Mobile=is_array($Mobile) ? $Mobile: NULL; | ||
| 40 | + $IPad=is_array($IPad) ? $IPad: NULL; | ||
| 41 | + $link = array(array('name'=>'手机下载','link'=>$Mobile[0]['file_url']),array('name'=>'平板下载','link'=>$IPad[0]['file_url'])); | ||
| 42 | + $this->assign('title','应用下载'); | ||
| 43 | + $this->assign('link',$link); | ||
| 44 | + } | ||
| 33 | $map['catid'] = input('catId'); | 45 | $map['catid'] = input('catId'); |
| 34 | if(DBNAME=='team'){ | 46 | if(DBNAME=='team'){ |
| 35 | $donation = db('donation')->order('id desc')->paginate($this->pagesize); | 47 | $donation = db('donation')->order('id desc')->paginate($this->pagesize); |
| @@ -6,7 +6,6 @@ class Index extends Common{ | @@ -6,7 +6,6 @@ class Index extends Common{ | ||
| 6 | parent::initialize(); | 6 | parent::initialize(); |
| 7 | } | 7 | } |
| 8 | public function index(){ | 8 | public function index(){ |
| 9 | - return redirect('http://www.cltphp.com/admin'); | ||
| 10 | return view(); | 9 | return view(); |
| 11 | } | 10 | } |
| 12 | } | 11 | } |
application/mobile/view/downapp/list.html
0 → 100644
| 1 | +{include file="common/head"/} | ||
| 2 | +<body> | ||
| 3 | +<!-- Main Container --> | ||
| 4 | +<div id="main" class="main"> | ||
| 5 | + <!-- End of Toolbar --> | ||
| 6 | + | ||
| 7 | + <!-- Page Contents --> | ||
| 8 | + <!-- Page Contents --> | ||
| 9 | + <div class="animated fadeinup"> | ||
| 10 | + <div class="hero-material animated fadeindown"> | ||
| 11 | + <div class="parallax primary-color"> | ||
| 12 | + <div class="banner-title">{$title}</div> | ||
| 13 | + </div> | ||
| 14 | + </div> | ||
| 15 | + <!-- Testimonials Slider --> | ||
| 16 | + <!-- Slider --> | ||
| 17 | + <div class="swiper-container testimonials"> | ||
| 18 | + <div class="swiper-wrapper"> | ||
| 19 | + {volist name="$link" id="vo"} | ||
| 20 | + <a href="{$vo.link}" style="margin:40px;" class="system">{$vo.name}</a> | ||
| 21 | + {/volist} | ||
| 22 | + </div> | ||
| 23 | + <!-- Add Pagination --> | ||
| 24 | + </div> | ||
| 25 | + <!-- End of Slider --> | ||
| 26 | + <!-- Footer --> | ||
| 27 | + <footer class="page-footer primary-color"> | ||
| 28 | + <div class="section center"> | ||
| 29 | + <h2 class="heading white-text">{$sys.title}</h2> | ||
| 30 | + </div> | ||
| 31 | + <div class="footer-copyright"> | ||
| 32 | + <div class="container center"> | ||
| 33 | + <span>Made with <i class="ion-ios-heart"></i> by ThinkPHP</span> | ||
| 34 | + </div> | ||
| 35 | + </div> | ||
| 36 | + </footer> | ||
| 37 | + </div> | ||
| 38 | + <!-- End of Page Contents --> | ||
| 39 | +</div> | ||
| 40 | +</body> | ||
| 41 | +<script src="/static/home/js/jquery.min.js"></script> | ||
| 42 | +<script language="javascript"> | ||
| 43 | +window.onload = function () { | ||
| 44 | + $('.system').on('click',function(){ | ||
| 45 | + var u = navigator.userAgent; | ||
| 46 | + if (u.indexOf('iPhone') > -1) { | ||
| 47 | + alert("苹果系统暂未开放下载");$('.system').attr('href','javascript:;'); | ||
| 48 | + } else if (u.indexOf('Windows Phone') > -1) { | ||
| 49 | + alert("WP暂未开放下载");$('.system').attr('href','javascript:;'); | ||
| 50 | + } | ||
| 51 | + }) | ||
| 52 | +} | ||
| 53 | +</script> | ||
| 54 | +</html> |
-
Please register or login to post a comment