Example #1
0
function makeContent($currentPage)
{
    $PAGES_DIR = './pages/';
    $PORTIONS_DIR = './htmlPortions/';
    $key = makePageKey($currentPage);
    echo "<!DOCTYPE html>\n";
    echo "<html>";
    include_once $PORTIONS_DIR . 'head.html';
    echo "<body>";
    include_once $PORTIONS_DIR . 'banner.html';
    clear();
    makeNav($key, $PAGES_DIR);
    clear();
    echo "<div id=\"page\"><div id=\"pageContent\">";
    include_once $PAGES_DIR . $key . '.html';
    echo "</div>";
    include_once $PORTIONS_DIR . 'sidebar.html';
    echo "</div>";
    clear();
    echo "<div id=\"footer\">Software and website by <a href=\"http://quentelery.users.sourceforge.net\">Quentin Geissmann</a><br>Website hosted by <a href='http://sourceforge.net'>sourceforge</a></div></body></html>";
}
Example #2
0
            echo '<tr';
            //if($i%2!=0){echo ' style="background-color: #F7F7F7;" ';}
            echo '>';
            echo '<td style="padding: 0 10px;" valign="top"><h6 class="table" style="line-height: 25px;"><b>Door: </b>' . $row['naam'];
            if ($row['email'] != '') {
                echo ' - ' . $row['email'];
            }
            if ($row['website'] != '') {
                echo ' - <a href="' . $row['website'] . '" target="_blank">website</a>';
            }
            echo '</h6></td>';
            echo '</tr><tr>';
            echo '<td style="padding: 0 10px;"><h6 class="table" style="line-height: 25px;"><b>Op: </b>' . datumOmzetten($row['datumformat']) . '</h6></td>';
            echo '</tr><tr>';
            echo '<td style="padding: 0 10px;"><h6 class="table" style="text-align: justify; line-height: 25px;">' . artikelInOrde($row['tekst']) . '</h6></td>';
            echo '</tr>';
            echo '</table></div>';
            $i++;
        }
        echo makeNav($page, $max, $start, '?page=gastenboek', 'gastenboek');
        // navigatie aanmaken
    }
    echo '<h6 class="text"><a href="?page=gastenboek&amp;action=toevoegen">Schrijf iets in het gastenboek</a></h6>';
} else {
    $actions = array('toevoegen');
    if (isset($_GET['action']) && in_array($_GET['action'], $actions) && file_exists($_GET['page'] . '_' . $_GET['action'] . '.php')) {
        include $_GET['page'] . '_' . $_GET['action'] . '.php';
    } else {
        include 'error_include.php';
    }
}
Example #3
0
$page = !isset($_GET['nav']) ? 1 : $_GET['nav'];
// max
$max = 8;
//aantal records per pagina
$start = $max * $page - $max;
$query = mysql_query('SELECT *, DATE_FORMAT(`datum`, "%d/%M/%m/%Y %H:%i") AS `formatdatum` FROM nieuws ORDER BY id DESC LIMIT ' . $start . ', ' . $max);
if (mysql_num_rows($query) < 1) {
    echo '<h6 class="title">Startpagina</h6>';
    echo '<h6 class="date">' . datum() . '</h6>';
    echo '<h6 class="text">Er zijn nog geen artikels in de database.</h6>';
} else {
    while ($row = mysql_fetch_array($query)) {
        ?>
    <h6 class="title" style="margin-top: 0;"><?php 
        echo artikelInOrde($row['titel']);
        ?>
</h6>
    <h6 class="date"><?php 
        echo datumOmzetten($row['formatdatum']);
        ?>
</h6>
    <h6 class="text"><?php 
        echo artikelInOrde($row['artikel']);
        ?>
</h6>
    <div style="padding: 0; margin: 0 0 25px 0; border-bottom: 1px dashed #CECECE;"></div>
    <?php 
    }
    echo makeNav($page, $max, $start, '', 'nieuws');
    // navigatie aanmaken
}
Example #4
0
    $itemFound = false;
    $iid = "";
}
// make sure the variables passed to makeName are initialized
if (!isset($fid)) {
    $fid = null;
}
if (!isset($vfid)) {
    $vfid = null;
}
if (!isset($cids)) {
    $cids = null;
}
//precompute the navigation hints, which will be passed to the header as <link>s
$links = NULL;
if (($cid || $fid || $vfid || $y && $m && $d) && ($nv = makeNav($cid, $iid, $y, $m, $d, $fid, $vfid, $cids)) != null) {
    list($prev, $succ, $up) = $nv;
    $links = array();
    if ($prev != null) {
        $links['prev'] = array('title' => $prev['lbl'], 'href' => $prev['url']);
    }
    if ($succ != null) {
        $links['next'] = array('title' => $succ['lbl'], 'href' => $succ['url']);
    }
    if ($up != null) {
        $links['up'] = array('title' => $up['lbl'], 'href' => $up['url']);
    }
}
if ($iid == "") {
    $cidfid = array();
    // "channel / folder mode"
Example #5
0
    echo '<h6 class="text">Hier vindt u alle belangrijke data van het Lepa.</h6>';
    $query = mysql_query('SELECT *, DATE_FORMAT(`datum`, "%d/%m/%Y") AS `datumformat` FROM kalender ORDER BY datum DESC LIMIT ' . $start . ', ' . $max);
    if (mysql_num_rows($query) < 1) {
        echo '<h6 class="text">Er zijn nog geen data aanwezig.</h6>';
    } else {
        $i = 0;
        echo '<div style="padding: 2px; border: 1px solid #E0E0E0;">';
        echo '<table border="0" cellspacing="0" cellpadding="0" style="margin:0; padding:0; width: 100%;">';
        while ($row = mysql_fetch_array($query)) {
            echo '<tr';
            if ($i % 2 == 0) {
                echo ' style="background-color: #F7F7F7;" ';
            }
            echo '>';
            echo '<td style="padding: 0 10px; width: 70px;" valign="top"><h6 class="table"><a href="?page=kalender&amp;action=meer&amp;id=' . $row['id'] . '">' . $row['datumformat'] . '</a></h6></td>';
            echo '<td style="padding: 0 10px;"><h6 class="table" style="text-align: justify;">' . artikelInOrde(afkorten($row['gebeurtenis'], 75)) . '</h6></td>';
            echo '</tr>';
            $i++;
        }
        echo '</table></div>';
    }
    echo makeNav($page, $max, $start, '?page=kalender', 'kalender');
    // navigatie aanmaken
} else {
    $actions = array('meer');
    if (isset($_GET['action']) && in_array($_GET['action'], $actions) && file_exists($_GET['page'] . '_' . $_GET['action'] . '.php')) {
        include $_GET['page'] . '_' . $_GET['action'] . '.php';
    } else {
        include 'error_include.php';
    }
}
            ?>
