Commit a1c26e8f by HTML5-侯张振

列表宽度

parent d1ea0550
...@@ -124,21 +124,18 @@ class Customer_building_log_model extends MY_Model{ ...@@ -124,21 +124,18 @@ class Customer_building_log_model extends MY_Model{
$this->db->order_by('CB.id DESC'); $this->db->order_by('CB.id DESC');
$query = $this->db->get(); $query = $this->db->get();
if($query->num_rows() > 0) if($query->num_rows() > 0)
{ {
$qery = $query->result_array(); $qery = $query->result_array();
$rAr=array(); // $rAr=array();
for($i=0;$i<count($qery);$i++) // for($i=0;$i<count($qery);$i++)
{ // {
if(!isset($rAr[$qery[$i]['recommend_status']])) // if(!isset($rAr[$qery[$i]['recommend_status']]))
{ // {
$rAr[$qery[$i]['recommend_status']]=$qery[$i]; // $rAr[$qery[$i]['recommend_status']]=$qery[$i];
} // }
} // }
$qery=array_values($rAr); // $qery=array_values($rAr);
return $qery; return $qery;
//$query->result_array(); //$query->result_array();
......
...@@ -125,7 +125,7 @@ ...@@ -125,7 +125,7 @@
} }
.zhehang{ .zhehang{
display: inline-block; display: inline-block;
width: 150px; width: 100px;
height:auto; height:auto;
word-wrap: break-word; word-wrap: break-word;
word-break: break-all; word-break: break-all;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment