pbootcms中,提交表单后,希望跳转到对应的页面

admin
2022-03-29 / 0 评论 / 531 阅读 / 正在检测是否收录...
  1. 在template新建一个提交表单后,跳转的承接页面。这里命名为SuccessMessage.html
    46744-vpb59b1ova8.png
  2. 同时,在后台新建一个栏目,专门放这个承接页面SuccessMessage.html
    42540-uxllz9sggxl.png
  3. 最后在如下路径修改代码:core->function->helper.php。第161行,修改成如下代码:
    44160-p3vziq4i1di.png
echo '<script type="text/javascript">location.href="/SuccessMessage.html";</script>'; 

SuccessMessage.html代码如下:

{include file=comm/head01.html}
 <script>
 gtag('event', 'conversion', {'send_to': 'AW-10854549701/I8-JCPy_iKIDEMWR7bco'}); 
</script>
 <link href="{pboot:sitetplpath}/css/index.css" rel="stylesheet">
 {include file=comm/head02.html}


<div class="contactUs-main clearfix" style="height:calc(100vh - 457px)">
    <div class="contactUs-main-route"><a href="/">HOME</a> > Contact US</div>
    <div class="clearfix" style="margin:0 50%;">
        <img src="{pboot:sitetplpath}/images/face01.png" height="120">
        <p style="font-size: 18px;padding: 50px 0;width:500px">Submit Success!</p>
    </div>
</div>
{include file=comm/foot.html}
</body>
<script src="{pboot:sitetplpath}/js/index.js"></script>


<script language=javascript>
    function go()
    {
        window.history.go(-1);
    }
    setTimeout("go()",3000);
</script>
</html>
0

评论 (0)

取消