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


PHP FunctionsEdit::editFieldInteger方法代碼示例

本文整理匯總了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>
開發者ID:tronsmit,項目名稱:webtrees,代碼行數:31,代碼來源:descendancy.php

示例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>
開發者ID:tronsmit,項目名稱:webtrees,代碼行數:31,代碼來源:pedigree.php

示例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>
開發者ID:tronsmit,項目名稱:webtrees,代碼行數:31,代碼來源:fanchart.php


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