<?php | <?php |
include_once('include/common.inc.php'); | include_once('include/common.inc.php'); |
include_header(); | include_header('About'); |
?> | ?> |
<div class="foundation-header"> | <div class="foundation-header"> |
<h1><a href="about.php">About/FAQ</a></h1> | <h1><a href="about.php">About/FAQ</a></h1> |
<h4 class="subheader">Lorem ipsum.</h4> | <h4 class="subheader">Lorem ipsum.</h4> |
</div> | </div> |
<h2> What is this? </h2> | <h2> What is this? </h2> |
Disclosr is a project to monitor Australian Federal Government agencies | Disclo.gs is a project to monitor Australian Federal Government agencies |
compliance with their <a href="http://www.oaic.gov.au/publications/other_operational/foi_policy_frequently_asked_questions.html#_Toc291837571">"proactive disclosure requirements"</a>. | compliance with their <a href="http://www.oaic.gov.au/publications/other_operational/foi_policy_frequently_asked_questions.html#_Toc291837571">"proactive disclosure requirements"</a>. |
OGRE (Open Government Realization Evaluation) is a ranking of compliance with these requirements. | <h2> Attributions </h2> |
Prometheus is the agent which polls agency websites to assess compliance. | National Archives of Australia, Australian Governments’ Interactive Functions Thesaurus, 2nd edition, September 2005, published at http://www.naa.gov.au/recordkeeping/thesaurus/index.htm. |
<h2> Open everything </h2> | <h2> Open everything </h2> |
All documents released CC-BY 3 AU | All documents released CC-BY 3 AU |
Open source git @ | Open source git @ |
<h2>Organisational Data Sources</h2> | <h2>Organisational Data Sources</h2> |
http://www.comlaw.gov.au/Browse/Results/ByTitle/AdministrativeArrangementsOrders/Current/Ad/0 defines departments | http://www.comlaw.gov.au/Browse/Results/ByTitle/AdministrativeArrangementsOrders/Current/Ad/0 defines departments |
Agencies can be found in the Schedule to an Appropriation Bill (budget), Schedule to FMA Regulations and/or Public Service Act.<br> | Agencies can be found in the Schedule to an Appropriation Bill (budget), Schedule to FMA Regulations and/or Public Service Act.<br> |
http://www.finance.gov.au/publications/flipchart/docs/FMACACFlipchart.pdf summarises these. view-source:https://www.tenders.gov.au/?event=public.advancedsearch.home is great for the suspended/active status<br> | http://www.finance.gov.au/publications/flipchart/docs/FMACACFlipchart.pdf summarises these. view-source:https://www.tenders.gov.au/?event=public.advancedsearch.home is great for the suspended/active status<br> |
Fraud in gov depts by Fairfax Media http://www.smh.com.au/national/public-service-keeps-fraud-cases-private-20110923-1kpdr.html | Fraud in gov depts by Fairfax Media http://www.smh.com.au/national/public-service-keeps-fraud-cases-private-20110923-1kpdr.html |
When defining the hierachy, this system is designed towards monitoring accountablity. Thus large agencies that have registered their own ABN | When defining the hierachy, this system is designed towards monitoring accountablity. Thus large agencies that have registered their own ABN |
and have their own accountablity mechanisms/website receive a seperate record as a child of their department. | and have their own accountablity mechanisms/website receive a seperate record as a child of their department. |
Some small agencies will choose to simply rely on their parent department's accountablity measures.<br> | Some small agencies will choose to simply rely on their parent department's accountablity measures.<br> |
This flows through to organisation name and other/past names. A department that completely accounts for an agency will list that agency as an other child name. | This flows through to organisation name and other/past names. A department that completely accounts for an agency will list that agency as an other child name. |
As agencies themselves shift between departments, there may be scope for providing time ranges but typically the newest hierarchy will be the one recorded. | As agencies themselves shift between departments, there may be scope for providing time ranges but typically the newest hierarchy will be the one recorded. |
A department/agency name will be the newest active name assigned to that ABN.<br> | A department/agency name will be the newest active name assigned to that ABN.<br> |
ABN information is derived from the ABR. This is the definitive umpire about which former name should be linked to which current name. | ABN information is derived from the ABR. This is the definitive umpire about which former name should be linked to which current name. |
For example "Department of Transport and Regional Services" became "Department of Infrastructure, Transport, Regional Development and Local Government" (same ABN) | For example "Department of Transport and Regional Services" became "Department of Infrastructure, Transport, Regional Development and Local Government" (same ABN) |
however it later split into "Department of Infrastructure and Transport" (same ABN) | however it later split into "Department of Infrastructure and Transport" (same ABN) |
and "Department of Regional Australia, Regional Development and Local Government" (new ABN).<br> | and "Department of Regional Australia, Regional Development and Local Government" (new ABN).<br> |
Statistical information from http://www.apsc.gov.au/stateoftheservice/1011/statsbulletin/section1.html#t2total https://www.apsedii.gov.au/apsedii/CustomQueryx33.shtml | Statistical information from http://www.apsc.gov.au/stateoftheservice/1011/statsbulletin/section1.html#t2total https://www.apsedii.gov.au/apsedii/CustomQueryx33.shtml |
and individual annual reports.<br> | and individual annual reports.<br> |
<h2>Webpage Assessment</h2> | <h2>Webpage Assessment</h2> |
Much due care has been put into correctly recording disclosure URLs. Typically the "About", "Corporate", "Publications" and "Sitemap" sections are checked at the very least. | Much due care has been put into correctly recording disclosure URLs. Typically the "About", "Corporate", "Publications" and "Sitemap" sections are checked at the very least. |
Occasionally it is nessicary to use a site or Google search. In several rare cases, there is a secret "Disclosure" navigation menu you can find if you find one of the mandatory publishing obligations in that category (seriously).<br> | Occasionally it is nessicary to use a site or Google search. In several rare cases, there is a secret "Disclosure" navigation menu you can find if you find one of the mandatory publishing obligations in that category (seriously).<br> |
Some rules about leniency:<br> | Some rules about leniency:<br> |
<ul> | <ul> |
<li>An empty FOI disclosure log counts, a page outlining what the FOI Act is does not.</li> | <li>An empty FOI disclosure log counts, a page outlining what the FOI Act is does not.</li> |
<li>A disclosure log in PDF or Word format counts :(</li> | <li>A disclosure log in PDF or Word format counts :(</li> |
<li>An empty File/Record list counts (although that's very minimalistic that you have no files, electronic or paper)</li> | <li>An empty File/Record list counts (although that's very minimalistic that you have no files, electronic or paper)</li> |
<li>Only a current information publication scheme page counts, not a s.9 FOI Act page or an organisation chart.</li> | <li>Only a current information publication scheme page counts, not a s.9 FOI Act page or an organisation chart.</li> |
<li>If there isn't a page easily listing all current and past Annual Reports, the most current one (html, pdf) counts.</li> | <li>If there isn't a page easily listing all current and past Annual Reports, the most current one (html, pdf) counts.</li> |
<li>Consultancy contracts might not need it's own webpage (if in Annual Report), grants/appointments might not apply to all organisations but Legal Services Expenditure (and all other obligations) does need a webpage. </li> | <li>Consultancy contracts might not need it's own webpage (if in Annual Report), grants/appointments might not apply to all organisations but Legal Services Expenditure (and all other obligations) does need a webpage. </li> |
<h2>Open Government Scoring</h2> | <h2>Open Government Scoring</h2> |
+1 point for every true Has... attribute<br> | +1 point for every true Has... attribute<br> |
-1 point for every false Has... (ie. Has Not) attribute</br> | -1 point for every false Has... (ie. Has Not) attribute</br> |
Don't like this? Make your own score, suggest a better scoring mechanism.</br> | Don't like this? Make your own score, suggest a better scoring mechanism.</br> |
<?php | <?php |
include_footer(); | include_footer(); |
?> | ?> |
Binary files /dev/null and b/admin/naa-agift.7z differ
[ | |
"Home", | |
"index.htm", | |
[ | |
"BUSINESS SUPPORT AND REGULATION", | |
"000411.htm", | |
[ | |
"Association registration", | |
"000396.htm" | |
], | |
[ | |
"Business process auditing", | |
"000413.htm" | |
], | |
[ | |
"Business registration and licensing", | |
"000414.htm" | |
], | |
[ | |
"Business sponsorship", | |
"001371.htm" | |
], | |
[ | |
"Consumer protection", | |
"000439.htm" | |
], | |
[ | |
"Fair trading compliance", | |
"000482.htm", | |
[ | |
"Prices surveillance", | |
"000533.htm" | |
], | |
[ | |
"Product safety", | |
"000534.htm" | |
], | |
[ | |
"Trade practices compliance", | |
"000583.htm" | |
] | |
], | |
[ | |
"Financial institutions regulation", | |
"000485.htm" | |
], | |
[ | |
"Government procurement regulation", | |
"000491.htm" | |
], | |
[ | |
"Industry assistance schemes", | |
"000499.htm" | |
], | |
[ | |
"Industry development", | |
"000500.htm" | |
], | |
[ | |
"Insurance regulation", | |
"000501.htm", | |
[ | |
"General insurance", | |
"000489.htm" | |
], | |
[ | |
"Life insurance", | |
"000505.htm" | |
] | |
], | |
[ | |
"Professional accreditation", | |
"000535.htm" | |
], | |
[ | |
"Small business services", | |
"000565.htm", | |
[ | |
"Small business advocacy", | |
"000563.htm" | |
], | |
[ | |
"Small business development", | |
"000564.htm" | |
] | |
], | |
[ | |
"Stock market regulation", | |
"000572.htm" | |
] | |
], | |
[ | |
"CIVIC INFRASTRUCTURE", | |
"000424.htm", | |
[ | |
"Civic management", | |
"000425.htm", | |
[ | |
"Architectural services", | |
"000387.htm" | |
], | |
[ | |
"Building approval services", | |
"000406.htm" | |
], | |
[ | |
"Building regulations and standards", | |
"000408.htm" | |
], | |
[ | |
"Engineering services", | |
"000477.htm" | |
], | |
[ | |
"Town planning", | |
"000582.htm" | |
] | |
], | |
[ | |
"Energy supply", | |
"000476.htm" | |
], | |
[ | |
"Integrated services planning", | |
"000503.htm" | |
], | |
[ | |
"Public housing", | |
"000536.htm", | |
[ | |
"Public housing construction", | |
"000537.htm" | |
], | |
[ | |
"Public housing design", | |
"000538.htm" | |
], | |
[ | |
"Public housing maintenance", | |
"000540.htm" | |
] | |
], | |
[ | |
"Public land management", | |
"000541.htm", | |
[ | |
"Burial ground management", | |
"000410.htm" | |
], | |
[ | |
"Cultural centre management", | |
"000444.htm" | |
], | |
[ | |
"Garden management", | |
"000488.htm" | |
], | |
[ | |
"Memorial maintenance", | |
"000509.htm" | |
], | |
[ | |
"Recreational park management", | |
"000549.htm" | |
], | |
[ | |
"Sporting facilities management", | |
"000571.htm" | |
] | |
], | |
[ | |
"Regional development", | |
"000552.htm" | |
], | |
[ | |
"Transport network maintenance", | |
"000586.htm" | |
], | |
[ | |
"Waste management", | |
"001349.htm" | |
] | |
], | |
[ | |
"COMMUNICATIONS", | |
"000433.htm", | |
[ | |
"Advertising standards", | |
"000381.htm" | |
], | |
[ | |
"Broadcasting", | |
"000403.htm", | |
[ | |
"Broadcasting standards", | |
"000404.htm" | |
], | |
[ | |
"Radio broadcasting", | |
"000546.htm" | |
], | |
[ | |
"Television broadcasting", | |
"000580.htm" | |
] | |
], | |
[ | |
"Call centre administration", | |
"000417.htm" | |
], | |
[ | |
"Electronic commerce", | |
"000468.htm", | |
[ | |
"Authentication", | |
"000399.htm" | |
], | |
[ | |
"Online transaction standards", | |
"000526.htm" | |
] | |
], | |
[ | |
"Government media", | |
"000490.htm" | |
], | |
[ | |
"Information management standards", | |
"000283.htm", | |
[ | |
"Data management", | |
"000448.htm" | |
], | |
[ | |
"Information dissemination", | |
"000502.htm" | |
], | |
[ | |
"Information technology standards", | |
"000282.htm" | |
] | |
], | |
[ | |
"Media ownership regulation", | |
"000508.htm" | |
], | |
[ | |
"Postal services", | |
"000530.htm", | |
[ | |
"Courier services", | |
"000441.htm" | |
], | |
[ | |
"Electronic postal services", | |
"000469.htm" | |
], | |
[ | |
"Retail postal services", | |
"000554.htm" | |
] | |
], | |
[ | |
"Publishing", | |
"000543.htm", | |
[ | |
"Electronic publishing", | |
"000470.htm" | |
], | |
[ | |
"Publishing standards", | |
"000544.htm" | |
], | |
[ | |
"Website development", | |
"000591.htm" | |
] | |
], | |
[ | |
"Radio communication", | |
"000547.htm", | |
[ | |
"Apparatus licensing", | |
"000385.htm" | |
], | |
[ | |
"Spectrum management", | |
"000570.htm" | |
] | |
], | |
[ | |
"Satellite communication", | |
"000560.htm" | |
], | |
[ | |
"Telecommunications", | |
"000578.htm", | |
[ | |
"Carriage service providers", | |
"000420.htm" | |
], | |
[ | |
"Carrier licensing", | |
"000421.htm" | |
], | |
[ | |
"Equipment licensing", | |
"000480.htm" | |
], | |
[ | |
"Mobile telephone services", | |
"000516.htm" | |
], | |
[ | |
"Telephone services", | |
"000579.htm" | |
] | |
] | |
], | |
[ | |
"COMMUNITY SERVICES", | |
"000435.htm", | |
[ | |
"Accommodation services", | |
"000377.htm", | |
[ | |
"Defence housing", | |
"000458.htm" | |
], | |
[ | |
"Emergency accommodation", | |
"000471.htm" | |
], | |
[ | |
"Public housing entitlements", | |
"000539.htm" | |
], | |
[ | |
"Refuge support", | |
"000551.htm" | |
] | |
], | |
[ | |
"Community support", | |
"000436.htm", | |
[ | |
"Adoption services", | |
"000378.htm" | |
], | |
[ | |
"Aged care services", | |
"000382.htm" | |
], | |
[ | |
"Child and youth support", | |
"000422.htm" | |
], | |
[ | |
"Child-care services", | |
"000423.htm" | |
], | |
[ | |
"Defence community programs", | |
"000452.htm" | |
], | |
[ | |
"Family reunion programs", | |
"000483.htm" | |
], | |
[ | |
"Veterans\" entitlements", | |
"000587.htm" | |
] | |
], | |
[ | |
"Counselling services", | |
"000440.htm" | |
], | |
[ | |
"Emergency services", | |
"000474.htm", | |
[ | |
"Ambulance services", | |
"000384.htm" | |
], | |
[ | |
"Emergency funding", | |
"000472.htm" | |
], | |
[ | |
"Firefighting services", | |
"000487.htm" | |
] | |
], | |
[ | |
"Financial assistance", | |
"000484.htm", | |
[ | |
"Benefits", | |
"000402.htm" | |
], | |
[ | |
"Income support schemes", | |
"000494.htm" | |
] | |
], | |
[ | |
"Natural disasters", | |
"000521.htm", | |
[ | |
"Disaster recovery", | |
"000462.htm" | |
], | |
[ | |
"Disaster relief", | |
"000463.htm" | |
] | |
], | |
[ | |
"Rural community development", | |
"000557.htm" | |
], | |
[ | |
"Social justice and equity", | |
"000566.htm" | |
], | |
[ | |
"Transport access schemes", | |
"000901.htm" | |
] | |
], | |
[ | |
"CULTURAL AFFAIRS", | |
"000442.htm", | |
[ | |
"Arts development", | |
"000391.htm", | |
[ | |
"Arts funding", | |
"000393.htm" | |
], | |
[ | |
"Arts incentive schemes", | |
"000394.htm" | |
], | |
[ | |
"Arts promotion", | |
"000395.htm" | |
] | |
], | |
[ | |
"Collection access", | |
"000427.htm", | |
[ | |
"Descriptive standards", | |
"000461.htm" | |
], | |
[ | |
"Finding aids development", | |
"000486.htm" | |
], | |
[ | |
"Reference services", | |
"000550.htm" | |
] | |
], | |
[ | |
"Collection management", | |
"000430.htm", | |
[ | |
"Artefact export regulation", | |
"000390.htm" | |
], | |
[ | |
"Collection accessioning", | |
"000428.htm" | |
], | |
[ | |
"Collection acquisition", | |
"000429.htm" | |
], | |
[ | |
"Collection storage", | |
"000432.htm" | |
], | |
[ | |
"Preservation services", | |
"000532.htm" | |
] | |
], | |
[ | |
"Collection promotion", | |
"000431.htm", | |
[ | |
"Exhibition programs", | |
"000481.htm" | |
], | |
[ | |
"Publicity programs", | |
"000542.htm" | |
] | |
], | |
[ | |
"Cultural awards and scholarships", | |
"000443.htm" | |
], | |
[ | |
"Cultural festivals", | |
"000445.htm" | |
], | |
[ | |
"Cultural gifts programs", | |
"000446.htm" | |
], | |
[ | |
"Multicultural heritage promotion", | |
"000518.htm", | |
[ | |
"Multicultural festivals", | |
"000517.htm" | |
], | |
[ | |
"Multicultural services", | |
"000519.htm" | |
] | |
] | |
], | |
[ | |
"DEFENCE", | |
"000449.htm", | |
[ | |
"Australian Defence Forces", | |
"000397.htm", | |
[ | |
"Air Force", | |
"002266.htm" | |
], | |
[ | |
"Army", | |
"000388.htm" | |
], | |
[ | |
"Badges and insignia", | |
"000401.htm" | |
], | |
[ | |
"Cadets", | |
"000416.htm" | |
], | |
[ | |
"Defence force commands", | |
"000456.htm" | |
], | |
[ | |
"Military bands", | |
"000510.htm" | |
], | |
[ | |
"Navy", | |
"000524.htm" | |
], | |
[ | |
"Reserves", | |
"000553.htm" | |
], | |
[ | |
"Roulettes", | |
"000556.htm" | |
] | |
], | |
[ | |
"Defence estate management", | |
"000454.htm" | |
], | |
[ | |
"Defence force careers", | |
"000455.htm", | |
[ | |
"Defence career development", | |
"000450.htm" | |
], | |
[ | |
"Military employment services", | |
"000512.htm" | |
] | |
], | |
[ | |
"Defence strategic development", | |
"000574.htm", | |
[ | |
"Defence efficiency review", | |
"000453.htm" | |
], | |
[ | |
"Defence reform program", | |
"000460.htm" | |
] | |
], | |
[ | |
"Defence strategic policy", | |
"000576.htm", | |
[ | |
"Strategic decisions", | |
"000573.htm" | |
], | |
[ | |
"Strategic planning", | |
"000575.htm" | |
] | |
], | |
[ | |
"Defence strategic support", | |
"000577.htm", | |
[ | |
"Capital equipment programs", | |
"000419.htm" | |
], | |
[ | |
"Defence industry", | |
"000459.htm" | |
], | |
[ | |
"Defence science and technology", | |
"000905.htm" | |
], | |
[ | |
"Logistics", | |
"000506.htm" | |
] | |
], | |
[ | |
"Emergency management", | |
"000473.htm", | |
[ | |
"Civil community assistance", | |
"000426.htm" | |
], | |
[ | |
"Disaster support", | |
"000464.htm" | |
] | |
], | |
[ | |
"Military law", | |
"001814.htm" | |
], | |
[ | |
"Military operations", | |
"000515.htm", | |
[ | |
"Australian theatre of war", | |
"000398.htm" | |
], | |
[ | |
"Military exercises", | |
"000514.htm" | |
], | |
[ | |
"Special operations", | |
"000569.htm" | |
], | |
[ | |
"Warfare", | |
"000589.htm" | |
] | |
] | |
], | |
[ | |
"EDUCATION AND TRAINING", | |
"000467.htm", | |
[ | |
"Arts education", | |
"000392.htm" | |
], | |
[ | |
"Community education", | |
"000434.htm", | |
[ | |
"Adult education programs", | |
"000379.htm" | |
], | |
[ | |
"Adult migrant education", | |
"000380.htm" | |
], | |
[ | |
"Road safety awareness", | |
"000555.htm" | |
] | |
], | |
[ | |
"Curriculum development", | |
"000447.htm" | |
], | |
[ | |
"Early childhood education", | |
"000466.htm" | |
], | |
[ | |
"Military education and training", | |
"000511.htm", | |
[ | |
"Army reserve training", | |
"000389.htm" | |
], | |
[ | |
"Defence college training", | |
"000451.htm" | |
] | |
], | |
[ | |
"Overseas skills recognition", | |
"000527.htm" | |
], | |
[ | |
"School education", | |
"000561.htm", | |
[ | |
"Discipline programs", | |
"000465.htm" | |
], | |
[ | |
"School transport regulation", | |
"000562.htm" | |
], | |
[ | |
"Special needs programs", | |
"000568.htm" | |
] | |
], | |
[ | |
"Tertiary education", | |
"000581.htm" | |
], | |
[ | |
"Vocational education", | |
"000588.htm", | |
[ | |
"Apprenticeship programs", | |
"000386.htm" | |
], | |
[ | |
"Hospital teaching programs", | |
"000493.htm" | |
], | |
[ | |
"Trainee programs", | |
"000584.htm" | |
], | |
[ | |
"Workplace training", | |
"000595.htm" | |
] | |
] | |
], | |
[ | |
"EMPLOYMENT", | |
"000016.htm", | |
[ | |
"Human resources development", | |
"000348.htm", | |
[ | |
"Occupational health and safety", | |
"000355.htm" | |
], | |
[ | |
"Recruitment programs", | |
"000356.htm" | |
], | |
[ | |
"Termination processes", | |
"002103.htm" | |
], | |
[ | |
"Workers compensation schemes", | |
"000363.htm" | |
], | |
[ | |
"Workplace discrimination monitoring", | |
"000364.htm" | |
], | |
[ | |
"Workplace equity and justice programs", | |
"000365.htm" | |
] | |
], | |
[ | |
"Industrial awards and conditions", | |
"000349.htm", | |
[ | |
"Award conditions", | |
"000366.htm" | |
], | |
[ | |
"Remuneration review", | |
"000368.htm" | |
] | |
], | |
[ | |
"Labour market programs", | |
"000347.htm", | |
[ | |
"Employment services marketing", | |
"000351.htm" | |
], | |
[ | |
"Job placement programs", | |
"000352.htm" | |
], | |
[ | |
"Job vacancy data management", | |
"000353.htm" | |
] | |
], | |
[ | |
"Workplace agreement processes", | |
"000350.htm", | |
[ | |
"Agreement bargaining processes", | |
"002141.htm" | |
], | |
[ | |
"Agreement dispute mediation", | |
"000370.htm" | |
], | |
[ | |
"Certified employment conditions", | |
"000371.htm" | |
], | |
[ | |
"Employment advocacy services", | |
"000374.htm" | |
] | |
] | |
], | |
[ | |
"ENVIRONMENT", | |
"000478.htm", | |
[ | |
"Built environment", | |
"000409.htm", | |
[ | |
"Building acoustics", | |
"000405.htm" | |
], | |
[ | |
"Building preservation", | |
"000407.htm" | |
] | |
], | |
[ | |
"Climate information services", | |
"000203.htm" | |
], | |
[ | |
"Conservation programs", | |
"000438.htm", | |
[ | |
"Endangered species protection", | |
"000475.htm" | |
], | |
[ | |
"Landcare programs", | |
"000504.htm" | |
], | |
[ | |
"Soil preservation programs", | |
"000567.htm" | |
] | |
], | |
[ | |
"Environmental impact assessment", | |
"000479.htm" | |
], | |
[ | |
"Historic relic protection", | |
"000492.htm" | |
], | |
[ | |
"Marine life protection programs", | |
"000507.htm" | |
], | |
[ | |
"Natural heritage protection", | |
"000522.htm", | |
[ | |
"National park management", | |
"000520.htm" | |
], | |
[ | |
"Nature reserve management", | |
"000523.htm" | |
], | |
[ | |
"Wilderness area management", | |
"000593.htm" | |
], | |
[ | |
"Wildlife sanctuary management", | |
"000594.htm" | |
] | |
], | |
[ | |
"Oceans governance", | |
"000525.htm" | |
], | |
[ | |
"Pollutant prevention programs", | |
"000529.htm" | |
], | |
[ | |
"World heritage listings", | |
"000596.htm" | |
] | |
], | |
[ | |
"FINANCE MANAGEMENT", | |
"000001.htm", | |
[ | |
"Commonwealth State funding", | |
"000017.htm" | |
], | |
[ | |
"Currency", | |
"000018.htm", | |
[ | |
"Counterfeiting control", | |
"000027.htm" | |
] | |
], | |
[ | |
"Financial investment", | |
"000021.htm", | |
[ | |
"Investment scheme regulation", | |
"000031.htm" | |
] | |
], | |
[ | |
"Financial system management", | |
"002302.htm", | |
[ | |
"Financial system monitoring", | |
"002306.htm" | |
], | |
[ | |
"Payments management", | |
"002297.htm" | |
] | |
], | |
[ | |
"Fiscal policy", | |
"000022.htm", | |
[ | |
"Public borrowing", | |
"000032.htm" | |
], | |
[ | |
"Public debt", | |
"000033.htm" | |
], | |
[ | |
"Public expenditure", | |
"000034.htm" | |
] | |
], | |
[ | |
"Foreign investment control", | |
"000030.htm" | |
], | |
[ | |
"International monetary regulation", | |
"000023.htm" | |
], | |
[ | |
"Monetary policy", | |
"000020.htm", | |
[ | |
"Exchange rates", | |
"000028.htm" | |
], | |
[ | |
"Inflation", | |
"000029.htm" | |
], | |
[ | |
"Interest rates", | |
"002295.htm" | |
] | |
], | |
[ | |
"Resource management", | |
"000024.htm", | |
[ | |
"Contract management", | |
"000037.htm" | |
], | |
[ | |
"Financial administration", | |
"000035.htm" | |
], | |
[ | |
"Financial budgeting", | |
"000036.htm" | |
] | |
], | |
[ | |
"Retirement income", | |
"000025.htm", | |
[ | |
"Asset assessment", | |
"000038.htm" | |
], | |
[ | |
"Retirement saving", | |
"000039.htm" | |
], | |
[ | |
"Superannuation regulation", | |
"000040.htm" | |
] | |
], | |
[ | |
"Statistical analysis", | |
"000019.htm" | |
], | |
[ | |
"Taxation", | |
"000026.htm", | |
[ | |
"Income assessment", | |
"000041.htm" | |
], | |
[ | |
"Revenue raising", | |
"000042.htm" | |
], | |
[ | |
"Taxation compliance", | |
"000043.htm" | |
] | |
] | |
], | |
[ | |
"GOVERNANCE", | |
"000002.htm", | |
[ | |
"Civic celebrations", | |
"000046.htm" | |
], | |
[ | |
"Constitutional matters", | |
"000048.htm", | |
[ | |
"Constitutional conventions", | |
"000061.htm" | |
], | |
[ | |
"Constitutional referenda", | |
"000062.htm" | |
] | |
], | |
[ | |
"Electoral matters", | |
"000049.htm", | |
[ | |
"Declaration of interests", | |
"000063.htm" | |
], | |
[ | |
"Election campaigning", | |
"000064.htm" | |
], | |
[ | |
"Electoral boundary assessment", | |
"000065.htm" | |
] | |
], | |
[ | |
"Honours and awards programs", | |
"000050.htm" | |
], | |
[ | |
"Intergovernmental relations", | |
"000052.htm", | |
[ | |
"Cross-border cooperation", | |
"000067.htm" | |
], | |
[ | |
"Intergovernment policy dissemination", | |
"000069.htm" | |
] | |
], | |
[ | |
"Legislative drafting", | |
"000053.htm", | |
[ | |
"Draft Bill amendment process", | |
"000070.htm" | |
], | |
[ | |
"Legislation review", | |
"000071.htm" | |
], | |
[ | |
"Preparation of legislative regulations", | |
"000072.htm" | |
] | |
], | |
[ | |
"Official protocol", | |
"000054.htm", | |
[ | |
"Ceremonial events and representation", | |
"000073.htm" | |
], | |
[ | |
"Head of Government protocol", | |
"000074.htm" | |
], | |
[ | |
"Official establishment management", | |
"000075.htm" | |
], | |
[ | |
"Official hospitality", | |
"000076.htm" | |
], | |
[ | |
"Official visits", | |
"000077.htm" | |
] | |
], | |
[ | |
"Parliamentary chamber support", | |
"000045.htm", | |
[ | |
"Hansard services", | |
"000058.htm" | |
], | |
[ | |
"Parliamentary papers", | |
"000059.htm" | |
], | |
[ | |
"Tabling of official documents", | |
"000060.htm" | |
] | |
], | |
[ | |
"Parliamentary committee and member support", | |
"000047.htm" | |
], | |
[ | |
"Population census", | |
"000044.htm", | |
[ | |
"Demographic surveys", | |
"000055.htm" | |
], | |
[ | |
"Household census", | |
"000056.htm" | |
], | |
[ | |
"Population distribution analysis", | |
"000057.htm" | |
] | |
], | |
[ | |
"Public administration", | |
"002290.htm", | |
[ | |
"Government auditing", | |
"002291.htm" | |
], | |
[ | |
"Public service", | |
"002292.htm" | |
], | |
[ | |
"Territories administration", | |
"002293.htm" | |
] | |
], | |
[ | |
"Statistics", | |
"002289.htm" | |
] | |
], | |
[ | |
"HEALTH CARE", | |
"000003.htm", | |
[ | |
"Community health services", | |
"000078.htm", | |
[ | |
"Clinical health services", | |
"000087.htm" | |
], | |
[ | |
"Health promotion", | |
"000089.htm" | |
], | |
[ | |
"Primary health care", | |
"000090.htm" | |
] | |
], | |
[ | |
"Health insurance schemes", | |
"000079.htm" | |
], | |
[ | |
"Health protocol administration", | |
"000080.htm", | |
[ | |
"Drugs and poisons regulation", | |
"000091.htm" | |
], | |
[ | |
"Food hygiene regulation", | |
"000092.htm" | |
], | |
[ | |
"Practitioner discipline", | |
"000093.htm" | |
], | |
[ | |
"Practitioner registration", | |
"000095.htm" | |
] | |
], | |
[ | |
"Hospital services", | |
"000081.htm", | |
[ | |
"Hospital administration", | |
"000096.htm" | |
], | |
[ | |
"Patient care", | |
"000097.htm" | |
], | |
[ | |
"Pharmaceutical and drug support", | |
"000098.htm" | |
] | |
], | |
[ | |
"Medical research", | |
"000083.htm", | |
[ | |
"Ethical compliance", | |
"000099.htm" | |
], | |
[ | |
"Medical aids regulation", | |
"000100.htm" | |
], | |
[ | |
"Medical research funding", | |
"000101.htm" | |
], | |
[ | |
"National referral laboratory services", | |
"000102.htm" | |
], | |
[ | |
"Population-based research", | |
"000103.htm" | |
] | |
], | |
[ | |
"Public health services", | |
"000084.htm", | |
[ | |
"Epidemiology", | |
"000104.htm" | |
], | |
[ | |
"Health disaster preparedness", | |
"000106.htm" | |
], | |
[ | |
"Health hazard prevention", | |
"000105.htm" | |
], | |
[ | |
"Medical quarantine services", | |
"000108.htm" | |
], | |
[ | |
"Notifiable disease management", | |
"000109.htm" | |
] | |
], | |
[ | |
"Special needs services", | |
"000085.htm", | |
[ | |
"Dental health services", | |
"000111.htm" | |
], | |
[ | |
"Independent living services", | |
"000112.htm" | |
], | |
[ | |
"Mental health services", | |
"000113.htm" | |
], | |
[ | |
"Residential services", | |
"000114.htm" | |
] | |
], | |
[ | |
"Veterans\" health services", | |
"000086.htm" | |
] | |
], | |
[ | |
"IMMIGRATION", | |
"000004.htm", | |
[ | |
"Citizenship", | |
"000115.htm", | |
[ | |
"Naturalisation assessment", | |
"000121.htm" | |
], | |
[ | |
"Presentation arrangements", | |
"000122.htm" | |
] | |
], | |
[ | |
"Deportation", | |
"000116.htm" | |
], | |
[ | |
"Detention programs", | |
"000117.htm" | |
], | |
[ | |
"Migrant services", | |
"000118.htm", | |
[ | |
"Interpreter services", | |
"000123.htm" | |
], | |
[ | |
"Migrant accommodation services", | |
"000125.htm" | |
], | |
[ | |
"Migrant settlement programs", | |
"000126.htm" | |
] | |
], | |
[ | |
"Refugee services", | |
"000119.htm" | |
], | |
[ | |
"Travel authorisation", | |
"000120.htm", | |
[ | |
"Permanent entry arrangements", | |
"000127.htm" | |
], | |
[ | |
"Temporary entry arrangements", | |
"000128.htm" | |
] | |
] | |
], | |
[ | |
"INDIGENOUS AFFAIRS", | |
"002285.htm", | |
[ | |
"Indigenous cultural heritage", | |
"000495.htm", | |
[ | |
"Cultural artefact repatriation", | |
"001772.htm" | |
] | |
], | |
[ | |
"Indigenous enterprise development", | |
"000496.htm" | |
], | |
[ | |
"Indigenous health services", | |
"000082.htm" | |
], | |
[ | |
"Indigenous heritage conservation", | |
"000497.htm" | |
], | |
[ | |
"Indigenous reconciliation", | |
"000051.htm" | |
], | |
[ | |
"Indigenous welfare programs", | |
"000498.htm" | |
] | |
], | |
[ | |
"INTERNATIONAL RELATIONS", | |
"000005.htm", | |
[ | |
"Consular services", | |
"000129.htm" | |
], | |
[ | |
"Defence liaison", | |
"000132.htm", | |
[ | |
"000140.htm" | |
], | |
[ | |
"Defence cooperation programs", | |
"000141.htm" | |
], | |
[ | |
"Defence personnel exchanges", | |
"000142.htm" | |
], | |
[ | |
"Military advisors", | |
"000143.htm" | |
] | |
], | |
[ | |
"Diplomatic missions", | |
"000130.htm" | |
], | |
[ | |
"International affairs", | |
"000131.htm", | |
[ | |
"Disarmament and arms control", | |
"000137.htm" | |
], | |
[ | |
"Nuclear safeguards", | |
"000139.htm" | |
] | |
], | |
[ | |
"International treaties", | |
"000133.htm", | |
[ | |
"Treaty administration", | |
"001384.htm" | |
] | |
], | |
[ | |
"Overseas aid programs", | |
"000134.htm", | |
[ | |
"Development assistance programs", | |
"000146.htm" | |
], | |
[ | |
"Overseas student scholarship programs", | |
"000147.htm" | |
] | |
], | |
[ | |
"Overseas promotion", | |
"000135.htm" | |
], | |
[ | |
"Passport services", | |
"000136.htm" | |
] | |
], | |
[ | |
"JUSTICE ADMINISTRATION", | |
"000006.htm", | |
[ | |
"Administrative law", | |
"000149.htm", | |
[ | |
"Administrative decision appeal", | |
"000163.htm" | |
], | |
[ | |
"Administrative decision review", | |
"000164.htm" | |
], | |
[ | |
"Censorship standards", | |
"000165.htm" | |
], | |
[ | |
"Copyright regulation", | |
"000166.htm" | |
], | |
[ | |
"Recordkeeping standards", | |
"000167.htm" | |
] | |
], | |
[ | |
"Associations and corporate law", | |
"000150.htm", | |
[ | |
"Bankruptcy proceedings", | |
"000168.htm" | |
], | |
[ | |
"Merger regulation", | |
"000169.htm" | |
] | |
], | |
[ | |
"Civil law", | |
"000151.htm", | |
[ | |
"Civil registration", | |
"000170.htm" | |
], | |
[ | |
"Conveyancing", | |
"000171.htm" | |
], | |
[ | |
"Dispute mediation programs", | |
"000174.htm" | |
], | |
[ | |
"Family law proceedings", | |
"000172.htm" | |
], | |
[ | |
"Probate applications", | |
"000173.htm" | |
] | |
], | |
[ | |
"Commissions of inquiry", | |
"000152.htm" | |
], | |
[ | |
"Coronial law", | |
"000153.htm" | |
], | |
[ | |
"Court reporting", | |
"000154.htm" | |
], | |
[ | |
"Criminal law", | |
"000155.htm" | |
], | |
[ | |
"Human rights obligations", | |
"000156.htm" | |
], | |
[ | |
"Juvenile justice", | |
"000157.htm" | |
], | |
[ | |
"Legal aid services", | |
"000158.htm" | |
], | |
[ | |
"Local laws and ordinances", | |
"000159.htm" | |
], | |
[ | |
"Native title claims", | |
"000160.htm", | |
[ | |
"Native title mediation programs", | |
"000180.htm" | |
], | |
[ | |
"Native title settlement negotiations", | |
"000181.htm" | |
] | |
], | |
[ | |
"Privacy guideline monitoring", | |
"000161.htm" | |
], | |
[ | |
"Prosecution services", | |
"000162.htm" | |
] | |
], | |
[ | |
"MARITIME SERVICES", | |
"000007.htm", | |
[ | |
"Cargo control", | |
"000198.htm" | |
], | |
[ | |
"Harbour management", | |
"000183.htm" | |
], | |
[ | |
"Marina management", | |
"000184.htm" | |
], | |
[ | |
"Navigation", | |
"000185.htm", | |
[ | |
"Charting sea lanes", | |
"000191.htm" | |
], | |
[ | |
"Light station maintenance", | |
"000192.htm" | |
], | |
[ | |
"Navigation systems development", | |
"000193.htm" | |
] | |
], | |
[ | |
"Pilotage management", | |
"000182.htm" | |
], | |
[ | |
"Port regulation", | |
"001471.htm" | |
], | |
[ | |
"Sea passengers", | |
"001487.htm" | |
], | |
[ | |
"Search and rescue", | |
"000187.htm", | |
[ | |
"Rescue coordination", | |
"000194.htm" | |
], | |
[ | |
"Search technology development", | |
"000195.htm" | |
] | |
], | |
[ | |
"Ship personnel", | |
"000188.htm", | |
[ | |
"Personnel safety standards", | |
"000196.htm" | |
], | |
[ | |
"Pilot licensing", | |
"000197.htm" | |
] | |
], | |
[ | |
"Ship safety", | |
"000189.htm", | |
[ | |
"Seaworthiness", | |
"000201.htm" | |
], | |
[ | |
"Ship commissioning", | |
"000199.htm" | |
], | |
[ | |
"Ship inspection", | |
"000200.htm" | |
] | |
] | |
], | |
[ | |
"NATURAL RESOURCES", | |
"000009.htm", | |
[ | |
"Crown land administration", | |
"000218.htm" | |
], | |
[ | |
"Energy resources", | |
"001451.htm", | |
[ | |
"Fossil fuel management", | |
"000226.htm" | |
], | |
[ | |
"Renewable energy development", | |
"000227.htm" | |
] | |
], | |
[ | |
"Land use planning", | |
"000220.htm", | |
[ | |
"Land use zoning", | |
"001429.htm" | |
] | |
], | |
[ | |
"Land valuation", | |
"000222.htm" | |
], | |
[ | |
"Mineral resources", | |
"000223.htm", | |
[ | |
"Land rehabilitation programs", | |
"000231.htm" | |
], | |
[ | |
"Mining regulations", | |
"000232.htm" | |
] | |
], | |
[ | |
"Pollution emission control", | |
"000224.htm" | |
], | |
[ | |
"Water resources", | |
"000225.htm", | |
[ | |
"Water conservation plans", | |
"000233.htm" | |
], | |
[ | |
"Water quality monitoring", | |
"000234.htm" | |
], | |
[ | |
"Water usage management", | |
"000235.htm" | |
], | |
[ | |
"Waterway management", | |
"000236.htm" | |
] | |
] | |
], | |
[ | |
"PRIMARY INDUSTRIES", | |
"000008.htm", | |
[ | |
"Chemical and pesticide regulation", | |
"000202.htm" | |
], | |
[ | |
"Marine and rural regulation", | |
"000204.htm", | |
[ | |
"Agricultural industry", | |
"000208.htm" | |
], | |
[ | |
"Fisheries industry", | |
"000209.htm" | |
], | |
[ | |
"Food quality assurance", | |
"000213.htm" | |
], | |
[ | |
"Forestry industry", | |
"000210.htm" | |
] | |
], | |
[ | |
"Marine and rural support", | |
"000205.htm", | |
[ | |
"Aquaculture industry", | |
"000212.htm" | |
], | |
[ | |
"Horticultural industry", | |
"000214.htm" | |
], | |
[ | |
"Pastoral industry", | |
"000215.htm" | |
], | |
[ | |
"Silvicultural industry", | |
"000216.htm" | |
], | |
[ | |
"Viticultural industry", | |
"000217.htm" | |
] | |
], | |
[ | |
"Quarantine", | |
"000211.htm" | |
], | |
[ | |
"Rural field day promotion", | |
"000206.htm" | |
], | |
[ | |
"Rural partnership programs", | |
"000207.htm" | |
] | |
], | |
[ | |
"SCIENCE", | |
"000010.htm", | |
[ | |
"Agricultural sciences", | |
"000237.htm" | |
], | |
[ | |
"Animal and veterinary sciences", | |
"000238.htm" | |
], | |
[ | |
"Applied sciences", | |
"000239.htm", | |
[ | |
"Engineering and technology sciences", | |
"000246.htm" | |
], | |
[ | |
"Weights and measures standards", | |
"000247.htm" | |
] | |
], | |
[ | |
"Biological sciences", | |
"000240.htm", | |
[ | |
"Biochemistry", | |
"000248.htm" | |
], | |
[ | |
"Biodiversity preservation", | |
"000249.htm" | |
], | |
[ | |
"Biotechnology development", | |
"000250.htm" | |
], | |
[ | |
"Botany", | |
"000251.htm" | |
], | |
[ | |
"Entomology", | |
"000252.htm" | |
], | |
[ | |
"Genetic engineering", | |
"000253.htm" | |
], | |
[ | |
"Physiology", | |
"000254.htm" | |
] | |
], | |
[ | |
"Earth sciences", | |
"000241.htm", | |
[ | |
"Atmospheric sciences", | |
"000255.htm" | |
], | |
[ | |
"Hydrology", | |
"000256.htm" | |
], | |
[ | |
"Mineral exploration", | |
"000257.htm" | |
], | |
[ | |
"Oceanography", | |
"000258.htm" | |
], | |
[ | |
"Seismology", | |
"000259.htm" | |
] | |
], | |
[ | |
"Mathematical sciences", | |
"000242.htm" | |
], | |
[ | |
"Medical and health sciences", | |
"001229.htm" | |
], | |
[ | |
"Physical sciences", | |
"000244.htm", | |
[ | |
"Astronomical sciences", | |
"000260.htm" | |
], | |
[ | |
"Atomic and molecular sciences", | |
"000261.htm" | |
], | |
[ | |
"Nuclear sciences", | |
"000262.htm" | |
] | |
], | |
[ | |
"Spatial information research", | |
"000245.htm" | |
] | |
], | |
[ | |
"SECURITY", | |
"000011.htm", | |
[ | |
"Corrective services", | |
"000263.htm", | |
[ | |
"Community based corrections", | |
"000270.htm" | |
], | |
[ | |
"Detention centre management", | |
"000271.htm" | |
] | |
], | |
[ | |
"External security", | |
"000264.htm", | |
[ | |
"Peacekeeping forces", | |
"000273.htm" | |
] | |
], | |
[ | |
"Information security", | |
"000265.htm" | |
], | |
[ | |
"Intelligence", | |
"000266.htm", | |
[ | |
"Forensic analysis", | |
"000275.htm" | |
], | |
[ | |
"Intelligence liaison", | |
"001159.htm" | |
], | |
[ | |
"Intelligence support", | |
"000277.htm" | |
] | |
], | |
[ | |
"Law enforcement", | |
"000267.htm", | |
[ | |
"Community policing", | |
"000278.htm" | |
], | |
[ | |
"Criminology", | |
"000279.htm" | |
], | |
[ | |
"Police administration", | |
"000280.htm" | |
], | |
[ | |
"Protective services", | |
"000281.htm" | |
] | |
], | |
[ | |
"National security", | |
"001548.htm", | |
[ | |
"Coastal surveillance", | |
"000269.htm" | |
] | |
] | |
], | |
[ | |
"SPORT AND RECREATION", | |
"000012.htm", | |
[ | |
"Caravan and camping services", | |
"000284.htm" | |
], | |
[ | |
"Community recreational programs", | |
"000285.htm", | |
[ | |
"Gambling support services", | |
"000290.htm" | |
], | |
[ | |
"Public fitness promotion", | |
"000291.htm" | |
], | |
[ | |
"Social club support", | |
"000292.htm" | |
], | |
[ | |
"Volunteer support programs", | |
"000293.htm" | |
] | |
], | |
[ | |
"Gaming industry regulation", | |
"000286.htm" | |
], | |
[ | |
"Park and reserve services", | |
"000289.htm" | |
], | |
[ | |
"Sport and fitness development", | |
"000287.htm", | |
[ | |
"Athlete scholarship programs", | |
"000295.htm" | |
], | |
[ | |
"Fundraising and donation schemes", | |
"000296.htm" | |
], | |
[ | |
"Games administration", | |
"000297.htm" | |
], | |
[ | |
"Games promotion", | |
"000298.htm" | |
], | |
[ | |
"Sporting grants administration", | |
"000299.htm" | |
] | |
], | |
[ | |
"Sports drugs monitoring", | |
"000288.htm", | |
[ | |
"Doping detection research", | |
"000300.htm" | |
] | |
] | |
], | |
[ | |
"TOURISM", | |
"000013.htm", | |
[ | |
"Tourism industry development", | |
"000301.htm" | |
], | |
[ | |
"Tourist event promotion", | |
"000302.htm", | |
[ | |
"Advertising campaigns", | |
"000305.htm" | |
] | |
], | |
[ | |
"Travel missions", | |
"000303.htm" | |
] | |
], | |
[ | |
"TRADE", | |
"000014.htm", | |
[ | |
"Export regulation", | |
"000311.htm", | |
[ | |
"Export promotion", | |
"000320.htm" | |
], | |
[ | |
"Prohibited export control", | |
"000321.htm" | |
] | |
], | |
[ | |
"Import regulation", | |
"000312.htm", | |
[ | |
"Prohibited import control", | |
"000323.htm" | |
], | |
[ | |
"Tariff regulation", | |
"000322.htm" | |
] | |
], | |
[ | |
"Intellectual property management", | |
"000910.htm", | |
[ | |
"Copyright registration", | |
"000308.htm" | |
], | |
[ | |
"Design registration", | |
"000310.htm" | |
], | |
[ | |
"Patent registration", | |
"000315.htm" | |
], | |
[ | |
"Trademark registration", | |
"000318.htm" | |
] | |
], | |
[ | |
"International trade agreements", | |
"000313.htm" | |
], | |
[ | |
"Interstate trade agreements", | |
"000314.htm" | |
], | |
[ | |
"Trade development programs", | |
"000316.htm" | |
], | |
[ | |
"Trade expositions", | |
"000317.htm" | |
] | |
], | |
[ | |
"TRANSPORT", | |
"000015.htm", | |
[ | |
"Air transport", | |
"000324.htm", | |
[ | |
"Air transport safety", | |
"000332.htm" | |
], | |
[ | |
"Aircraft standards", | |
"000330.htm" | |
], | |
[ | |
"Airport services", | |
"000331.htm" | |
] | |
], | |
[ | |
"Freight movement regulation", | |
"000325.htm" | |
], | |
[ | |
"Passenger services", | |
"000326.htm" | |
], | |
[ | |
"Rail transport", | |
"000327.htm", | |
[ | |
"Rail harmonisation standards", | |
"000333.htm" | |
], | |
[ | |
"Rail land acquisition regulation", | |
"000336.htm" | |
], | |
[ | |
"Rail transport safety", | |
"000337.htm" | |
], | |
[ | |
"Railway maintenance", | |
"000338.htm" | |
], | |
[ | |
"Rolling stock regulation", | |
"000339.htm" | |
] | |
], | |
[ | |
"Road transport", | |
"000328.htm", | |
[ | |
"Driving licences administration", | |
"000340.htm" | |
], | |
[ | |
"Road surface maintenance", | |
"000341.htm" | |
], | |
[ | |
"Road traffic regulation", | |
"000342.htm" | |
], | |
[ | |
"Road transport safety", | |
"000343.htm" | |
], | |
[ | |
"Vehicle registration", | |
"000344.htm" | |
], | |
[ | |
"Vehicle standards", | |
"000345.htm" | |
] | |
], | |
[ | |
"Transport infrastructure development", | |
"000329.htm" | |
] | |
] | |
] |
<?php | <?php |
include_once('include/common.inc.php'); | include_once('include/common.inc.php'); |
include_header(); | include_header('Charts'); |
$db = $server->get_db('disclosr-agencies'); | $db = $server->get_db('disclosr-agencies'); |
?> | ?> |
<div class="foundation-header"> | <div class="foundation-header"> |
<h1><a href="about.php">Charts</a></h1> | <h1><a href="about.php">Charts</a></h1> |
<h4 class="subheader">Lorem ipsum.</h4> | <h4 class="subheader">Lorem ipsum.</h4> |
</div> | </div> |
<div id="scores" style="width:900px;height:500px;"></div> | <div id="scores" style="width:900px;height:500px;"></div> |
<div id="employees" style="width:1000px;height:900px;"></div> | <div id="employees" style="width:1000px;height:900px;"></div> |
<script id="source"> | <script id="source"> |
window.onload = function() { | window.onload = function() { |
$(document).ready(function() { | $(document).ready(function() { |
var d1 = []; | var d1 = []; |
var scorelabels = []; | var scorelabels = []; |
<?php | <?php |
try { | try { |
$rows = $db->get_view("app", "scoreHas?group=true", null, true)->rows; | $rows = $db->get_view("app", "scoreHas?group=true", null, true)->rows; |
$dataValues = Array(); | $dataValues = Array(); |
foreach ($rows as $row) { | foreach ($rows as $row) { |
$dataValues[$row->value] = $row->key; | $dataValues[$row->value] = $row->key; |
} | } |
$i = 0; | $i = 0; |
ksort($dataValues); | ksort($dataValues); |
foreach ($dataValues as $value => $key) { | foreach ($dataValues as $value => $key) { |
echo " d1.push([$i, $value]);" . PHP_EOL; | echo " d1.push([$i, $value]);" . PHP_EOL; |
echo " scorelabels.push('$key');" . PHP_EOL; | echo " scorelabels.push('$key');" . PHP_EOL; |
$i++; | $i++; |
} | } |
} catch (SetteeRestClientException $e) { | } catch (SetteeRestClientException $e) { |
setteErrorHandler($e); | setteErrorHandler($e); |
} | } |
?> | ?> |
function scoretrackformatter(obj) { | function scoretrackformatter(obj) { |
if (scorelabels[Math.floor(obj.x)]) { | if (scorelabels[Math.floor(obj.x)]) { |
return (scorelabels[Math.floor(obj.x)])+"="+obj.y; | return (scorelabels[Math.floor(obj.x)])+"="+obj.y; |
} else { | } else { |
return ""; | return ""; |
} | } |
} | } |
function scoretickformatter(val, axis) { | function scoretickformatter(val, axis) { |
if (scorelabels[Math.floor(val)]) { | if (scorelabels[Math.floor(val)]) { |
return '<p style="margin-top:8em;-webkit-transform:rotate(-90deg);">'+(scorelabels[Math.floor(val)])+"</b>"; | return '<p style="margin-top:8em;-webkit-transform:rotate(-90deg);">'+(scorelabels[Math.floor(val)])+"</b>"; |
} else { | } else { |
return ""; | return ""; |
} | } |
} | } |
Flotr.draw(document.getElementById("scores"), [ {data: d1}], { | Flotr.draw(document.getElementById("scores"), [ {data: d1}], { |
HtmlText: true, | HtmlText: true, |
bars : { | bars : { |
show : true | show : true |
}, | }, |
mouse : { | mouse : { |
track : true, | track : true, |
relative : true, | relative : true, |
trackFormatter: scoretrackformatter | trackFormatter: scoretrackformatter |
},yaxis: { | },yaxis: { |
autoscaling: true | autoscaling: true |
}, | }, |
xaxis: { | xaxis: { |
autoscaling: true, | autoscaling: true, |
minorTickFreq: 0.6, | minorTickFreq: 0.6, |
noTicks : scorelabels.length, | noTicks : scorelabels.length, |
tickFormatter: scoretickformatter | tickFormatter: scoretickformatter |
} | } |
}); | }); |
var emplabels = []; | var emplabels = []; |
function emptrackformatter(obj) { | function emptrackformatter(obj) { |
return (obj.series.label)+" = "+obj.y+" in "+emplabels[Math.floor(obj.x)]; | return (obj.series.label)+" = "+obj.y+" in "+emplabels[Math.floor(obj.x)]; |
} | } |
function emptickformatter(val, axis) { | function emptickformatter(val, axis) { |
if (emplabels[Math.floor(val)]) { | if (emplabels[Math.floor(val)]) { |
return '<p style="margin-top:8em;-webkit-transform:rotate(-90deg);">'+(emplabels[Math.floor(val)])+"</b>"; | return '<p style="margin-top:8em;-webkit-transform:rotate(-90deg);">'+(emplabels[Math.floor(val)])+"</b>"; |
} else { | } else { |
return ""; | return ""; |
} | } |
} | } |
function onDataReceived(series) { | function onDataReceived(series) { |
emplabels = series.labels; | emplabels = series.labels; |
Flotr.draw(document.getElementById("employees"), series.data, { | Flotr.draw(document.getElementById("employees"), series.data, { |
mouse : { | mouse : { |
track : true, | track : true, |
relative : true, | relative : true, |
trackFormatter: emptrackformatter | trackFormatter: emptrackformatter |
},yaxis: { | },yaxis: { |
max: 10000, | max: 10000, |
scaling: 'logarithmic' | scaling: 'logarithmic' |
}, | }, |
xaxis: { | xaxis: { |
minorTickFreq: 1, | minorTickFreq: 1, |
noTicks: emplabels.length, | noTicks: emplabels.length, |
showMinorLabels: true, | showMinorLabels: true, |
tickFormatter: emptickformatter | tickFormatter: emptickformatter |
}, | }, |
legend: { | legend: { |
show: false | show: false |
} | } |
}); | }); |
} | } |
$.ajax({ | $.ajax({ |
url: "admin/exportEmployees.csv.php?format=json", | url: "admin/exportEmployees.csv.php?format=json", |
method: 'GET', | method: 'GET', |
dataType: 'json', | dataType: 'json', |
success: onDataReceived | success: onDataReceived |
}); | }); |
}); | }); |
}; | }; |
</script> | </script> |
<?php | <?php |
include_footer(); | include_footer(); |
?> | ?> |
<?php | <?php |
include_once('include/common.inc.php'); | include_once('include/common.inc.php'); |
include_header(); | |
function displayValue($key, $value, $mode) { | function displayValue($key, $value, $mode) { |
global $db, $schemas; | global $db, $schemas; |
if ($mode == "view") { | if ($mode == "view") { |
if (strpos($key, "_") === 0 || $key== "metadata") return; | |
echo "<tr>"; | echo "<tr>"; |
echo "<td>" . $schemas['agency']["properties"][$key]['x-title'] . "<br><small>" . $schemas['agency']["properties"][$key]['description'] . "</small></td><td>"; | echo "<td>" . $schemas['agency']["properties"][$key]['x-title'] . "<br><small>" . $schemas['agency']["properties"][$key]['description'] . "</small></td><td>"; |
if (is_array($value)) { | if (is_array($value)) { |
echo "<ol>"; | echo "<ol>"; |
foreach ($value as $subkey => $subvalue) { | foreach ($value as $subkey => $subvalue) { |
if (isset($schemas['agency']["properties"][$key]['x-property'])) { | |
echo '<li property="' . $schemas['agency']["properties"][$key]['x-property'] . '">'; | echo "<li "; |
} else { | if (isset($schemas['agency']["properties"][$key]['x-property'])) { |
echo "<li>"; | echo ' property="' . $schemas['agency']["properties"][$key]['x-property'] . '" '; |
} | } if (isset($schemas['agency']["properties"][$key]['x-itemprop'])) { |
echo ' itemprop="' . $schemas['agency']["properties"][$key]['x-itemprop'] . '" '; | |
} | |
echo " >"; | |
echo "$subvalue</li>"; | echo "$subvalue</li>"; |
} | } |
echo "</ol></td></tr>"; | echo "</ol></td></tr>"; |
} else { | } else { |
if (isset($schemas['agency']["properties"][$key]['x-property'])) { | if (isset($schemas['agency']["properties"][$key]['x-property'])) { |
echo '<span property="' . $schemas['agency']["properties"][$key]['x-property'] . '">'; | echo '<span property="' . $schemas['agency']["properties"][$key]['x-property'] . '">'; |
} else { | } else { |
echo "<span>"; | echo "<span>"; |
} | } |
if ((strpos($key, "URL") > 0 || $key == 'website') && $value != "") { | if ((strpos($key, "URL") > 0 || $key == 'website') && $value != "") { |
echo "<a href='$value'>view</a></span>"; | echo "<a ".($key == 'website' ? 'itemprop="url"':'')." href='$value'>$value</a>"; |
} else { | } else { |
echo "$value</span>"; | echo "$value</span>"; |
} | } |
} | } |
echo "</td></tr>"; | echo "</td></tr>"; |
} | } |
if ($mode == "edit") { | if ($mode == "edit") { |
if (is_array($value)) { | if (is_array($value)) { |
echo '<div class="row"> | echo '<div class="row"> |
<div class="seven columns"> | <div class="seven columns"> |
<fieldset> | <fieldset> |
<h5>' . $key . '</h5>'; | <h5>' . $key . '</h5>'; |
foreach ($value as $subkey => $subvalue) { | foreach ($value as $subkey => $subvalue) { |
echo "<label>$subkey</label><input class='input-text' type='text' id='$key$subkey' name='$key" . '[' . $subkey . "]' value='$subvalue'/></tr>"; | echo "<label>$subkey</label><input class='input-text' type='text' id='$key$subkey' name='$key" . '[' . $subkey . "]' value='$subvalue'/></tr>"; |
} | } |
echo "</fieldset> | echo "</fieldset> |
</div> | </div> |
</div>"; | </div>"; |
} else { | } else { |
if (strpos($key, "_") === 0) { | if (strpos($key, "_") === 0) { |
echo"<input type='hidden' id='$key' name='$key' value='$value'/>"; | echo"<input type='hidden' id='$key' name='$key' value='$value'/>"; |
} else if ($key == "parentOrg") { | } else if ($key == "parentOrg") { |
echo "<label for='$key'>$key</label><select id='$key' name='$key'><option value=''> Select... </option>"; | echo "<label for='$key'>$key</label><select id='$key' name='$key'><option value=''> Select... </option>"; |
$rows = $db->get_view("app", "byDeptStateName")->rows; | $rows = $db->get_view("app", "byDeptStateName")->rows; |
//print_r($rows); | //print_r($rows); |
foreach ($rows as $row) { | foreach ($rows as $row) { |
echo "<option value='{$row->value}'" . (($row->value == $value) ? "SELECTED" : "") . " >" . str_replace("Department of ", "", $row->key) . "</option>"; | echo "<option value='{$row->value}'" . (($row->value == $value) ? "SELECTED" : "") . " >" . str_replace("Department of ", "", $row->key) . "</option>"; |
} | } |
echo" </select>"; | echo" </select>"; |
} else { | } else { |
echo "<label>$key</label><input class='input-text' type='text' id='$key' name='$key' value='$value'/>"; | echo "<label>$key</label><input class='input-text' type='text' id='$key' name='$key' value='$value'/>"; |
if ((strpos($key, "URL") > 0 || $key == 'website') && $value != "") { | if ((strpos($key, "URL") > 0 || $key == 'website') && $value != "") { |
echo "<a href='$value'>view</a>"; | echo "<a ".($key == 'website' ? 'itemprop="url"':'')." href='$value'>view</a>"; |
} | } |
if ($key == 'abn') { | if ($key == 'abn') { |
echo "<a href='http://www.abr.business.gov.au/SearchByAbn.aspx?SearchText=$value'>view abn</a>"; | echo "<a href='http://www.abr.business.gov.au/SearchByAbn.aspx?SearchText=$value'>view abn</a>"; |
} | } |
} | } |
} | } |
} | } |
// | // |
} | } |
function addDefaultFields($row) { | function addDefaultFields($row) { |
global $schemas; | global $schemas; |
$defaultFields = array_keys($schemas['agency']['properties']); | $defaultFields = array_keys($schemas['agency']['properties']); |
foreach ($defaultFields as $defaultField) { | foreach ($defaultFields as $defaultField) { |
if (!isset($row[$defaultField])) { | if (!isset($row[$defaultField])) { |
if ($schemas['agency']['properties'][$defaultField]['type'] == "string") { | if ($schemas['agency']['properties'][$defaultField]['type'] == "string") { |
$row[$defaultField] = ""; | $row[$defaultField] = ""; |
} | } |
if ($schemas['agency']['properties'][$defaultField]['type'] == "array") { | if ($schemas['agency']['properties'][$defaultField]['type'] == "array") { |
$row[$defaultField] = Array(""); | $row[$defaultField] = Array(""); |
} | } |
} else if ($schemas['agency']['properties'][$defaultField]['type'] == "array") { | } else if ($schemas['agency']['properties'][$defaultField]['type'] == "array") { |
if (is_array($row[$defaultField])) { | if (is_array($row[$defaultField])) { |
$row[$defaultField][] = ""; | $row[$defaultField][] = ""; |
$row[$defaultField][] = ""; | $row[$defaultField][] = ""; |
$row[$defaultField][] = ""; | $row[$defaultField][] = ""; |
} else { | } else { |
$value = $row[$defaultField]; | $value = $row[$defaultField]; |
$row[$defaultField] = Array($value); | $row[$defaultField] = Array($value); |
$row[$defaultField][] = ""; | $row[$defaultField][] = ""; |
$row[$defaultField][] = ""; | $row[$defaultField][] = ""; |
} | } |
} | } |
} | } |
return $row; | return $row; |
} | } |
$db = $server->get_db('disclosr-agencies'); | $db = $server->get_db('disclosr-agencies'); |
if (isset($_REQUEST['id'])) { | if (isset($_REQUEST['id'])) { |
//get an agency record as json/html, search by name/abn/id | //get an agency record as json/html, search by name/abn/id |
// by name = startkey="Ham"&endkey="Ham\ufff0" | // by name = startkey="Ham"&endkey="Ham\ufff0" |
// edit? | // edit? |
$obj = $db->get($_REQUEST['id']); | $obj = $db->get($_REQUEST['id']); |
include_header($obj->name); | |
//print_r($row); | //print_r($row); |
if (sizeof($_POST) > 0) { | if (sizeof($_POST) > 0) { |
//print_r($_POST); | //print_r($_POST); |
foreach ($_POST as $postkey => $postvalue) { | foreach ($_POST as $postkey => $postvalue) { |
if ($postvalue == "") { | if ($postvalue == "") { |
unset($_POST[$postkey]); | unset($_POST[$postkey]); |
} | } |
if (is_array($postvalue)) { | if (is_array($postvalue)) { |
if (count($postvalue) == 1 && $postvalue[0] == "") { | if (count($postvalue) == 1 && $postvalue[0] == "") { |
unset($_POST[$postkey]); | unset($_POST[$postkey]); |
} else { | } else { |
foreach ($_POST[$postkey] as $key => &$value) { | foreach ($_POST[$postkey] as $key => &$value) { |
if ($value == "") { | if ($value == "") { |
unset($_POST[$postkey][$key]); | unset($_POST[$postkey][$key]); |
} | } |
} | } |
} | } |
} | } |
} | } |
if (isset($_POST['_id']) && $db->get_rev($_POST['_id']) == $_POST['_rev']) { | if (isset($_POST['_id']) && $db->get_rev($_POST['_id']) == $_POST['_rev']) { |
echo "Edited version was latest version, continue saving"; | echo "Edited version was latest version, continue saving"; |
$newdoc = $_POST; | $newdoc = $_POST; |
$newdoc['metadata']['lastModified'] = time(); | $newdoc['metadata']['lastModified'] = time(); |
$obj = $db->save($newdoc); | $obj = $db->save($newdoc); |
} else { | } else { |
echo "ALERT doc revised by someone else while editing. Document not saved."; | echo "ALERT doc revised by someone else while editing. Document not saved."; |
} | } |
} | } |
$mode = "edit"; | $mode = "view"; |
$rowArray = object_to_array($obj); | $rowArray = object_to_array($obj); |
ksort($rowArray); | ksort($rowArray); |
if ($mode == "edit") { | if ($mode == "edit") { |
$row = addDefaultFields($rowArray); | $row = addDefaultFields($rowArray); |
} else { | } else { |
$row = $rowArray; | $row = $rowArray; |
} | } |
if ($mode == "view") { | if ($mode == "view") { |
echo '<div typeof="schema:GovernmentOrganisation" about="#' . $row['_id'] . '"><table width="100%">'; | echo '<div itemscope itemtype="http://schema.org/GovernmentOrganization" typeof="schema:GovernmentOrganization" about="#' . $row['_id'] . '"><table width="100%">'; |
echo '<tr> <td colspan="2"><h3>' . $row['name'] . "</h3></td></tr>"; | echo '<tr> <td colspan="2"><h3 itemprop="name">' . $row['name'] . "</h3></td></tr>"; |
echo "<tr><th>Field Name</th><th>Field Value</th></tr>"; | echo "<tr><th>Field Name</th><th>Field Value</th></tr>"; |
} | } |
if ($mode == "edit") { | if ($mode == "edit") { |
?> | ?> |
<input id="addfield" type="button" value="Add Field"/> | <input id="addfield" type="button" value="Add Field"/> |
<script> | <script> |
window.onload = function() { | window.onload = function() { |
$(document).ready(function() { | $(document).ready(function() { |
// put all your jQuery goodness in here. | // put all your jQuery goodness in here. |
// http://charlie.griefer.com/blog/2009/09/17/jquery-dynamically-adding-form-elements/ | // http://charlie.griefer.com/blog/2009/09/17/jquery-dynamically-adding-form-elements/ |
$('#addfield').click(function() { | $('#addfield').click(function() { |
var field_name=window.prompt("fieldname?",""); | var field_name=window.prompt("fieldname?",""); |
if (field_name !="") { | if (field_name !="") { |
$('#submitbutton').before($('<span></span>') | $('#submitbutton').before($('<span></span>') |
.append("<label>"+field_name+"</label>") | .append("<label>"+field_name+"</label>") |
.append("<input class='input-text' type='text' id='"+field_name+"' name='"+field_name+"'/>") | .append("<input class='input-text' type='text' id='"+field_name+"' name='"+field_name+"'/>") |
); | ); |
} | } |
}); | }); |
}); | }); |
}; | }; |
</script> | </script> |
<form id="editform" class="nice" method="post"> | <form id="editform" class="nice" method="post"> |
<?php | <?php |
} | } |
foreach ($row as $key => $value) { | foreach ($row as $key => $value) { |
echo displayValue($key, $value, $mode); | echo displayValue($key, $value, $mode); |
} | } |
if ($mode == "view") { | if ($mode == "view") { |
echo "</table></div>"; | echo "</table></div>"; |
} | } |
if ($mode == "edit") { | if ($mode == "edit") { |
echo '<input id="submitbutton" type="submit"/></form>'; | echo '<input id="submitbutton" type="submit"/></form>'; |
} | } |
} else { | } else { |
// show all list | |
include_header('Agencies'); | |
try { | try { |
/* $rows = $db->get_view("app", "showNamesABNs")->rows; | /* $rows = $db->get_view("app", "showNamesABNs")->rows; |
//print_r($rows); | //print_r($rows); |
foreach ($rows as $row) { | foreach ($rows as $row) { |
// print_r($row); | // print_r($row); |
echo '<li><a href="getAgency.php?id=' . $row->key . '">' . | echo '<li><a href="getAgency.php?id=' . $row->key . '">' . |
(isset($row->value->name) && $row->value->name != "" ? $row->value->name : "NO NAME " . $row->value->abn) | (isset($row->value->name) && $row->value->name != "" ? $row->value->name : "NO NAME " . $row->value->abn) |
. '</a></li>'; | . '</a></li>'; |
} */ | } */ |
$rows = $db->get_view("app", "byCanonicalName")->rows; | $rows = $db->get_view("app", "byCanonicalName")->rows; |
//print_r($rows); | //print_r($rows); |
echo '<ul>'; | echo '<ul>'; |
foreach ($rows as $row) { | foreach ($rows as $row) { |
// print_r($row); | // print_r($row); |
echo '<li typeof="schema:GovernmentOrganisation foaf:Organization" about="getAgency.php?id=' . $row->value->_id . '"> | echo '<li itemscope itemtype="http://schema.org/GovernmentOrganization" typeof="schema:GovernmentOrganization foaf:Organization" about="getAgency.php?id=' . $row->value->_id . '"> |
<a href="getAgency.php?id=' . $row->value->_id . '" rel="schema:url foaf:page" property="schema:name foaf:name">' . | <a href="getAgency.php?id=' . $row->value->_id . '" rel="schema:url foaf:page" property="schema:name foaf:name" itemprop="url"><span itemprop="name">' . |
$row->value->name | $row->value->name |
. '</a></li>'; | . '</span></a></li>'; |
} | } |
echo "</ul>"; | echo "</ul>"; |
} catch (SetteeRestClientException $e) { | } catch (SetteeRestClientException $e) { |
setteErrorHandler($e); | setteErrorHandler($e); |
} | } |
} | } |
include_footer(); | include_footer(); |
?> | ?> |
google-site-verification: google676a414ad086cefb.html | |
<?php | <?php |
date_default_timezone_set("Australia/Sydney"); | date_default_timezone_set("Australia/Sydney"); |
$basePath = ""; | $basePath = ""; |
if (strstr($_SERVER['PHP_SELF'], "alaveteli/") | if (strstr($_SERVER['PHP_SELF'], "alaveteli/") |
|| strstr($_SERVER['PHP_SELF'], "admin/") | || strstr($_SERVER['PHP_SELF'], "admin/") |
|| strstr($_SERVER['PHP_SELF'], "lib/") | || strstr($_SERVER['PHP_SELF'], "lib/") |
|| strstr($_SERVER['PHP_SELF'], "include/")) | || strstr($_SERVER['PHP_SELF'], "include/")) |
$basePath = "../"; | $basePath = "../"; |
include_once ('couchdb.inc.php'); | include_once ('couchdb.inc.php'); |
include_once ('template.inc.php'); | include_once ('template.inc.php'); |
require_once $basePath.'lib/Requests/library/Requests.php'; | require_once $basePath.'lib/Requests/library/Requests.php'; |
Requests::register_autoloader(); | Requests::register_autoloader(); |
# Convert a stdClass to an Array. http://www.php.net/manual/en/language.types.object.php#102735 | # Convert a stdClass to an Array. http://www.php.net/manual/en/language.types.object.php#102735 |
function object_to_array(stdClass $Class) { | function object_to_array(stdClass $Class) { |
# Typecast to (array) automatically converts stdClass -> array. | # Typecast to (array) automatically converts stdClass -> array. |
$Class = (array) $Class; | $Class = (array) $Class; |
# Iterate through the former properties looking for any stdClass properties. | # Iterate through the former properties looking for any stdClass properties. |
# Recursively apply (array). | # Recursively apply (array). |
foreach ($Class as $key => $value) { | foreach ($Class as $key => $value) { |
if (is_object($value) && get_class($value) === 'stdClass') { | if (is_object($value) && get_class($value) === 'stdClass') { |
$Class[$key] = object_to_array($value); | $Class[$key] = object_to_array($value); |
} | } |
} | } |
return $Class; | return $Class; |
} | } |
# Convert an Array to stdClass. http://www.php.net/manual/en/language.types.object.php#102735 | # Convert an Array to stdClass. http://www.php.net/manual/en/language.types.object.php#102735 |
function array_to_object(array $array) { | function array_to_object(array $array) { |
# Iterate through our array looking for array values. | # Iterate through our array looking for array values. |
# If found recurvisely call itself. | # If found recurvisely call itself. |
foreach ($array as $key => $value) { | foreach ($array as $key => $value) { |
if (is_array($value)) { | if (is_array($value)) { |
$array[$key] = array_to_object($value); | $array[$key] = array_to_object($value); |
} | } |
} | } |
# Typecast to (object) will automatically convert array -> stdClass | # Typecast to (object) will automatically convert array -> stdClass |
return (object) $array; | return (object) $array; |
} | } |
function dept_to_portfolio($deptName) { | function dept_to_portfolio($deptName) { |
return trim(str_replace("Department of", "", str_replace("Department of the", "Department of", $deptName))); | return trim(str_replace("Department of", "", str_replace("Department of the", "Department of", $deptName))); |
} | } |
function phrase_to_tag ($phrase) { | function phrase_to_tag ($phrase) { |
return str_replace(" ","_",str_replace("'","",str_replace(",","",strtolower($phrase)))); | return str_replace(" ","_",str_replace("'","",str_replace(",","",strtolower($phrase)))); |
} | } |
function local_url() { | |
return "http://" . $_SERVER['HTTP_HOST'] . rtrim(dirname($_SERVER['PHP_SELF']), '/\\') . "/"; | |
} | |
function GetDomain($url) | function GetDomain($url) |
{ | { |
$nowww = ereg_replace('www\.','',$url); | $nowww = ereg_replace('www\.','',$url); |
$domain = parse_url($nowww); | $domain = parse_url($nowww); |
if(!empty($domain["host"])) | if(!empty($domain["host"])) |
{ | { |
return $domain["host"]; | return $domain["host"]; |
} else | } else |
{ | { |
return $domain["path"]; | return $domain["path"]; |
} | } |
} | } |
<?php | <?php |
include $basePath . "schemas/schemas.inc.php"; | include $basePath . "schemas/schemas.inc.php"; |
require ($basePath . 'couchdb/settee/src/settee.php'); | require ($basePath . 'couchdb/settee/src/settee.php'); |
function createDocumentsDesignDoc() { | function createDocumentsDesignDoc() { |
/* "views": { | /* "views": { |
"web_server": { | "web_server": { |
"map": "function(doc) {\n emit(doc.web_server, 1);\n}", | "map": "function(doc) {\n emit(doc.web_server, 1);\n}", |
"reduce": "function (key, values, rereduce) {\n return sum(values);\n}" | "reduce": "function (key, values, rereduce) {\n return sum(values);\n}" |
}, | }, |
"byAgency": { | "byAgency": { |
"map": "function(doc) {\n emit(doc.agencyID, 1);\n}", | "map": "function(doc) {\n emit(doc.agencyID, 1);\n}", |
"reduce": "function (key, values, rereduce) {\n return sum(values);\n}" | "reduce": "function (key, values, rereduce) {\n return sum(values);\n}" |
}, | }, |
"byURL": { | "byURL": { |
"map": "function(doc) {\n emit(doc.url, doc);\n}" | "map": "function(doc) {\n emit(doc.url, doc);\n}" |
}, | }, |
"agency": { | "agency": { |
"map": "function(doc) {\n emit(doc.agencyID, doc);\n}" | "map": "function(doc) {\n emit(doc.agencyID, doc);\n}" |
}, | }, |
"byWebServer": { | "byWebServer": { |
"map": "function(doc) {\n emit(doc.web_server, doc);\n}" | "map": "function(doc) {\n emit(doc.web_server, doc);\n}" |
}, | }, |
"getValidationRequired": { | "getValidationRequired": { |
"map": "function(doc) {\nif (doc.mime_type == \"text/html\" \n&& typeof(doc.validation) == \"undefined\") {\n emit(doc._id, doc._attachments);\n}\n}" | "map": "function(doc) {\nif (doc.mime_type == \"text/html\" \n&& typeof(doc.validation) == \"undefined\") {\n emit(doc._id, doc._attachments);\n}\n}" |
} | } |
} */ | } */ |
} | } |
function createAgencyDesignDoc() { | function createAgencyDesignDoc() { |
global $db; | global $db; |
$obj = new stdClass(); | $obj = new stdClass(); |
$obj->_id = "_design/" . urlencode("app"); | $obj->_id = "_design/" . urlencode("app"); |
$obj->language = "javascript"; | $obj->language = "javascript"; |
$obj->views->all->map = "function(doc) { emit(doc._id, doc); };"; | $obj->views->all->map = "function(doc) { emit(doc._id, doc); };"; |
$obj->views->byABN->map = "function(doc) { emit(doc.abn, doc); };"; | $obj->views->byABN->map = "function(doc) { emit(doc.abn, doc); };"; |
$obj->views->byCanonicalName->map = "function(doc) { | $obj->views->byCanonicalName->map = "function(doc) { |
if (doc.parentOrg || doc.orgType == 'FMA-DepartmentOfState') { | if (doc.parentOrg || doc.orgType == 'FMA-DepartmentOfState') { |
emit(doc.name, doc); | emit(doc.name, doc); |
} | } |
};"; | };"; |
$obj->views->byDeptStateName->map = "function(doc) { | $obj->views->byDeptStateName->map = "function(doc) { |
if (doc.orgType == 'FMA-DepartmentOfState') { | if (doc.orgType == 'FMA-DepartmentOfState') { |
emit(doc.name, doc._id); | emit(doc.name, doc._id); |
} | } |
};"; | };"; |
$obj->views->parentOrgs->map = "function(doc) { | $obj->views->parentOrgs->map = "function(doc) { |
if (doc.parentOrg) { | if (doc.parentOrg) { |
emit(doc._id, doc.parentOrg); | emit(doc._id, doc.parentOrg); |
} | } |
};"; | };"; |
$obj->views->byName->map = 'function(doc) { | $obj->views->byName->map = 'function(doc) { |
if (typeof(doc["status"]) == "undefined" || doc["status"] != "suspended") { | if (typeof(doc["status"]) == "undefined" || doc["status"] != "suspended") { |
emit(doc.name, doc._id); | emit(doc.name, doc._id); |
if (typeof(doc.shortName) != "undefined" && doc.shortName != doc.name) { | if (typeof(doc.shortName) != "undefined" && doc.shortName != doc.name) { |
emit(doc.shortName, doc._id); | emit(doc.shortName, doc._id); |
} | } |
for (name in doc.otherNames) { | for (name in doc.otherNames) { |
if (doc.otherNames[name] != "" && doc.otherNames[name] != doc.name) { | if (doc.otherNames[name] != "" && doc.otherNames[name] != doc.name) { |
emit(doc.otherNames[name], doc._id); | emit(doc.otherNames[name], doc._id); |
} | } |
} | } |
for (name in doc.foiBodies) { | for (name in doc.foiBodies) { |
if (doc.foiBodies[name] != "" && doc.foiBodies[name] != doc.name) { | if (doc.foiBodies[name] != "" && doc.foiBodies[name] != doc.name) { |
emit(doc.foiBodies[name], doc._id); | emit(doc.foiBodies[name], doc._id); |
} | } |
} | } |
} | } |
};'; | };'; |
$obj->views->foiEmails->map = "function(doc) { | $obj->views->foiEmails->map = "function(doc) { |
emit(doc._id, doc.foiEmail); | emit(doc._id, doc.foiEmail); |
};"; | };"; |
$obj->views->byLastModified->map = "function(doc) { emit(doc.metadata.lastModified, doc); }"; | $obj->views->byLastModified->map = "function(doc) { emit(doc.metadata.lastModified, doc); }"; |
$obj->views->getActive->map = 'function(doc) { if (doc.status == "active") { emit(doc._id, doc); } };'; | $obj->views->getActive->map = 'function(doc) { if (doc.status == "active") { emit(doc._id, doc); } };'; |
$obj->views->getSuspended->map = 'function(doc) { if (doc.status == "suspended") { emit(doc._id, doc); } };'; | $obj->views->getSuspended->map = 'function(doc) { if (doc.status == "suspended") { emit(doc._id, doc); } };'; |
$obj->views->getScrapeRequired->map = "function(doc) { | $obj->views->getScrapeRequired->map = "function(doc) { |
var lastScrape = Date.parse(doc.metadata.lastScraped); | var lastScrape = Date.parse(doc.metadata.lastScraped); |
var today = new Date(); | var today = new Date(); |
if (!lastScrape || lastScrape.getTime() + 1000 != today.getTime()) { | if (!lastScrape || lastScrape.getTime() + 1000 != today.getTime()) { |
emit(doc._id, doc); | emit(doc._id, doc); |
} | } |
};"; | };"; |
$obj->views->showNamesABNs->map = "function(doc) { emit(doc._id, {name: doc.name, abn: doc.abn}); };"; | $obj->views->showNamesABNs->map = "function(doc) { emit(doc._id, {name: doc.name, abn: doc.abn}); };"; |
$obj->views->getConflicts->map = "function(doc) { | $obj->views->getConflicts->map = "function(doc) { |
if (doc._conflicts) { | if (doc._conflicts) { |
emit(null, [doc._rev].concat(doc._conflicts)); | emit(null, [doc._rev].concat(doc._conflicts)); |
} | } |
}"; | }"; |
// http://stackoverflow.com/questions/646628/javascript-startswith | // http://stackoverflow.com/questions/646628/javascript-startswith |
$obj->views->score->map = 'if(!String.prototype.startsWith){ | $obj->views->score->map = 'if(!String.prototype.startsWith){ |
String.prototype.startsWith = function (str) { | String.prototype.startsWith = function (str) { |
return !this.indexOf(str); | return !this.indexOf(str); |
} | } |
} | } |
function(doc) { | function(doc) { |
count = 0; | count = 0; |
if (doc["status"] != "suspended") { | if (doc["status"] != "suspended") { |
for(var propName in doc) { | for(var propName in doc) { |
if(typeof(doc[propName]) != "undefined" && doc[propName] != "") { | if(typeof(doc[propName]) != "undefined" && doc[propName] != "") { |
count++; | count++; |
} | } |
} | } |
portfolio = doc.parentOrg; | portfolio = doc.parentOrg; |
if (doc.orgType == "FMA-DepartmentOfState") { | if (doc.orgType == "FMA-DepartmentOfState") { |
portfolio = doc._id; | portfolio = doc._id; |
} | } |
if (doc.orgType == "Court-Commonwealth" || doc.orgType == "FMA-DepartmentOfParliament") { | if (doc.orgType == "Court-Commonwealth" || doc.orgType == "FMA-DepartmentOfParliament") { |
portfolio = doc.orgType; | portfolio = doc.orgType; |
} | } |
emit(count+doc._id, {id:doc._id, name: doc.name, score:count, orgType: doc.orgType, portfolio:portfolio}); | emit(count+doc._id, {id:doc._id, name: doc.name, score:count, orgType: doc.orgType, portfolio:portfolio}); |
} | } |
}'; | }'; |
$obj->views->scoreHas->map = 'if(!String.prototype.startsWith){ | $obj->views->scoreHas->map = 'if(!String.prototype.startsWith){ |
String.prototype.startsWith = function (str) { | String.prototype.startsWith = function (str) { |
return !this.indexOf(str); | return !this.indexOf(str); |
} | } |
} | } |
if(!String.prototype.endsWith){ | if(!String.prototype.endsWith){ |
String.prototype.endsWith = function(suffix) { | String.prototype.endsWith = function(suffix) { |
return this.indexOf(suffix, this.length - suffix.length) !== -1; | return this.indexOf(suffix, this.length - suffix.length) !== -1; |
}; | }; |
} | } |
function(doc) { | function(doc) { |
if (typeof(doc["status"]) == "undefined" || doc["status"] != "suspended") { | if (typeof(doc["status"]) == "undefined" || doc["status"] != "suspended") { |
for(var propName in doc) { | for(var propName in doc) { |
if(typeof(doc[propName]) != "undefined" && (propName.startsWith("has") || propName.endsWith("URL"))) { | if(typeof(doc[propName]) != "undefined" && (propName.startsWith("has") || propName.endsWith("URL"))) { |
emit(propName, 1); | emit(propName, 1); |
} | } |
} | } |
emit("total", 1); | emit("total", 1); |
} | } |
}'; | }'; |
$obj->views->scoreHas->reduce = 'function (key, values, rereduce) { | $obj->views->scoreHas->reduce = 'function (key, values, rereduce) { |
return sum(values); | return sum(values); |
}'; | }'; |
$obj->views->fieldNames->map = ' | $obj->views->fieldNames->map = ' |
function(doc) { | function(doc) { |
for(var propName in doc) { | for(var propName in doc) { |
emit(propName, doc._id); | emit(propName, doc._id); |
} | } |
}'; | }'; |
$obj->views->fieldNames->reduce = 'function (key, values, rereduce) { | $obj->views->fieldNames->reduce = 'function (key, values, rereduce) { |
return values.length; | return values.length; |
}'; | }'; |
// allow safe updates (even if slightly slower due to extra: rev-detection check). | // allow safe updates (even if slightly slower due to extra: rev-detection check). |
return $db->save($obj, true); | return $db->save($obj, true); |
} | } |
if (php_uname('n') == "vanille") { | if (php_uname('n') == "vanille") { |
$serverAddr = 'http://192.168.178.21:5984/'; | $serverAddr = 'http://192.168.178.21:5984/'; |
} else | } else |
if (php_uname('n') == "KYUUBEY") { | if (php_uname('n') == "KYUUBEY") { |
$serverAddr = 'http://127.0.0.1:5984/'; | $serverAddr = 'http://192.168.1.148:5984/'; |
} else { | } else { |
$serverAddr = 'http://127.0.0.1:5984/'; | $serverAddr = 'http://127.0.0.1:5984/'; |
} | } |
$server = new SetteeServer($serverAddr); | $server = new SetteeServer($serverAddr); |
function setteErrorHandler($e) { | function setteErrorHandler($e) { |
echo $e->getMessage() . "<br>" . PHP_EOL; | echo $e->getMessage() . "<br>" . PHP_EOL; |
} | } |
<?php | <?php |
function include_header() { | function include_header($title) { |
global $basePath; | global $basePath; |
?> | ?> |
<!DOCTYPE html> | <!DOCTYPE html> |
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ --> | <!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ --> |
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]--> | <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]--> |
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]--> | <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]--> |
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]--> | <!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]--> |
<!--[if gt IE 8]><!--> <html lang="en"> <!--<![endif]--> | <!--[if gt IE 8]><!--> <html lang="en"> <!--<![endif]--> |
<head> | <head> |
<meta charset="utf-8" /> | <meta charset="utf-8" /> |
<!-- Set the viewport width to device width for mobile --> | <!-- Set the viewport width to device width for mobile --> |
<meta name="viewport" content="width=device-width" /> | <meta name="viewport" content="width=device-width" /> |
<title>Disclosr</title> | <title><?php echo $title; ?> - Disclosr</title> |
<!-- Included CSS Files --> | <!-- Included CSS Files --> |
<link rel="stylesheet" href="<?php echo $basePath ?>stylesheets/foundation.css"> | <link rel="stylesheet" href="<?php echo $basePath ?>stylesheets/foundation.css"> |
<link rel="stylesheet" href="<?php echo $basePath ?>stylesheets/app.css"> | <link rel="stylesheet" href="<?php echo $basePath ?>stylesheets/app.css"> |
<!--[if lt IE 9]> | <!--[if lt IE 9]> |
<link rel="stylesheet" href="<?php echo $basePath ?>stylesheets/ie.css"> | <link rel="stylesheet" href="<?php echo $basePath ?>stylesheets/ie.css"> |
<![endif]--> | <![endif]--> |
<!-- IE Fix for HTML5 Tags --> | <!-- IE Fix for HTML5 Tags --> |
<!--[if lt IE 9]> | <!--[if lt IE 9]> |
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> | <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> |
<![endif]--> | <![endif]--> |
</head> | </head> |
<body xmlns:schema="http://schema.org/" xmlns:foaf="http://xmlns.com/foaf/0.1/"> | <body xmlns:schema="http://schema.org/" xmlns:foaf="http://xmlns.com/foaf/0.1/"> |
<!-- navBar --> | <!-- navBar --> |
<div id="navbar" class="container"> | <div id="navbar" class="container"> |
<div class="row"> | <div class="row"> |
<div class="four columns"> | <div class="four columns"> |
<h1><a href="/">Disclosr</a></h1> | <h1><a href="/">Disclosr</a></h1> |
</div> | </div> |
<div class="eight columns hide-on-phones"> | <div class="eight columns hide-on-phones"> |
<strong class="right"> | <strong class="right"> |
<a href="getAgency.php">Agencies</a> | <a href="getAgency.php">Agencies</a> |
<a href="about.php">About/FAQ</a> | <a href="about.php">About/FAQ</a> |
</strong> | </strong> |
</div> | </div> |
</div> | </div> |
</div> | </div> |
<!-- /navBar --> | <!-- /navBar --> |
<!-- container --> | <!-- container --> |
<div class="container"> | <div class="container"> |
<?php } | <?php } |
function include_footer() { | function include_footer() { |
global $basePath; | global $basePath; |
?> | ?> |
</div> | </div> |
<!-- container --> | <!-- container --> |
<!-- Included JS Files --> | <!-- Included JS Files --> |
<script src="<?php echo $basePath; ?>javascripts/foundation.js"></script> | <script src="<?php echo $basePath; ?>javascripts/foundation.js"></script> |
<script src="<?php echo $basePath; ?>javascripts/app.js"></script> | <script src="<?php echo $basePath; ?>javascripts/app.js"></script> |
<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script> | <script src="http://code.jquery.com/jquery-1.7.1.min.js"></script> |
<script type="text/javascript" src="javascripts/flotr2/flotr2.js"></script> | <script type="text/javascript" src="javascripts/flotr2/flotr2.js"></script> |
<?php | |
if (strpos($_SERVER['SERVER_NAME'], ".gs")) { | |
?> | |
<script type="text/javascript"> | |
var _gaq = _gaq || []; | |
_gaq.push(['_setAccount', 'UA-12341040-2']); | |
_gaq.push(['_trackPageview']); | |
(function() { | |
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; | |
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; | |
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); | |
})(); | |
</script> | |
</body> | </body> |
</html> | </html> |
<?php } | <?php } |
} | |
<?php | |
/* Redirect to a different page in the current directory that was requested */ | |
$host = $_SERVER['HTTP_HOST']; | |
$uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\'); | |
$extra = 'getAgency.php'; | |
header("Location: http://$host$uri/$extra"); | |
exit; | |
?> | |
# www.robotstxt.org/ | # www.robotstxt.org/ |
# www.google.com/support/webmasters/bin/answer.py?hl=en&answer=156449 | # www.google.com/support/webmasters/bin/answer.py?hl=en&answer=156449 |
User-agent: * | User-agent: * |
Disallow: /admin/ | Disallow: /admin/ |
Sitemap: http://orgs.disclosurelo.gs/sitemap.xml.php |
<?php | <?php |
$schemas['agency'] = Array( | $schemas['agency'] = Array( |
"description" => "Representation of government agency and online transparency measures", | "description" => "Representation of government agency and online transparency measures", |
"type" => "object", | "type" => "object", |
"properties" => Array( | "properties" => Array( |
"name" => Array("type" => "string", "required" => true, "x-property" => "schema:name foaf:name", "x-title" => "Name", "description" => "Name, most recent and broadest"), | "name" => Array("type" => "string", "required" => true, "x-itemprop" => "name", "x-property" => "schema:name foaf:name", "x-title" => "Name", "description" => "Name, most recent and broadest"), |
"shortName" => Array("type" => "string", "required" => false, "x-title" => "Short Name", "description" => "Name shortened, usually to an acronym"), | "shortName" => Array("type" => "string", "required" => false, "x-title" => "Short Name", "description" => "Name shortened, usually to an acronym"), |
"foiEmail" => Array("type" => "string", "required" => false, "x-title" => "FOI Contact Email", "description" => "FOI contact email if not foi@"), | "foiEmail" => Array("type" => "string", "required" => false, "x-title" => "FOI Contact Email", "x-itemprop" => "email", "description" => "FOI contact email if not foi@"), |
"sameAs" => Array("type" => "array", "required" => false, "x-property"=>"owl:sameAs","x-title" => "Same As", "description" => "Same as other URLs/URIs for this entity", | "sameAs" => Array("type" => "array", "required" => false, "x-property"=>"owl:sameAs","x-title" => "Same As", "description" => "Same as other URLs/URIs for this entity", |
"items" => Array("type" => "string")), | "items" => Array("type" => "string")), |
"otherNames" => Array("type" => "array", "required" => true, "x-title" => "Past/Other Names", "description" => "Other names for organisation", | "otherNames" => Array("type" => "array", "required" => true, "x-title" => "Past/Other Names", "description" => "Other names for organisation", |
"items" => Array("type" => "string")), | "items" => Array("type" => "string")), |
"foiBodies" => Array("type" => "array", "required" => true, "x-title" => "FOI Bodies","x-property"=>"schema:members foaf:knows", "description" => "Organisational units within this agency that are subject to FOI Act but are not autonomous", | "foiBodies" => Array("type" => "array", "required" => true, "x-title" => "FOI Bodies","x-property"=>"schema:members foaf:knows", "description" => "Organisational units within this agency that are subject to FOI Act but are not autonomous", |
"items" => Array("type" => "string")), | "items" => Array("type" => "string")), |
"orgType" => Array("type" => "string", "required" => true, "x-title" => "Organisation Type", "description" => "Org type based on legal formation via FMA/CAC legislation etc."), | "orgType" => Array("type" => "string", "required" => true, "x-title" => "Organisation Type", "description" => "Org type based on legal formation via FMA/CAC legislation etc."), |
"parentOrg" => Array("type" => "string", "required" => true, "x-title" => "Parent Organisation", "description" => "Parent organisation, usually a department of state"), | "parentOrg" => Array("type" => "string", "required" => true, "x-title" => "Parent Organisation", "description" => "Parent organisation, usually a department of state"), |
"website" => Array("type" => "string", "required" => true, "x-title" => "Website", "x-property" => "schema:url foaf:homepage", "description" => "Website URL"), | "website" => Array("type" => "string", "required" => true, "x-title" => "Website", "x-itemprop" => "url", "x-property" => "schema:url foaf:homepage", "description" => "Website URL"), |
"abn" => Array("type" => "string", "required" => true, "x-title" => "Australian Business Number", "description" => "ABN from business register"), | "abn" => Array("type" => "string", "required" => true, "x-title" => "Australian Business Number", "description" => "ABN from business register"), |
"employees" => Array("type" => "string", "required" => true, "x-title" => "2010-2011 employees", "description" => "2010-2011 employees"), | "employees" => Array("type" => "string", "required" => true, "x-title" => "2010-2011 employees", "description" => "2010-2011 employees"), |
"contractListURL" => Array("type" => "string", "required" => true, "x-title" => "Contract Listing", "description" => "Departmental and agency contracts, <a href='http://www.aph.gov.au/senate/pubs/standing_orders/d05.htm'>mandated by the Senate</a>" ), | "contractListURL" => Array("type" => "string", "required" => true, "x-title" => "Contract Listing", "description" => "Departmental and agency contracts, <a href='http://www.aph.gov.au/senate/pubs/standing_orders/d05.htm'>mandated by the Senate</a>" ), |
"budgetURL" => Array("type" => "string", "required" => true,"x-title" => "Budget", "description" => "Portfolio Budget Statements and Portfolio Additional Estimates Statements"), | "budgetURL" => Array("type" => "string", "required" => true,"x-title" => "Budget", "description" => "Portfolio Budget Statements and Portfolio Additional Estimates Statements"), |
"grantsReportingURL" => Array("type" => "string", "required" => true, "x-title" => "Grants Awarded", | "grantsReportingURL" => Array("type" => "string", "required" => true, "x-title" => "Grants Awarded", |
"description" => "Departmental and agency grants <a href='http://www.aph.gov.au/senate/pubs/standing_orders/d05.htm'>mandated by the Senate</a> and <a href='http://www.finance.gov.au/publications/fmg-series/23-commonwealth-grant-guidelines.html'>Commonwealth grants guidelines</a> "), | "description" => "Departmental and agency grants <a href='http://www.aph.gov.au/senate/pubs/standing_orders/d05.htm'>mandated by the Senate</a> and <a href='http://www.finance.gov.au/publications/fmg-series/23-commonwealth-grant-guidelines.html'>Commonwealth grants guidelines</a> "), |
"annualReportURL" => Array("type" => "string", "required" => true, "x-title" => "Annual Report(s)", "description" => ""), | "annualReportURL" => Array("type" => "string", "required" => true, "x-title" => "Annual Report(s)", "description" => ""), |
"consultanciesURL" => Array("type" => "string", "required" => true, "x-title" => "Consultants Hired", "description" => ""), | "consultanciesURL" => Array("type" => "string", "required" => true, "x-title" => "Consultants Hired", "description" => ""), |
"legalExpenditureURL" => Array("type" => "string", "required" => true, "x-title" => "Legal Services Expenditure", "description" => "Legal Services Expenditure mandated by Legal Services Directions 2005"), | "legalExpenditureURL" => Array("type" => "string", "required" => true, "x-title" => "Legal Services Expenditure", "description" => "Legal Services Expenditure mandated by Legal Services Directions 2005"), |
"recordsListURL" => Array("type" => "string", "required" => true, "x-title" => "Files/Records Held", "description" => "Indexed lists of departmental and agency files, <a href='http://www.aph.gov.au/senate/pubs/standing_orders/d05.htm'>mandated by the Senate</a>"), | "recordsListURL" => Array("type" => "string", "required" => true, "x-title" => "Files/Records Held", "description" => "Indexed lists of departmental and agency files, <a href='http://www.aph.gov.au/senate/pubs/standing_orders/d05.htm'>mandated by the Senate</a>"), |
"FOIDocumentsURL" => Array("type" => "string", "required" => true, "x-title" => "FOI Documents Released", "description" => "FOI Disclosure Log URL"), | "FOIDocumentsURL" => Array("type" => "string", "required" => true, "x-title" => "FOI Documents Released", "description" => "FOI Disclosure Log URL"), |
"FOIDocumentsRSSURL" => Array("type" => "string", "required" => false, "x-title" => "RSS Feed of FOI Documents Released", "description" => "FOI Disclosure Log in RSS format"), | "FOIDocumentsRSSURL" => Array("type" => "string", "required" => false, "x-title" => "RSS Feed of FOI Documents Released", "description" => "FOI Disclosure Log in RSS format"), |
"hasFOIPDF" => Array("type" => "array", "required" => false, "x-title" => "Has FOI Documents Released in PDF", "description" => "FOI Disclosure Log contains any PDFs", | "hasFOIPDF" => Array("type" => "array", "required" => false, "x-title" => "Has FOI Documents Released in PDF", "description" => "FOI Disclosure Log contains any PDFs", |
"items" => Array("type" => "string")), | "items" => Array("type" => "string")), |
"infoPublicationSchemeURL" => Array("type" => "string", "required" => true, "x-title" => "Information Publication Scheme", "description" => ""), | "infoPublicationSchemeURL" => Array("type" => "string", "required" => true, "x-title" => "Information Publication Scheme", "description" => ""), |
"appointmentsURL" => Array("type" => "string", "required" => true, "x-title" => "Agency Appointments/Boards", "description" => "Departmental and agency appointments and vacancies , <a href='http://www.aph.gov.au/senate/pubs/standing_orders/d05.htm'>mandated by the Senate</a>"), | "appointmentsURL" => Array("type" => "string", "required" => true, "x-title" => "Agency Appointments/Boards", "description" => "Departmental and agency appointments and vacancies , <a href='http://www.aph.gov.au/senate/pubs/standing_orders/d05.htm'>mandated by the Senate</a>"), |
"advertisingURL" => Array("type" => "string", "required" => true, "x-title" => "Approved Advertising Campaigns", "description" => " Agency advertising and public information projects, <a href='http://www.aph.gov.au/senate/pubs/standing_orders/d05.htm'>mandated by the Senate</a> "), | "advertisingURL" => Array("type" => "string", "required" => true, "x-title" => "Approved Advertising Campaigns", "description" => " Agency advertising and public information projects, <a href='http://www.aph.gov.au/senate/pubs/standing_orders/d05.htm'>mandated by the Senate</a> "), |
"hasRSS" => Array("type" => "array", "required" => true, "x-title" => "Has RSS", "description" => ""), | "hasRSS" => Array("type" => "array", "required" => true, "x-title" => "Has RSS", "description" => ""), |
"hasBlog" => Array("type" => "array", "required" => true, "x-title" => "Has Blog", "description" => ""), | "hasBlog" => Array("type" => "array", "required" => true, "x-title" => "Has Blog", "description" => ""), |
"hasMobileApp" => Array("type" => "array", "required" => true, "x-title" => "Has Mobile App", "description" => ""), | "hasMobileApp" => Array("type" => "array", "required" => true, "x-title" => "Has Mobile App", "description" => ""), |
"hasMailingList" => Array("type" => "array", "required" => true, "x-title" => "Has Mailing List", "description" => "", | "hasMailingList" => Array("type" => "array", "required" => true, "x-title" => "Has Mailing List", "description" => "", |
"items" => Array("type" => "string")), | "items" => Array("type" => "string")), |
"hasTwitter" => Array("type" => "array", "required" => true, "x-title" => "Has Twitter", "description" => "", | "hasTwitter" => Array("type" => "array", "required" => true, "x-title" => "Has Twitter", "description" => "", |
"items" => Array("type" => "string")), | "items" => Array("type" => "string")), |
"hasFacebook" => Array("type" => "array", "required" => true, "x-title" => "Has Facebook", "description" => "", | "hasFacebook" => Array("type" => "array", "required" => true, "x-title" => "Has Facebook", "description" => "", |
"items" => Array("type" => "string")), | "items" => Array("type" => "string")), |
"hasYouTube" => Array("type" => "array", "required" => true, "x-title" => "Has YouTube", "description" => "", | "hasYouTube" => Array("type" => "array", "required" => true, "x-title" => "Has YouTube", "description" => "", |
"items" => Array("type" => "string")), | "items" => Array("type" => "string")), |
"hasFlickr" => Array("type" => "array", "required" => true, "x-title" => "Has Flickr", "description" => "", | "hasFlickr" => Array("type" => "array", "required" => true, "x-title" => "Has Flickr", "description" => "", |
"items" => Array("type" => "string")), | "items" => Array("type" => "string")), |
"hasCCBY" => Array("type" => "array", "required" => true, "x-title" => "Has CC-BY", "description" => "Has any page licenced Creative Commons - Attribution", | "hasCCBY" => Array("type" => "array", "required" => true, "x-title" => "Has CC-BY", "description" => "Has any page licenced Creative Commons - Attribution", |
"items" => Array("type" => "string")), | "items" => Array("type" => "string")), |
"hasRestrictiveLicence" => Array("type" => "array","required" => true, "x-title" => "Has Restrictive Licence", "description" => "Has any page licenced under terms more restrictive than Crown Copyright", | "hasRestrictiveLicence" => Array("type" => "array","required" => true, "x-title" => "Has Restrictive Licence", "description" => "Has any page licenced under terms more restrictive than Crown Copyright", |
"items" => Array("type" => "string")), | "items" => Array("type" => "string")), |
"hasPermissiveLicence" => Array("type" => "array","required" => true, "x-title" => "Has Permissive Licence", "description" => "Has any page licenced under terms more permissive than Crown Copyright but not clear CCBY", | "hasPermissiveLicence" => Array("type" => "array","required" => true, "x-title" => "Has Permissive Licence", "description" => "Has any page licenced under terms more permissive than Crown Copyright but not clear CCBY", |
"items" => Array("type" => "string")), | "items" => Array("type" => "string")), |
"hasCrownCopyright" => Array("type" => "array", "required" => true, "x-title" => "Has Standard Crown Copyright licence", "description" => "Has any page still licenced under the former Commonwealth Copyright Administration", | "hasCrownCopyright" => Array("type" => "array", "required" => true, "x-title" => "Has Standard Crown Copyright licence", "description" => "Has any page still licenced under the former Commonwealth Copyright Administration", |
"items" => Array("type" => "string")), | "items" => Array("type" => "string")), |
), | ), |
/* "org":{"type":"object", | /* "org":{"type":"object", |
"properties":{ | "properties":{ |
"organizationName":{"type":"string"}, | "organizationName":{"type":"string"}, |
"organizationUnit":{"type":"string"}}, | "organizationUnit":{"type":"string"}}, |
} | } |
} */ | } */ |
); | ); |
?> | ?> |
<?php | <?php |
include_once('include/common.inc.php'); | include_once('include/common.inc.php'); |
include_header(); | include_header('Scores'); |
$db = $server->get_db('disclosr-agencies'); | $db = $server->get_db('disclosr-agencies'); |
try { | try { |
$rows = $db->get_view("score", "score", null, true)->rows; | $rows = $db->get_view("score", "score", null, true)->rows; |
//print_r($rows); | //print_r($rows); |
foreach ($rows as $row) { | foreach ($rows as $row) { |
echo '<a href="getAgency.php?id='.$row->value->id.'">'.$row->value->name." ".$row->value->score."</a><br>"; | echo '<a href="getAgency.php?id='.$row->value->id.'">'.$row->value->name." ".$row->value->score."</a><br>"; |
} | } |
} catch (SetteeRestClientException $e) { | } catch (SetteeRestClientException $e) { |
setteErrorHandler($e); | setteErrorHandler($e); |
} | } |
include_footer(); | include_footer(); |
?> | ?> |
<?php | <?php |
include_once('include/common.inc.php'); | include_once('include/common.inc.php'); |
include_header(); | include_header('Search'); |
?> | ?> |
<div class="foundation-header"> | <div class="foundation-header"> |
<h1><a href="search.php">Search</a></h1> | <h1><a href="search.php">Search</a></h1> |
</div> | </div> |
<form> | <form> |
<input type="text" name="q" value="<?php if (isset($_REQUEST['q']))echo $_REQUEST['q'];?>"/> | <input type="text" name="q" value="<?php if (isset($_REQUEST['q']))echo $_REQUEST['q'];?>"/> |
<input type="submit"/> | <input type="submit"/> |
</form> | </form> |
<?php | <?php |
if (isset($_REQUEST['q'])) { | if (isset($_REQUEST['q'])) { |
$request = Requests::get($serverAddr."disclosr-documents/_fti/_design/lucene/by_all?include_docs=true&q=".$_REQUEST['q']); | $request = Requests::get($serverAddr."disclosr-documents/_fti/_design/lucene/by_all?include_docs=true&q=".$_REQUEST['q']); |
$results = json_decode($request->body); | $results = json_decode($request->body); |
$db = $server->get_db('disclosr-documents'); | $db = $server->get_db('disclosr-documents'); |
foreach ($results->rows as $result) { | foreach ($results->rows as $result) { |
//print_r($result); | //print_r($result); |
//$row = $db->get($result->id); | //$row = $db->get($result->id); |
echo $result->doc->_id." ".$result->doc->url."<br>".PHP_EOL; | echo $result->doc->_id." ".$result->doc->url."<br>".PHP_EOL; |
} | } |
} | } |
include_footer(); | include_footer(); |
?> | ?> |
<?php | |
include ('include/common.inc.php'); | |
$last_updated = date('Y-m-d', @filemtime('cbrfeed.zip')); | |
header("Content-Type: text/xml"); | |
echo "<?xml version='1.0' encoding='UTF-8'?>"; | |
echo '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">' . "\n"; | |
echo " <url><loc>" . local_url() . "index.php</loc><priority>1.0</priority></url>\n"; | |
foreach (scandir("./") as $file) { | |
if (strpos($file, ".php") !== false && $file != "index.php" && $file != "sitemap.xml.php") | |
echo " <url><loc>" . local_url() . "$file</loc><priority>0.3</priority></url>\n"; | |
} | |
$db = $server->get_db('disclosr-agencies'); | |
try { | |
$rows = $db->get_view("app", "byCanonicalName")->rows; | |
foreach ($rows as $row) { | |
echo '<url><loc>' . local_url() . 'getAgency.php?id=' . $row->value->_id . "</loc><priority>0.6</priority></url>\n"; | |
} | |
} catch (SetteeRestClientException $e) { | |
setteErrorHandler($e); | |
} | |
echo '</urlset>'; | |
?> | |
<?php | <?php |
include_once('include/common.inc.php'); | include_once('include/common.inc.php'); |
include_header(); | include_header('Webserver and Accessiblity'); |
echo "<table> | echo "<table> |
<tr><th>name</th><th>webserver</th><th>accessiblity errors</th></tr>"; | <tr><th>name</th><th>webserver</th><th>accessiblity errors</th></tr>"; |
$agenciesdb = $server->get_db('disclosr-agencies'); | $agenciesdb = $server->get_db('disclosr-agencies'); |
$docsdb = $server->get_db('disclosr-documents'); | $docsdb = $server->get_db('disclosr-documents'); |
try { | try { |
$rows = $agenciesdb->get_view("app", "all", null, true)->rows; | $rows = $agenciesdb->get_view("app", "all", null, true)->rows; |
if ($rows) { | if ($rows) { |
foreach ($rows as $row) { | foreach ($rows as $row) { |
echo "<tr><td>" . $row->value->name . "</td>"; | echo "<tr><td>" . $row->value->name . "</td>"; |
if (isset($row->value->website)) { | if (isset($row->value->website)) { |
try { | try { |
$website = $docsdb->get(md5($row->value->website)); | $website = $docsdb->get(md5($row->value->website)); |
$serverParts = explode(" ",$website->web_server); | $serverParts = explode(" ",$website->web_server); |
echo "<td>" . $serverParts[0] . "</td>"; | echo "<td>" . $serverParts[0] . "</td>"; |
if (!isset($website->validation)) { | if (!isset($website->validation)) { |
echo "<td>?</td>"; | echo "<td>?</td>"; |
} else { | } else { |
if ($website->validation == "") { | if ($website->validation == "") { |
echo "<td>No error</td>"; | echo "<td>No error</td>"; |
} else { | } else { |
echo "<td><pre>" . str_replace("<", "<", $website->validation) . "</pre></td>"; | echo "<td><pre>" . str_replace("<", "<", $website->validation) . "</pre></td>"; |
} | } |
} | } |
} catch (SetteeRestClientException $e) { | } catch (SetteeRestClientException $e) { |
// setteErrorHandler($e); | // setteErrorHandler($e); |
} | } |
} | } |
echo "</tr>"; | echo "</tr>"; |
} | } |
} | } |
} catch (SetteeRestClientException $e) { | } catch (SetteeRestClientException $e) { |
setteErrorHandler($e); | setteErrorHandler($e); |
} | } |
include_footer(); | include_footer(); |
?> | ?> |