Update application/views/admin/reports.php
Merge pull request #510 from sharonrutto/develop

Issue #194
Rewrite of mapping code - ushahidi.js

* NOTE: This is a major change so hold off updating a live deployment
from this branch for the next couple of hours as the changes get tested

* timeline.js (formerly used to rendering the timeline on the landing
page) has been replaced with ushahidi.js. The latter handles all map
rendering functions and also updates to the overlays when the zoom
level changes, report filters (date, category, media type) etc are
applied. The new script exposes an API for registering callback
functions (JavaScript functions) to be called when report filters for
the map are upped. This change effectively decouples the map from the
timeline. Finally.

* Added jqplot libraries for rendering the timeline but a couple of
modifications are still required so that the libraries are loaded only
when a 'show timeline' setting is enabled.

* The view files have been grouped into directories to reflect the
controllers associated with them. Therefore all the view files for the
alerts controller are in "views/alerts", the ones for reports are in
"views/reports/". The same scheme has been used in the view files for
the admin section i.e. "views/admin/manage/layers" for the views used
for managing layers(overlays), "views/admin/reports" for the admin
reports controller etc
Merge branch 'map-rewrite' into develop
Changes left out from previous commit

* Grouping of view files on a per-controller basis
Update ushahidi.js API

* I've cleaned up the registration of callbacks in ushahidi.js. The map
object now has 'register' and 'trigger' methods which allow for event
registration triggering respectively as is the convention with most
JavaScript libraries that have an event model

* The options passed to the Ushahidi.Map constructor now have a
'redrawOnZoom' property that specifies whether the map layers should be
redrawn each time the map zoom changes

* The options parameter for the 'addLayer' method can now take in a
'styleMap' property that specifies the OpenLayers styling to be applied
to the layer being added

* Additional namespace changes for the reports javascript - moved them
to views/reports. The  controllers that reference these files have also
been updated

* Re-applying HTML escaping change added in
32a3a9ac427cc43fd21de44afb22b3d1cd66f7f8 It was overwritten in the last
series of commits that moved around the location of the views

* TODO:  Handle the JS for checkins in main_js more elegantly
Clean up the code for view used by the main page controller

* The indentation and bracketing in the view file was all jerked up
making the code unreadable. For reference on the coding standards used
in the platform, see
http://wiki.ushahidi.com/display/WIKI/Coding+Style+Guide
Overlay KMLs on main map

* The KML listed on the sidebar ("other layers") can now be overlaid on
the map. This feature has always been there though previously, the name
of the layer that was displayed on the layer switcher control was not
the same as the name of the selected layer. This has now been rectified.

* Added an extra event 'delete layer' in ushahidi.js which triggers
removal of a layer from the map. This event is registered as soon as
the map is initialized so that when invoked, the 'trigger' method does
not exit prematurely - what happens when an event is not found in the
callbacks registry. The name of the layer to be deleted is the second
parameter when calling the 'trigger' method

* Coding style updates for the layer method in the json controller
Don't apply feature transformation when there's no geometry

* The preFeatureInsert method assumes that the geometry property of the
feature being transformed has been set. However, this is not always the
case especially for KMLs that have LineString data. For more
information on KMLs, see
https://developers.google.com/kml/documentation/kmlreference
Fix calculation error in the interval used for the timeline data fetch

* The calculation of the internal to use for fetching the timeline data
was yielding different result when different categories are selected
with the time intervals held constant. This was because the 'startTime'
and 'endTime' variables were being reset each time 'refreshTimeline'
was being called.

* Fixing the bracketing for the deafultMarkerStyle() properties

* Added doc tags - copyright and license information to ushahidi.js and
also cleaned up some of the doc tags for the Ushahidi.Map api methods
Apply date and media filters to the timeline

* The timeline now responds to the date filters (start and end dates)
and media filters. Also, the minimum no. of data points required for
the timeline has been set to two - for some reason, jqplot hangs when
there is only one data point

* I have also removed the "play" button (previously used to visualize
the influx of reports into a deployment) primarily because we are no
longer using timeline.js. This feature may however be re-added later on
as a plugin.
Closing #512. Removing bracket causing syntax error
Merge branch 'develop' of github.com:ushahidi/Ushahidi_Web into develop
Closing #513. Referencing views based on recent changes
Preload the background image for the popups

* The background image used for the popups when a feature is selected
is now being preloaded prior the popup being displayed. Closes #187

* Also sneaking in a minor fix for the timeline plot - verify that the
response from the server is non-empty
Closes #514 . Added missing i18n string on admin reports submissio page + getting rid of information evaluation section on members module since it was moved to a plugin
Merge branch 'develop' of github.com:ushahidi/Ushahidi_Web into develop
Fix custom forms visibility - all fields were showing regardless of the selected form #235 #234
Merge branch 'develop' of github.com:ushahidi/Ushahidi_Web into develop
Slightly better tool tip for access_level