" id="elmelnid_<%= i %>">
onClick="makeVisibleFields(this);" class="checkbox"/>
|
.gif" title="<%= dico.getRefDisp("Lna", "Te1", elnk.getLngmsg()) %>" hspace="3"/>
|
<%
String realText = URLDecoder.decode(elnk.getText(), "UTF-8");
String adaptedText = realText;
if (realText.length() > 40){
adaptedText = realText.substring(0, 40);
}
String urlDecode = URLDecoder.decode(elnk.getUrl(), "UTF-8");
String url = urlDecode;
String webOpID = null;
try {
//following link
webOpID = elnk.getWebop().getWopid();
} catch (Exception e) {
}
if (webOpID != null){
try {
//following link
url = new WebOperationBean(webOpID, context).getWopUrl();
} catch (Exception e) {
// simple link
url = urlDecode;
}
}
if (elnk.getHtmlcontent() != null && elnk.getHtmlcontent().indexOf("img") > 0){
%>
<%= elnk.getHtmlcontent() %>
<%
} else {
%>
<%= adaptedText %>
<%
}
if (elnk.getHtmlcontent() != null && elnk.getHtmlcontent().indexOf("img") > 0){
%>
<%
}
%>
|
<%-- Web operation --%>
<%
String wopid = "";
try {
wopid = elnk.getWebop().getWopid();
} catch (Exception e) {
}
try {
WebOperationBean wopBean = new WebOperationBean(wopid, context);
flRequest.setAttribute("WebOperation", wopBean);
} catch (Exception e) {
flRequest.setAttribute("WebOperation", null);
}
String jsWopNamChangeFn = "doWopNam_" + i + "Change(this)";
String jsWopGrpChangeFn = "doWopRegroupement_" + i + "Change(true)";
String wopInputQuery = StringUtils.isEmpty(url) ? "" : "WopURL=" + Utils.formatToSQL(url);
%>
|
<%-- Event --%>
<%
String evtid = ""; String evtstatus = null;
try {
evtid = elnk.getEvent().getEvtid();
} catch(Exception e) {
}
try {
evtstatus = elnk.getEvent().getStatusid();
} catch(Exception e){
}
try {
EventBean evtBean = new EventBean(evtid, context);
flRequest.setAttribute("Event", evtBean);
} catch (Exception e) {
flRequest.setAttribute("Event", null);
}
String jsEvtChangeFn = "doEvtLabel_" + i + "Change(this)";
%>
|
<%-- Population --%>
<%
String popid = "";
try{
popid = elnk.getPopulation().getPopid();
}catch(Exception e){
}
try {
PopulationBean popBean = new PopulationBean(popid, context);
flRequest.setAttribute("Population", popBean);
} catch (Exception e) {
flRequest.setAttribute("Population", null);
}
String jsPopChangeFn = "doPopName_" + i + "Change(this)";
%>
|
<%}%>
<%}%>