2024-07-11 12:05:44 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
2024-07-19 10:46:18 +00:00
|
|
|
<title>Form Preview - Google Forms</title>
|
2024-07-11 12:05:44 +00:00
|
|
|
<link rel="stylesheet" href="https://bootswatch.com/3/flatly/bootstrap.min.css">
|
2024-07-19 10:46:18 +00:00
|
|
|
<link rel="stylesheet" href="<?php echo base_url(); ?>assets/css/styles.css">
|
2024-07-11 12:05:44 +00:00
|
|
|
<link rel="stylesheet" href="<?php echo base_url(); ?>assets/css/header_styles.css">
|
2024-07-19 10:46:18 +00:00
|
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
|
|
|
|
<link rel="stylesheet" href="<?php echo base_url(); ?>assets/css/jquery-ui.css">
|
2024-07-22 09:49:37 +00:00
|
|
|
<link rel="stylesheet" href="https://cdn.datatables.net/2.1.0/css/dataTables.dataTables.css">
|
|
|
|
|
|
|
|
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
|
|
|
|
<script src="https://cdn.datatables.net/1.11.4/js/jquery.dataTables.min.js"></script>
|
|
|
|
<script src="https://cdn.datatables.net/1.11.4/js/dataTables.bootstrap4.min.js"></script>
|
|
|
|
|
2024-07-19 10:46:18 +00:00
|
|
|
|
2024-07-11 12:05:44 +00:00
|
|
|
</head>
|
2024-07-19 10:46:18 +00:00
|
|
|
<body>
|
|
|
|
|
|
|
|
<nav class="navbar navbar-inverse" style="background-color: rgb(103, 58, 183);">
|
|
|
|
<div class="container" style="background-color: rgb(103, 58, 183);">
|
2024-07-16 12:29:59 +00:00
|
|
|
<?php if ($this->session->userdata('logged_in')): ?>
|
2024-07-11 12:05:44 +00:00
|
|
|
<div class="navbar-header">
|
2024-07-16 12:29:59 +00:00
|
|
|
<a class="navbar-brand" href="<?php echo base_url(); ?>Form_controller/index_forms">Google Forms</a>
|
2024-07-11 12:05:44 +00:00
|
|
|
</div>
|
2024-07-19 10:46:18 +00:00
|
|
|
<?php endif; ?>
|
2024-07-16 12:29:59 +00:00
|
|
|
|
2024-07-19 10:46:18 +00:00
|
|
|
<div id="navbar">
|
|
|
|
<ul class="nav navbar-nav">
|
|
|
|
<?php if ($this->session->userdata('logged_in')): ?>
|
2024-07-16 12:29:59 +00:00
|
|
|
<li><a href="<?php echo base_url(); ?>Publish_controller/list_user_published_forms">Published Forms</a></li>
|
2024-07-19 12:30:57 +00:00
|
|
|
<li><a href="<?php echo base_url(); ?>Form_controller/index_forms_draft">Drafts</a></li>
|
|
|
|
|
2024-07-19 10:46:18 +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')): ?>
|
|
|
|
<li><a href="<?php echo base_url(); ?>home/title">Create Form</a></li>
|
|
|
|
<li><a href="<?php echo base_url(); ?>users/logout">Logout</a></li>
|
|
|
|
<?php endif; ?>
|
|
|
|
</ul>
|
2024-07-11 12:05:44 +00:00
|
|
|
</div>
|
2024-07-19 10:46:18 +00:00
|
|
|
</div>
|
|
|
|
</nav>
|
2024-07-11 12:05:44 +00:00
|
|
|
|
2024-07-19 10:46:18 +00:00
|
|
|
<div class="container">
|
|
|
|
<?php if ($this->session->flashdata('user_registered')): ?>
|
|
|
|
<?php echo '<p class="alert alert-success">' . $this->session->flashdata('user_registered') . '</p>'; ?>
|
|
|
|
<?php endif; ?>
|
2024-07-11 12:05:44 +00:00
|
|
|
|
2024-07-19 10:46:18 +00:00
|
|
|
<?php if ($this->session->flashdata('login_failed')): ?>
|
|
|
|
<?php echo '<p class="alert alert-danger">' . $this->session->flashdata('login_failed') . '</p>'; ?>
|
|
|
|
<?php endif; ?>
|
2024-07-11 12:05:44 +00:00
|
|
|
|
2024-07-19 10:46:18 +00:00
|
|
|
<?php if ($this->session->flashdata('user_loggedin')): ?>
|
|
|
|
<?php echo '<p class="alert alert-success">' . $this->session->flashdata('user_loggedin') . '</p>'; ?>
|
|
|
|
<?php endif; ?>
|
2024-07-11 12:05:44 +00:00
|
|
|
|
2024-07-19 10:46:18 +00:00
|
|
|
<?php if ($this->session->flashdata('user_loggedout')): ?>
|
|
|
|
<?php echo '<p class="alert alert-success">' . $this->session->flashdata('user_loggedout') . '</p>'; ?>
|
|
|
|
<?php endif; ?>
|
|
|
|
</div>
|