mirrored from git://git.moodle.org/moodle.git
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Now the entries could be categorized.
- Any entry could belongs to many categories - Improved main page and add entry look. - Added PostgreSQL7 squema (Thanks Janne Mikkonen!) - Deleting entries also delete its attachments if any.
- Loading branch information
willcast
committed
Sep 21, 2003
1 parent
e457648
commit fb443f1
Showing
18 changed files
with
659 additions
and
165 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
function glossary_upgrade($oldversion) { | ||
/// This function does anything necessary to upgrade | ||
/// older versions to match current functionality | ||
|
||
global $CFG; | ||
|
||
|
||
return true; | ||
} | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
# This file contains a complete database schema for all the | ||
# tables used by this module, written in SQL | ||
|
||
# It may also contain INSERT statements for particular data | ||
# that may be used, especially new entries in the table log_display | ||
|
||
# | ||
# Table structure for table `glossary` | ||
# | ||
|
||
CREATE TABLE prefix_glossary ( | ||
id SERIAL, | ||
course int4 NOT NULL default '0', | ||
name varchar(255) NOT NULL default '', | ||
studentcanpost int2 NOT NULL default '0', | ||
allowduplicatedentries int2 NOT NULL default '0', | ||
displayformat int2 NOT NULL default '0', | ||
mainglossary int2 NOT NULL default '0', | ||
showspecial int2 NOT NULL default '1', | ||
showalphabet int2 NOT NULL default '1', | ||
showall int2 NOT NULL default '1', | ||
timecreated int4 NOT NULL default '0', | ||
timemodified int4 NOT NULL default '0', | ||
PRIMARY KEY (id) | ||
); | ||
|
||
# | ||
# Table structure for table `glossary_entries` | ||
# | ||
|
||
CREATE TABLE prefix_glossary_entries ( | ||
id SERIAL, | ||
glossaryid int4 NOT NULL default '0', | ||
userid int4 NOT NULL default '0', | ||
concept varchar(255) NOT NULL default '', | ||
definition text NOT NULL, | ||
format int2 NOT NULL default '0', | ||
attachment VARCHAR(100) NOT NULL default '', | ||
timecreated int4 NOT NULL default '0', | ||
timemodified int4 NOT NULL default '0', | ||
teacherentry int2 NOT NULL default '0', | ||
PRIMARY KEY(id) | ||
); | ||
|
||
# | ||
# Table structure for table `glossary_cageories` | ||
# | ||
|
||
CREATE TABLE prefix_glossary_categories ( | ||
id SERIAL, | ||
glossaryid int4 NOT NULL default '0', | ||
name varchar(255) NOT NULL default '', | ||
PRIMARY KEY (id) | ||
); | ||
|
||
# | ||
# Table structure for table `glossary_entries_category` | ||
# | ||
|
||
CREATE TABLE prefix_glossary_entries_categories ( | ||
categoryid int4 NOT NULL default '0', | ||
entryid int4 NOT NULL default '0', | ||
PRIMARY KEY (categoryid, entryid) | ||
); | ||
|
||
# | ||
# Dumping data for table `log_display` | ||
# | ||
|
||
INSERT INTO prefix_log_display VALUES ('glossary', 'add', 'glossary', 'name'); | ||
INSERT INTO prefix_log_display VALUES ('glossary', 'update', 'glossary', 'name'); | ||
INSERT INTO prefix_log_display VALUES ('glossary', 'view', 'glossary', 'name'); | ||
INSERT INTO prefix_log_display VALUES ('glossary', 'view all', 'glossary', 'name'); | ||
INSERT INTO prefix_log_display VALUES ('glossary', 'add entry', 'glossary', 'name'); | ||
INSERT INTO prefix_log_display VALUES ('glossary', 'update entry', 'glossary', 'name'); | ||
INSERT INTO prefix_log_display VALUES ('glossary', 'add category', 'glossary', 'name'); | ||
INSERT INTO prefix_log_display VALUES ('glossary', 'update category', 'glossary', 'name'); | ||
INSERT INTO prefix_log_display VALUES ('glossary', 'delete category', 'glossary', 'name'); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<? | ||
global $CFG, $THEME; | ||
require_once("../../config.php"); | ||
|
||
?> | ||
|
||
<FORM name="form" method="post" <?=$onsubmit ?> action="editcategories.php"> | ||
<table class=generalbox cellpadding=5 bgcolor="<? p($THEME->cellheading)?>"> | ||
<tr valign=top> | ||
<td align=right><p><b><?php echo get_string("name") ?>:</b></p></td> | ||
<td> | ||
<INPUT type="text" name="name" size=30 value="<?=$name ?>"> | ||
</td> | ||
</tr> | ||
<td colspan=2> | ||
<p align=center> | ||
<input type="hidden" name=id value="<?=$cm->id ?>"> | ||
<input type="hidden" name=action value="<?=$action?>"> | ||
<input type="hidden" name=confirm value=1> | ||
<input type="hidden" name=cat value=<? p($cat) ?>> | ||
<input type="submit" value="<? print_string("savechanges") ?>"> | ||
<input type="reset" value="<? print_string("back","glossary") ?>" onclick="javascript:history.go(-1);"> | ||
</P> | ||
</td> | ||
</tr> | ||
</table> | ||
</p> | ||
|
||
|
||
</form> |
Oops, something went wrong.