Вход Регистрация
Файл: adultscript-2.0.3-pro/files/admin/templates/default/tools_bans.tpl.php
Строк: 139
<?php defined('_VALID') or die('Restricted Access!'); ?>
    <?php echo $this->fetch('errors'); ?>
    <?php echo $this->fetch('messages'); ?>
    <?php echo $this->fetch('warnings'); ?>
    <script type="text/javascript"> 
    var lang_question_delete = "Are you sure you want unban this ip?"; 
    $(document).ready(function() { 
          $("a[id='add-ban']").click(function(e) {
              $("#add-ban-div").slideToggle();
          });
          
        $("a[id^='manage_ban_']").click(function(e) { 
            e.preventDefault(); 
            var ban_id     = $(this).attr('id').match(/manage_ban_(.*)/)[1];
            var answer  = confirm(lang_question_delete); 
 
            if (answer) { 
                $("input[name='ban_id']").val(ban_id); 
                $("#manage_ban_form").submit(); 
            } 
        }); 
    }); 
    </script>
    <div id="container" class="clearfix">
        <div id="page">
            <?php echo $this->fetch('main_menu'); ?>
            <div class="content clearfix">
                <?php echo $this->fetch('tools_bans_menu'); ?>
                <?php echo $this->fetch('tools_bans_search'); ?>
                <?php echo $this->fetch('tools_bans_add'); ?>
                <?php if ($this->ban): ?>
                <form id="manage_ban_form" method="post" action="<?php echo CURRENT_URL?>"> 
                      <input name="action" type="hidden" value="delete" />
                    <input name="ban_id" type="hidden" value="" />
                </form> 
                <form name="actionsForm" id="actionsForm" method="post" action="<?php echo CURRENT_URL?>"> 
                <div class="box_menu"> 
                    <div class="box_menu_left"> 
                        <select name="action" id="actions_top"> 
                        <option value="suspend">Delete</option> 
                        </select> 
                        <input name="submit_actions" type="submit" class="button butDef" value="Go!" /> 
                    </div> 
                    <div class="box_menu_right"> 
                        <div class="barNav clearfix"><?php echo p('pagination'$this->paginationCURRENT_URL); ?></div> 
                    </div> 
                    <div class="clear"></div> 
                </div>
                <table cellpadding="0" cellspacing="0" border="0" id="table" class="uiTable">
                    <thead>
                          <tr>
                              <th class="nosort" style="width: 12px; text-align: center;"><input name="checkbox_all" type="checkbox" id="check_all" /></th>
                            <th><h3>Ip</h3></th>
                            <th><h3>Reason</h3></th>
                            <th><h3>Add Date</h3></th>
                            <th><h3>Expire Date</h3></th>
                            <th><h3>Actions</h3></th>
                        </tr>
                    </thead>
                    <tbody>
                          <?php foreach ($this->bans as $ban): ?>
                          <tr id="row_<?php echo $ban['ban_id']; ?>">
                              <td><input name="checkbox_ban_<?php echo $ban['ban_id']; ?>" type="checkbox" id="checkbox_item_<?php echo $ban['ban_id']; ?>" /></td>
                              <td><strong><?php echo long2ip($ban['ip']); ?></strong></td>
                              <td><?php echo e($ban['reason']); ?></td>
                              <td><?php echo $ban['add_date']; ?></td>
                              <td><?php echo $ban['expire']; ?></td>
                              <td>
                                <a href="#delete" id="manage_ban_<?php echo $ban['ban_id']; ?>" title="Click to unban this ip!"><img src="<?php echo TPL_REL?>/images/user_delete.png" alt="Delete" /></a>
                              </td>
                          </tr>
                          <?php endforeach; ?>
                    </tbody>
                </table>
                <div class="box_menu"> 
                    <div class="box_menu_left"> 
                        <select name="action" id="actions_bottom"> 
                        <option value="delete">Delete</option> 
                        </select> 
                        <input name="submit_actions" type="submit" class="button butDef" value="Go!" /> 
                    </div> 
                    <div class="box_menu_right"> 
                        <div class="barNav clearfix"><?php echo p('pagination'$this->paginationCURRENT_URL); ?></div> 
                    </div> 
                    <div class="clear"></div> 
                </div>
                </form>
                <?php else: ?>
                <div class="none">No banned IPs found!</div>
                <?php endif; ?>
            </div>
               <div class="legend">
                    <img src="<?php echo TPL_REL?>/images/user_delete.png" alt="user_delete" /> Delete User &nbsp;
                </div>
        </div>
    </div>
Онлайн: 0
Реклама