Example #1
0
				</tr>
				<tr>
					<th scope="row"><label for="settings[max_size]"><?php 
_e('Max. Image size:', $this->PID);
?>
</label></th>
					<td>
					<?php 
if ($this->allowAdmin('max_size')) {
    ?>
						<input type="text" name="settings[max_size]" size="6" value="<?php 
    echo $settings['max_size'];
    ?>
" class="code" /> Kb.<br />
						<span class="setting-description"><?php 
    printf(__('Maximum size for each image file an user can upload in Kb. System max is: %s', $this->PID), ak_return_units(ak_max_upload()));
    ?>
</span>
					<?php 
}
?>
					</td>
				</tr>
				<tr>
					<th scope="row"><label for="settings[megapixels]"><?php 
_e('Max. Image megapixels:', $this->PID);
?>
</label></th>
					<td>
					<?php 
if ($this->allowAdmin('megapixels')) {
Example #2
0
    ?>
				<h3 style="text-align:center;"><?php 
    _e('You already have uploaded the maximum allowed images.', $this->PID);
    ?>
</h3>
				<p style="text-align:center;"><?php 
    printf(__('The upload limit is set to %d images.', $this->PID), $settings['max_number']);
    ?>
			<?php 
} else {
    ?>
				<table width="100%" class="form-table">
					<tr>
						<td colspan="2" style="text-align:center;">
							<span class="setting-description"><?php 
    printf(__('Maximum accepted sizes are %1$s and %2$s megapixels.', $this->PID), ak_return_units($max_size), $settings['megapixels']);
    echo ' ';
    printf(__('The upload limit is set to %d images.', $this->PID), $settings['max_number']);
    ?>
</span>
						</td>
					</tr>
			    <?php 
    $n = 0;
    for ($i = $cur_num; $i < $settings['max_number'] && $i < $settings['concurrent_up'] + $cur_num; $i++) {
        ?>
					<tr>
						<th scope="row"><?php 
        printf(__('Upload image [%d]:', $this->PID), ++$n);
        ?>
</th>