col_prefix.'id']; $product_id = $row[$this->col_prefix.'product_id']; $is_bind = intval($row[$this->col_prefix.'is_bind']); if(empty($product_id)) { $button = '关联'; } elseif($is_bind == 1) { $href = 'index.php?app=tbo2o&ctl=admin_shop_skus&act=unbind_scitem_map&p[0]='. $id .'&finder_id='. $finder_id; $button .= "解绑"; } else { $href = 'index.php?app=tbo2o&ctl=admin_shop_skus&act=bind_scitem_map&p[0]='. $id .'&finder_id='. $finder_id; $button = '关联'; $button .= " | 绑定"; } return $button; } var $column_is_bind = '绑定状态'; var $column_is_bind_width = 80; var $column_is_bind_order = 90; function column_is_bind($row) { $is_bind = intval($row[$this->col_prefix.'is_bind']); if($is_bind == 1) { return '已绑定'; } else { return '未绑定'; } } var $column_bind_time = '绑定时间'; var $column_bind_time_width = 120; var $column_bind_time_order = 95; function column_bind_time($row) { $bind_time = $row[$this->col_prefix.'bind_time']; if($bind_time) { return date('Y-m-d H:i', $bind_time); } else { return ''; } } }