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


PHP TimeDate::millisecToSec方法代码示例

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


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

示例1:

)</span></label></td>
			<?php 
if ($data['gameInfos']['curr'] != null) {
    ?>
				<td class="value">
					<input class="text width2" type="text" name="CurrTimeAttackLimit" id="CurrTimeAttackLimit" readonly="readonly" value="<?php 
    echo TimeDate::millisecToSec($data['gameInfos']['curr']['TimeAttackLimit']);
    ?>
" />
				</td>
			<?php 
}
?>
			<td class="value">
				<input class="text width2" type="number" min="0" name="NextTimeAttackLimit" id="NextTimeAttackLimit" value="<?php 
echo TimeDate::millisecToSec($data['gameInfos']['next']['TimeAttackLimit']);
?>
" />
			</td>
			<td class="preview"></td>
		</tr>
		<?php 
echo AdminServUI::getGameInfosField($data['gameInfos'], 'Start synchronization period', 'TimeAttackSynchStartPeriod');
?>
	</table>
</fieldset>

<fieldset id="gameMode-team" class="gameinfos_team" hidden="hidden">
	<legend><img src="<?php 
echo AdminServConfig::$PATH_RESOURCES;
?>
开发者ID:keverage,项目名称:adminserv,代码行数:31,代码来源:gameinfos-gamemode.tpl.php

示例2:

							<select class="width2" name="hotSeatGameMode" id="hotSeatGameMode">
								<?php 
echo AdminServUI::getGameModeList($data['matchSettings']['hotseat']['GameMode']);
?>
							</select>
						</td>
						<td class="preview"></td>
					</tr>
					<tr>
						<td class="key"><label for="hotSeatTimeLimit"><?php 
echo Utils::t('Time limit');
?>
</label></td>
						<td class="value">
							<input class="text width2" type="number" min="0" name="hotSeatTimeLimit" id="hotSeatTimeLimit" value="<?php 
echo TimeDate::millisecToSec($data['matchSettings']['hotseat']['TimeLimit']);
?>
" />
						</td>
						<td class="preview"></td>
					</tr>
					<tr>
						<td class="key"><label for="hotSeatCountRound"><?php 
echo Utils::t('Rounds count');
?>
</label></td>
						<td class="value">
							<input class="text width2" type="number" min="0" name="hotSeatCountRound" id="hotSeatCountRound" value="<?php 
echo $data['matchSettings']['hotseat']['RoundsCount'];
?>
" />
开发者ID:keverage,项目名称:adminserv,代码行数:31,代码来源:maps-creatematchset.tpl.php

示例3:

    if ($data['gameInfos']['next']['FinishTimeout'] == 1) {
        echo ' selected="selected"';
    }
    ?>
><?php 
    echo Utils::t('Auto (based on map)');
    ?>
</option>
						<option value="more"><?php 
    echo Utils::t('Choose time');
    ?>
</option>
					</select>
					<input class="text width2" type="number" min="0" name="NextFinishTimeoutValue" id="NextFinishTimeoutValue" value="<?php 
    if ($data['gameInfos']['next']['FinishTimeout'] > 1) {
        echo TimeDate::millisecToSec($data['gameInfos']['next']['FinishTimeout']);
    }
    ?>
"<?php 
    if ($data['gameInfos']['next']['FinishTimeout'] < 2) {
        echo ' hidden="hidden"';
    }
    ?>
 />
				</td>
				<td class="preview"<?php 
    if ($data['gameInfos']['next']['FinishTimeout'] < 2) {
        echo ' hidden="hidden"';
    }
    ?>
>
开发者ID:keverage,项目名称:adminserv,代码行数:31,代码来源:gameinfos-general.tpl.php

示例4:

    echo Utils::t('sec');
    ?>
)</span></label></td>
							<td class="value col2">
								<input class="text width1" type="text" name="CurrentCallVoteTimeOut" id="CurrentCallVoteTimeOut" readonly="readonly" value="<?php 
    echo TimeDate::millisecToSec($data['srvOpt']['CurrentCallVoteTimeOut']);
    ?>
" />
							</td>
							<td class="key col3"><label for="NextCallVoteTimeOut"><?php 
    echo Utils::t('Next value');
    ?>
</label></td>
							<td class="value">
								<input class="text width1" type="number" min="0" name="NextCallVoteTimeOut" id="NextCallVoteTimeOut" value="<?php 
    echo TimeDate::millisecToSec($data['srvOpt']['NextCallVoteTimeOut']);
    ?>
" />
							</td>
							<td class="preview"></td>
						</tr>
						<tr>
							<td class="key"><label for="CallVoteRatio"><?php 
    echo Utils::t('Vote ratio');
    ?>
</label></td>
							<td class="value" colspan="4">
								<select name="callVoteRatioDisabled" id="callVoteRatioDisabled"<?php 
    if ($data['srvOpt']['CallVoteRatio'] > -1) {
        echo ' hidden="hidden"';
    }
开发者ID:keverage,项目名称:adminserv,代码行数:31,代码来源:srvopts.tpl.php


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