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 (18 years, 11 months 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.

<html>
<head>
  <meta http-equiv="content-type" content="text/html;charset=utf-8">
  <link rel="stylesheet" type="text/css" href="/manage_page_style.css">
  <link rel="stylesheet" type="text/css" href="mapstyle_css">
<script type="text/javascript" tal:attributes="src python:here.REQUEST['URL2']+'/baselib_js'"></script>
<script type="text/javascript" tal:attributes="src python:here.REQUEST['URL2']+'/hl_lib_js'"></script>
<script type="text/javascript" tal:attributes="src python:here.REQUEST['URL2']+'/hl_add_js'"></script>
<script type="text/javascript" tal:content="structure python:here.createJSAreas(here.getMapAreas())"/>
</head>
<body onload="mapadd_init()">
<!-- ZOPE management tabs -->
<h2 tal:define="manage_tabs_message options/manage_tabs_message | nothing"
    tal:replace="structure here/manage_tabs">Tabs</h2>
<!-- end of ZOPE management tabs -->
    <form name="form" action="ECHO_addCoords">
      <table>
	<tr>
	  <th>label</th><th>coordinates</th><th>angle</th><th>area</th><th>arrow</th><th>text</th><th>permanent</th>
	</tr>
	<tr tal:repeat="area here/getMapAreas">
	  <td><a tal:replace="structure python:here.createMapLink(area)"/></td>
	  <!-- <td><span tal:content="area/getId"/></td> -->
	  <td><input type="text" tal:attributes="name python:'coords.'+area.getId(); value area/getCoordString" size="30"/></td>
	  <td><input type="text" tal:attributes="name python:'angle.'+area.getId(); value area/getAngle" size="3"/></td>
	  <td><input type="radio" value="area" tal:attributes="name python:'type.'+area.getId(); checked area/isTypeArea"/></td>
	  <td><input type="radio" value="arrow" tal:attributes="name python:'type.'+area.getId(); checked area/isTypeArrow"/></td>
	  <td><input type="radio" value="text" tal:attributes="name python:'type.'+area.getId(); checked area/isTypeText"/></td>
	  <td><input type="checkbox" value="permanent" tal:attributes="name python:'permanent.'+area.getId(); checked area/isPermanent"/></td>
	  <td><input type="submit" value="change"/></td>
	  <td><input type="submit" tal:attributes="name python:'del.'+area.getId()" value="delete"/></td>
	</tr>
	<tr>
	  <td></td>
	  <!-- <td></td> -->
	  <td><input type="text" id="coordstr" name="coords.new" size="30"/></td>
	  <td><input type="text" id="angle" name="angle.new" size="3"/></td>
	  <td><input type="radio" name="type.new" value="area" checked /></td>
	  <td><input type="radio" name="type.new" value="arrow" /></td>
	  <td><input type="radio" name="type.new" value="text" /></td>
	  <td><input type="checkbox" name="permanent.new" value="True" /></td>
	  <td><input type="submit" name="add" value="add"/></td>
	</tr>
      </table>
    </form>
<div tal:replace="structure here/createParentMapImg"/>
<!-- auxiliary image block -->
<tal:block tal:repeat="ob here/getMapAreas">
<a tal:replace="structure python:here.createMapAux(ob)"/>
</tal:block>
<!-- end of auxiliary image block -->
<div id="newarea" style="position:absolute; top:-100px; left:-100px;"> </div>

</body>
</html>

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