kohjhjhصثقص5572hjkhk7872ثقصثقgdfgdg
Ele57885fddfg872782782782 hjkhj782dfgfghgقفغفغفقhfg555434536
/
home4
/
kisgavwq
/
gpplenergy.com
/
includes
/
Upload FileeE
HOME
<?php require_once("includes/classes/Announcement.cls.php"); ?> <div style="min-height:300px;"> <?php if($anno_res['NO_OF_ITEMS']>0) { $title = outText($anno_res['oDATA'][0]['title']); $publish_date = outText($anno_res['oDATA'][0]['publish_date']); $description = outText($anno_res['oDATA'][0]['description']); ?> <h1 class="homegray1"><?=$title?></h1> <hr size="1px" color="#CCCCCC" /> <div align="justify"> <?php if($description!=""){ echo $description; }else{ echo " "; } ?> </div> <div style="float:right; padding:5px;"><a href="<?=SITE_HOME?>announcement.php" title="Back"><b><img src="<?=SITE_HOME?>images/go-back-btn.png" border="0"/></b></a></div> <?php }else{ $res = $announcementObj->getAllActAnnouncement(); $total = $res['NO_OF_ITEMS']; //echo $total; if($total>0) { ?> <h1 class="homegray1">Announcement</h1> <hr size="1px" color="#CCCCCC" /> <ul class="list03"> <?php for($i=0;$i<$total;$i++){ $id = ($res['oDATA'][$i]['id']); $type = stripslashes($res['oDATA'][$i]['type']); $title = stripslashes($res['oDATA'][$i]['title']); $url = stripslashes($res['oDATA'][$i]['url']); $publish_date = stripslashes($res['oDATA'][$i]['publish_date']); $pdate=date("d-m-Y",strtotime($publish_date)); $link = ($res['oDATA'][$i]['link']); $file_name = ($res['oDATA'][$i]['file_name']); $new = $res['oDATA'][$i]['new']; ?> <?php if($type == 2){?> <li><a href="<?=$link?>" target="_blank"><?=$title?></a></li> <?php if($new ==1){?><img src="<?=SITE_HOME?>images/new.gif" border="0" align="absmiddle"/><?php }?> <?php }?> <?php if($type == 1){?> <li> <a href="<?=SITE_HOME?>announcement/<?=$file_name?>" target="_blank"><?=$title?></a> <?php if($new ==1){?><img src="<?=SITE_HOME?>images/new.gif" border="0" align="absmiddle"/><?php }?> </li> <?php }?> <?php if($type == 0){?> <li> <a href="announcement.php?announcement=<?php print $url;?> "><?=$title?></a> <?php if($new ==1){?><img src="<?=SITE_HOME?>images/new.gif" border="0" align="absmiddle"/><?php }?> </li> <?php }?> <?php }?> </ul> <?php } }?> </div>