本文整理汇总了PHP中Fisharebest\Webtrees\Functions\FunctionsEdit::editFieldInteger方法的典型用法代码示例。如果您正苦于以下问题:PHP FunctionsEdit::editFieldInteger方法的具体用法?PHP FunctionsEdit::editFieldInteger怎么用?PHP FunctionsEdit::editFieldInteger使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Fisharebest\Webtrees\Functions\FunctionsEdit
的用法示例。
在下文中一共展示了FunctionsEdit::editFieldInteger方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
<td rowspan="3" class="topbottombar">
<input type="submit" value="<?php
echo I18N::translate('view');
?>
">
</td>
</tr>
<tr>
<td class="descriptionbox">
<?php
echo I18N::translate('Generations');
?>
</td>
<td class="optionbox">
<?php
echo FunctionsEdit::editFieldInteger('generations', $controller->generations, 2, $WT_TREE->getPreference('MAX_DESCENDANCY_GENERATIONS'));
?>
</td>
</tr>
<tr>
<td class="descriptionbox">
<?php
echo I18N::translate('Show details');
?>
</td>
<td class="optionbox">
<?php
echo FunctionsEdit::twoStateCheckbox('show_full', $controller->showFull());
?>
</td>
</tr>
示例2: array
</th>
</tr>
<tr>
<td class="optionbox">
<input class="pedigree_form" data-autocomplete-type="INDI" type="text" id="rootid" name="rootid"
size="3" value="<?php
echo $controller->root->getXref();
?>
">
<?php
echo FunctionsPrint::printFindIndividualLink('rootid');
?>
</td>
<td class="optionbox center">
<?php
echo FunctionsEdit::editFieldInteger('PEDIGREE_GENERATIONS', $controller->generations, 3, $WT_TREE->getPreference('MAX_PEDIGREE_GENERATIONS'));
?>
</td>
<td class="optionbox center">
<?php
echo FunctionsEdit::selectEditControl('orientation', array(0 => I18N::translate('Portrait'), 1 => I18N::translate('Landscape'), 2 => I18N::translate('Oldest at top'), 3 => I18N::translate('Oldest at bottom')), null, $controller->orientation);
?>
</td>
<td class="optionbox center">
<?php
echo FunctionsEdit::twoStateCheckbox('show_full', $controller->showFull());
?>
</td>
</tr>
</tbody>
</table>
示例3:
echo I18N::translate('view');
?>
">
</td>
</tr>
<tr>
<td class="descriptionbox">
<label for="generations">
<?php
echo I18N::translate('Generations');
?>
</label>
</td>
<td class="optionbox">
<?php
echo FunctionsEdit::editFieldInteger('generations', $controller->generations, 2, 9);
?>
</td>
<td class="descriptionbox">
<label for="fan_width">
<?php
echo I18N::translate('Zoom');
?>
</label>
</td>
<td class="optionbox">
<input type="text" size="3" id="fan_width" name="fan_width" value="<?php
echo $controller->fan_width;
?>
"> %
</td>