コード例 #1
0
?>
:</td>
					<td width="*" class="box-sel" align="center">
						<?php 
if (!isset($config_ext['quota']['select_quota']) || $config_ext['quota']['select_quota'] == 0) {
    echo '<input type="text" size="35" name="frm_quota_trans_mb" value="' . @$config_ext['quota']['trans_mb'] . '" align="right" style="width: 190px;">';
} else {
    echo '<select name="frm_quota_trans_mb" style="width: 192px;">';
    if (@$config_ext['quota']['trans_mb'] == 0) {
        echo '<option value="0" selected>' . $language['configure']['quota_no_limit'] . '</option>';
    } else {
        echo '<option value="0">' . $language['configure']['quota_no_limit'] . '</option>';
    }
    foreach ($config_quota_select_datasize as $count) {
        echo '<option value="' . $count['v'] . '"';
        if (float2int(mb2byte(@$config_ext['quota']['trans_mb'])) == $count['v']) {
            echo ' selected';
        }
        echo '>' . $count['d'] . '</option>';
    }
    echo '</select>';
}
?>
					</td>
					<td width="*" class="box-sel-head"><?php 
echo $GLOBALS['language']['configure']['quota_trans_files'];
?>
:</td>
					<td width="*" class="box-sel" align="right">
						<?php 
if (!isset($config_ext['quota']['select_quota']) || $config_ext['quota']['select_quota'] == 0) {
コード例 #2
0
    ?>
:</td>
						<td width="*" class="box-sel" align="center">
							<?php 
    if (!isset($config_ext['quota']['select_quota']) || $config_ext['quota']['select_quota'] == 0) {
        echo '<input type="text" size="35" name="frm_quota_trans_mb" value="' . byte2mb(@$quota_data['total']['bytes_xfer_avail']) . '" align="right" style="width: 190px;">';
    } else {
        echo '<select name="frm_quota_trans_mb" style="width: 192px;">';
        if (@$quota_data['total']['bytes_xfer_avail'] == 0) {
            echo '<option value="0" selected>' . $language['configure']['quota_no_limit'] . '</option>';
        } else {
            echo '<option value="0">' . $language['configure']['quota_no_limit'] . '</option>';
        }
        foreach ($config_quota_select_datasize as $count) {
            echo '<option value="' . $count['v'] . '"';
            if (float2int(@$quota_data['total']['bytes_xfer_avail']) == $count['v']) {
                echo ' selected';
            }
            echo '>' . $count['d'] . '</option>';
        }
        echo '</select>';
    }
    ?>
						</td>
						<td width="*" class="box-sel-head"><?php 
    echo $GLOBALS['language']['configure']['quota_trans_files'];
    ?>
:</td>
						<td width="*" class="box-sel" align="right">
							<?php 
    if (!isset($config_ext['quota']['select_quota']) || $config_ext['quota']['select_quota'] == 0) {