本文整理汇总了PHP中CommonFunctions::formatSciNO方法的典型用法代码示例。如果您正苦于以下问题:PHP CommonFunctions::formatSciNO方法的具体用法?PHP CommonFunctions::formatSciNO怎么用?PHP CommonFunctions::formatSciNO使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CommonFunctions
的用法示例。
在下文中一共展示了CommonFunctions::formatSciNO方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getMinMaxCurrency
function getMinMaxCurrency($value, $salGrd)
{
$emp_view_controller = new EmpViewController();
$common_func = new CommonFunctions();
$temp[0] = $salGrd;
$temp[1] = $_GET['id'];
$currlist = $emp_view_controller->xajaxObjCall($temp, 'BAS_FOR_PIM', 'currency');
for ($c = 0; $c < count($currlist); $c++) {
if (isset($currlist[$c][2]) && $currlist[$c][2] == $value) {
break;
}
}
$response = new xajaxResponse();
if ($value === '0') {
$response->addAssign('txtMinCurrency', 'value', '');
$response->addAssign('divMinCurrency', 'innerHTML', '-N/A-');
$response->addAssign('txtMaxCurrency', 'value', '');
$response->addAssign('divMaxCurrency', 'innerHTML', '-N/A-');
} else {
if (isset($currlist[$c])) {
$response->addAssign('txtMinCurrency', 'value', $currlist[$c][3]);
$response->addAssign('divMinCurrency', 'innerHTML', $common_func->formatSciNO($currlist[$c][3]));
$response->addAssign('txtMaxCurrency', 'value', $currlist[$c][5]);
$response->addAssign('divMaxCurrency', 'innerHTML', $common_func->formatSciNO($currlist[$c][5]));
}
}
return $response->getXML();
}
示例2:
for ($c = 0; $assCurrency && count($assCurrency) > $c; $c++) {
if ($assCurrency[$c][0] == $editAssCurrency[0][1]) {
echo $assCurrency[$c][1];
}
}
?>
</span>
<br class="clear"/>
<label for="txtMinSal" ><?php
echo $lang_hrEmpMain_minpoint;
?>
</label>
<input type="text" disabled="disabled" name="txtMinSal" id="txtMinSal"
class="formInputText" value="<?php
echo $common_func->formatSciNO($editAssCurrency[0][2]);
?>
"/>
<input type="hidden" name="empMinSal" id="empMinSal" value="<?php
echo $editAssCurrency[0][5];
?>
">
<br class="clear"/>
<label for="txtMaxSal" ><?php
echo $lang_hrEmpMain_maxpoint;
?>
</label>
<input type="text" disabled="disabled" name="txtMaxSal" id="txtMaxSal"
class="formInputText" value="<?php
echo $common_func->formatSciNO($editAssCurrency[0][3]);