forked from science-ation/science-ation
Added locations table and editor
This commit is contained in:
parent
122248a03c
commit
dab613b746
@ -23,6 +23,7 @@
|
|||||||
?>
|
?>
|
||||||
<?
|
<?
|
||||||
require("../common.inc.php");
|
require("../common.inc.php");
|
||||||
|
require("../tableeditor.class.php");
|
||||||
require_once("../user.inc.php");
|
require_once("../user.inc.php");
|
||||||
user_auth_required('committee', 'admin');
|
user_auth_required('committee', 'admin');
|
||||||
|
|
||||||
@ -32,6 +33,22 @@
|
|||||||
"events_scheduling" );
|
"events_scheduling" );
|
||||||
|
|
||||||
echo "<br />";
|
echo "<br />";
|
||||||
|
$editor = new TableEditor("locations",
|
||||||
|
array(
|
||||||
|
"name" => "Location Name"
|
||||||
|
),
|
||||||
|
array(
|
||||||
|
"name" => "Location Name"
|
||||||
|
),
|
||||||
|
array(
|
||||||
|
"conferences_id" => $conference['id']
|
||||||
|
)
|
||||||
|
|
||||||
|
);
|
||||||
|
$editor->setPrimaryKey("id");
|
||||||
|
$editor->execute();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
send_footer();
|
send_footer();
|
||||||
|
|
||||||
|
@ -1 +1 @@
|
|||||||
175
|
176
|
||||||
|
8
db/db.update.176.sql
Normal file
8
db/db.update.176.sql
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
|
||||||
|
CREATE TABLE `locations` (
|
||||||
|
`id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
|
||||||
|
`conference_id` INT NOT NULL ,
|
||||||
|
`name` VARCHAR( 128 ) NOT NULL
|
||||||
|
) ENGINE = MYISAM ;
|
||||||
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user