?
Path : /home/admin/domains/happytokorea.com/public_html_bk/promice/ |
Current File : /home/admin/domains/happytokorea.com/public_html_bk/promice/travel.php |
<?php session_start(); header('Expires: Thu, 01 Jan 1970 00:00:00 GMT, -1'); header('Cache-Control: no-cache, no-store, must-revalidate'); header('Pragma: no-cache'); $root_path="./"; include($root_path."header.php"); $db_tm = new sql_db($dbhost, $dbuser, $dbpasswd, $dbname, false); $template = new Template($tpl_path); $result=$db_tm->sql_query("SET NAMES utf8"); $result=$db_tm->sql_query("SELECT * FROM travel ORDER BY `date` DESC"); $numrows=$db_tm->sql_numrows($result); for($i=0;$i<$numrows;$i++){ $rows=$db_tm->sql_fetchrow($result); $template->assign_block_vars('travel_rows', array( "no"=>$i+1, "id"=>$rows["id"], "subject"=>$rows["subject"], "images"=>'<img src="images/images_travel/'.$rows["images"].'" width="80" height="80">', "date"=>$rows["date"], "detail"=>substr_utf8( $rows["detail"], 0 ,300).'...', "count"=>number_format($rows["count"]), )); } $template->set_filenames(array('body'=>"travel.html")); $template->assign_vars(array( "CUR_HOST"=>$cur_host, "TITLE"=>$title, "STYLE"=>STYLE, )); $template->pparse('body'); ?>