Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php require_once('../../../private/initialize.php'); ?>
- <?php
- //tietokannan tapaan toimiva array
- $subjects = [
- ['id' => '1', 'position' => '1', 'visible' => '1', 'menu_name' => 'About Globe Bank'],
- ['id' => '2', 'position' => '2', 'visible' => '1', 'menu_name' => 'Consumer'],
- ['id' => '3', 'position' => '3', 'visible' => '1', 'menu_name' => 'Small Business'],
- ['id' => '4', 'position' => '4', 'visible' => '1', 'menu_name' => 'Commercial'],
- ];
- ?>
- <?php $page_title = 'Subjects'; ?>
- <?php include(SHARED_PATH . '/staff_header.php'); ?>
- <div id="content">
- <div class="subjects listing">
- <h1>Subjects</h1>
- <div class="actions">
- <a class="action" href="">Create New Subject</a>
- </div>
- <table class="list">
- <tr>
- <th>ID</th>
- <th>Position</th>
- <th>Visible</th>
- <th>Name</th>
- <th> </th>
- <th> </th>
- <th> </th>
- </tr>
- <?php foreach($subjects as $subject) { ?>
- <tr>
- <td><?php echo $subject['id']; ?></td>
- <td><?php echo $subject['position']; ?></td>
- <td><?php echo $subject['visible'] == 1 ? 'true' : 'false'; ?></td>
- <td><?php echo $subject['menu_name']; ?></td>
- <td><a class="action" href="">View</a></td>
- <td><a class="action" href="">Edit</a></td>
- <td><a class="action" href="">Delete</a></td>
- </tr>
- <?php } ?>
- </table>
- </div>
- </div>
- <?php include(SHARED_PATH . '/staff_footer.php'); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement