Пример #1
0
<?php

$page_title = 'Barangay System';
$stylesheet_link = 'style';
require 'path.php';
init_cobalt();
require 'header1.php';
require_once 'subclasses/bulletin.php';
$dbh_bulletin = new bulletin();
$dbh_bulletin->execute_query("SELECT bulletin_name,bulletin_description,file_document FROM bulletin WHERE bulletin_id = '{$_GET['b']}'");
$result = $dbh_bulletin->result;
?>
<main>

<div class="fold-body">
			<div class="bulletin-contents">
			<?php 
while ($row = $result->fetch_assoc()) {
    extract($row);
    echo "<h3 class='fold-complain-head'>{$bulletin_name}</h3><br/>";
    echo "<hr class='hr'/>";
    echo "<div class='divimg'><img class='showimg' src='../../tmp/{$file_document}'/></div><br><br><br>";
    echo "<p>{$bulletin_description}<br></p>";
}
?>
			
		<!--</table>-->	
	</div>

	</div>
Пример #2
0
<div class="map-block center-obj">
	<div class="evac-center center-obj">
	<h3 class="evac-h3 center-obj">Evacuation Center</h3></div>
	<div class="google-map">
		<a class="navlink" href="https://www.google.com.ph/maps/" target="_blank"><h3 class="google-h3 center-obj">Mag-Search sa Google Map</h3></a></div>
</div>
</div>

<div class="fold-3">
	<h3 class="fold-5-head center-obj fold-head">Suriin ang iyong Kalusugan</h3>
	<hr class="hr"/>
<div class="health-fold center-obj">
<?php 
$bcount2 = 0;
$dbh_bulletin2 = new bulletin();
$dbh_bulletin2->execute_query("SELECT bulletin_id,bulletin_name,bulletin_description,file_document FROM bulletin WHERE category in ('health')");
$result2 = $dbh_bulletin2->result;
while ($row2 = $result2->fetch_assoc()) {
    extract($row2);
    $bcount2++;
    if (strlen($bulletin_description) < 100) {
        //do nothing
    } else {
        $bulletin_description = substr($bulletin_description, 0, 99);
        $bulletin_description .= "&hellip;";
        $bulletin_description .= '<p><a href="showmore.php?b=' . $bulletin_id . '">[Basahin pa]</a></p>';
    }
    $bulcount2 = $bcount2;
    echo "<div id='board{$bulcount2}' class='bulletin-board'>";
    echo "<div class='descript'>";
    echo "<h4 class='bulletin-title'>{$bulletin_name}</h4>";