整理后发布,改进了几处,比如表单信息提交后不关闭框架,原文formid值未提示修改,index.html第四处修改地方也不对等等,将 ok.html success.html show_box.html三个文件放在 www\phpcms\templates\default\formguide\
将mymydialog.css放如在 www\statics\css\
打开:www\phpcms\modules\formguide\index.php
修改,最好是注释插入,不要直接修改.
46行 $_GET [ 'action' ] ? exit : showmessage(L( 'form_expired' ), APP_PATH. 'index.php?m=formguide&c=index&a=index' ); 成 $_GET [ 'action' ] ? exit : showmessage(L( 'form_expired' ), APP_PATH. 'index.php?m=formguide&c=index&a=ok' ); 79行 showmessage(L( 'thanks' ), APP_PATH); 成 showmessage(L( 'thanks' ),APP_PATH. 'index.php?m=formguide&c=index&a=success' ); 97行 $_GET [ 'action' ] ? exit : showmessage(L( 'had_participate' ), APP_PATH. 'index.php?m=formguide&c=index&a=index' ); 成 $_GET [ 'action' ] ? exit : showmessage(L( 'had_participate' ), APP_PATH. 'index.php?m=formguide&c=index&a=ok' ); --phpfensi.com 在127行后添加 public function ok() { include template( 'formguide' , 'ok' ); } public function success() { include template( 'formguide' , 'success' ); }后台创建表单:
添加表单向导时的模版选择改成 show_box.html ,其他的按你的实际情况填,添加字段略,在模版文件中,你想插入的留言板链接的位置前,调加,打开表单向导后,在表单调用里查看src=''引号里formid的值.
留言板的链接就是:
javascript:art.dialog({id:'message',iframe:'? m=formguide&c=index&a=show&formid=20&siteid=1', title:'意见反馈', width:'540', height:'360',drag: false,fixed: true,opacity: .5, lock:true});void(0);将其中的formid的值,替换成你刚才查看的值即可.
文件下载:http://pan.baidu.com/s/1nt9lV2T
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did18087