|
@@ -2424,7 +2424,16 @@ class Database
|
|
|
}
|
|
|
$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> ';
|
|
|
+ if (!isset($vj[1])) {
|
|
|
+ $vj[1] = '';
|
|
|
+ }
|
|
|
+ if (strstr($vj[1], 'http')) {
|
|
|
+ $url = $vj[1] . '&id=' . $data['id'];
|
|
|
+ } else {
|
|
|
+ $url = $this->url($kj, $data['id']);
|
|
|
+ }
|
|
|
+
|
|
|
+ $result .= '<a href="' . $url . '" 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) {
|
|
|
$t = explode('|', $vj[1]);
|
|
|
$result .= '<a href="#dever_modal" data-toggle="modal" class="btn btn-info btn-rounded waves-effect waves-light m-b-5 '.$class.'" onclick=' . $t[1] . ' msg-send="' . $this->value($t[2], $data) . '">' . $vj[0] . '</a> ';
|