SELECT Name CName FROM Container WHERE ContainerID=;OUTPUT NIL
   - Edit

SELECT SecLink FROM Security WHERE SecLink=47 AND UserLink=;OUTPUT NIL SELECT SecLink FROM Security WHERE SecLink=51 AND UserLink=;OUTPUT NIL SELECT SecLink FROM Security WHERE SecLink=52 AND UserLink=;OUTPUT NIL ne ''> SELECT StartDate DefStart,EndDate DefEnd FROM MapLocation WHERE MapImageLink= LIMIT 1;OUTPUT NIL INSERT INTO MapLocation (MapImageLink,ContainerLink,StartDate,EndDate) VALUES (,,,);FINISH INSERT INTO MapLocationAttach (MapImageLink,MapLocationLink) VALUES (,);FINISH eq 'SaveIt'> > 0 && ( eq '' || eq '')> > 0 && eq 'Y'> SELECT ContainerCategoryID CategoryLink FROM ContainerCategory WHERE CategoryName=;OUTPUT NIL INSERT INTO ContainerCategory (CategoryName) VALUES ();FINISH UPDATE Container SET CategoryLink=,Name=,Description=,IsHTML=,Silly=,Priority=, StartDate=,EndDate=,LMBy=,LastModify=,Website=,AlternateNames=, RefNum=,CensusID=,MapFill=,TreeIDs=,CAbbr=,GNIS= WHERE ContainerID=;OUTPUT NIL - Saved Changes
$in{SPLIT_ITEM}=~s/\n//g; $in{SPLIT_ITEM}=~s/\r//g;INSERT INTO Container (CategoryLink,Name,Description,IsHTML,Priority,StartDate,EndDate,LMBy,LastModify,ParentLink,Website,AlternateNames,RefNum,CensusID,MapFill,TreeIDs,CAbbr) VALUES (,,'',,,,,, ,,,,,,,,);OUTPUT NIL - Inserting:
INSERT INTO Container (CategoryLink,Name,Description,IsHTML,Silly,Priority,StartDate,EndDate,FirstBy,FirstEnter,LMBy,LastModify,ParentLink,Website,AlternateNames,RefNum,CensusID,GNIS,MapFill,TreeIDs) VALUES (,,,,,,,,,, ,,,,,,,,,);OUTPUT NIL - Saved New
eq 'Y'>UPDATE Container SET Graphic='' WHERE ContainerID=;OUTPUT NIL ne ''> /containers/Full,FILE_DATA> /containers/,FILE_DATA> $res=`mogrify -geometry 100X100 $in{BIDIR}/containers/$in{Graphic}`; $res=`mogrify -unsharp 1X3 $in{BIDIR}/containers/$in{Graphic}`; UPDATE Container SET Graphic= WHERE ContainerID=;OUTPUT NIL
DELETE FROM DatedText WHERE DatedTextID=;FINISH UPDATE DatedText SET StartDate=,SQL>,EndDate=,SQL>,TextBlock=,SQL> WHERE DatedTextID=;FINISH SELECT * FROM DatedText WHERE AttachTo='Container' AND AttachID= ORDER BY StartDate,EndDate;OUTPUT INSERT INTO DatedText (AttachTo,AttachID,StartDate,EndDate,TextBlock) VALUES ('Container',,,SQL>,,SQL>,,SQL>);FINISH DELETE FROM ContainerIconAttach WHERE ContainerIconAttachID=;FINISH UPDATE ContainerIconAttach SET ContainerIconLink=,SQL>,StartDate=,SQL>,EndDate=,SQL> WHERE ContainerIconAttachID=;FINISH SELECT * FROM ContainerIconAttach WHERE ContainerLink= ORDER BY StartDate,EndDate;OUTPUT INSERT INTO ContainerIconAttach (ContainerIconLink,ContainerLink,StartDate,EndDate) VALUES (,F%d>,,,SQL>,,SQL>);FINISH SELECT CategoryLink FROM Container WHERE LMBy= ORDER BY LastModify DESC LIMIT 1;OUTPUT NIL SELECT * FROM Container WHERE ContainerID=;OUTPUT NIL SELECT ContainerID PID,Name PName FROM Container WHERE ContainerID=;OUTPUT NIL ne '0' && $in{'DidCID'.$in{CID}} ne 'Y'>='Y'>=$in{PName}>=$in{PCAbbr}>SELECT ContainerID CID,ParentLink PLk,Name PName FROM Container WHERE ContainerID=;OUTPUT CStream SELECT ContainerID CID,ParentLink PLk,Name PName,CAbbr PCAbbr FROM Container WHERE ContainerID=;OUTPUT CStream
ne ''> , INSERT INTO MapLocation (MapImageLink,ContainerLink,FillCoords,FirstBy,FirstEnter,LMBy,LastModified) VALUES (,,,,Now(),,Now());FINISH INSERT INTO MapLocationAttach (MapImageLink,MapLocationLink) VALUES (,);FINISH SELECT ContainerID TPCID,MapFill TMF FROM Container WHERE ParentLink= AND ContainerID!=;OUTPUT
ne ''>
eq ''>ADD NEW CONTAINER ne ''>EDIT
Parents > ,Safe>
Category[Edit]
Name
Abbreviation
Website
Established Central
Disbanded Central
Priority
Ref #
Census ID
GNIS
Alternate Names
Info
Is HTML? eq 'Y'> CHECKED> - Check if the Info box contains HTML.
Timed Info
=$in{DStartDate}> -
=$in{DEndDate}>

