first commit

This commit is contained in:
2020-09-14 14:29:29 +08:00
commit 3ac390f68f
767 changed files with 166582 additions and 0 deletions

View File

@@ -0,0 +1,63 @@
@extends('layouts.app')
@section('title', '文章详情')
@section('content')
@if ($advert)
<div id="lyg_sub_banner"><img src="{{ $advert->cover_path }}"/></div>
@endif
<div class="ly_page ly_min">
<div class="ly_wrap">
<div class="lyg_page_box">
<div class="lyg_lpage">
<div id="lyg_left_bar">
<h2>{{ $parent->title }}</h2>
<dl>
@foreach ($parent->childrens as $children)
<dt><a href="{{ route('category.show',$children) }}">{{ $children->title }}</a></dt>
@endforeach
</dl>
</div>
</div>
<div class="lyg_rpage">
<div class="lyg_rpage_bpx">
<div class="lyg_page_title">
<h2>{{ $category->title }}</h2>
<div id="lyg_breadcrumb">
<a class="ly_home" href="#">首页</a> <font>></font>
@if ($parent->id==$category->id)
{{ $category->title }}
@else
{{ $parent->title }}
<font>></font>
{{ $category->title }}
@endif
</div>
<div class="lyg_clear"></div>
</div>
<div id="lyg_news_detail" class="lyg_container_content">
<div id="lyg_news_detail_0">
<h1>{{ $article->title }}</h1>
<div class="lyg_para">
<div class="lyg_date">{{ $article->created_at }}</div>
<div class="lyg_clear"></div>
</div>
<div class="thumb">
@if ($article->cover_path)
<img src="{{ $article->cover_path }}" style="margin-bottom: 15px;" id="imgs"/>
@endif
</div>
<div class="lyg_content">
{!! $article->content !!}
</div>
</div>
</div>
</div>
</div>
<div class="lyg_clear"></div>
</div>
</div>
</div>
@endsection

View File

@@ -0,0 +1,83 @@
@extends('layouts.app')
@section('title', '首页')
@section('content')
@if ($advert)
<div id="lyg_sub_banner"><img src="{{ $advert->cover_path }}"/></div>
@endif
<div class="ly_page ly_min">
<div class="ly_wrap">
<div class="lyg_page_box">
<div class="lyg_lpage">
<div id="lyg_left_bar">
<h2>{{ $parent->title }}</h2>
<dl>
@foreach ($parent->childrens as $children)
<dt><a href="{{ route('category.show',$children) }}">{{ $children->title }}</a></dt>
@endforeach
</dl>
</div>
</div>
<div class="lyg_rpage">
<div class="lyg_rpage_box">
<div class="lyg_page_title">
<h2>{{ $parent->title }}</h2>
<div id="lyg_breadcrumb">
<a class="ly_home" href="#">首页</a>
<font>></font>
@if ($parent->id==$category->id)
{{ $category->title }}
@else
{{ $parent->title }}
<font>></font>
{{ $category->title }}
@endif
</div>
<div class="lyg_clear"></div>
</div>
<div id="lyg_news" class="lyg_container_content">
<div id="lyg_news_0">
@foreach ($articles as $article)
<div class="lyg_item lyg_top">
<div class="lyg_lbar">
<a href="{{ route('article.show',$article) }}">
<img src="{{ $article->cover_path }}" width="270" height="174"/>
</a>
</div>
<div class="lyg_rbar">
<h3><a href="{{ route('article.show',$article) }}">{{ $article->title }}</a></h3>
<div class="lyg_intro">
{{ $article->description }}
</div>
<div class="lyg_date">
更新时间:{{ $article->created_at }}
</div>
</div>
<div class="lyg_clear"></div>
</div>
@endforeach
<div class="lyg_blank25"></div>
@if ($articles->isNotEmpty())
{{ $articles->links('layouts.pagination') }}
@endif
{{-- <div class="Page clearfix">--}}
{{-- <span>46 条记录 1/6 </span>--}}
{{-- <a href="">下一页</a>--}}
{{-- <span class="current">1</span>--}}
{{-- <a href="">&nbsp;2&nbsp;</a>--}}
{{-- <a href="">&nbsp;3&nbsp;</a>--}}
{{-- <a href="">&nbsp;4&nbsp;</a>--}}
{{-- <a href="">&nbsp;5&nbsp;</a>--}}
{{-- <a href="">下5页</a>--}}
{{-- <a href="">末页</a>--}}
{{-- </div>--}}
</div>
</div>
</div>
<div class="lyg_clear"></div>
</div>
</div>
</div>
@endsection

