mirror of
https://github.com/Mibew/i18n.git
synced 2025-01-22 13:30:29 +03:00
[ban] confirm deletion of blocked address
git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@524 c66351dc-e62f-0410-b875-e3a5c0b9693f
This commit is contained in:
parent
54afb72e12
commit
bfe023c601
@ -301,6 +301,7 @@ page_ban.sent=Address {0} is blocked for specified number of days.
|
||||
page_ban.thread=You opened this window for "{0}" thread, <i>Address</i> field is already filled. Select number of days and click <i>Send</i>.
|
||||
page_ban.title=Block address
|
||||
page_bans.add=Add address
|
||||
page_bans.confirm=Are you sure that you want to delete address {0} from the blocked list?
|
||||
page_bans.list=List of banned IPs:
|
||||
page_bans.title=Ban List
|
||||
page_bans.to=Till
|
||||
|
@ -16,6 +16,12 @@ require_once("inc_menu.php");
|
||||
$page['title'] = getlocal("page_bans.title");
|
||||
$page['menuid'] = "blocked";
|
||||
|
||||
function tpl_header() { global $page, $webimroot;
|
||||
?>
|
||||
<script type="text/javascript" language="javascript" src="<?php echo $webimroot ?>/js/jquery-1.3.2.min.js"></script>
|
||||
<?php
|
||||
}
|
||||
|
||||
function tpl_content() { global $page, $webimroot;
|
||||
?>
|
||||
|
||||
@ -52,7 +58,7 @@ if( $page['pagination.items'] ) {
|
||||
foreach( $page['pagination.items'] as $b ) { ?>
|
||||
<tr>
|
||||
<td class="notlast">
|
||||
<a href="ban.php?id=<?php echo $b['banid'] ?>" class="man">
|
||||
<a href="ban.php?id=<?php echo $b['banid'] ?>" class="man" id="ti<?php echo $b['banid'] ?>">
|
||||
<?php echo htmlspecialchars($b['address']) ?>
|
||||
</a>
|
||||
</td>
|
||||
@ -69,7 +75,7 @@ if( $page['pagination.items'] ) {
|
||||
?>
|
||||
</td>
|
||||
<td>
|
||||
<a href="<?php echo $webimroot ?>/operator/blocked.php?act=del&id=<?php echo $b['banid'] ?>">
|
||||
<a class="removelink" id="i<?php echo $b['banid'] ?>" href="<?php echo $webimroot ?>/operator/blocked.php?act=del&id=<?php echo $b['banid'] ?>">
|
||||
remove
|
||||
</a>
|
||||
</td>
|
||||
@ -95,6 +101,12 @@ if( $page['pagination.items'] ) {
|
||||
}
|
||||
}
|
||||
?>
|
||||
<script type="text/javascript" language="javascript"><!--
|
||||
$('a.removelink').click(function(){
|
||||
var addr = $("#t"+this.id).text();
|
||||
return confirm("<?php echo str_replace("\n", "\\n", getlocal2("page_bans.confirm", array('"+$.trim(addr)+"'))) ?>");
|
||||
});
|
||||
//--></script>
|
||||
|
||||
<?php
|
||||
} /* content */
|
||||
|
Loading…
Reference in New Issue
Block a user