Skip to content

Commit

Permalink
Start bringing classnames into compliance
Browse files Browse the repository at this point in the history
  • Loading branch information
bbannon committed Nov 1, 2023
1 parent 77a531d commit 3456100
Show file tree
Hide file tree
Showing 25 changed files with 104 additions and 104 deletions.
14 changes: 7 additions & 7 deletions access.php
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@
<tr>
<th class="'
. ( $guser === '__public__'
? 'aligncenter" width="60%">' . translate ( 'Calendar' ) . '</th>
? 'AlignCenter" width="60%">' . translate ( 'Calendar' ) . '</th>
<th class="boxtop boxbottom" width="20%">' . $typeStr . '</th>
<th class="boxtop boxright boxbottom" colspan="3" width="20%">'
. translate ( 'View Event' )
Expand Down Expand Up @@ -370,9 +370,9 @@
$bottomedge = 'boxbottom';
}
echo '</td>
<td class="aligncenter boxleft ' . $bottomedge . '">'
<td class="AlignCenter boxleft ' . $bottomedge . '">'
. $access_type[$j] . '</td>
<td class="aligncenter boxleft pub ' . $bottomedge . '">'
<td class="AlignCenter boxleft pub ' . $bottomedge . '">'
. '<input class="form-control-sm" type="checkbox" value="' . $j . '" name="v_' . $j . '"'
. ( ! empty( $op['view'] ) && ( $op['view'] & $j ) ? $checked : '' )
. '></td>
Expand All @@ -385,7 +385,7 @@
. ( ! empty( $op['view'] ) && ( $op['view'] & $j64 )
? $checked : '' ) . '></td>'
. ( $guser != '__public__' ? '
<td class="aligncenter boxleft pub ' . $bottomedge . '"><input '
<td class="AlignCenter boxleft pub ' . $bottomedge . '"><input '
. 'class="form-control-sm" type="checkbox" value="' . $j . '" name="e_' . $j . '"'
. ( ! empty( $op['edit'] ) && ( $op['edit'] & $j ) ? $checked : '' )
. '></td>
Expand All @@ -397,7 +397,7 @@
. $j64 . '" name="e_' . $j64 . '"'
. ( ! empty( $op['edit'] ) && ( $op['edit'] & $j64 )
? $checked : '' ) . '></td>
<td class="aligncenter boxleft pub ' . $bottomedge . '"><input '
<td class="AlignCenter boxleft pub ' . $bottomedge . '"><input '
. 'class="form-control-sm" type="checkbox" value="' . $j . '" name="a_' . $j . '"'
. ( ! empty( $op['approve'] ) && ( $op['approve'] & $j )
? $checked : '' ) . '></td>
Expand All @@ -414,7 +414,7 @@
}
echo '
<tr>
<td colspan="2" class="boxleft alignright">'
<td colspan="2" class="boxleft AlignRight">'
. ( $otheruser != '__default__' && $otheruser != '__public__' ? '
<input class="btn btn-secondary" type="button" value="' . translate( 'Assistant' )
. '" onclick="selectAll(63);">&nbsp;&nbsp;' : '' ) . '
Expand All @@ -424,7 +424,7 @@
. '" onclick="selectAll(0);">
</td>
<td colspan="9" class="boxright">
<table class="aligncenter" cellpadding="5" cellspacing="2">
<table class="AlignCenter" cellpadding="5" cellspacing="2">
<tr>
<td class="pub">' . translate( 'Public' ) . '</td>
<td class="conf">' . translate( 'Confidential' ) . '</td>
Expand Down
6 changes: 3 additions & 3 deletions approve_entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@
print_form_key();
echo '<table cellspacing="5">
<tr>
<td class="aligncenter alignbottom"><h3>'
<td class="AlignCenter alignbottom"><h3>'
. translate ( 'Additional Comments (optional)' ) . '</h3></td>
<tr>
<tr>
<td class="aligncenter"><textarea name="comments" rows="5" '
<td class="AlignCenter"><textarea name="comments" rows="5" '
. 'cols="60"></textarea></td>
</tr>
<tr>
<td class="aligncenter">
<td class="AlignCenter">
<input type="submit" value="' . translate ( 'Approve and Send' )
. '">&nbsp;&nbsp;&nbsp;
<input type="submit" id="cancel" name="cancel" value="'
Expand Down
12 changes: 6 additions & 6 deletions catsel.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@
'<script type=text/javascript" src="includes/js/catsel.js"></script>',
'', true, false, true );
echo '
<table class="aligncenter" width="90%">
<table class="AlignCenter" width="90%">
<tr>
<th colspan="3">' . translate ( 'Categories' ) . '</th>
</tr>
<form action="" method="post" name="editCategories" '
. 'onSubmit="sendCats( this )">' . csrf_form_key() . '
<tr>
<td class="aligntop">';
<td class="AlignTop">';

