当前位置: 首页>>代码示例>>PHP>>正文


PHP FunctionsEdit::createEditForm方法代码示例

本文整理汇总了PHP中Fisharebest\Webtrees\Functions\FunctionsEdit::createEditForm方法的典型用法代码示例。如果您正苦于以下问题:PHP FunctionsEdit::createEditForm方法的具体用法?PHP FunctionsEdit::createEditForm怎么用?PHP FunctionsEdit::createEditForm使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Fisharebest\Webtrees\Functions\FunctionsEdit的用法示例。


在下文中一共展示了FunctionsEdit::createEditForm方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: switch

     $controller->pageHeader()->addInlineJavascript('closePopupAndReloadParent();');
     return;
 }
 $controller->setPageTitle($record->getFullName() . ' - ' . I18N::translate('Edit'))->pageHeader();
 echo '<div id="edit_interface-page">';
 echo '<h4>', $controller->getPageTitle(), '</h4>';
 FunctionsPrint::initializeCalendarPopup();
 echo '<form name="editform" method="post" action="edit_interface.php" enctype="multipart/form-data">';
 echo '<input type="hidden" name="ged" value="', $WT_TREE->getNameHtml(), '">';
 echo '<input type="hidden" name="action" value="update">';
 echo '<input type="hidden" name="fact_id" value="', $fact_id, '">';
 echo '<input type="hidden" name="xref" value="', $xref, '">';
 echo '<input type="hidden" name="prev_action" value="edit">';
 echo Filter::getCsrf();
 echo '<table class="facts_table">';
 FunctionsEdit::createEditForm($record, $edit_fact);
 echo keep_chan($record);
 echo '</table>';
 $level1type = $edit_fact->getTag();
 switch ($record::RECORD_TYPE) {
     case 'REPO':
         // REPO:NAME facts may take a NOTE (but the REPO record may not).
         if ($level1type === 'NAME') {
             FunctionsEdit::printAddLayer('NOTE');
             FunctionsEdit::printAddLayer('SHARED_NOTE');
         }
         break;
     case 'FAM':
     case 'INDI':
         // FAM and INDI records have real facts.  They can take NOTE/SOUR/OBJE/etc.
         if ($level1type !== 'SEX' && $level1type !== 'NOTE' && $level1type !== 'ALIA') {
开发者ID:jflash,项目名称:webtrees,代码行数:31,代码来源:edit_interface.php

示例2: switch

     $controller->pageHeader()->addInlineJavascript('closePopupAndReloadParent();');
     return;
 }
 $controller->setPageTitle($record->getFullName() . ' - ' . I18N::translate('Edit'))->pageHeader();
 echo '<div id="edit_interface-page">';
 echo '<h2>', $controller->getPageTitle(), '</h2>';
 FunctionsPrint::initializeCalendarPopup();
 echo '<form name="editform" method="post" action="edit_interface.php" enctype="multipart/form-data">';
 echo '<input type="hidden" name="ged" value="', $WT_TREE->getNameHtml(), '">';
 echo '<input type="hidden" name="action" value="update">';
 echo '<input type="hidden" name="fact_id" value="', $fact_id, '">';
 echo '<input type="hidden" name="xref" value="', $xref, '">';
 echo '<input type="hidden" name="prev_action" value="edit">';
 echo Filter::getCsrf();
 echo '<table class="facts_table">';
 FunctionsEdit::createEditForm($edit_fact);
 echo keep_chan($record);
 echo '</table>';
 $level1type = $edit_fact->getTag();
 switch ($record::RECORD_TYPE) {
     case 'REPO':
         // REPO:NAME facts may take a NOTE (but the REPO record may not).
         if ($level1type === 'NAME') {
             FunctionsEdit::printAddLayer('NOTE');
             FunctionsEdit::printAddLayer('SHARED_NOTE');
         }
         break;
     case 'FAM':
     case 'INDI':
         // FAM and INDI records have real facts. They can take NOTE/SOUR/OBJE/etc.
         if ($level1type !== 'SEX' && $level1type !== 'NOTE' && $level1type !== 'ALIA') {
开发者ID:tronsmit,项目名称:webtrees,代码行数:31,代码来源:edit_interface.php


注:本文中的Fisharebest\Webtrees\Functions\FunctionsEdit::createEditForm方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。