林一峰
8 years ago
41 changed files with 1393 additions and 331 deletions
-
63app/Common/function.php
-
138app/Http/Controllers/Admin/ProductController.php
-
76app/Http/Controllers/Admin/ProducttypeController.php
-
197app/Http/Controllers/Home/IndexController.php
-
1app/Http/Model/Arctype.php
-
14app/Http/Model/Friendlink.php
-
14app/Http/Model/Guestbook.php
-
14app/Http/Model/Keyword.php
-
14app/Http/Model/Page.php
-
43app/Http/Model/Product.php
-
13app/Http/Model/ProductPic.php
-
26app/Http/Model/ProductType.php
-
35app/Http/Model/Searchword.php
-
12app/Http/Model/Slide.php
-
2app/Http/Model/Sysconfig.php
-
35app/Http/Model/Tagindex.php
-
12app/Http/Model/Taglist.php
-
2app/Http/Model/User.php
-
2app/Http/Model/UserRole.php
-
2resources/views/admin/common/leftmenu.blade.php
-
16resources/views/admin/product/add.blade.php
-
36resources/views/admin/product/edit.blade.php
-
28resources/views/admin/product/index.blade.php
-
95resources/views/admin/producttype/add.blade.php
-
115resources/views/admin/producttype/edit.blade.php
-
12resources/views/admin/producttype/index.blade.php
-
1resources/views/home/common/footer.blade.php
-
1resources/views/home/common/header.blade.php
-
62resources/views/home/index/category.blade.php
-
57resources/views/home/index/category2.blade.php
-
60resources/views/home/index/detail.blade.php
-
70resources/views/home/index/index.blade.php
-
171resources/views/home/index/login.blade.php
-
8resources/views/home/index/page.blade.php
-
35resources/views/home/index/search.blade.php
-
9resources/views/home/index/sitemap.blade.php
-
62resources/views/home/index/tag.blade.php
-
58resources/views/home/index/tag2.blade.php
-
57resources/views/home/index/tag3.blade.php
-
7resources/views/home/index/tags.blade.php
-
49routes/web.php
@ -0,0 +1,14 @@ |
|||
<?php |
|||
namespace App\Http\Model; |
|||
|
|||
use Illuminate\Database\Eloquent\Model; |
|||
|
|||
class Friendlink extends Model |
|||
{ |
|||
//友情链接
|
|||
|
|||
protected $table = 'friendlink'; |
|||
public $timestamps = false; |
|||
protected $guarded = []; //$guarded包含你不想被赋值的字段数组。
|
|||
|
|||
} |
@ -0,0 +1,14 @@ |
|||
<?php |
|||
namespace App\Http\Model; |
|||
|
|||
use Illuminate\Database\Eloquent\Model; |
|||
|
|||
class Guestbook extends Model |
|||
{ |
|||
//在线留言
|
|||
|
|||
protected $table = 'guestbook'; |
|||
public $timestamps = false; |
|||
protected $guarded = []; //$guarded包含你不想被赋值的字段数组。
|
|||
|
|||
} |
@ -0,0 +1,14 @@ |
|||
<?php |
|||
namespace App\Http\Model; |
|||
|
|||
use Illuminate\Database\Eloquent\Model; |
|||
|
|||
class Keyword extends Model |
|||
{ |
|||
//内链关键词
|
|||
|
|||
protected $table = 'keyword'; |
|||
public $timestamps = false; |
|||
protected $guarded = []; //$guarded包含你不想被赋值的字段数组。
|
|||
|
|||
} |
@ -0,0 +1,14 @@ |
|||
<?php |
|||
namespace App\Http\Model; |
|||
|
|||
use Illuminate\Database\Eloquent\Model; |
|||
|
|||
class Page extends Model |
|||
{ |
|||
//单页模型
|
|||
|
|||
protected $table = 'page'; |
|||
public $timestamps = false; |
|||
protected $guarded = []; //$guarded包含你不想被赋值的字段数组。
|
|||
|
|||
} |
@ -0,0 +1,43 @@ |
|||
<?php |
|||
namespace App\Http\Model; |
|||
|
|||
use Illuminate\Database\Eloquent\Model; |
|||
|
|||
class Product extends Model |
|||
{ |
|||
//产品模型
|
|||
|
|||
/** |
|||
* 关联到模型的数据表 |
|||
* |
|||
* @var string |
|||
*/ |
|||
protected $table = 'product'; |
|||
|
|||
/** |
|||
* 表明模型是否应该被打上时间戳 |
|||
* 默认情况下,Eloquent 期望 created_at 和updated_at 已经存在于数据表中,如果你不想要这些 Laravel 自动管理的数据列,在模型类中设置 $timestamps 属性为 false |
|||
* |
|||
* @var bool |
|||
*/ |
|||
public $timestamps = false; |
|||
|
|||
//protected $guarded = []; //$guarded包含你不想被赋值的字段数组。
|
|||
//protected $fillable = ['name']; //定义哪些字段是可以进行赋值的,与$guarded相反
|
|||
|
|||
/** |
|||
* The connection name for the model. |
|||
* 默认情况下,所有的 Eloquent 模型使用应用配置中的默认数据库连接,如果你想要为模型指定不同的连接,可以通过 $connection 属性来设置 |
|||
* @var string |
|||
*/ |
|||
//protected $connection = 'connection-name';
|
|||
|
|||
/** |
|||
* 获取关联到产品的分类 |
|||
*/ |
|||
public function producttype() |
|||
{ |
|||
return $this->belongsTo(ProductType::class, 'typeid', 'id'); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,13 @@ |
|||
<?php |
|||
namespace App\Http\Model; |
|||
|
|||
use Illuminate\Database\Eloquent\Model; |
|||
|
|||
class ProductPic extends Model |
|||
{ |
|||
//产品图片
|
|||
|
|||
protected $table = 'product_pic'; |
|||
public $timestamps = false; |
|||
|
|||
} |
@ -0,0 +1,26 @@ |
|||
<?php |
|||
namespace App\Http\Model; |
|||
|
|||
use Illuminate\Database\Eloquent\Model; |
|||
|
|||
class ProductType extends Model |
|||
{ |
|||
//产品分类模型
|
|||
|
|||
/** |
|||
* 关联到模型的数据表 |
|||
* |
|||
* @var string |
|||
*/ |
|||
protected $table = 'product_type'; |
|||
public $timestamps = false; |
|||
|
|||
/** |
|||
* 获取分类对应的产品 |
|||
*/ |
|||
public function product() |
|||
{ |
|||
return $this->hasMany(ProductType::class, 'typeid', 'id'); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,35 @@ |
|||
<?php |
|||
namespace App\Http\Model; |
|||
|
|||
use Illuminate\Database\Eloquent\Model; |
|||
|
|||
class Searchword extends Model |
|||
{ |
|||
//搜索关键词模型
|
|||
|
|||
/** |
|||
* 关联到模型的数据表 |
|||
* |
|||
* @var string |
|||
*/ |
|||
protected $table = 'searchword'; |
|||
|
|||
/** |
|||
* 表明模型是否应该被打上时间戳 |
|||
* 默认情况下,Eloquent 期望 created_at 和updated_at 已经存在于数据表中,如果你不想要这些 Laravel 自动管理的数据列,在模型类中设置 $timestamps 属性为 false |
|||
* |
|||
* @var bool |
|||
*/ |
|||
public $timestamps = false; |
|||
|
|||
//protected $guarded = []; //$guarded包含你不想被赋值的字段数组。
|
|||
//protected $fillable = ['name']; //定义哪些字段是可以进行赋值的,与$guarded相反
|
|||
|
|||
/** |
|||
* The connection name for the model. |
|||
* 默认情况下,所有的 Eloquent 模型使用应用配置中的默认数据库连接,如果你想要为模型指定不同的连接,可以通过 $connection 属性来设置 |
|||
* @var string |
|||
*/ |
|||
//protected $connection = 'connection-name';
|
|||
|
|||
} |
@ -0,0 +1,12 @@ |
|||
<?php |
|||
namespace App\Http\Model; |
|||
|
|||
use Illuminate\Database\Eloquent\Model; |
|||
|
|||
class Slide extends Model |
|||
{ |
|||
protected $table = 'slide'; |
|||
public $timestamps = false; |
|||
protected $guarded = []; //$guarded包含你不想被赋值的字段数组。
|
|||
|
|||
} |
@ -0,0 +1,35 @@ |
|||
<?php |
|||
namespace App\Http\Model; |
|||
|
|||
use Illuminate\Database\Eloquent\Model; |
|||
|
|||
class Tagindex extends Model |
|||
{ |
|||
//Tag标签模型
|
|||
|
|||
/** |
|||
* 关联到模型的数据表 |
|||
* |
|||
* @var string |
|||
*/ |
|||
protected $table = 'tagindex'; |
|||
|
|||
/** |
|||
* 表明模型是否应该被打上时间戳 |
|||
* 默认情况下,Eloquent 期望 created_at 和updated_at 已经存在于数据表中,如果你不想要这些 Laravel 自动管理的数据列,在模型类中设置 $timestamps 属性为 false |
|||
* |
|||
* @var bool |
|||
*/ |
|||
public $timestamps = false; |
|||
|
|||
//protected $guarded = []; //$guarded包含你不想被赋值的字段数组。
|
|||
//protected $fillable = ['name']; //定义哪些字段是可以进行赋值的,与$guarded相反
|
|||
|
|||
/** |
|||
* The connection name for the model. |
|||
* 默认情况下,所有的 Eloquent 模型使用应用配置中的默认数据库连接,如果你想要为模型指定不同的连接,可以通过 $connection 属性来设置 |
|||
* @var string |
|||
*/ |
|||
//protected $connection = 'connection-name';
|
|||
|
|||
} |
@ -0,0 +1,12 @@ |
|||
<?php |
|||
namespace App\Http\Model; |
|||
|
|||
use Illuminate\Database\Eloquent\Model; |
|||
|
|||
class Taglist extends Model |
|||
{ |
|||
protected $table = 'taglist'; |
|||
public $timestamps = false; |
|||
protected $guarded = []; //$guarded包含你不想被赋值的字段数组。
|
|||
|
|||
} |
@ -0,0 +1 @@ |
|||
<div id="footer" class="box">©<?php echo sysconfig('CMS_WEBNAME'); ?> 部分文章来源于网络,如果侵犯了您的权益,请<a href="<?php echo sysconfig('CMS_BASEHOST'); ?>/contact.html">联系我们</a>。<a target="_blank" href="<?php echo sysconfig('CMS_BASEHOST'); ?>/sitemap.xml">网站地图</a><div class="m-auto"><script>count_js();</script></div></div>
|
@ -0,0 +1 @@ |
|||
<div id="header"><div id="navlink" class="box"><a class="webname" href="<?php echo sysconfig('CMS_BASEHOST'); ?>/"><?php echo sysconfig('CMS_WEBNAME'); ?></a><span class="nav"><a href="<?php echo sysconfig('CMS_BASEHOST'); ?>/cat1">笔记本电脑知识</a><a href="<?php echo sysconfig('CMS_BASEHOST'); ?>/cat2">笔记本推荐</a><a href="<?php echo sysconfig('CMS_BASEHOST'); ?>/cat3">笔记本系统</a><script>navjs();</script></span><form method="get" target="_blank" class="m-sch fr" name="formsearch" action="<?php echo sysconfig('CMS_BASEHOST'); ?>/plus/search.php"><input class="sch-txt" name="q" type="text" value="搜索 按Enter键" onfocus="if(value=='搜索 按Enter键') {value=''}" onblur="if(value=='') {value='搜索 按Enter键'}"></form><div class="cl"></div></div></div>
|
@ -0,0 +1,62 @@ |
|||
<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /><meta http-equiv="Cache-Control" content="no-siteapp" /><meta http-equiv="Cache-Control" content="no-transform" /><meta name="mobile-agent" content="format=xhtml;url=http://m.bnbni.com<?php echo GetCurUrl(); ?>"> |
|||
<title><?php echo $post['seotitle'];if($page!=0){echo ' '.($page+1);} ?></title><meta name="keywords" content="<?php echo $post["keywords"]; ?>" /><meta name="description" content="<?php echo $post["description"]; ?>" /><link rel="stylesheet" href="<?php echo CMS_BASEHOST; ?>/images/style.css" media="all"><script type="text/javascript" src="<?php echo CMS_BASEHOST; ?>/js/jquery.min.js"></script><script type="text/javascript" src="<?php echo CMS_BASEHOST; ?>/js/ad.js"></script><script>uaredirect("http://m.bnbni.com/cat{dede:type}[field:ID /]{/dede:type}");</script></head><body><script>site();</script>
|
|||
@include('home.common.header')<div id="tad"><script>tjs();</script></div> |
|||
|
|||
<div class="box mt10"><div class="fl_640"><div class="zinfo"><h1><?php echo $post['typename']; ?></h1><?php if(!empty($post['content'])){echo '<div class="zdes">'.$post['content'].'</div>';} ?></div><div id="lad1"><script>ljs1();</script></div>
|
|||
|
|||
<?php if(!empty($posts)){foreach($posts as $row){ ?><div class="list"><?php if(!empty($row['litpic'])){ ?><a class="limg" href="<?php echo get_front_url(array("id"=>$row['id'],"catid"=>$row['typeid'],"type"=>'content')); ?>"><img alt="<?php echo $row['title']; ?>" src="<?php echo $row['litpic']; ?>"></a><?php } ?>
|
|||
<strong class="tit"><a href="<?php echo get_front_url(array("id"=>$row['id'],"catid"=>$row['typeid'],"type"=>'content')); ?>" target="_blank"><?php echo $row['title']; ?></a></strong><p><?php echo mb_strcut($row['description'],0,150,'UTF-8'); ?>..</p>
|
|||
<div class="info"><span class="fl"><em><?php echo date("m-d H:i",$row['pubdate']); ?></em></span><span class="fr"><em><?php echo $row['click']; ?></em>人阅读</span></div><div class="cl"></div></div><?php }} ?><div id="lad2"><script>ljs2();</script></div>
|
|||
|
|||
<div class="pages"><ul><?php echo $pagenav; ?></ul><div class="cl"></div></div><div id="lad3"><script>ljs3();</script></div></div><!-- fl_640 end -->
|
|||
|
|||
<div class="fr_300"><div id="rad1"><script>rjs1();</script></div> |
|||
<div class="side"><div class="stit"><h3>热门文章</h3><a href="javascript:getmore({PageSize:5,typeid:<?php echo $post['id']; ?>,tuijian:1,mode:1,orderby:'rand()'});" class="more">换一换</a><div class="cl"></div></div> |
|||
<ul class="uli chs" id="xglist"><?php $posts=arclist(array("row"=>5,"typeid"=>$post['id'],"tuijian"=>1));foreach($posts as $row){ ?><li><a target="_blank" href="<?php echo get_front_url(array("id"=>$row['id'],"catid"=>$row['typeid'],"type"=>'content')); ?>"><?php echo $row['title']; ?></a></li><?php } ?></ul><div class="cl"></div></div>
|
|||
|
|||
<div id="rad3"><script>rjs3();</script></div> |
|||
<div class="side"><div class="stit"><h3>猜你喜欢</h3><a href="javascript:getmore({PageSize:5,typeid:<?php echo $post['id']; ?>,mode:2,orderby:'rand()'});" class="more">换一换</a><div class="cl"></div></div> |
|||
<div class="uli2" id="xglike"><?php $posts=arclist(array("row"=>5,"typeid"=>$post['id'],"orderby"=>'rand()'));foreach($posts as $row){ ?><div class="suli"><?php if(!empty($row['litpic'])){ ?><a class="limg" href="<?php echo get_front_url(array("id"=>$row['id'],"catid"=>$row['typeid'],"type"=>'content')); ?>"><img alt="<?php echo $row['title']; ?>" src="<?php echo $row['litpic']; ?>"></a><?php } ?><a target="_blank" href="<?php echo get_front_url(array("id"=>$row['id'],"catid"=>$row['typeid'],"type"=>'content')); ?>"><?php echo $row['title']; ?></a><div class="sulii"><?php if(!empty($row['writer'])){echo '<span class="time">'.$row['writer'].'</span>';}elseif(!empty($row['source'])){echo '<span class="time">'.$row['source'].'</span>';} ?> 阅读(<?php echo $row['click']; ?>)</div><div class="cl"></div></div><?php } ?><div class="cl"></div></div></div>
|
|||
|
|||
<div id="rad2"><script>rjs2();</script></div></div><!-- fr_300 end --></div><!-- box end --> |
|||
<script> |
|||
function getmore(condition) |
|||
{ |
|||
var url = "<?php echo CMS_BASEHOST; ?>/api/listarc"; |
|||
//var typeid = "";
|
|||
$.post(url,condition,function(res){ |
|||
if(res.code==0) |
|||
{ |
|||
var json = res.data; //数组
|
|||
var str = ''; |
|||
$.each(json, function (index) { |
|||
//循环获取数据
|
|||
//var title = json[index].title;
|
|||
if(condition.mode==1) |
|||
{ |
|||
str = str + '<li><a target="_blank" href="'+json[index].url+'">'+json[index].title+'</a></li>'; |
|||
} |
|||
else if(condition.mode==2) |
|||
{ |
|||
var litpic = '';if(json[index].litpic!==''){litpic = '<a class="limg" href="'+json[index].url+'"><img alt="'+json[index].title+'" src="'+json[index].litpic+'"></a>';} |
|||
str = str + '<div class="suli">'+litpic+'<a target="_blank" href="'+json[index].url+'">'+json[index].title+'</a><div class="sulii">阅读('+json[index].click+')</div><div class="cl"></div></div>'; |
|||
} |
|||
}); |
|||
|
|||
if(str!='' && str!=null && condition.mode==1) |
|||
{ |
|||
$('#xglist').html(str); |
|||
} |
|||
else if(str!='' && str!=null && condition.mode==2) |
|||
{ |
|||
$('#xglike').html(str); |
|||
} |
|||
} |
|||
else |
|||
{ |
|||
|
|||
} |
|||
},'json'); |
|||
} |
|||
</script> |
|||
@include('home.common.footer')</body></html> |
@ -0,0 +1,57 @@ |
|||
<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /><meta http-equiv="Cache-Control" content="no-siteapp" /><meta http-equiv="Cache-Control" content="no-transform" /><meta name="mobile-agent" content="format=xhtml;url=http://m.bnbni.com<?php echo GetCurUrl(); ?>"> |
|||
<title><?php echo $post['seotitle'];if($page!=0){echo ' '.($page+1);} ?></title><meta name="keywords" content="<?php echo $post["keywords"]; ?>" /><meta name="description" content="<?php echo $post["description"]; ?>" /><link rel="stylesheet" href="<?php echo CMS_BASEHOST; ?>/images/style.css" media="all"><script type="text/javascript" src="<?php echo CMS_BASEHOST; ?>/js/jquery.min.js"></script><script type="text/javascript" src="<?php echo CMS_BASEHOST; ?>/js/ad.js"></script><script>uaredirect("http://m.bnbni.com/cat{dede:type}[field:ID /]{/dede:type}");</script></head><body><script>site();</script>
|
|||
@include('home.common.header')<div id="tad"><script>tjs();</script></div> |
|||
|
|||
<div class="box mt10"><div class="fl_640"><h1 class="arct"><?php echo $post["typename"]; ?></h1>
|
|||
<div class="content"><?php echo $post["content"]; ?></div><div id="lad1"><script>ljs1();</script></div></div><!-- fl_640 end -->
|
|||
|
|||
<div class="fr_300"><div id="rad1"><script>rjs1();</script></div> |
|||
<div class="side"><div class="stit"><h3>热门文章</h3><a href="javascript:getmore({PageSize:5,typeid:<?php echo $post['id']; ?>,tuijian:1,mode:1,orderby:'rand()'});" class="more">换一换</a><div class="cl"></div></div> |
|||
<ul class="uli chs" id="xglist"><?php $posts=arclist(array("row"=>5,"typeid"=>$post['id'],"tuijian"=>1));foreach($posts as $row){ ?><li><a target="_blank" href="<?php echo get_front_url(array("id"=>$row['id'],"catid"=>$row['typeid'],"type"=>'content')); ?>"><?php echo $row['title']; ?></a></li><?php } ?></ul><div class="cl"></div></div>
|
|||
|
|||
<div id="rad3"><script>rjs3();</script></div> |
|||
<div class="side"><div class="stit"><h3>猜你喜欢</h3><a href="javascript:getmore({PageSize:5,typeid:<?php echo $post['id']; ?>,mode:2,orderby:'rand()'});" class="more">换一换</a><div class="cl"></div></div> |
|||
<div class="uli2" id="xglike"><?php $posts=arclist(array("row"=>5,"typeid"=>$post['id'],"orderby"=>'rand()'));foreach($posts as $row){ ?><div class="suli"><?php if(!empty($row['litpic'])){ ?><a class="limg" href="<?php echo get_front_url(array("id"=>$row['id'],"catid"=>$row['typeid'],"type"=>'content')); ?>"><img alt="<?php echo $row['title']; ?>" src="<?php echo $row['litpic']; ?>"></a><?php } ?><a target="_blank" href="<?php echo get_front_url(array("id"=>$row['id'],"catid"=>$row['typeid'],"type"=>'content')); ?>"><?php echo $row['title']; ?></a><div class="sulii"><?php if(!empty($row['writer'])){echo '<span class="time">'.$row['writer'].'</span>';}elseif(!empty($row['source'])){echo '<span class="time">'.$row['source'].'</span>';} ?> 阅读(<?php echo $row['click']; ?>)</div><div class="cl"></div></div><?php } ?><div class="cl"></div></div></div>
|
|||
|
|||
<div id="rad2"><script>rjs2();</script></div></div><!-- fr_300 end --></div><!-- box end --> |
|||
<script> |
|||
function getmore(condition) |
|||
{ |
|||
var url = "<?php echo CMS_BASEHOST; ?>/api/listarc"; |
|||
//var typeid = "";
|
|||
$.post(url,condition,function(res){ |
|||
if(res.code==0) |
|||
{ |
|||
var json = res.data; //数组
|
|||
var str = ''; |
|||
$.each(json, function (index) { |
|||
//循环获取数据
|
|||
//var title = json[index].title;
|
|||
if(condition.mode==1) |
|||
{ |
|||
str = str + '<li><a target="_blank" href="'+json[index].url+'">'+json[index].title+'</a></li>'; |
|||
} |
|||
else if(condition.mode==2) |
|||
{ |
|||
var litpic = '';if(json[index].litpic!==''){litpic = '<a class="limg" href="'+json[index].url+'"><img alt="'+json[index].title+'" src="'+json[index].litpic+'"></a>';} |
|||
str = str + '<div class="suli">'+litpic+'<a target="_blank" href="'+json[index].url+'">'+json[index].title+'</a><div class="sulii">阅读('+json[index].click+')</div><div class="cl"></div></div>'; |
|||
} |
|||
}); |
|||
|
|||
if(str!='' && str!=null && condition.mode==1) |
|||
{ |
|||
$('#xglist').html(str); |
|||
} |
|||
else if(str!='' && str!=null && condition.mode==2) |
|||
{ |
|||
$('#xglike').html(str); |
|||
} |
|||
} |
|||
else |
|||
{ |
|||
|
|||
} |
|||
},'json'); |
|||
} |
|||
</script> |
|||
@include('home.common.footer')</body></html> |
@ -0,0 +1,60 @@ |
|||
<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /><meta http-equiv="Cache-Control" content="no-siteapp" /><meta http-equiv="Cache-Control" content="no-transform" /><meta name="mobile-agent" content="format=xhtml;url=http://m.bnbni.com<?php echo GetCurUrl(); ?>"> |
|||
<title><?php if(!empty($post['seotitle'])){echo $post['seotitle'];}elseif(!empty($post['writer'])){echo $post['writertitle'].'_'.CMS_WEBNAME;}else{echo $post['title'].'_'.CMS_WEBNAME;} ?></title><meta name="keywords" content="<?php echo $post["keywords"]; ?>" /><meta name="description" content="<?php echo $post["description"]; ?>" /><link rel="stylesheet" href="<?php echo CMS_BASEHOST; ?>/images/style.css" media="all"><script type="text/javascript" src="<?php echo CMS_BASEHOST; ?>/js/jquery.min.js"></script><script type="text/javascript" src="<?php echo CMS_BASEHOST; ?>/js/ad.js"></script><script>uaredirect("http://m.bnbni.com/cat{dede:type}[field:id/]{/dede:type}/id{dede:field name='aid' /}");</script></head><body><script>site();</script>
|
|||
@include('home.common.header')<div id="tad"><script>tjs();</script></div> |
|||
|
|||
<div class="box mt10"><div class="fl_640"> |
|||
<h1 class="arct"><?php echo $post["title"]; ?></h1><div class="timely"><?php if(!empty($post['writer'])){ echo '<span id="awriter">'.$post['writer'].'</span> '; } ?><span id="atime"><?php echo date("Y-m-d H:i",$post['pubdate']); ?></span> <?php if(!empty($post['source'])){ ?><?php echo '<span id="asource">'.$post['source'].'</span> '; ?><?php } ?><span id="aclick">阅读:<?php echo $post["click"]; ?>次</span> <span id="akeyword">关键词:<?php echo $post["keywords"]; ?></span></div><div class="dad1"><script>djs1();</script></div>
|
|||
<div class="content"><?php echo $post["body"]; ?><div class="dad2"><script>djs2();</script></div>
|
|||
<div class="dinfo"><span class="fr">下一篇:<?php if($pre){ ?><a href="<?php echo get_front_url(array("id"=>$pre['id'],"catid"=>$pre["typeid"],"type"=>'content')); ?>"><?php echo $pre["title"]; ?></a><?php }else{echo '没有了';} ?></span><div class="cl"></div></div>
|
|||
</div><div class="dad3"><script>djs3(<?php echo $post["id"]; ?>);</script></div></div><!-- fl_640 end -->
|
|||
|
|||
<div class="fr_300"><div id="rad1"><script>rjs1();</script></div> |
|||
<div class="side"><div class="stit"><h3>近期文章</h3><a href="javascript:getmore({PageSize:5,typeid:<?php echo $post['typeid']; ?>,mode:1,orderby:'rand()'});" class="more">换一换</a><div class="cl"></div></div> |
|||
<ul class="uli chs" id="xglist"><?php $posts=arclist(array("row"=>5,"typeid"=>$post['typeid'],"where"=>array("id"=>array('lt',$pre['id']))));foreach($posts as $row){ ?><li><a target="_blank" href="<?php echo get_front_url(array("id"=>$row['id'],"catid"=>$row['typeid'],"type"=>'content')); ?>"><?php echo $row['title']; ?></a></li><?php } ?></ul><div class="cl"></div></div>
|
|||
|
|||
<div id="rad3"><script>rjs3();</script></div> |
|||
<div class="side"><div class="stit"><h3>猜你喜欢</h3><a href="javascript:getmore({PageSize:5,typeid:<?php echo $post['typeid']; ?>,mode:2,orderby:'rand()'});" class="more">换一换</a><div class="cl"></div></div> |
|||
<div class="uli2" id="xglike"><?php $posts=arclist(array("row"=>5,"typeid"=>$post['typeid'],"orderby"=>'rand()'));foreach($posts as $row){ ?><div class="suli"><?php if(!empty($row['litpic'])){ ?><a class="limg" href="<?php echo get_front_url(array("id"=>$row['id'],"catid"=>$row['typeid'],"type"=>'content')); ?>"><img alt="<?php echo $row['title']; ?>" src="<?php echo $row['litpic']; ?>"></a><?php } ?><a target="_blank" href="<?php echo get_front_url(array("id"=>$row['id'],"catid"=>$row['typeid'],"type"=>'content')); ?>"><?php echo $row['title']; ?></a><div class="sulii"><?php if(!empty($row['writer'])){echo '<span class="time">'.$row['writer'].'</span>';}elseif(!empty($row['source'])){echo '<span class="time">'.$row['source'].'</span>';} ?> 阅读(<?php echo $row['click']; ?>)</div><div class="cl"></div></div><?php } ?><div class="cl"></div></div></div>
|
|||
|
|||
<div id="rad2"><script>rjs2();</script></div></div><!-- fr_300 end --></div><!-- box end --> |
|||
<script> |
|||
function getmore(condition) |
|||
{ |
|||
var url = "<?php echo CMS_BASEHOST; ?>/api/listarc"; |
|||
//var typeid = "";
|
|||
$.post(url,condition,function(res){ |
|||
if(res.code==0) |
|||
{ |
|||
var json = res.data; //数组
|
|||
var str = ''; |
|||
$.each(json, function (index) { |
|||
//循环获取数据
|
|||
//var title = json[index].title;
|
|||
if(condition.mode==1) |
|||
{ |
|||
str = str + '<li><a target="_blank" href="'+json[index].url+'">'+json[index].title+'</a></li>'; |
|||
} |
|||
else if(condition.mode==2) |
|||
{ |
|||
var litpic = '';if(json[index].litpic!==''){litpic = '<a class="limg" href="'+json[index].url+'"><img alt="'+json[index].title+'" src="'+json[index].litpic+'"></a>';} |
|||
str = str + '<div class="suli">'+litpic+'<a target="_blank" href="'+json[index].url+'">'+json[index].title+'</a><div class="sulii">阅读('+json[index].click+')</div><div class="cl"></div></div>'; |
|||
} |
|||
}); |
|||
|
|||
if(str!='' && str!=null && condition.mode==1) |
|||
{ |
|||
$('#xglist').html(str); |
|||
} |
|||
else if(str!='' && str!=null && condition.mode==2) |
|||
{ |
|||
$('#xglike').html(str); |
|||
} |
|||
} |
|||
else |
|||
{ |
|||
|
|||
} |
|||
},'json'); |
|||
} |
|||
</script> |
|||
@include('home.common.footer')</body></html> |
@ -0,0 +1,70 @@ |
|||
<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /><meta http-equiv="Cache-Control" content="no-siteapp" /><meta http-equiv="Cache-Control" content="no-transform" /><meta name="mobile-agent" content="format=xhtml;url=http://m.nbnbk.com/"><link rel="alternate" media="only screen and (max-width: 640px)" href="http://m.nbnbk.com/" /> |
|||
<title><?php echo sysconfig('CMS_SEOTITLE'); ?></title><meta name="keywords" content="<?php echo sysconfig('CMS_KEYWORDS'); ?>" /><meta name="description" content="<?php echo sysconfig('CMS_DESCRIPTION'); ?>" /><link rel="stylesheet" href="<?php echo sysconfig('CMS_BASEHOST'); ?>/images/style.css" media="all"><script type="text/javascript" src="<?php echo sysconfig('CMS_BASEHOST'); ?>/js/jquery.min.js"></script><script type="text/javascript" src="<?php echo sysconfig('CMS_BASEHOST'); ?>/js/ad.js"></script><script>uaredirect("http://m.nbnbk.com/");</script></head><body><script>site();</script>
|
|||
<div id="header"><div id="navlink" class="box"><h1><a class="webname" href="<?php echo sysconfig('CMS_BASEHOST'); ?>/"><?php echo sysconfig('CMS_WEBNAME'); ?></a></h1><span class="nav"><a href="<?php echo sysconfig('CMS_BASEHOST'); ?>/cat1">笔记本电脑知识</a><a href="<?php echo sysconfig('CMS_BASEHOST'); ?>/cat2">笔记本推荐</a><a href="<?php echo sysconfig('CMS_BASEHOST'); ?>/cat3">笔记本系统</a><script>navjs();</script></span><form method="get" target="_blank" class="m-sch fr" name="formsearch" action="<?php echo sysconfig('CMS_BASEHOST'); ?>/plus/search.php"><input class="sch-txt" name="q" type="text" value="搜索 按Enter键" onfocus="if(value=='搜索 按Enter键') {value=''}" onblur="if(value=='') {value='搜索 按Enter键'}"></form><div class="cl"></div></div></div><div id="tad"><script>tjs();</script></div>
|
|||
|
|||
<div class="box mt10"><div class="fl_640"> |
|||
<div class="notice">苹果/ThinkPad笔记本电脑无须担心质量问题。</div> |
|||
<?php $posts=arclist(array("row"=>11,"where"=>array("tuijian"=>array('NEQ',1))));foreach($posts as $row){ ?><div class="list"><?php if(!empty($row['litpic'])){ ?><a class="limg" href="<?php echo get_front_url(array("id"=>$row['id'],"catid"=>$row['typeid'],"type"=>'content')); ?>"><img alt="<?php echo $row['title']; ?>" src="<?php echo $row['litpic']; ?>"></a><?php } ?>
|
|||
<strong class="tit"><a href="<?php echo get_front_url(array("id"=>$row['id'],"catid"=>$row['typeid'],"type"=>'content')); ?>" target="_blank"><?php echo $row['title']; ?></a></strong><p><?php echo mb_strcut($row['description'],0,150,'UTF-8'); ?>..</p>
|
|||
<div class="info"><span class="fl"><?php if(!empty($row['writer'])){ echo '<i>'.$row['writer'].'</i>'; }elseif(!empty($row['source'])){ echo '<i>'.$row['source'].'</i>'; } ?><em><?php echo date("m-d H:i",$row['pubdate']); ?></em></span><span class="fr"><em><?php echo $row['click']; ?></em>人阅读</span></div><div class="cl"></div></div><?php } ?>
|
|||
|
|||
<div id="iad2"><script>ijs2();</script></div><div class="pages"><ul><li><a href="http://www.nbnbk.com/cat1">更多笔记本知识</a></li></ul><div class="cl"></div></div> |
|||
<div id="iad3"><script>ijs3();</script></div></div><!-- fl_640 end --> |
|||
|
|||
<div class="fr_300"><div id="rad1"><script>rjs1();</script></div> |
|||
<div class="side"><div class="stit"><div class="stith"><strong>热门话题</strong></div><a href="http://www.nbnbk.com/tags.html" target="_blank" class="more">更多</a><div class="cl"></div></div> |
|||
<div class="ws-tag"><a href="http://www.nbnbk.com/cat5" target="_blank">重装系统</a><a href="http://www.nbnbk.com/cat4" target="_blank">笔记本电脑配置知识</a></div></div> |
|||
|
|||
<div class="side"><div class="stit"><h2>文章排行</h2><a href="javascript:getmore({PageSize:5,tuijian:1,mode:1,orderby:'rand()'});" class="more">换一换</a><div class="cl"></div></div> |
|||
<ul class="uli chs" id="xglist"><?php $posts=arclist(array("row"=>5,"tuijian"=>1));foreach($posts as $row){ ?><li><a target="_blank" href="<?php echo get_front_url(array("id"=>$row['id'],"catid"=>$row['typeid'],"type"=>'content')); ?>"><?php echo $row['title']; ?></a></li><?php } ?></ul><div class="cl"></div></div>
|
|||
|
|||
<div class="side"><div class="stit"><h2>猜你喜欢</h2><a href="javascript:getmore({PageSize:5,mode:2,orderby:'rand()'});" class="more">换一换</a><div class="cl"></div></div> |
|||
<div class="uli2" id="xglike"><?php $posts=arclist(array("row"=>5,"orderby"=>'rand()'));foreach($posts as $row){ ?><div class="suli"><?php if(!empty($row['litpic'])){ ?><a class="limg" href="<?php echo get_front_url(array("id"=>$row['id'],"catid"=>$row['typeid'],"type"=>'content')); ?>"><img alt="<?php echo $row['title']; ?>" src="<?php echo $row['litpic']; ?>"></a><?php } ?><a target="_blank" href="<?php echo get_front_url(array("id"=>$row['id'],"catid"=>$row['typeid'],"type"=>'content')); ?>"><?php echo $row['title']; ?></a><div class="sulii"><?php if(!empty($row['writer'])){echo '<span class="time">'.$row['writer'].'</span>';}elseif(!empty($row['source'])){echo '<span class="time">'.$row['source'].'</span>';} ?> 阅读(<?php echo $row['click']; ?>)</div><div class="cl"></div></div><?php } ?><div class="cl"></div></div></div>
|
|||
|
|||
<div id="rad3"><script>rjs3();</script></div> |
|||
|
|||
<div class="side"><div class="stit"><div class="stith"><strong>友情链接</strong></div><div class="cl"></div></div> |
|||
<div class="rtags mt10"><a href="http://www.nbnbk.com/">笔记本之家官网</a></div></div> |
|||
|
|||
<div id="rad2"><script>rjs2();</script></div></div><!-- fr_300 end --></div><!-- box end --> |
|||
<script> |
|||
function getmore(condition) |
|||
{ |
|||
var url = "<?php echo CMS_BASEHOST; ?>/api/listarc"; |
|||
//var typeid = "";
|
|||
$.post(url,condition,function(res){ |
|||
if(res.code==0) |
|||
{ |
|||
var json = res.data; //数组
|
|||
var str = ''; |
|||
$.each(json, function (index) { |
|||
//循环获取数据
|
|||
//var title = json[index].title;
|
|||
if(condition.mode==1) |
|||
{ |
|||
str = str + '<li><a target="_blank" href="'+json[index].url+'">'+json[index].title+'</a></li>'; |
|||
} |
|||
else if(condition.mode==2) |
|||
{ |
|||
var litpic = '';if(json[index].litpic!==''){litpic = '<a class="limg" href="'+json[index].url+'"><img alt="'+json[index].title+'" src="'+json[index].litpic+'"></a>';} |
|||
str = str + '<div class="suli">'+litpic+'<a target="_blank" href="'+json[index].url+'">'+json[index].title+'</a><div class="sulii">阅读('+json[index].click+')</div><div class="cl"></div></div>'; |
|||
} |
|||
}); |
|||
|
|||
if(str!='' && str!=null && condition.mode==1) |
|||
{ |
|||
$('#xglist').html(str); |
|||
} |
|||
else if(str!='' && str!=null && condition.mode==2) |
|||
{ |
|||
$('#xglike').html(str); |
|||
} |
|||
} |
|||
else |
|||
{ |
|||
|
|||
} |
|||
},'json'); |
|||
} |
|||
</script> |
|||
@include('home.common.footer')</body></html> |
@ -0,0 +1,171 @@ |
|||
<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /><meta name="viewport" content="width=device-width, initial-scale=1"> |
|||
<title>后台登录</title> |
|||
<link rel="stylesheet" href="/css/bootstrap.min.css"><link rel="stylesheet" href="/css/admin.css"><script src="/js/jquery.min.js"></script><script src="/js/ad.js"></script></head><body> |
|||
<style> |
|||
body { |
|||
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif; |
|||
font-size: 16px; |
|||
color: #888;
|
|||
line-height: 30px; |
|||
text-align: center; |
|||
background-color: #000;
|
|||
} |
|||
.form-box { |
|||
margin-top: 35px; |
|||
} |
|||
.form-top { |
|||
overflow: hidden; |
|||
padding: 0 25px 15px 25px; |
|||
background: #fff;
|
|||
-moz-border-radius: 4px 4px 0 0; -webkit-border-radius: 4px 4px 0 0; border-radius: 4px 4px 0 0; |
|||
text-align: left; |
|||
} |
|||
|
|||
.form-top-left { |
|||
float: left; |
|||
width: 75%; |
|||
padding-top: 25px; |
|||
} |
|||
|
|||
.form-top-left h3 { margin-top: 0; |
|||
font-size: 22px; |
|||
font-weight: 300; |
|||
color: #555;
|
|||
line-height: 30px;} |
|||
|
|||
.form-top-right { |
|||
float: left; |
|||
width: 25%; |
|||
padding-top: 5px;margin-top:15px; |
|||
font-size: 66px; |
|||
color: #ddd;
|
|||
text-align: right; |
|||
} |
|||
|
|||
.form-bottom { |
|||
padding: 25px 25px 30px 25px; |
|||
background: #eee;
|
|||
-moz-border-radius: 0 0 4px 4px; -webkit-border-radius: 0 0 4px 4px; border-radius: 0 0 4px 4px; |
|||
text-align: left; |
|||
} |
|||
|
|||
.form-bottom form textarea { |
|||
height: 100px; |
|||
} |
|||
|
|||
.form-bottom form button.btn { |
|||
width: 100%; |
|||
} |
|||
|
|||
.form-bottom form .input-error { |
|||
border-color: #4aaf51;
|
|||
} |
|||
|
|||
.social-login { |
|||
margin-top: 35px; |
|||
} |
|||
|
|||
.social-login h3 { |
|||
color: #fff;
|
|||
} |
|||
|
|||
.social-login-buttons { |
|||
margin-top: 25px; |
|||
} |
|||
input[type="text"], input[type="password"], textarea, textarea.form-control { |
|||
height: 50px; |
|||
margin: 0; |
|||
padding: 0 20px; |
|||
vertical-align: middle; |
|||
background: #f8f8f8;
|
|||
border: 3px solid #ddd;
|
|||
font-family: 'Roboto', sans-serif; |
|||
font-size: 16px; |
|||
font-weight: 300; |
|||
line-height: 50px; |
|||
color: #888;
|
|||
-moz-border-radius: 4px; |
|||
-webkit-border-radius: 4px; |
|||
border-radius: 4px; |
|||
-moz-box-shadow: none; |
|||
-webkit-box-shadow: none; |
|||
box-shadow: none; |
|||
-o-transition: all .3s; |
|||
-moz-transition: all .3s; |
|||
-webkit-transition: all .3s; |
|||
-ms-transition: all .3s; |
|||
transition: all .3s; |
|||
} |
|||
button.btn { |
|||
height: 50px; |
|||
margin: 0; |
|||
padding: 0 20px; |
|||
vertical-align: middle; |
|||
background: #4aaf51;
|
|||
border: 0; |
|||
font-family: 'Roboto', sans-serif; |
|||
font-size: 16px; |
|||
font-weight: 300; |
|||
line-height: 50px; |
|||
color: #fff;
|
|||
-moz-border-radius: 4px; |
|||
-webkit-border-radius: 4px; |
|||
border-radius: 4px; |
|||
text-shadow: none; |
|||
-moz-box-shadow: none; |
|||
-webkit-box-shadow: none; |
|||
box-shadow: none; |
|||
-o-transition: all .3s; |
|||
-moz-transition: all .3s; |
|||
-webkit-transition: all .3s; |
|||
-ms-transition: all .3s; |
|||
transition: all .3s; |
|||
} |
|||
button.btn:hover { opacity: 0.6; color: #fff; }
|
|||
</style> |
|||
<div class="container-fluid"> |
|||
<div class="row"> |
|||
<div class="col-sm-6 col-sm-offset-3 form-box"> |
|||
<div class="form-top"> |
|||
<div class="form-top-left"> |
|||
<h3>后台登录</h3> |
|||
<p>请输入您的用户名、密码:</p> |
|||
</div> |
|||
<div class="form-top-right"> |
|||
<i class="glyphicon glyphicon-user"></i> |
|||
</div> |
|||
</div> |
|||
<div class="form-bottom"> |
|||
<form method="post" action="/dologin" class="login-form" role="form"> |
|||
<div class="form-group"> |
|||
<label class="sr-only" for="form-username">Username</label> |
|||
<input type="text" id="username" name="username" placeholder="用户名/邮箱/手机号..." class="form-username form-control"> |
|||
</div> |
|||
<div class="form-group"> |
|||
<label class="sr-only" for="form-password">Password</label> |
|||
<input type="password" id="pwd" name="pwd" placeholder="输入密码..." class="form-password form-control"> |
|||
</div> |
|||
<button type="submit" class="btn">立即登录</button> |
|||
</form> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<script> |
|||
$('.login-form input[type="text"], .login-form input[type="password"], .login-form textarea').on('focus', function() { |
|||
$(this).removeClass('input-error'); |
|||
}); |
|||
|
|||
$('.login-form').on('submit', function(e) { |
|||
$(this).find('input[type="text"], input[type="password"], textarea').each(function(){ |
|||
if( $(this).val() == "" ) { |
|||
e.preventDefault(); |
|||
$(this).addClass('input-error'); |
|||
} |
|||
else { |
|||
$(this).removeClass('input-error'); |
|||
} |
|||
}); |
|||
}); |
|||
</script> |
|||
<script src="/js/bootstrap.min.js"></script></body></html> |
@ -0,0 +1,8 @@ |
|||
<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /><meta http-equiv="Cache-Control" content="no-siteapp" /><meta http-equiv="Cache-Control" content="no-transform" /><meta name="mobile-agent" content="format=xhtml;url=http://m.bnbni.com/cat{dede:type}[field:id/]{/dede:type}/id{dede:field name='aid' /}"> |
|||
<title><?php if(empty($post["seotitle"])){echo $post["title"];}else{echo $post["seotitle"];} ?>_<?php echo CMS_WEBNAME; ?></title><meta name="keywords" content="<?php echo $post["keywords"]; ?>" /><meta name="description" content="<?php echo $post["description"]; ?>" /><link rel="stylesheet" href="<?php echo CMS_BASEHOST; ?>/images/style.css" media="all"><script type="text/javascript" src="<?php echo CMS_BASEHOST; ?>/js/ad.js"></script><script>uaredirect("http://m.bnbni.com/cat{dede:type}[field:id/]{/dede:type}/id{dede:field name='aid' /}");</script></head><body><script>site();</script>
|
|||
@include('home.common.header')<div id="tad"><script>tjs();</script></div> |
|||
|
|||
<div class="box mt10"> |
|||
<h1 class="arct" style="text-align:center"><?php echo $post["title"]; ?></h1><div class="dad1"><script>djs1();</script></div>
|
|||
<div class="content"><?php echo $post["body"]; ?><div class="dad2"><script>djs2();</script></div></div>
|
|||
</div><!-- box end -->@include('home.common.footer')</body></html> |
@ -0,0 +1,35 @@ |
|||
<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /> |
|||
<meta name="viewport" content="width=device-width, initial-scale=1"> |
|||
<title>搜索结果_<?php echo CMS_WEBNAME; ?></title>
|
|||
<link rel="stylesheet" href="/css/bootstrap.min.css"><link rel="stylesheet" href="/css/style.css"><script src="/js/jquery.min.js"></script><script src="/js/bootstrap.min.js"></script></head><body> |
|||
|
|||
@include('home.common.header') |
|||
<div class="container"> |
|||
|
|||
<div class="row row-offcanvas row-offcanvas-right"> |
|||
|
|||
<div class="col-xs-12 col-sm-9"> |
|||
<div class="bread"><a href="/"><?php echo CMS_INDEXNAME; ?></a> > <?php echo '搜索结果'; ?></div>
|
|||
<h1 class="page-header">搜索结果</h1> |
|||
|
|||
<?php foreach($posts as $row){ ?><div class="list"><?php if(!empty($row['litpic'])){echo '<a class="limg" href="'.get_front_url(array("id"=>$row['id'],"catid"=>$row['typeid'],"type"=>'content')).'"><img alt="'.$row["title"].'" src="'.$row["litpic"].'"></a>';} ?>
|
|||
<strong class="tit"><a href="<?php echo get_front_url(array("id"=>$row['id'],"catid"=>$row['typeid'],"type"=>'content')); ?>" target="_blank"><?php echo $row['title']; ?></a></strong><p><?php echo mb_strcut($row['description'],0,160,'utf-8'); ?></p>
|
|||
<div class="info"><span class="fl"><?php $taglist=taglist($row['id']);foreach($taglist as $row){ ?><a target="_blank" href="<?php echo get_front_url(array("tagid"=>$row['id'],"type"=>'tags')); ?>"><?php echo $row['tag']; ?></a><?php } ?><em><?php echo date("Y-m-d",$row["pubdate"]); ?></em></span><span class="fr"><em><?php echo $row['click']; ?></em>人阅读</span></div><div class="cl"></div></div><?php } ?>
|
|||
|
|||
<div class="pages"><ul><?php echo $pagenav; ?></ul><div class="cl"></div></div>
|
|||
|
|||
</div><!--/.col-xs-12.col-sm-9--> |
|||
|
|||
<div class="col-xs-12 col-sm-3 sidebar-offcanvas" id="sidebar"> |
|||
|
|||
<div class="panel panel-info"> |
|||
<div class="panel-heading">热门推荐</div> |
|||
<div class="list-group"><?php $posts=arclist(array("row"=>5,"orderby"=>'rand()'));foreach($posts as $row){ ?>
|
|||
<a class="list-group-item" href="<?php echo get_front_url(array("id"=>$row['id'],"catid"=>$row['typeid'],"type"=>'content')); ?>"><?php echo $row['title']; ?></a><?php } ?>
|
|||
</div> |
|||
</div> |
|||
</div><!--/.sidebar-offcanvas--> |
|||
</div><!--/row--> |
|||
|
|||
</div><!-- /.container --> |
|||
@include('home.common.footer')</body></html> |
@ -0,0 +1,9 @@ |
|||
<?xml version="1.0" encoding="utf-8"?>
|
|||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> |
|||
<url><loc>http://www.nbnbk.com/</loc><changefreq>daily</changefreq><priority>1.0</priority></url> |
|||
<url><loc>http://www.nbnbk.com/contact.html</loc></url> |
|||
<?php $posts=arclist(array("row"=>300));foreach($posts as $row){ ?><url><loc>http://www.nbnbk.com<?php echo get_front_url(array("id"=>$row['id'],"catid"=>$row['typeid'],"type"=>'content')); ?></loc><lastmod><?php echo date("Y-m-d",$row['pubdate']); ?></lastmod><changefreq>monthly</changefreq></url><?php } ?>
|
|||
<?php $posts=arclist(array("row"=>100,"orderby"=>'rand()'));foreach($posts as $row){ ?><url><loc>http://www.nbnbk.com<?php echo get_front_url(array("id"=>$row['id'],"catid"=>$row['typeid'],"type"=>'content')); ?></loc><lastmod><?php echo date("Y-m-d",$row['pubdate']); ?></lastmod><changefreq>monthly</changefreq></url><?php } ?>
|
|||
|
|||
<?php $posts=dataList("arctype");foreach($posts as $row){ ?><url><loc>http://www.nbnbk.com<?php echo get_front_url(array("catid"=>$row['id'],"type"=>'list')); ?></loc></url><?php } ?>
|
|||
</urlset> |
@ -0,0 +1,62 @@ |
|||
<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /><meta http-equiv="Cache-Control" content="no-siteapp" /><meta http-equiv="Cache-Control" content="no-transform" /><meta name="mobile-agent" content="format=xhtml;url=http://m.bnbni.com<?php echo GetCurUrl(); ?>"> |
|||
<title><?php if(empty($post["title"])){echo $post["tag"];}else{echo $post["title"];}if($page!=0){echo ' '.($page+1);} ?></title><meta name="keywords" content="<?php echo $post["keywords"]; ?>" /><meta name="description" content="<?php echo $post["description"]; ?>" /><link rel="stylesheet" href="<?php echo CMS_BASEHOST; ?>/images/style.css" media="all"><script type="text/javascript" src="<?php echo CMS_BASEHOST; ?>/js/jquery.min.js"></script><script type="text/javascript" src="<?php echo CMS_BASEHOST; ?>/js/ad.js"></script><script>uaredirect("http://m.bnbni.com/cat{dede:type}[field:ID /]{/dede:type}");</script></head><body><script>site();</script>
|
|||
@include('home.common.header')<div id="tad"><script>tjs();</script></div> |
|||
|
|||
<div class="box mt10"><div class="fl_640"><div class="zinfo"><h1><?php echo $post["tag"]; ?></h1><?php if(!empty($post['content'])){echo '<div class="zdes">'.$post['content'].'</div>';} ?></div><div id="lad1"><script>ljs1();</script></div>
|
|||
|
|||
<?php if(!empty($posts)){foreach($posts as $row){ ?><div class="list"><?php if(!empty($row['litpic'])){ ?><a class="limg" href="<?php echo get_front_url(array("id"=>$row['id'],"catid"=>$row['typeid'],"type"=>'content')); ?>"><img alt="<?php echo $row['title']; ?>" src="<?php echo $row['litpic']; ?>"></a><?php } ?>
|
|||
<strong class="tit"><a href="<?php echo get_front_url(array("id"=>$row['id'],"catid"=>$row['typeid'],"type"=>'content')); ?>" target="_blank"><?php echo $row['title']; ?></a></strong><p><?php echo mb_strcut($row['description'],0,150,'UTF-8'); ?>..</p>
|
|||
<div class="info"><span class="fl"><em><?php echo date("m-d H:i",$row['pubdate']); ?></em></span><span class="fr"><em><?php echo $row['click']; ?></em>人阅读</span></div><div class="cl"></div></div><?php }} ?><div id="lad2"><script>ljs2();</script></div>
|
|||
|
|||
<div class="pages"><ul><?php echo $pagenav; ?></ul><div class="cl"></div></div><div id="lad3"><script>ljs3();</script></div></div><!-- fl_640 end -->
|
|||
|
|||
<div class="fr_300"><div id="rad1"><script>rjs1();</script></div> |
|||
<div class="side"><div class="stit"><h2>相关推荐</h2><a href="javascript:getmore({PageSize:5,typeid:<?php echo $post['id']; ?>,tuijian:1,mode:1,orderby:'rand()'});" class="more">换一换</a><div class="cl"></div></div> |
|||
<ul class="uli chs" id="xglist"><?php $posts=arclist(array("row"=>5,"tuijian"=>1));foreach($posts as $row){ ?><li><a target="_blank" href="<?php echo get_front_url(array("id"=>$row['id'],"catid"=>$row['typeid'],"type"=>'content')); ?>"><?php echo $row['title']; ?></a></li><?php } ?></ul><div class="cl"></div></div>
|
|||
|
|||
<div id="rad3"><script>rjs3();</script></div> |
|||
<div class="side"><div class="stit"><h2>猜你喜欢</h2><a href="javascript:getmore({PageSize:5,typeid:<?php echo $post['id']; ?>,mode:2,orderby:'rand()'});" class="more">换一换</a><div class="cl"></div></div> |
|||
<div class="uli2" id="xglike"><?php $posts=arclist(array("row"=>5,"orderby"=>'rand()'));foreach($posts as $row){ ?><div class="suli"><?php if(!empty($row['litpic'])){ ?><a class="limg" href="<?php echo get_front_url(array("id"=>$row['id'],"catid"=>$row['typeid'],"type"=>'content')); ?>"><img alt="<?php echo $row['title']; ?>" src="<?php echo $row['litpic']; ?>"></a><?php } ?><a target="_blank" href="<?php echo get_front_url(array("id"=>$row['id'],"catid"=>$row['typeid'],"type"=>'content')); ?>"><?php echo $row['title']; ?></a><div class="sulii"><?php if(!empty($row['writer'])){echo '<span class="time">'.$row['writer'].'</span>';}elseif(!empty($row['source'])){echo '<span class="time">'.$row['source'].'</span>';} ?> 阅读(<?php echo $row['click']; ?>)</div><div class="cl"></div></div><?php } ?><div class="cl"></div></div></div>
|
|||
|
|||
<div id="rad2"><script>rjs2();</script></div></div><!-- fr_300 end --></div><!-- box end --> |
|||
<script> |
|||
function getmore(condition) |
|||
{ |
|||
var url = "<?php echo CMS_BASEHOST; ?>/api/listarc"; |
|||
//var typeid = "";
|
|||
$.post(url,condition,function(res){ |
|||
if(res.code==0) |
|||
{ |
|||
var json = res.data; //数组
|
|||
var str = ''; |
|||
$.each(json, function (index) { |
|||
//循环获取数据
|
|||
//var title = json[index].title;
|
|||
if(condition.mode==1) |
|||
{ |
|||
str = str + '<li><a target="_blank" href="'+json[index].url+'">'+json[index].title+'</a></li>'; |
|||
} |
|||
else if(condition.mode==2) |
|||
{ |
|||
var litpic = '';if(json[index].litpic!==''){litpic = '<a class="limg" href="'+json[index].url+'"><img alt="'+json[index].title+'" src="'+json[index].litpic+'"></a>';} |
|||
str = str + '<div class="suli">'+litpic+'<a target="_blank" href="'+json[index].url+'">'+json[index].title+'</a><div class="sulii">阅读('+json[index].click+')</div><div class="cl"></div></div>'; |
|||
} |
|||
}); |
|||
|
|||
if(str!='' && str!=null && condition.mode==1) |
|||
{ |
|||
$('#xglist').html(str); |
|||
} |
|||
else if(str!='' && str!=null && condition.mode==2) |
|||
{ |
|||
$('#xglike').html(str); |
|||
} |
|||
} |
|||
else |
|||
{ |
|||
|
|||
} |
|||
},'json'); |
|||
} |
|||
</script> |
|||
@include('home.common.footer')</body></html> |
@ -0,0 +1,58 @@ |
|||
<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /><meta http-equiv="Cache-Control" content="no-siteapp" /><meta http-equiv="Cache-Control" content="no-transform" /><meta name="mobile-agent" content="format=xhtml;url=http://m.bnbni.com<?php echo GetCurUrl(); ?>"> |
|||
<title><?php if(empty($post["title"])){echo $post["tag"];}else{echo $post["title"];}if($page!=0){echo ' '.($page+1);} ?></title><meta name="keywords" content="<?php echo $post["keywords"]; ?>" /><meta name="description" content="<?php echo $post["description"]; ?>" /><link rel="stylesheet" href="<?php echo CMS_BASEHOST; ?>/images/style.css" media="all"><script type="text/javascript" src="<?php echo CMS_BASEHOST; ?>/js/jquery.min.js"></script><script type="text/javascript" src="<?php echo CMS_BASEHOST; ?>/js/ad.js"></script><script>uaredirect("http://m.bnbni.com/cat{dede:type}[field:ID /]{/dede:type}");</script></head><body><script>site();</script>
|
|||
@include('home.common.header')<div id="tad"><script>tjs();</script></div> |
|||
|
|||
<div class="box mt10"><div class="fl_640"><div class="zinfo"><h1><?php echo $post["tag"]; ?></h1><?php if(!empty($post['content'])){echo '<div class="zdes">'.$post['content'].'</div>';} ?></div><div id="lad1"><script>ljs1();</script></div>
|
|||
|
|||
<?php if(!empty($posts)){foreach($posts as $row){ ?><h2 class="tagarct"><?php echo $row["title"]; ?></h2><div class="content"><?php echo $row["body"]; ?></div><?php }} ?><div id="lad2"><script>ljs2();</script></div></div><!-- fl_640 end -->
|
|||
|
|||
<div class="fr_300"><div id="rad1"><script>rjs1();</script></div> |
|||
<div class="side"><div class="stit"><h2>相关推荐</h2><a href="javascript:getmore({PageSize:5,typeid:<?php echo $post['id']; ?>,tuijian:1,mode:1,orderby:'rand()'});" class="more">换一换</a><div class="cl"></div></div> |
|||
<ul class="uli chs" id="xglist"><?php $posts=arclist(array("row"=>5,"tuijian"=>1));foreach($posts as $row){ ?><li><a target="_blank" href="<?php echo get_front_url(array("id"=>$row['id'],"catid"=>$row['typeid'],"type"=>'content')); ?>"><?php echo $row['title']; ?></a></li><?php } ?></ul><div class="cl"></div></div>
|
|||
|
|||
<div id="rad3"><script>rjs3();</script></div> |
|||
<div class="side"><div class="stit"><h2>猜你喜欢</h2><a href="javascript:getmore({PageSize:5,typeid:<?php echo $post['id']; ?>,mode:2,orderby:'rand()'});" class="more">换一换</a><div class="cl"></div></div> |
|||
<div class="uli2" id="xglike"><?php $posts=arclist(array("row"=>5,"orderby"=>'rand()'));foreach($posts as $row){ ?><div class="suli"><?php if(!empty($row['litpic'])){ ?><a class="limg" href="<?php echo get_front_url(array("id"=>$row['id'],"catid"=>$row['typeid'],"type"=>'content')); ?>"><img alt="<?php echo $row['title']; ?>" src="<?php echo $row['litpic']; ?>"></a><?php } ?><a target="_blank" href="<?php echo get_front_url(array("id"=>$row['id'],"catid"=>$row['typeid'],"type"=>'content')); ?>"><?php echo $row['title']; ?></a><div class="sulii"><?php if(!empty($row['writer'])){echo '<span class="time">'.$row['writer'].'</span>';}elseif(!empty($row['source'])){echo '<span class="time">'.$row['source'].'</span>';} ?> 阅读(<?php echo $row['click']; ?>)</div><div class="cl"></div></div><?php } ?><div class="cl"></div></div></div>
|
|||
|
|||
<div id="rad2"><script>rjs2();</script></div></div><!-- fr_300 end --></div><!-- box end --> |
|||
<script> |
|||
function getmore(condition) |
|||
{ |
|||
var url = "<?php echo CMS_BASEHOST; ?>/api/listarc"; |
|||
//var typeid = "";
|
|||
$.post(url,condition,function(res){ |
|||
if(res.code==0) |
|||
{ |
|||
var json = res.data; //数组
|
|||
var str = ''; |
|||
$.each(json, function (index) { |
|||
//循环获取数据
|
|||
//var title = json[index].title;
|
|||
if(condition.mode==1) |
|||
{ |
|||
str = str + '<li><a target="_blank" href="'+json[index].url+'">'+json[index].title+'</a></li>'; |
|||
} |
|||
else if(condition.mode==2) |
|||
{ |
|||
var litpic = '';if(json[index].litpic!==''){litpic = '<a class="limg" href="'+json[index].url+'"><img alt="'+json[index].title+'" src="'+json[index].litpic+'"></a>';} |
|||
str = str + '<div class="suli">'+litpic+'<a target="_blank" href="'+json[index].url+'">'+json[index].title+'</a><div class="sulii">阅读('+json[index].click+')</div><div class="cl"></div></div>'; |
|||
} |
|||
}); |
|||
|
|||
if(str!='' && str!=null && condition.mode==1) |
|||
{ |
|||
$('#xglist').html(str); |
|||
} |
|||
else if(str!='' && str!=null && condition.mode==2) |
|||
{ |
|||
$('#xglike').html(str); |
|||
} |
|||
} |
|||
else |
|||
{ |
|||
|
|||
} |
|||
},'json'); |
|||
} |
|||
</script> |
|||
@include('home.common.footer')</body></html> |
@ -0,0 +1,57 @@ |
|||
<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /><meta http-equiv="Cache-Control" content="no-siteapp" /><meta http-equiv="Cache-Control" content="no-transform" /><meta name="mobile-agent" content="format=xhtml;url=http://m.bnbni.com<?php echo GetCurUrl(); ?>"> |
|||
<title><?php if(empty($post["title"])){echo $post["tag"];}else{echo $post["title"];}if($page!=0){echo ' '.($page+1);} ?></title><meta name="keywords" content="<?php echo $post["keywords"]; ?>" /><meta name="description" content="<?php echo $post["description"]; ?>" /><link rel="stylesheet" href="<?php echo CMS_BASEHOST; ?>/images/style.css" media="all"><script type="text/javascript" src="<?php echo CMS_BASEHOST; ?>/js/jquery.min.js"></script><script type="text/javascript" src="<?php echo CMS_BASEHOST; ?>/js/ad.js"></script><script>uaredirect("http://m.bnbni.com/cat{dede:type}[field:ID /]{/dede:type}");</script></head><body><script>site();</script>
|
|||
@include('home.common.header')<div id="tad"><script>tjs();</script></div> |
|||
|
|||
<div class="box mt10"><div class="fl_640"><h1 class="arct"><?php echo $post["tag"]; ?></h1>
|
|||
<div class="content"><?php echo $post["content"]; ?></div><div id="lad1"><script>ljs1();</script></div></div><!-- fl_640 end -->
|
|||
|
|||
<div class="fr_300"><div id="rad1"><script>rjs1();</script></div> |
|||
<div class="side"><div class="stit"><h2>相关推荐</h2><a href="javascript:getmore({PageSize:5,tuijian:1,mode:1,orderby:'rand()'});" class="more">换一换</a><div class="cl"></div></div> |
|||
<ul class="uli chs" id="xglist"><?php $posts=arclist(array("row"=>5,"tuijian"=>1));foreach($posts as $row){ ?><li><a target="_blank" href="<?php echo get_front_url(array("id"=>$row['id'],"catid"=>$row['typeid'],"type"=>'content')); ?>"><?php echo $row['title']; ?></a></li><?php } ?></ul><div class="cl"></div></div>
|
|||
|
|||
<div id="rad3"><script>rjs3();</script></div> |
|||
<div class="side"><div class="stit"><h2>猜你喜欢</h2><a href="javascript:getmore({PageSize:5,mode:2,orderby:'rand()'});" class="more">换一换</a><div class="cl"></div></div> |
|||
<div class="uli2" id="xglike"><?php $posts=arclist(array("row"=>5,"orderby"=>'rand()'));foreach($posts as $row){ ?><div class="suli"><?php if(!empty($row['litpic'])){ ?><a class="limg" href="<?php echo get_front_url(array("id"=>$row['id'],"catid"=>$row['typeid'],"type"=>'content')); ?>"><img alt="<?php echo $row['title']; ?>" src="<?php echo $row['litpic']; ?>"></a><?php } ?><a target="_blank" href="<?php echo get_front_url(array("id"=>$row['id'],"catid"=>$row['typeid'],"type"=>'content')); ?>"><?php echo $row['title']; ?></a><div class="sulii"><?php if(!empty($row['writer'])){echo '<span class="time">'.$row['writer'].'</span>';}elseif(!empty($row['source'])){echo '<span class="time">'.$row['source'].'</span>';} ?> 阅读(<?php echo $row['click']; ?>)</div><div class="cl"></div></div><?php } ?><div class="cl"></div></div></div>
|
|||
|
|||
<div id="rad2"><script>rjs2();</script></div></div><!-- fr_300 end --></div><!-- box end --> |
|||
<script> |
|||
function getmore(condition) |
|||
{ |
|||
var url = "<?php echo CMS_BASEHOST; ?>/api/listarc"; |
|||
//var typeid = "";
|
|||
$.post(url,condition,function(res){ |
|||
if(res.code==0) |
|||
{ |
|||
var json = res.data; //数组
|
|||
var str = ''; |
|||
$.each(json, function (index) { |
|||
//循环获取数据
|
|||
//var title = json[index].title;
|
|||
if(condition.mode==1) |
|||
{ |
|||
str = str + '<li><a target="_blank" href="'+json[index].url+'">'+json[index].title+'</a></li>'; |
|||
} |
|||
else if(condition.mode==2) |
|||
{ |
|||
var litpic = '';if(json[index].litpic!==''){litpic = '<a class="limg" href="'+json[index].url+'"><img alt="'+json[index].title+'" src="'+json[index].litpic+'"></a>';} |
|||
str = str + '<div class="suli">'+litpic+'<a target="_blank" href="'+json[index].url+'">'+json[index].title+'</a><div class="sulii">阅读('+json[index].click+')</div><div class="cl"></div></div>'; |
|||
} |
|||
}); |
|||
|
|||
if(str!='' && str!=null && condition.mode==1) |
|||
{ |
|||
$('#xglist').html(str); |
|||
} |
|||
else if(str!='' && str!=null && condition.mode==2) |
|||
{ |
|||
$('#xglike').html(str); |
|||
} |
|||
} |
|||
else |
|||
{ |
|||
|
|||
} |
|||
},'json'); |
|||
} |
|||
</script> |
|||
@include('home.common.footer')</body></html> |
@ -0,0 +1,7 @@ |
|||
<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /><meta http-equiv="Cache-Control" content="no-siteapp" /><meta http-equiv="Cache-Control" content="no-transform" /><meta name="mobile-agent" content="format=xhtml;url=http://m.bnbni.com/cat{dede:type}[field:id/]{/dede:type}/id{dede:field name='aid' /}"> |
|||
<title>笔记本电脑相关知识_<?php echo CMS_WEBNAME; ?></title><meta name="keywords" content="" /><meta name="description" content="" /><link rel="stylesheet" href="<?php echo CMS_BASEHOST; ?>/images/style.css" media="all"><script type="text/javascript" src="<?php echo CMS_BASEHOST; ?>/js/ad.js"></script><script>uaredirect("http://m.bnbni.com/cat{dede:type}[field:id/]{/dede:type}/id{dede:field name='aid' /}");</script></head><body><script>site();</script>
|
|||
@include('home.common.header')<div id="tad"><script>tjs();</script></div> |
|||
<div class="box mt10"> |
|||
<div class="ws-tag"><?php $posts=tagslist(); foreach($posts as $row) { ?>
|
|||
<a target="_blank" href="<?php echo get_front_url(array("type"=>"tags","tagid"=>$row["id"])); ?>"><?php echo $row['tag']; ?></a> <?php } ?></div>
|
|||
</div><!-- box end -->@include('home.common.footer')</body></html> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue