帝国CMS 多值字段修改为 可以上传图片的形式

帝国CMS 多值字段修改为 可以上传图片的形式

浏览次数:
作者: 墨鱼
信息来源: 本站原创
更新日期: 2016-06-27 13:16:28
文章简介

帝国CMS多值字段现已支持图片上传,优化用户体验。提高后台信息管理便捷性,让站长更高效的完成信息录入。

  • 正文开始
  • 相关阅读
  • 推荐作品

我们知道多值字段功能很强大,但不能上传图片确很操蛋,其实改吧改吧就可以了,只是帝国的大大们似乎不太注意这些小细节,只有靠自己来优化了。

<script>
function domvadd_picmore()
{
        var i;
        var str='';
        var oldi=0;
        var j=0;
        var addnum=0;
        addnum=parseInt(document.add.mvaddnum_picmore.value);
        oldi=parseInt(document.add.mveditnum_picmore.value);
        for(i=1;i<=addnum;i++)
        {
                j=i+oldi;
                str=str+'<tr><td align="left"><input type="text" name="picmore_1[]" id="picmore_1_'+j+'" value=""><a onclick="window.open('ecmseditor/FileMain.php?type=1&classid=<?=$classid?>&infoid=<?=$id?>&doing=1&filepass=<?=$filepass?>&sinfo=1&field=picmore_1_'+j+'<?=$ecms_hashur['ehref']?>','','width=700,height=550,scrollbars=yes');" title="选择已上传的图片"><img src="../data/images/changeimg.gif" border="0" align="absbottom"></a></td></tr>';
        }
        document.getElementById("mvadd_picmore").innerHTML="<table width='100%' border=0 cellspacing=1 cellpadding=3>"+str+"</table>";
}
</script>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>
                <table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#DBEAF5">
        <tr><td align="center">显示图片</td></tr>
      </table>
        </td>
  </tr>
  <tr>
    <td>
    <?php
    if($ecmsfirstpost==1)
    {
    ?>
                <table width='100%' border=0 cellspacing=1 cellpadding=3>
                <?php
                $editnum=3;
                for($i=1;$i<=$editnum;$i++)
                {
                ?>
                        <tr><td align="left"><input type="text" name="picmore_1[]" id="picmore_1_<?=$i?>" value=""><a onclick="window.open('ecmseditor/FileMain.php?type=1&classid=<?=$classid?>&infoid=<?=$id?>&doing=1&filepass=<?=$filepass?>&sinfo=1&field=picmore_1_<?=$i?><?=$ecms_hashur['ehref']?>','','width=700,height=550,scrollbars=yes');" title="选择已上传的图片"><img src="../data/images/changeimg.gif" border="0" align="absbottom"></a></td></tr>
                <?php
                }
                ?>
                </table>
    <?php
    }
    else
    {
                $editnum=0;
                if($r['picmore'])
                {
                        $r['picmore']=stripSlashes($r['picmore']);
                        ?>
                        <table width='100%' border=0 cellspacing=1 cellpadding=3>
                        <?php
                        //录入项
                        $j=0;
                        $mvf_record=explode('||||||',$r['picmore']);
                        $mvf_count=count($mvf_record);
                        for($i=0;$i<$mvf_count;$i++)
                        {
                                $j=$i+1;
                                $mvf_field=explode("::::::",$mvf_record[$i]);
                                ?>
                                <tr><td align="left"><input type="checkbox" name="picmore_mvdelid[]" id="picmore_mvdelid_<?=$j?>" value="<?=$j?>"><input type="text" name="picmore_1[]" id="picmore_1_<?=$j?>" value="<?=$mvf_field[0]?>"> <input type="hidden" name="picmore_mvid[]" id="picmore_mvid_<?=$j?>" value="<?=$j?>"><a onclick="window.open('ecmseditor/FileMain.php?type=1&classid=<?=$classid?>&infoid=<?=$id?>&doing=1&filepass=<?=$filepass?>&sinfo=1&field=picmore_1_<?=$j?><?=$ecms_hashur['ehref']?>','','width=700,height=550,scrollbars=yes');" title="选择已上传的图片"><img src="../data/images/changeimg.gif" border="0" align="absbottom"></a></td></tr>
                                <?php
                        }
                        ?>
                        </table>
                        <?php
                        $editnum=$j;
                }
    }
    ?>
    </td>
  </tr>
  <tr>
    <td height="25">扩展数量: <input name="mveditnum_picmore" type="hidden" id="mveditnum_picmore" value="<?=$editnum?>">
      <input name="mvnum_picmore" type="hidden" id="mvnum_picmore" value="1">
      <input name="mvmust_picmore" type="hidden" id="mvmust_picmore" value="1">
      <input name="mvaddnum_picmore" type="text" id="mvaddnum_picmore" value="1" size="6"> <input type="button" name="Submit5" value="输出" onClick="javascript:domvadd_picmore();"></td>
  </tr>
  <tr>
    <td id="mvadd_picmore"></td>
  </tr>
