Your commit message

This commit is contained in:
RameshT 2024-08-08 17:18:50 +05:30
parent e64c4ead99
commit 0fee63db20
3 changed files with 9 additions and 7 deletions

View File

@ -4,7 +4,7 @@ namespace application\controllers;
defined('BASEPATH') or exit('No direct script access allowed');
// use application\models\Form_model;
use application\models\Form_model;
class Form extends CI_Controller
{
@ -15,6 +15,7 @@ class Form extends CI_Controller
}
public function submit()
{
if (!$this->session->userdata('logged_in')) {
// If not logged in, redirect to login page
redirect('users/login');

View File

@ -1,6 +1,6 @@
<?php
// namespace application\controllers;
namespace application\controllers;
defined('BASEPATH') or exit('No direct script access allowed');
class Welcome extends CI_Controller

View File

@ -1,19 +1,20 @@
$(document).ready(function () {
let index = 1
let activeSection = null
function addOption(type, container) {
let optionHtml
if (type === 'multiple-choice' || type === 'checkboxes') {
function addOption(type, container)
let optionHtml
if (type === 'multiple-choice' || type === 'checkboxes') {
optionHtml = `
<div class="option">
<input type="${type === 'multiple-choice' ? 'radio' : 'checkbox'}" disabled>
<input type="text" class="form-control option-label">
<span class="delete-option-icon">&times;</span>
<span class="delete-option-icon">&times;</span>
</div>
`
} else if (type === 'dropdown') {
} else if (type === 'dropdown') {
optionHtml = `
<div class="option">
<input type="text" class="form-control option-label">