Ejemplo n.º 1
0
    <thead>
    <tr>
        <td>Article Id</td>
        <td>Article Name</td>
        <td colspan="2">
            <form action="editorPortal.php" method="post">
                <input type="Submit" id="addArticle" name="addArticle" value="Add Article" />

            </form>
        </td>
    </tr>
    </thead>
    <tbody>
    <?php 
require "../Business/ArticleClass.php";
$arrayOfArticles = ArticleClass::retrieveArticles();
foreach ($arrayOfArticles as $article) {
    ?>
        <tr>
            <td><?php 
    echo $article->getId();
    ?>
</td>
            <td><?php 
    echo $article->getTitle();
    ?>
</td>
            <td>
                <form action="editorPortal.php" method="post">
                    <input type="text" id="editArticleId" name="editArticleId" value="<?php 
    echo $article->getID();