View File

@@ -0,0 +1,305 @@
@extends('layouts.app')
@section('title', '首页')
@section('content')
<!--banner-->
{{-- 顶部广告 --}}
@if ($adverts->isNotEmpty())
<div class="clear"></div>
<div class="banner">
<div class="b-img">
@foreach ($adverts as $advert)
<img src="{{ $advert->cover_path }}" width="100%"/>
@endforeach
</div>
<div class="clear"></div>
<div class="b-list"></div>
</div>
@endif
<!-- 新闻 -->
<div class="news-2">
<div class="l">
<div id="lib_Tab1">
<div class="lib_Menubox lib_tabborder">
<ul>
<li id="one1" onMouseOver="setTab('one',1,4)" class="hover"><a href="{{ route('category.show',53) }}">新闻动态</a></li>
<li id="one2" onMouseOver="setTab('one',2,4)" class=""><a href="{{ route('category.show',20) }}">科技平台</a></li>
<li id="one3" onMouseOver="setTab('one',3,4)" class=""><a href="{{ route('category.show',8) }}">政府决策服务</a></li>
<li id="one4" onMouseOver="setTab('one',4,4)" class=""><a href="{{ route('category.show',74) }}">知名专家</a></li>
</ul>
</div>
<div class="lib_Contentbox lib_tabborder">
<div id="con_one_1" style="display: block;">
<div class="con_l">
<a href="{{ route('article.show',$xwdt->first()) }}"><img src="{{ $xwdt->first()->get_one_cover() }}" width="320" height="230"></a>
</div>
<div class="con_r">
<ul>
@foreach ($xwdt as $new)
<li>
<strong>
<a href="{{ route('article.show',$new) }}">{{ $new->title }}</a>
</strong>
<span>
<a href="{{ route('article.show',$new) }}">{{ $new->description }}</a>
</span>
</li>
@endforeach
</ul>
</div>
</div>
<div id="con_one_2" style="display: none;">
<a href="{{ route('article.show',$kjpt->first()->id) }}"><img src="{{ $kjpt->first()->get_one_cover() }}" width="320" height="230"></a>
<div class="con_r">
<ul>
@foreach ($kjpt as $new)
<li>
<strong>
<a href="{{ route('article.show',$new) }}">{{ $new->title }}</a>
</strong>
<span>
<a href="{{ route('article.show',$new) }}">{{ $new->description }}</a>
</span>
</li>
@endforeach
</ul>
</div>
</div>
<div id="con_one_3" style="display: none;">
<a href="{{ route('article.show',$zcjc->first()->id) }}"><img src="{{ $zcjc->first()->get_one_cover() }}" width="320" height="230"></a>
<div class="con_r">
<ul>
@foreach ($zcjc as $new)
<li>
<strong>
<a href="{{ route('article.show',$new) }}">{{ $new->title }}</a>
</strong>
<span>
<a href="{{ route('article.show',$new) }}">{{ $new->description }}</a>
</span>
</li>
@endforeach
</ul>
</div>
</div>
<div id="con_one_4" style="display: none;">
<a href="{{ route('article.show',$zmzj->first()->id) }}"><img src="{{ $zmzj->first()->get_one_cover() }}" width="320" height="230"></a>
<div class="con_r">
<ul>
@foreach ($zmzj as $new)
<li>
<strong>
<a href="{{ route('article.show',$new) }}">{{ $new->title }}</a>
</strong>
<span>
<a href="{{ route('article.show',$new) }}">{{ $new->description }}</a>
</span>
</li>
@endforeach
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="r">
<div id="lib_Tab1">
<div class="lib_Menubox lib_tabborder">
<ul>
<li id="two1" onMouseOver="setTab('two',1,4)" class="hover"><a href="{{ route('category.show',54) }}">通知公告</a></li>
<li id="two2" onMouseOver="setTab('two',2,4)" class=""><a href="{{ route('category.show',58) }}">科技发展论坛</a></li>
</ul>
</div>
<div class="lib_Contentbox lib_tabborder">
<div id="con_two_1" style="display: block;">
<ul>
@foreach ($tjgg as $new)
<li>
<strong>
<a href="{{ route('article.show',$new) }}">{{ $new->title }}</a>
</strong>
<span>
<a href="{{ route('article.show',$new) }}">{{ $new->description }}</a>
</span>
</li>
@endforeach
</ul>
</div>
<div id="con_two_2" style="display: none;">
<ul>
@foreach ($kjlt as $new)
<li>
<strong>
<a href="{{ route('article.show',$new) }}">{{ $new->title }}</a>
</strong>
<span>
<a href="{{ route('article.show',$new) }}">{{ $new->description }}</a>
</span>
</li>
@endforeach
</ul>
</div>
</div>
</div>
</div>
</div>
<div id="ly_main" class="ly_min">
<div class="ly_wrap">
<div class="lyg_blank25"></div>
<div class="lyg_blank25"></div>
<!--关于我们-->
<div class="ly_main_t">
<div class="ly_lbar ly_fl">
<div class="ly_article_bar">
<h2><a class="ly_more" href="{{ route('category.show',1) }}">查看更多</a><span>院所介绍</span> <em>ABOUT US</em></h2>
<div class="lyg_blank20"></div>
<div class="ly_content">
<div class="ly_a_lbar ly_fl">
<div class="ly_pic"><img src="{{ $info->get_one_cover() }}" width="248" height="216"/></div>
</div>
<div class="ly_a_rbar ly_fr">
<div class="ly_title">{{ $info->title??'' }}</div>
<div class="ly_intro">
{{ $info->description}}
</div>
</div>
<div class="lyg_clear"></div>
</div>
</div>
</div>
<!--客户见证-->
<div class="ly_rbar ly_fr">
<div class="ly_news_bar">
<h2><a class="ly_more" href="{{ route('category.show',61) }}">查看更多</a><span>研究中心</span> </h2>
<div class="lyg_blank15"></div>
<div class="ly_content">
@foreach ($yjzx as $new)
@if ($loop->iteration>1)
<div class="ly_line"></div>
@endif
<div class="ly_item">
<div class="ly_n_lbar ly_fl">
<div class="ly_pic"><a href="{{ route('article.show',$new) }}"> <img src="{{ $info->get_one_cover() }}" width="145" height="103"/></a>
</div>
</div>
<div class="ly_n_rbar ly_fr">
<h3><a href="#">{{ $new->title }}</a></h3>
<div class="ly_date">{{ $new->created_at }}</div>
<div class="ly_intro">
{{ $new->description }}
</div>
</div>
<div class="lyg_clear"></div>
</div>
@endforeach
</div>
</div>
</div>
<div class="lyg_clear"></div>
</div>
<div class="lyg_blank25"></div>
<div class="lyg_blank25"></div>
<!-- 产品展示 -->
<div class="ly_main_b">
<div class="lyg_blank25"></div>
<div class="lyg_blank15"></div>
<div class="ly_product_bar">
<h2><a class="ly_more" href="{{ route('category.show',17) }}">查看更多</a><span>科学研究与特色品牌建设</span> </h2>
<div class="lyg_blank25"></div>
<div class="ly_content">
<div class="ly_relative">
<div class="product_list">
@foreach ($kxyts as $new)
<div class="ly_items">
<div class="ly_pic">
<a href="{{ route('article.show',$new) }}">
<img src="{{ $new->get_one_cover() }}" width="218" height="218"/>
</a>
</div>
<div class="ly_pro_box">
<h3><a href="{{ route('article.show',$new) }}">{{ $new->title }}</a></h3>
</div>
</div>
@endforeach
</div>
</div>
<div class="lyg_clear"></div>
</div>
</div>
</div>
<div class="lyg_blank25"></div>
<div class="lyg_blank15"></div>
<!--案例展示-->
<div class="ly_main_b">
<div class="ly_product_bar gundong_">
<h2><a class="ly_more" href="{{ route('category.show',43) }}">查看更多</a><span>创新团队</span></h2>
<div class="lyg_blank25"></div>
<div class="ly_content">
<a class="ly_left_btn" href="javascript:;"></a><a class="ly_right_btn" href="javascript:;"></a>
<div class="ly_relative">
<div class="ly_absolute">
@foreach ($kxyts as $new)
<div class="ly_item">
<div class="ly_pic"><a href="{{ route('article.show',$new) }}"> <img src="{{ $new->get_one_cover() }}" width="196" height="196"/></a>
</div>
<div class="ly_pro_box">
<h3><a href="{{ route('article.show',$new) }}">{{ $new->title }}</a></h3>
<div class="ly_intro">
{{ $new->description }}
</div>
</div>
</div>
@endforeach
</div>
</div>
<div class="lyg_clear"></div>
</div>
</div>
</div>
</div>
</div>
<div class="linkbox">
<div class="linkL">
<p class="p1">友情链接</p>
<p class="p2">Links</p>
</div>
<div class="linkR">
@foreach ($links as $element)
<a href="{{ $element->url }}"> {{ $element->title }}</a>
@endforeach
</div>
</div>
@endsection
@section('script')
<script src="{{ asset('assets/index/js/jquery.flexslider-min.js') }}"></script>
<script>
$(function () {
web_obj.slide('.gundong_', {
items: '.ly_item',
seenum: 5,
slidenum: 5,
leftbtn: '.ly_left_btn',
rightbtn: '.ly_right_btn'
});
$('.banner').flexslider({
directionNav: true,
pauseOnAction: false
});
})
</script>
@endsection

