summaryrefslogtreecommitdiff
path: root/modules/index.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-06-04 15:40:39 +0000
committerDries Buytaert <dries@buytaert.net>2001-06-04 15:40:39 +0000
commitc75057bb0fc99d56e1b7a48c5fecfe0cf0f6498d (patch)
tree5408a2b8da93dd9aa8057c542ccecbc8a5b287f9 /modules/index.module
parent2ecc3e4c78d032bf3f05018da6522437ffca3906 (diff)
downloadbrdo-c75057bb0fc99d56e1b7a48c5fecfe0cf0f6498d.tar.gz
brdo-c75057bb0fc99d56e1b7a48c5fecfe0cf0f6498d.tar.bz2
CHANGES:
- Added improved node scheduler: + Automatically post node at date 'xx/xx/xx, xx:xx'. + Automatically queue node at date 'xx/xx/xx, xx:xx'. + Automatically dump node at date 'xx/xx/xx, xx:xx'. Requires a database update, see ./updates/2.00-to-x.xx.sql! - Refactored the admin interface of node.module. It is only a start but it should show the direction we are going. + The new interface is easier to extend with new functionality and operations. New "edit xxx" links can easily be added on our way. + The new interface tries to cover all content- or node-related functions. Thus making a special admin interface for each new node type redundant. To demonstrate this, I removed the admin hook from page.module and forum.module. This removes quite a bit of logic from the invidual modules which is a good sign if you ask me. A centralized GUI or interface covering all node-related administration should make Drupal easier to administer. TODO: - All node-related nodes need updating. This should be trivial and I'll hapilly tackle this later tonight. - There will be bugs, and I'm still working on this but I would like to get some feedback (from Natrak et all) on both user-friendliness and usability of this new interface. I'm still working on it as we speak ...
Diffstat (limited to 'modules/index.module')
-rw-r--r--modules/index.module25
1 files changed, 20 insertions, 5 deletions
diff --git a/modules/index.module b/modules/index.module
index 09c8e4abd..592eca038 100644
--- a/modules/index.module
+++ b/modules/index.module
@@ -77,7 +77,7 @@ function index_test_1() {
$form .= index_collection_form($entry->collection);
}
$form .= "Select around and click the button below:<BR>";
- $form .= form_submit("Click to test");
+ $form .= form_submit("Click to test 1");
return form($REQUEST_URI, $form);
}
@@ -101,11 +101,20 @@ function index_test_2($edit) {
return $output;
}
+function index_test_3() {
+ global $REQUEST_URI;
+
+ $form .= "Fill out some meta-tags and search for those articles that matches best:<BR>";
+ $form .= form_submit("Click to test 2");
+
+ return form($REQUEST_URI, $form);
+}
+
function index_entry() {
$result = db_query("SELECT * FROM entry ORDER BY name");
$output .= "<TABLE BORDER=\"1\" CELLPADDING=\"3\" CELLSPACING=\"0\">\n";
- $output .= " <TR><TH>name</TH><TH>collection</TH><TH>keywords string</TH><TH>oparations</TH></TR>\n";
+ $output .= " <TR><TH>name</TH><TH>collection</TH><TH>meta attributes</TH><TH>oparations</TH></TR>\n";
while ($entry = db_fetch_object($result)) {
$output .= "<TR><TD>". check_output($entry->name) ."</TD><TD>". check_output($entry->collection) ."</TD><TD>". check_output($entry->keyword) ."</TD><TD><A HREF=\"admin.php?mod=index&op=edit&id=$entry->eid\">edit entry</A></TD></TR>\n";
}
@@ -117,7 +126,7 @@ function index_entry() {
function index_admin() {
global $edit, $op, $id;
- print "<SMALL><A HREF=\"admin.php?mod=index&op=add\">add new entry</A> | <A HREF=\"admin.php?mod=index&op=entry\">entries</A> | <A HREF=\"admin.php?mod=index&op=collection\">collections</A> | <A HREF=\"admin.php?mod=index&op=help\">help</A> - <A HREF=\"admin.php?mod=index&op=test\">test</A></SMALL><HR>\n";
+ print "<SMALL><A HREF=\"admin.php?mod=index&op=add\">add new entry</A> | <A HREF=\"admin.php?mod=index&op=entry\">entries</A> | <A HREF=\"admin.php?mod=index&op=collection\">collections</A> | <A HREF=\"admin.php?mod=index&op=help\">help</A> - <A HREF=\"admin.php?mod=index&op=test1\">test1</A></SMALL><HR>\n";
switch ($op) {
case "add":
@@ -129,12 +138,18 @@ function index_admin() {
case "help":
print index_help();
break;
- case "test":
+ case "test1":
print index_test_1();
break;
- case "Click to test":
+ case "Click to test 1":
print index_test_2($edit);
break;
+ case "test2":
+ print index_test_3();
+ break;
+ case "Click to test 2":
+ print index_test_4($edit);
+ break;
case "collection":
print index_collection();
break;