联系官方销售客服

1835022288

028-61286886

开发框架 版主:迅睿框架研发组
这个是怎么回事改成其他的东西也不行
类型:迅睿CMS 更新时间:2020-09-21 23:06:02

{xunruicms_img_title}

这个是怎么回事,改成其他的东西也不行

回帖
  • #1楼    迅睿框架创始人
    2020-09-21 22:39:03
    Chrome 0
    这个是你一个页面有多个id=myform了,id不能重复,改成my2form吧
  • 马哥
    #2楼    马哥
    2020-09-21 22:39:55
    Chrome 0
    id重复了。。。
  • 琉惗
    #3楼    琉惗
    2020-09-21 22:40:02
    Chrome 0
    回复迅睿框架创始人

    不行,我试过这样这个是咋回事
  • #4楼    迅睿框架创始人
    2020-09-21 22:40:32
    Chrome 0
    你只能把页面发来我看看了
  • 琉惗
    #5楼    琉惗
    2020-09-21 22:41:04
    Chrome 0
  • 易学习
    #6楼    易学习
    2020-09-21 22:42:03
    Chrome 0
    表单id重复了,性命担保
  • #7楼    迅睿框架创始人
    2020-09-21 22:43:01
    Chrome 0
    不听话啊,看一楼的答案吧

    你重复了,存在了3个
  • 每天吃包子
    #8楼    每天吃包子
    2020-09-21 22:44:39
    Chrome 0
    你牛逼,性命都敢拉出来赌易学习
  • 琉惗
    #9楼    琉惗
    2020-09-21 22:45:07
    Chrome 0
    回复迅睿框架创始人 一个也不行啊
  • #10楼    迅睿框架创始人
    2020-09-21 22:45:45
    Chrome 0
    一个提示什么?一个我也敢用性命担保可以的
  • 解攀解攀
    #11楼    解攀解攀
    2020-09-21 22:48:01
    Chrome 0


    你这个页面的id太多了,重复了id哥们
  • 琉惗
    #12楼    琉惗
    2020-09-21 22:48:45
    Chrome 0
    回复迅睿框架创始人 你刷新一下还是那个id重复的
  • #13楼    迅睿框架创始人
    2020-09-21 22:50:36
    Chrome 0
    重复的啊,你要保证id不重复
  • 二开/定制/使用解答专家
    #14楼    二开/定制/使用解答专家
    2020-09-21 22:51:40
    Chrome 0
    每个form加一个行号作为识别码,保证唯一就行,你明显重复了
  • 琉惗
    #15楼    琉惗
    2020-09-21 22:51:59
    Chrome 0
    回复迅睿框架创始人 下面那个改成什么呢
  • 琉惗
    #16楼    琉惗
    2020-09-21 22:52:54
    Chrome 0
    回复迅睿框架创始人 下面那个改掉,提示这个

  • #17楼    迅睿框架创始人
    2020-09-21 22:53:35
    Chrome 0
    你这个要把整个页面代码发上来,可以按14楼的思路来做,在我的印象中,你应该不会犯这种低级的错误
  • 琉惗
    #18楼    琉惗
    2020-09-21 22:54:50
    Chrome 0
    ,,,,,,,,第一次遇到,这个页面不是我写的,我有点懵
    {template "header.html"}
    
    <div role="main" class="main">
    
    
    
    
    
                   <section class="page-header page-header-modern page-header-background page-header-background-sm overlay overlay-color-dark overlay-show overlay-op-1">
                </section>
    <!--
        <div class="page-wrapper-middle">
            <div class="page-head">
                <div class="container">
                    <div class="page-title">
                       这里是{MODULE_NAME}模块搜索页
                    </div>
                </div>
            </div>
            <div class="page-content">-->
          <section class="page-header page-header-modern bg-color-light-scale-1 page-header-sm">
                   <div class="container">
                      <div class="row">
    
    
                         <div class="col-md-8 order-2 order-md-1 align-self-center p-static">
    
                            <div><h2 class="mb-0 font-weight-normal"><strong>{$cat.ywmc}</strong></h2><p  class="mb-5" style="font-size: 22px;"><strong>{$cat.name}</strong></p></div>
    
    
                         </div>
    
    
                         <div class="col-md-4 order-1 order-md-2 align-self-center">
                            <ul class="breadcrumb d-block text-md-right">
    
                            </ul>
                         </div>
                      </div>
    
             </div>
             </section>
                <div class="container ">
                <div class="search-page search-content-1">
                   <div class="portlet light border-top ">
                     <div class="portlet-body header-row  with-borders ">
    <!--下拉框字段搜索-->
                   <ul class="btn-group nav border-left border-right pt-2  pl-2 text-3 ">
     {php $field = dr_field_options($ci->module['field']['jigouleibie']['id']);}
                      <li class="nav-item dropdown nav-item-left-border d-none d-sm-block " ><label class=" text-uppercase ">资金机构:</label><label class="">
          <a class="nav-link btn dropdown-toggle" href="#" role="button" id="dropdownLanguage" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><input type="hidden" name="Framework" id="Framework" class="js-dropdown__input"><span class="js-dropdown__current text-primary mb-2 ">{if $params.jigouleibie} {$field[$params.jigouleibie]} {else}全选{/if} </span></a>
                                   <div class=" dropdown dropdown-menu h4" aria-labelledby="btnGroupDrop2">
    
    
                                     <!--调用单选字段数据方法-->
                                           <a class="dropdown-item {if $params.jigouleibie}label-success ivu-select-item {else}label-default{/if}"data-dropdown-value="全选"  href="{Router::search_url($params, 'jigouleibie', null)}">全选</a>
    
                                            {loop $field $value $name}
                                            <a class="dropdown-item {if $t.id==$cat.id} label-success ivu-select-item{else}label-default{/if}" data-dropdown-value="{$name}" href="{Router::search_url($params, 'jigouleibie', $value)}">{$name}</a>
                                            {/loop}
                                   </div></label>
                      </li>
    
                      <li class="nav-item dropdown nav-item-left-border d-none d-sm-block  btn-group" >
                               <label >投资地区 :</label><label>
                      <a class="nav-link btn dropdown-toggle " href="#" role="button" id="dropdownLanguage" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <input type="hidden" name="Framework" id="Framework" class="js-dropdown__input"><span class="js-dropdown__current text-primary mb-2 ">{if $params.dizhi}{dr_linkage('address', $params.dizhi, 0, 'name')}{else}全选{/if} </span></a>
                                   <div class="dropdown dropdown-menu " style="height: 400px;overflow:scroll;" aria-labelledby="btnGroupDrop2">
                                      <a class="dropdown-item  overflow-auto {if !$params.dizhi || dr_linkage('address', $params.dizhi, 0, 'child')}label-success{else}label-default{/if}" data-dropdown-value="{$t.name}" href="{Router::search_url($params, 'dizhi', NULL)}">不限</a>
                                     {list action=linkage code=address pid=$params.csxz}
                                            <a class="dropdown-item {if $t.id==$params.dizhi}label-success{else}label-default{/if}" data-dropdown-value="{$t.name}" href="{Router::search_url($params, 'dizhi', $t.id)}">{$t.name}</a>
                                            {/list}
                      </div></label>
                   </li>
                                        <li class="nav-item dropdown nav-item-left-border d-none d-sm-block btn-group">
                               <label >投资行业 :</label><label >
                      <a class="nav-link btn dropdown-toggle" href="#" role="button" id="dropdownLanguage" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><input type="hidden" name="Framework" id="Framework" class="js-dropdown__input"><span class="js-dropdown__current text-primary mb-2 ">{if $params.suoshuxingye}{dr_linkage('hyfl', $params.suoshuxingye, 0, 'name')}{else}全选{/if} </span></a>
                                   <div class="dropdown-menu" role="menu"  style="height: 400px;overflow:scroll;">
                                      <?php
            $tp = dr_linkage('hyfl', $params.suoshuxingye);
            if ($tp.pid) {
                $tp = dr_linkage('hyfl', $tp.pid);
            }
            $tpid = $tp.id;
            $pids = explode(',', $tp.childids);
            ?>
                                      <a class="dropdown-item ivu-select-item {if !$params.suoshuxingye} label-success ivu-select-item{else}label-default{/if}" data-dropdown-value="{$t.name}"  href="{Router::search_url($params, 'suoshuxingye', NULL)}">全选</a>
                                  {linkage code=hyfl pid=0}
                                           <a class="dropdown-item ivu-select-item {if in_array($t.ii, $pids)} label-success{else}label-default ivu-select-item{/if}" data-dropdown-value="{$t.name}" href="{Router::search_url($params, 'suoshuxingye', $t.id)}">{$t.name}</a>
                                            {/loop}
             </div></label>
                               </li>
       <li class="nav-item dropdown nav-item-left-border d-none d-sm-block ">
                               <label >投资金额 :</label>
                                                        {php $rongzijine=array('10000,500000'=>'1万-50万','500000,1000000'=>'50万-100万','1000000,5000000'=>'100万-500万','5000000,10000000'=>'500万-1000万','10000000,50000000'=>'1000万-5000万','50000000,100000000'=>'5000万-1亿','100000000,0'=>'大于1亿');}
                   <label class="">
                         <a class="nav-link btn dropdown-toggle" href="#" role="button" id="dropdownLanguage" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><input type="hidden" name="Framework" id="Framework" class="js-dropdown__input"><span class="js-dropdown__current text-primary mb-2 ">
                            {if $params.rongzijine}{$rongzijine[$params.rongzijine]}{else}全选{/if} </span></a>
                      <!--自定义一个价格返回数组,这个都懂得,php最基础的数组用法-->
                                            <div class="dropdown-menu" role="menu">
                                            <a class="dropdown-item ivu-select-item  {if !$params.rongzijine} label-success {else} label-default ivu-select-item{/if}" data-dropdown-value="{$t}" href="{Router::search_url($params, 'rongzijine', NULL)}">不限</a>
                                            {loop $rongzijine $i $t}
    
                                     <a class="dropdown-item ivu-select-item {if $i==$params.rongzijine} label-success {else}label-default ivu-select-item{/if}" data-dropdown-value="{$t}" href="{Router::search_url($params, 'rongzijine', $i)}">{$t}</a>
                                            {/loop}</div>
             </label>
                               </li>
                      <li class="nav-item dropdown nav-item-left-border d-none d-sm-block ">
                                     <label class="">投资类型 :</label><label>
                               {php $field = dr_field_options($ci->module['field']['touzileixing']['id']);}
                   <a class="nav-link btn dropdown-toggle" href="#" role="button" id="dropdownLanguage" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><input type="hidden" name="Framework" id="Framework" class="js-dropdown__input"><span class="js-dropdown__current text-primary mb-2">{if $params.touzileixing}{$field[$params.touzileixing]}{else}全选{/if}</span> </a>
                                   <div class="dropdown-menu" role="menu">
                                      <a class="dropdown-item {if !$params.touzileixing}label-success{else}label-default{/if}" data-dropdown-value="{$name}" href="{Router::search_url($params, 'touzileixing', NULL)}">全选</a>
                                            {loop $field $value $name}
                                            <a class="dropdown-item {if $value==$params.touzileixing}label-success{else}label-default{/if}" data-dropdown-value="{$name}" href="{Router::search_url($params, 'touzileixing', $value)}">{$name}</a>
                                            {/loop}
                                   </div></label>
                               </li>
                      <li class="nav-item dropdown nav-item-left-border d-none d-sm-block ">
                                     <label >投资期限 :</label><label>
                                  {php $field = dr_field_options($ci->module['field']['rzsj']['id']);}
                      <a class="nav-link btn dropdown-toggle" href="#" role="button" id="dropdownLanguage" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><input type="hidden" name="Framework" id="Framework" class="js-dropdown__input"><span class="js-dropdown__current text-primary mb-2 ">{if $params.rzsj}{$field[$params.rzsj]}{else}全选{/if}</span> </a>
                                   <div class="dropdown-menu" role="menu">
                                      <a class="dropdown-item {if !$params.rzsj}label-success{else}label-default{/if}" data-dropdown-value="{$name}" href="{Router::search_url($params, 'rzsj', NULL)}">全选</a>
    
                                            {loop $field $value $name}
                                            <a class="dropdown-item {if $value==$params.rzsj}label-success{else}label-default{/if}" data-dropdown-value="{$name}" href="{Router::search_url($params, 'rzsj', $value)}">{$name}</a>
                                            {/loop}
                                   </div></label>
                               </li>
                   </ul>
                    </div>
                        <div class="">
                      <!--
                            <div class="portlet-body search-container ">
                                <ul>
                                    <!--调用MOD_DIR模块的数据 id和total和order参数(本页面固有参数) page=1标示开启分页 urlrule分页地址规则 pagesize每页数量
                                    {search module=MOD_DIR id=$searchid total=$sototal order=$params.order catid=$catid page=1 pagesize=10 urlrule=$urlrule}
                                    <li class="search-item clearfix">
                                        <a title="{$t.title}" href="{$t.url}">
                                            <img src="{dr_thumb($t.thumb, 100, 90)}" width="100" height="90" style="margin-top: 15px;">
                                        </a>
                                        <div class="search-content text-left">
                                            <h4 class="search-title">
                                                <a title="{$t.title}" href="{$t.url}">{$t.title}</a>
                                            </h4>
                                            <p class="search-desc">{$t.description}</p>
                                            <div class="search-post-foot">
                                                <div class="search-post-tags">
                                                    {$t.xiaoqumingcheng},共{$t.zongceng}层,第{$t.suozaiceng}层,{$t.zhuangxiu},{$t.chaoxiang}&nbsp;&nbsp;{dr_linkagepos('address', $t.area, '')} {$t.dizhi}
                                                </div>
                                                <div class="search-post-meta">
                                                    <i class="fa fa-calendar font-blue"></i>
                                                    <a href="javascript:;">{$t.updatetime}</a>
                                                </div>
                                                <div class="search-post-meta">
                                                    <i class="fa fa-eye font-blue"></i>
                                                    <a href="javascript:;">{$t.hits}</a>
                                                </div>
                                                <div class="search-post-meta">
                                                    <i class="fa fa-comments font-blue"></i>
                                                    <a href="javascript:;">{$t.comments}</a>
                                                </div>
                                            </div>
                                        </div>
                                    </li>
                                    {/search}
                                </ul>
                                {if !$count}
                                <div class="row fc-search-null">
                                    <div class="col-md-12 text-center">
                                        <i class="fa fa-close fc-search-null-icon"></i>
                                        <label class="fc-search-null-txt">没有找到相关内容...</label>
                                    </div>
                                </div>
                                {/if}
                                <div class="search-pagination">
                                    <ul class="pagination">
                                        {$pages}
                                    </ul>
                                </div>
                            </div>
    
                      ----->
    
     <section class="bg-color-light  border-top" >
    
    
                            <div class="row align-items-center" >
    
    
     {search module=MOD_DIR id=$searchid total=$sototal order=$params.order catid=$catid page=1 pagesize=10 urlrule=$urlrule}
    
       <div class="col-12 col-lg-4 featured-boxes-modern-style-2 featured-boxes-modern-style-2-hover-only featured-boxes-modern-style-primary" >
                                     <div class="my-3 mb-3 Small shadow">
                                        <div class="row  featured-box featured-box-full featured-box-full-light ">
    
                                           <div class="col-lg-7 mt-4 mb-lg-0">
                                              <img src="{dr_thumb($t.thumb)}" class="img-fluid mb-1" alt="" />
                                              <h5>{$t.title}</h5>
    
                                              <div class="font-weight-semibold text-2">{php $user=dr_member_info($t.uid);}{dr_linkage('address', $user.dizhi, 0, 'name')}| {dr_linkage('hyfl', $t.touzihangye, 1, 'name')} |{$t.hits}次
    
                                              </div>
                                           </div>
                                           <div class="col mt-4 mb-lg-0 text-left myjianju">
                                     <p class="mb-1">投资金额:<span class="text-2" >{if $t.touzijine==1}<span style="font-size:16">≤</span>100万元{/if}{if $t.touzijine==2}≤500万元{/if}{if $t.touzijine==3}≤1000万元{/if}{if $t.touzijine==4}≤5000万元{/if}{if $t.touzijine==5}≤1亿元{/if}{if $t.touzijine==6}1亿元以上{/if}</span></p>
                                     <p class="mb-1 ">投资类型:<span>{php $field = dr_field_options(406);}
               {$field[$t.touzileixing]}</span> </p>
                                   <p class="mb-1" >投资期限:<span class="font-weight-semibold text-2">{if $t.rzsj==1}1年以下{/if}{if $t.rzsj==2}1年-3年{/if}{if $t.rzsj==3}3年-5年{/if}{if $t.rzsj==4}5年以上{/if}</span></p>                             <p class="mb-1">前期费用:<span class="font-weight-semibold text-2">{if $t.qqfy==1}有{/if}{if $t.qqfy==2}无{/if}</span></p>
                                              <div class="testimonial-author">
    
                                                 <a href="{$t.url}" class="btn btn-primary btn-xs btn-block mb-2 text-3 text-uppercase" >资方详情</a>
                                                 <a href="#formModal2" class="btn btn-success btn-xs btn-block mb-2 text-3 text-uppercase" data-toggle="modal" data-target="#formModal2">项目投递</a>
                                                 <a href="#formModal" data-toggle="modal" class="btn btn-xs btn-danger text-3 btn-block mb-2">立即约谈</a>
    
    
    
                                              </div>
                                              </div>
    
                                           </div>
                                     </div>
    
          <div>{$pages}</div>
                                  </div>
                               <div class="modal fade ahai" id="formModal" tabindex="-1" role="dialog" aria-labelledby="formModalLabel" aria-hidden="true">
                                  <div class="modal-dialog">
                                     <div class="modal-content">
                                        <div class="modal-header">
                                           <h4 class="modal-title" id="formModalLabel">{$t.title}立即约谈</h4>
                                           <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                                        </div>
                                        <div class="modal-body">
                                           <form action="/index.php?s=zjjg&c=smssend" method="post" name="myform" id="my22222222222222222222form" class="mb-4" novalidate="novalidate">
                                              <div class="form-group row align-items-center">
                                                 <label class="col-sm-3 text-left text-sm-right mb-0">电话</label>
                                                 <div class="col-sm-9">
                                                    <input type="text" name="data[dianhua]" id="dr_tel" value="{$user.phone}" class="form-control" placeholder="您的电话" required/>
                                                 </div>
                                              </div>
                                              <div class="form-group row align-items-center">
                                                 <label class="col-sm-3 text-left text-sm-right mb-0">姓名</label>
                                                 <div class="col-sm-9">
                                                    <input type="email" name="data[xingming]" value="{$user.name}" id="dr_xingming" class="form-control" placeholder="您的姓名" required/>
                                                 </div>
                                              </div>
                                              <div class="form-group row align-items-center">
                                                 <label class="col-sm-3 text-left text-sm-right mb-0">机构名称</label>
                                                 <div class="col-sm-9">
                                                    <input name="data[zhiwu]" id="dr_zhiwu" value="{$user.jgmc}" class="form-control" placeholder="机构名称或者个个姓名" />
                                                 </div>
                                              </div>
                                           </form>
                                        </div>
                                        <div class="modal-footer">
                                           <button type="button" class="btn btn-light" data-dismiss="modal">关闭</button>
                                           <button type="button" onclick="dr_ajax_submit('./admin.php?s=bdcx&c=home&m=add', 'my2222222222222222222form', '2000', '{$rt_url}')" class="btn btn-primary">投递</button>
                                        </div>
                                     </div>
                                  </div>
                                     </div>
                               <div class="modal fade ahai" id="formModal2" tabindex="-1" role="dialog" aria-labelledby="formModalLabel" aria-hidden="true">
                                  <div class="modal-dialog">
                                     <div class="modal-content">
                                        <div class="modal-header">
                                           <h4 class="modal-title" id="formModalLabel">{$t.title}项目投递</h4>
                                           <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                                        </div>
                                        <div class="modal-body">
                                           <form id="myform" class="mb-4" novalidate="novalidate">
                                              {$form}
                                              <div class="form-group row align-items-center">
                                                 <label class="col-sm-3 text-left text-sm-right mb-0">项目名称</label>
                                                 <div class="col-sm-9">
                                                    <input type="text" name="data[title]" id="dr_title" value="{$t.title}" class="form-control" placeholder="输入项目名称" required/>
                                                 </div>
                                              </div>
                                              <div class="form-group row align-items-center">
                                                 <label class="col-sm-3 text-left text-sm-right mb-0">联系电话</label>
                                                 <div class="col-sm-9">
                                                    <input name="data[dianhua]" id="dr_dianhua" class="form-control" value="{$user.phone}" placeholder="输入联系电话" required/>
                                                 </div>
                                              </div>
                                              <div class="form-group row align-items-center">
                                                 <label class="col-sm-3 text-left text-sm-right mb-0">公司名称</label>
                                                 <div class="col-sm-9">
                                                    <input name="data[gsmc]" id="dr_gsmc" value="{$user.jgmc}" class="form-control" placeholder="公司或者机构名称" />
                                                 </div>
                                              </div>
                                              <div class="form-group row">
                                                 <label class="col-sm-3 text-left text-sm-right mb-0">备注</label>
                                                 <div class="col-sm-9">
                                                    <textarea rows="5" name="data[beizhu]" id="dr_beizhu"  class="form-control" placeholder="这里输入您对项目的要求" required></textarea>
                                                 </div>
                                              </div>
                                           </form>
                                        </div>
                                        <div class="modal-footer">
                                           <button type="button" class="btn btn-light" data-dismiss="modal">关闭</button>
                                           <button type="button" onclick="dr_ajax_submit('{dr_now_url()}', 'myform', '2000', '{$rt_url}')" class="btn btn-primary">发送</button>
                                        </div>
                                     </div>
                                  </div>
                               </div>
                                  {/module}
    
    <!----------<div class="col-lg-6">
    
                                     <h5 class="text-uppercase mt-4">Side Image Left</h5>
                                     <span class="thumb-info thumb-info-side-image thumb-info-no-zoom">
                                        <span class="thumb-info-side-image-wrapper">
                                           <img src="img/blog/square/blog-23.jpg" class="img-fluid" alt="" style="width: 200px;">
                                        </span>
                                        <span class="thumb-info-caption">
                                           <span class="thumb-info-caption-text">
                                              <h5 class="text-uppercase mb-1">Project Title</h5>
                                              Lorem ipsum dolor sit amet, consectetur adipiscing elit.
                                           </span>
                                        </span>
                                     </span>
    
                                  </div>--</div>-------->
    
    
    
    
    
                      {if !$count}
                                <div class="row mt-5">
                      <div class="col">
                         <div class="heading heading-border heading-middle-border heading-middle-border-center text-center">
                            <h2><span class="text-color-quaternary">对不起!没有找到相关内容...</span></h2>
                         </div>
                      </div>
                   </div>
                                {/if}
                   </div>
                </section>
    
                        </div>
                    </div>
                </div></div>
                </div>
     <script src="{HOME_THEME_PATH}2019/js/index.js"></script>
    {template "footer.html"}
  • #19楼    迅睿框架创始人
    2020-09-21 22:57:29
    Google Pixel 手机 0
    my22222222222222222222form
    改成
    my{$key}form
    采用14楼的思路
    满意答案
  • 二开/定制/使用解答专家
    #20楼    二开/定制/使用解答专家
    2020-09-21 22:58:55
    Chrome 0
    这个表单有问题哦,没有加隐藏域,会提示跨站验证的
  • 快乐浪子哥
    #21楼    快乐浪子哥
    2020-09-21 23:03:17
    Chrome 0


    这不是已经给你提示了吗,重复了
  • 琉惗
    #22楼    琉惗
    2020-09-21 23:06:02
    Chrome 0
    迅睿框架创始人:..........我就不知道写了多少个一样的..........给我整懵了