Permalink
Browse files

Fixed some HTML errors

Now title page is valid XHTML

http://validator.w3.org/check says:
This document was successfully checked as XHTML 1.1!
Result:	 Passed

	modified:   cluster_info.php
	modified:   footer.php
  • Loading branch information...
Andrew Kovalenko
Andrew Kovalenko committed Mar 2, 2013
1 parent 5bc192a commit 528ee18a5f50dc338a8a46600dc3318e80d8791a
Showing with 19 additions and 19 deletions.
  1. +18 −17 views/cluster_info.php
  2. +1 −2 views/footer.php
View
@@ -49,7 +49,7 @@
else:
?>
-<ul id="keyspaces" class="well">
+<ul id="keyspaces" class="well"><li>
<h3>Keyspaces and Column Families</h3>
<a href="keyspace_action.php?action=create" class="btn btn-large btn-primary" style="color: #fff; text-decoration: none;">Create New Keyspace</a>
@@ -60,42 +60,43 @@
<?php
$nb_ks = count($keyspaces_name);
for ($i = 0; $i < $nb_ks; $i++):
- if ($i/2 == intval($i/2) and $i == $nb_ks-1):
- $beg = '<tr>';
- $beg .= '<td colspan="2">';
+ $beg = $end = '';
+ if (!($i&1) and $i == $nb_ks-1):
+ $beg .= '</tr><tr><td colspan="2"><ul>';
- $end = '</td>';
- $end .= '</tr>';
- elseif ($i/2 == intval($i/2)):
- $beg = '<td>';
+ $end .= '</ul></td></tr>';
+ elseif (!($i&1)):
+ if ($i) $beg .= '</tr>';
+ $beg .= '<tr><td><ul>';
- $end = '</td>';
+ $end .= '</ul></td>';
else:
- $beg = '<td>';
+ $beg .= '<td><ul>';
- $end = '</td>';
- $end .= '</tr>';
+ $end .= '</ul></td>';
endif;
echo $beg;
$keyspace_name = $keyspaces_name[$i];
echo '<li><a href="describe_keyspace.php?keyspace_name='.$keyspace_name.'">'.$keyspace_name.'</a>';
- echo '<ul>';
- $nb_cf = count($keyspaces_details[$i]['columnfamilies_name']);
+ $nb_cf = count($keyspaces_details[$i]['columnfamilies_name']);
+ if ($nb_cf):
+ echo '<ul>';
for ($j = 0; $j < $nb_cf; $j++):
$columnfamily_name = $keyspaces_details[$i]['columnfamilies_name'][$j];
echo '<li><a href="describe_columnfamily.php?keyspace_name='.$keyspace_name.'&amp;columnfamily_name='.$columnfamily_name.'">'.$columnfamily_name.'</a></li>';
endfor;
- echo '</ul>';
+ echo '</ul>';
+ endif;
echo '</li>';
echo $end;
endfor;
?>
</table>
-</ul>
+</li></ul>
<?php
endif;
@@ -105,4 +106,4 @@
<ul>
<li><a href="jmx.php">See Stats</a></li>
-</ul>
+</ul>
View
@@ -1,4 +1,3 @@
- <div id="footer">Copyright &copy; All Rights Reserved - Sébastien Giroux - 2011</div>
- </div>
+ <div id="footer">Copyright &copy; All Rights Reserved - Sébastien Giroux - 2011</div>
</body>
</html>

0 comments on commit 528ee18

Please sign in to comment.