整理后發布,改進了幾處,比如表單信息提交后不關閉框架,原文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');
- --Vevb.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
新聞熱點
疑難解答