View File

@@ -0,0 +1,75 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>{{ config('app.name', '') }} </title>
<link rel="stylesheet" href="{{ asset('assets/index/css/style.css') }}?{{ time() }}" type="text/css"/>
<!--[if IE 6]>
<script type='text/javascript' src='js/dd_belatedpng.js'></script>
<![endif]-->
</head>
<body>
<div id="ly_header" class="ly_min">
<div class="ly_wrap">
<div class="ly_lbar ly_fl">
<div id="ly_logo"><a href="/"> <img src="/assets/index/images/logo.jpg"/> <span></span> </a></div>
</div>
<div class="ly_rbar ly_fr">
<div class="ly_tel">
<div class="ly_name">电话热线</div>
<div class="ly_value">{{ config('mobile') }}</div>
</div>
</div>
<div class="ly_cbar ly_fr">
</div>
<div class="lyg_clear"></div>
</div>
</div>
<!--导航-->
<div id="ly_menu">
<div class="ly_wrap">
<div class="lyg_fir "><a href="/">网站首页</a></div>
@foreach ($all_categorys as $cate)
<div class="lyg_fir @if (isset($category) && $cate->id==$category->id) lyg_current @endif">
<a href="{{ route('category.show',$cate) }}">{{ $cate->title }}</a>
</div>
@endforeach
<div class="lyg_clear"></div>
</div>
</div>
@section('content')
@show
<div class="lyg_blank25"></div>
<div class="lyg_blank25"></div>
{{-- 底部 --}}
<div id="ly_footer" class="ly_min">
<div class="ly_wrap">
<div class="ly_lbar ly_fl">
<div class="ly_logo">
<img src="/assets/index/images/f_logo.png"/>
</div>
</div>
<div class="ly_cbar ly_fl">
<div class="ly_copyright">
地址:{{ config('address')}} 邮件:{{ config('email')}} <br>
电话:{{ config('mobile')}} 传真:{{ config('mobile')}} 邮编:{{ config('postcode')}}<br>
{{ config('name')}} 版权所有 (C)2010 All Right Reserved 黑ICP备10000021号
</div>
<div class="lyg_support"></div>
</div>
<div class="lyg_clear"></div>
</div>
</div>
<script type="text/javascript" src="{{ asset('assets/index/js/jquery-1.8.2.min.js') }}"/></script>
<script type="text/javascript" src="{{ asset('assets/index/js/web.js') }}"/></script>
<script type="text/javascript" src="{{ asset('assets/index/js/gundong.js') }}"/></script>
@yield('script')
</body>
</html>

