Form Manager提示最近一天的提交信息

打开worpdress-form-manager\page\main.php文件,搜索一下内容或者找到185行左右,将以下代码

1
<td><?php $sub = $fmdb->getLastSubmission($form['ID']);echo $sub['timestamp'];?></td>

替换为

1
<td><?php $sub = $fmdb->getLastSubmission($form['ID']); $datah=strtotime("".$sub['timestamp']."");$edata=strtotime("now");if (($edata - $datah) > 86400){echo $sub['timestamp'];}else{echo '<span style="color:red;">'.$sub['timestamp'].'</span>';}?></td>

保存即可

演示如图:
Form Manager提示最近一天的提交信息

插件Form Manager简体中文包

Campbell Hoffman 制作的wordpress插件Form Manager可以说是企业站的必备插件,但目前还没有人提供简体中文的语言包

我制作了一下,提供给大家,下载之后保存到/wp-content/plugins/wordpress-form-manager/languages/内即可

百度网盘http://pan.baidu.com/s/1kzRdW

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
"Project-Id-Version: <a href="http://www.uazoh.com/Tag/form-manager" title="Form Manager" class="cont_tags">Form Manager</a> 1.6.49\n"
"Report-Msgid-Bugs-To: http://wordpress.org/tag/wordpress-form-manager\n"
"POT-Creation-Date: 2014-09-09 19:22:29+00:00\n"
"PO-Revision-Date: 2014-09-14 16:56+0800\n"
"Last-Translator: \n"
"Language-Team: 风晓天 <kazegt@qq.com>\n"
"Language: zh_CN\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 1.5.7\n"
"X-Poedit-SourceCharset: UTF-8\n"
"X-Poedit-KeywordsList: _e;__;_n;_ex;_x\n"
"X-Poedit-Basepath: .\n"
"X-Poedit-SearchPath-0: ..\n"