</h6></td>
      <td style="padding: 0 10px; width: 12px;"><a href="?page=realisaties&amp;action=aanpassen&amp;id=<?php 
            echo $row['id'];
            ?>
"><img src="images/edit.gif" width="12" height="16" border="0" alt="Realisatie aanpassen" title="Realisatie aanpassen" /></a></td>
      <td style="padding: 0 10px; width: 16px;"><a href="?page=realisaties&amp;action=verwijderen&amp;id=<?php 
            echo $row['id'];
            ?>
"><img src="images/delete.gif" width="16" height="16" border="0" alt="Realisatie verwijderen" title="Realisatie verwijderen" /></a></td>
    </tr>
  <?php 
            $i++;
        }
        echo '</table></div>';
    }
    ?>
  <h6 class="text">
  <a href="?page=realisaties&amp;action=toevoegen">Realisatie toevoegen</a>
  </h6>
<?php 
    echo makeNav($page, $max, $start, '?page=realisaties', 'realisaties');
    // navigatie aanmaken
} else {
    $actions = array('toevoegen', 'aanpassen', 'verwijderen', 'meer');
    if (isset($_GET['action']) && in_array($_GET['action'], $actions) && file_exists($_GET['page'] . '_' . $_GET['action'] . '.php')) {
        include $_GET['page'] . '_' . $_GET['action'] . '.php';
    } else {
        include 'error_include.php';
    }
}
Example #7
0
            ?>
</td>
      <td style="padding: 0 10px; width: 12px;"><a href="?page=downloads&amp;action=aanpassen&amp;id=<?php 
            echo $row['id'];
            ?>
"><img src="images/edit.gif" width="12" height="16" border="0" alt="Download aanpassen" title="Download aanpassen" /></a></td>
      <td style="padding: 0 10px; width: 16px;"><a href="?page=downloads&amp;action=verwijderen&amp;id=<?php 
            echo $row['id'];
            ?>
"><img src="images/delete.gif" width="16" height="16" border="0" alt="Download verwijderen" title="Download verwijderen" /></a></td>
    </tr>
  <?php 
            $i++;
        }
        echo '</table></div>';
    }
    ?>
  <h6 class="text">
  <a href="?page=downloads&amp;action=toevoegen">Download toevoegen</a>
  </h6>
<?php 
    echo makeNav($page, $max, $start, '?page=downloads', 'downloads');
    // navigatie aanmaken
} else {
    $actions = array('toevoegen', 'aanpassen', 'verwijderen', 'meer');
    if (isset($_GET['action']) && in_array($_GET['action'], $actions) && file_exists($_GET['page'] . '_' . $_GET['action'] . '.php')) {
        include $_GET['page'] . '_' . $_GET['action'] . '.php';
    } else {
        include 'error_include.php';
    }
}