git-svn-id: https://msi/svn/firstRepo/WebClient/branches/NewRelease@82 0f545695-f87b-41b6-9a03-7f16563b5454
This commit is contained in:
+8
-5
@@ -5,8 +5,8 @@
|
||||
* Copyright (C), 2011 - 2012 - Joost de Valk, [email protected]
|
||||
*/
|
||||
// inclusione del file contenente la classe
|
||||
require_once "./Service/MySqlClass.php";
|
||||
require_once "./Service/utility.php";
|
||||
require_once "../Service_Manut/MySqlClass.php";
|
||||
require_once "../Service_Manut/utility.php";
|
||||
|
||||
// Get the keys so we can check quickly
|
||||
|
||||
@@ -33,21 +33,24 @@ function dinamicSite() {
|
||||
$date = DateTime::createFromFormat('Y-m-d H:i:s', $lastModified[0]["lastModified"], new DateTimeZone("Europe/Rome"));
|
||||
|
||||
$lastDate = date_format($date, $W3C_datetime_format_php) . $timezone_offset;
|
||||
?>
|
||||
?>
|
||||
<url>
|
||||
<loc><?php echo $url . $catStr; ?></loc>
|
||||
<lastmod><?php echo $lastDate; ?></lastmod>
|
||||
</url><?php
|
||||
|
||||
$query = "select ID as ricetta_id, titolo from ricette where ID_CATEGORIA = " . $value["category_id"] . " order by titolo, autore";
|
||||
$query = "select ID as ricetta_id, titolo, Data_modifica from ricette where ID_CATEGORIA = " . $value["category_id"] . " order by titolo, autore";
|
||||
$ricItems = $mysqlconnetion->queryToObject($query);
|
||||
|
||||
foreach ($ricItems as $keyRic => $valueRic)
|
||||
{
|
||||
$itemStr= "#ricetta/" . $valueRic["ricetta_id"];
|
||||
$itemStr= "r". $valueRic["ricetta_id"] . "/#ricetta/" . $valueRic["ricetta_id"];
|
||||
$date = DateTime::createFromFormat('Y-m-d H:i:s', $valueRic["Data_modifica"], new DateTimeZone("Europe/Rome"));
|
||||
$lastDate = date_format($date, $W3C_datetime_format_php) . $timezone_offset;
|
||||
?>
|
||||
<url>
|
||||
<loc><?php echo $url . $itemStr; ?></loc>
|
||||
<lastmod><?php echo $lastDate; ?></lastmod>
|
||||
</url><?php
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user