58 lines
2.0 KiB
PHTML
Executable File
58 lines
2.0 KiB
PHTML
Executable File
<!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>
|