SELECT * FROM DatedText WHERE AttachTo='Container' AND AttachID= ORDER BY StartDate,EndDate;OUTPUT
Timed Icon

=$in{DStartDate}> -
=$in{DEndDate}>
SELECT * FROM ContainerIconAttach AS cia JOIN ContainerIcon as ci ON ci.ContainerIconID=cia.ContainerIconLink WHERE cia.ContainerLink= ORDER BY StartDate,EndDate;OUTPUT
Silly? eq 'Y'> CHECKED> - Check if this Container is not a serious political area.
Graphic (gif) ne ''>Delete
Fill Coords
eq ''> CHECKED
>Replace - eq 'Y'> CHECKED>Add

eq ''> CHECKED
>Replace - eq 'Y'> CHECKED>Add
DELETE FROM MapLocation WHERE MapLocationID=;FINISH DELETE FROM MapLocationAttach WHERE MapLocationLink=;FINISH UPDATE MapLocation SET ContainerLink= WHERE MapLocationID=;FINISH DELETE FROM Cart WHERE UserLink= AND ItemType='MapLocation' AND ItemID= AND Pickup='Y';FINISH SELECT * FROM Cart WHERE UserLink= AND ItemType='MapLocation';OUTPUT SELECT MapLocationID,StartDate MLStart,EndDate MLEnd FROM MapLocation WHERE ContainerLink= ORDER BY StartDate DESC,EndDate DESC;
FINISH > INSERT INTO Cart (UserLink,ItemType,ItemID,Pickup) VALUES (,'MapLocation',,'Y');FINISH OUTPUTSELECT MapLocationID,StartDate MLStart,EndDate MLEnd FROM Cart JOIN MapLocation ON UserLink= AND ItemType='MapLocation' AND MapLocationID=ItemID ORDER BY StartDate DESC,EndDate DESC; FINISH >OUTPUT
Map Dates
 Start DateEnd Date
// //
Picked Up
// //
[Add New Map Location]

Return To View


Instructions:

Do NOT use this admin to refer to any particlar person holding an office. You must create a race for a Container and a winner for that race with appropriate Term Start and Term End dates.

The Parent field link will take you back to the Container just above this one.

The Category pull-down tells you what type of Container this is. The Category name organizes the Containers on the Parent page aphabetically under Red headers. Please do not create new ones unless no item in the list is appropriate. Please use "State House" to mean "State Assembly".

The Name text field is the name of this Container. This will appear on the front page when something new is added to this Container.

The Website text field can be used to link to an external site with information about this Container.

The Established date field sets the date the item represented by this container became active. Using the overall date field in the Upper Left of the site to set a date previous to this date will not show this Container on the parent page.

The Disbanded date field sets the date the item represented by this container became inactive. Using the overall date field in the Upper Left of the site to set a date after this date will not show this Container on the parent page.

Use the Priority field to set a numerical priority for this Container. On the parent Container, your child containers will be organized under their Category headers by this number with the highest number being first. If two child Containers have the same Priority, they are then organized alphabetically.

The Ref # field is a place to put a numeric reference for this Container. Congressional, State House or State Senate seats should put their district number here.

The Census ID field is meant as a helper for importing census data. For the US, this is the 2-letter state abbreviation followed by the 7-digit Logical Record Number from the PLST file types for 2010 (aka FIPS code).

The GNIS ID field is the standardized Geographic Names Information System identifier.

The Alternate Names field is meant as a helper for importing data as well as to help site searches.

The Info field allows you to put some information about this Container for everyone to see. This should be permanent information, not just relevant for a particular time period. Please try to keep it relatively short.

The IsHTML checkbox will allow you to use HTML codes in the Info box.

The Graphic field allows you to upload a GIF graphic to represent this Container using the "Browse" button and selecting a GIF graphic on your computer. After a graphic has been uploaded, checking the "Delete" checkbox will delete the existing Graphic. The system will resize Graphics to its preferred size.

Please leave the Fill Coords text area alone for right now. This is used for generating graphical maps.

The Anyone Edit checkbox was meant to disallow other users from changing your work. It is currently non-functional, but this may change.

Click the Save Changes button to save any changes you make.

The Return To View ____ link will change to the non-edit display mode for this Container.