Tryag File Manager
Home
||
Turbo Force
||
B-F Config_Cpanel
Current Path :
/
home
/
cts.eemo.co.kr
/
public_html
/
src
/
web
/
view
/
qr
/
code
/
Or
Select Your Path :
Upload File :
New :
File
Dir
/home/cts.eemo.co.kr/public_html/src/web/view/qr/code/insertQR.php
<?php use CTS\CTS; //main parameters $sale_date = $_REQUEST['sale_date']; $sale_hatchery = $_REQUEST['sale_hatchery']; $sale_flock = $_REQUEST['sale_flock']; //sub parameters $sale_index = $_REQUEST['sale_index']; $sale_title = $_REQUEST['sale_title']; $sale_post = $_REQUEST['sale_post']; $sale_location = $_REQUEST['sale_location']; $sale_num = $_REQUEST['sale_num']; $sale_flock_num = $_REQUEST['sale_flock_num']; $sale_director = $_REQUEST['sale_director']; $sale_director_phone = $_REQUEST['sale_director_phone']; $sale_farm_phone = $_REQUEST['sale_farm_phone']; $sale_comment = $_REQUEST['sale_comment']; $sheet_name = $_REQUEST['sheet_name']; $sale_type = $_REQUEST['sale_type']; //qr $sql = "select * from qr, sale where sale_idx = qr_sale"; $qr = \DB::query($sql); // select query sale_title $sale_title_list = \DB::query("SELECT * from sale WHERE sale_type = '$sale_type' group by sale_title, SUBSTRING(sale_date,1,4) order by sale_date desc"); $type = $_REQUEST['type']; $sale_post = $_REQUEST['sale_post']; $sale_date = $_REQUEST['sale_date']; ?> <form id="form" name="form" method="post" action="#" enctype="multipart/form-data"> <input type="hidden" id="sale_idx" name="sale_idx" /> <input type="hidden" id="sale_num" name="sale_num" /> <input type="hidden" id="sale_farm" name="sale_farm" /> <input type="hidden" id="division" name="division" value="insertQR" /> <div class=""> <div class="columns columns-right btn-group float-left"> <button class="btn btn-outline-primary " type="button" onclick="create_post()" > QR코드생성 </button> </div> <br /> <br /> </div> <div class ="card"> <table class="table table-bordered"> <thead class="thead-dark"> <tr class="text-center"> <th style="width:25%">분양명</th> <th style="width:25%">분양일자</th> <th style="width:50%">항 목</th> </tr> </thead> <tbody> <tr> <td style="vertical-align:top"> <select id="select_sale_title" class="custom-select"> <?php echo "<option>". "=== 분양명 선택 ===". "</option>"; foreach ($sale_title_list as $ket => $value ){ echo "<option value=".$value['sale_post'].">". substr($value['sale_date'],0,4) ." :: ". $value['sale_title'] . "</option>"; } ?> </select> </td> <td style="vertical-align:top"> <div id="midleList" class=""></div> </td> <td style="vertical-align:top"> <div id="btmList" class="" style="vertical-align:top"></div> </td> </tr> </tbody> </table> </div> </form> <script> $(function(){ $("#select_sale_title").change(function() { var post = $("#select_sale_title").val(); $("#midleList").load("selectView.php?type=midle&sale_post="+post+"&sale_type="+"<?=$sale_type?>"); }); }); function create_post(){ if($("#sale_idx").val() == ""){ alert("분양 항목을 선택하세요."); return false; }else{ document.form.action = "qr_process.php"; document.form.submit(); } } </script>