复选框操作
复选框
复选框: <a href="javascript:goMatomeCommit(document.getElementsByName('list_check[]'),document.getElementsByName('qst_from_check[]'),document.frm.matome_select);"> 循环: <input name="list_check[]" type="checkbox" value="{$item->est_id},{$item->client_id}" /> js: function goMatomeCommit(obj, qst_from_check, selectbox) { var frm = document.frm; var action = false; action = boxCheck(obj, '回应'); / /查询类型 if (action) { action = qstfromCheck(obj, qst_from_check); } // if (action) { if (selectbox.value == "操作1") { frm.action = "/php/est/question/saled/input.php?mode=matome"; frm.target = "_self"; frm.submit(); }else if (selectbox.value == "操作二") { frm.action = "/php/est/question/ignore/input.php?mode=matome"; frm.target = "_self"; frm.submit(); }else { alert("请选择数据"); } } } php: if (is_array($est_info_matome)) { $count = count($est_info_matome); }else{ $count = 0; } for ($num = 0; $num < $count; $num++) { init(&$est_info_matome[$num],$est_info_matome[$num]->est_id,$client_id,$login->client_id,$answer_flg); $est_info_matome[$num]->purchase_plan_name = wordAction($est_info_matome[$num]->plan_name); } 返回处理 $est_id_tmp = explode(",",$est_id); for ($nA = 0; $nA < count($est_id_tmp); $nA ++) { $est_id_matome .= "'" . $est_id_tmp[$nA] . "'" . ($nA != (count($est_id_tmp) - 1) ? "," : ""); }
登入後複製
本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn

熱AI工具

Undresser.AI Undress
人工智慧驅動的應用程序,用於創建逼真的裸體照片

AI Clothes Remover
用於從照片中去除衣服的線上人工智慧工具。

Undress AI Tool
免費脫衣圖片

Clothoff.io
AI脫衣器

Video Face Swap
使用我們完全免費的人工智慧換臉工具,輕鬆在任何影片中換臉!

熱門文章
如何修復KB5055523無法在Windows 11中安裝?
4 週前
By DDD
如何修復KB5055518無法在Windows 10中安裝?
4 週前
By DDD
<🎜>:種植花園 - 完整的突變指南
3 週前
By DDD
<🎜>:泡泡膠模擬器無窮大 - 如何獲取和使用皇家鑰匙
3 週前
By 尊渡假赌尊渡假赌尊渡假赌
如何修復KB5055612無法在Windows 10中安裝?
3 週前
By DDD

熱工具

記事本++7.3.1
好用且免費的程式碼編輯器

SublimeText3漢化版
中文版,非常好用

禪工作室 13.0.1
強大的PHP整合開發環境

Dreamweaver CS6
視覺化網頁開發工具

SublimeText3 Mac版
神級程式碼編輯軟體(SublimeText3)