Fixed PHP warnings.
This commit is contained in:
parent
0ef4510990
commit
1b766d9e3e
|
@ -798,31 +798,39 @@ function html_print_extended_select_for_time ($name, $selected = '',
|
|||
* @return string HTML code if return parameter is true.
|
||||
*/
|
||||
function html_print_extended_select_for_cron ($hour = '*', $minute = '*', $mday = '*', $month = '*', $wday = '*', $return = false) {
|
||||
|
||||
|
||||
# Hours
|
||||
for ($i = 0; $i < 24; $i++) {
|
||||
$hours[$i] = $i;
|
||||
}
|
||||
|
||||
|
||||
# Minutes
|
||||
for ($i = 0; $i < 60; $i+=5) {
|
||||
$minutes[$i] = $i;
|
||||
}
|
||||
|
||||
|
||||
# Month days
|
||||
for ($i = 0; $i < 31; $i++) {
|
||||
$mdays[$i] = $i;
|
||||
}
|
||||
|
||||
|
||||
# Months
|
||||
for ($i = 0; $i < 12; $i++) {
|
||||
$months[$i] = date('F', mktime (0, 0, 0, $i, 1));
|
||||
}
|
||||
|
||||
|
||||
# Days of the week
|
||||
$wdays = array(__('Sunday'), __('Monday'), __('Tuesday'), __('Wednesday'), __('Thursday'), __('Friday'), __('Saturday'));
|
||||
|
||||
$wdays = array(
|
||||
__('Sunday'),
|
||||
__('Monday'),
|
||||
__('Tuesday'),
|
||||
__('Wednesday'),
|
||||
__('Thursday'),
|
||||
__('Friday'),
|
||||
__('Saturday'));
|
||||
|
||||
# Print selectors
|
||||
$table = new stdClass();
|
||||
$table->id = 'cron';
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox data';
|
||||
|
@ -831,7 +839,7 @@ function html_print_extended_select_for_cron ($hour = '*', $minute = '*', $mday
|
|||
$table->head[2] = __('Month day');
|
||||
$table->head[3] = __('Month');
|
||||
$table->head[4] = __('Week day');
|
||||
|
||||
|
||||
$table->data[0][0] = html_print_select ($hours, 'hour', $hour, '', __('Any'), '*', true, false, false);
|
||||
$table->data[0][1] = html_print_select ($minutes, 'minute', $minute, '', __('Any'), '*', true, false, false);
|
||||
$table->data[0][2] = html_print_select ($mdays, 'mday', $mday, '', __('Any'), '*', true, false, false);
|
||||
|
@ -1012,7 +1020,10 @@ function html_print_div ($options, $return = false) {
|
|||
*
|
||||
* @return string HTML code if return parameter is true.
|
||||
*/
|
||||
function html_print_input_password ($name, $value, $alt = '', $size = 50, $maxlength = 255, $return = false, $disabled = false) {
|
||||
function html_print_input_password ($name, $value, $alt = '',
|
||||
$size = 50, $maxlength = 255, $return = false, $disabled = false,
|
||||
$required = false) {
|
||||
|
||||
if ($maxlength == 0)
|
||||
$maxlength = 255;
|
||||
|
||||
|
|
|
@ -487,6 +487,7 @@ function snmp_browser_print_oid ($oid = array(), $custom_action = '',
|
|||
function snmp_browser_print_container ($return = false, $width = '100%', $height = '500px', $display = '') {
|
||||
|
||||
// Target selection
|
||||
$table = new stdClass();
|
||||
$table->width = '100%';
|
||||
$table->class = 'databox filters';
|
||||
$table->size = array ();
|
||||
|
@ -506,10 +507,11 @@ function snmp_browser_print_container ($return = false, $width = '100%', $height
|
|||
'2c' => 'v. 2c',
|
||||
'3' => 'v. 3'),
|
||||
'snmp_browser_version', '', 'checkSNMPVersion();', '', '', true, false, false, '');
|
||||
|
||||
|
||||
$table->data[0][4] = html_print_button(__('Browse'), 'browse', false, 'snmpBrowse()', 'class="sub search" style="margin-top:0px;"', true);
|
||||
|
||||
// SNMP v3 options
|
||||
$table3 = new stdClass();
|
||||
$table3->width = '100%';
|
||||
|
||||
$table3->valign[0] = '';
|
||||
|
@ -533,6 +535,7 @@ function snmp_browser_print_container ($return = false, $width = '100%', $height
|
|||
'authNoPriv' => __('Auth and not privacy method'), 'authPriv' => __('Auth and privacy method')), 'snmp3_browser_security_level', '', '', '', '', true);
|
||||
|
||||
// Search tools
|
||||
$table2 = new stdClass();
|
||||
$table2->width = '100%';
|
||||
$table2->class = 'databox filters';
|
||||
$table2->size = array ();
|
||||
|
|
Loading…
Reference in New Issue