當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Computer::showFormHeader方法代碼示例

本文整理匯總了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));
 }
開發者ID:glpi-project,項目名稱:glpi,代碼行數:55,代碼來源:computer.class.php


注:本文中的Computer::showFormHeader方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。