init
This commit is contained in:
47
app/usmobile/view/antifake/anti_fake.phtml
Executable file
47
app/usmobile/view/antifake/anti_fake.phtml
Executable file
@@ -0,0 +1,47 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Check Your Product</title>
|
||||
{include file="include/head" /}
|
||||
<script type="text/javascript">
|
||||
var navID = "1";
|
||||
</script>
|
||||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_weben/css/subject/fake.css">
|
||||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/weben/css/montserrat.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="content">
|
||||
<!--头部-->
|
||||
{include file="include/top" /}
|
||||
<div class="margin-45">
|
||||
<div class="fake">
|
||||
<div class="fake_content">
|
||||
<div class="title">Check Your Product</div>
|
||||
</div>
|
||||
<div class="result_line"></div>
|
||||
<div class="fake_content">
|
||||
<div class="sub_title">Note: </div>
|
||||
<div class="des">Enter the anti-counterfeiting code to check the authenticity and detail of the product. If
|
||||
you
|
||||
enter SN code, it will only show the product information. For verify the authenticity of product then please
|
||||
click the button of "Enter the anti-counterfeiting code.</div>
|
||||
<div class="fake_button"><a href="__ORICOROOT__/antifake/anti_fake_sninput"><span
|
||||
class="fake_button_content">Enter S/N Code</span></a></div>
|
||||
<div class="fake_button"><a href="__ORICOROOT__/antifake/anti_fake_input"><span
|
||||
class="fake_button_content">Enter Anti-counterfeiting Code</span></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{include file="include/bottom" /}
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
59
app/usmobile/view/antifake/anti_fake_input.phtml
Executable file
59
app/usmobile/view/antifake/anti_fake_input.phtml
Executable file
@@ -0,0 +1,59 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Check Your Product</title>
|
||||
{include file="include/head" /}
|
||||
<script type="text/javascript">
|
||||
var navID = "1";
|
||||
</script>
|
||||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_weben/css/subject/fake.css">
|
||||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/weben/css/montserrat.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="content">
|
||||
<!--头部-->
|
||||
{include file="include/top" /}
|
||||
<div class="margin-top-90">
|
||||
<div class="fake">
|
||||
<div class="fake_content">
|
||||
<div class="query_title"><img src="__PUBLIC__/m_weben/images/anti_fake/security.png"
|
||||
class="sn_img">Anti-counterfeiting Code</div>
|
||||
</div>
|
||||
<div class="result_line"></div>
|
||||
<div class="fake_content">
|
||||
<form action="<?php echo url('antifake/anti_fake_result');?>" method="post" onsubmit="return check();">
|
||||
<div class="query_sub_title m-t-40">Anti-counterfeiting Code</div>
|
||||
<div class="query_des">
|
||||
<input placeholder="Please enter the anti-counterfeiting code" name="fake">
|
||||
</div>
|
||||
<div class="query_sub_title m-t-32">Where to get the anti-counterfeiting code</div>
|
||||
<div class="des">Anti-counterfeiting code can be seen on the label sticker of product (as is shown)</div>
|
||||
<div class="example img-responsives"><img src="__PUBLIC__/m_weben/images/anti_fake/security_code.png"></div>
|
||||
<button class="query_button" type="submit"><span class="fake_button_content">Check it</span>
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
|
||||
/*判断是否提交表单*/
|
||||
function check() {
|
||||
var sn = $("input[name='fake'").val().length;
|
||||
if(!sn ==8){
|
||||
alert('请输入8位数防伪码');
|
||||
return false; //return false; 时,表单不提交
|
||||
}else {
|
||||
return true; //return true; 时,表单提交
|
||||
}
|
||||
}
|
||||
</script>
|
||||
{include file="include/bottom" /}
|
||||
</div>
|
||||
<!--底部-->
|
||||
</body>
|
||||
|
||||
</html>
|
||||
81
app/usmobile/view/antifake/anti_fake_result.phtml
Executable file
81
app/usmobile/view/antifake/anti_fake_result.phtml
Executable file
@@ -0,0 +1,81 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Anti-counterfeiting code query result</title>
|
||||
{include file="include/head" /}
|
||||
<script type="text/javascript">
|
||||
var navID = "1";
|
||||
</script>
|
||||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_weben/css/subject/fake.css">
|
||||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/weben/css/montserrat.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="content">
|
||||
<!--头部-->
|
||||
{include file="include/top" /}
|
||||
|
||||
<div class="margin-top-90 overflow-h">
|
||||
<div class="result_title">Result</div>
|
||||
<div class="result_line"></div>
|
||||
<div class="result">
|
||||
<!--结果-->
|
||||
<?php if($data['result']==1){
|
||||
if($data['chicktime']!=date("Y-m-d H:i:s")){?>
|
||||
<div class="result_content m-b-25">
|
||||
<div class="again_title">Dear Customer:</div>
|
||||
<div class="again_des">We have inquired the code of <?php echo $data['made_up_articles_name']; ?> for you,
|
||||
query time: {$data.chicktime}.
|
||||
Beware of
|
||||
imitations! Please call the services hotline 400-6696-298 if you have any question.</div>
|
||||
</div>
|
||||
<?php }else{?>
|
||||
<div class="result_content">
|
||||
<div class="again_title">Dear Customer:</div>
|
||||
<div class="again_des">We’re glad to tell you that the product {$data.fake} you inquired is genuine, please
|
||||
feel free to use,
|
||||
thanks for choosing the ORICO product!</div>
|
||||
</div>
|
||||
<?php }?>
|
||||
<div class="result_line"></div>
|
||||
<div class="result_content">
|
||||
<div class="result_img img-responsives"><img src="<?php echo $data['img']; ?>"></div>
|
||||
<div class="product_title">Product Info</div>
|
||||
<div class="product_info">
|
||||
<span>Name</span> <span><?php echo $data['made_up_articles_name']; ?></span>
|
||||
</div>
|
||||
<div class="product_info"><span>Model</span><span><?php echo $data['specifications_and_models']; ?></span>
|
||||
</div>
|
||||
<?php
|
||||
if (strpos($data['made_up_articles_name'], 'NGFF') !== false) {
|
||||
$data['aditmend'] = 3;
|
||||
|
||||
}
|
||||
elseif(strpos($data['made_up_articles_name'], 'NVME') !== false){
|
||||
$data['aditmend'] = 5;
|
||||
}
|
||||
else{
|
||||
$data['aditmend'] = '';
|
||||
}
|
||||
|
||||
if($data['aditmend']){
|
||||
?>
|
||||
<div class="result_year">ORICO’s product reliability backed by up to <?php echo $data['aditmend']; ?> yr.
|
||||
warranty and free tech-support services, in case of product failure, please feel free to contact the
|
||||
purchasing platform and ORICO customer service center.</div>
|
||||
<?php }?>
|
||||
</div>
|
||||
</div>
|
||||
<?PHP }else{?>
|
||||
<div class="result_content">
|
||||
<div class="again_title">Dear Customer:</div>
|
||||
<div class="again_des">We’re sorry that the product you inquired is not genuine, please contact the seller.
|
||||
</div>
|
||||
</div>
|
||||
<?php }?>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
58
app/usmobile/view/antifake/anti_fake_sninput.phtml
Executable file
58
app/usmobile/view/antifake/anti_fake_sninput.phtml
Executable file
@@ -0,0 +1,58 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Check Your Product</title>
|
||||
{include file="include/head" /}
|
||||
<script type="text/javascript">
|
||||
var navID = "1";
|
||||
</script>
|
||||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_weben/css/subject/fake.css">
|
||||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/weben/css/montserrat.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="content">
|
||||
<!--头部-->
|
||||
{include file="include/top" /}
|
||||
<div class="margin-top-90">
|
||||
<div class="fake">
|
||||
<div class="fake_content">
|
||||
<div class="query_title"><img src="__PUBLIC__/m_weben/images/anti_fake/sn.png" class="sn_img">S/N Code</div>
|
||||
</div>
|
||||
<div class="result_line"></div>
|
||||
<div class="fake_content">
|
||||
<form action="<?php echo url('antifake/anti_fake_snresult');?>" method="post" onsubmit="return check();">
|
||||
<div class="query_sub_title m-t-40">Enter S/N Code</div>
|
||||
<div class="query_des">
|
||||
<input placeholder="Please enter the S/N code" name="sn">
|
||||
</div>
|
||||
<div class="query_sub_title m-t-32">Where to get the S/N code</div>
|
||||
<div class="des">S/N code can be seen on the label sticker of product (as is shown)</div>
|
||||
<div class="example img-responsives"><img src="__PUBLIC__/m_weben/images/anti_fake/sn_example.png"></div>
|
||||
<button class="query_button" type="submit"><span class="fake_button_content">Check it</span>
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
|
||||
/*判断是否提交表单*/
|
||||
function check() {
|
||||
var sn = $("input[name='sn'").val().length;
|
||||
if(sn < 12 || sn >16){
|
||||
alert('请输入12~16位数SN码');
|
||||
return false; //return false; 时,表单不提交
|
||||
}else {
|
||||
return true; //return true; 时,表单提交
|
||||
}
|
||||
}
|
||||
</script>
|
||||
{include file="include/bottom" /}
|
||||
</div>
|
||||
<!--底部-->
|
||||
</body>
|
||||
|
||||
</html>
|
||||
90
app/usmobile/view/antifake/anti_fake_snresult.phtml
Executable file
90
app/usmobile/view/antifake/anti_fake_snresult.phtml
Executable file
@@ -0,0 +1,90 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>S/N code query result</title>
|
||||
{include file="include/head" /}
|
||||
<script type="text/javascript">
|
||||
var navID = "1";
|
||||
</script>
|
||||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_weben/css/subject/fake.css">
|
||||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/weben/css/montserrat.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="content">
|
||||
<!--头部-->
|
||||
{include file="include/top" /}
|
||||
<div class="margin-top-90 overflow-h">
|
||||
<div class="result_title">Result</div>
|
||||
<div class="result_line"></div>
|
||||
<div class="result">
|
||||
<!--结果-->
|
||||
<?php if($data['result']==1){?>
|
||||
<div class="result_content">
|
||||
<?php if($data['img']){?><div class="result_img img-responsives"><img src="<?php echo $data['img']; ?>"></div><?php }?>
|
||||
<div class="example img-responsives"><img src="__PUBLIC__/m_weben/images/anti_fake/sn_example.png"></div>
|
||||
<div class="product_title">Product Info</div>
|
||||
<div class="product_info">
|
||||
<span>Name</span> <span><?php echo $data['made_up_articles_name']; ?></span>
|
||||
</div>
|
||||
<div class="product_info"><span>Model</span><span><?php echo $data['specifications_and_models']; ?></span>
|
||||
<div class="product_info"><span>Produce Date</span><span><?php echo $data['production_date']; ?></span>
|
||||
<div class="product_info">
|
||||
<span>Warranty Period</span>
|
||||
<span>
|
||||
<?php if($data['delivery_time']){?>
|
||||
<?php echo $data['mendtime']; ?>
|
||||
<?php }else{?>
|
||||
No warranty period found.
|
||||
<?php }?>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
if (strpos($data['made_up_articles_name'], 'NGFF') !== false) {
|
||||
$data['aditmend'] = 3;
|
||||
|
||||
}
|
||||
elseif(strpos($data['made_up_articles_name'], 'NVME') !== false){
|
||||
$data['aditmend'] = 5;
|
||||
}
|
||||
else{
|
||||
$data['aditmend'] = '';
|
||||
}
|
||||
|
||||
if($data['aditmend']){
|
||||
?>
|
||||
<div class="result_year">ORICO’s product reliability backed by up to <?php echo $data['aditmend']; ?> yr.
|
||||
warranty and free tech-support services, in case of product failure, please feel free to contact the
|
||||
purchasing platform and ORICO customer service center.</div>
|
||||
<?php }?>
|
||||
</div>
|
||||
<?PHP }else{?>
|
||||
<div class="result_content m-b-25">
|
||||
<div class="again_title">Dear Customer:</div>
|
||||
<div class="again_des">The S/N code you entered is incorrect, <a
|
||||
href="__ORICOROOT__/antifake/anti_fake_sninput"><span class="result_text_blue">please try
|
||||
again.</span></a></div>
|
||||
</div>
|
||||
<?php }?>
|
||||
<div class="result_line"></div>
|
||||
<div class="result_content">
|
||||
|
||||
<div class="result_once">SN code can only check the product information, for
|
||||
verify the authenticity of product please through <span class="result_text_blue"><a href="__ORICOROOT__/antifake/anti_fake_input" class="text_blue">"anti-
|
||||
counterfeiting code ”</a></span></div>
|
||||
</div>
|
||||
<!--结果-->
|
||||
</div>
|
||||
</div>
|
||||
{include file="include/bottom" /}
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
47
app/usmobile/view/antifake/index.phtml
Executable file
47
app/usmobile/view/antifake/index.phtml
Executable file
@@ -0,0 +1,47 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Check Your Product</title>
|
||||
{include file="include/head" /}
|
||||
<script type="text/javascript">
|
||||
var navID = "1";
|
||||
</script>
|
||||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/m_weben/css/subject/fake.css">
|
||||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/weben/css/montserrat.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="content">
|
||||
<!--头部-->
|
||||
{include file="include/top" /}
|
||||
<div class="margin-45">
|
||||
<div class="fake">
|
||||
<div class="fake_content">
|
||||
<div class="title">Check Your Product</div>
|
||||
</div>
|
||||
<div class="result_line"></div>
|
||||
<div class="fake_content">
|
||||
<div class="sub_title">Note: </div>
|
||||
<div class="des">Enter the anti-counterfeiting code to check the authenticity and detail of the product. If
|
||||
you
|
||||
enter SN code, it will only show the product information. For verify the authenticity of product then please
|
||||
click the button of "Enter the anti-counterfeiting code.</div>
|
||||
<div class="fake_button"><a href="__ORICOROOT__/antifake/anti_fake_sninput"><span
|
||||
class="fake_button_content">Enter S/N Code</span></a></div>
|
||||
<div class="fake_button"><a href="__ORICOROOT__/antifake/anti_fake_input"><span
|
||||
class="fake_button_content">Enter Anti-counterfeiting Code</span></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{include file="include/bottom" /}
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user