本文整理汇总了PHP中CommonFunctions::getCssClassForMessage方法的典型用法代码示例。如果您正苦于以下问题:PHP CommonFunctions::getCssClassForMessage方法的具体用法?PHP CommonFunctions::getCssClassForMessage怎么用?PHP CommonFunctions::getCssClassForMessage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CommonFunctions
的用法示例。
在下文中一共展示了CommonFunctions::getCssClassForMessage方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: testGetCssClassForMessage
/**
* Test case for getCssClassForMessage method
*/
public function testGetCssClassForMessage()
{
$this->assertEquals("success", CommonFunctions::getCssClassForMessage("ADD_SUCCESS"));
$this->assertEquals("failure", CommonFunctions::getCssClassForMessage("JUST_ANOTHER_Failure"));
$this->assertEquals("required", CommonFunctions::getCssClassForMessage("REQUIRED"));
$this->assertEquals("", CommonFunctions::getCssClassForMessage(""));
$this->assertEquals("", CommonFunctions::getCssClassForMessage(null));
}
示例2: isset
echo $lang_Common_Back;
?>
"
onmouseover="moverButton(this)" onmouseout="moutButton(this)" onclick="backToDefineProjectReport();" />
</div>
<div class="outerbox">
<div class="mainHeading"><h2><?php
echo $lang_Time_ProjectReportTitle;
?>
</h2></div>
<?php
$message = isset($this->getArr['msg']) ? $this->getArr['msg'] : (isset($this->getArr['message']) ? $this->getArr['message'] : null);
if (isset($_GET['message'])) {
$message = $_GET['message'];
$messageType = CommonFunctions::getCssClassForMessage($message);
$message = "lang_Time_Errors_" . $message;
?>
<div class="messagebar">
<span class="<?php
echo $messageType;
?>
"><?php
echo isset(${$message}) ? ${$message} : "";
?>
</span>
</div>
<?php
}
?>
示例3:
$summary = $records[1];
}
?>
<h2>
<?php
echo "{$lang_Benefits_PersonalHspSummary} : {$year}";
if (isset($summary[0])) {
echo " : {$summary[0]['employee_name']}";
}
?>
<hr/>
</h2>
<?php
if (isset($_GET['message'])) {
$expString = $_GET['message'];
$col_def = CommonFunctions::getCssClassForMessage($expString);
$expString = 'lang_Benefits_Errors_' . $expString;
?>
<font class="<?php
echo $col_def;
?>
" size="-1" face="Verdana, Arial, Helvetica, sans-serif">
<?php
echo ${$expString};
?>
</font>
<?php
}
?>
<script type="text/javascript">
var commonAction = '?benefitcode=Benefits&year=<?php
示例4: cancelAddPayPeriod
function cancelAddPayPeriod() {
window.history.go(-1);
}
</script>
<div class="outerbox">
<div class="mainHeading"><h2><?php
echo $lang_Benefits_HealthSavingsPlanUsedList . " : " . $empFullName;
?>
</h2></div>
<?php
if (isset($_GET['message'])) {
$expString = $_GET['message'];
$messageType = CommonFunctions::getCssClassForMessage($expString);
$expString = 'lang_Benefits_Errors_' . $expString;
?>
<div class="messagebar">
<span class="<?php
echo $messageType;
?>
"><?php
echo ${$expString};
?>
</span>
</div>
<?php
}
?>
示例5: isset
echo $styleSheet;
?>
/pictures/btn_back.gif';"
onMouseOver="this.src='../../themes/<?php
echo $styleSheet;
?>
/pictures/btn_back_02.gif';"
src="../../themes/<?php
echo $styleSheet;
?>
/pictures/btn_back.gif" onClick="goBack();">
</div>
<?php
$message = isset($_GET['message']) ? $_GET['message'] : null;
if (isset($message)) {
$col_def = CommonFunctions::getCssClassForMessage($message);
$message = "lang_Common_" . $message;
?>
<div class="message">
<font class="<?php
echo $col_def;
?>
" size="-1" face="Verdana, Arial, Helvetica, sans-serif">
<?php
echo isset(${$message}) ? ${$message} : "";
?>
</font>
</div>
<?php
}
?>