".$layout_name; if ($config["pure"] == 0){ echo lang_string("Full screen mode"); echo " "; echo ""; echo ""; echo ""; } else { echo lang_string("Back to normal mode"); echo " "; echo ""; echo ""; echo ""; } echo ""; echo "
"; $sql="SELECT * FROM tlayout_data WHERE id_layout = $id_layout"; $res=mysql_query($sql); $lines = 0; while ($row = mysql_fetch_array($res)){ $id_agentmodule = $row["id_agente_modulo"]; $pos_x = $row["pos_x"]; $pos_y = $row["pos_y"]; $height = $row["height"]; $width = $row["width"]; $period = $row["period"]; $image = $row["image"]; $type = $row["type"]; $label = $row["label"]; $label_color = $row["label_color"]; $parent_item = $row["parent_item"]; $link_layout = $row["id_layout_linked"]; $no_link_color = $row["no_link_color"]; // Linked to other layout ?? - Only if not module defined if (($link_layout != 0) && ($id_agentmodule == 0)) { $status = return_status_layout ($link_layout); } else { $id_agent = give_db_value ("id_agente", "tagente_estado", "id_agente_modulo", $id_agentmodule); $id_agent_module_parent = give_db_value ("id_agente_modulo", "tlayout_data", "id", $parent_item); // Item value $status = return_status_agent_module ($id_agentmodule); if ($no_link_color == 1) $status_parent = -1; else $status_parent = return_status_agent_module ($id_agent_module_parent); } // STATIC IMAGE (type = 0) // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ if ($type == 0) { // Link image //index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=1 if (($link_layout == "") OR ($link_layout == 0)){ $link_string = ""; } else { $link_string = ""; } // Draw image echo "
"; echo $link_string; if ($status == 0){ if (($width != "") AND ($width != 0)) echo ""; else echo ""; } else { if (($width != "") AND ($width != 0)) echo ""; else echo ""; } echo ""; // Draw label echo "
"; echo $label; echo "
"; } // SINGLE GRAPH (type = 1) // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ if ($type == 1) { // single graph if (($link_layout == "") OR ($link_layout == 0)){ $link_string = ""; } else { $link_string = ""; } // Draw image echo "
"; echo $link_string; echo ""; echo ""; echo "
"; } if ($type == 2){ $lines_data[$lines][0]=$pos_x; $lines_data[$lines][1]=$pos_y; $lines_data[$lines][2]=$width; $lines_data[$lines][3]=$height; $lines_data[$lines][4]="#".$label_color; $lines++; } // Get parent relationship - Create line data // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ if (($parent_item != "") AND ($parent_item != 0)){ $ppos_x = return_coordinate_X_layoutdata($parent_item); $ppos_y = return_coordinate_Y_layoutdata($parent_item); $lines_data[$lines][0]=$pos_x+15; $lines_data[$lines][1]=$pos_y+15; $lines_data[$lines][2]=$ppos_x+15; $lines_data[$lines][3]=$ppos_y+15; $lines_data[$lines][4]=$status_parent; $lines++; } } // Javascript code generated on realtime to draw lines // http://www.walterzorn.com/jsgraphics/jsgraphics_e.htm#docu echo '"; // End main div echo "
"; echo "
"; echo "
"; echo "
"; echo ""; echo "
"; echo $lang_label["auto_refresh_time"]; echo ""; echo ""; echo ""; echo ""; echo "
"; echo "
";