dispaly中各条记录间加一条横线分割
程序员文章站
2022-03-31 23:39:36
...
public class SysParaWrapper extends Decorator{
public String getEdit(){
SysInfoForm sf=(SysInfoForm)getCurrentRowObject();
String name=sf.getParaName();
String value=sf.getParaValue();
String dsc=sf.getParaDsc();
return "<a href=\""+sf.getContextPath()+"/sysInfoProc.do?method=findSysPara¶Name=" + name+"¶Value=" + value+"¶Dsc=" + dsc+"\"><img title="+"\"编辑"
+"\"src="+"\"../images/edit.jpg"+"\"/>"+ "</a>";
}
public String getDel()
{
SysInfoForm sf=(SysInfoForm)getCurrentRowObject();
String name=sf.getParaName();
String value=sf.getParaValue();
String dsc=sf.getParaDsc();
return "<a href=\""+sf.getContextPath()+"/sysInfoProc.do?method=delSysPara¶Name=" + name+"¶Value=" + value+"¶Dsc=" + dsc+"\"><img title="+"\"删除"
+"\"src="+"\"../images/delete.jpg"+"\"/>"+ "</a></td></tr><tr ><td colspan=\"9\" bgcolor="+"\"#FF6600"+"\""+" height=\""+"1\""+">";
}
}
public String getEdit(){
SysInfoForm sf=(SysInfoForm)getCurrentRowObject();
String name=sf.getParaName();
String value=sf.getParaValue();
String dsc=sf.getParaDsc();
return "<a href=\""+sf.getContextPath()+"/sysInfoProc.do?method=findSysPara¶Name=" + name+"¶Value=" + value+"¶Dsc=" + dsc+"\"><img title="+"\"编辑"
+"\"src="+"\"../images/edit.jpg"+"\"/>"+ "</a>";
}
public String getDel()
{
SysInfoForm sf=(SysInfoForm)getCurrentRowObject();
String name=sf.getParaName();
String value=sf.getParaValue();
String dsc=sf.getParaDsc();
return "<a href=\""+sf.getContextPath()+"/sysInfoProc.do?method=delSysPara¶Name=" + name+"¶Value=" + value+"¶Dsc=" + dsc+"\"><img title="+"\"删除"
+"\"src="+"\"../images/delete.jpg"+"\"/>"+ "</a></td></tr><tr ><td colspan=\"9\" bgcolor="+"\"#FF6600"+"\""+" height=\""+"1\""+">";
}
}