本文整理汇总了PHP中header::header_display方法的典型用法代码示例。如果您正苦于以下问题:PHP header::header_display方法的具体用法?PHP header::header_display怎么用?PHP header::header_display使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类header
的用法示例。
在下文中一共展示了header::header_display方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: date
//include("session.php");
class header
{
function header_display($common, $db_object, $user_id, $error_msg, $gbl_files, $default)
{
$path = $common->path;
$filename = $path . "templates/career/header.html";
$filecontent = $common->return_file_content($db_object, $filename);
$charset_table = $common->prefix_table("language_charset");
$selqry = "select charset from {$charset_table} where language_id='{$default}'";
$charst = $db_object->get_a_line($selqry);
if ($user_id) {
$tablename = $common->prefix_table("user");
$sql = "select * from {$tablename} where user_id='{$user_id}'";
$user_table = $db_object->get_a_line($sql);
$user_name = $user_table["username"];
$date = date("F j, Y, g:i a");
$values["directreplace"]["user_name"] = $user_name;
$values["directreplace"]["date"] = $date;
$values["directreplace"]["charset"] = $charst["charset"];
$filecontent = $common->direct_replace($db_object, $filecontent, $values);
echo $filecontent;
$common->where_am_i($gbl_files);
} else {
echo $error_msg["cSessionTimedOut"];
}
}
}
$hdobj = new header();
$hdobj->header_display($common, $db_object, $user_id, $error_msg, $gbl_files, $default);
$common->lang_menu($db_object, $default, $form_array);