Centering buttons in some actions...

Merged from MOODLE_18_STABLE
This commit is contained in:
stronk7
2007-04-02 21:37:28 +00:00
parent fdf562fb3c
commit ef0d378cb7
5 changed files with 5 additions and 5 deletions
@@ -173,7 +173,7 @@ class edit_field extends XMLDBAction {
$o.= ' </table>';
$o.= '</div></form>';
/// Calculate the buttons
$b = ' <p class="buttons">';
$b = ' <p class="centerpara buttons">';
/// The view original XML button
if ($table->getField($fieldparam)) {
$b .= '&nbsp;<a href="index.php?action=view_field_xml&amp;dir=' . urlencode(str_replace($CFG->dirroot, '', $dirpath)) . '&amp;select=original&amp;table=' . $tableparam . '&amp;field=' . $fieldparam . '">[' . $this->str['vieworiginal'] . ']</a>';
@@ -128,7 +128,7 @@ class edit_index extends XMLDBAction {
$o.= ' </table>';
$o.= '</div></form>';
/// Calculate the buttons
$b = ' <p class="buttons">';
$b = ' <p class="centerpara buttons">';
/// The view original XML button
if ($table->getIndex($indexparam)) {
$b .= '&nbsp;<a href="index.php?action=view_index_xml&amp;dir=' . urlencode(str_replace($CFG->dirroot, '', $dirpath)) . '&amp;select=original&amp;table=' . $tableparam . '&amp;index=' . $indexparam . '">[' . $this->str['vieworiginal'] . ']</a>';
@@ -140,7 +140,7 @@ class edit_key extends XMLDBAction {
$o.= ' </table>';
$o.= '</div></form>';
/// Calculate the buttons
$b = ' <p class="buttons">';
$b = ' <p class="centerpara buttons">';
/// The view original XML button
if ($table->getKey($keyparam)) {
$b .= '&nbsp;<a href="index.php?action=view_key_xml&amp;dir=' . urlencode(str_replace($CFG->dirroot, '', $dirpath)) . '&amp;select=original&amp;table=' . $tableparam . '&amp;key=' . $keyparam . '">[' . $this->str['vieworiginal'] . ']</a>';
@@ -133,7 +133,7 @@ class edit_sentence extends XMLDBAction {
$o.= ' </table>';
$o.= '</div></form>';
/// Calculate the buttons
$b = ' <p class="buttons">';
$b = ' <p class="centerpara buttons">';
/// The back to edit statement button
$b .= '&nbsp;<a href="index.php?action=edit_statement&amp;statement=' . urlencode($statementparam) . '&amp;dir=' . urlencode(str_replace($CFG->dirroot, '', $dirpath)) . '">[' . $this->str['back'] . ']</a>';
$b .= '</p>';
@@ -115,7 +115,7 @@ class edit_statement extends XMLDBAction {
$o.= ' </table>';
$o.= '</div></form>';
/// Calculate the buttons
$b = ' <p class="buttons">';
$b = ' <p class="centerpara buttons">';
/// The view original XML button
if ($origstructure->getStatement($statementparam)) {
$b .= '&nbsp;<a href="index.php?action=view_statement_xml&amp;dir=' . urlencode(str_replace($CFG->dirroot, '', $dirpath)) . '&amp;select=original&amp;statement=' . $statementparam . '">[' . $this->str['vieworiginal'] . ']</a>';