本文整理汇总了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;
?>
示例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'];
?>
" />
示例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"';
}
?>
>
示例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"';
}