View File

@@ -0,0 +1,50 @@
@if ($paginator->hasPages())
<form action="{{ url()->current() }}" method="get" accept-charset="utf-8">
<div class="Page clearfix">
{{-- Previous Page Link --}}
@if ($paginator->onFirstPage())
<li class="page-item disabled" aria-disabled="true" aria-label="@lang('pagination.previous')">
<span class="page-link" aria-hidden="true">上一页</span>
</li>
@else
<li class="page-item">
<a class="page-link" href="{{ $paginator->previousPageUrl() }}" rel="prev" aria-label="@lang('pagination.previous')">上一页</a>
</li>
@endif
{{-- Pagination Elements --}}
@foreach ($elements as $element)
{{-- "Three Dots" Separator --}}
@if (is_string($element))
<li class="page-item disabled" aria-disabled="true"><span class="page-link">{{ $element }}</span></li>
@endif
{{-- Array Of Links --}}
@if (is_array($element))
@foreach ($element as $page => $url)
@if ($page == $paginator->currentPage())
<li class="page-item active" aria-current="page"><span class="page-link">{{ $page }}</span></li>
@else
<li class="page-item"><a class="page-link" href="{{ $url }}">{{ $page }}</a></li>
@endif
@endforeach
@endif
@endforeach
{{-- Next Page Link --}}
@if ($paginator->hasMorePages())
<li class="page-item">
<a class="page-link" href="{{ $paginator->nextPageUrl() }}" rel="next" aria-label="@lang('pagination.next')">下一页</a>
</li>
@else
<li class="page-item disabled" aria-disabled="true" aria-label="@lang('pagination.next')">
<span class="page-link" aria-hidden="true">下一页</span>
</li>
@endif
<li class="page-item disabled" aria-disabled="true">
<span class="page-link" aria-hidden="true">{{ $paginator->total() }}</span>
</li>
</div>
</form>
@endif

