本文整理汇总了PHP中_mb函数的典型用法代码示例。如果您正苦于以下问题:PHP _mb函数的具体用法?PHP _mb怎么用?PHP _mb使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了_mb函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getWmc
function getWmc($wmcId = null)
{
$user = new User(Mapbender::session()->get("mb_user_id"));
$wmcIdArray = $user->getWmcByOwner();
//getAccessibleWmcs();
if (!is_null($wmcId) && !in_array($wmcId, $wmcIdArray)) {
abort(_mb("You are not allowed to access this WMC."));
}
return $wmcIdArray;
}
示例2: getLayer
function getLayer($layerId = null)
{
$user = new User(Mapbender::session()->get("mb_user_id"));
$wmsIdArray = $user->getOwnedWms();
if (!is_array($wmsIdArray) || count($wmsIdArray) === 0) {
abort(_mb("No metadata sets available."));
}
$wmsId = wms::getWmsIdByLayerId($layerId);
if (is_null($wmsId) || !in_array($wmsId, $wmsIdArray)) {
abort(_mb("You are not allowed to access WMS " . $wmsId));
}
return;
}
示例3: getFeaturetype
function getFeaturetype($featuretypeId = null)
{
$user = new User(Mapbender::session()->get("mb_user_id"));
$wfsIdArray = $user->getOwnedWfs();
if (!is_array($wfsIdArray) || count($wfsIdArray) === 0) {
abort(_mb("No metadata sets available."));
}
$wfsId = wfs::getWfsIdByFeaturetypeId($featuretypeId);
if (is_null($wfsId) || !in_array($wfsId, $wfsIdArray)) {
abort(_mb("You are not allowed to access this WFS " . $wfsId));
}
return;
}
示例4: translateTree
function translateTree($tree)
{
if (is_object($tree)) {
foreach ($tree as $key => $value) {
$tree->{$key} = translateTree($value);
}
} else {
if (is_array($tree)) {
// strings with arguments, like 'Found %d results'
$tree = call_user_func_array("_mb", $tree);
} else {
if (is_string($tree)) {
$tree = _mb($tree);
}
}
}
return $tree;
}
示例5: translateTree
function translateTree($tree)
{
if (is_object($tree)) {
foreach ($tree as $key => $value) {
$tree->{$key} = translateTree($value);
}
} else {
if (is_array($tree)) {
foreach ($tree as $key => $value) {
$tree[$key] = translateTree($value);
}
} else {
if (is_string($tree)) {
$tree = _mb($tree);
}
}
}
return $tree;
}
示例6: _mb
$msg_obj["buttonLabelLineContinueOn"] = _mb("finish line");
$msg_obj["buttonLabelPolygonOff"] = _mb("add polygon");
$msg_obj["buttonLabelPolygonOn"] = _mb("close polygon");
$msg_obj["buttonLabelMoveBasepointOff"] = _mb("move basepoint");
$msg_obj["buttonLabelMoveBasepointOn"] = _mb("move basepoint");
$msg_obj["buttonLabelInsertBasepointOff"] = _mb("Insert basepoint");
$msg_obj["buttonLabelInsertBasepointOn"] = _mb("Insert basepoint");
$msg_obj["buttonLabelDeleteBasepointOff"] = _mb("Delete basepoint");
$msg_obj["buttonLabelDeleteBasepointOn"] = _mb("Delete basepoint");
$msg_obj["buttonLabelClearListOff"] = _mb("clear list of geometries");
$msg_obj["buttonLabelClearListOn"] = _mb("clear list of geometries");
$msg_obj["buttonLabelMergeOff"] = _mb("Merge two polygons into a single polygon (will be added to the geometry list)");
$msg_obj["buttonLabelMergeOn"] = _mb("Merge two polygons into a single polygon (will be added to the geometry list)");
$msg_obj["buttonLabelSplitOff"] = _mb("Split a polygon/line by a line (the new polygons/lines will be added to the geometry list)");
$msg_obj["buttonLabelSplitOn"] = _mb("Split a polygon/line by a line (the new polygons/lines will be added to the geometry list)");
$msg_obj["buttonLabelDifferenceOff"] = _mb("Combine two polygons (to create en- and exclave or to compute the difference)");
$msg_obj["buttonLabelDifferenceOn"] = _mb("Split geometries");
$msg_obj["buttonLabelMergeLineOff"] = _mb("Merge two lines into a single line");
$msg_obj["buttonLabelMergeLineOn"] = _mb("Merge two lines into a single line");
$msg_obj["buttonDig_wfs_title"] = _mb("save / update / delete");
$msg_obj["buttonDig_remove_title"] = _mb("remove from workspace");
$msg_obj["buttonDig_removeDb_title"] = _mb("remove from database");
$msg_obj["buttonDig_clone_title"] = _mb("clone this geometry");
$msg_obj["closePolygon_title"] = _mb("click the first basepoint to close the polygon");
$msg_obj["measureTagLabelCurrent"] = _mb("Current: ");
$msg_obj["measureTagLabelTotal"] = _mb("Total: ");
$msg_obj["digitizeDefaultGeometryName"] = _mb("new");
$json = new Mapbender_JSON();
$output = $json->encode($msg_obj);
header("Content-type:application/x-json; charset=utf-8");
echo $output;
示例7: mod_rubber
eventAfterMeasure.register(function () {
return mod_rubber();
});
function mod_rubber(){
var str = "<div onmouseup='mod_rubber_go()' onmouseover='mod_measure_timeout()' onmouseout='mod_measure_go()'><img src='"+mod_rubber_img.src+"' style='cursor:pointer' title='"+mod_rubber_img.title+"'></div>";
return str;
}
function mod_rubber_go(){
mod_measure_delete();
}
var mod_getArea_img = new Image();
mod_getArea_img.src = "../img/button_gray/getArea_off.gif";
mod_getArea_img.title = '<?php
echo _mb("Get area");
?>
';
eventAfterMeasure.register(function () {
return mod_getArea();
});
function mod_getArea(){
var str = "<div id='getAreaButton' style='position:absolute;top:50px' onmouseup='mod_getArea_go()' ";
str += "onmouseover='mod_measure_timeout()' onmouseout='mod_measure_disableTimeout()'><img src='"+mod_getArea_img.src+"' style='cursor:pointer' title='"+mod_getArea_img.title+"'></div>";
return str;
}
function mod_getArea_go(){
if(mod_measure_RX[mod_measure_RX.length -1] == mod_measure_RX[0] && mod_measure_RY[mod_measure_RY.length -1] == mod_measure_RY[0]){
var ind = getMapObjIndexByName(mod_measure_target);
var url = "../php/mod_evalArea.php?x=";
示例8: _mb
echo "<tr>";
echo "<td>" . _mb("Country") . ": </td>";
echo "<td>";
echo "<input type='text' size='30' name='country' value='" . htmlentities($country, ENT_QUOTES, "UTF-8") . "'>";
echo "</td>";
echo "</tr>";
#voicetelephone
echo "<tr>";
echo "<td>" . _mb("Voicetelephone") . ": </td>";
echo "<td>";
echo "<input type='text' size='30' name='voicetelephone' value='" . htmlentities($voicetelephone, ENT_QUOTES, "UTF-8") . "'>";
echo "</td>";
echo "</tr>";
#facsimiletelephone
echo "<tr>";
echo "<td>" . _mb("Facsimiletelephone") . ": </td>";
echo "<td>";
echo "<input type='text' size='30' name='facsimiletelephone' value='" . htmlentities($facsimiletelephone, ENT_QUOTES, "UTF-8") . "'>";
echo "</td>";
echo "</tr>";
#email
echo "<tr>";
echo "<td>Email: </td>";
echo "<td>";
echo "<input type='text' size='30' name='email' value='" . htmlentities($email, ENT_QUOTES, "UTF-8") . "'>";
echo "</td>";
echo "</tr>";
#logo
echo "<tr>";
echo "<td>Logo: </td>";
echo "<td>";
示例9: _mb
$html .= '<h3><a href="#">' . _mb("Interfaces") . '</a></h3>';
$html .= '<div style="height:300px">';
}
if ($layout == 'tabs') {
$html .= '<div id="tabs-6">';
}
if ($layout == 'plain') {
$html .= '<h3>' . _mb("Interfaces") . '</h3>';
$html .= '<div>';
}
$html .= '<p>';
$html .= '<fieldset><legend>' . _mb("Metadata") . '</legend>';
$html .= $tableBegin;
//exchange mdtype html with iso19139
$queryNew = str_replace("mdtype=html", "mdtype=iso19139", $_SERVER['QUERY_STRING']);
$html .= $t_a . "<b>" . _mb("ISO19139") . "</b>: <a href='" . $url . "' target='_blank'>" . _mb("Metadata") . "</a><a href='" . $_SERVER['PHP_SELF'] . "?" . $queryNew . "&validate=true' target='_blank'><img style='border: none;' src = '../img/misc/icn_inspire_validate.png' title='" . _mb("INSPIRE Validator") . "'></a>" . $t_c;
$html .= $tableEnd;
$html .= '</fieldset>';
$html .= '</p>';
$html .= '</div>';
//element
//***************************************************************************
$html .= '</div>';
//accordion
$html .= '</div>';
//demo
$html .= '</body>';
$html .= '</html>';
echo $html;
die;
break;
示例10: _mb
</td>
</tr>
<tr >
<td>
<input type='submit' id='attrPanel_Submit' value='<?php
echo _mb("Start query");
?>
'>
</td>
<td>
<input onClick='deleteFilterText();' type='button' value='<?php
echo _mb("Reset filter");
?>
'>
</td>
<td>
<div name='displayCheckbox' id='displayCheckbox' style='width:180px'>
<input type='checkbox' name='exportToShape' id='exportToShape'><?php
echo _mb("Export data");
?>
</div>
</td>
</tr>
</table>
</div>
</form>
<form name='wfsForm' id='wfsForm' onsubmit='return makeRequest()'></form>
<div name='progressWheel' id='progressWheel' style='width:180px'></div>
</body>
</html>
示例11: _mb
/*insert all profiles in selectbox*****************************************************************/
echo "<div class='text2'>" . _mb("Registrating institutions") . ":</div>";
echo "<select style='background:#ffffff' onchange='updateMail(this, user)' class='select2' multiple='multiple' id='selecteduser' name='selected_user[]' size='{$fieldHeight}' >";
for ($i = 0; $i < $cnt_user; $i++) {
echo "<option value='" . $user_id[$i] . "' title='" . $user_email[$i] . "'>" . $user_name[$i] . "</option>";
}
echo "</select>";
/*Button****************************************************************************************************/
echo "<div class='button1'><input type='button' value='==>' onClick='validate(\"insert\")'></div>";
echo "<input type='hidden' name='insert'>";
echo "<div class='button2'><input type='button' value='<==' onClick='validate(\"remove\")'></div>";
echo "<input type='hidden' name='remove'>";
/*filterbox****************************************************************************************/
echo "<input type='text' value='' class='filter3' id='filter3' name='filter3' onkeyup='filterUser(document.getElementById(\"removeuser\"),groupuser,this.value);'/>";
/*insert container_profile_dependence and container_group_dependence in selectbox******************/
echo "<div class='text3'>" . _mb("My (metadata-)provider") . ":</div>";
echo "<select style='background:#ffffff' onchange='updateMail(this, user)' class='select3' multiple='multiple' name='remove_user[]' id='removeuser' size='{$fieldHeight}' >";
for ($i = 0; $i < $cnt_group_user; $i++) {
echo "<option value='" . $user_id_group[$i] . "' title='" . $user_email_group[$i] . "'>" . $user_name_group[$i] . "</option>";
}
echo "</select>";
echo "</form>";
?>
<script type="text/javascript">
//document.forms[0].selected_group.focus();
var user=[];
<?php
for ($i = 0; $i < $cnt_user; $i++) {
echo "user[" . $i . "]=[];\n";
echo "user[" . $i . "]['id']='" . $user_id[$i] . "';\n";
示例12: db_result
$comment[$cnt] = db_result($res, $cnt, "status_comment");
$timestamp_begin = db_result($res, $cnt, "timestamp_begin");
$timestamp_end = db_result($res, $cnt, "timestamp_end");
$upload_url[$cnt] = db_result($res, $cnt, "upload_url");
if ($status[$cnt] == '0' || $status[$cnt] == '1') {
$response_time[$cnt] = strval($timestamp_end - $timestamp_begin) . " s";
} else {
$response_time[$cnt] = "n/a";
}
$cnt++;
}
$str = "<span style='font-size:30'>" . _mb("Monitoring results") . "</span><hr><br>\n";
//Monitoring Ergebnisse
$str .= "<b>" . $wms_id . "</b><br>" . $admin->getWmsTitleByWmsId($wms_id) . "<br><br><br>\n";
$str .= "<table cellpadding=10 cellspacing=0 border=0>";
$str .= "<tr bgcolor='#dddddd'><th align='left'>date</th><th align='left' colspan = 2>" . _mb("Status") . "</th><th align='center'>" . _mb("Response time") . "</th></tr>";
//Status Antwortzeit
for ($k = 0; $k < count($upload_id); $k++) {
$img = "stop.png";
if ($status[$k] == 0) {
$img = "wait.png";
} elseif ($status[$k] == 1) {
$img = "go.png";
}
if (fmod($k, 2) == 1) {
$str .= "\n\t\t<tr bgcolor='#e6e6e6'>";
} else {
$str .= "\n\t\t<tr bgcolor='#f0f0f0'>";
}
$str .= "\n\t\t\t<td>" . date("F j, Y, G:i:s", $upload_id[$k]) . "</td>";
$str .= "\n\t\t\t<td><a href='" . $upload_url[$k] . "' target=_blank><img title='Connect to service' border=0 src = '../img/trafficlights/" . $img . "'></a></td>";
开发者ID:bfpi,项目名称:klarschiff-frontend-mit-mapbender,代码行数:31,代码来源:mod_monitorCapabilities_read_single.php
示例13: checkSrs
if(ready.done !== true) {
ready.done = true;
ready.trigger();
}
}
function checkSrs(){
//check SRS
var ind = parent.getMapObjIndexByName("mapframe1");
var submit = document.getElementById("submitButton");
var patternString = parent.mb_mapObj[ind].getSRS().toUpperCase();
var pattern = new RegExp(patternString);
if(global_wfsConfObj[global_selectedWfsConfId].featuretype_srs.match(pattern) == -1){
var msg = '<?php
echo _mb("Different EPSG of map and wfs featuretype, no spatial request possible!");
?>
';
msg += parent.mb_mapObj[ind].getSRS()+" - "+global_wfsConfObj[global_selectedWfsConfId].featuretype_srs;
alert(msg);
//disable Submit Button
if(submit)submit.disabled = true;
}
else{
if(submit)submit.disabled = false;
}
}
function clearFilter(){
parent.Mapbender.modules[frameName].events.onFormReset.trigger({
示例14: dirname
* This program is dual licensed under the GNU General Public License
* and Simplified BSD license.
* http://svn.osgeo.org/mapbender/trunk/mapbender/license/license.txt
*/
<?php
require_once dirname(__FILE__) . "/../php/mb_validateSession.php";
include '../include/dyn_php.php';
//generate array
$projections = explode(',', $projections);
$projectionsValue = array();
$projectionsName = array();
for ($i = 0; $i < count($projections); $i++) {
$projectionList = explode(';', $projections[$i]);
if (count($projectionList) > 1) {
$projectionsValue[$i] = $projectionList[0];
$projectionsName[$i] = _mb($projectionList[1]);
} else {
$projectionsValue[$i] = $projectionList[0];
$projectionsName[$i] = $projectionList[0];
}
}
?>
(function ($) {
$.fn.ajaxChange = function () {
var args = arguments;
return this.each(function () {
if (this.tagName.toUpperCase() !== "SELECT") {
return;
}
var $this = $(this);
示例15: function
}
};
/**
* Generates the configuration select element from the gui element vars
* mbPrintConfigFilenames and mbPrintConfigTitles
*/
var buildConfigSelector = function () {
var str = "";
str += '<label class="print_label" style="cursor:text;" for="printPDF_template">Druckvorlage</label>\n';
str += '<select id="printPDF_template" style="cursor:pointer;margin-bottom:6px;" title="Auswahlfeld für Druckvorlage" name="printPDF_template" size="1">\n';
for (var i = 0; i < mbPrintConfigFilenames.length; i++) {
str += '<option value="'+mbPrintConfigFilenames[i]+'">'+mbPrintConfigTitles[i]+'</option>\n';
}
str += '</select>Druckrahmen<img id="printPDF_handle" style="cursor:pointer;margin-left:40px;width:20px;height:20px;vertical-align:middle;" src="../print/img/shape_handles.png" title="<?php
echo htmlentities(_mb("Druckrahmen ein-/ausblenden"), ENT_QUOTES, "UTF-8");
?>
">\n';
if (str) {
$("#printPDF_selector").append(str).find("#printPDF_template").change(function () {
printObj.loadConfig(mbPrintConfigFilenames[this.selectedIndex], function () {
printObj.createPrintBox()
});
});
$("#printPDF_handle").click(function () {
printObj.createPrintBox();
});
$("#printPDF_working").bgiframe({
src: "BLOCKED SCRIPT'<html></html>';",
width: 200,