[pLog-svn] r5748 - plog/trunk/templates/misc
oscar at devel.lifetype.net
oscar at devel.lifetype.net
Sun Jul 29 06:53:55 EDT 2007
Author: oscar
Date: 2007-07-29 06:53:55 -0400 (Sun, 29 Jul 2007)
New Revision: 5748
Added:
plog/trunk/templates/misc/location_map.template
Modified:
plog/trunk/templates/misc/location.template
Log:
Missing from the previous commit
Modified: plog/trunk/templates/misc/location.template
===================================================================
--- plog/trunk/templates/misc/location.template 2007-07-29 10:50:47 UTC (rev 5747)
+++ plog/trunk/templates/misc/location.template 2007-07-29 10:53:55 UTC (rev 5748)
@@ -4,34 +4,20 @@
<meta http-equiv="Content-Type" content="text/html; charset={$locale->getCharset()}"/>
<link rel="stylesheet" href="styles/admin.css" type="text/css" />
<title>{$locale->tr("location")}</title>
- <!-- Google Maps library -->
- <script src="http://maps.google.com/maps?file=api&v=2&key={$google_maps_api_key}" type="text/javascript"></script>
+
<!-- Yahoo UI Library -->
- <script type="text/javascript" src="js/yui/yahoo/yahoo-min.js"></script>
- <script type="text/javascript" src="js/yui/dom/dom-min.js"></script>
- <script type="text/javascript" src="js/yui/event/event-min.js"></script>
+ <script type="text/javascript" src="{$url->getBaseUrl()}/js/yui/yahoo/yahoo-min.js"></script>
+ <script type="text/javascript" src="{$url->getBaseUrl()}/js/yui/dom/dom-min.js"></script>
+ <script type="text/javascript" src="{$url->getBaseUrl()}/js/yui/event/event-min.js"></script>
+ <script type="text/javascript" src="{$url->getBaseUrl()}/js/yui/container/container-min.js"></script>
+ <script type="text/javascript" src="{$url->getBaseUrl()}/js/yui/animation/animation-min.js"></script>
<!-- Lifetype UI library -->
- <script type="text/javascript" src="js/ui/core.js"></script>
- <script type="text/javascript" src="js/location/location.js"></script>
- <script type="text/javascript">
- // create the global object
- l = new Lifetype.UI.Location();
-
- // localized messages
- l.locationLocaleNoMarkerHasBeenSetYet = "{$locale->tr("error_no_marker_set")}";
- l.locationLocaleNoDescriptionError = "{$locale->tr("error_no_description_set")}";
-
- YAHOO.util.Event.addListener( window, "load", function(){literal}{{/literal}
- l.init( 3 );
- l.displayLocation({literal}{{/literal}latlong:'{$loc->getLatitude()},{$loc->getLongitude()}',desc:'{$loc->getDescription()}',id:'{$loc->getId()}'{literal}}{/literal});
- {literal}}{/literal} );
- YAHOO.util.Event.addListener( window, "unload", GUnload());
- </script>
+ <script type="text/javascript" src="{$url->getBaseUrl()}/js/ui/core.js"></script>
+ <script type="text/javascript" src="{$url->getBaseUrl()}/js/ui/ui.js"></script>
+ <script type="text/javascript" src="{$url->getBaseUrl()}/js/ui/contentoverlay.js"></script>
+ <script type="text/javascript" src="{$url->getBaseUrl()}/js/ui/dom.js"></script>
</head>
<body>
- <body style="padding:0;margin:0">
- <div id="map" style="width: {$width}px; height: {$height}px;margin:0;margin-bottom:5px;padding:0;"></div>
- <input type="hidden" name="lat" value="" id="lat" />
- <input type="hidden" name="long" value="" id="long" />
- </body>
+{include file="misc/location_map.template"}
+</body>
</html>
\ No newline at end of file
Added: plog/trunk/templates/misc/location_map.template
===================================================================
--- plog/trunk/templates/misc/location_map.template (rev 0)
+++ plog/trunk/templates/misc/location_map.template 2007-07-29 10:53:55 UTC (rev 5748)
@@ -0,0 +1,12 @@
+<div id="mapChooserBody">
+ <div id="map"></div>
+</div>
+<!-- Google Maps library -->
+<script src="http://maps.google.com/maps?file=api&v=2&key={$google_maps_api_key}" type="text/javascript"></script>
+<script type="text/javascript" src="{$url->getBaseUrl()}/js/location/location.js"></script>
+<script type="text/javascript">
+// create the global object
+//l = new Lifetype.UI.Location();
+//l.init( 3 );
+//l.displayLocation({literal}{{/literal}latlong:'{$loc->getLatitude()},{$loc->getLongitude()}',desc:'{$loc->getDescription()}',id:'{$loc->getId()}'{literal}}{/literal});
+</script>
\ No newline at end of file
More information about the pLog-svn
mailing list