摘要:
drupal 的views确很强大~但用起来很麻烦。所以我们可以自定义输出内容。<?phpecho '<h2>最新story</h2>';$result = db_query_range("SELECT n.nid, n.title FROM {node} n WHERE n.type = 'story' ORDER BY n.created DESC", 10);$... 阅读全文
posted @ 2009-09-02 19:04
Pigg
阅读(476)
评论(0)
推荐(0)
摘要:
format_date($timestamp, $type = 'medium', $format = '', $timezone = NULL, $langcode = NULL)$timestamp 确切的日期格式 要格式化的日期变量$type 要使用的格式(samll large medium custom)例 format_date($test->node_created,'cust... 阅读全文
posted @ 2009-09-02 18:59
Pigg
阅读(285)
评论(0)
推荐(0)

浙公网安备 33010602011771号