主题 : 怎样获取投*项上传的图片
级别: 童生
UID: 130098
积分:30 加为好友
威望: 6 精华: 0
主题:6 回复:25
注册时间:2019-06-15
在线时长:0
1#   发表于:2019-06-15 15:00:06  IP:117.162.*.*
在后台管理中自定义单选的投票项,各投票项也上传了相应的图片。在投票页怎样取得上传的图片呢?谢谢!
级别: 论坛管理员
UID: 122721
积分:57884 加为好友
威望: 2 精华: 1
主题:5 回复:50085
注册时间:2018-05-07
在线时长:0
2#   发表于:2019-06-15 15:03:31  IP:117.129.*.*
您好  您的这个单选框是怎么做的   是在栏目模型内添加的字段还是用别的方式制作的?
每天告诉自己一次,“我真的很不错”。
级别: 童生
UID: 130098
积分:30 加为好友
威望: 6 精华: 0
主题:6 回复:25
注册时间:2019-06-15
在线时长:0
3#   发表于:2019-06-15 15:16:43  IP:117.162.*.*
回复第2楼  这个是登录后台中‘维护“里面的”投票管理“添加的。
级别: 论坛管理员
UID: 122721
积分:57884 加为好友
威望: 2 精华: 1
主题:5 回复:50085
注册时间:2018-05-07
在线时长:0
4#   发表于:2019-06-15 15:18:26  IP:117.129.*.*
您是v8的版本吗?
每天告诉自己一次,“我真的很不错”。
级别: 童生
UID: 130098
积分:30 加为好友
威望: 6 精华: 0
主题:6 回复:25
注册时间:2019-06-15
在线时长:0
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>
级别: 童生
UID: 130098
积分:30 加为好友
威望: 6 精华: 0
主题:6 回复:25
注册时间:2019-06-15
在线时长:0
6#   发表于:2019-06-15 15:30:32  IP:117.162.*.*
回复第4楼   这个是找别的公司做的学校云网站,我还不知道怎样查看版本。
级别: 论坛管理员
UID: 122721
积分:57884 加为好友
威望: 2 精华: 1
主题:5 回复:50085
注册时间:2018-05-07
在线时长:0
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>
这个是调用图片的代码   您看下您对应的模板中有没有
每天告诉自己一次,“我真的很不错”。
级别: 童生
UID: 130098
积分:30 加为好友
威望: 6 精华: 0
主题:6 回复:25
注册时间:2019-06-15
在线时长:0
8#   发表于:2019-06-15 15:43:13  IP:117.162.*.*
回复第7楼  我的模板中没有涉及到调用图片的代码,我试试看。
级别: 论坛管理员
UID: 122721
积分:57884 加为好友
威望: 2 精华: 1
主题:5 回复:50085
注册时间:2018-05-07
在线时长:0
9#   发表于:2019-06-15 15:44:13  IP:117.129.*.*
好的   您可以试下
每天告诉自己一次,“我真的很不错”。
级别: 童生
UID: 130098
积分:30 加为好友
威望: 6 精华: 0
主题:6 回复:25
注册时间:2019-06-15
在线时长:0
10#   发表于:2019-06-15 15:51:12  IP:117.162.*.*
回复第7楼  谢谢,可以了!
1 2 > >| 共2页