Former-commit-id: 38a9a7c779e6b5552cfe6a66b7689a306e94d9e2
--- /dev/null
+++ b/admin/naa-agift-tree.php
@@ -1,1 +1,2504 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+ <title>Demo of the tree layout in D3.js</title>
+<!-- source: http://blog.pixelingene.com/demos/d3_tree/
+http://javadude.wordpress.com/2012/06/20/d3-js-from-tree-to-cluster-and-radial-projection/
+http://bl.ocks.org/1249394-->
+ <style>
+ g.node {
+ font-family: Verdana, Helvetica;
+ font-size: 12px;
+ font-weight: bold;
+ }
+ circle.node-dot {
+ fill: lightsalmon;
+ stroke: red;
+ stroke-width: 1px;
+ }
+
+ path.link {
+ fill: none;
+ stroke: gray;
+ }
+
+ </style>
+</head>
+<body>
+
+<div id="tree-container"></div>
+ <div id="viz"></div>
+
+<script type="text/javascript" src="../js/jquery-1.6.2.min.js"></script>
+<script type="text/javascript" src="../js/d3.min.js"></script>
+<script type="text/javascript" src="../js/d3.layout.min.js"></script>
+
+<script>
+ /**
+ * Created by JetBrains RubyMine.
+ * User: pavanpodila
+ * Date: 7/17/11
+ * Time: 4:30 PM
+ * To change this template use File | Settings | File Templates.
+ */
+
+var treeData =
+ <?php
+ // $json = file_get_children('naa-agift.json');
+ // $raw = json_decode($json);
+ // echo $json;
+ // print_r($raw);
+ $raw = json_decode('[
+ "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"
+ ],
+ [