app = $app; } function detail_basic($image_id){ $app = app::get('image'); $render = $app->render(); $image = $this->app->model('image'); $image_info = $image->dump($image_id); $allsize = app::get('image')->getConf('image.default.set'); $render->pagedata['allsize'] = $allsize; $render->pagedata['image'] = $image_info; return $render->fetch('finder/image.html'); } function column_img($row){ $obj = app::get('image')->model('image'); $row = $obj->dump($row['image_id']); $limitwidth = 50; $maxsize = max($row['width'],$row['height']); if($maxsize>$limitwidth){ $size ='width='; $size.=$row['width']-$row['width']*(($maxsize-50)/$maxsize); $size.=' height='; $size.=$row['height']-$row['height']*(($maxsize-50)/$maxsize); }else{ $size ='width='.$row['width'].' height='.$row['height']; } if($row['storage']=='network'){ return '
网络图片
'; } return '
'; } }