mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
New maps in progress... (generation y visualization mode)
This commit is contained in:
parent
f0afd427bb
commit
edd6a99ebb
@ -103,6 +103,21 @@ function maps_is_networkmap($id) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function maps_is_visualmap($id) {
|
||||||
|
$return = db_get_value('type', 'tmap', 'id', $id);
|
||||||
|
|
||||||
|
if ($return === false) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($return == MAP_TYPE_VISUALMAP) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function maps_show($id) {
|
function maps_show($id) {
|
||||||
if (maps_is_networkmap($id)) {
|
if (maps_is_networkmap($id)) {
|
||||||
require_once("include/functions_networkmaps.php");
|
require_once("include/functions_networkmaps.php");
|
||||||
|
@ -22,6 +22,14 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
function networkmaps_show($id) {
|
function networkmaps_show($id) {
|
||||||
|
$networkmap_items = db_get_all_rows_sql("SELECT * FROM titem WHERE id_map = " . $id);
|
||||||
|
$networkmap = db_get_all_rows_sql("SELECT * FROM tmap WHERE id = " . $id);
|
||||||
|
|
||||||
|
if ($networkmap === false) {
|
||||||
|
ui_print_error_message(__('Not found networkmap'));
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
?>
|
?>
|
Loading…
x
Reference in New Issue
Block a user