<?php
function smarty_function_make_list_path($params,$smarty) {
	$publisher_id = $params['publisher_id'] ? $params['publisher_id']
	 : ($_GET['publisher_id'] ? $_GET['publisher_id'] : 'any');
	$booktype_id = $params['booktype_id'] ? $params['booktype_id']
	 : ($_GET['booktype_id'] ? $_GET['booktype_id'] : 'any');
	$category_id = $params['category_id'] ? $params['category_id']
	 : ($_GET['category_id'] ? $_GET['category_id'] : 'any');
	$sort = $params['sort'] ? $params['sort']
	 : ($_GET['sort'] ? $_GET['sort'] : 'any');
	$order = $params['order'] ? $params['order']
	 : ($_GET['order'] ? $_GET['order'] : 'any');
	$status = isset($params['status']) ? $params['status']
	 : ($_GET['status'] ? $_GET['status'] : '');
	$path = "$publisher_id/$booktype_id/$category_id/$sort/$order";
	if($status) $path .= "/$status";
	return $path;
}
?>