if ( ! empty ( $categories ) ) {
echo '
Expand All @@ -59,9 +59,9 @@
}
echo '
</td>
<td class="alignmiddle"><input type="button" value=">>" onclick="selAdd()"'
<td class="AlignMiddle"><input type="button" value=">>" onclick="selAdd()"'
. '></td>
<td class="aligncenter aligntop">
<td class="AlignCenter AlignTop">
<select name="eventcats[]" size="9" multiple>
<option disabled>' . $entryCatStr . '</option>';

Expand All @@ -86,10 +86,10 @@
</td>
</tr>
<tr>
<td class="aligntop alignright">*' . translate ( 'Global Category' )
<td class="AlignTop AlignRight">*' . translate ( 'Global Category' )
. '&nbsp;&nbsp;&nbsp;<input type="button" value="' . translate ( 'OK' )
. '" onclick="sendCats()"></td>
<td colspan="2" class="alignleft">&nbsp;&nbsp;<input type="button" value="'
<td colspan="2" class="AlignLeft">&nbsp;&nbsp;<input type="button" value="'
. translate ( 'Cancel' ) . '" onclick="window.close()"></td>
</tr>
</form>
Expand Down
2 changes: 1 addition & 1 deletion day.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
<td width="80%">
{$navStr}
</td>
<td class="aligntop" rowspan="2">
<td class="AlignTop" rowspan="2">
<!-- START MINICAL -->
<div class="minicalcontainer">
{$smallMonthStr}
Expand Down
6 changes: 3 additions & 3 deletions docadd.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,11 +208,11 @@

<table>

<tr><td class="aligntop"><label for="description">
<tr><td class="AlignTop"><label for="description">
<?php etranslate ( 'Subject' )?>:</label></td>
<td><input type="text" name="description" size="50" maxlength="127"></td></tr>

<tr><td class="aligntop"><label for="comment">
<tr><td class="AlignTop"><label for="comment">
<?php etranslate ( 'Comment' )?>:</label></td>
<td><textarea name="comment" rows="15" cols="60" wrap="auto"></textarea></td></tr>
<tr><td colspan="2">
Expand All @@ -231,7 +231,7 @@
<tr class="browse"><td>
<label for="fileupload"><?php etranslate ( 'Upload file' );?>:</label></td><td>
<input type="file" name="FileName" id="fileupload" size="45" maxlength="50">
<tr><td class="aligntop"><label for="description">
<tr><td class="AlignTop"><label for="description">
<?php etranslate ( 'Description' )?>:</label></td>
<td><input type="text" name="description" size="50" maxlength="127"></td></tr>

Expand Down
14 changes: 7 additions & 7 deletions edit_entry.php
Original file line number Diff line number Diff line change
Expand Up @@ -808,7 +808,7 @@ function time_selection($prefix, $time = '', $trigger = false)
$defIdx = (empty($extras[$extra_name]['cal_data'])
? $extra_arg2 : $extras[$extra_name]['cal_data']);

