slide1
Hizmet Birimlerimiz >> İtfaiye Dairesi Başkanlığı


global $gCms;
global $config;
$max = 12;
$db =& $gCms->GetDb();
$site = $config['root_url'];

$sql_icon = "SELECT icon FROM ".cms_db_prefix()."module_news WHERE news_news_category_id=5 AND status = 'published' ORDER BY news_date DESC LIMIT $max";
$dbresult_icon = $db->Execute($sql_icon);  


/*$sql_manset = "SELECT news_title FROM ".cms_db_prefix()."module_news WHERE  news_news_category_id=5 AND status = 'published' ORDER BY news_date DESC LIMIT $max";
$dbresult_manset = $db->Execute($sql_manset);*/

$sql_baslik = "SELECT news_id, news_title FROM ".cms_db_prefix()."module_news WHERE  news_news_category_id=5 AND status = 'published' ORDER BY news_date DESC LIMIT $max";
$dbresult_baslik = $db->Execute($sql_baslik);

$sql_ozet = "SELECT summary FROM ".cms_db_prefix()."module_news WHERE  news_news_category_id=5 AND status = 'published' ORDER BY news_date DESC LIMIT $max";
$dbresult_ozet = $db->Execute($sql_ozet);

$sql_date = "SELECT DATE_FORMAT(news_date, '%d/%m/%Y') AS newsdate FROM ".cms_db_prefix()."module_news WHERE  news_news_category_id=5 AND status = 'published' ORDER BY news_date DESC LIMIT $max";
$dbresult_date = $db->Execute($sql_date);

$sql_basin = "SELECT news_id, news_title FROM ".cms_db_prefix()."module_news WHERE  news_category_id=3 AND status = 'published' ORDER BY news_date DESC LIMIT 3";
$dbresult_basin = $db->Execute($sql_basin);

echo'
<script language="JavaScript" type="text/javascript">
function hide(divID)



function displayCatDiv(divID)


</script>
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="rounded-cornerx">
<tr>
<td valign="top"><table border="0" cellspacing="0" cellpadding="4">
<tr>
<td valign="top" height="237" width="319" bgcolor="#E0E0E0">'; $r=0; while ($dbresult_icon && $row_icon = $dbresult_icon->FetchRow())
echo '>';
echo '<img src="';echo $site; echo '/uploads/haber/';echo $icon; echo '" border="0" align="middle" />';echo '</div>';
$r++;}echo'</td>
</tr>
<tr>
<td valign="top" bgcolor="#E0E0E0"><table width="100%" border="0" cellspacing="0" cellpadding="5">
<tr>
<td height="88" align="left" valign="top">'; $r=0; while ($dbresult_ozet && $row_ozet = $dbresult_ozet->FetchRow())
echo '>';
echo substr(strip_tags($row_ozet["summary"]),0,270);echo '...</div>';
$r++;}echo'</td>
</tr>
</table></td>
</tr>
</table></td>

<td width="66%" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" width="540">
<table border="0" cellspacing="0" cellpadding="0" width="314"><img border="0" src="uploads/test/images/haberlerust.gif" width="255" height="22"><br>
<script language="JavaScript">
function displayDiv(divID)

echo '
document.getElementById(\'tits\'+divID+\'-spot\').style.display = \'block\';
document.getElementById(\'tits\'+divID+\'-imaj\').style.display = \'block\';
document.getElementById(\'tits\'+divID+\'-date\').style.display = \'block\';
}
</script>                          
'; $r=0; while ($dbresult_baslik && $row_baslik = $dbresult_baslik->FetchRow())
echo'
<tr bgcolor="#fff">

</tr>';
while ($dbresult_basin && $row_basin = $dbresult_basin->FetchRow())
echo'
<tr>
<td colspan="2">
</tr>
<tr>
<td colspan="2" class="haber7">
<font face="Verdana" size="2" color="#666666">'; $r=0; while ($dbresult_date && $row_date = $dbresult_date->FetchRow())
echo '>';
echo 'Haber Tarihi: '; echo $row_date["newsdate"];echo '</div>';
$r++;}echo'</font></tr>
<tr>
<td colspan="2">
<table border="0" cellpadding="0" cellspacing="0" width="96%" id="table1">
<tr>
<td width="20"><img border="0" src="uploads/giris/haberarsivi.gif" width="39" height="26"></td>
<td>
<font size="2" face="Verdana" color="#002B55">
<a href="http://212.175.131.6/web2/index.php?mact=News,cntnt01,default,0&cntnt01detailpage=&cntnt01news_category_id=5&cntnt01returnid=99">Haber
Arşivi</a></font></td>
</tr>
</table>
</tr>
</table></td>
<td valign="top">
&nbsp;</td>
</tr>
</table></td>
</tr>
</table>';


Son Düzenleme Tarihi: 04 . 02 . 2015