Commit Graph

27 Commits

Author SHA1 Message Date
mdtrooper 7db3cb7f1c 2010-02-24 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_gis.php: fix the refresh time in function
	"activateAjaxRefresh", in functions "activateAjaxRefresh" and "addPoint"
	 add status agent.
	 
	* include/javascript/openlayers.pandora.js: add function "changeShowStatus"
	for change show icons by status, in function "changeRefreshTime" add reset
	timer, in function "js_addPoint" and "js_addPointExtent" add the state and
	hide if it's necesary.
	
	* operation/gis_maps/render_view.php: change the style of page, and add
	controls for hide agent icons by state.

	* operation/gis_maps/ajax.php: add the option "get_map_connection_data" in
	switch for get map connection data.

	* godmode/gis_maps/configure_gis_map.php: start to develop the preview map
	in editor.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2412 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-24 11:49:03 +00:00
mdtrooper 132ab90b41 2010-02-23 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_gis.php: in function "activateAjaxRefresh" add the
	posibility to change refresh time in execution time.
	
	* include/functions_ui.php: add in the "print_page_header" the feature to
	pass a array of buttons/items.

	* include/javascript/openlayers.pandora.js: add the function
	"changeRefreshTime" for change the refresh time.

	* operation/gis_maps/render_view.php: change the top of page for to
	adapt the new header, and add refresh control.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2408 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-23 16:36:24 +00:00
mdtrooper 78a81f5234 2010-02-22 Sancho Lerena <slerena@artica.es>
* include/functions_gis.php: change the function "activateAjaxRefresh" for
	refresh also the agent maps, and in the function "getAgentMap" show icon
	with status the agent maps.
	* operation/gis_maps/ajax.php: in the switch option "get_new_positions"
	return GIS data for agent maps, in the "point_agent_info" and
	"point_path_info" option change for new tables.
	* operation/agentes/gis_view.php: add the ajax moving agent and click
	bubble info.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2405 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-23 12:12:41 +00:00
