Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <%!
- int getImagefileId(String docid){
- int imagefileid = -1;
- if(docid.equals("")){
- return imagefileid;
- }
- RecordSet rs = new RecordSet();
- rs.execute("select imagefileid from docimagefile where docid=" + docid);
- if(rs.next()){
- imagefileid = Util.getIntValue(rs.getString("imagefileid"), 0);
- }
- return imagefileid;
- }
- %>
- <%
- int imagefileid_ = getImagefileId(docid);
- %>
- <img src="/weaver/weaver.file.FileDownload?fileid=<%=imagefileid_%>" width="100%" height="100%">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement