File:  [Repository] / ECHO_content / zpt / ECHO_draw.zpt
Revision 1.11: download - view: text, annotated - select for diffs - revision graph
Mon Jun 13 10:35:04 2005 UTC (19 years ago) by casties
Branches: MAIN
CVS tags: cleanup, Root_cleanup, HEAD
new options map_force_permanent and map_force_type in REQUEST to control rendering of maps.
fixed bug in echo_draw.

    1: <html>
    2: <head>
    3:   <meta http-equiv="content-type" content="text/html;charset=utf-8">
    4:   <link rel="stylesheet" type="text/css" href="/manage_page_style.css">
    5:   <link rel="stylesheet" type="text/css" href="mapstyle_css">
    6: <script type="text/javascript" tal:attributes="src python:here.REQUEST['URL2']+'/baselib_js'"></script>
    7: <script type="text/javascript" tal:attributes="src python:here.REQUEST['URL2']+'/hl_lib_js'"></script>
    8: <script type="text/javascript" tal:attributes="src python:here.REQUEST['URL2']+'/hl_add_js'"></script>
    9: <script type="text/javascript" tal:content="structure python:here.createJSAreas(here.getMapAreas())"/>
   10: </head>
   11: <body onload="mapadd_init()">
   12: <!-- ZOPE management tabs -->
   13: <h2 tal:define="manage_tabs_message options/manage_tabs_message | nothing"
   14:     tal:replace="structure here/manage_tabs">Tabs</h2>
   15: <!-- end of ZOPE management tabs -->
   16:     <form name="form" action="ECHO_addCoords">
   17:       <table>
   18: 	<tr>
   19: 	  <th>label</th><th>coordinates</th><th>angle</th><th>area</th><th>arrow</th><th>text</th><th>permanent</th>
   20: 	</tr>
   21: 	<tr tal:repeat="area here/getMapAreas">
   22: 	  <td><a tal:replace="structure python:here.createMapLink(area)"/></td>
   23: 	  <!-- <td><span tal:content="area/getId"/></td> -->
   24: 	  <td><input type="text" tal:attributes="name python:'coords.'+area.getId(); value area/getCoordString" size="30"/></td>
   25: 	  <td><input type="text" tal:attributes="name python:'angle.'+area.getId(); value area/getAngle" size="3"/></td>
   26: 	  <td><input type="radio" value="area" tal:attributes="name python:'type.'+area.getId(); checked area/isTypeArea"/></td>
   27: 	  <td><input type="radio" value="arrow" tal:attributes="name python:'type.'+area.getId(); checked area/isTypeArrow"/></td>
   28: 	  <td><input type="radio" value="text" tal:attributes="name python:'type.'+area.getId(); checked area/isTypeText"/></td>
   29: 	  <td><input type="checkbox" value="permanent" tal:attributes="name python:'permanent.'+area.getId(); checked area/isPermanent"/></td>
   30: 	  <td><input type="submit" value="change"/></td>
   31: 	  <td><input type="submit" tal:attributes="name python:'del.'+area.getId()" value="delete"/></td>
   32: 	</tr>
   33: 	<tr>
   34: 	  <td></td>
   35: 	  <!-- <td></td> -->
   36: 	  <td><input type="text" id="coordstr" name="coords.new" size="30"/></td>
   37: 	  <td><input type="text" id="angle" name="angle.new" size="3"/></td>
   38: 	  <td><input type="radio" name="type.new" value="area" checked /></td>
   39: 	  <td><input type="radio" name="type.new" value="arrow" /></td>
   40: 	  <td><input type="radio" name="type.new" value="text" /></td>
   41: 	  <td><input type="checkbox" name="permanent.new" value="True" /></td>
   42: 	  <td><input type="submit" name="add" value="add"/></td>
   43: 	</tr>
   44:       </table>
   45:     </form>
   46: <div tal:replace="structure here/createParentMapImg"/>
   47: <!-- auxiliary image block -->
   48: <tal:block tal:repeat="ob here/getMapAreas">
   49: <a tal:replace="structure python:here.createMapAux(ob)"/>
   50: </tal:block>
   51: <!-- end of auxiliary image block -->
   52: <div id="newarea" style="position:absolute; top:-100px; left:-100px;"> </div>
   53: 
   54: </body>
   55: </html>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>