Skip to content

Commit cef4bd8

Browse files
committed
-issue: align attribute is deprecated, use class instead
1 parent c118c0f commit cef4bd8

16 files changed

+44
-44
lines changed

about.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@
3131
?>
3232

3333
<tr class='tableHeader'>
34-
<td class='tableSubHeaderColumn' colspan="2">
34+
<td class='tableSubHeaderColumn' colspan='2'>
3535
<font class='textSubHeaderDark'><?php print get_cacti_version_text(); ?></font>
3636
</td>
3737
</tr>
3838
<tr>
39-
<td valign="top" class="odd" class="textArea">
40-
<div style='float:right;'><a href="http://www.cacti.net/"><img align="right" src="images/cacti_about_logo.gif" alt="raXnet"></a></div>
39+
<td valign='top' class='odd' class='textArea'>
40+
<div style='float:right;'><a href='http://www.cacti.net/'><img class='right' src='images/cacti_about_logo.gif' alt='raXnet'></a></div>
4141

4242
<p><?php print __('Cacti is designed to be a complete graphing solution based on the RRDtool\'s framework. Its goal is to make a network administrator\'s job easier by taking care of all the necessary details necessary to create meaningful graphs.'); ?></p>
4343

aggregate_graphs.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ function form_actions() {
397397
</td>
398398
</tr>\n";
399399

400-
$save_html = "<tr><td colspan='2' align='right'><input type='button' class='ui-button ui-corner-all ui-widget' value='" . __esc('Cancel'). "' onClick='cactiReturnTo()'>&nbsp;<input type='submit' class='ui-button ui-corner-all ui-widget' value='" . __esc('Continue') . "' title='" . __esc('Delete Graph(s)') . "'></td></tr>";
400+
$save_html = "<tr><td colspan='2' class='right'><input type='button' class='ui-button ui-corner-all ui-widget' value='" . __esc('Cancel'). "' onClick='cactiReturnTo()'>&nbsp;<input type='submit' class='ui-button ui-corner-all ui-widget' value='" . __esc('Continue') . "' title='" . __esc('Delete Graph(s)') . "'></td></tr>";
401401
} else {
402402
print "<tr>
403403
<td class='textArea'>

automation_snmp.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ function automation_snmp_item_remove_confirm() {
335335
</td>
336336
</tr>
337337
<tr>
338-
<td align='right'>
338+
<td class='right'>
339339
<input type='button' class='ui-button ui-corner-all ui-widget' id='cancel' value='<?php print __esc('Cancel');?>' onClick='$("#cdialog").dialog("close");' name='cancel'>
340340
<input type='button' class='ui-button ui-corner-all ui-widget' id='continue' value='<?php print __esc('Continue');?>' name='continue' title='<?php print __esc('Remove SNMP Item');?>'>
341341
</td>

cdef.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ function cdef_item_remove_confirm() {
342342
</td>
343343
</tr>
344344
<tr>
345-
<td align='right'>
345+
<td class='right'>
346346
<input type='button' class='ui-button ui-corner-all ui-widget' id='cancel' value='<?php print __esc('Cancel');?>' onClick='$("#cdialog").dialog("close");$(".deleteMarker").blur();' name='cancel'>
347347
<input type='button' class='ui-button ui-corner-all ui-widget' id='continue' value='<?php print __esc('Continue');?>' name='continue' title='<?php print __esc('Remove CDEF Item');?>'>
348348
</td>

color.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ function color_import() {
369369
<td width='50%'><font class='textEditTitle'><?php print __('Import Colors from Local File'); ?></font><br>
370370
<?php print __('Please specify the location of the CSV file containing your Color information.');?>
371371
</td>
372-
<td align='left'>
372+
<td class='left'>
373373
<div>
374374
<label class='import_label' for='import_file'><?php print __('Select a File'); ?></label>
375375
<input class='import_button' type='file' id='import_file' name='import_file'>
@@ -381,7 +381,7 @@ function color_import() {
381381
<td width='50%'><font class='textEditTitle'><?php print __('Overwrite Existing Data?');?></font><br>
382382
<?php print __('Should the import process be allowed to overwrite existing data? Please note, this does not mean delete old rows, only update duplicate rows.');?>
383383
</td>
384-
<td align='left'>
384+
<td class='left'>
385385
<input type='checkbox' name='allow_update' id='allow_update'><?php print __('Allow Existing Rows to be Updated?');?>
386386
</td><?php
387387

color_templates_items.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ function aggregate_color_item_remove_confirm() {
260260
</td>
261261
</tr>
262262
<tr>
263-
<td align='right'>
263+
<td class='right'>
264264
<input type='button' class='ui-button ui-corner-all ui-widget' id='cancel' value='<?php print __esc('Cancel');?>' onClick='$("#cdialog").dialog("close");' name='cancel'>
265265
<input type='button' class='ui-button ui-corner-all ui-widget' id='continue' value='<?php print __esc('Continue');?>' name='continue' title='<?php print __esc('Remove Color Item');?>'>
266266
</td>

data_source_profiles.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ function profile_item_remove_confirm() {
339339
</td>
340340
</tr>
341341
<tr>
342-
<td align='right'>
342+
<td class='right'>
343343
<input type='button' class='ui-button ui-corner-all ui-widget' id='cancel' value='<?php print __esc('Cancel');?>' onClick='$("#cdialog").dialog("close");' name='cancel'>
344344
<input type='button' class='ui-button ui-corner-all ui-widget' id='continue' value='<?php print __esc('Continue');?>' name='continue' title='<?php print __esc('Remove Data Source Profile RRA');?>'>
345345
</td>

graph.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
$aggregate_url = aggregate_build_children_url(get_request_var('local_graph_id'), $graph_start, $graph_end, $rra['id']);
129129
?>
130130
<tr class='tableRowGraph'>
131-
<td align='center'>
131+
<td class='center'>
132132
<table>
133133
<tr>
134134
<td>
@@ -333,12 +333,12 @@ function initializeGraph() {
333333
</td>
334334
</tr>
335335
<tr class='tableRowGraph'>
336-
<td align='center'>
336+
<td class='center'>
337337
<table>
338338
<tr>
339-
<td align='center'>
339+
<td class='center'>
340340
<div class='graphWrapper' id='wrapper_<?php print $graph['local_graph_id']?>' rra_id='<?php print $rra['id'];?>' graph_width='<?php print $graph['width'];?>' graph_height='<?php print $graph['height'];?>' title_font_size='<?php print ((read_user_setting('custom_fonts') == 'on') ? read_user_setting('title_size') : read_config_option('title_size'));?>'></div>
341-
<?php print (read_user_setting('show_graph_title') == 'on' ? "<span align='center'><strong>" . html_escape($graph['title_cache']) . '</strong></span>' : '');?>
341+
<?php print (read_user_setting('show_graph_title') == 'on' ? "<span class='center'><strong>" . html_escape($graph['title_cache']) . '</strong></span>' : '');?>
342342
</td>
343343
<td id='dd<?php print $graph['local_graph_id'];?>' style='vertical-align:top;' class='graphDrillDown noprint'>
344344
<a href='#' id='graph_<?php print $graph['local_graph_id'];?>_properties' class='iconLink properties'>
@@ -527,7 +527,7 @@ function initializeGraph() {
527527
$graph_data_array['output_flag'] = RRDTOOL_OUTPUT_STDERR;
528528
$graph_data_array['print_source'] = 1;
529529

530-
print "<table align='center' width='100%' class='cactiTable'<tr><td>\n";
530+
print "<table class='center' width='100%' class='cactiTable'<tr><td>\n";
531531
print "<table class='cactiTable' width='100%'>\n";
532532
print "<tr class='tableHeader'><td colspan='3' class='linkOverDark' style='font-weight:bold;'>" . __('RRDtool Graph Syntax') . "</td></tr>\n";
533533
print "<tr><td><pre>\n";

graph_realtime.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@
329329
</td>
330330
</tr>
331331
<tr>
332-
<td align='center' colspan='6'>
332+
<td class='center' colspan='6'>
333333
<span id='countdown'><?php print __('%d seconds left.', get_request_var('ds_step')); ?></span>
334334
</td>
335335
</tr>

graph_xport.php

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -147,17 +147,17 @@
147147
}
148148
print $header . "\n";
149149
} else {
150-
$second = "align='right' colspan='2'";
150+
$second = "class='right' colspan='2'";
151151
print "<table class='cactiTable' class='center'>\n";
152-
print "<tr class='tableHeader'><td colspan='2' class='linkOverDark' style='font-weight:bold;'>" . __('Summary Details') . "</td><td align='right'><a href='#' role='link' style='cursor:pointer;' class='download linkOverDark' id='graph_" . $xport_array['meta']['local_graph_id'] . "'>" . __('Download') . "</a></td></tr>\n";
153-
print "<tr class='even'><td align='left'>" . __('Title') . "</td><td $second>" . html_escape($xport_array['meta']['title_cache']) . "</td></tr>\n";
154-
print "<tr class='odd'><td align='left'>" . __('Vertical Label') . "</td><td $second>" . html_escape($xport_array['meta']['vertical_label']) . "</td></tr>\n";
155-
print "<tr class='even'><td align='left'>" . __('Start Date') . "</td><td $second>" . date('Y-m-d H:i:s', $xport_array['meta']['start']) . "</td></tr>\n";
156-
print "<tr class='odd'><td align='left'>" . __('End Date') . "</td><td $second>" . date('Y-m-d H:i:s', ($xport_array['meta']['end'] == $xport_array['meta']['start']) ? $xport_array['meta']['start'] + $xport_array['meta']['step']*($xport_array['meta']['rows']-1) : $xport_array['meta']['end']) . "</td></tr>\n";
157-
print "<tr class='even'><td align='left'>" . __('Step') . "</td><td $second>" . $xport_array['meta']['step'] . "</td></tr>\n";
158-
print "<tr class='odd'><td align='left'>" . __('Total Rows') . "</td><td $second>" . $xport_array['meta']['rows'] . "</td></tr>\n";
159-
print "<tr class='even'><td align='left'>" . __('Graph ID') . "</td><td $second>" . $xport_array['meta']['local_graph_id'] . "</td></tr>\n";
160-
print "<tr class='odd'><td align='left'>" . __('Host ID') . "</td><td $second>" . $xport_array['meta']['host_id'] . "</td></tr>\n";
152+
print "<tr class='tableHeader'><td colspan='2' class='linkOverDark' style='font-weight:bold;'>" . __('Summary Details') . "</td><td class='right'><a href='#' role='link' style='cursor:pointer;' class='download linkOverDark' id='graph_" . $xport_array['meta']['local_graph_id'] . "'>" . __('Download') . "</a></td></tr>\n";
153+
print "<tr class='even'><td class='left'>" . __('Title') . "</td><td $second>" . html_escape($xport_array['meta']['title_cache']) . "</td></tr>\n";
154+
print "<tr class='odd'><td class='left'>" . __('Vertical Label') . "</td><td $second>" . html_escape($xport_array['meta']['vertical_label']) . "</td></tr>\n";
155+
print "<tr class='even'><td class='left'>" . __('Start Date') . "</td><td $second>" . date('Y-m-d H:i:s', $xport_array['meta']['start']) . "</td></tr>\n";
156+
print "<tr class='odd'><td class='left'>" . __('End Date') . "</td><td $second>" . date('Y-m-d H:i:s', ($xport_array['meta']['end'] == $xport_array['meta']['start']) ? $xport_array['meta']['start'] + $xport_array['meta']['step']*($xport_array['meta']['rows']-1) : $xport_array['meta']['end']) . "</td></tr>\n";
157+
print "<tr class='even'><td class='left'>" . __('Step') . "</td><td $second>" . $xport_array['meta']['step'] . "</td></tr>\n";
158+
print "<tr class='odd'><td class='left'>" . __('Total Rows') . "</td><td $second>" . $xport_array['meta']['rows'] . "</td></tr>\n";
159+
print "<tr class='even'><td class='left'>" . __('Graph ID') . "</td><td $second>" . $xport_array['meta']['local_graph_id'] . "</td></tr>\n";
160+
print "<tr class='odd'><td class='left'>" . __('Host ID') . "</td><td $second>" . $xport_array['meta']['host_id'] . "</td></tr>\n";
161161

162162
$class = 'even';
163163
if (isset($xport_meta['NthPercentile'])) {
@@ -167,7 +167,7 @@
167167
} else {
168168
$class = 'even';
169169
}
170-
print "<tr class='$class'><td>" . __('Nth Percentile') . "</td><td align='left'>" . $item['value'] . "</td><td align='right'>" . $item['format'] . "</td></tr>\n";
170+
print "<tr class='$class'><td>" . __('Nth Percentile') . "</td><td class='left'>" . $item['value'] . "</td><td class='right'>" . $item['format'] . "</td></tr>\n";
171171
}
172172
}
173173
if (isset($xport_meta['Summation'])) {
@@ -177,7 +177,7 @@
177177
} else {
178178
$class = 'even';
179179
}
180-
print "<tr class='$class'><td>" . __('Summation') . "</td><td align='left'>" . $item['value'] . "</td><td align='right'>" . $item['format'] . "</td></tr>\n";
180+
print "<tr class='$class'><td>" . __('Summation') . "</td><td class='left'>" . $item['value'] . "</td><td class='right'>" . $item['format'] . "</td></tr>\n";
181181
}
182182
}
183183

@@ -208,14 +208,14 @@
208208
} else {
209209
$j = 1;
210210
foreach($xport_array['data'] as $row) {
211-
print "<tr><td align='left'>" . date('Y-m-d H:i:s', (isset($row['timestamp']) ? $row['timestamp'] : $xport_array['meta']['start'] + $j*$xport_array['meta']['step'])) . "</td>";
211+
print "<tr><td class='left'>" . date('Y-m-d H:i:s', (isset($row['timestamp']) ? $row['timestamp'] : $xport_array['meta']['start'] + $j*$xport_array['meta']['step'])) . "</td>";
212212
for ($i = 1; $i <= $xport_array['meta']['columns']; $i++) {
213213
if ($row['col' . $i] > 1) {
214-
print "<td align='right'>" . trim(number_format_i18n(round($row['col' . $i],3))) . '</td>';
214+
print "<td class='right'>" . trim(number_format_i18n(round($row['col' . $i],3))) . '</td>';
215215
} elseif($row['col' . $i] == 0) {
216-
print "<td align='right'>-</td>";
216+
print "<td class='right'>-</td>";
217217
} else {
218-
print "<td align='right'>" . round($row['col' . $i],4) . '</td>';
218+
print "<td class='right'>" . round($row['col' . $i],4) . '</td>';
219219
}
220220
}
221221
print "</tr>\n";

0 commit comments

Comments
 (0)