Skip to content

Commit

Permalink
More replacements of custom layout by html_operation_xxx()
Browse files Browse the repository at this point in the history
Issue #21683
  • Loading branch information
dregad committed Sep 21, 2016
1 parent 750950d commit 0c00cc9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 33 deletions.
12 changes: 3 additions & 9 deletions core/access_api.php
Expand Up @@ -100,17 +100,11 @@ function access_denied() {
} else {
layout_page_header();
layout_admin_page_begin();
echo '<div class="col-md-12 col-xs-12">';
echo '<div class="space-10"></div>';
echo '<div class="alert alert-danger">';
echo '<div class="center bigger-130">' . error_string( ERROR_ACCESS_DENIED ) . '</div>';
echo '<p class="center">';
print_button(
html_operation_failure(
helper_mantis_url( config_get( 'default_home_page' ) ),
lang_get( 'proceed' )
error_string( ERROR_ACCESS_DENIED )
);
echo '</p>';
echo '</div></div>';
layout_admin_page_end();
}
}
Expand Down Expand Up @@ -734,4 +728,4 @@ function access_threshold_min_level( $p_threshold ) {
return $p_threshold;
}

}
}
29 changes: 5 additions & 24 deletions lost_pwd.php
Expand Up @@ -105,29 +105,10 @@
$t_redirect_url = 'login_page.php';

layout_page_header();

layout_page_begin();
?>

<div class="col-md-12 col-xs-12">
<div class="space-10"></div>
<table class="width50" cellspacing="1">
<tr>
<td class="center">
<strong><?php echo lang_get( 'lost_password_done_title' ) ?></strong>
</td>
</tr>
<tr>
<td>
<br />
<?php echo lang_get( 'reset_request_in_progress_msg' ) ?>
<br /><br />
</td>
</tr>
</table>
<br />
<?php print_button( 'login_page.php', lang_get( 'proceed' ) ); ?>
</div>

<?php
html_operation_successful(
'login_page.php',
'<p class="bold bigger-110">' . lang_get( 'lost_password_done_title' ) . '</p>'
. lang_get( 'reset_request_in_progress_msg' )
);
layout_page_end();

0 comments on commit 0c00cc9

Please sign in to comment.