echo '<tr><td class="aligntop bold">'
echo '<tr><td class="AlignTop bold">'
. ($extra_type == EXTRA_MULTILINETEXT ? '<br>' : '')
. translate($extra_descr) . ':</td>
<td>';
Expand Down Expand Up @@ -1060,7 +1060,7 @@ function time_selection($prefix, $time = '', $trigger = false)
<?php if (!empty($ALLOW_EXTERNAL_USERS) && $ALLOW_EXTERNAL_USERS == 'Y') { ?>
<!-- External Users -->
<tr>
<td class="aligntop"><label data-toggle="tooltip" data-placement="top" title="<?php etooltip('external-participants-help'); ?>">
<td class="AlignTop"><label data-toggle="tooltip" data-placement="top" title="<?php etooltip('external-participants-help'); ?>">
<?php etranslate('External Participants'); ?>:</label></td>
<td colspan="1"><textarea name="externalparticipants" id="entry_extpart" rows="5" cols="75"><?php echo $external_users; ?></textarea></td>
</tr>
Expand Down Expand Up @@ -1410,7 +1410,7 @@ function time_selection($prefix, $time = '', $trigger = false)
. '</td>
</tr>
<tr>
<td class="alignright aligntop" width="100">
<td class="AlignRight AlignTop" width="100">
<label id="select_exceptions_not" style="visibility:'
. (empty($excepts) ? 'visible' : 'hidden') . ';"></label>
<select id="select_exceptions" name="exceptions[]" '
Expand All @@ -1419,12 +1419,12 @@ function time_selection($prefix, $time = '', $trigger = false)
. ';" size="4">' . $excepts . '
</select>
</td>
<td class="aligntop">
<input class="alignleft btn" type="button" name="addException" value="'
<td class="AlignTop">
<input class="AlignLeft btn" type="button" name="addException" value="'
. translate('Add Exception') . '..." onclick="add_exception(0)"><br>
<input class="alignleft btn" type="button" name="addInclusion" value="'
<input class="AlignLeft btn" type="button" name="addInclusion" value="'
. translate('Add Inclusion') . '..." onclick="add_exception(1)"><br>
<input class="alignleft btn" type="button" name="delSelected" value="'
<input class="AlignLeft btn" type="button" name="delSelected" value="'
. translate('Delete Selected') . '" onclick="del_selected()">
</td>
</tr>
Expand Down
4 changes: 2 additions & 2 deletions icons.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

//echo "<pre>"; print_r($icons); echo "</pre>";
echo '
<table class="aligncenter">
<table class="AlignCenter">
<tr>';
for ($i = 0, $cnt = count($icons); $i < $cnt; $i++) {
echo '
Expand All @@ -54,7 +54,7 @@
?>
</tr>
<tr>
<td colspan="8" class="aligncenter"><br><?php echo $title_str;?></td>
<td colspan="8" class="AlignCenter"><br><?php echo $title_str;?></td>
</tr>
</table>
</body>
Expand Down
4 changes: 2 additions & 2 deletions import.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function print_user_list() {

echo '
<tr>
<td class="aligntop"><label for="caluser">' . translate ( 'Calendar' )
<td class="AlignTop"><label for="caluser">' . translate ( 'Calendar' )
. ':</label></td>
<td>
<select name="calUser" id="caluser" size="' . $size . '">' . $users . '
Expand Down Expand Up @@ -88,7 +88,7 @@ function print_categories() {

echo '
<tr>
<td class="aligntop"><label for="importcat">'
<td class="AlignTop"><label for="importcat">'
. translate( 'Category' ) . ':</label></td>
<td>
<select name="importcat" id="importcat" size="' . $size . '">'
Expand Down
12 changes: 6 additions & 6 deletions includes/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -1229,24 +1229,24 @@ tr.highlight td {
height:.625rem;
border:0;
}
.alignbottom {
.AlignBottom {
vertical-align:bottom;
}
.aligncenter {
.AlignCenter {
text-align:center;
}
.alignleft,
.AlignLeft,
.minitask td.name {
text-align:left;
}
.alignmiddle {
.AlignMiddle {
vertical-align:middle;
}
.alignright,
.AlignRight,
.minitask td.pct {
text-align:right;
}
.aligntop {
.AlignTop {
vertical-align:top;
}
.bold {
Expand Down
12 changes: 6 additions & 6 deletions includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ function daily_matrix ( $date, $participants, $popup = '' ) {
$cols = ( ( $hours * $interval ) + 1 );
$ret = <<<EOT
<br>
<table class="aligncenter matrixd" style="width:'80%';"
<table class="AlignCenter matrixd" style="width:'80%';"
>
<tr>
<td class="matrix" colspan="{$cols}"></td>
Expand Down Expand Up @@ -736,7 +736,7 @@ function daily_matrix ( $date, $participants, $popup = '' ) {
} // End foreach participant.
return $ret . <<<EOT
</table><br>
<table class="aligncenter">
<table class="AlignCenter">
<tr>
<td class="matrixlegend"><img src="images/pix.gif" title="{$busy}"
alt="{$busy}">{$busy}&nbsp;&nbsp;&nbsp;<img src="images/pixb.gif"
Expand Down Expand Up @@ -1425,7 +1425,7 @@ function display_small_tasks ( $cat_id ) {
<table class="minitask" cellpadding="2">
<tr class="header">
<th colspan="6">' . translate ( 'TASKS' ) . '</th>
<th class="alignright" colspan="2"><a href="edit_entry.php?' . $u_url
<th class="AlignRight" colspan="2"><a href="edit_entry.php?' . $u_url
. 'eType=task' . $caturl
. '"><img src="images/bootstrap-icons/plus-circle.sv" alt="+" class="new"></a></th>
</tr>
Expand Down Expand Up @@ -6388,9 +6388,9 @@ function site_extras_for_popup ( $id ) {
function print_error_box ( $msg )
{
echo '<div class="warningBox">' .
'<table><tr><td class="alignmiddle">' .
'<img src="images/bootstrap-icons/exclamation-triangle-fill.svg" width="40" height="40" class="alignmiddle" alt="' .
translate ( 'Error' ) . '"></td><td class="alignmiddle">' .
'<table><tr><td class="AlignMiddle">' .
'<img src="images/bootstrap-icons/exclamation-triangle-fill.svg" width="40" height="40" class="AlignMiddle" alt="' .
translate ( 'Error' ) . '"></td><td class="AlignMiddle">' .
translate('The permissions for the icons directory are set to read-only') .
"</td></tr></table></div>\n";
}
Expand Down
Loading

0 comments on commit 3456100

Please sign in to comment.