array("აინვარი", "Jenuary", "Январь"), "02" => array("თებერვალი", "February", "Февраль"), "03" => array("მარტი", "March", "Март"), "04" => array("აპრილი", "April", "Апрель"), "05" => array("მაისი", "May", "Май"), "06" => array("ივნისი", "June", "Июнь"), "07" => array("ივლისი", "July", "Июль"), "08" => array("აგვისტო", "August", "Август"), "09" => array("სექტემბერი", "September", "Сентябрь"), "10" => array("ოქტომბერი", "Octomber", "Октябрь"), "11" => array("ნოემბერი", "November", "Ноябрь"), "12" => array("დეკემბერი", "December", "Декабрь") ); echo " MAMISONI "; if ($inforesult['online'] == 0) { echo "

".$str['sitedown'][$lid]."

"; die; } echo "
"; echo ""; if ($id) { $result = mysql_query("SELECT * FROM records WHERE id=".$id." AND visible=1"); } else { $result = mysql_query("SELECT * FROM records WHERE menu_id=".$p." AND visible=1 ORDER BY position"); } $rowcount = 0; $activemenushowed = false; while ($row = mysql_fetch_array($result)) { // Output Normal Type if ($row['type'] == 0) { if ($row['showtitle'] == 1) { $content .= "

".$row['title_'.$lang]."

"; } $content .= str_replace("%%language%%", $lang, $row['content_'.$lang]); } // Output News type if ($row['type'] == 1) { $date_db = explode("-", $row['date']); $date_y = $date_db[0]; $date_m = $date_db[1]; $date_d = round($date_db[2]); if ($row['content_'.$lang]) { if ($row['showtitle'] == 1) { $content .= "
".$row['title_'.$lang]."
"; } if ($id) { $content .= str_replace("%%language%%", $lang, $row['content_'.$lang]); $content .= "

 " . $date_d ." ". $months[$date_m][$lid] ." ". $date_y . "

"; } else { $showmore = (mb_strlen($row['content_'.$lang]) > 500) ? " | ".$str['showmore'][$lid]."" : ""; $content .= truncate(str_replace("%%language%%", $lang, $row['content_'.$lang]), 500); $content .= "

 " . $date_d ." ". $months[$date_m][$lid] ." ". $date_y . $showmore . "

"; } } } // Output Project type if ($row['type'] == 2) { $photos = explode(",", $row['photo']); $thumbs = explode(",", $row['thumb']); $plans = explode(",", $row['plan']); $plandescs = explode(",", $row['plandesc_'.$lang]); if ($row['showtitle'] == 1) { $content .= "

".$row['title_'.$lang]."

"; } if ($photos[0]) { $content .= "
"; } if ($str['overview'][$lid]) { $content .= "
".$str['overview'][$lid]."
"; $content .= "
".str_replace("%%language%%", $lang, $row['overview_'.$lang])."
".str_replace("%%language%%", $lang, $row['specs_'.$lang])."
"; } if ($row['location']) { $content .= "
".$str['location'][$lid]."
"; $content .= ""; } if ($photos['0'] != "") { $content .= "
".$str['gallery'][$lid]."
"; $content .= "
"; $photocount = 0; foreach ($photos as $key=>$photo) { if ($thumbs[$key]) { if ($photocount <= 2) { $rightmargin = "15px"; } else { $rightmargin = "0px"; } $content .= ""; } $photocount++; $photocount == 4 ? $photocount = 0 : $photocount = $photocount; } $content .= "
"; } if ($plans['0'] != "") { $content .= "
".$str['plans'][$lid]."
"; $content .= "
"; $plancount = 0; foreach ($plans as $key=>$plan) { if ($plan) { if ($plancount <= 2) { $rightmargin = "15px"; } else { $rightmargin = "0px"; } $content .= "".$plandescs[$key].""; $plancount++; $plancount == 4 ? $plancount = 0 : $pancount = $plancount; } } } $content .= "
"; } if ($rowcount < mysql_num_rows($result) - 1) { $content .= "
"; } $rowcount++; } echo $content; echo "
"; mysql_close($link); ?>