|
@@ -2374,7 +2374,15 @@ class Database
|
|
|
}
|
|
|
$result .= '<a href="'.$url.'"><button type="button" class="btn btn-info btn-rounded waves-effect waves-light m-b-5 '.$class.'">' . $vj[0] . '</button></a> ';
|
|
|
} elseif (strpos($kj, 'oper') !== false) {
|
|
|
- $result .= '<a href="javascript:;" onclick="load(\'' . Dever::url($pj) . '\')"><button type="button" class="btn btn-info btn-rounded waves-effect waves-light m-b-5 '.$class.'">' . $vj[0] . '</button></a> ';
|
|
|
+ $content = '';
|
|
|
+ $title = '';
|
|
|
+ if (isset($vj[3])) {
|
|
|
+ $content = $this->value($vj[3], $data);
|
|
|
+ }
|
|
|
+ if (isset($vj[4])) {
|
|
|
+ $title = $vj[4];
|
|
|
+ }
|
|
|
+ $result .= '<a href="javascript:;" onclick="load(\'' . Dever::url($pj) . '\', \'' . $content . '\', \'' . $title . '\')"><button type="button" class="btn btn-info btn-rounded waves-effect waves-light m-b-5 '.$class.'">' . $vj[0] . '</button></a> ';
|
|
|
} elseif (strpos($kj, 'new') !== false) {
|
|
|
$result .= '<a href="' . $this->url($kj, $data['id'], $pj) . '" target="_blank" class="oper_' . $kj . '"><button type="button" class="btn btn-info btn-rounded waves-effect waves-light m-b-5 '.$class.'">' . $h . $vjn . '</button></a> ';
|
|
|
} elseif (isset($vj[1]) && strpos($vj[1], 'modal|') !== false) {
|