Commit e6312c2a authored by zhangjun's avatar zhangjun

修改

parent 1fb59528
...@@ -402,7 +402,7 @@ if(!function_exists('get_buyinfo_url')) ...@@ -402,7 +402,7 @@ if(!function_exists('get_buyinfo_url'))
*/ */
if(!function_exists('get_rentinfo_url')) if(!function_exists('get_rentinfo_url'))
{ {
function get_rentinfo_url($row,$pre = 'r') //��Դ��ַ function get_rentinfo_url($row,$pre = 'r') //房源地址
{ {
if(is_array($row)) { if(is_array($row)) {
if(!empty($row['ID'])) $id = $row['ID']; if(!empty($row['ID'])) $id = $row['ID'];
...@@ -424,7 +424,7 @@ if(!function_exists('get_rentinfo_url')) ...@@ -424,7 +424,7 @@ if(!function_exists('get_rentinfo_url'))
*/ */
if(!function_exists('get_questioninfo_url')) if(!function_exists('get_questioninfo_url'))
{ {
function get_questioninfo_url($qid) //��Դ��ַ function get_questioninfo_url($qid) //房源地址
{ {
$ss = GB_SELL_URL."/ask_".$qid.".html"; $ss = GB_SELL_URL."/ask_".$qid.".html";
return $ss; return $ss;
...@@ -513,13 +513,13 @@ function time_tran ($the_time) { ...@@ -513,13 +513,13 @@ function time_tran ($the_time) {
$str = $the_time; $str = $the_time;
}else{ }else{
if($dur < 60){ if($dur < 60){
$str = $dur.'��ǰ'; $str = $dur.'秒前';
}else if($dur < 3600){ }else if($dur < 3600){
$str = floor($dur/60).'����ǰ'; $str = floor($dur/60).'分钟前';
}else if($dur < 86400){ }else if($dur < 86400){
$str = floor($dur/3600).'Сʱǰ'; $str = floor($dur/3600).'Сʱǰ';
}else if($dur < 259200){ }else if($dur < 259200){
$str = floor($dur/86400).'��ǰ'; $str = floor($dur/86400).'天前';
}else if($dur > 259200){ }else if($dur > 259200){
$str = date('Y-m-d H:i',$the_time); $str = date('Y-m-d H:i',$the_time);
} }
......
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