Cleaning up xhtml markup. Code now validates for xhtml 1.0 transitional.
This commit is contained in:
+8
-8
@@ -143,7 +143,7 @@
|
||||
echo '<input name="confirm" value="1" type="hidden" />';
|
||||
echo '<strong>'.$field->name.'</strong> - '.get_string('confirmdeletefield','data');
|
||||
echo '<p />';
|
||||
echo '<input type="submit" value="'.get_string('ok').'"> ';
|
||||
echo '<input type="submit" value="'.get_string('ok').'" /> ';
|
||||
echo '<input type="button" value="'.get_string('cancel').'" onclick="javascript:history.go(-1);" />';
|
||||
echo '</form>';
|
||||
echo '</div>';
|
||||
@@ -215,9 +215,11 @@
|
||||
|
||||
else if ($mode != 'display'){ //display main form - add new, update, delete
|
||||
|
||||
echo '<form name="fieldform" action="fields.php?d='.$data->id.'&" method="POST">';
|
||||
echo '<input type="hidden" name="mode" value="">';
|
||||
echo '<input name="sesskey" value="'.sesskey().'" type="hidden">';
|
||||
//echo '<form name="fieldform" action="fields.php?d='.$data->id.'&" method="POST">';
|
||||
echo '<form name="fieldform" action="fields.php" method="post">';
|
||||
echo '<input name="d" type="hidden" value="'.$data->id.'" />';
|
||||
echo '<input type="hidden" name="mode" value="" />';
|
||||
echo '<input name="sesskey" value="'.sesskey().'" type="hidden" />';
|
||||
print_simple_box_start('center','50%');
|
||||
|
||||
///New fields
|
||||
@@ -249,12 +251,10 @@
|
||||
|
||||
echo '<tr><td align="center">';
|
||||
echo '<a href="fields.php?d='.$data->id.'&mode=display&fid='.$field->id.'&sesskey='.sesskey().'">';
|
||||
echo '<img src="'.$CFG->pixpath.'/t/edit.gif"
|
||||
height="11" width="11" border="0" alt="'.get_string('edit').'" /></a>';
|
||||
echo '<img src="'.$CFG->pixpath.'/t/edit.gif" height="11" width="11" border="0" alt="'.get_string('edit').'" /></a>';
|
||||
echo ' ';
|
||||
echo '<a href="fields.php?d='.$data->id.'&mode=delete&fid='.$field->id.'&sesskey='.sesskey().'">';
|
||||
echo '<img src="'.$CFG->pixpath.'/t/delete.gif"
|
||||
height="11" width="11" border="0" alt="'.get_string('delete').'" /></a>';
|
||||
echo '<img src="'.$CFG->pixpath.'/t/delete.gif" height="11" width="11" border="0" alt="'.get_string('delete').'" /></a>';
|
||||
echo '</td>';
|
||||
|
||||
///Print Fieldname Column
|
||||
|
||||
Reference in New Issue
Block a user