Show
Ignore:
Timestamp:
11/08/11 10:09:23 (19 months ago)
Author:
edent
Message:

map tabs

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • ossiedev/branches/jsnyder/trunk/tools/cornetApps/templates/HtmlPages/map.html

    r10914 r10936  
    11{% ifequal floor "1" %} 
    22        <img style="z-index:-1; top: 0px; left: 0px;" src="{{STATIC_URL}}floor1_small_nonodes.jpg"/> 
    3                  
    43        {% for node in floor_list.0 %} 
    5                 {% for node_top, node_left in node_position %} 
     4                {% for node_top, node_left in node_position_1 %} 
    65                {% if node and forloop.counter0 == forloop.parentloop.counter0 %} 
    76                        <a id="node" href="#"><img width="20" style="position: absolute; top: {{node_top}}px; left: {{node_left}}px; z-index: 3;" src="{{STATIC_URL}}green_ball.gif"/></a> 
     
    1312                {% endfor %} 
    1413        {% endfor %} 
    15                                  
    16 {% else %} 
    17         <p> Did not return floor number </p> 
    1814{% endifequal %} 
     15{% ifequal floor "2" %} 
     16        <img style="z-index:-1; top: 0px; left: 0px;" src="{{STATIC_URL}}floor2_small_nonodes.jpg"/> 
     17        {% for node in floor_list.1 %} 
     18                {% for node_top, node_left in node_position_2 %} 
     19                {% if node and forloop.counter0 == forloop.parentloop.counter0 %} 
     20                        <a id="node" href="#"><img width="20" style="position: absolute; top: {{node_top}}px; left: {{node_left}}px; z-index: 3;" src="{{STATIC_URL}}green_ball.gif"/></a> 
     21                {% else %} 
     22                        {% if forloop.counter0 == forloop.parentloop.counter0 %} 
     23                        <img width="20" style="position: absolute; top: {{node_top}}px; left: {{node_left}}px; z-index: 3;" src="{{STATIC_URL}}grey_ball.gif"/> 
     24                        {% endif %} 
     25                {% endif %} 
     26                {% endfor %} 
     27        {% endfor %} 
     28{% endifequal %} 
     29{% ifequal floor "3" %} 
     30        <img style="z-index:-1; top: 0px; left: 0px;" src="{{STATIC_URL}}floor3_small_nonodes.jpg"/> 
     31        {% for node in floor_list.2 %} 
     32                {% for node_top, node_left in node_position_3 %} 
     33                {% if node and forloop.counter0 == forloop.parentloop.counter0 %} 
     34                        <a id="node" href="#"><img width="20" style="position: absolute; top: {{node_top}}px; left: {{node_left}}px; z-index: 3;" src="{{STATIC_URL}}green_ball.gif"/></a> 
     35                {% else %} 
     36                        {% if forloop.counter0 == forloop.parentloop.counter0 %} 
     37                        <img width="20" style="position: absolute; top: {{node_top}}px; left: {{node_left}}px; z-index: 3;" src="{{STATIC_URL}}grey_ball.gif"/> 
     38                        {% endif %} 
     39                {% endif %} 
     40                {% endfor %} 
     41        {% endfor %} 
     42{% endifequal %} 
     43{% ifequal floor "4" %} 
     44        <img style="z-index:-1; top: 0px; left: 0px;" src="{{STATIC_URL}}floor4_small_nonodes.jpg"/> 
     45        {% for node in floor_list.3 %} 
     46                {% for node_top, node_left in node_position_4 %} 
     47                {% if node and forloop.counter0 == forloop.parentloop.counter0 %} 
     48                        <a id="node" href="#"><img width="20" style="position: absolute; top: {{node_top}}px; left: {{node_left}}px; z-index: 3;" src="{{STATIC_URL}}green_ball.gif"/></a> 
     49                {% else %} 
     50                        {% if forloop.counter0 == forloop.parentloop.counter0 %} 
     51                        <img width="20" style="position: absolute; top: {{node_top}}px; left: {{node_left}}px; z-index: 3;" src="{{STATIC_URL}}grey_ball.gif"/> 
     52                        {% endif %} 
     53                {% endif %} 
     54                {% endfor %} 
     55        {% endfor %} 
     56{% endifequal %}