forked from science-ation/science-ation
d8e112cc4c
it works.
48 lines
2.2 KiB
PHP
48 lines
2.2 KiB
PHP
<?
|
|
|
|
|
|
function db_update_75_pre()
|
|
{
|
|
}
|
|
|
|
function db_update_75_post()
|
|
{
|
|
global $config;
|
|
|
|
$q = mysql_query("SELECT id FROM users WHERE types LIKE '%committee%'");
|
|
|
|
while($i = mysql_fetch_object($q)) {
|
|
$uid = $i->id;
|
|
|
|
/* Find all committee members */
|
|
$qq = "INSERT INTO `reports_committee` (`id`, `users_id`, `reports_id`, `category`, `comment`, `format`, `stock`) VALUES
|
|
(NULL, $uid, 9, '1. Fair Day', 'Checkin Lists for the Front Desk', 'pdf', 'fullpage'),
|
|
(NULL, $uid, 38, '2. Old Custom Reports', 'School Access Codes and Passwords', 'pdf', 'fullpage'),
|
|
(NULL, $uid, -1, '2. Old Custom Reports', 'Mailing Label Generator', '', ''),
|
|
(NULL, $uid, -2, '2. Old Custom Reports', 'Project Summary Details', 'pdf', 'fullpage'),
|
|
(NULL, $uid, 17, '2. Old Custom Reports', 'Student emergency contact names and numbers', 'pdf', 'fullpage'),
|
|
(NULL, $uid, 19, '2. Old Custom Reports', 'Students/Projects From Each School', 'pdf', 'fullpage'),
|
|
(NULL, $uid, 16, '2. Old Custom Reports', 'Project Logistical Requirements (tables, electricity)', 'pdf', 'fullpage'),
|
|
(NULL, $uid, 30, '2. Old Custom Reports', 'Project Table Labels', 'label', 'fullpage_landscape'),
|
|
(NULL, $uid, 26, '2. Old Custom Reports', 'Student Nametags', 'label', 'nametag'),
|
|
(NULL, $uid, 27, '2. Old Custom Reports', 'Judge Nametags', 'label', 'nametag'),
|
|
(NULL, $uid, 28, '2. Old Custom Reports', 'Committee Member Nametags', 'label', 'nametag'),
|
|
(NULL, $uid, -3, '2. Old Custom Reports', 'Judges List', 'pdf', 'fullpage'),
|
|
(NULL, $uid, 21, '2. Old Custom Reports', 'Judging Teams', 'pdf', 'fullpage'),
|
|
(NULL, $uid, 22, '2. Old Custom Reports', 'Awards each Judging Team will judge for', 'pdf', 'fullpage'),
|
|
(NULL, $uid, -4, '2. Old Custom Reports', 'Judging Teams Project Assignments', 'pdf', 'fullpage'),
|
|
(NULL, $uid, -6, '2. Old Custom Reports', 'Projects Judging Team Assignments', 'pdf', 'fullpage'),
|
|
(NULL, $uid, 29, '2. Old Custom Reports', 'Project Identification Labels (for judging sheets)', 'label', '5961'),
|
|
(NULL, $uid, -8, '2. Old Custom Reports', 'Award List for Award Ceremony Program', 'pdf', 'fullpage'),
|
|
(NULL, $uid, -9, '2. Old Custom Reports', 'Winners for each award', 'pdf', 'fullpage');";
|
|
|
|
echo $qq;
|
|
echo "\n\n";
|
|
|
|
mysql_query($qq);
|
|
}
|
|
}
|
|
|
|
|
|
?>
|