Вход Регистрация
Файл: adultscript-2.0.3-pro/files/admin/templates/default/feed_manage.tpl.php
Строк: 190
<?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_disable = "Are you sure you want to disable this module?";
    var lang_question_enable = "Are you sure you want to enable this module?";
    var lang_question_delete = "Are you sure you want to delete this module?";
    $(document).ready(function() {
        $("a[id^='manage_module_']").click(function(e) {
            e.preventDefault();
            var click_id    = $(this).attr('id');
            var click_arr   = click_id.split('_');
            var action      = click_arr[2];
            var module_id   = click_arr[3];
            if (action == 'disable') {
                var answer = confirm(lang_question_disable);
            } else if (action == 'enable') {
                var answer = confirm(lang_question_enable);
            } else if (action == 'delete') {
                var anser  = confirm(lang_question_delete);
            }
            
            if (answer) {
                $("input[name='action']").val(action);
                $("input[name='module_id']").val(module_id);
                $("#manage_module_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('module_menu'); ?>
                <?php if ($this->modules): ?>
                <form name="manage_module_form" id="manage_module_form" method="post" action="<?php echo CURRENT_URL?>">
                    <input name="action" type="hidden" value="" />
                    <input name="module_id" type="hidden" value="" />
                </form>
                <form name="actionsForm" id="actionsForm" method="post" action="<?php echo ADMIN_URL?>/index.php?q=module/manage">
                <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>Version</h3></th>
                            <th><h3>Provider</h3></th>
                            <th><h3>Access</h3></th>
                            <th><h3>Status</h3></th>
                            <th><h3>Actions</h3></th>
                        </tr>
                    </thead>
                    <tbody>
                          <?php foreach ($this->modules as $module):
                          if (
$module['status'] == '1'):
                              
$status_image 'accept.png';
                            
$status 'disable';
                        else:
                            
$status_image 'cancel.png';
                            
$status 'enable';
                        endif; 
?>
                          <tr id="row_<?php echo $module['module_id']; ?>">
                              <td><input name="checkbox_module_<?php echo $module['module_id']; ?>" type="checkbox" id="checkbox_item_<?php echo $module['module_id']; ?>" /></td>
                              <td><strong><?php echo e($module['name']); ?></strong></td>
                              <td><?php echo e($module['description']); ?></td>
                              <td><?php echo e($module['type']); ?></td>
                              <td><?php echo e($module['version']); ?></td>
                              <td>
                                  <?php if (isset($this->providers[$module['provider']])): ?>
                                <strong><a href="<?php echo e($this->providers[$module['provider']]['link']); ?>"><?php echo e($this->providers[$module['provider']]['name']); ?></a></strong>
                                <?php else: ?>
                                <strong>unknown</strong>
                                <?php endif; ?>                              
                              </td>
                              <td><?php echo e($module['access']); ?></td>
                              <td><a href="#status" id="manage_module_<?php echo $status?>_<?php echo $module['module_id']; ?>" title="Click to <?php echo $status?> this menu!"><img src="<?php echo TPL_REL?>/images/<?php echo $status_image?>" /></a></td>
                              <td>
                                  <?php if ($module['config'] != ''): ?><a href="<?php echo ADMIN_URL?>/index.php?q=<?php echo $module['name']; ?>/config"><img src="<?php echo TPL_REL?>/images/cog.png" alt="Config" /></a><?php endif; ?>
                                  <a href="<?php echo ADMIN_URL?>/index.php?q=module/edit&amp;id=<?php echo $module['module_id']; ?>" id="edit_menu_<?php echo $module['module_id']; ?>"><img src="<?php echo TPL_REL?>/images/application_edit.png" alt="Edit" /></a>&nbsp;
                                <a href="#delete" id="manage_module_delete_<?php echo $module['module_id']; ?>" title="Click to delete this module!"><img src="<?php echo TPL_REL?>/images/application_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="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: ?>
                <?php endif; ?>
            </div>
               <div class="legend">
                    <img src="<?php echo TPL_REL?>/images/cog.png" alt="cog" /> Configure &nbsp;
                    <img src="<?php echo TPL_REL?>/images/application_edit.png" alt="link_edit" /> Edit Module &nbsp;
                    <img src="<?php echo TPL_REL?>/images/application_delete.png" alt="link_delete" /> Uninstall Module &nbsp;
                    <img src="<?php echo TPL_REL?>/images/accept.png" alt="accept" /> Active - Action Suspend &nbsp;
                    <img src="<?php echo TPL_REL?>/images/cancel.png" alt="cancel" /> Suspended - Action Activate
                </div>
        </div>
    </div>
Онлайн: 1
Реклама