当前位置: 首页>>代码示例>>PHP>>正文


PHP langtransstr函数代码示例

本文整理汇总了PHP中langtransstr函数的典型用法代码示例。如果您正苦于以下问题:PHP langtransstr函数的具体用法?PHP langtransstr怎么用?PHP langtransstr使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了langtransstr函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: prt_tablehead

function prt_tablehead()
{
    global $updated, $maxDistance, $distUnits, $Units, $table, $scroller, $CSS, $LegendX, $LegendY, $ControlX, $ControlY;
    global $found_wtmp, $found_gust, $found_pdty, $found_wvht, $found_vis, $coloms;
    $table .= '<table class="genericTable" style=""><tr>' . PHP_EOL;
    $table .= '<th>ID</th>' . PHP_EOL;
    $table .= '<th>' . langtransstr('Name') . '</th>' . PHP_EOL;
    $table .= '<th>' . langtransstr('Time') . ' ' . $Units['time'] . '</th>' . PHP_EOL;
    $table .= '<th>' . langtransstr('Air') . ' ' . $Units['temp'] . '</th>' . PHP_EOL;
    $coloms = 4;
    if ($found_wtmp) {
        $table .= '<th>' . langtransstr('Water') . ' ' . $Units['temp'] . '</th>' . PHP_EOL;
        $coloms++;
    }
    $table .= '<th>' . langtransstr('Wind') . ' ' . $Units['wind'] . '</th>' . PHP_EOL;
    if ($found_gust) {
        $table .= '<th>' . langtransstr('Gust') . ' ' . $Units['wind'] . '</th>' . PHP_EOL;
        $coloms++;
    }
    $table .= '<th>' . langtransstr('Baro') . ' ' . $Units['baro'] . '</th>' . PHP_EOL;
    if ($found_pdty) {
        $table .= '<th>' . langtransstr('Trend') . ' ' . $Units['baro'] . '</th>' . PHP_EOL;
        $coloms++;
    }
    if ($found_wvht) {
        $table .= '<th>' . langtransstr('Waves') . ' ' . $Units['wave'] . '</th>' . PHP_EOL;
        $coloms++;
    }
    if ($found_vis) {
        $table .= '<th>' . langtransstr('Visibillity') . ' ' . $Units['dist'] . '</th>' . PHP_EOL;
        $coloms++;
    }
    $table .= '</tr>' . PHP_EOL;
    $scroller .= "<p id=\"mesolegend\">\r\n<span class=\"content0\">&nbsp;" . langtransstr('Air Temperature') . "&nbsp;</span>\r\n<span class=\"content1\">&nbsp;" . langtransstr('Water Temperature') . "&nbsp;</span>\r\n<span class=\"content2\">&nbsp;" . langtransstr('Wind Direction @ Speed') . "&nbsp;</span>\r\n<span class=\"content3\">&nbsp;" . langtransstr('Wind Gust Speed') . "&nbsp;</span>\r\n<span class=\"content4\">&nbsp;" . langtransstr('Barometer') . "&nbsp;</span>\r\n<span class=\"content5\">&nbsp;" . langtransstr('Barometer Trend') . "&nbsp;</span>\r\n<span class=\"content6\">&nbsp;" . langtransstr('Wave Height') . "&nbsp;</span>\r\n<span class=\"content7\">&nbsp;" . langtransstr('Visibillity') . "&nbsp;</span>\r\n<span class=\"content8\"></span>\r\n</p>\n";
    $Top = 5;
    // default location for values legend on map
    $Left = 5;
    if ($LegendX) {
        $Left = $LegendX;
    }
    if ($LegendY) {
        $Top = $LegendY;
    }
    $CSS .= "#mesolegend {\r\n\ttop:  {$Top}px;\r\n\tleft: {$Left}px;\r\n\tfont-size: 10pt;\r\n\tcolor: #0000FF;\r\n\tbackground-color: #FFFFFF;\r\n\tpadding: 3px 3px;\r\n}\r\n";
    // set up the run/pause/step controls
    $scroller .= '<form action="index.php"> 
<p id="BuoyControls">
<input type="button" value="Run"   name="run"   onclick="set_run(1);" />
<input type="button" value="Pause" name="pause" onclick="set_run(0);" />
<input type="button" value="Step"  name="step"  onclick="step_content();" />
</p>
</form>
';
    $Top = $Top + 25;
    // default start for controls is under legend
    if (trim($ControlX) != '') {
        $Left = $ControlX;
    }
    if (trim($ControlY) != '') {
        $Top = $ControlY;
    }
    $CSS .= "#BuoyControls {\r\n\ttop: {$Top}px;\r\n\tleft: {$Left}px;\r\n\tfont-family: Verdana, Arial, Helvetica, sans-serif; \r\n\tfont-size: 8pt;\r\n\tfont-weight: normal;\r\n\tposition: relative;\r\n\tdisplay: inline;\r\n\tpadding: 0 0;\r\n\tborder: none;\r\n\tz-index: 15;\r\n}\r\n#BuoyControls a {\r\n\tpadding: 3px 3px;\r\n\tbackground: #666666;\r\n\tcolor: white;\r\n\tborder: 1px solid white;\r\n}\r\n";
    return;
}
开发者ID:shakaran,项目名称:weatherpro,代码行数:64,代码来源:ws_buoy_generate.php

