forked from science-ation/science-ation
47 lines
2.1 KiB
PHP
47 lines
2.1 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, 38, 'Old Custom Reports', 'School Access Codes and Passwords', 'pdf', 'fullpage'),
|
||
|
(NULL, $uid, -1, 'Old Custom Reports', 'Mailing Label Generator', '', ''),
|
||
|
(NULL, $uid, -2, 'Old Custom Reports', 'Project Summary Details', 'pdf', 'fullpage'),
|
||
|
(NULL, $uid, 17, 'Old Custom Reports', 'Student emergency contact names and numbers', 'pdf', 'fullpage'),
|
||
|
(NULL, $uid, 19, 'Old Custom Reports', 'Students/Projects From Each School', 'pdf', 'fullpage'),
|
||
|
(NULL, $uid, 16, 'Old Custom Reports', 'Project Logistical Requirements (tables, electricity)', 'pdf', 'fullpage'),
|
||
|
(NULL, $uid, 30, 'Old Custom Reports', 'Project Table Labels', 'label', 'fullpage_landscape'),
|
||
|
(NULL, $uid, 26, 'Old Custom Reports', 'Student Nametags', 'label', 'nametag'),
|
||
|
(NULL, $uid, 27, 'Old Custom Reports', 'Judge Nametags', 'label', 'nametag'),
|
||
|
(NULL, $uid, 28, 'Old Custom Reports', 'Committee Member Nametags', 'label', 'nametag'),
|
||
|
(NULL, $uid, -3, 'Old Custom Reports', 'Judges List', 'pdf', 'fullpage'),
|
||
|
(NULL, $uid, 21, 'Old Custom Reports', 'Judging Teams', 'pdf', 'fullpage'),
|
||
|
(NULL, $uid, 22, 'Old Custom Reports', 'Awards each Judging Team will judge for', 'pdf', 'fullpage'),
|
||
|
(NULL, $uid, -4, 'Old Custom Reports', 'Judging Teams Project Assignments', 'pdf', 'fullpage'),
|
||
|
(NULL, $uid, -6, 'Old Custom Reports', 'Projects Judging Team Assignments', 'pdf', 'fullpage'),
|
||
|
(NULL, $uid, 29, 'Old Custom Reports', 'Project Identification Labels (for judging sheets)', 'label', '5961'),
|
||
|
(NULL, $uid, -8, 'Old Custom Reports', 'Award List for Award Ceremony Program', 'pdf', 'fullpage'),
|
||
|
(NULL, $uid, -9, 'Old Custom Reports', 'Winners for each award', 'pdf', 'fullpage');";
|
||
|
|
||
|
echo $qq;
|
||
|
echo "\n\n";
|
||
|
|
||
|
mysql_query($qq);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
?>
|