/* hun : ingatlanok listázása */ session_start(); ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); include ('inc/init.php'); include ('milla.php'); function officeleadercanedit( $agent_user_id) { global $_SESSION; $current_user_id=$_SESSION['user_id']; //innen folyt köv $current_user_post=my_ff("select user_post_id from user where id=$current_user_id" ); // 18 - officeleader echo mysql_error(); if($current_user_post==18) { $current_user_office=my_ff("select agency_id from user where id=$current_user_id" ); echo mysql_error(); $agent_user_office=my_ff("select agency_id from user where id=$agent_user_id" ); echo mysql_error(); if($agent_user_office==$current_user_office) return true; else return false; } else return false; // adjon vissza true-t a függvény, ha // current user az egy irodavezető // és az agent user ugyanabban az irodában dolgozik } function prop_show_orderth ($name, $value, $width = '', $row_propspan = 1) { global $orderfield, $orderdesc; return '
Normál ingatlanok | |||||||||||||||||||||||||||||
Nyomtatási nézet megnyitása | |||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
if ($_SESSION['user_id'] != 463){ ?> } ?> |
//= prop_show_orderth ('picture', 'kép', '', 2) ?>
//prop_show_orderth ('hrsz', 'hrsz.', '', 2) ?>
= prop_show_orderth ('id', 'ID', '', 2) ?>
= prop_show_orderth ('district_id', 'ker.', '', 2) ?>
= prop_show_orderth ('address', 'cím', '', 2) ?>
Ár (Ft.) | = prop_show_orderth ('size', 'm²', '', 2) ?>echo "Szobák" ?> | = prop_show_orderth ('sight_id', 'nézet', '', 2) ?> = prop_show_orderth ('floor_id', 'emelet', '', 2) ?> = prop_show_orderth ('heater_id', 'fűtés', '', 2) ?> = prop_show_orderth ('lift_id', 'lift', '', 2) ?> = prop_show_orderth ('balcony', 'erkély', '', 2) ?> = prop_show_orderth ('terrace', 'terasz', '', 2) ?> = prop_show_orderth ('locality', 'tájolás', '', 2) ?>Állapot | //prop_show_orderth ('mandate', 'Partner | Üzlethelyiség | } ?>Csak közösen mutatható |
if ($_SESSION['user_id'] == 199 or $_SESSION['user_id'] == 17 or $_SESSION['user_id'] == 2 ){ ?>
Szerződés ideje | } ?>Adminisztráció | if ($_SESSION['user_id'] == 199 or $_SESSION['user_id'] == 17 or $_SESSION['user_id'] == 2 ){ ?>Kiadó státuszba | } ?>||||||||||||||||||||
átrak | másol | } ?>||||||||||||||||||||||||||||
= ++$cx ?>. | if ($_SESSION['user_id'] != 463){ ?>}else{ ?> | } ?> | > |
> |
> |
//$price = (round($row_prop['price'], -3) / 1000000) ?>
$ingatlanar = $row_prop['price'];
if( $ingatlanar>1000000 )
{
$property_price = floor (( $ingatlanar) / 100000 ) * .1;
$price = $property_price.' M';
}else{
$price = milla($row_prop['price']);
}
?>
> |
> |
> |
$row_rooms=$row_prop; getrooms(); echo "$full"; if($half>0) echo "+$half" . "f"; ?> | > |
> |
> |
> |
if ($row_prop[balcony] > 0){ $balcony = 'Van'; }else{ $balcony = 'Nincs'; } ?>
> |
if ($row_prop[terrace] > 0){ $terrace = 'Van'; }else{ $terrace = 'Nincs'; } ?>
> |
> $locality_arr = ! empty ($row_prop['locality']) ? explode (',', $row_prop['locality']) : array (); if (! empty ($locality_arr)) { for ($i = 0; $i < count ($locality_arr); $i++) { //$get_orders .= "&district_{$dist_arr[$i]}=on"; $locality = get_db_word ('property_locality', $locality_arr[$i]); echo $locality .', '; } } ?> | > |
> |
> |
if ($row_prop['pps_act'] == 'enabled'){ $status = 'aktív'; }
if ($row_prop['pps_act'] == 'SOS_eseti'){ $status = 'SOS megbízás'; }
if ($row_prop['pps_act'] == 'SOS_aktiv'){ $status = 'SOS megbízás'; }
?>
> |
> |
if ($_SESSION['user_id'] == 199 or $_SESSION['user_id'] == 17 or $_SESSION['user_id'] == 2 ){ ?>
> |
> |
} ?>
if ($_SESSION['user_id'] == 199 or $_SESSION['user_id'] == 17 or $_SESSION['user_id'] == 2 ){ ?> | > |
> |
} ?>
} ?> | ||
Nincs megjelenthető elem. |
Ön nincs bejelentkezve! |