pageHeader(); ?> <div class="container_12"> <div class="grid_7"> <h1><?php echo '<a href="' . getSesizareURL($_SESIZARE[0]['sesizare_id']) . '">' . $_SESIZARE[0]['sesizare_titlu'] . '</a>'; ?> </h1> <div class="icon_time"></div><div class="sesizareMeta"><?php echo getDataOraNice($_SESIZARE[0]['data_ora']); ?> </div> <div class="icon_location"></div><div class="sesizareMeta"><?php echo getLocationNice($_SESIZARE[0]['location_search'], $_SESIZARE[0]['location_reverse']); ?> </div> <div class="clear"></div> <br /> <h3>Categorii:</h3> <div class="sesizareCategsList"> <?php for ($i = 0; $i < count($_CATEGORII_SESIZARE); $i++) { print $_CATEGORII_SESIZARE[$i]['categ_name'] . ''; if ($i < count($_CATEGORII_SESIZARE) - 1) { print ' | '; } } //endfor ?>
function printSesizareInList($_SESIZARE) { global $config; //url $url = getSesizareURL($_SESIZARE['sesizare_id']); //image if (is_file($config['filesUploadDir'] . $_SESIZARE['file_input_thumb'])) { $imgTag = '<a href="' . $url . '"><img class="reportImg" src="' . $config['webUploadDir'] . $_SESIZARE['file_input_thumb'] . '" width="140" border="0" /></a>'; } else { $imgTag = '<a href="' . $url . '"><img class="reportImg" src="images/sesizare_thumb_default.jpg" width="140" border="0" /></a>'; } //descriere $_SESIZARE['sesizare_descriere'] = textResize(htmlspecialchars_decode($_SESIZARE['sesizare_descriere']), 150); //data ora $data_ora_str = getDataOraNice($_SESIZARE['data_ora']); //location $location_str = getLocationNice($_SESIZARE['location_search'], $_SESIZARE['location_reverse']); ?> <div class="report"> <?php echo $imgTag; ?> <div class="reportInfo"> <h2><?php echo '<a href="' . $url . '">' . $_SESIZARE['sesizare_titlu'] . '</a>'; ?> </h2> <p><?php echo '<a href="' . $url . '">' . strip_tags($_SESIZARE['sesizare_descriere']) . '</a>'; ?> </p> <div class="metaInfo"><?php echo $data_ora_str; ?> - <?php echo $location_str; ?> </div> </div> </div> <div class="clear"></div> <?php }