mdtrooper aa95edc888 2010-02-22 Miguel de Dios <miguel.dedios@artica.es>
* images/groups_small/*.ok.png, images/groups_small/*.default.png,
	images/groups_small/*.bad.png, images/groups_small/*.warning.png: add the
	group images for diferent status, it's used in the GIS map.
	
	* godmode/agentes/agent_manager.php: change for new form to name the icons
	with status.
	
	* include/functions_gis.php: clean source code in function "addPoint",
	rewrite the function "get_agent_icon_map" for used icons with state for
	group, change some parts of source code in the function "getArrayListIcons"
	for new form to name the icons.
	
	* images/gis_map/icons/*.png: change some icons.
	
	* operation/agentes/estado_generalagente.php: show message when there isn't
	the GIS data.
	
	* operation/gis_maps/ajax.php: change the source code and db query to
	return the GIS data for return default position for agent without GIS data.
	
	* operation/gis_maps/render_view.php: show agents without GIS data.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2396 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-22 16:13:12 +00:00
mdtrooper 72bc9ecb30 2010-02-19 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_gis.php: adapt to new tables.
	
	* include/javascript/openlayers.pandora.js
	
	* operation/gis_maps/render_view.php: adapt to new tables.
	
	* operation/gis_maps/ajax.php: adapt to new tables.
	
	* operation/agentes/gis_view.php: clean source code.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2386 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-19 12:26:54 +00:00
mdtrooper baf9fc4f85 2010-02-18 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_gis.php: check in the function "addPath" if the agent
	haven't history data. And clean source code.
	
	* operation/agentes/gis_view.php: change to use new tables, and show
	messages when the agent haven't data GIS.
	
	* godmode/agentes/agent_conf_gis.php: change the message for agent without
	data GIS.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2376 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-18 16:54:24 +00:00
mdtrooper 3a7cfb3b3f 2010-02-18 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_html.php: hightlight that the parameter $script in
	function print_input_text_extended isn't in use.
	
	* include/functions_gis.php: create function "getDataLastPositionAgent"
	that return row of position and other data for id agent.
	
	* godmode/agentes/agent_conf_gis.php: add the validate fields and adapt
	to new tables.
	
	* godmode/agentes/configurar_agente.php: adapt to new tables.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2375 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-18 13:29:36 +00:00
mdtrooper 2e1410f8dd 2010-02-17 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_gis.php: add the parameter id layer in the function
	"makeLayer" for add the id layer (id of db) in the layer. Fill in the
	sourcecode  in the function "activateAjaxRefresh" that now show new
	agents in the map in real time and add make changes in this function.
	 
	* operation/gis_maps/render_view.php: use the new parameter in the call
	of function "makeLayer".

	* operation/gis_maps/ajax.php: add code to return new positions (and name
	and icon) when the ask the positions in "activateAjaxRefresh".



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2373 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-17 17:27:25 +00:00
mdtrooper 23af6b04ff 2010-02-15 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_gis.php: add the function "getMapConnection" get the row
	of connection for id connection, "updateMap" function update the all data in
	the DB, "validateMapData" function validate the map data previous update or
	save in the database and if it's invalid, write the css code for set colors
	and other styles, "getMapData" return all data about map for id map,
	"addConectionMapsInForm" tranlate the map connection array to html code and
	javascript for to write in the form when edit, "addLayerList" translate the
	layer array to html code and javascript for write in the form when edit.  
	
	* operation/gis_maps/render_view.php: fix the link to edit map.
	
	* godmode/gis_maps/configure_gis_map.php: change many parts of the source
	code for add the method the edit in the form and add more usability
	to form.
	
	* godmode/gis_maps/index.php: fix the links to edit and view map.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2370 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-16 15:28:07 +00:00
mdtrooper a5507b73f2 2010-02-15 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_gis.php: in the function "saveMap" set the first map
	as default.
	
	* godmode/setup/gis_step_2.php: minor stetic change the link of refresh by
	button.

	* godmode/gis_maps/index.php: add many alerts in the change the default map
	and delete any map. And fix the delete map parameter.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2359 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-15 11:00:51 +00:00
mdtrooper ea3ba41b93 2010-02-11 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_gis.php: clean source code, delete javascript debug
	info messages for firebug.

	* godmode/agentes/module_manager_editor_network.php,
	godmode/agentes/configurar_agente.php: add support for SMNP ver3 in the
	forms to add or edit "Network module".


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2352 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-11 18:44:12 +00:00
mdtrooper 3e74b2a983 2010-02-10 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_gis.php: in function "saveMap" now save the default
	connection.
	
	* operation/gis_maps/ajax.php: add option "get_data_conexion" for get by
	ajax the data connection when pass id_connection.
	
	* godmode/gis_maps/configure_gis_map.php: now you can set the default
	connection and too load the data by default for each connection.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2344 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-10 18:27:24 +00:00
mdtrooper 550c6ea3f8 2010-02-10 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_gis.php: add in the function "getAgentMap" a new
	parameter "centerInAgent" (default true) for center the map in the last
	position of agent.
	
	* operation/agentes/ver_agente.php: clean source code.
	
	* godmode/agentes/agent_conf_gis.php: add page that you can change the
	position of agent.
	
	* godmode/agentes/configurar_agente.php: add the code to update the changed
	coords of agent, and show the tab to access the agent_conf_gis.php.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2337 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-10 13:08:33 +00:00
mdtrooper 00774405de 2010-02-10 Miguel de Dios <miguel.dedios@artica.es>
* include/styles/pandora.css: add lost style for disable button.
	
	* include/functions_gis.php: fix the function "getAgentMap" now back run.

	* include/functions_ui.php: clean source code.
	
	* operation/agentes/ver_agente.php: add require javascript
	openlayers.pandora.js.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2336 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-10 10:16:51 +00:00
mdtrooper e9cfd7729f 2010-02-09 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_gis.php: clean source code, and extract the javascript
	code to openlayers.pandora.js.
	
	* include/javascript/openlayers.pandora.js: new file, have a source code of
	gis in javascript.
	
	* operation/gis_maps/render_view.php, operation/gis_maps/index.php,
	operation/agentes/gis_view.php, godmode/agentes/agent_manager.php,
	godmode/setup/gis.php, godmode/gis_maps/configure_gis_map.php,
	godmode/gis_maps/index.php: add the require javascript to 
	"openlayers.pandora.js".

	* godmode/setup/gis_step_2.php: add the source code to improve usability,
	now can set with the mouse points of center and default position for agents
	without gis data.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2335 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-09 17:06:25 +00:00
mdtrooper 3246cd748a 2010-02-04 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_gis.php: add javascript function "isInt" for test int
	values, rename some javascript functions for to avoid typing mistakes with
	similar name functions in PHP. Add the function "activateAjaxRefresh" and
	"getArrayListIcons".
	
	* operation/gis_maps/ajax.php: add new operation "get_new_positions" for
	ajax refresh the points.
	
	* operation/gis_maps/render_view.php: change the source code for to use new
	functions as "activateAjaxRefresh" for example.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2330 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-04 10:34:30 +00:00
Pablo de la Concepción Sanz efe71d5c71 2010-01-29 Pablo de la Concepción <pablo.concepcion@artica.es>
* operation/gis_maps/render_view.php: Fixed call to get_agent_names to
	get the names in the same case as they are in the DB.

	* operation/agentes/gis_view.php: Changed size of the map to be relative

	* include/functions_gis.php: Fixed the call to addPoint in getAgentMap
	to use the new parameters.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2322 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-01-29 15:47:40 +00:00
mdtrooper be35a2a1ee 2010-01-27 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_gis.php: add function "deleteMap" for to delete the map
	and other rows in tables related.
	
	* godmode/gis_maps/index.php: use the "deleteMap" in link of delete map.
	
	* include/functions_db.php: add function "clean_cache" for clean the
	problematic (sometimes) cache.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2317 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-01-28 17:58:30 +00:00
mdtrooper 676532f53c 2010-01-27 Miguel de Dios <miguel.dedios@artica.es>
* operation/gis_maps/ajax.php: clean source code, erased comment lines.
	
	* include/functions_gis.php, godmode/gis_maps/configure_gis_map.php: clean
	source, change the name of saveMap2 to saveMap.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2316 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-01-28 14:44:57 +00:00
Pablo de la Concepción Sanz 010cd0f132 2010-01-27 Pablo de la Concepción <pablo.concepcion@artica.es>
* include/functions_gis.php: Modiffied addPoint and addPointExtent to 
	receive more parmeters so it's possible to use any kind of point.
	Modified comments on saveMap2

	* operation/gis_maps/render_view.php: Used map_id instead if id when 
	the parameter passed in the url is a map id.
	Fixed to work with the new function getMapConf.
	Improved "pure" view. Still some things are hardcoded and needs improvement

	* operation/gis_maps/ajax.php: Modified to suppor calls to get info of 
	different kind of points. Removed hardcoded data.

	* operation/gis_maps/index.php:  Used map_id instead if id when
	the parameter passed in the url is a map id.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2315 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-01-27 19:52:53 +00:00
mdtrooper b36726a02a 2010-01-27 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_gis.php: fix a typing "print_r" in function "getMapConf"
	and fill with code the function saveMap2 and add the commment in format
	phpdoc.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2314 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-01-27 17:17:41 +00:00
Pablo de la Concepción Sanz 002a7b037f 2010-01-27 Pablo de la Concepción <pablo.concepcion@artica.es>
* include/functions_gis.php: Updated getMapConf to work with the new 
	database model;



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2313 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-01-27 16:10:14 +00:00
mdtrooper ded640353b 2010-01-27 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_gis.php: add the prototipe of function "saveMap2" at
	the moment for to develop in next hours or days.
	* include/javascript/jquery.json.js: add json plugin for jquery.
	* godmode/gis_maps/configure_gis_map.php: rewrite all source code, change
	the form and adapt to new gis tables.
	* godmode/gis_maps/index.php: few changes for more correct source code.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2312 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-01-27 15:46:20 +00:00
Pablo de la Concepción Sanz 99c4675455 2010-01-27 Pablo de la Concepción <pablo.concepcion@artica.es>
* include/functions_gis.php: Added more Openlayers Controls to the case
	on the printMap function, fixed typo manual_placemen -> manual_placement,
	added gectConectionConf and getAgentMap functions (last one still with 
	some hardcoded values). Function get_agent_last_coords now also returns the
	agent name.

	* operation/agentes/estado_generalagente.php: Added last position 
	information, and timezone offset if is not 0

	* operation/agentes/gis_view.php: Added map with the last position of the
	agent and table with the previous positions of the agent.

	* operation/agentes/ver_agente.php: Used agent icon to show status 
	 if icon_path is defined.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2310 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-01-27 12:50:28 +00:00
mdtrooper 4606f51031 2010-01-26 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_gis.php: add functions "saveMapConnection" and
	"deleteMapConnection".

	* godmode/setup/gis_step_2.php, godmode/setup/gis.php: add the forms to
	make, edit and delete map connections.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2308 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-01-26 10:13:44 +00:00
mdtrooper 3b68fd57fe 2010-01-18 Miguel de Dios <miguel.dedios@artica.es>
* include/styles/menu.css, godmode/gis_maps, godmode/menu.php,
	godmode/gis_maps/configure_gis_map.php, godmode/gis_maps/index.php: add the
	page to manipulate the GIS maps and add the page to create (and edit not at
	the moment) the GIS maps.
	* operation/gis_maps/render_view.php: small changes in the develop of
	render, add events and popups.
	* include/functions_gis.php: add code for respond to events, add function
	"saveMap" to save a map.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2294 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-01-21 17:08:58 +00:00
mdtrooper 1a216ccec3 2010-01-18 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_gis.php, operation/gis_maps/ajax.php: code for GIS maps,
	now show correctly the path points and start to show the popup for this
	points.
	* include/javascript/OpenLayers/lib/Gears/gears_init.js,
	include/javascript/OpenLayers/lib/OpenLayers/Format/ArcXML/Features.js:
	some files of OpenLayers that I erased in the previous clean.
	* images/spinner.gif: image for ajax loading.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2287 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-01-19 15:49:34 +00:00