-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathlooma-chapterIDs.php
More file actions
executable file
·117 lines (100 loc) · 4.83 KB
/
looma-chapterIDs.php
File metadata and controls
executable file
·117 lines (100 loc) · 4.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<?php
//function isLoggedIn() { return (isset($_COOKIE['login']) ? $_COOKIE['login'] : null);}
require_once('includes/looma-isloggedin.php');
// NOTE: this code sending "header" must be before ANY data is sent to client=side
$loggedin = loggedIn(); if (!$loggedin) header('Location: looma-login.php');
error_log("Starting Activity Edit session. logged in as: " . $loggedin);
?>
<!doctype html>
<!--
Filename: looma-chapterIDs.php
Description: template for Looma editor tools, like Lesson Plan Editor, Slideshow Editor, etc
Programmer name: Skip
Owner: VillageTech Solutions (villagetechsolutions.org)
Date: Dec 2020
Revision: Looma 3.0
-->
<?php $page_title = 'Looma Chapter IDsr';
include ('includes/header.php');
?>
<link rel = "Stylesheet" type = "text/css" href = "css/looma-edit-activities.css">
</head>
<body>
<div id="main-container">
<div id="formpanel" >
<div id='changes' name='changes'>
<input type='hidden' value='chapters' name='collection'/>
<h3>Find a Looma chapter ID:</h3>
<?php
/*******************************************************/
/****** TEXT BOOKS ************************************/
/*******************************************************/
echo "<p>
<label class='drop-menu'>Language: </label>
<input type = 'radio'
form = 'changes'
name = 'lang'
value = 'en'
checked />
<label for = 'en'>English</label>
<input type = 'radio'
form = 'changes'
name = 'lang'
value = 'np' />
<label for = 'np'>Nepali</label>
</p>";
echo "<div id='textbooks'>";
/**************************************/
/*********** TEXTBOOKS Grade Dropdown **********/
/**************************************/
echo "<div id='grade-changes' >
<label class='drop-menu'>Grade:</label>
<select id='grade-chng-menu' class='book-changes black-border' form='changes' name='class'>
<option value='' selected>Select...</option>";
for($x = 1; $x <= 10; $x++){echo "<option value='" . $x . "' id='" . $x . "'>" . $x . "</option>";}
echo "</select>";
//echo "</span>";
echo "</div><br>";
/**************************************/
/********* TEXTBOOKS Subject Dropdown **********/
/**************************************/
echo "<div id='subject-changes' >
<label class='drop-menu'>Subject:</label>
<select id='subject-chng-menu' class='book-changes black-border' name='subj' form='changes'>
<option value='' selected>Select...</option>";
$classInfo = array(
array("all","EN", "N", "M", "Ma", "S", "Sa", "SS", "SSa", "H", "V"),
array("All","English","Nepali","Math","Math Optional", "Science","Science Optional","Social Studies","Social Studies Optional","Health", "Vocation")
);
for($x = 1; $x < count($classInfo[0]); $x++) {
echo "<option name='subj' value='" . $classInfo[0][$x] . "'>" . $classInfo[1][$x] . "</option>";}
echo "</select>";
// echo "</span>";
echo "</div><br>";
/**************************************/
/********* TEXTBOOKS Chapter Dropdown **********/
/**************************************/
echo "<div id='chapter-changes' >
<label class='drop-menu'>Chapter:</label>
<select id='chapter-chng-menu' class='book-changes black-border' name='chapter' form='changes'>
<option value='' selected>Select...</option>
</select>";
echo "</div>";
echo "</div><br>";
?>
<h3>Verify a Looma chapter ID:</h3>
<label>Enter a chapter ID: </label>
<input type="text" id="ch_id">
<p id="legal"></p>
<?php echo "</div>";
echo "</div>";
?>
</div>
</div>
<?php include ('includes/js-includes.php'); ?>
<script src="js/jquery-ui.min.js"></script>
<script src="js/jquery.hotkeys.js"></script>
<script src="js/tether.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/looma-chapterIDs.js"></script>
<script src="js/looma-search.js"></script>