本文整理汇总了PHP中Computer::showFormHeader方法的典型用法代码示例。如果您正苦于以下问题:PHP Computer::showFormHeader方法的具体用法?PHP Computer::showFormHeader怎么用?PHP Computer::showFormHeader使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Computer
的用法示例。
在下文中一共展示了Computer::showFormHeader方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: showOperatingSystem
/**
* Print the computer's operating system form
*
* @param $comp Computer object
*
* @since version 9.1
*
* @return Nothing (call to classes members)
**/
static function showOperatingSystem(Computer $comp)
{
global $DB;
$ID = $comp->fields['id'];
$colspan = 4;
echo "<div class='center'>";
$comp->initForm($ID);
$comp->showFormHeader(['formtitle' => false]);
echo "<tr class='headerRow'><th colspan='" . $colspan . "'>";
echo __('Operating system');
echo "</th></tr>";
echo "<tr class='tab_bg_1'>";
echo "<td>" . __('Name') . "</td>";
echo "<td>";
OperatingSystem::dropdown(array('value' => $comp->fields["operatingsystems_id"]));
echo "</td>";
echo "<td>" . __('Version') . "</td>";
echo "<td >";
OperatingSystemVersion::dropdown(array('value' => $comp->fields["operatingsystemversions_id"]));
echo "</td>";
echo "</tr>";
echo "<tr class='tab_bg_1'>";
echo "<td>" . __('Architecture') . "</td>";
echo "<td >";
OperatingSystemArchitecture::dropdown(array('value' => $comp->fields["operatingsystemarchitectures_id"]));
echo "</td>";
echo "<td>" . __('Service pack') . "</td>";
echo "<td >";
OperatingSystemServicePack::dropdown(array('value' => $comp->fields["operatingsystemservicepacks_id"]));
echo "</td></tr>";
echo "<tr class='tab_bg_1'>";
echo "<td>" . __('Kernel version') . "</td>";
echo "<td >";
Html::autocompletionTextField($comp, 'os_kernel_version');
echo "</td>";
echo "<td>" . __('Product ID') . "</td>";
echo "<td >";
Html::autocompletionTextField($comp, 'os_licenseid');
echo "</td></tr>";
echo "<tr class='tab_bg_1'>";
echo "<td>" . __('Serial number') . "</td>";
echo "<td >";
Html::autocompletionTextField($comp, 'os_license_number');
echo "</td><td colspan='2'></td></tr>";
$comp->showFormButtons(array('candel' => false, 'formfooter' => false));
}