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


PHP CommonFunctions::getCssClassForMessage方法代码示例

本文整理汇总了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));
 }
开发者ID:noikiy,项目名称:owaspbwa,代码行数:11,代码来源:CommonFunctionsTest.php

示例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 
}
?>
开发者ID:googlecode-mirror,项目名称:pucit-orangehrm,代码行数:30,代码来源:projectReport.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 
开发者ID:googlecode-mirror,项目名称:pucit-orangehrm,代码行数:31,代码来源:personalHspSummary.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 
}
?>
开发者ID:googlecode-mirror,项目名称:pucit-orangehrm,代码行数:29,代码来源:listHspPaymentRequestsUsed.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 
}
?>
开发者ID:noikiy,项目名称:owaspbwa,代码行数:31,代码来源:jobVacancy.php


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