jQuery 全选效果实现代码_jquery

WBOY
Lepaskan: 2016-05-16 18:54:56
asal
1007 orang telah melayarinya

多选效果如下图

代码如下:

复制代码 代码如下:














$i = 1;
foreach($this->details as $item) {
echo "\n";
echo "\n";
//item name
echo "\n";
//unit
echo "\n";
//Ordered Qty
echo "\n";
//Received Qty
echo "\n";
//Quantity
echo "\n";
//Remark column
echo "";
echo "\n";
$i++;
}
?>
Item Name UM Ordered Qty Received Qty Quantity Remark
" . $item["item_name"] . " " . $item["unit_name"] . "" . $item["quantity"] . "" . $item["received_qty"] . "


局部多选如下图

代码

复制代码 代码如下:



if (isset($this->user)) {
echo "

Privilege Setting For User " . $this->user ."

";
}
elseif (isset($this->role)) {
echo "

Privilege Setting For Role " . $this->role . "

";
}
else {
echo "

Privilege Setting

";
}

?>



$model_name = "";
foreach($this->privileges as $privilege) {
if ($model_name != $privilege['model_name']) {
$model_name = $privilege['model_name'];
echo "\n";
echo " \n";
echo " \n";
echo "\n";
}
echo "\n";
echo " \n";
echo " \n";
echo " \n";
echo "\n";
}
?>
$model_name
" . $privilege['display_text'] . "



$button_panel = new ButtonPanel();
$button_panel->setButtonAlign("center");
$button_panel->addButton(array("text" => "Save", "type" => "submit"));
$button_panel->addButton(array("text" => "Reset", "type" => "reset"));
$button_panel->addButton(array("text" => "Back", "onclick" => "window.history.back();"));
$button_panel->render();
?>


Label berkaitan:
sumber:php.cn
Kenyataan Laman Web ini
Kandungan artikel ini disumbangkan secara sukarela oleh netizen, dan hak cipta adalah milik pengarang asal. Laman web ini tidak memikul tanggungjawab undang-undang yang sepadan. Jika anda menemui sebarang kandungan yang disyaki plagiarisme atau pelanggaran, sila hubungi admin@php.cn
Tutorial Popular
Lagi>
Muat turun terkini
Lagi>
kesan web
Kod sumber laman web
Bahan laman web
Templat hujung hadapan