Вход Регистрация
Файл: adultscript-2.0.3-pro/files/admin/templates/default/language_files_manage.tpl.php
Строк: 133
<?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 to delete this language file?";
    $(document).ready(function() {
        $("a[id^='manage_file_']").click(function(e) {
            e.preventDefault();
            var click_id    = $(this).attr('id');
            var click_arr   = click_id.split('_');
            var action      = click_arr[2];
            var file_id       = click_arr[3];
            if (action == 'delete') {
                var answer  = confirm(lang_question_delete);
            }
            
            if (answer) {
                $("input[name='action']").val(action);
                $("input[name='file_id']").val(file_id);
                $("#manage_language_files_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('language_files_menu'); ?>
                <?php if ($this->files): ?>
                <form id="manage_language_files_form" method="post" action="<?php echo CURRENT_URL?>">
                    <input name="action" type="hidden" value="" />
                    <input name="file_id" type="hidden" value="" />
                </form>
                <form name="actionsForm" id="actionsForm" method="post" action="<?php echo ADMIN_URL?>/index.php?q=language/files&amp;code=<?php echo e($this->code); ?>">
                <div class="box_menu">
                    <div class="box_menu_left">
                        <select name="action" id="actions_top"> 
                        <option value="suspend">Suspend</option> 
                        <option value="activate">Activate</option> 
                        <option value="delete">Delete</option> 
                        </select> 
                        <input name="submit_actions" type="submit" class="submit_actions" 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>Name</h3></th>
                            <th><h3>Description</h3></th>
                            <th><h3>Type</h3></th>
                            <th><h3>Actions</h3></th>
                        </tr>
                    </thead>
                    <tbody>
                          <?php foreach ($this->files as $file): ?>
                          <tr id="row_<?php echo $file['file_id']; ?>">
                              <td><input name="checkbox_file_<?php echo $file['file_id']; ?>" type="checkbox" id="checkbox_item_<?php echo $file['file_id']; ?>" /></td>
                              <td><strong><?php echo e($file['name']); ?></strong></td>
                              <td><?php echo e($file['description']); ?></td>
                              <td><strong><?php echo e($file['type']); ?></strong></td>
                              <td>
                                  <a href="<?php echo ADMIN_URL?>/index.php?q=language/files/edit&amp;id=<?php echo $file['file_id']; ?>" title="Click to edit translation for this language file!"><img src="<?php echo TPL_REL?>/images/folder_edit.png" alt="package" /></a>
                                  <a href="#delete-file" id="manage_file_delete_<?php echo $file['file_id']; ?>" title="Click to uninstall this language file package!"><img src="<?php echo TPL_REL?>/images/folder_delete.png" alt="package" /></a>
                              </td>
                          </tr>
                          <?php endforeach; ?>
                    </tbody>
                </table>
                <div class="box_menu"> 
                    <div class="box_menu_left"> 
                        <select name="action" id="actions_bottom"> 
                        <option value="suspend">Suspend</option> 
                        <option value="activate">Activate</option> 
                        <option value="delete">Delete</option> 
                        </select> 
                        <input name="submit_actions" type="submit" class="submit_actions" 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 files found for this language package!</div>
                <?php endif; ?>
            </div>
            <div class="legend">
            </div>
        </div>
    </div>
Онлайн: 1
Реклама