Changeset 556
- Timestamp:
- Sep 10, 2007 12:25:26 PM (6 years ago)
- Location:
- trunk/jpdd
- Files:
-
- 1 added
- 5 edited
-
class.jpdd.event.php (added)
-
class.jpdd.php (modified) (1 diff)
-
config.inc.php (modified) (1 diff)
-
snippets/home.default.html (modified) (1 diff)
-
sql/basics.sql (modified) (2 diffs)
-
sql/db.sql (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/jpdd/class.jpdd.php
r192 r556 35 35 'table' => 'organization', 36 36 'sort' => 'title')); 37 $this->addClassMapEntry('event', array('classname' => 'JPDD_Event', 38 'filename' => 'class.jpdd.event.php', 39 'table' => 'event', 40 'sort' => 'start_time')); 37 41 38 42 } -
trunk/jpdd/config.inc.php
r180 r556 10 10 'db_name' => 'jpdd', 11 11 12 'site_name' => 'New York Performance Assessment Professional Development Day', 12 'active_events' => array(3), 13 14 'site_name' => 'New York Performance Assessment Moderation Workshop', 13 15 14 16 // HACK! this stuff should really be in the database, so this tool 15 17 // could be used to plan multiple PDDs. 16 'site_subtitle' => ' Building a Performance Assessment Culture in Our Schools',17 'site_date' => ' Jan 31, 2007',18 'site_subtitle' => 'Applying Performance Standards Rubrics', 19 'site_date' => 'Sep 29, 2007', 18 20 19 21 // should start and end in a '/'. If installed in the root of the -
trunk/jpdd/snippets/home.default.html
r170 r556 2 2 href="http://performanceassessment.org/">New York Performance 3 3 Standards Consortium</a> will be hosting a Professional Development 4 Day for N ew York City teachers at <a href="http://jrec.org/">the Julia5 Richman Education Complex</a> on Wednesday, 31 January, 2007.4 Day for NYPSC member schools at <a href="http://jrec.org/">the Julia 5 Richman Education Complex</a> on Saturday, 29 September, 2007. 6 6 7 <p>On this website, you can see the workshops that will be offered on 8 that day. If you plan on attending, you can register for a workshop 9 now. 10 11 <h2>Schedule</h2> 12 <dl> 13 <dt>8:30-9:00</dt> 14 <dd>Breakfast</dd> 15 16 <dt>9:00-9:15</dt> 17 <dd>Consortium & DYO welcome and news</dd> 18 19 <dt>9:15-9:35</dt> 20 <dd>Guest speaker: Mike Winerip, Pulitzer Prize winning journalist 21 and, recently, education columnist for The New York Times</dd> 22 23 <dt>9:45-12:00</dt> 24 <dd><a href="category">Workshops</a> (a 15-minute break will be included)</dd> 25 </dl> 26 7 <p>This web site can be used to coordinate logistics for that day. 27 8 </div> -
trunk/jpdd/sql/basics.sql
r171 r556 72 72 -- 73 73 74 SELECT pg_catalog.setval(pg_catalog.pg_get_serial_sequence('privilege', 'id'), 8, true);74 SELECT pg_catalog.setval(pg_catalog.pg_get_serial_sequence('privilege', 'id'), 10, true); 75 75 76 76 … … 88 88 7 Edit Categories This allows users to modify the available categories 89 89 8 Send Broadcast This allows users to broadcast templated messages to groups of signed-up users 90 9 List Events This allows users to see a list of all historical events 91 10 Edit Events This allows users to create and modify existing events 90 92 \. 91 93 92 94 93 95 -- 94 -- Postgre SQLdatabase dump complete96 -- Postgresql database dump complete 95 97 -- 96 98 -
trunk/jpdd/sql/db.sql
r175 r556 835 835 -- 836 836 837 838 839 CREATE OR REPLACE VIEW workshop_columns AS SELECT workshop_id, 840 SUM(CASE WHEN category_id IN(9) THEN 1 ELSE 0 END) > 0 AS math, 841 SUM(CASE WHEN category_id IN(15) THEN 1 ELSE 0 END) > 0 AS art, 842 SUM(CASE WHEN category_id IN(11) THEN 1 ELSE 0 END) > 0 AS science, 843 SUM(CASE WHEN category_id IN(12) THEN 1 ELSE 0 END) > 0 AS history, 844 SUM(CASE WHEN category_id IN(25) THEN 1 ELSE 0 END) > 0 AS english, 845 SUM(CASE WHEN category_id IN(30) THEN 1 ELSE 0 END) > 0 AS unione 846 FROM workshop_category GROUP BY workshop_id; 847 848 CREATE OR REPLACE VIEW pommo_import AS SELECT first_name, middle_name, last_name, email, workshop_columns.*, organization.shortname AS school, organization.id = 31 as gates, organization.id = 9 as consortium from person LEFT JOIN attendance ON (person.id = person_id) LEFT JOIN workshop_columns USING (workshop_id) LEFT JOIN affiliation ON (person.id = affiliation.person_id) LEFT JOIN organization ON (organization_id = organization.id) ORDER BY last_name,first_name; 849 850 851 CREATE VIEW pv AS select MAX(first) as first, MAX(mid) as mid, MAX(last) as last, email, MAX(school) as school, 852 SUM(CASE WHEN lower(tag) LIKE '%math%' THEN 1 ELSE 0 END) > 0 AS math, 853 SUM(CASE WHEN lower(tag) LIKE '%history%' THEN 1 ELSE 0 END) > 0 AS history, 854 SUM(CASE WHEN lower(tag) LIKE '%science%' THEN 1 ELSE 0 END) > 0 AS science, 855 SUM(CASE WHEN lower(tag) LIKE '%art%' THEN 1 ELSE 0 END) > 0 AS art, 856 SUM(CASE WHEN lower(tag) LIKE '%english%' THEN 1 ELSE 0 END) > 0 AS english, 857 SUM(CASE WHEN lower(tag) LIKE '%gates%' THEN 1 ELSE 0 END) > 0 AS gates, 858 SUM(CASE WHEN lower(tag) LIKE '%empire%' THEN 1 ELSE 0 END) > 0 AS empire, 859 SUM(CASE WHEN lower(tag) LIKE '%admin%' THEN 1 ELSE 0 END) > 0 AS admin, 860 SUM(CASE WHEN lower(tag) LIKE '%amerhistgrant%' THEN 1 ELSE 0 END) > 0 AS amerhistgrant, 861 SUM(CASE WHEN lower(tag) LIKE '%network%' THEN 1 ELSE 0 END) > 0 AS network 862 from pp LEFT JOIN pt ON (pp.id = pp_id) GROUP BY email; 863 864 CREATE TABLE event ( 865 id serial NOT NULL PRIMARY KEY, 866 title text NOT NULL, 867 start_time timestamp with time zone NOT NULL, 868 end_time timestamp with time zone NOT NULL 869 ); 870 871 ALTER TABLE workshop ADD COLUMN event_id int; 872 ALTER TABLE workshop ADD CONSTRAINT workshop_event_fkey FOREIGN KEY (event_id) REFERENCES event(id); 873 874 -- fix existing columns here 875 ALTER TABLE workshop ALTER COLUMN event_id SET NOT NULL; 876 877 ALTER TABLE event ADD COLUMN description text; 878 ALTER TABLE event ADD COLUMN motto text;
Note: See TracChangeset
for help on using the changeset viewer.

