<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v =
"urn:schemas-microsoft-com:vml" xmlns:o =
"urn:schemas-microsoft-com:office:office" xmlns:w =
"urn:schemas-microsoft-com:office:word"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16608" name=GENERATOR>
<STYLE>@page Section1 {size: 595.3pt 841.9pt; margin: 70.85pt 2.0cm 2.0cm 2.0cm; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.StileMessaggioDiPostaElettronica17 {
        COLOR: windowtext; FONT-FAMILY: Arial; mso-style-type: personal-compose
}
DIV.Section1 {
        page: Section1
}
</STYLE>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></HEAD>
<BODY lang=IT vLink=purple link=blue bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi Giovanni,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>We have implemented a solution for what you are
trying to do. When you select the layer it displays the information and then you
can click a button to add aditional information to it, extending the metadata
outside of the mapfile:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>First you have to do an icon for the button and put
it in the edit/htdocs/gfx (in our case it was named
'edit_series.gif'</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Then in the dhtmlEdit.js file in the function
Map.prototype.editTableAddRow you have to replace the last part by the
following:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> // rencenter on feature<BR> if
(aFeature.operation != 'insert') {<BR>
<BR> //Recenter<BR> var image = createInput(td,
'edit_recenter', '', 'image');<BR> image.src =
xGetElementById("edit_recenter").src;<BR> image.border =
"0";<BR> image.href = "#";<BR> image.onclick
= function() {<BR> var id_recenter_ids =
xGetElementById('id_recenter_ids');<BR> if
(id_recenter_ids == null)<BR> var
input = createInput(myform, 'id_recenter_ids', aFeature.id,
'hidden');<BR>
else<BR> id_recenter_ids.value =
aFeature.id;<BR>
<BR> var id_recenter_layer =
xGetElementById('id_recenter_layer');<BR> if
(id_recenter_layer == null)<BR> var
input = createInput(myform, 'id_recenter_layer', myform.edit_layer.value,
'hidden');<BR>
else<BR> id_recenter_layer.value =
myform.edit_layer.value;<BR>
doSubmit();<BR> }<BR> <BR> //xAppendChild(td,
image);<BR> xAppendChild(row, td);<BR> <BR> var td =
xCreateElement("td");<BR> <BR> //Editar Serie<BR> var image2 =
createInput(td, 'edit_series', '', 'image');<BR> image2.src =
xGetElementById("edit_series").src;<BR> image2.border =
"0";<BR> image2.href = "#";<BR>
image2.onclick = function(){<BR> window.open ("<A
href='http://localhost/cartoweb3/htdocs/agroGeo/talhao.php?id="+aFeature.id,"","width=680,height=500,resizable=1,scrollbars=1'>http://localhost/cartoweb3/htdocs/agroGeo/talhao.php?id="+aFeature.id,"","width=680,height=500,resizable=1,scrollbars=1</A>");
<BR> }<BR> //xAppendChild(td, image2);<BR> }<BR>
<BR> xAppendChild(row, td);<BR> xAppendChild(tbody,
row);</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Hope it helps,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Regards,</FONT></DIV>
<DIV><FONT face=Arial size=2>Albert</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=g.virdis@riteco.it href="mailto:g.virdis@riteco.it">Giovanni
Virdis</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=cartoweb-users@lists.maptools.org
href="mailto:cartoweb-users@lists.maptools.org">cartoweb-users@lists.maptools.org</A>
; <A title=cartoweb-dev@lists.maptools.org
href="mailto:cartoweb-dev@lists.maptools.org">cartoweb-dev@lists.maptools.org</A>
; <A title=Cartoweb-users-request@lists.maptools.org
href="mailto:Cartoweb-users-request@lists.maptools.org">Cartoweb-users-request@lists.maptools.org</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, May 28, 2008 8:23
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [Cartoweb-users] Edit
layer</DIV>
<DIV><BR></DIV>
<DIV class=Section1>
<P class=MsoNormal><FONT face=Arial size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">If is possible i want create a
popup menu on the selected layer to edit the layer and show a toolbar to
manage the object in the map <o:p></o:p></SPAN></FONT></P></DIV>
<P>
<HR>
<P></P>_______________________________________________<BR>Cartoweb-users
mailing list<BR><A
href="mailto:Cartoweb-users@lists.maptools.org">Cartoweb-users@lists.maptools.org</A><BR><A
href="http://lists.maptools.org/mailman/listinfo/cartoweb-users">http://lists.maptools.org/mailman/listinfo/cartoweb-users</A><BR></BLOCKQUOTE></BODY></HTML>