forked from science-ation/science-ation
Added locations table and editor
This commit is contained in:
parent
122248a03c
commit
dab613b746
@ -13,7 +13,7 @@
|
|||||||
This program is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
General Public License for more details.
|
General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program; see the file COPYING. If not, write to
|
along with this program; see the file COPYING. If not, write to
|
||||||
@ -22,17 +22,34 @@
|
|||||||
*/
|
*/
|
||||||
?>
|
?>
|
||||||
<?
|
<?
|
||||||
require("../common.inc.php");
|
require("../common.inc.php");
|
||||||
require_once("../user.inc.php");
|
require("../tableeditor.class.php");
|
||||||
user_auth_required('committee', 'admin');
|
require_once("../user.inc.php");
|
||||||
|
user_auth_required('committee', 'admin');
|
||||||
|
|
||||||
send_header("Event Locations",
|
send_header("Event Locations",
|
||||||
array('Committee Main' => 'committee_main.php',
|
array('Committee Main' => 'committee_main.php',
|
||||||
'Administration' => 'admin/index.php'),
|
'Administration' => 'admin/index.php'),
|
||||||
"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']
|
||||||
|
)
|
||||||
|
|
||||||
send_footer();
|
);
|
||||||
|
$editor->setPrimaryKey("id");
|
||||||
|
$editor->execute();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
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…
Reference in New Issue
Block a user