init
This commit is contained in:
651
app/us/view/blog/blog.phtml
Executable file
651
app/us/view/blog/blog.phtml
Executable file
@@ -0,0 +1,651 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Blog-ORICO Global Site</title>
|
||||
{include file="include/head-seo" /}
|
||||
{include file="include/head" /}
|
||||
<script type="text/javascript">
|
||||
var navID = "1";</script>
|
||||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/weben/css/style2.css">
|
||||
<style>
|
||||
|
||||
/*blog_detail*/
|
||||
.content {
|
||||
width: 75%;
|
||||
margin: 2.5rem auto 8.75rem;
|
||||
}
|
||||
.blog_detail {
|
||||
width: calc(100% - 1.5rem - 25rem);
|
||||
height: auto;
|
||||
background: #ffffff;
|
||||
border: 1px solid #e8e8e8;
|
||||
float: left;
|
||||
margin-right: 1.25rem;
|
||||
}
|
||||
.blog_title {
|
||||
margin: 2.5rem;
|
||||
border-bottom: 1px solid #e8e8e8;
|
||||
padding-bottom: 2.5rem;
|
||||
}
|
||||
.blog_title h2 {
|
||||
font-size: 1.5rem;
|
||||
font-weight: bold;
|
||||
line-height: 2.125rem;
|
||||
color: #252525;
|
||||
margin-bottom: 1.0625rem;
|
||||
}
|
||||
.blog_title p {
|
||||
color: #929292;
|
||||
font-size: 0.875rem;
|
||||
line-height: 1.5rem;
|
||||
font-weight: 400;
|
||||
}
|
||||
.blog_content {
|
||||
margin: 2.5rem;
|
||||
}
|
||||
.blog_content p {
|
||||
font-size: 0.875rem;
|
||||
font-weight: 400;
|
||||
line-height: 1.75rem;
|
||||
color: #252525;
|
||||
margin-bottom: 0.625rem;
|
||||
}
|
||||
.blog_content img {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
margin-bottom: 0.625rem;
|
||||
}
|
||||
.share_box {
|
||||
width: 25rem;
|
||||
position: fixed;
|
||||
top: 130px;
|
||||
right: calc((100% - 75%) / 2);
|
||||
z-index: 10;
|
||||
}
|
||||
.blog_share {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
background: #ffffff;
|
||||
border: 1px solid #e8e8e8;
|
||||
float: left;
|
||||
}
|
||||
.blog_share h3 {
|
||||
font-size: 1rem;
|
||||
line-height: 2.125rem;
|
||||
color: #959595;
|
||||
font-weight: bold;
|
||||
padding: 1.25rem 1.875rem;
|
||||
border-bottom: 1px solid #e8e8e8;
|
||||
}
|
||||
.share_list {
|
||||
padding: 1.875rem;
|
||||
}
|
||||
.share_list li {
|
||||
float: left;
|
||||
width: 2.75rem;
|
||||
height: 2.75rem;
|
||||
margin-right: 3.125rem;
|
||||
}
|
||||
.share_list li:last-child {
|
||||
float: left;
|
||||
width: 2.75rem;
|
||||
height: 2.75rem;
|
||||
margin-right: 0;
|
||||
}
|
||||
.share_list li img {
|
||||
width: 2.75rem;
|
||||
height: 2.75rem;
|
||||
margin: 0 auto;
|
||||
display: block;
|
||||
}
|
||||
.repply {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
background: #ffffff;
|
||||
border: 1px solid #e8e8e8;
|
||||
float: left;
|
||||
margin-top: 1.25rem;
|
||||
}
|
||||
.repply h3 {
|
||||
font-size: 1rem;
|
||||
line-height: 2.125rem;
|
||||
color: #959595;
|
||||
font-weight: bold;
|
||||
padding: 1.25rem 1.875rem;
|
||||
border-bottom: 1px solid #e8e8e8;
|
||||
}
|
||||
.repply form {
|
||||
width: auto;
|
||||
height: auto;
|
||||
padding: 1.25rem;
|
||||
}
|
||||
.repply span {
|
||||
font-size: 0.875rem;
|
||||
font-weight: bold;
|
||||
}
|
||||
.repply input {
|
||||
width: 98%;
|
||||
height: 2rem !important;
|
||||
border: 1px solid #dbdbdb !important;
|
||||
margin-top: 0.625rem;
|
||||
margin-bottom: 0.625rem;
|
||||
}
|
||||
.comment_btn {
|
||||
margin: 1.25rem 1.25rem;
|
||||
width: auto;
|
||||
height: 2.75rem;
|
||||
line-height: 2.75rem;
|
||||
background: #009fdf;
|
||||
color: #ffffff;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
}
|
||||
.comment {
|
||||
background: #ffffff;
|
||||
width: 100%;
|
||||
margin-top: 2.5rem;
|
||||
padding-bottom: 1.875rem;
|
||||
border: 1px solid #e8e8e8;
|
||||
}
|
||||
.comment h3 {
|
||||
font-size: 1rem;
|
||||
line-height: 2.125rem;
|
||||
color: #959595;
|
||||
font-weight: bold;
|
||||
padding: 1.25rem 2.5rem;
|
||||
border-bottom: 1px solid #e8e8e8;
|
||||
}
|
||||
.comment_form {
|
||||
padding: 1.875rem 2.5rem;
|
||||
}
|
||||
.comment_form div {
|
||||
font-size: 0.875rem;
|
||||
font-weight: bold;
|
||||
color: #252525;
|
||||
float: left;
|
||||
width: calc((100% - 2.5rem) / 2);
|
||||
}
|
||||
.comment_form > div input {
|
||||
width: 100%;
|
||||
height: 2rem;
|
||||
border: 1px solid #dbdbdb !important;
|
||||
margin-top: 0.625rem;
|
||||
}
|
||||
.comment_area {
|
||||
width: 100% !important;
|
||||
}
|
||||
.comment_area textarea {
|
||||
width: 100%;
|
||||
margin-top: 0.625rem;
|
||||
}
|
||||
.comment_list {
|
||||
background: #ffffff;
|
||||
width: 100%;
|
||||
margin-top: 2.5rem;
|
||||
padding-bottom: 1.875rem;
|
||||
border: 1px solid #e8e8e8;
|
||||
}
|
||||
.comment_list h3 {
|
||||
font-size: 1rem;
|
||||
line-height: 2.125rem;
|
||||
color: #959595;
|
||||
font-weight: bold;
|
||||
padding: 1.25rem 2.5rem;
|
||||
border-bottom: 1px solid #e8e8e8;
|
||||
}
|
||||
.comment_list ul {
|
||||
padding: 1.875rem 2.5rem;
|
||||
}
|
||||
.comment_list ul li {
|
||||
margin-bottom: 3.125rem;
|
||||
}
|
||||
.comment_list ul li:last-child {
|
||||
margin-bottom: 0 !important;
|
||||
}
|
||||
.comment_list ul li > div {
|
||||
float: left;
|
||||
display: block;
|
||||
font-size: 1rem;
|
||||
}
|
||||
.comment_list ul li > div:first-child {
|
||||
width: 3.125rem;
|
||||
height: auto;
|
||||
margin-right: 1.25rem;
|
||||
}
|
||||
.comment_list ul li > div:last-child {
|
||||
width: calc(100% - 3.125rem - 1.25rem);
|
||||
height: auto;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 1440px) {
|
||||
.blog_list ul li:nth-of-type(3n) {
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 1200px) and (max-width: 1440px) {
|
||||
.blog_detail {
|
||||
width: 60%;
|
||||
}
|
||||
.blog_list ul li:nth-of-type(3n) {
|
||||
margin-right: 0;
|
||||
}
|
||||
.share_list li {
|
||||
width: calc((100% - 1.875rem) / 4);
|
||||
height: auto;
|
||||
margin-right: 0.5rem;
|
||||
}
|
||||
.share_list li img {
|
||||
width: 2.5rem;
|
||||
height: 2.5rem;
|
||||
}
|
||||
.share_box {
|
||||
width: 28%;
|
||||
position: fixed;
|
||||
top: 130px;
|
||||
right: calc((100% - 75%) / 2);
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 768px) and (max-width: 1200px) {
|
||||
.content {
|
||||
width: 91%;
|
||||
}
|
||||
.blog_detail {
|
||||
width: 60%;
|
||||
}
|
||||
.blog_list ul {
|
||||
width: 75%;
|
||||
margin: 0 auto;
|
||||
}
|
||||
.blog_list ul li {
|
||||
float: left;
|
||||
width: calc((100% - 2.8125rem) / 2);
|
||||
height: auto;
|
||||
margin-right: 2.8125rem;
|
||||
}
|
||||
.blog_list ul li:nth-of-type(even) {
|
||||
margin-right: 0;
|
||||
}
|
||||
.blog_list ul li img {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
.detail_box {
|
||||
margin-top: 80px;
|
||||
}
|
||||
.share_box {
|
||||
width: 34%;
|
||||
position: fixed;
|
||||
top: 130px;
|
||||
right: calc((100% - 60% - 28% - 1.25rem) / 2);
|
||||
}
|
||||
.blog_share {
|
||||
width: 100%;
|
||||
}
|
||||
.share_list li {
|
||||
width: calc((100% - 1.875rem) / 4);
|
||||
height: auto;
|
||||
margin-right: 0.5rem;
|
||||
}
|
||||
.share_list li img {
|
||||
width: 2.5rem;
|
||||
height: 2.5rem;
|
||||
}
|
||||
.repply {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
/*点击弹框*/
|
||||
.popup-quick {
|
||||
width: 48rem;
|
||||
position: fixed;
|
||||
top: 35%;
|
||||
margin-top: -235px;
|
||||
left: 45%;
|
||||
margin-left: -235px;
|
||||
background-color: #fff;
|
||||
z-index: 9999;
|
||||
box-shadow: 0px 2px 5px rgba(255, 255, 255, 0.2);
|
||||
color: #333;
|
||||
border-radius: 0.05rem;
|
||||
}
|
||||
.popup-quick .popup-app {
|
||||
font-size: 0.14rem;
|
||||
color: #333;
|
||||
line-height: 22px;
|
||||
padding: 30px 40px;
|
||||
text-align: center;
|
||||
}
|
||||
.popup-quick .business-close {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
position: absolute;
|
||||
top: 20px;
|
||||
right: 20px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.popup-quick .popup-business-logo img {
|
||||
width: 1.5rem;
|
||||
height: 1.5rem;
|
||||
margin-left: 0.9rem;
|
||||
}
|
||||
.title-text {
|
||||
font-size: 26px;
|
||||
color: #101010;
|
||||
font-weight: 600;
|
||||
text-align: center;
|
||||
padding: 34px 0;
|
||||
}
|
||||
.marsk-container {
|
||||
background: rgba(0, 0, 0, 0.8);
|
||||
display: none;
|
||||
position: absolute;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
right: 0;
|
||||
left: 0;
|
||||
bottom: 0px;
|
||||
z-index: 999;
|
||||
}
|
||||
.detail_form input {
|
||||
height: 2.75rem;
|
||||
line-height: 2.75rem;
|
||||
padding: 0 0.625rem;
|
||||
margin-top: 0.625rem;
|
||||
border: 1px solid #dbdbdb;
|
||||
display: inline-block;
|
||||
}
|
||||
.detail_form select {
|
||||
height: 2.75rem;
|
||||
line-height: 2.75rem;
|
||||
padding: 0 0.625rem;
|
||||
margin-top: 0.625rem;
|
||||
border: 1px solid #dbdbdb;
|
||||
display: inline-block;
|
||||
}
|
||||
.detail_form textarea {
|
||||
padding: 0.225rem 0.5rem;
|
||||
margin-top: 0.625rem;
|
||||
border: 1px solid #dbdbdb;
|
||||
display: inline-block;
|
||||
}
|
||||
.apply_form textarea {
|
||||
padding: 0.225rem;
|
||||
margin-top: 0.625rem;
|
||||
border: 1px solid #dbdbdb;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.detail-w {
|
||||
width: 40%;
|
||||
}
|
||||
.detail-w02 {
|
||||
width: 45%;
|
||||
}
|
||||
.detail-w01 {
|
||||
width: 90%;
|
||||
}
|
||||
.detail-w02 {
|
||||
width: 100%;
|
||||
}
|
||||
.detail_form .name > div {
|
||||
float: left;
|
||||
width: calc((100% - 1.25rem) / 2);
|
||||
}
|
||||
|
||||
/*odm*/
|
||||
.email-odm-w {
|
||||
background: #fff;
|
||||
width: 62.5%;
|
||||
margin: auto;
|
||||
clear: both;
|
||||
padding: 0.05rem 0;
|
||||
}
|
||||
.news-odm {
|
||||
background: #3bafe3;
|
||||
margin: 50px 0;
|
||||
padding: 6rem 0;
|
||||
}
|
||||
/*submission!*/
|
||||
.submission {
|
||||
width: 100%;
|
||||
margin: auto;
|
||||
text-align: center;
|
||||
}
|
||||
.submiss-content h3 {
|
||||
font-size: 24px;
|
||||
color: #333;
|
||||
line-height: 30px;
|
||||
padding: 24px 0 18px;
|
||||
}
|
||||
.submiss-p {
|
||||
font-size: 20px;
|
||||
color: #333;
|
||||
}
|
||||
.submiss-u-p {
|
||||
padding: 46px 0 140px;
|
||||
font-size: 18px;
|
||||
}
|
||||
.submiss-blue {
|
||||
color: #009fdf;
|
||||
border-bottom: 1px solid #009fdf;
|
||||
}
|
||||
/*question*/
|
||||
.ques-r {
|
||||
position: relative;
|
||||
}
|
||||
.ques-a {
|
||||
position: absolute;
|
||||
top: 40%;
|
||||
left: 20%;
|
||||
color: #fff;
|
||||
}
|
||||
.ques-a h3 {
|
||||
font-size: 48px;
|
||||
padding-bottom: 24px;
|
||||
}
|
||||
.ques-a p {
|
||||
font-size: 18px;
|
||||
width: 65%;
|
||||
line-height: 24px;
|
||||
font-weight: 100;
|
||||
}
|
||||
.ques_title {
|
||||
width: 43.75rem;
|
||||
line-height: 2rem;
|
||||
text-align: center;
|
||||
padding: 3.125rem 0;
|
||||
font-size: 1.5rem;
|
||||
font-weight: bold;
|
||||
color: #000000;
|
||||
}
|
||||
.ques_title p {
|
||||
font-size: 16px;
|
||||
line-height: 18px;
|
||||
font-weight: 100;
|
||||
padding: 20px 0;
|
||||
color: #707070;
|
||||
}
|
||||
.ques-select {
|
||||
height: 45px;
|
||||
margin-top: 10px;
|
||||
border: 1px solid #dbdbdb;
|
||||
}
|
||||
select {
|
||||
appearance: none;
|
||||
-webkit-appearance: none; /*去除chrome浏览器的默认下拉图片*/
|
||||
-moz-appearance: none; /*去除Firefox浏览器的默认下拉图片*/
|
||||
background: url('../images/select-down.png') no-repeat right center;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
padding: 0 5px;
|
||||
text-overflow: '';
|
||||
}
|
||||
.ques-select::after {
|
||||
/* arrow icon for select element */
|
||||
content: '';
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
right: 16px;
|
||||
top: 50%;
|
||||
margin-top: -8px;
|
||||
display: block;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
background: url('../images/blog/cd-icon-arrow.svg') no-repeat center center;
|
||||
pointer-events: none;
|
||||
}
|
||||
/*upload*/
|
||||
.img_box ul {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.img_box ul li {
|
||||
float: left;
|
||||
width: 20%;
|
||||
margin-right: 2.5%;
|
||||
margin-top: 1em;
|
||||
padding: 20% 0 0;
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
}
|
||||
.img_box ul li img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: block;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.img_box ul .add_btn {
|
||||
border: 1px solid #e5e5e5;
|
||||
background: url(../images/add.png) no-repeat 50% 50%;
|
||||
cursor: pointer;
|
||||
border-radius: 3px;
|
||||
}
|
||||
.img_box ul .del {
|
||||
position: absolute;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
line-height: 15px;
|
||||
text-align: center;
|
||||
font-size: 1.5em;
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
color: #fff;
|
||||
right: 0;
|
||||
top: 0;
|
||||
font-style: inherit;
|
||||
cursor: pointer;
|
||||
}
|
||||
/*upload- E*/
|
||||
.question_btn {
|
||||
margin: 3rem auto 5.625rem;
|
||||
width: 15rem;
|
||||
height: 2.5rem;
|
||||
line-height: 2.5rem;
|
||||
background: #009fdf;
|
||||
color: #ffffff;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<!--top-->
|
||||
<header class="header-PC header-Index">
|
||||
<div id="header" class="theme-white">
|
||||
{include file="include/top" /}
|
||||
{include file="include/top-header" /}
|
||||
</div>
|
||||
</header>
|
||||
{include file="include/top-header-mobile" /}
|
||||
|
||||
|
||||
<!--top End-->
|
||||
|
||||
|
||||
<!-- 轮播 s -->
|
||||
<div class="homeban">
|
||||
<div class="bd">
|
||||
<ul>
|
||||
<li><img src="__PUBLIC__/weben/images/blog/blog.png"/></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 轮播 e -->
|
||||
<div class="swt-Container">
|
||||
<div class="news-vertu">
|
||||
<div class="tab">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- 轮播 e -->
|
||||
|
||||
|
||||
|
||||
<!-- 轮播 s >
|
||||
<div class="homeban banner-other">
|
||||
<div class="bd">
|
||||
<ul>
|
||||
<li><a href="#"><img src="__PUBLIC__/weben/images/blog/blog.png"/></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 轮播 e ---->
|
||||
|
||||
<!-- Blog列表 s -->
|
||||
<div class="search_box">
|
||||
<i class="search_icon"></i>
|
||||
<input type="text" placeholder="Search blog articles" class="search" id="bg-search-in" value="<?php if(isset($search['name'])){ echo $search['name'];}?>"/>
|
||||
</div>
|
||||
<div class="blog_list">
|
||||
<?php if ($list): ?>
|
||||
<ul class="clearfix">
|
||||
<?php foreach ($list as $detail): ?>
|
||||
<li>
|
||||
<a href="<?php echo '/us/blog/detail/id/'.$detail['id'];?>.html">
|
||||
<img src="<?php echo getImage($detail['icon'], 951, 459, 6); ?>" />
|
||||
<h3><?php echo $detail['title']; ?></h3>
|
||||
<p><?php echo $detail['seo_description']; ?></p>
|
||||
</a>
|
||||
<span class="blue"><?php echo date("M d, Y", strtotime($detail['add_time'])); ?></span>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
|
||||
<!-- 分页 s -->
|
||||
<?php
|
||||
if ($page) {
|
||||
echo $page;
|
||||
}
|
||||
?>
|
||||
<!-- 分页 e -->
|
||||
</ul>
|
||||
<?php else: ?>
|
||||
<div class="content">No Result!</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<!-- Blog列表 e -->
|
||||
<script>
|
||||
var type = 'Blog';
|
||||
|
||||
//点击创建申请块
|
||||
$(function(){
|
||||
$('#bg-search-in').click(function(){
|
||||
var skeyword = $("#bg-search-in").val();
|
||||
if (skeyword) {
|
||||
var href = "?name=" + encodeURIComponent(skeyword);
|
||||
location.href = href;
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<!-- bottom s -->
|
||||
{include file="include/bottom" /}
|
||||
<!-- bottom e -->
|
||||
</body>
|
||||
</html>
|
||||
202
app/us/view/blog/detail.phtml
Executable file
202
app/us/view/blog/detail.phtml
Executable file
@@ -0,0 +1,202 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
{include file="include/head-seo" /}
|
||||
{include file="include/head" /}
|
||||
<script type="text/javascript">
|
||||
var navID = "1";
|
||||
</script>
|
||||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/weben/css/style2.css">
|
||||
|
||||
|
||||
<!-- twitter分享 -->
|
||||
<meta property="twitter:url" content="<?php echo $curUrl;?>"/>
|
||||
<meta name="twitter:title" content="This is title"/>
|
||||
<meta name="twitter:description" content="This is desc"/>
|
||||
<meta name="twitter:site" content="<?php echo $curUrl;?>">
|
||||
<meta name="twitter:card" content="summary_large_image"/>
|
||||
<meta name="twitter:image" content="http://gg.chendahai.cn/static/image/apple.jpg"/>
|
||||
|
||||
<!-- facebook分享 -->
|
||||
<meta property="og:url" content="<?php echo $curUrl;?>"/>
|
||||
<meta property="og:title" content="This is my plan,let's play together"/>
|
||||
<meta property="og:description" content="This is my plan,let's play together"/>
|
||||
<meta property="og:image" content="http://gg.chendahai.cn/static/image/apple.jpg"/>
|
||||
<meta property="og:type" content="website"/>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<!--top-->
|
||||
<header class="header-PC header-Product">
|
||||
<div id="header" class="theme-black">
|
||||
{include file="include/top" /}
|
||||
{include file="include/top-header" /}
|
||||
</div>
|
||||
</header>
|
||||
{include file="include/top-header-mobile" /}
|
||||
|
||||
<!--top End-->
|
||||
|
||||
<!-- 详情页 s -->
|
||||
<div class="content">
|
||||
<input type="hidden" value="<?php echo $blog['id'];?>" class="b_id">
|
||||
<div class="detail_box clearfix">
|
||||
<div class="blog_detail" style="margin-top:.625rem">
|
||||
<div class="blog_title">
|
||||
<h2><?php if($blog['title']) {echo $blog['title'];} else{echo "Best USB-C Docking Station for PC/Laptop/IOS/Windows in 2021";}?></h2>
|
||||
<p>Posted on <?php if($blog['add_time']) {echo date("M d, Y",strtotime($blog['add_time']));} else{echo "May 17, 2021";}?></p>
|
||||
</div>
|
||||
<div class="blog_content">
|
||||
<?php echo $blog['content'];?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="share_box">
|
||||
<div class="blog_share">
|
||||
<h3>SHARE</h3>
|
||||
<ul class="share_list clearfix">
|
||||
<!-- Go to www.addthis.com/dashboard to customize your tools -->
|
||||
|
||||
<li><a target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=<?php echo $curUrl;?>&t=<?php echo time();?>"><img src="/frontend/weben/images/blog/share1.png"/></a></li>
|
||||
<li><a target="_blank" href="https://www.linkedin.com/shareArticle?mini=true&ro=true&title=<?php echo $seo_title;?>&url=<?php echo $curUrl;?>&source=&summary=&armin=armin"><img src="/frontend/weben/images/blog/share2.png"/></a></li>
|
||||
<li><a target="_blank" href="http://www.facebook.com/sharer/sharer.php?u=<?php echo $curUrl;?>"><img src="/frontend/weben/images/blog/share3.png"/></a></li>
|
||||
<li><a href="http://www.reddit.com/submit?url=<?php echo $curUrl;?>&title=<?php echo $seo_title;?>" rel="nofollow" title="submit to reddit" target="_blank"><img src="/frontend/weben/images/blog/share4.png"/></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="repply">
|
||||
<h3>Leave a Reply</h3>
|
||||
<form>
|
||||
<span>Name</span>
|
||||
<input class="new_name" type="text" name="name" style="text-indent: 10px;"/>
|
||||
<span>Email</span>
|
||||
<input class="new_email" type="email" name="email" style="text-indent: 10px; margin-bottom:0;"/>
|
||||
<p style="color: #C6C7C9; font-size: 0.75rem; margin-bottom: 0.625rem;">Your email address will not be pulished.</p>
|
||||
<span>Comment</span>
|
||||
<textarea class="new_comment" rows="3" style="text-indent: 10px;width: 98%; margin-top: 0.625rem;margin-bottom: 0.625rem;border: 1px solid #DBDBDB !important;" name="comment"></textarea>
|
||||
<div class="comment_btn" style="color:#ffffff;">POST COMMENT</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="comment">
|
||||
<h3>Leave a Comment</h3>
|
||||
<form class="comment_form clearfix">
|
||||
<div style="margin-right: 2.5rem;">Name:<br/>
|
||||
<input class="new_name" type="text" name="name" style="text-indent: 10px;"/>
|
||||
</div>
|
||||
<div>Email:<br/>
|
||||
<input class="new_email" type="email" name="email" style="text-indent: 10px;"/>
|
||||
<p style="color: #C6C7C9; font-size: 0.75rem; margin-bottom: 0.625rem; font-weight: 400;">Your email address will not be pulished.</p>
|
||||
</div>
|
||||
<div class="comment_area">Comment:<br/>
|
||||
<textarea class="new_comment" style="text-indent: 10px;height: 8.125rem;border: 1px solid #DBDBDB !important;" name="comment"></textarea>
|
||||
</div>
|
||||
<div class="comment_btn" style="width: 21.25rem; margin-left: 2.5rem;color:#ffffff;">POST COMMENT</div>
|
||||
</form>
|
||||
</div>
|
||||
<?php if ($list): ?>
|
||||
<div class="comment_list">
|
||||
<h3>Showing <?php echo $total;?> Comments</h3>
|
||||
<ul>
|
||||
<?php foreach ($list as $ks=> $detail): ?>
|
||||
<li class="clearfix">
|
||||
<div><img src="/frontend/weben/images/avatar/<?php echo $counts[$ks];?>.png" /></div>
|
||||
<div>
|
||||
<p style=" font-weight: bold;"><?php echo $detail['name'];?><span style="font-size: 0.75rem; color: #A9A9A9; margin-left: 0.625rem;">· <?php echo date("M d, Y", strtotime($detail['add_time'])); ?></span></p>
|
||||
<p style=" font-weight: 400; margin-top: 0.625rem;"><?php echo $detail['content'];?></p>
|
||||
</div>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
|
||||
</ul>
|
||||
|
||||
<!-- 分页 s -->
|
||||
<?php
|
||||
if ($page) {
|
||||
echo $page;
|
||||
}
|
||||
?>
|
||||
<!-- 分页 e -->
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<script>
|
||||
|
||||
|
||||
$(function(){
|
||||
//悬浮表单
|
||||
$(window).scroll(function(){
|
||||
var s_top = Number($(this).scrollTop()); // 获取滚动条,滚动刻度
|
||||
var showTop = Number($(".share_box").height());
|
||||
|
||||
var pTop = Number($(".comment").offset().top);
|
||||
|
||||
if((pTop-s_top-80) >= showTop ){
|
||||
$(".share_box").removeAttr("style"); // 删除属性,让他释放
|
||||
|
||||
}else{
|
||||
//nsole.log(s_top,showTop,pTop,$(window).scrollTop());
|
||||
|
||||
$('.share_box').css("position","absolute"); // 添加属性,让他固定
|
||||
$('.share_box').css('top',pTop-showTop-20);
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
// 提交表单
|
||||
$('.comment_btn').click(function(){
|
||||
var new_name = $(this).parents('form').find('.new_name').val();
|
||||
var new_email = $(this).parents('form').find('.new_email').val();
|
||||
var new_comment = $(this).parents('form').find('.new_comment').val();
|
||||
|
||||
if(new_name=='') {
|
||||
alert("The Name is Empty!");
|
||||
return false;
|
||||
}
|
||||
|
||||
if(new_comment=='') {
|
||||
alert("The Comment is Empty!");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
if (/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/.test(new_email) == false) {
|
||||
alert("The Email format is not correct!");
|
||||
return false;
|
||||
}
|
||||
|
||||
var bid = "<?php echo $blog['id'];?>";
|
||||
//点击创建申请块
|
||||
if(new_name && new_email && new_comment && bid) {
|
||||
var type = 'Agent';
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "/us/blog/addcomment",
|
||||
data: {'name':new_name, 'email':new_email,'comment':new_comment,'b_id':bid},
|
||||
dataType: "json",
|
||||
success: function(data){
|
||||
if(data.code == 200) {
|
||||
alert(data.msg);
|
||||
$(".content input").val("");
|
||||
$(".new_comment").val("");
|
||||
}
|
||||
else{
|
||||
alert(data.msg);
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
})
|
||||
})
|
||||
</script>
|
||||
<!-- bottom s -->
|
||||
{include file="include/bottom" /}
|
||||
<!-- bottom e -->
|
||||
</body>
|
||||
</html>
|
||||
652
app/us/view/blog/index.phtml
Executable file
652
app/us/view/blog/index.phtml
Executable file
@@ -0,0 +1,652 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Blog-ORICO Global Site</title>
|
||||
{include file="include/head-seo" /}
|
||||
{include file="include/head" /}
|
||||
<script type="text/javascript">
|
||||
var navID = "1";</script>
|
||||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/weben/css/style2.css">
|
||||
<style>
|
||||
|
||||
/*blog_detail*/
|
||||
.content {
|
||||
width: 75%;
|
||||
margin: 2.5rem auto 8.75rem;
|
||||
}
|
||||
.blog_detail {
|
||||
width: calc(100% - 1.5rem - 25rem);
|
||||
height: auto;
|
||||
background: #ffffff;
|
||||
border: 1px solid #e8e8e8;
|
||||
float: left;
|
||||
margin-right: 1.25rem;
|
||||
}
|
||||
.blog_title {
|
||||
margin: 2.5rem;
|
||||
border-bottom: 1px solid #e8e8e8;
|
||||
padding-bottom: 2.5rem;
|
||||
}
|
||||
.blog_title h2 {
|
||||
font-size: 1.5rem;
|
||||
font-weight: bold;
|
||||
line-height: 2.125rem;
|
||||
color: #252525;
|
||||
margin-bottom: 1.0625rem;
|
||||
}
|
||||
.blog_title p {
|
||||
color: #929292;
|
||||
font-size: 0.875rem;
|
||||
line-height: 1.5rem;
|
||||
font-weight: 400;
|
||||
}
|
||||
.blog_content {
|
||||
margin: 2.5rem;
|
||||
}
|
||||
.blog_content p {
|
||||
font-size: 0.875rem;
|
||||
font-weight: 400;
|
||||
line-height: 1.75rem;
|
||||
color: #252525;
|
||||
margin-bottom: 0.625rem;
|
||||
}
|
||||
.blog_content img {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
margin-bottom: 0.625rem;
|
||||
}
|
||||
.share_box {
|
||||
width: 25rem;
|
||||
position: fixed;
|
||||
top: 130px;
|
||||
right: calc((100% - 75%) / 2);
|
||||
z-index: 10;
|
||||
}
|
||||
.blog_share {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
background: #ffffff;
|
||||
border: 1px solid #e8e8e8;
|
||||
float: left;
|
||||
}
|
||||
.blog_share h3 {
|
||||
font-size: 1rem;
|
||||
line-height: 2.125rem;
|
||||
color: #959595;
|
||||
font-weight: bold;
|
||||
padding: 1.25rem 1.875rem;
|
||||
border-bottom: 1px solid #e8e8e8;
|
||||
}
|
||||
.share_list {
|
||||
padding: 1.875rem;
|
||||
}
|
||||
.share_list li {
|
||||
float: left;
|
||||
width: 2.75rem;
|
||||
height: 2.75rem;
|
||||
margin-right: 3.125rem;
|
||||
}
|
||||
.share_list li:last-child {
|
||||
float: left;
|
||||
width: 2.75rem;
|
||||
height: 2.75rem;
|
||||
margin-right: 0;
|
||||
}
|
||||
.share_list li img {
|
||||
width: 2.75rem;
|
||||
height: 2.75rem;
|
||||
margin: 0 auto;
|
||||
display: block;
|
||||
}
|
||||
.repply {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
background: #ffffff;
|
||||
border: 1px solid #e8e8e8;
|
||||
float: left;
|
||||
margin-top: 1.25rem;
|
||||
}
|
||||
.repply h3 {
|
||||
font-size: 1rem;
|
||||
line-height: 2.125rem;
|
||||
color: #959595;
|
||||
font-weight: bold;
|
||||
padding: 1.25rem 1.875rem;
|
||||
border-bottom: 1px solid #e8e8e8;
|
||||
}
|
||||
.repply form {
|
||||
width: auto;
|
||||
height: auto;
|
||||
padding: 1.25rem;
|
||||
}
|
||||
.repply span {
|
||||
font-size: 0.875rem;
|
||||
font-weight: bold;
|
||||
}
|
||||
.repply input {
|
||||
width: 98%;
|
||||
height: 2rem !important;
|
||||
border: 1px solid #dbdbdb !important;
|
||||
margin-top: 0.625rem;
|
||||
margin-bottom: 0.625rem;
|
||||
}
|
||||
.comment_btn {
|
||||
margin: 1.25rem 1.25rem;
|
||||
width: auto;
|
||||
height: 2.75rem;
|
||||
line-height: 2.75rem;
|
||||
background: #009fdf;
|
||||
color: #ffffff;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
}
|
||||
.comment {
|
||||
background: #ffffff;
|
||||
width: 100%;
|
||||
margin-top: 2.5rem;
|
||||
padding-bottom: 1.875rem;
|
||||
border: 1px solid #e8e8e8;
|
||||
}
|
||||
.comment h3 {
|
||||
font-size: 1rem;
|
||||
line-height: 2.125rem;
|
||||
color: #959595;
|
||||
font-weight: bold;
|
||||
padding: 1.25rem 2.5rem;
|
||||
border-bottom: 1px solid #e8e8e8;
|
||||
}
|
||||
.comment_form {
|
||||
padding: 1.875rem 2.5rem;
|
||||
}
|
||||
.comment_form div {
|
||||
font-size: 0.875rem;
|
||||
font-weight: bold;
|
||||
color: #252525;
|
||||
float: left;
|
||||
width: calc((100% - 2.5rem) / 2);
|
||||
}
|
||||
.comment_form > div input {
|
||||
width: 100%;
|
||||
height: 2rem;
|
||||
border: 1px solid #dbdbdb !important;
|
||||
margin-top: 0.625rem;
|
||||
}
|
||||
.comment_area {
|
||||
width: 100% !important;
|
||||
}
|
||||
.comment_area textarea {
|
||||
width: 100%;
|
||||
margin-top: 0.625rem;
|
||||
}
|
||||
.comment_list {
|
||||
background: #ffffff;
|
||||
width: 100%;
|
||||
margin-top: 2.5rem;
|
||||
padding-bottom: 1.875rem;
|
||||
border: 1px solid #e8e8e8;
|
||||
}
|
||||
.comment_list h3 {
|
||||
font-size: 1rem;
|
||||
line-height: 2.125rem;
|
||||
color: #959595;
|
||||
font-weight: bold;
|
||||
padding: 1.25rem 2.5rem;
|
||||
border-bottom: 1px solid #e8e8e8;
|
||||
}
|
||||
.comment_list ul {
|
||||
padding: 1.875rem 2.5rem;
|
||||
}
|
||||
.comment_list ul li {
|
||||
margin-bottom: 3.125rem;
|
||||
}
|
||||
.comment_list ul li:last-child {
|
||||
margin-bottom: 0 !important;
|
||||
}
|
||||
.comment_list ul li > div {
|
||||
float: left;
|
||||
display: block;
|
||||
font-size: 1rem;
|
||||
}
|
||||
.comment_list ul li > div:first-child {
|
||||
width: 3.125rem;
|
||||
height: auto;
|
||||
margin-right: 1.25rem;
|
||||
}
|
||||
.comment_list ul li > div:last-child {
|
||||
width: calc(100% - 3.125rem - 1.25rem);
|
||||
height: auto;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 1440px) {
|
||||
.blog_list ul li:nth-of-type(3n) {
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 1200px) and (max-width: 1440px) {
|
||||
.blog_detail {
|
||||
width: 60%;
|
||||
}
|
||||
.blog_list ul li:nth-of-type(3n) {
|
||||
margin-right: 0;
|
||||
}
|
||||
.share_list li {
|
||||
width: calc((100% - 1.875rem) / 4);
|
||||
height: auto;
|
||||
margin-right: 0.5rem;
|
||||
}
|
||||
.share_list li img {
|
||||
width: 2.5rem;
|
||||
height: 2.5rem;
|
||||
}
|
||||
.share_box {
|
||||
width: 28%;
|
||||
position: fixed;
|
||||
top: 130px;
|
||||
right: calc((100% - 75%) / 2);
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 768px) and (max-width: 1200px) {
|
||||
.content {
|
||||
width: 91%;
|
||||
}
|
||||
.blog_detail {
|
||||
width: 60%;
|
||||
}
|
||||
.blog_list ul {
|
||||
width: 75%;
|
||||
margin: 0 auto;
|
||||
}
|
||||
.blog_list ul li {
|
||||
float: left;
|
||||
width: calc((100% - 2.8125rem) / 2);
|
||||
height: auto;
|
||||
margin-right: 2.8125rem;
|
||||
}
|
||||
.blog_list ul li:nth-of-type(even) {
|
||||
margin-right: 0;
|
||||
}
|
||||
.blog_list ul li img {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
.detail_box {
|
||||
margin-top: 80px;
|
||||
}
|
||||
.share_box {
|
||||
width: 34%;
|
||||
position: fixed;
|
||||
top: 130px;
|
||||
right: calc((100% - 60% - 28% - 1.25rem) / 2);
|
||||
}
|
||||
.blog_share {
|
||||
width: 100%;
|
||||
}
|
||||
.share_list li {
|
||||
width: calc((100% - 1.875rem) / 4);
|
||||
height: auto;
|
||||
margin-right: 0.5rem;
|
||||
}
|
||||
.share_list li img {
|
||||
width: 2.5rem;
|
||||
height: 2.5rem;
|
||||
}
|
||||
.repply {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
/*点击弹框*/
|
||||
.popup-quick {
|
||||
width: 48rem;
|
||||
position: fixed;
|
||||
top: 35%;
|
||||
margin-top: -235px;
|
||||
left: 45%;
|
||||
margin-left: -235px;
|
||||
background-color: #fff;
|
||||
z-index: 9999;
|
||||
box-shadow: 0px 2px 5px rgba(255, 255, 255, 0.2);
|
||||
color: #333;
|
||||
border-radius: 0.05rem;
|
||||
}
|
||||
.popup-quick .popup-app {
|
||||
font-size: 0.14rem;
|
||||
color: #333;
|
||||
line-height: 22px;
|
||||
padding: 30px 40px;
|
||||
text-align: center;
|
||||
}
|
||||
.popup-quick .business-close {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
position: absolute;
|
||||
top: 20px;
|
||||
right: 20px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.popup-quick .popup-business-logo img {
|
||||
width: 1.5rem;
|
||||
height: 1.5rem;
|
||||
margin-left: 0.9rem;
|
||||
}
|
||||
.title-text {
|
||||
font-size: 26px;
|
||||
color: #101010;
|
||||
font-weight: 600;
|
||||
text-align: center;
|
||||
padding: 34px 0;
|
||||
}
|
||||
.marsk-container {
|
||||
background: rgba(0, 0, 0, 0.8);
|
||||
display: none;
|
||||
position: absolute;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
right: 0;
|
||||
left: 0;
|
||||
bottom: 0px;
|
||||
z-index: 999;
|
||||
}
|
||||
.detail_form input {
|
||||
height: 2.75rem;
|
||||
line-height: 2.75rem;
|
||||
padding: 0 0.625rem;
|
||||
margin-top: 0.625rem;
|
||||
border: 1px solid #dbdbdb;
|
||||
display: inline-block;
|
||||
}
|
||||
.detail_form select {
|
||||
height: 2.75rem;
|
||||
line-height: 2.75rem;
|
||||
padding: 0 0.625rem;
|
||||
margin-top: 0.625rem;
|
||||
border: 1px solid #dbdbdb;
|
||||
display: inline-block;
|
||||
}
|
||||
.detail_form textarea {
|
||||
padding: 0.225rem 0.5rem;
|
||||
margin-top: 0.625rem;
|
||||
border: 1px solid #dbdbdb;
|
||||
display: inline-block;
|
||||
}
|
||||
.apply_form textarea {
|
||||
padding: 0.225rem;
|
||||
margin-top: 0.625rem;
|
||||
border: 1px solid #dbdbdb;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.detail-w {
|
||||
width: 40%;
|
||||
}
|
||||
.detail-w02 {
|
||||
width: 45%;
|
||||
}
|
||||
.detail-w01 {
|
||||
width: 90%;
|
||||
}
|
||||
.detail-w02 {
|
||||
width: 100%;
|
||||
}
|
||||
.detail_form .name > div {
|
||||
float: left;
|
||||
width: calc((100% - 1.25rem) / 2);
|
||||
}
|
||||
|
||||
/*odm*/
|
||||
.email-odm-w {
|
||||
background: #fff;
|
||||
width: 62.5%;
|
||||
margin: auto;
|
||||
clear: both;
|
||||
padding: 0.05rem 0;
|
||||
}
|
||||
.news-odm {
|
||||
background: #3bafe3;
|
||||
margin: 50px 0;
|
||||
padding: 6rem 0;
|
||||
}
|
||||
/*submission!*/
|
||||
.submission {
|
||||
width: 100%;
|
||||
margin: auto;
|
||||
text-align: center;
|
||||
}
|
||||
.submiss-content h3 {
|
||||
font-size: 24px;
|
||||
color: #333;
|
||||
line-height: 30px;
|
||||
padding: 24px 0 18px;
|
||||
}
|
||||
.submiss-p {
|
||||
font-size: 20px;
|
||||
color: #333;
|
||||
}
|
||||
.submiss-u-p {
|
||||
padding: 46px 0 140px;
|
||||
font-size: 18px;
|
||||
}
|
||||
.submiss-blue {
|
||||
color: #009fdf;
|
||||
border-bottom: 1px solid #009fdf;
|
||||
}
|
||||
/*question*/
|
||||
.ques-r {
|
||||
position: relative;
|
||||
}
|
||||
.ques-a {
|
||||
position: absolute;
|
||||
top: 40%;
|
||||
left: 20%;
|
||||
color: #fff;
|
||||
}
|
||||
.ques-a h3 {
|
||||
font-size: 48px;
|
||||
padding-bottom: 24px;
|
||||
}
|
||||
.ques-a p {
|
||||
font-size: 18px;
|
||||
width: 65%;
|
||||
line-height: 24px;
|
||||
font-weight: 100;
|
||||
}
|
||||
.ques_title {
|
||||
width: 43.75rem;
|
||||
line-height: 2rem;
|
||||
text-align: center;
|
||||
padding: 3.125rem 0;
|
||||
font-size: 1.5rem;
|
||||
font-weight: bold;
|
||||
color: #000000;
|
||||
}
|
||||
.ques_title p {
|
||||
font-size: 16px;
|
||||
line-height: 18px;
|
||||
font-weight: 100;
|
||||
padding: 20px 0;
|
||||
color: #707070;
|
||||
}
|
||||
.ques-select {
|
||||
height: 45px;
|
||||
margin-top: 10px;
|
||||
border: 1px solid #dbdbdb;
|
||||
}
|
||||
select {
|
||||
appearance: none;
|
||||
-webkit-appearance: none; /*去除chrome浏览器的默认下拉图片*/
|
||||
-moz-appearance: none; /*去除Firefox浏览器的默认下拉图片*/
|
||||
background: url('../images/select-down.png') no-repeat right center;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
padding: 0 5px;
|
||||
text-overflow: '';
|
||||
}
|
||||
.ques-select::after {
|
||||
/* arrow icon for select element */
|
||||
content: '';
|
||||
position: absolute;
|
||||
z-index: 1;
|
||||
right: 16px;
|
||||
top: 50%;
|
||||
margin-top: -8px;
|
||||
display: block;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
background: url('../images/blog/cd-icon-arrow.svg') no-repeat center center;
|
||||
pointer-events: none;
|
||||
}
|
||||
/*upload*/
|
||||
.img_box ul {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.img_box ul li {
|
||||
float: left;
|
||||
width: 20%;
|
||||
margin-right: 2.5%;
|
||||
margin-top: 1em;
|
||||
padding: 20% 0 0;
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
}
|
||||
.img_box ul li img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: block;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.img_box ul .add_btn {
|
||||
border: 1px solid #e5e5e5;
|
||||
background: url(../images/add.png) no-repeat 50% 50%;
|
||||
cursor: pointer;
|
||||
border-radius: 3px;
|
||||
}
|
||||
.img_box ul .del {
|
||||
position: absolute;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
line-height: 15px;
|
||||
text-align: center;
|
||||
font-size: 1.5em;
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
color: #fff;
|
||||
right: 0;
|
||||
top: 0;
|
||||
font-style: inherit;
|
||||
cursor: pointer;
|
||||
}
|
||||
/*upload- E*/
|
||||
.question_btn {
|
||||
margin: 3rem auto 5.625rem;
|
||||
width: 15rem;
|
||||
height: 2.5rem;
|
||||
line-height: 2.5rem;
|
||||
background: #009fdf;
|
||||
color: #ffffff;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<!--top-->
|
||||
<header class="header-PC header-Index">
|
||||
<div id="header" class="theme-white">
|
||||
{include file="include/top" /}
|
||||
{include file="include/top-header" /}
|
||||
</div>
|
||||
</header>
|
||||
{include file="include/top-header-mobile" /}
|
||||
|
||||
|
||||
<!--top End-->
|
||||
|
||||
|
||||
<!-- 轮播 s -->
|
||||
<div class="homeban">
|
||||
<div class="bd">
|
||||
<ul>
|
||||
<li><img src="__PUBLIC__/weben/images/blog/blog.png"/></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 轮播 e -->
|
||||
<div class="swt-Container">
|
||||
<div class="news-vertu">
|
||||
<div class="tab">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- 轮播 e -->
|
||||
|
||||
|
||||
|
||||
<!-- 轮播 s >
|
||||
<div class="homeban banner-other">
|
||||
<div class="bd">
|
||||
<ul>
|
||||
<li><a href="#"><img src="__PUBLIC__/weben/images/blog/blog.png"/></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 轮播 e ---->
|
||||
|
||||
<!-- Blog列表 s -->
|
||||
<div class="search_box">
|
||||
<i class="search_icon"></i>
|
||||
<input type="text" placeholder="Search blog articles" class="search" id="bg-search-in" value="<?php if(isset($search['name'])){ echo $search['name'];}?>"/>
|
||||
</div>
|
||||
<div class="blog_list">
|
||||
<?php if ($list): ?>
|
||||
<ul class="clearfix">
|
||||
<?php foreach ($list as $detail): ?>
|
||||
<li>
|
||||
<a href="<?php echo '/us/blog/detail/id/'.$detail['id'];?>.html">
|
||||
<img src="<?php echo getImage($detail['icon'], 951, 459, 6); ?>" />
|
||||
<h3><?php echo $detail['title']; ?></h3>
|
||||
<p><?php echo $detail['seo_description']; ?></p>
|
||||
</a>
|
||||
<span class="blue"><?php echo date("M d, Y", strtotime($detail['add_time'])); ?></span>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
|
||||
<!-- 分页 s -->
|
||||
<?php
|
||||
if ($page) {
|
||||
echo $page;
|
||||
}
|
||||
?>
|
||||
<!-- 分页 e -->
|
||||
</ul>
|
||||
<?php else: ?>
|
||||
<div class="content">No Result!</div>
|
||||
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<!-- Blog列表 e -->
|
||||
<script>
|
||||
var type = 'Blog';
|
||||
|
||||
//点击创建申请块
|
||||
$(function(){
|
||||
$('#bg-search-in').click(function(){
|
||||
var skeyword = $("#bg-search-in").val();
|
||||
if (skeyword) {
|
||||
var href = "?name=" + encodeURIComponent(skeyword);
|
||||
location.href = href;
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<!-- bottom s -->
|
||||
{include file="include/bottom" /}
|
||||
<!-- bottom e -->
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user