CodeIgniter_Gforms/application/views/templates/header.php

57 lines
2.7 KiB
PHP
Raw Normal View History

2024-07-11 13:04:55 +00:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Gforms</title>
2024-07-19 11:43:09 +00:00
2024-07-11 13:04:55 +00:00
<link rel="stylesheet" href="<?= base_url() ?>assets/css/bootstrap.min.css">
<link rel= "stylesheet" href = "<?= base_url() ?>assets/css/style.css">
2024-07-24 04:59:15 +00:00
<link rel="stylesheet" href="<?= base_url() ?>assets/css/jquery-ui-themes/themes/base/jquery-ui.css">
2024-07-11 13:04:55 +00:00
</head>
2024-07-18 10:49:23 +00:00
<body style="background-color:white;"><!--#f0ebf8-->
<nav class = "navbar navbar-inverse" style="background-color:rgb(103, 58, 183); margin-bottom:0px;">
2024-07-11 13:04:55 +00:00
<div class = "container">
<div id = "nav-header" class = "navbar-header">
2024-07-19 11:43:09 +00:00
<a class = "navbar-brand" href="<?= base_url(); ?>hero">Gforms</a>
2024-07-11 13:04:55 +00:00
</div>
<div id = "navbar">
<ul class = "nav navbar-nav">
<?php if($this->session->userdata('logged_in')) : ?>
2024-07-19 11:43:09 +00:00
<li><a href = "<?= base_url(); ?>home">Home</a></li>
2024-07-14 21:04:04 +00:00
<li><a href="<?= base_url(); ?>my_forms">My Forms</a></li>
<li><a href="<?= base_url(); ?>my_drafts">My Drafts</a></li>
2024-07-16 03:00:23 +00:00
<li><a href="<?=base_url(); ?>responses">Responses</a></li>
2024-07-11 13:04:55 +00:00
<?php endif; ?>
</ul>
<ul class = "nav navbar-nav navbar-right">
<?php if(!$this->session->userdata('logged_in')) : ?>
<li><a href="<?php echo base_url(); ?>users/login">Login</a></li>
<li><a href="<?php echo base_url(); ?>users/register">Register</a></li>
<?php endif; ?>
<?php if($this->session->userdata('logged_in')) : ?>
2024-07-14 21:04:04 +00:00
<li><a href="<?php echo base_url(); ?>create">Create Form</a></li>
2024-07-11 13:04:55 +00:00
<li><a href="<?php echo base_url(); ?>users/logout">Logout</a></li>
<?php endif; ?>
</ul>
</div>
</div>
</nav>
2024-07-18 10:49:23 +00:00
<div class = "layout" >
2024-07-11 13:04:55 +00:00
<?php if($this->session->flashdata('user_registered')): ?>
<?php echo '<p class="alert alert-success">'.$this->session->flashdata('user_registered').'</p>'; ?>
<?php endif; ?>
<?php if($this->session->flashdata('login_failed')): ?>
<?php echo '<p class="alert alert-danger">'.$this->session->flashdata('login_failed').'</p>'; ?>
<?php endif; ?>
<?php if($this->session->flashdata('user_loggedin')): ?>
<?php echo '<p class="alert alert-success">'.$this->session->flashdata('user_loggedin').'</p>'; ?>
<?php endif; ?>
<?php if($this->session->flashdata('user_loggedout')): ?>
<?php echo '<p class="alert alert-danger">'.$this->session->flashdata('user_loggedout').'</p>'; ?>
<?php endif; ?>