本文整理汇总了PHP中GerenciaComponentPage::addcomponent方法的典型用法代码示例。如果您正苦于以下问题:PHP GerenciaComponentPage::addcomponent方法的具体用法?PHP GerenciaComponentPage::addcomponent怎么用?PHP GerenciaComponentPage::addcomponent使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GerenciaComponentPage
的用法示例。
在下文中一共展示了GerenciaComponentPage::addcomponent方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: FormatMoney
$table .= " <td></td>";
$table .= " <td style=\"border-bottom: 1px;border-bottom-color: black;border-style: solid;\">" . FormatMoney($total_efectivo_real) . "</td>";
$table .= " <td></td>";
$table .= " </tr>";
#------------------------------------
$table .= " <tr>";
$table .= " <td></td>";
$table .= " <td></td>";
$table .= " <td></td>";
$table .= " <td></td>";
$table .= " <td></td>";
$table .= " <td></td>";
$table .= " <td></td>";
$table .= " <td></td>";
$table .= " </tr>";
#------------------------------------
$flujo_efectivo = $total_efectivo_real - $total_efectivo_disponible;
$color = $flujo_efectivo >= 0 ? "black" : "red";
$table .= " <tr style = \"background:#C4E8F8;\">";
$table .= " <td colspan = \"7\"><b>Flujo de efectivo (Corto):</b></td>";
$table .= " <td><b style = \"color:{$color};\">" . FormatMoney(abs($flujo_efectivo)) . "</b></td>";
$table .= " </tr>";
#------------------------------------
$table .= "</table>";
$page->addComponent($table);
$submit = new ApiActionComponent("api/sucursal/corte");
$submit->SetCaption("Realizar corte");
$submit->setSuccessRedirection("corte.lista.php");
$submit->setArguments(array("fecha_final" => time(), "id_sucursal" => $_GET["sid"], "total_efectivo" => 99));
$page->addcomponent($submit);
$page->render();