示例2: array

   $display = false;
   if ($SITE['stationShow']) {
       $display = true;
       $sideArrHwSw['station'] = array('name' => langtransstr('Weatherstation'), 'icon' => $SITE['stationJpg'], 'link' => $SITE['stationLink'], 'alt' => $SITE['stationTxt']);
   }
   if ($SITE['WXsoftwareShow']) {
       $display = true;
       $sideArrHwSw['program'] = array('name' => langtransstr('Weatherprogram'), 'icon' => $SITE['WXsoftwareIcon'], 'link' => $SITE['WXsoftwareURL'], 'alt' => $SITE['WXsoftwareLongName']);
   }
   if ($SITE['pcShow']) {
       $display = true;
       $sideArrHwSw['pc'] = array('name' => langtransstr('Weatherserver'), 'icon' => $SITE['pcJpg'], 'link' => $SITE['pcLink'], 'alt' => $SITE['pcTxt']);
   }
   if ($SITE['providerShow']) {
       $display = true;
       $sideArrHwSw['provider'] = array('name' => langtransstr('Provider'), 'icon' => $SITE['providerJpg'], 'link' => $SITE['providerLink'], 'alt' => $SITE['providerTxt']);
   }
   $count = count($sideArrHwSw);
   if ($display == true && $count > 0) {
       echo '<div class="blockDiv" style="margin: 5px 5px 0px 5px;">' . PHP_EOL;
       $width = round(100 / $count);
       $styleTd = 'style="width: ' . $width . '%;"';
       $string1 = '';
       // the names of the items displayed
       $string2 = '';
       // the immages
       foreach ($sideArrHwSw as $key => $arr) {
           $string1 .= '<td ' . $styleTd . '><p>' . $arr['name'] . '<br />' . $arr['alt'] . '</p></td>' . PHP_EOL;
           $string2 .= '<td ' . $styleTd . '><p>
 <a href="' . $arr['link'] . '" target="_blank">';
           if ($doIcons == 'yes') {
开发者ID:shakaran,项目名称:weatherpro,代码行数:31,代码来源:wsBottom.php

示例3: ws_message

    $SITE['wsModules'][$pageFile] = 'this file loaded instead of ' . $pageName;
}
ws_message('<!-- module ' . $pageFile . ' ==== ' . $SITE['wsModules'][$pageFile] . ' -->');
#-------------------------------------------------------------------------------
# Settings:
#
$frameHeight = '1600px';
#
#-------------------------------------------------------------------------------------------------
$wnCode = $SITE['mesoID'];
//  Here the code of your Weather Network is inserted
$wnName = $SITE['mesoName'];
// and here the name of your Weahter Network
$wnScript = '../' . $SITE['mesoID'] . '-mesomap/' . $SITE['mesoID'] . '-mesomap-testpage.php';
#
if (file_exists($wnScript)) {
    $script_ok = true;
} else {
    $script_ok = false;
}
#
echo '<div class="blockDiv">' . PHP_EOL;
echo '<h3 class="blockHead">' . langtransstr($wnName) . '</h3>' . PHP_EOL;
if ($script_ok) {
    echo '<iframe src="' . $wnScript . '" style ="width:100%; height: ' . $frameHeight . ';"></iframe>' . PHP_EOL;
} else {
    echo '<h3 style="text-align: center;">Script not found: ' . $wnScript . '</h3>' . PHP_EOL;
}
echo '</div>' . PHP_EOL;
# ----------------------  version history
# 3.20 2015-08-26 release 2.8 version
开发者ID:shakaran,项目名称:weatherpro,代码行数:31,代码来源:wnGeneralFrame.php

示例4: langtransstr

}
if (isset($SITE['pages']['wsWuGraphs'])) {
    $graphbtn = $SITE['pages']['wsWuGraphs'];
    $graphbtntxt = langtransstr("Graphs for Last 48 hrs");
}
if (isset($SITE['pages']['trends'])) {
    $hilowbtn = $SITE['pages']['trends'];
    $hilowbtntxt = langtransstr('Trends - Records');
}
if (isset($SITE['pages']['historyv3'])) {
    $alarmbtn = $timebtn = $SITE['pages']['historyv3'];
    $alarmbtntxt = $timebtntxt = langtransstr('Annual Data');
}
$donebtn = './index.php';
// done button
$donebtntxt = langtransstr("Return to Homepage");
############################################################################
$fcsticon = c_get_fcsticon($vpforecast_en);
$moonage = $ws['lunarAge'];
$latitude = $SITE['latitude'];
$moonic = c_get_moon($moonage, $latitude);
$console_credit = '
Based on script by <a target="_blank" href="http://www.axelvold.net">Axelvold\'s weather &amp; Photo</a> and <a target="_blank" href="http://www.stenestad-vader.com/">Stenestads Vader</a><br />
Modification by  <a target="_blank" href="http://www.nordicweather.net/">Weatherstation Pertteli</a> and <a target="_blank" href="http://www.lokaltvader.se/">Saro/Budskars Vader</a><br />
Graphics, icons and code revised by <a target="_blank" href="http://silveracorn.co.nz/weather/">Silver Acorn Weather</a><span style="font-size:7px; color:gray">&nbsp;v2.3.0</span><br /><br />
Adapted for this template by<br /><a target="_blank" href="http://leuven-template.eu"> Leuven Template - Wim van der Kuil</a>
';
// END Settings
$page_title = 'My console';
#
?>
开发者ID:shakaran,项目名称:weatherpro,代码行数:31,代码来源:davconvp2_v3.php

示例5: langtransstr

$links['software'][] = 'http://www.afterten.com/products/weathertracker/     |MAC Win        |Weather tracker                |http://www.afterten.com/support/ ';
#$links['software'][]    = 'xx    |en     |xx    |xx ';
$links['scripts'][] = 'http://leuven-template.eu/?lang=en            ||Leuven-template       |';
$links['scripts'][] = 'http://saratoga-weather.org/scripts.php       ||Saratoga-Weather.org  |';
$links['scripts'][] = 'http://www.carterlake.org/weatherphp.php      ||Carterlake.org        |';
$links['scripts'][] = 'http://www.jcweather.us/scripts.php           ||Jcweather.us          |';
$links['scripts'][] = 'http://www.642weather.com/weather/scripts.php ||Long Beach Weather    |';
$links['scripts'][] = 'http://www.tnetweather.com/scripts.php        ||TNETWeather.com       |';
#$links['scripts'][]    = 'xx    ||xx    |';
#
#-----------------------------------------------------------------------
$text_website = langtransstr('Website');
$text_forum = langtransstr('Forum');
echo '<div class="blockDiv" style="text-align: center;">' . PHP_EOL;
foreach ($chapters as $key => $description) {
    echo '<h3 class="blockHead">' . langtransstr($chapters[$key]) . '</h3>
<br />' . PHP_EOL;
    foreach ($links[$key] as $key2 => $info) {
        if (trim($info == '')) {
            continue;
        }
        list($url, $language, $description, $forum) = explode('|', $info . '||');
        echo '' . trim($description) . '&nbsp;&nbsp;';
        if (trim($language) != '') {
            echo '(' . trim($language) . ')&nbsp;&nbsp;' . PHP_EOL;
        }
        if (trim($url) != '') {
            echo '<a href="' . trim($url) . '"   title="' . trim($description) . '" target="_blank">' . $text_website . '</a>&nbsp;&nbsp;' . PHP_EOL;
        }
        if (trim($forum) != '') {
            echo '<a href="' . trim($forum) . '" title="' . $text_forum . '" target="_blank">' . $text_forum . '</a>' . PHP_EOL;
开发者ID:shakaran,项目名称:weatherpro,代码行数:31,代码来源:links.php

示例6: langtransstr

echo langtransstr('inside');
?>
</label>
	</td>
	<td>
		<div id="tip_4">
			<canvas id="canvas_hum" ></canvas>
		</div>
		<input id="rad_hum1" type="radio" name="rad_hum" value="out" checked onclick="doHum(this);">
		<label id="lab_hum1" for="rad_hum1"><?php 
echo langtransstr('outside');
?>
</label>
		<input id="rad_hum2" type="radio" name="rad_hum" value="in" onclick="doHum(this);">
		<label id="lab_hum2" for="rad_hum2"><?php 
echo langtransstr('inside');
?>
</label>
	</td>
	<td>
		<div id="tip_5" >
			<canvas id="canvas_baro" ></canvas>
		</div>
	</td>
<?php 
if ($count == 0) {
    # only 6 dials to display
    echo '</tr>
<tr>' . PHP_EOL;
}
?>
开发者ID:shakaran,项目名称:weatherpro,代码行数:31,代码来源:gaugeSmall.php

示例7: elseif

    $height = '1000px';
    $color = 'white';
} elseif ($s == 'awekas') {
    $width = '640px';
    $height = '700px';
    $color = 'transparent';
} elseif ($s == 'pws') {
    $width = '900px';
    $height = '1200px';
    $color = 'white';
} elseif ($s == 'wow') {
    $width = '960px';
    $height = '2200px';
    $color = 'white';
} else {
    $width = '100%';
    $height = '2200px';
    $color = 'transparent';
}
echo '<div class="blockDiv" style="background-color: ' . $color . ';">' . PHP_EOL;
echo '<h3 class="blockHead">' . langtransstr('Our weatherinformation as shown on') . ' ' . $arrPartners[$s]['name'] . '&nbsp;&nbsp;
<a href="' . $arrPartners[$s]['webLink'] . '" target="_blank">
<img src="./img/submit.png" style="margin: 1px; vertical-align: middle; width: 15px;" alt="link to ' . $arrPartners[$s]['name'] . '" title="link to ' . $arrPartners[$s]['name'] . '">
</a>
</h3>
<div style="text-align: center;">
<iframe src="' . $arrPartners[$s]['frame'] . '" name="targetFrame" style="width: ' . $width . '; margin: 0 auto; height: ' . $height . ';  border:0; vertical-align: bottom;">
Your browser cannot display iframes and or no support for Flash
</iframe>
</div>
</div>';
开发者ID:shakaran,项目名称:weatherpro,代码行数:31,代码来源:wsPartners.php

示例8: langtransstr

#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA
############################################################################
#	This document uses Tab 4 Settings
############################################################################
require_once "Settings.php";
require_once "common.php";
############################################################################
$TITLE = langtransstr($SITE['organ']) . " - " . langtransstr('NWS Alerts Details');
$showGizmo = true;
// set to false to exclude the gizmo
include "top.php";
############################################################################
?>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false&amp;libraries=weather"></script>
<script type="text/javascript" src="nws-alertmap.js"></script>
</head>
<body>
<?php 
############################################################################
include "header.php";
############################################################################
include "menubar.php";
############################################################################
开发者ID:shakaran,项目名称:weatherpro,代码行数:31,代码来源:wxnws-details.php

示例9: utf8tohtml

                            $result .= "&#{$unicode};";
                            $i += 3;
                        }
                    }
                }
            }
        }
    }
    return $result;
}
$hourTab = '<li><a href="./wxwugraphs/WUG-tabsh.php?lang=' . $scLang . '"><span>' . utf8tohtml($Thourly) . '</span></a></li>';
$hrTab = $hGraphs ? $hourTab : '';
echo '
<div class="blockDiv">