View File

@@ -0,0 +1 @@

View File

@@ -0,0 +1,7 @@
<!-- 配置文件 -->
<script type="text/javascript" src="{{ asset('vendor/ueditor/ueditor.config.js') }}"></script>
<!-- 编辑器源码文件 -->
<script type="text/javascript" src="{{ asset('vendor/ueditor/ueditor.all.js') }}"></script>
<script>
window.UEDITOR_CONFIG.serverUrl = '{{ config('ueditor.route.name') }}'
</script>

View File

@@ -0,0 +1,100 @@
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Laravel</title>
<!-- Fonts -->
<link href="https://fonts.googleapis.com/css?family=Nunito:200,600" rel="stylesheet">
<!-- Styles -->
<style>
html, body {
background-color: #fff;
color: #636b6f;
font-family: 'Nunito', sans-serif;
font-weight: 200;
height: 100vh;
margin: 0;
}
.full-height {
height: 100vh;
}
.flex-center {
align-items: center;
display: flex;
justify-content: center;
}
.position-ref {
position: relative;
}
.top-right {
position: absolute;
right: 10px;
top: 18px;
}
.content {
text-align: center;
}
.title {
font-size: 84px;
}
.links > a {
color: #636b6f;
padding: 0 25px;
font-size: 13px;
font-weight: 600;
letter-spacing: .1rem;
text-decoration: none;
text-transform: uppercase;
}
.m-b-md {
margin-bottom: 30px;
}
</style>
</head>
<body>
<div class="flex-center position-ref full-height">
@if (Route::has('login'))
<div class="top-right links">
@auth
<a href="{{ url('/home') }}">Home</a>
@else
<a href="{{ route('login') }}">Login</a>
@if (Route::has('register'))
<a href="{{ route('register') }}">Register</a>
@endif
@endauth
</div>
@endif
<div class="content">
<div class="title m-b-md">
Laravel
</div>
<div class="links">
<a href="https://laravel.com/docs">Docs</a>
<a href="https://laracasts.com">Laracasts</a>
<a href="https://laravel-news.com">News</a>
<a href="https://blog.laravel.com">Blog</a>
<a href="https://nova.laravel.com">Nova</a>
<a href="https://forge.laravel.com">Forge</a>
<a href="https://vapor.laravel.com">Vapor</a>
<a href="https://github.com/laravel/laravel">GitHub</a>
</div>
</div>
</div>
</body>
</html>