</table>

上面ffff 是字段的名称

帝国CMS 多值字段修改为 可以上传图片的形式

帝国CMS商城服装多款式图片选择加入购物车
« 上一篇 2016年06月27日
帝国CMS商城使用常见问题与技巧教程
下一篇 » 2016年06月27日

    Warning: file_exists(): open_basedir restriction in effect. File(/www/wwwroot/moyubuluo.com/d/file/2020-05-22/95c58b62944aa10f3b34f8d852fb7878.jpg) is not within the allowed path(s): (/www/wwwroot/moyubuluo.com/:/tmp/) in /www/wwwroot/moyubuluo.com/e/class/t_functions.php on line 2808
  • 帝国CMS视频收费播放下载新闻资讯门户,自适应HTML5手机整站模板
    1.8k阅读2条评论0个赞
    帝国CMS新版核心,构建安全高效网站。后台操作简便,无需编码,轻松排版。默认SEO优化,多栏目样式任选。支持MP4/M3U8多终端播放,实现视频与下载权限控制及扣点收费。五种智能内容样式,自动适应内容需求。一键部署,即刻开启运营!

  • Warning: file_exists(): open_basedir restriction in effect. File(/www/wwwroot/moyubuluo.com/d/file/2018-09-01/2cbfdda0572cefda62e1006564c5ae20.jpg) is not within the allowed path(s): (/www/wwwroot/moyubuluo.com/:/tmp/) in /www/wwwroot/moyubuluo.com/e/class/t_functions.php on line 2808
  • 全能帝国CMS模板 | 视频、图片、资讯、下载一站式,自适应HTML5整站解决方案
    4.7k阅读0条评论0个赞
    帝国CMS新版核心,打造安全高效网站模板。后台操作简便,无需代码知识。默认SEO优化,多终端视频播放,支持权限与扣点收费。下载同样具备权限控制,一键部署,即刻开启运营之旅!内置五种智能内容样式,自动适应展示需求。

  • Warning: file_exists(): open_basedir restriction in effect. File(/www/wwwroot/moyubuluo.com/d/file/2017-03-08/510d32c903cad7649c0eb8b21b5bf5a4.jpg) is not within the allowed path(s): (/www/wwwroot/moyubuluo.com/:/tmp/) in /www/wwwroot/moyubuluo.com/e/class/t_functions.php on line 2808
  • 图片新闻博客下载站:帝国CMS整站模板,HTML5自适应响应式,手机平板友好
    2.7k阅读0条评论-2个赞
    帝国CMS新版核心,HTML5响应式设计,高端大气。适合博客、新闻、文章、图片、下载类网站,全面适配手机平板。

  • Warning: file_exists(): open_basedir restriction in effect. File(/www/wwwroot/moyubuluo.com/d/file/2018-01-17/449cda23c0cff9093e801ac123454577.jpg) is not within the allowed path(s): (/www/wwwroot/moyubuluo.com/:/tmp/) in /www/wwwroot/moyubuluo.com/e/class/t_functions.php on line 2808
  • 帝国CMS绿色版 | 个人博客&资讯新闻网站模板,全自适应HTML5响应式
    2.4k阅读0条评论0个赞
    采用帝国CMS最新绿色版,打造高端大气的个人博客与资讯新闻网站模板。设计简洁大方,风格优雅,完美适配手机、平板等多终端浏览,是博主与资讯分享者的理想选择。

  • Warning: file_exists(): open_basedir restriction in effect. File(/www/wwwroot/moyubuluo.com/d/file/2020-09-27/8109a4ad41e694a19c10d643c1c8bc2b.jpg) is not within the allowed path(s): (/www/wwwroot/moyubuluo.com/:/tmp/) in /www/wwwroot/moyubuluo.com/e/class/t_functions.php on line 2808
  • 帝国CMS自适应手机HTML5整站模板:视频收费播放下载+新闻资讯门户
    1.6k阅读0条评论0个赞
    帝国CMS新版核心,构建安全高效视频收费平台。自动图文适配,3种列表模式任选。带图TAG推荐,海报分享增互动。默认SEO优化,多终端播放兼容。权限控制与扣点收费灵活设置,下载亦享同等功能。一键部署,轻松运营。

  • Warning: file_exists(): open_basedir restriction in effect. File(/www/wwwroot/moyubuluo.com/d/file/2020-07-31/cee8df145fde5241a9ac9b381c86de66.jpg) is not within the allowed path(s): (/www/wwwroot/moyubuluo.com/:/tmp/) in /www/wwwroot/moyubuluo.com/e/class/t_functions.php on line 2808
  • 简洁文字收费视频 | 新闻资讯会员软件下载 | 多广告位帝国CMS自适应整站模板
    2.0k阅读0条评论0个赞
    采用帝国CMS新版核心,打造安全高效整站模板。一键后台操作,无需编码知识。多样化首页展示,自动填充ID显示。支持MP4、M3U8多终端播放,实现权限控制与扣点收费。下载功能同样具备扣点与权限管理。多广告位设计,纯文字标题展示,助力SEO优化,轻松运营网站。

  • Warning: file_exists(): open_basedir restriction in effect. File(/www/wwwroot/moyubuluo.com/d/file/2017-09-19/1c17229d37b3df069751b9b42160e98c.jpg) is not within the allowed path(s): (/www/wwwroot/moyubuluo.com/:/tmp/) in /www/wwwroot/moyubuluo.com/e/class/t_functions.php on line 2808
  • 帝国CMS企业公司手机端整站模板 - 高效安全稳定,可定制整合电脑端
    2.2k阅读0条评论0个赞
    专为企业公司打造的手机端整站模板,基于帝国CMS新版构建,安全稳定且高效。模板专为手机端设计,同时支持快速定制,与墨鱼PC端企业站点无缝整合。后台管理便捷,板块与栏目修改灵活,内容更新轻松高效,助您打造一站式跨平台企业展示方案。

  • Warning: file_exists(): open_basedir restriction in effect. File(/www/wwwroot/moyubuluo.com/d/file/2017-01-22/d53e2d1afb65c79948af1de9dd18c58f.jpg) is not within the allowed path(s): (/www/wwwroot/moyubuluo.com/:/tmp/) in /www/wwwroot/moyubuluo.com/e/class/t_functions.php on line 2808
  • 公司企业产品展示网站:帝国CMS整站源码,HTML5自适应响应式,手机平板友好
    3.0k阅读0条评论0个赞
    基于帝国CMS新版,后台功能强大且完善。前台设计简约大气,加载迅速,代码安全无冗余。专为高端产品展示设计,修改便捷。全面适应手机及移动设备,符合企业站点标准架构,运营轻松高效。

  • Warning: file_exists(): open_basedir restriction in effect. File(/www/wwwroot/moyubuluo.com/d/file/2020-06-28/878a418b9571daf40970c0f39e5ce35c.jpg) is not within the allowed path(s): (/www/wwwroot/moyubuluo.com/:/tmp/) in /www/wwwroot/moyubuluo.com/e/class/t_functions.php on line 2808
  • 响应式中小学早教机构 | 帝国CMS HTML5自适应整站模板
    1.4k阅读1条评论0个赞
    采用帝国CMS最新版,打造安全高效教育网站。后台轻松管理栏目信息,丰富封面、列表与内容模板,完美适配教育类形象与业务展示需求,助力早教机构快速上线!

  • Warning: file_exists(): open_basedir restriction in effect. File(/www/wwwroot/moyubuluo.com/d/file/2015-05-07/28aeb36057cb5dcbddb86a493e93f558.jpg) is not within the allowed path(s): (/www/wwwroot/moyubuluo.com/:/tmp/) in /www/wwwroot/moyubuluo.com/e/class/t_functions.php on line 2808
  • 第三版美女摄影瀑布流模板 - 帝国CMS自适应HTML5响应式源码
    3.8k阅读0条评论0个赞
    瀑布流图片站源码,无限下拉,自适应浏览器及移动设备。基于帝国最新核心,整站简洁,采用新闻模型开发,便于采集。适用于美女、摄影、图片分享,稍作修改即可变身为淘宝客网站!

  • Warning: file_exists(): open_basedir restriction in effect. File(/www/wwwroot/moyubuluo.com/d/file/2022-08-15/4c02032eb6f6869168f42a8e7ce28ae9.jpg) is not within the allowed path(s): (/www/wwwroot/moyubuluo.com/:/tmp/) in /www/wwwroot/moyubuluo.com/e/class/t_functions.php on line 2808
  • 帝国CMS个人博客整站模板:文章新闻资讯卡片式,自适应HTML5手机平板
    1.3k阅读0条评论0个赞
    模板基于帝国CMS新版,整站卡片式设计,高端大气简洁。适用于博客、资讯、文章、图片网站,完美自适应手机平板。后台操作简便,无需编码,即可快速调整布局与内容。默认SEO优化,高效提升排名。

  • Warning: file_exists(): open_basedir restriction in effect. File(/www/wwwroot/moyubuluo.com/d/file/2019-10-19/704588f900aea6b72838c1269fff813d.jpg) is not within the allowed path(s): (/www/wwwroot/moyubuluo.com/:/tmp/) in /www/wwwroot/moyubuluo.com/e/class/t_functions.php on line 2808
  • 企业展示新选择:帝国CMS模板,HTML5响应式自适应,全站企业产品展示
    1.9k阅读0条评论0个赞
    采用帝国CMS新版核心,打造高端企业展示平台。涵盖产品案例、新闻、单页简介等丰富栏目,全方位展现企业形象与产品实力。后台管理简便,安全高效,性能卓越。全站响应式设计,手机平板浏览效果俱佳,助您快速构建专属企业展示形象!

  • Warning: file_exists(): open_basedir restriction in effect. File(/www/wwwroot/moyubuluo.com/d/file/2021-02-23/4da962a6c16ddcf5778f03b598a9198e.jpg) is not within the allowed path(s): (/www/wwwroot/moyubuluo.com/:/tmp/) in /www/wwwroot/moyubuluo.com/e/class/t_functions.php on line 2808
  • 帝国CMS个人博客&新闻资讯自适应HTML5响应式手机模板整站
    3.5k阅读0条评论0个赞
    采用帝国CMS新版构建,本模板集高端设计与简洁体验于一身,专为个人博客、新闻资讯、文章及图片展示打造。全面支持手机与平板自适应,后台管理便捷高效,助您轻松搭建个性化网站。

  • Warning: file_exists(): open_basedir restriction in effect. File(/www/wwwroot/moyubuluo.com/d/file/2019-09-05/041d71e2118ed9d4815fe59b366bda71.jpg) is not within the allowed path(s): (/www/wwwroot/moyubuluo.com/:/tmp/) in /www/wwwroot/moyubuluo.com/e/class/t_functions.php on line 2808
  • 帝国CMS视频站模板:多播放组自适应,在线播放,HTML5响应式适配手机平板
    5.2k阅读2条评论0个赞
    精选最新版帝国CMS核心,打造高效视频站模板。界面简洁大气,自动适应各类移动设备,浏览流畅无阻。原生支持MP4、M3U8播放,扩展性强,轻松接入多种视频解析。后台预设四组播放源,智能匹配最佳播放组,支持自定义命名。承袭帝国CMS播放逻辑,无额外收费,便于维护升级。内置文章系统,助力内容多样化与SEO优化。

  • Warning: file_exists(): open_basedir restriction in effect. File(/www/wwwroot/moyubuluo.com/d/file/2017-04-01/a59ffb308bee88672a9ec6020e1a1c97.jpg) is not within the allowed path(s): (/www/wwwroot/moyubuluo.com/:/tmp/) in /www/wwwroot/moyubuluo.com/e/class/t_functions.php on line 2808
  • 帝国CMS个人博客全能模板:手机资讯新闻下载,HTML5响应式自适应整站源码
    3.0k阅读0条评论0个赞
    采用帝国CMS新版核心,全后台开源修改自由。模板风格简洁大方,清新干净,专为个人博客、资讯新闻网站设计。支持手机及平板设备自适应浏览,内置下载模块,SEO与广告位已优化配置,即装即用,省时省心!

  • Warning: file_exists(): open_basedir restriction in effect. File(/www/wwwroot/moyubuluo.com/d/file/2020-10-16/0e41a69ab9288991e48039c4064ed49c.jpg) is not within the allowed path(s): (/www/wwwroot/moyubuluo.com/:/tmp/) in /www/wwwroot/moyubuluo.com/e/class/t_functions.php on line 2808
  • "帝国CMS整站模板:自适应手机HTML5,工作室视频收费下载+新闻资讯+个人博客"
    2.0k阅读0条评论0个赞
    帝国CMS新版核心,打造安全可靠高性能整站模板。后台操作简便,无需代码知识。图文列表智能显示:标题图+内容图多图展示,或自动转为文字列表。支持MP4、M3U8等多终端播放,实现视频权限控制与扣点收费。下载功能同样支持权限与扣点。五种内容样式自动适配,轻松管理视频、下载等多媒体内容。一键部署,即刻开启运营之旅!

  • Warning: file_exists(): open_basedir restriction in effect. File(/www/wwwroot/moyubuluo.com/d/file/2020-06-24/848a8e573c509110b5c7024a62ec270a.jpg) is not within the allowed path(s): (/www/wwwroot/moyubuluo.com/:/tmp/) in /www/wwwroot/moyubuluo.com/e/class/t_functions.php on line 2808
  • 自适应手机HTML5 | 帝国CMS整站模板:工作室视频收费、新闻资讯、个人博客
    1.7k阅读0条评论0个赞
    采用帝国CMS新版核心,打造安全可靠、性能卓越的整站模板。后台简易操作,无需编程知识。图文列表智能处理:标题图+≥3内容图=多图展示;<3内容图=单图或文字列表。支持MP4、M3U8多终端播放,实现权限控制、扣点收费。下载功能同样支持权限与扣点。内置五种内容样式,自动适应不同需求,一键部署,即刻运营!

  • Warning: file_exists(): open_basedir restriction in effect. File(/www/wwwroot/moyubuluo.com/d/file/2020-11-18/8a4780bbe5386b64cfa96d6be5328e2a.jpg) is not within the allowed path(s): (/www/wwwroot/moyubuluo.com/:/tmp/) in /www/wwwroot/moyubuluo.com/e/class/t_functions.php on line 2808
  • 个人网站全能模板:帝国CMS整站,博客文章+新闻资讯,HTML5自适应手机响应式
    1.4k阅读0条评论0个赞
    采用帝国CMS新版核心,整站设计高端大气又不失简洁之美。专为个人博客、资讯分享、文章发布及图片展示量身打造,全面适配手机与平板,实现无缝浏览体验。所有内容修改均通过后台轻松管理,操作简便快捷,助您快速搭建个性化网站。

  • Warning: file_exists(): open_basedir restriction in effect. File(/www/wwwroot/moyubuluo.com/d/file/2017-12-08/56b7d77ccd6f79f08530233aedee5fd0.jpg) is not within the allowed path(s): (/www/wwwroot/moyubuluo.com/:/tmp/) in /www/wwwroot/moyubuluo.com/e/class/t_functions.php on line 2808
  • 最新帝国CMS整站源码 - 企业公司工作室,自适应响应式HTML5,手机友好
    3.7k阅读0条评论0个赞
    搭载帝国CMS新版,构建安全高效企业官网。后台轻松修改全站文字,代码精简优化,助力SEO排名。版面设计高端大气,兼容多终端浏览。帝国CMS底层坚实,便于功能拓展与升级。此源码模板,专为打造高端企业站而生,是您展示品牌形象的理想选择!

  • Warning: file_exists(): open_basedir restriction in effect. File(/www/wwwroot/moyubuluo.com/d/file/2018-12-03/55fc51eaf9cbf44d3d403519ef6ae138.jpg) is not within the allowed path(s): (/www/wwwroot/moyubuluo.com/:/tmp/) in /www/wwwroot/moyubuluo.com/e/class/t_functions.php on line 2808
  • 帝国CMS SEO站群新闻资讯整站源码模板 - HTML5自适应响应式手机优化
    4.2k阅读1条评论0个赞
    采用帝国CMS新版核心,打造高效SEO站群新闻资讯整站模板。精简前台功能,无搜索、无标签、无会员中心,代码纯净高效。专为SEO优化定制,细节精心打磨,适合SEO团队及个人使用,由SEO专员审核推荐!

如本文对您有帮助,就请墨鱼抽根烟吧!