| Server IP : 104.21.37.246 / Your IP : 104.23.243.32 [ Web Server : Apache System : Linux cpanel01wh.bkk1.cloud.z.com 2.6.32-954.3.5.lve1.4.59.el6.x86_64 #1 SMP Thu Dec 6 05:11:00 EST 2018 x86_64 User : cp648411 ( 1354) PHP Version : 7.2.34 Disable Function : NONE Domains : 0 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home2/cp648411/public_html/simded.com/themesv2/ |
Upload File : |
<?php
//if($_SESSION['s_num_post'] <> '' && $_POST['num_post'] == ''){$_POST['num_post'] = $_SESSION['s_num_post'];}
if(@$_SESSION['s_num_post'] <> '' && $_POST['num_post_sim'] == ''){$_POST['num_post_sim'] = $_SESSION['s_num_post'];}
if(@$_SESSION['s_total'] <> '' && $_POST['total'] == ''){$_POST['total'] = $_SESSION['s_total'];}
if(@$_SESSION['s_stylenum'] <> '' && $_POST['stylenum'] == ''){$_POST['stylenum'] = $_SESSION['s_stylenum'];}
if(@$_SESSION['s_category'] <> '' && $_POST['category'] == ''){$_POST['category'] = $_SESSION['s_category'];}
if(@$_SESSION['s_price_range'] <> '' && $_POST['price_range'] == ''){$_POST['price_range'] = $_SESSION['s_price_range'];}
if(@$_SESSION['s_FavoriteSet'] <> '' && $_POST['FavoriteSet'] == ''){$_POST['FavoriteSet'] = $_SESSION['s_FavoriteSet'];}
if(@$_SESSION['s_network'] <> '' && $_POST['network'] == ''){$_POST['network'] = $_SESSION['s_network'];}
?>
<div class="row pt-lg-5 pt-5">
<div class="col-12 mb-lg-2 pt-lg-4 pt-0">
<div class="text-center HeadTextXL2 text-white">
ค้นหาเบอร์มงคล
</div>
</div>
</div>
<div class="row text-spacing-md px-xxl-5">
<div class="col-md-12">
<div class="DivSearch rounded-sim2 px-md-4 px-2">
<form action="../search/index.php" method="post" id="search1" style="display: block;">
<div class="row justify-content-center" >
<div class="col-lg-4 ms-xxl-5">
<input type="text" name="num_post_sim" value="" class="form-control box-input-header rounded-sim text-center placeholder-2 border-yellow-2-mobile"
placeholder="เบอร์โทรศัพท์" onKeyPress="return validate_number(event)" maxlength="10">
</div>
</div>
<div class="row mt-3 justify-content-between">
<div class="col-12 col-md-3">
<label class="text-white mb-2">เลขที่ชอบ</label>
<select class="Drop box-sim1 fw-bold text-spacing-md mt-0 placeholder-2 border-yellow-2-mobile" name="like_y" id="like_y" onchange="">
<option class=" fw-bold text-spacing-md text-dcus text-light" value="" disabled>ทั้งหมด</option>
<?php for($i=0;$i<=9;$i++){ ?>
<option class=" fw-bold text-spacing-md text-dcus text-light" value="<?php echo $i ?>" <?php if($_POST['like_y']== $i){?>selected="selected"<?php }?>>
<?php echo $i ?>
</option>
<?php } ?>
</select>
</div>
<div class="col-12 col-md-3">
<label class="text-white mb-2" >ผลรวม</label>
<select class="Drop box-sim1 fw-bold text-spacing-md mt-0 placeholder-2 border-yellow-2-mobile" name="total" id="total" onchange="">
<option class=" fw-bold text-spacing-md text-dcus text-light" value="" disabled selected>ทั้งหมด</option>
<?php for($i=9;$i<=81;$i++){ ?>
<option class=" fw-bold text-spacing-md text-dcus text-light" value="<?php echo $i ?>" <?php if($_POST['total']== $i){?>selected="selected"<?php }?>>
<?php echo $i ?>
</option>
<?php } ?>
</select>
</div>
<div class="col-12 col-md-3">
<label class="text-white mb-2" >ลักษณะเบอร์</label>
<select class="Drop box-sim1 fw-bold text-spacing-md mt-0 placeholder-2 border-yellow-2-mobile" name="stylenum" id="stylenum" onchange="">
<option class=" fw-bold text-spacing-md text-dcus text-light" value="" disabled selected>ทั้งหมด</option>
<?php
$list_snum = array('table'=>'stylenumber','where'=>'status = 1','order'=> "ORDER BY id DESC");
$view_snum = $view_db->view($list_snum);
$result_snum = $view_db->q_re($view_snum);
while($row_snum = $view_db->q_ro($result_snum)){
?>
<option class=" fw-bold text-spacing-md text-dcus text-light" value="<?php echo $row_snum['id'] ?>" <?php if($_POST['stylenum']== $row_snum['id']){?>selected="selected"<?php }?>>
<?php echo $row_snum['name'] ?>
</option>
<?php } ?>
</select>
</div>
</div>
<div class="row mt-3 justify-content-between">
<div class="col-12 col-md-3">
<label class="text-white mb-2" > ช่วงราคา</label>
<select class="Drop box-sim1 fw-bold text-spacing-md mt-0 placeholder-2 border-yellow-2-mobile" name="price_range" id="price_range" onchange="">
<option class=" fw-bold text-spacing-md text-dcus text-light" value="" disabled selected>ทั้งหมด</option>
<?php
$list_pr = array('table'=>'price','where'=>'status = 1','order'=> "ORDER BY id ASC");
$view_pr = $view_db->view($list_pr);
$result_pr = $view_db->q_re($view_pr);
while($row_pr = $view_db->q_ro($result_pr)){
?>
<option class=" fw-bold text-spacing-md text-dcus text-light" value="<?php echo $row_pr['name'] ?>" <?php if($_POST['price_range']== $row_pr['name']){?>selected="selected"<?php }?>>
<?php echo $row_pr['name'] ?>
</option>
<?php } ?>
</select>
</div>
<div class="col-12 col-md-3">
<label class="text-white mb-2" > เครือข่าย</label>
<select class="Drop box-sim1 fw-bold text-spacing-md mt-0 placeholder-2 border-yellow-2-mobile" name="network" id="network" >
<option class=" fw-bold text-spacing-md text-dcus text-light" value="" disabled selected>ทั้งหมด</option>
<?php
$list_netw = array('table'=>'mobilenetwork','where'=>'status = 1','order'=> "ORDER BY id ASC");
$view_netw = $view_db->view($list_netw);
$result_netw = $view_db->q_re($view_netw);
while($row_netw = $view_db->q_ro($result_netw))
{
?> <option class=" fw-bold text-spacing-md text-dcus text-light" value="<?php echo $row_netw['id'] ?>" <?php if($_POST['network']== $row_netw['id']){?>selected="selected"<?php }?>><?php echo $row_netw['name'] ?></option> <?php
}
?>
</select>
</div>
<div class="col-12 col-md-3">
<label class="text-white mb-2" > สิ่งที่ต้องการเสริมชีวิต</label>
<select class="Drop box-sim1 fw-bold text-spacing-md mt-0 placeholder-2 border-yellow-2-mobile" name="network" id="network" >
<option class=" fw-bold text-spacing-md text-dcus text-light" value="" disabled selected>ทั้งหมด</option>
<?php
$list_netw = array('table'=>'mobilenetwork','where'=>'status = 1','order'=> "ORDER BY id ASC");
$view_netw = $view_db->view($list_netw);
$result_netw = $view_db->q_re($view_netw);
while($row_netw = $view_db->q_ro($result_netw))
{
?> <option class=" fw-bold text-spacing-md text-dcus text-light" value="<?php echo $row_netw['id'] ?>" <?php if($_POST['network']== $row_netw['id']){?>selected="selected"<?php }?>><?php echo $row_netw['name'] ?></option> <?php
}
?>
</select>
</div>
</div>
<div class="text-center mt-3" >
<!--<button type="reset" class="btn btn-success-sim Btn-Green cbnt rounded-sim mb-3 mb-md-0 fw-bold text-spacing-md" onclick="reset_search()">เริ่มใหม่</button>-->
<button type="submit" class="btn btn-custom Btn-Red btn_ml cbnt mb-3 mb-md-0 fw-bold text-spacing-md">ค้นหา</button>
</div>
</form>
<form action="../search/index2.php" method="post" id="search2" style="display: none;">
<div class="row justify-content-between" >
<div class="col-lg-4 ms-xxl-5">
<div class="row">
<div class="col-md-12 BoxSearch text-center">
<div>
<div>
<input type="text" name="num_post2[0]" id="mun_pos_2" class="form-control rounded-sim box-sim1 fs-2 text-center" maxlength="6" value="<?php echo $_POST['num_post2'][1]?>"
onKeyPress="return validate_number(event)" onkeyup="Jump(this,3)" placeholder="เลขทะเบียนรถ">
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-8 col-xxl-7 d-lg-flex justify-content-between text-center text-lg-start">
<div class="d-flex mb-3 mb-lg-0 justify-content-md-center align-items-baseline">
<div class="radio-item-Y align-center d-flex ps-0">
<input type="radio" id="like_y2" name="like_y2" class="like_y" value="1" checked>
<label for="like_y2"></label>
<span class="fs-5">เลขที่ชอบ</span>
</div>
<div class="radio-item-N align-center d-flex ps-0">
<input type="radio" id="like_n2" name="like_n2" class="like_n" value="2">
<label for="like_n2"></label>
<span class="fs-5">เลขที่ไม่ชอบ</span>
</div>
</div>
<!-- <a href="javascript:;" class="btn_like_clear">เคลียร์</a> -->
<div class="like">
<div class="box_btn_link d-md-flex">
<?php
for($i=0;$i<=9;$i++){
if($_SESSION['number_like2'] == '' && $_SESSION['number_dislike2'] == '')
{
$class_search = 'number_ori';
}
else
{
if (in_array($i, $_SESSION['number_like2'])) {
$class_search = 'number_like';
}
else if (in_array($i, $_SESSION['number_dislike2'])) {
$class_search = 'number_dislike';
}
else
{
$class_search = 'number_ori';
}
}
?>
<?php if($i==5){echo '<br class="d-md-none">';} ?>
<span class="chk_click <?php echo $class_search; ?> align-items-center d-md-grid" id="btn2_<?php echo $i ?>" data-id="<?php echo $i ?>"><?php echo $i ?></span><?php
}
?>
</div>
</div>
<div class="box_inputchk2"></div>
</div>
</div>
<div class="row" >
<div class="col-md-12">
<div class="row">
<div class="col-md-4 BoxSearch">
<div style="padding-bottom:10px;">
<label class="LabelSearch" >ลักษณะเลขทะเบียนรถ</label>
<select class="Drop fw-bold text-spacing-md box-sim1 mt-0" name="stylenum" id="stylenum" onchange="">
<option class=" fw-bold text-spacing-md" value="" disabled selected>ทั้งหมด</option>
<?php
$list_snum = array('table'=>'stylecar','where'=>'status = 1','order'=> "ORDER BY id DESC");
$view_snum = $view_db->view($list_snum);
$result_snum = $view_db->q_re($view_snum);
while($row_snum = $view_db->q_ro($result_snum))
{
?> <option class=" fw-bold text-spacing-md" value="<?php echo $row_snum['id'] ?>" <?php if($_POST['stylenum']== $row_snum['id']){?>selected="selected"<?php }?>><?php echo $row_snum['name'] ?></option> <?php
}
?>
</select>
</div>
</div>
<div class="col-md-4 BoxSearch">
<div style="padding-bottom:10px;">
<label class="LabelSearch" > ช่วงราคา</label>
<select class="Drop fw-bold text-spacing-md box-sim1 mt-0" name="price_range" id="price_range" onchange="">
<option class=" fw-bold text-spacing-md" value="" disabled selected>ทั้งหมด</option>
<?php
$list_pr = array('table'=>'price','where'=>'status = 1','order'=> "ORDER BY id ASC");
$view_pr = $view_db->view($list_pr);
$result_pr = $view_db->q_re($view_pr);
while($row_pr = $view_db->q_ro($result_pr))
{
?> <option class=" fw-bold text-spacing-md" value="<?php echo $row_pr['name'] ?>" <?php if($_POST['price_range']== $row_pr['name']){?>selected="selected"<?php }?>><?php echo $row_pr['name'] ?></option> <?php
}
?>
</select>
</div>
</div>
<div class="col-md-4">
<div class="row ">
<div class="col-md-12 BoxSearch">
<div>
<label class="LabelSearch" > ชุดตัวเลขโปรด</label>
<input type="text" name="FavoriteSet[1]" class="form-control InputFM fw-bold text-spacing-md box-sim1 mt-0" placeholder="" value="<?php echo $_POST['FavoriteSet'][1]?>" >
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div align="center">
<button type="reset" class="btn btn-success Btn-Green cbnt rounded-sim mb-3 mb-md-0 fw-bold text-spacing-md" onclick="reset_search()">เริ่มใหม่</button>
<button type="submit" class="btn btn-danger Btn-Red btn_ml cbnt rounded-sim mb-3 mb-md-0 fw-bold text-spacing-md">ค้นหา</button>
</div>
</form>
</div>
</div>
</div>