|
@@ -61,10 +61,15 @@ class Manage
|
|
|
# 查看图片
|
|
|
public function pic($pic)
|
|
|
{
|
|
|
- $table = array();
|
|
|
- $table[0] = '<img src="'.$pic.'" width=“150”/>';
|
|
|
+ if ($pic) {
|
|
|
+ $table = array();
|
|
|
+ $table[0] = '<img src="'.$pic.'" width="150"/>';
|
|
|
|
|
|
- return Dever::table($table);
|
|
|
+ return Dever::table($table);
|
|
|
+ } else {
|
|
|
+ return '';
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
public function picGrid($text)
|