郁闷,买的空间服务器故障

本来想在家里好好休息,没想到买的空间服务器故障,这几天忙着搬文件,重新设置网站,搞得焦头烂额,现在还有几个站没弄好,损失真是无法计算。

哎还是要找服务好的空间,不要在乎那一个月几美元的空间费,否则后患无穷啊。

后天要去考交规,还没好好看。

Continue reading “郁闷,买的空间服务器故障”

取名字诗词选

同事转给我的取名字诗词选:

子奕 奕奕寝庙,君子作之。《诗经?巧言》
一诺 千金未必能移性,一诺从来许杀身。《上湖南崔中丞》
子衿 青青子衿,悠悠我心。《诗经)
子佩 青青子佩,悠悠我思。《诗经)
子慕 既含睇兮又宜笑,子慕予兮善窈窕。《楚辞》
一川 一川烟草,满城风絮。梅子黄时雨。《贺铸?青玉案》
志学 非学无以广才,非志无以成学。(诸葛亮)

Continue reading “取名字诗词选”

Drupal Theme Varaibles Used in node.tpl.php

Drupal Theme implementation to display a node.

Available variables:

  • $title: the (sanitized) title of the node.
  • $content: Node body or teaser depending on $teaser flag.
  • $picture: The authors picture of the node output from theme_user_picture().
  • $date: Formatted creation date (use $created to reformat with format_date()).
  • $links: Themed links like "Read more", "Add new comment", etc. output from theme_links().
  • $name: Themed username of node author output from theme_username().
  • $node_url: Direct url of the current node.
  • $terms: the themed list of taxonomy term links output from theme_links().
  • $submitted: themed submission information output from theme_node_submitted().

Continue reading “Drupal Theme Varaibles Used in node.tpl.php”

Druapl PHP Varaibles Can be Used in page.tpl.php Theme Template

Drupal Theme implementation to display a single Drupal page.

Available Drupal PHP variables for theme template:

Drupal General utility variables:

  • $base_path: The base URL path of the Drupal installation. At the very least, this will always default to /.
  • $css: An array of CSS files for the current page.
  • $directory: The directory the theme is located in, e.g. themes/garland or themes/garland/minelli.
  • $is_front: TRUE if the current page is the front page. Used to toggle the mission statement.
  • $logged_in: TRUE if the user is registered and signed in.
  • $is_admin: TRUE if the user has permission to access administration pages.

Continue reading “Druapl PHP Varaibles Can be Used in page.tpl.php Theme Template”