-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement ajax-y updating of metar block.
- Loading branch information
Showing
3 changed files
with
63 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php if (!empty($this->instance)):?> | ||
<div class="horde-content"> | ||
<input id="location<?php echo $this->instance?>" name="location<?php echo $this->instance?>" /> | ||
<input type="button" id="button<?php echo $this->instance?>" class="horde-default" value="<?php echo _("Change Location")?>" /> | ||
<span style="display:none;" id="location<?php echo $this->instance?>_loading_img"> | ||
<?php echo Horde_Themes_Image::tag('loading.gif')?> | ||
</span> | ||
</div> | ||
<?php endif;?> | ||
|
||
<div> | ||
<?php if (is_array($this->location)): ?> | ||
<?php echo sprintf(_("Several locations possible with the parameter: %s"), $this->requested_location)?><br /> | ||
<ul> | ||
<?php foreach ($this->location as $location):?> | ||
<li><?php echo $location->city?>, <?php echo $location->state?>(<?php echo $location->code?>)</li> | ||
<?php endforeach;?> | ||
</ul> | ||
<?php else: ?> | ||
<div id="weathercontent<?php echo $this->instance?>"> | ||
<?php echo $this->render('block/metar_content');?> | ||
</div> | ||
<?php endif;?> | ||
</div> |