本文整理匯總了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]);