google_forms/application/views/templates/header.php

161 lines
5.1 KiB
PHP
Raw Normal View History

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-24 13:12:00 +00:00
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/sweetalert2@10/dist/sweetalert2.min.css">
2024-07-23 12:54:27 +00:00
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<link rel="stylesheet" href="https://cdn.datatables.net/1.11.5/css/jquery.dataTables.min.css">
<script src="https://cdn.datatables.net/1.11.5/js/jquery.dataTables.min.js"></script>
2024-07-25 12:54:05 +00:00
2024-07-11 12:05:44 +00:00
</head>
2024-07-19 10:46:18 +00:00
<body>
2024-07-26 12:41:46 +00:00
<style>
.navbar-custom .navbar-brand,
.navbar-custom .navbar-nav .nav-link {
2024-08-09 12:04:48 +00:00
color: white !important;
text-decoration: none !important;
background: none !important;
2024-07-26 12:41:46 +00:00
}
.navbar-custom .navbar-brand:hover,
.navbar-custom .navbar-nav .nav-link:hover {
2024-08-09 12:04:48 +00:00
color: white !important;
text-decoration: none !important;
background: none !important;
2024-07-26 12:41:46 +00:00
}
2024-07-29 09:17:16 +00:00
.title-column {
color: darkblue;
}
.draft-row {
background-color: #f0f0f0;
}
.switch {
position: relative;
display: inline-block;
width: 34px;
height: 20px;
}
.switch input {
opacity: 0;
width: 0;
height: 0;
}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
transition: .4s;
}
.slider:before {
position: absolute;
content: "";
height: 14px;
width: 14px;
left: 3px;
bottom: 3px;
background-color: white;
transition: .4s;
}
input:checked + .slider {
background-color: #673AB7;
}
input:checked + .slider:before {
transform: translateX(14px);
}
.slider.round {
border-radius: 20px;
}
.slider.round:before {
border-radius: 50%;
}
.switch .tooltip {
visibility: hidden;
width: 70px;
background-color: #555;
color: #fff;
text-align: center;
border-radius: 5px;
padding: 5px;
position: absolute;
z-index: 1;
bottom: 125%;
left: 290%;
margin-left: -60px;
opacity: 0;
transition: opacity 0.3s;
}
.switch:hover .tooltip {
visibility: visible;
opacity: 1;
}
2024-07-26 12:41:46 +00:00
</style>
2024-07-19 10:46:18 +00:00
<nav class="navbar navbar-inverse" style="background-color: rgb(103, 58, 183);">
<div class="container" style="background-color: rgb(103, 58, 183);">
2024-08-09 12:04:48 +00:00
<?php if ($this->session->userdata('logged_in')) : ?>
2024-07-11 12:05:44 +00:00
<div class="navbar-header">
2024-07-22 12:39:47 +00:00
<a class="navbar-brand" href="<?php echo base_url(); ?>">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">
2024-08-09 12:04:48 +00:00
<?php if ($this->session->userdata('logged_in')) : ?>
2024-07-22 12:39:47 +00:00
<li><a href="<?php echo base_url(); ?>published_forms">Published Forms</a></li>
2024-08-09 12:04:48 +00:00
<!-- <li><a href="<?php echo base_url(); ?>drafts">Drafts</a></li> -->
2024-07-19 12:30:57 +00:00
2024-07-19 10:46:18 +00:00
<?php endif; ?>
</ul>
<ul class="nav navbar-nav navbar-right">
2024-08-09 12:04:48 +00:00
<?php if (!$this->session->userdata('logged_in')) : ?>
2024-07-19 10:46:18 +00:00
<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; ?>
2024-08-09 12:04:48 +00:00
<?php if ($this->session->userdata('logged_in')) : ?>
2024-07-23 12:54:27 +00:00
<li><a href="<?php echo base_url(); ?>title">Create Form</a></li>
2024-07-19 10:46:18 +00:00
<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>
<div class="container">
2024-08-09 12:04:48 +00:00
<?php if ($this->session->flashdata('user_registered')) : ?>
2024-07-25 12:54:05 +00:00
<p class="alert alert-success flash-message" id="flash-user-registered"><?php echo $this->session->flashdata('user_registered'); ?></p>
2024-07-19 10:46:18 +00:00
<?php endif; ?>
2024-07-11 12:05:44 +00:00
2024-08-09 12:04:48 +00:00
<?php if ($this->session->flashdata('login_failed')) : ?>
2024-07-25 12:54:05 +00:00
<p class="alert alert-danger flash-message" id="flash-login-failed"><?php echo $this->session->flashdata('login_failed'); ?></p>
2024-07-19 10:46:18 +00:00
<?php endif; ?>
2024-07-11 12:05:44 +00:00
2024-08-09 12:04:48 +00:00
<?php if ($this->session->flashdata('user_loggedin')) : ?>
2024-07-25 12:54:05 +00:00
<p class="alert alert-success flash-message" id="flash-user-loggedin"><?php echo $this->session->flashdata('user_loggedin'); ?></p>
2024-07-19 10:46:18 +00:00
<?php endif; ?>
2024-07-11 12:05:44 +00:00
2024-08-09 12:04:48 +00:00
<?php if ($this->session->flashdata('user_loggedout')) : ?>
2024-07-25 12:54:05 +00:00
<p class="alert alert-success flash-message" id="flash-user-loggedout"><?php echo $this->session->flashdata('user_loggedout'); ?></p>
2024-07-19 10:46:18 +00:00
<?php endif; ?>
2024-07-25 12:54:05 +00:00
</div>