<h3 class="blockHead">' . langtransstr('Weather Underground History page Graphs') . '</h3>
<br />
  <table id="WUG-tabbed" style="width:100%;">
    <tr><td style="vertical-align:top;"> 
    <noscript>
    <div style="color:red; text-align:center;"><b>' . $Tnojs . '</b></div>
    </noscript>
       
    <div id="WU-MDswitch" style="position:relative;">
';
if ($langSwitch) {
    $thLang = $_GET['lang'] ? $_GET['lang'] : $_COOKIE['cookie_lang'];
    echo '<div id="lang-switch" style="text-align: right; /*margin-top: 0px; float: right*/ position:absolute; right:0; top:0px;">
  <form name="languages" action="#" style="font-size: 14px;">
  Language: <select name="langSelect" onchange="location.href=\'' . $_SERVER["PHP_SELF"] . '?lang=\'+document.languages.langSelect.value;">';
    include './wxwugraphs/languages/langlist.php';
开发者ID:shakaran,项目名称:weatherpro,代码行数:31,代码来源:wsWuGraphs.php

示例10: langtransstr

$image_width = '240';
// 240 is the normal width in pixels
#
$pageTitle = langtransstr('Precipitation radars');
$link_text = langtransstr('more information');
$title_text = langtransstr('Click image to enlarge');
#
#-----------------------------------------------------------------------
#                               EC radar --- regional
#-----------------------------------------------------------------------
$descGC_region = langtransstr('National radar');
$imgGC_region = 'http://weather.gc.ca/data/radar/detailed/temp_image/COMPOSITE_NAT/COMPOSITE_NAT_PRECIP_RAIN_' . $utc_date . '.GIF';
#-----------------------------------------------------------------------
#                              radar --- station 1
#-----------------------------------------------------------------------
$descGC_station = langtransstr('Radar station') . ' ' . $SITE['radarStation'];
$imgGC_station = 'http://weather.gc.ca/data/radar/detailed/temp_image/' . $SITE['radarStation'] . '/' . $SITE['radarStation'] . '_PRECIP_RAIN_' . $utc_date . '.GIF';
#-----------------------------------------------------------------------
# I realy mean it, no settings below this point
# Only change below if you realy know what you are doing.
# If in doubt, use a forum or the support site at http://leuven-template.eu/index.php
$link_to_page = $SITE['pages']['wsPrecipRadar'] . '&amp;lang=' . $lang . $extraP . $skiptopText;
$image_width = 1.0 * $image_width;
if ($image_width > 320 || $image_width < 100) {
    $image_width = '240';
}
$image_style = 'width: ' . $image_width . 'px; margin: 4px auto;  border: none; vertical-align: bottom;';
#
echo '<div class="blockDiv"><!-- rain_radar_canada_small -->
<table class="genericTable">
<tbody>
开发者ID:shakaran,项目名称:weatherpro,代码行数:31,代码来源:rain_radar_canada_small.php

示例11: sprintf

<td style="">' . sprintf("%01.1f", $ws['soilTempMaxMonth'][$i]) . '</td>
<td style = "border-right: 1px solid grey;">' . string_date($ws['soilTempMaxMonthTime'][$i], $SITE['dateMDFormat']) . '</td>';
    echo '
<td>' . string_date($ws['soilTempMinYearTime'][$i], $SITE['dateMDFormat']) . '</td>
<td style="">' . sprintf("%01.1f", $ws['soilTempMinYear'][$i]) . '</td>
<td style="">' . sprintf("%01.1f", $ws['soilTempMaxYear'][$i]) . '</td>
<td style = "border-right: 1px solid grey;">' . string_date($ws['soilTempMaxYearTime'][$i], $SITE['dateMDFormat']) . '</td>';
    echo '
<td>' . string_date($ws['soilTempMinAllTime'][$i], $SITE['dateOnlyFormat']) . '</td>
<td style="">' . sprintf("%01.1f", $ws['soilTempMinAll'][$i]) . '</td>
<td style="">' . sprintf("%01.1f", $ws['soilTempMaxAll'][$i]) . '</td>
<td>' . string_date($ws['soilTempMaxAllTime'][$i], $SITE['dateOnlyFormat']) . '</td>';
    echo '</tr>';
}
if (isset($ws['moistMinYearTime'])) {
    echo '<tr style="height: 15px;"><td class="blockHead"> </td><td colspan="13" class="blockHead">' . langtransstr('Soil Moisture') . '</td></tr>' . PHP_EOL;
    echo '<!-- loop for ' . $SITE['soilCount'] . ' sensors -->' . PHP_EOL;
    // sprintf("%01.1f", $money)
    for ($i = 1; $i <= $SITE['soilCount']; $i++) {
        echo '<tr>
<td style = "border-right: 1px solid grey;">' . $SITE['soilDepth_' . $i] . '</td>
<td>' . string_date($ws['moistMinMonthTime'][$i], $SITE['dateMDFormat']) . '</td>
<td style="">' . sprintf("%01.1f", $ws['moistMinMonth'][$i]) . '</td>
<td style="">' . sprintf("%01.1f", $ws['moistMaxMonth'][$i]) . '</td>
<td style = "border-right: 1px solid grey;">' . string_date($ws['moistMaxMonthTime'][$i], $SITE['dateMDFormat']) . '</td>';
        echo '
<td>' . string_date($ws['moistMinYearTime'][$i], $SITE['dateMDFormat']) . '</td>
<td style="">' . sprintf("%01.1f", $ws['moistMinYear'][$i]) . '</td>
<td style="">' . sprintf("%01.1f", $ws['moistMaxYear'][$i]) . '</td>
<td style = "border-right: 1px solid grey;">' . string_date($ws['moistMaxYearTime'][$i], $SITE['dateMDFormat']) . '</td>';
        echo '
开发者ID:shakaran,项目名称:weatherpro,代码行数:31,代码来源:soilTotals.php

示例12: ws_message

ws_message('<!-- module wsDashYrno.php (' . __LINE__ . '): loading ' . $script . ' -->');
if (!(include $script)) {
    return;
}
$styleborder = '';
$margin = ' margin: 10px 0px;';
$topWidth = ' width: ' . $defaultWidth . ';';
if ($chartsMeteogramHeight != '') {
    $chartsMeteogramHeight = 'height: ' . $chartsMeteogramHeight . ';';
}
if ($tableHeight != '') {
    $tableHeight = 'height: ' . $tableHeight . ';';
}
echo '<!-- output of wsDashYrno -->
<div class="blockDiv" style="">' . PHP_EOL;
echo '<div class="blockHead" >' . langtransstr('Weather Forecast') . ' (' . langtransstr('summary') . ')&nbsp;&nbsp;';
if ($fullpage_link != '') {
    $yrnoLink = $SITE['pages'][$yrno_page] . '&amp;lang=' . $lang . $extraP . $skiptopText;
    // pagenumber for full forecast page
    echo '<a href="' . $yrnoLink . '"><img src="./img/submit.png" style="margin:1px; vertical-align: middle;" alt="more information" title="more information"></a>';
}
echo '
</div>' . PHP_EOL;
#
if ($end_forecast == 0) {
    $times = true;
}
// errors retrieving forecast data
#
if ($yrno_times) {
    $style = 'class="blockHead" style="" ';
开发者ID:shakaran,项目名称:weatherpro,代码行数:31,代码来源:wsDashYrno.php

示例13: langtransstr

# 3.10 2015-06-21 release verion / removed url error
# -------------------------------------------------------------------------------------------------
if (!isset($skiptopText)) {
    $skiptopText = '';
}
if (!isset($SITE['pages']['gaugePage'])) {
    $link = '';
} else {
    $link = '<a href="' . $SITE['pages']['gaugePage'] . '&amp;lang=' . $lang . $lang . $skiptopText . '">
<img src="./img/submit.png" style="margin:1px; vertical-align: middle;" alt="more information" title="more information"></a>';
}
?>
<!-- steelseries start -->
<div class="blockDiv">
<h1 class="blockHead"><?php 
echo langtransstr('Live Weather Data') . ' ' . $link;
?>
</h1>
<table class="gaugeTable" style="width: 100%; padding 3px;">
<tr>
	<td>
		<div id="tip_0">
		  <canvas id="canvas_temp" ></canvas>
		</div>
	</td>
	<td>
		<div id="tip_4">
			<canvas id="canvas_hum" ></canvas>
		</div>
	</td>
	<td>
开发者ID:shakaran,项目名称:weatherpro,代码行数:31,代码来源:gaugeXsmall.php

示例14: langtransstr

    $link = '<a href="' . $SITE['pages']['incWdlive'] . '&amp;lang=' . $lang . '">
<img src="./img/submit.png" style="margin:1px; vertical-align: middle;" alt="more information" title="more information"></a>';
} else {
    $wdlHeight = '540px';
    $wdlWidth = '810px';
    $link = '';
}
$this_folder = './wdl/';
$this_config = $SITE['siteUrl'] . $SITE['clientrawDir'] . 'wdl-' . $lang . '-config.xml';
$default_config = $SITE['siteUrl'] . $SITE['clientrawDir'] . 'wdl-en-config.xml';
if (!file_exists($SITE['clientrawDir'] . 'wdl-' . $lang . '-config.xml')) {
    $this_config = $default_config;
}
#
$this_url = $this_folder . 'wdlv6_09.swf' . '?' . $this_config;
$head_text = langtransstr('Live Data') . ' ' . langtransstr('by WD live') . ' ' . $link;
?>
<!-- WD Live  -->
<div class="blockDiv">
<h3 class="blockHead"><?php 
echo $head_text;
?>
</h3>
  <div style = "width: <?php 
echo $wdlWidth;
?>
; padding: 5px; margin: 0px auto;">
	<div id="wdlwidget" >
<?php 
if (!isset($flash_replaced) && !isset($conflictSteel)) {
    $flash_replaced = true;
开发者ID:shakaran,项目名称:weatherpro,代码行数:31,代码来源:incWdlive.php

示例15: langtransstr

}
$form .= '  <input type="hidden" style="padding: 0px; border: 0px; margin: 0px" name="p" value="' . $p . '">
  <input type="submit" id="flight_simple" name="flight_simple" value="Normal view" ' . $style . '>' . PHP_EOL;
if ($page == 'normal') {
    $style = $style_selected;
} else {
    $style = $style_other;
}
$form .= '  <input type="submit" id="flight_normal" name="flight_normal" value="complex view" ' . $style . '>
</form>' . PHP_EOL;
$page_title = langtransstr('Flight radar');
if ($page == 'normal') {
    $frame_link = 'http://www.flightradar24.com/' . $SITE['latitude'] . ',' . $SITE['longitude'] . '/7';
} else {
    $frame_link = 'http://www.flightradar24.com/simple_index.php?lat=' . $SITE['latitude'] . '&amp;lon=' . $SITE['longitude'] . '&amp;z=6';
}
#
$link1 = 'http://www.flightradar24.com/';
$credit = langtransstr('Map created by') . ' Flightradar24.com <a href="' . $link1 . '" target="_blank"><img src="./img/submit.png" 
style="margin: 1px; vertical-align: bottom;" alt="more information" title="more information"></a>';
#
echo '<!-- flight radar -->
<div class="blockDiv">
<h3 class="blockHead">' . $page_title . '</h3>
<div class="blockHead">' . $form . '</div>
<iframe src="' . $frame_link . '" style="border: none; width: 100%; height: 800px; margin: 0px; padding: 0px; vertical-align: bottom;"></iframe>
<h3 class="blockHead" style="padding: 4px;">' . $credit . '</h3>
</div>
<!-- end of flightradar script -->' . PHP_EOL;
# ----------------------  version history
# 3.20 2015-07-29 release 2.8 version
开发者ID:shakaran,项目名称:weatherpro,代码行数:31,代码来源:ws_flight_radar.php


注:本文中的langtransstr函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。