主题 : 怎样获取投*项上传的图片 |
级别: 童生
![]() |
1# 发表于:2019-06-15 15:00:06 IP:117.162.*.*
|
||||
---|---|---|---|---|---|
级别: 论坛管理员
![]() |
2# 发表于:2019-06-15 15:03:31 IP:117.129.*.*
您好 您的这个单选框是怎么做的 是在栏目模型内添加的字段还是用别的方式制作的?
|
||
---|---|---|---|
级别: 童生
![]() |
3# 发表于:2019-06-15 15:16:43 IP:117.162.*.*
回复第2楼 这个是登录后台中‘维护“里面的”投票管理“添加的。
![]() |
||
---|---|---|---|
级别: 童生
![]() |
5# 发表于:2019-06-15 15:26:38 IP:117.162.*.*
回复第3楼 这是vote_input.html中的代码,我想实现显示上传的图片,该怎么写呢?
<table> [#list vote.subtopics as subTopic] <tr> <td height="30" colspan="2" align="left">${subTopic_index+1}、${subTopic.title?html}</td> </tr> [#if subTopic.isRadio] <tr> <td height="30" colspan="2" align="left"> [#list subTopic.voteItems as item] <input type="radio" name="itemIds${subTopic.id}" value="${item.id}"/>${item.title?html} <img src="${item.id.pictures.imgPath}"> [/#list] </td> </tr> [/#if] [#if subTopic.isMulti] <tr> <td height="30" colspan="2" align="left"> [#list subTopic.voteItems as item] <input type="checkbox" name="itemIds${subTopic.id}" value="${item.id}" id="${item.id}"/>${item.title?html} [/#list] </td> </tr> [/#if] [#if subTopic.isText] <tr> <td height="30" colspan="2" align="left"> <input name="reply" type="text"/> </td> </tr> [/#if] <input name=subIds type="hidden" value="${subTopic.id}"/> [/#list] </table> |
||
---|---|---|---|
级别: 童生
![]() |
6# 发表于:2019-06-15 15:30:32 IP:117.162.*.*
回复第4楼 这个是找别的公司做的学校云网站,我还不知道怎样查看版本。
|
||
---|---|---|---|
级别: 论坛管理员
![]() |
7# 发表于:2019-06-15 15:35:29 IP:117.129.*.*
[#list tag_bean.subtopics as subTopic]
<div class="item"> <p>${subTopic_index+1}、${subTopic.title?html}</p> <div><img src="${subTopic.picture!}"></img> 这个是调用图片的代码 您看下您对应的模板中有没有 |
||
---|---|---|---|
级别: 童生
![]() |
8# 发表于:2019-06-15 15:43:13 IP:117.162.*.*
回复第7楼 我的模板中没有涉及到调用图片的代码,我试试看。
|
||
---|---|---|---|
级别: 童生
![]() |
10# 发表于:2019-06-15 15:51:12 IP:117.162.*.*
回复第7楼 谢谢,可以了!
|
||
---|---|---|---|