freemarker使用内置的日期转换格式外,可以自己指定日期的格式,使用的是Java date format syntax,比如:
${lastUpdated?string("yyyy-MM-dd HH:mm:ss zzzz")}
${lastUpdated?string("EEE, MMM d, ''yy")}
${lastUpdated?string("EEEE, MMMM dd, yyyy, hh:mm:ss a '('zzz')'")}
freemarker
,日期
pChart是一个开源的图表生成库,主要涉及3个Class:pChart.class, pData.class, pCache.class,可生成20多种简单或复杂的图表,支持PNG,JPG,GIF通用图片格式。数据源可以来自于Database,CSV,当然也可以手写。使用该程序PHP需要开启GD服务
http://pchart.sourceforge.net
PHP
,图表
<?php
/*
php Ubb代码编辑器
*/
function get_ubb($ubb){
$ubb=preg_replace("/([B])(.*)([/B])/","<B>\2</B>" ,$ubb);//替换B粗体字
$ubb=preg_replace("/([I])(.*)([/I])/","<I>\2</I>" ,$ubb);
$ubb=preg_replace("/([U])(.*)([/U])/","<U...   
阅读全文
Ubb
php程序中获取checkbox值:
<input type="checkbox" name="myqx" value=1>
<input type="checkbox" name="myqx" value=2>
<input type="checkbox" name="myqx" value=3>
查了资料才知道原来在PHP中checkbox...   
阅读全文
PHP
,checkbox
第一种: <script language="javascript" type="text/javascript"> window.location.href="http://www.zaiyouxi.com/?backurl="+window.location.href; </script>第二种: ...   
阅读全文
javascript
今天Discuz里面开启tag静态,中文不能连接,提示”未定义操作“。
解决方法:
1、tag的解决方法
tag.php文件中
if(!$tagstatus) {
showmessage('undefined_action', NULL, 'HALTED');
}
后添加
$name = $rewritecompatible ? rawurldecode($name) : $name;
2.个人空间的解决方法
space.php文件中
require_once './include/common.inc.php';
后添加
$username = rawurldecode(trim($_GET['username']));   
阅读全文
discuz