留言模型验证码调用
2022-06-03 加入收藏
{eyou:guestbookform type='default'} <form method="POST" enctype="multipart/form-data" action="{$field.action}"> <!-- 此处省略其他表单代码 --> <div class='form-group'> <textarea name="{$field.attr_1}" id="attr_1" placeholder='{$field.itemname_1}'></textarea> </div> <!-- 此处省略其他表单代码 --> <!-- 验证码开始 --> {eyou:notempty name='$field.IsVertify'} <div> <input type="text" name="vertify" autocomplete="off" placeholder="图片验证码"/> <img {$field.VertifyData} title="看不清?点击更换验证码" style="margin-left: 2px;width: 80px;height: 35px;" /> 看不清?<a href="javascript:void(0);" id="a_vertify" {$field.VertifyData}>点击更换</a> </div> {/eyou:notempty} <!-- 验证码结束 --> <!-- 此处省略其他表单代码 --> <div class="form-group m-b-0"> <button type="submit" >提交<button> </div> {$field.hidden} </form> {/eyou:guestbookform}