本文整理汇总了PHP中StringUtils::getMessage方法的典型用法代码示例。如果您正苦于以下问题:PHP StringUtils::getMessage方法的具体用法?PHP StringUtils::getMessage怎么用?PHP StringUtils::getMessage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类StringUtils
的用法示例。
在下文中一共展示了StringUtils::getMessage方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: session_start
session_start();
$_SESSION["userlogged"] = $user;
if (isset($_SESSION['httpUrl'])) {
header("Location:" . $_SESSION['httpUrl']);
} else {
header("Location:cpcbMap.php");
}
} else {
$messageText = "Invalid User Name or Password";
}
}
} else {
$messageText = "Invalid User Name or Password";
}
if ($messageText != "") {
$div = StringUtils::getMessage("Login", $messageText, true);
}
}
?>
<!DOCTYPE html>
<html>
<head>
<link type="text/css" href="admin/css/cupertino/jquery-ui-1.8.14.custom.css" rel="stylesheet" />
<link type="text/css" href="admin/css/custom.css" rel="stylesheet" />
</head>
<body>
<table align="center" width="50%" border="0">
<tr>
示例2: buildShowUsersDialog
<?php
require_once 'IConstants.inc';
require_once $ConstantsArray['dbServerUrl'] . "FormValidator//validator.php";
require $ConstantsArray['dbServerUrl'] . "DataStoreMgr//UserDataStore.php";
require $ConstantsArray['dbServerUrl'] . "Utils//StringUtils.php";
$msg = "";
$UDS = UserDataStore::getInstance();
if ($_POST["formAction"] != "") {
$UDS->deleteBySeq($_POST['editSeq']);
$msg = StringUtils::getMessage("Location", "User deleted successfully", false);
}
$Users = $UDS->FindAllManagers();
?>
<!DOCTYPE html>
<html>
<head>
<?php
include "_jsAdminInclude.php";
?>
<script type="text/javascript">
var showFolders_FoldersJSON = null;
var showFolders_UsersJSON = null;
var showFolders_UserDivId = 0;
$(function(){
buildShowUsersDialog(false);
buildFoldersJson();
});
</script>
示例3:
if ($oldPassword != $earlierPassword) {
if ($messageText != null && $messageText != "") {
$messageText = $messageText . "<br/>" . "-Earlier Password does not match with the one in the database";
} else {
$messageText = "-Earlier Password does not match with the one in the database";
}
}
}
if ($messageText != null && $messageText != "") {
$div = StringUtils::getMessage("Change Passowrd", $messageText, true);
} else {
$newPassword = SecurityUtil::Encode($newPassword);
$user->setPassword($newPassword);
$UDS->updatePassword($user);
$messageText = "Password updated successfully";
$div = StringUtils::getMessage("", $messageText, false);
}
}
?>
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<?php
include "leftButtons.php";
示例4: header
$arr['locSeq'] = $user->getLocationSeq();
$_SESSION["userlogged"] = $arr;
header("Location:indexjspl.php?locSeq=" . $locationSeq);
} else {
$messageText = "Invalid User Name or Password";
}
}
} else {
$messageText = "Invalid User Name or Password";
}
if ($messageText != "") {
$div = StringUtils::getMessage("Login", $messageText, true);
}
}
if ($_GET['err'] == 'true') {
$div = StringUtils::getMessage("Data Viewing", "Please login to view information", true);
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="http://www.svennerberg.com/examples/google_maps_3/css/style.css" type="text/css" media="all" />
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
</head>
<?php
include "_jsInclude.php";
?>
示例5: array_push
require_once $ConstantsArray['dbServerUrl'] . "Utils/DropDownUtils.php";
require $ConstantsArray['dbServerUrl'] . "Utils//StringUtils.php";
$msg = "";
$HVRDS = HighValueRuleDataStore::getInstance();
$FDS = FolderDataStore::getInstance();
$LDS = LocationDataStore::getInstance();
$locSeq = $managerSession['locSeq'];
$locationSeqs = $LDS->FindLocationsByUser($managerSession["seq"]);
if (!in_array($locSeq, $locationSeqs)) {
array_push($locationSeqs, $locSeq);
}
$folders = $FDS->FindByLocation(implode(",", $locationSeqs));
$folderSeq = $_GET["folderseq"];
if ($_POST["formAction"] != "" && $_POST["formAction"] == "delete") {
$HVRDS->deleteBySeq($_POST['editSeq']);
$msg = StringUtils::getMessage("HighValue Rule", "Rule deleted successfully", false);
}
if ($_GET["call"] == "getRules") {
if (!empty($folderSeq)) {
$folderSeqs = $folderSeq;
} else {
$folderSeqs = array_map(create_function('$o', 'return $o->getSeq();'), $folders);
$folderSeqs = implode(",", $folderSeqs);
}
$rules = $HVRDS->FindArrByFolder($folderSeqs);
$ruleJson = json_encode($rules);
echo $ruleJson;
return;
}
?>
<!DOCTYPE html>
示例6:
require_once $ConstantsArray['dbServerUrl'] . "FormValidator//validator.php";
require $ConstantsArray['dbServerUrl'] . "DataStoreMgr//FolderDataStore.php";
require $ConstantsArray['dbServerUrl'] . "DataStoreMgr//LocationDataStore.php";
require $ConstantsArray['dbServerUrl'] . "Utils//FileSystemUtils.php";
require $ConstantsArray['dbServerUrl'] . "Utils//StringUtils.php";
$LDS = LocationDataStore::getInstance();
$msg = "";
if ($_POST["formAction"] == "delete") {
$pathL = $_POST['locationPath'];
$isLocationEmpty = FileSystemUtils::isDirEmpty($pathL);
if ($isLocationEmpty) {
$LDS->deleteBySeq($_POST['editSeq']);
FileSystemUtils::delete_NestedDirectory($pathL);
$msg = StringUtils::getMessage("Location", "Location deleted successfully", false);
} else {
$msg = StringUtils::getMessage("Delete Location", "-The Location that you are trying to delete is related to folders.", true);
}
//Delte folder from location
}
$locations = $LDS->FindAll();
?>
<!DOCTYPE html>
<html>
<head>
<?php
include "_jsAdminInclude.php";
?>
</head>
<body>