X7ROOT File Manager
Current Path:
/var/www/vhosts/hwtw.com.tw/httpdocs/backend/func/form_elements
var
/
www
/
vhosts
/
hwtw.com.tw
/
httpdocs
/
backend
/
func
/
form_elements
/
📁
..
📄
analytics.php
(920 B)
📄
checkbox.php
(1.02 KB)
📄
color.php
(1.71 KB)
📄
date.php
(455 B)
📄
date1.php
(669 B)
📄
datetime.php
(425 B)
📄
datetime_show.php
(353 B)
📄
end_title.php
(68 B)
📄
event_coupon.php
(206 B)
📄
event_medals.php
(206 B)
📄
event_member.php
(534 B)
📄
event_ques.php
(200 B)
📄
event_question.php
(200 B)
📄
file.php
(849 B)
📄
fileinput.php
(2.43 KB)
📄
hidden.php
(88 B)
📄
html.php
(422 B)
📄
image.php
(1.67 KB)
📄
image_ajax.php
(3.41 KB)
📄
image_ajax_fileinput.php
(3.41 KB)
📄
image_resize.php
(1.71 KB)
📄
image_show.php
(1.74 KB)
📄
list.php
(1.06 KB)
📄
more_title.php
(300 B)
📄
password.php
(427 B)
📄
radio.php
(687 B)
📄
radio1.php
(507 B)
📄
search_item.php
(3.68 KB)
📄
search_item2.php
(4.09 KB)
📄
search_item2_B.php
(4.13 KB)
📄
search_item2_discount.php
(4.09 KB)
📄
search_item_B.php
(3.53 KB)
📄
search_item_discount.php
(3.98 KB)
📄
select.php
(618 B)
📄
select1.php
(552 B)
📄
select_TWzipcode.php
(1.16 KB)
📄
select_TWzipcode_all.php
(1.31 KB)
📄
select_TWzipcode_county.php
(986 B)
📄
select_display.php
(547 B)
📄
select_display_first.php
(569 B)
📄
select_show.php
(530 B)
📄
show.php
(199 B)
📄
show1.php
(245 B)
📄
store_list.php
(203 B)
📄
table_row.php
(4.31 KB)
📄
table_row_adv.php
(4.74 KB)
📄
table_row_color.php
(7.34 KB)
📄
tag.php
(979 B)
📄
text.php
(423 B)
📄
text1.php
(444 B)
📄
text_display.php
(452 B)
📄
text_display_first.php
(474 B)
📄
text_show.php
(317 B)
📄
textarea.php
(534 B)
📄
textarea_show.php
(376 B)
Editing: search_item_B.php
<script type="text/javascript"> $(window).load(function() { var vv_B = '<?=$vv['value']?>'; if(vv_B!=''){ add_list_B(vv_B); } $.ajax({ type: "POST", url: "class_search.php", beforeSend: function(){ }, success: function(data){ $("#product_class_B").html(data); $.ajax({ type: "POST", url: "class2_search.php", data:'id='+$('select[name="product_class_B"]').val(), beforeSend: function(){ }, success: function(data){ $("#product_class_B2").html(data); // show_list_B(); } }); } }); }); function class_change_B(){ $.ajax({ type: "POST", url: "class2_search.php", data:'id='+$('select[name="product_class_B"]').val(), beforeSend: function(){ }, success: function(data){ $("#product_class_B2").html(data); show_list_B(); } }); } function class2_change_B(){ $.ajax({ type: "POST", url: "show_search_B.php", data:'id='+$('select[name="product_class_B2"]').val()+'&class_id='+$('select[name="product_class_B"]').val(), beforeSend: function(){ }, success: function(data){ $("#show_list_B").html(''); $("#show_list_B").html(data); } }); } function show_list_B(){ var tmp_rec_B = $('input[name^=recommend2]'); var list_tmp_B = new Array(); for (var i = 0; i <tmp_rec_B.length; i++) { list_tmp_B.push(tmp_rec_B[i].value); } $.ajax({ type: "POST", url: "show_search_B.php", data:'id='+$('select[name="product_class_B2"]').val()+'&class_id='+$('select[name="product_class_B"]').val()+'&list='+list_tmp_B, beforeSend: function(){ }, success: function(data){ // console.log(data); $("#show_list_B").html(''); $("#show_list_B").html(data); } }); } function add_list_B(val_B){ // var item_count = Number($('#item_count').val()); // if(item_count>=4){ // alert('最多僅能新增四筆單品推薦!'); // }else{ var tmp_val_B = val_B.split(','); if(tmp_val_B.length>1){ tmp_item_count_B = item_count_B + tmp_val_B.length; }else{ tmp_item_count_B = item_count_B + 1; } $('#item_count_B').val(tmp_item_count_B); // console.log($('#item_count').val()); $.ajax({ type: "POST", url: "show_item_B.php", data:'id='+val_B, beforeSend: function(){ }, success: function(data){ $("#real_list_B").append(data); } }); $('#btn_B'+val_B).attr("onclick","del_list_B(\'"+val_B+"\')"); $('#btn_B'+val_B).html('<span class="glyphicon glyphicon-minus"></span>'); // } } function del_list_B(val_B){ var item_count_B = Number($('#item_count_B').val()); tmp_item_count_B = item_count_B - 1; $('#item_count_B').val(tmp_item_count_B); $('#item_B'+val_B).remove(); $('#btn_B'+val_B).attr("onclick","add_list_B(\'"+val_B+"\')"); $('#btn_B'+val_B).html('<span class="glyphicon glyphicon-plus"></span>'); } </script> <?php echo ' <div class="form-group"> <label class="control-label col-sm-2">'.($vv['title']).'</label> <div class="col-sm-10"> <div class="tab-pane active"> <div class="table-responsive"> <table class="table" id="tab_logic_B"> <input type="hidden" id="item_count_B" value="0"> <thead> <tr> <th class="text-center">商品名稱</th> <th class="text-center">動作</th> </tr> </thead> <tbody id="real_list_B"></tbody> </table> </div> </div> </div> </div> '; ?>
Upload File
Create Folder