Mercurial > hg > ywww
comparison us/index.php @ 45:8bc395c87c6f
less built-in use of full site address
author | Henry S. Thompson <ht@inf.ed.ac.uk> |
---|---|
date | Sun, 06 Jan 2019 08:09:47 -0500 |
parents | 38d209611508 |
children | b7376319d25a |
comparison
equal
deleted
inserted
replaced
44:38d209611508 | 45:8bc395c87c6f |
---|---|
78 <li><a href=\"http://www.ehow.com/how_2033406_enable-javascript-firefox.html\">Firefox</a></li> | 78 <li><a href=\"http://www.ehow.com/how_2033406_enable-javascript-firefox.html\">Firefox</a></li> |
79 <li><a href=\"http://www.chromefans.org/chrome-tutorial/how-to-enable-or-disable-javascript-in-google-chrome.htm\">Chrome</a></li> | 79 <li><a href=\"http://www.chromefans.org/chrome-tutorial/how-to-enable-or-disable-javascript-in-google-chrome.htm\">Chrome</a></li> |
80 <li><a href=\"http://support.microsoft.com/gp/howtoscript\">Internet Explorer</a></li> | 80 <li><a href=\"http://support.microsoft.com/gp/howtoscript\">Internet Explorer</a></li> |
81 </ul> | 81 </ul> |
82 <p>Thank you for using YourNextRead<p> | 82 <p>Thank you for using YourNextRead<p> |
83 <img src=\"http://test.markup.co.uk/ywww/images/topleft.gif\" alt=\"YourNextRead\"/> | 83 <img src=\"../images/topleft.gif\" alt=\"YourNextRead\"/> |
84 </noscript>"; | 84 </noscript>"; |
85 if($iPhone && !$iPad) | 85 if($iPhone && !$iPad) |
86 { | 86 { |
87 echo "<meta name=\"viewport\" content=\"width=device-width, user-scalable=no\" />"; | 87 echo "<meta name=\"viewport\" content=\"width=device-width, user-scalable=no\" />"; |
88 echo "<script type=\"text/javascript\" language=\"javascript\" src=\"../booksMob/books.nocache.js\"></script>"; | 88 echo "<script type=\"text/javascript\" language=\"javascript\" src=\"../booksMob/books.nocache.js\"></script>"; |
110 $ListName = $xml->List[$id]->SavedListName; | 110 $ListName = $xml->List[$id]->SavedListName; |
111 echo "<p><b>$ListName</b></p><BR></BR>"; | 111 echo "<p><b>$ListName</b></p><BR></BR>"; |
112 for($i=0;$i<sizeof($xml->List[$id]->ListDetails->Book);$i++){ | 112 for($i=0;$i<sizeof($xml->List[$id]->ListDetails->Book);$i++){ |
113 $bookTitle = $xml->List[$id]->ListDetails->Book[$i]->BookTitle; | 113 $bookTitle = $xml->List[$id]->ListDetails->Book[$i]->BookTitle; |
114 $isbn = $xml->List[$id]->ListDetails->Book[$i]->ISBN; | 114 $isbn = $xml->List[$id]->ListDetails->Book[$i]->ISBN; |
115 echo "<a href=http://test.markup.co.uk/ywww/us/#!isbn=$isbn>$bookTitle</a> "; | 115 echo "<a href=\"../us/#!isbn=$isbn\">$bookTitle</a> "; |
116 } | 116 } |
117 } | 117 } |
118 } | 118 } |
119 else | 119 else |
120 { | 120 { |
243 if($titleL != "") | 243 if($titleL != "") |
244 { | 244 { |
245 $recommended .= " $titleL by $authorL,"; | 245 $recommended .= " $titleL by $authorL,"; |
246 $underAuthor = str_replace(" ","_",$authorL); | 246 $underAuthor = str_replace(" ","_",$authorL); |
247 $underTitle = str_replace(" ","_",$titleL); | 247 $underTitle = str_replace(" ","_",$titleL); |
248 $linkedRecommended .= "<a href=\"http://test.markup.co.uk/ywww/us/#!isbn=$linkedISBN/$underTitle" . "_by_$authorL\">$titleL by $authorL</a>, "; | 248 $linkedRecommended .= "<a href=\"../us/#!isbn=$linkedISBN/$underTitle" . "_by_$authorL\">$titleL by $authorL</a>, "; |
249 } | 249 } |
250 } | 250 } |
251 | 251 |
252 $vote = "Vote on these recommendations!"; | 252 $vote = "Vote on these recommendations!"; |
253 | 253 |
261 <li><a href=\"http://www.ehow.com/how_2033406_enable-javascript-firefox.html\">Firefox</a></li> | 261 <li><a href=\"http://www.ehow.com/how_2033406_enable-javascript-firefox.html\">Firefox</a></li> |
262 <li><a href=\"http://www.chromefans.org/chrome-tutorial/how-to-enable-or-disable-javascript-in-google-chrome.htm\">Chrome</a></li> | 262 <li><a href=\"http://www.chromefans.org/chrome-tutorial/how-to-enable-or-disable-javascript-in-google-chrome.htm\">Chrome</a></li> |
263 <li><a href=\"http://support.microsoft.com/gp/howtoscript\">Internet Explorer</a></li> | 263 <li><a href=\"http://support.microsoft.com/gp/howtoscript\">Internet Explorer</a></li> |
264 </ul> | 264 </ul> |
265 <p>Thank you for using YourNextRead<p> | 265 <p>Thank you for using YourNextRead<p> |
266 <img src=\"http://test.markup.co.uk/ywww/images/topleft.gif\" alt=\"YourNextRead\"/> | 266 <img src=\"../images/topleft.gif\" alt=\"YourNextRead\"/> |
267 </noscript>"; | 267 </noscript>"; |
268 if($iPhone && !$iPad) | 268 if($iPhone && !$iPad) |
269 { | 269 { |
270 echo "<meta name=\"viewport\" content=\"width=device-width, user-scalable=no\" />"; | 270 echo "<meta name=\"viewport\" content=\"width=device-width, user-scalable=no\" />"; |
271 echo "<script type=\"text/javascript\" language=\"javascript\" src=\"../booksMob/books.nocache.js\"></script>"; | 271 echo "<script type=\"text/javascript\" language=\"javascript\" src=\"../booksMob/books.nocache.js\"></script>"; |
281 echo "<body>"; | 281 echo "<body>"; |
282 echo "<p>Recommended Books for <b>$title</b> by <b>$author</b>:"; | 282 echo "<p>Recommended Books for <b>$title</b> by <b>$author</b>:"; |
283 echo $linkedRecommended . "</p>"; | 283 echo $linkedRecommended . "</p>"; |
284 echo "<p>" . $vote . "</p>"; | 284 echo "<p>" . $vote . "</p>"; |
285 | 285 |
286 echo "Change to <a href=\"http://test.markup.co.uk/ywww/de/#!isbn=$isbn/$title" . "_by_$author\">YourNextRead Germany</a>, "; | 286 echo "Change to <a href=\"../de/#!isbn=$isbn/$title" . "_by_$author\">YourNextRead Germany</a>, "; |
287 echo "Change to <a href=\"http://test.markup.co.uk/ywww/ca/#!isbn=$isbn/$title" . "_by_$author\">YourNextRead Canada</a>, "; | 287 echo "Change to <a href=\"../ca/#!isbn=$isbn/$title" . "_by_$author\">YourNextRead Canada</a>, "; |
288 echo "Change to <a href=\"http://test.markup.co.uk/ywww/fr/#!isbn=$isbn/$title" . "_by_$author\">YourNextRead France</a>, "; | 288 echo "Change to <a href=\"../fr/#!isbn=$isbn/$title" . "_by_$author\">YourNextRead France</a>, "; |
289 echo "Change to <a href=\"http://test.markup.co.uk/ywww/us/#!isbn=$isbn/$title" . "_by_$author\">YourNextRead USA</a>"; | 289 echo "Change to <a href=\"../us/#!isbn=$isbn/$title" . "_by_$author\">YourNextRead USA</a>"; |
290 echo ", See this on <a href=\"http://www.YourNextPresent.com/us/#!isbn=$isbn\">YourNextPresent</a>, "; | 290 echo ", See this on <a href=\"http://www.YourNextPresent.com/us/#!isbn=$isbn\">YourNextPresent</a>, "; |
291 echo "Switch to <a href=\"http://www.YourNextFilm.com/us/\">YourNextFilm</a>, "; | 291 echo "Switch to <a href=\"http://www.YourNextFilm.com/us/\">YourNextFilm</a>, "; |
292 echo "Switch to <a href=\"http://www.YourNextGame.com/us/\">YourNextGame</a>"; | 292 echo "Switch to <a href=\"http://www.YourNextGame.com/us/\">YourNextGame</a>"; |
293 } | 293 } |
294 catch(Exception $e) | 294 catch(Exception $e) |
310 <li><a href=\"http://www.ehow.com/how_2033406_enable-javascript-firefox.html\">Firefox</a></li> | 310 <li><a href=\"http://www.ehow.com/how_2033406_enable-javascript-firefox.html\">Firefox</a></li> |
311 <li><a href=\"http://www.chromefans.org/chrome-tutorial/how-to-enable-or-disable-javascript-in-google-chrome.htm\">Chrome</a></li> | 311 <li><a href=\"http://www.chromefans.org/chrome-tutorial/how-to-enable-or-disable-javascript-in-google-chrome.htm\">Chrome</a></li> |
312 <li><a href=\"http://support.microsoft.com/gp/howtoscript\">Internet Explorer</a></li> | 312 <li><a href=\"http://support.microsoft.com/gp/howtoscript\">Internet Explorer</a></li> |
313 </ul> | 313 </ul> |
314 <p>Thank you for using YourNextRead<p> | 314 <p>Thank you for using YourNextRead<p> |
315 <img src=\"http://test.markup.co.uk/ywww/images/topleft.gif\" alt=\"YourNextRead\"/> | 315 <img src=\"../images/topleft.gif\" alt=\"YourNextRead\"/> |
316 </noscript>"; | 316 </noscript>"; |
317 if($iPhone && !$iPad) | 317 if($iPhone && !$iPad) |
318 { | 318 { |
319 echo "<meta name=\"viewport\" content=\"width=device-width, user-scalable=no\" />"; | 319 echo "<meta name=\"viewport\" content=\"width=device-width, user-scalable=no\" />"; |
320 echo "<script type=\"text/javascript\" language=\"javascript\" src=\"../booksMob/books.nocache.js\"></script>"; | 320 echo "<script type=\"text/javascript\" language=\"javascript\" src=\"../booksMob/books.nocache.js\"></script>"; |