From 3b4ff285e34e7d9ad37c10d544ed0df0923b0032 Mon Sep 17 00:00:00 2001 From: Lufei Date: Thu, 20 Oct 2022 13:58:18 +0800 Subject: [PATCH] * Support serach. --- module/program/ui/browse.html.php | 1 + zin/wg/dtable/v1.php | 12 +++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/module/program/ui/browse.html.php b/module/program/ui/browse.html.php index 6e5e93ebc5..16f49df1b4 100644 --- a/module/program/ui/browse.html.php +++ b/module/program/ui/browse.html.php @@ -75,6 +75,7 @@ foreach($programs as $program) $rows[] = $row; } +$table->search($status, $moduleName); $table->data($rows); $content = block(); diff --git a/zin/wg/dtable/v1.php b/zin/wg/dtable/v1.php index 53f60bf342..26b95af326 100644 --- a/zin/wg/dtable/v1.php +++ b/zin/wg/dtable/v1.php @@ -31,6 +31,8 @@ class dtable { public $cols = array(); + public $search = ''; + public function __construct($text = '') { $this->text = $text; @@ -48,9 +50,17 @@ class dtable $this->data = $data; } + public function search($status, $module) + { + $this->search = '
'; + return $this; + } + public function toString() { - $html = '
'; + $html = ''; + if(!empty($this->search)) $html .= $this->search; + $html .= '
'; $html .= ''; return $html;