Changeset 556


Ignore:
Timestamp:
Sep 10, 2007 12:25:26 PM (6 years ago)
Author:
dkg
Message:

adding events as an explicit class to the JPDD project, so a single web site can track multiple events.

Location:
trunk/jpdd
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/jpdd/class.jpdd.php

    r192 r556  
    3535                                                    'table' => 'organization', 
    3636                                                    'sort' => 'title')); 
     37      $this->addClassMapEntry('event', array('classname' => 'JPDD_Event',  
     38                                                    'filename' => 'class.jpdd.event.php', 
     39                                                    'table' => 'event', 
     40                                                    'sort' => 'start_time')); 
    3741 
    3842    } 
  • trunk/jpdd/config.inc.php

    r180 r556  
    1010  'db_name' => 'jpdd', 
    1111 
    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', 
    1315 
    1416  // HACK!  this stuff should really be in the database, so this tool 
    1517  // 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', 
    1820 
    1921  // should start and end in a '/'.  If installed in the root of the 
  • trunk/jpdd/snippets/home.default.html

    r170 r556  
    22href="http://performanceassessment.org/">New York Performance 
    33Standards Consortium</a> will be hosting a Professional Development 
    4 Day for New York City teachers at <a href="http://jrec.org/">the Julia 
    5 Richman Education Complex</a> on Wednesday, 31 January, 2007. 
     4Day for NYPSC member schools at <a href="http://jrec.org/">the Julia 
     5Richman Education Complex</a> on Saturday, 29 September, 2007. 
    66 
    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. 
    278</div> 
  • trunk/jpdd/sql/basics.sql

    r171 r556  
    7272-- 
    7373 
    74 SELECT pg_catalog.setval(pg_catalog.pg_get_serial_sequence('privilege', 'id'), 8, true); 
     74SELECT pg_catalog.setval(pg_catalog.pg_get_serial_sequence('privilege', 'id'), 10, true); 
    7575 
    7676 
     
    88887       Edit Categories This allows users to modify the available categories 
    89898       Send Broadcast  This allows users to broadcast templated messages to groups of signed-up users 
     909       List Events     This allows users to see a list of all historical events 
     9110      Edit Events     This allows users to create and modify existing events 
    9092\. 
    9193 
    9294 
    9395-- 
    94 -- PostgreSQL database dump complete 
     96-- Postgresql database dump complete 
    9597-- 
    9698 
  • trunk/jpdd/sql/db.sql

    r175 r556  
    835835-- 
    836836 
     837 
     838 
     839CREATE 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 
     848CREATE 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 
     851CREATE 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 
     864CREATE 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 
     871ALTER TABLE workshop ADD COLUMN event_id int; 
     872ALTER TABLE workshop ADD CONSTRAINT workshop_event_fkey FOREIGN KEY (event_id) REFERENCES event(id); 
     873 
     874-- fix existing columns here 
     875ALTER TABLE workshop ALTER COLUMN event_id SET NOT NULL; 
     876 
     877ALTER TABLE event ADD COLUMN description text; 
     878ALTER TABLE event ADD COLUMN motto text; 
Note: See TracChangeset for help on using the changeset viewer.