Вход Регистрация
Файл: adultscript-2.0.3-pro/files/admin/templates/default/template_manage_frontend.tpl.php
Строк: 73
<?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">
    $(document).ready(function() {
          $("input[name='set-default']").click(function() {
              var checked = $("input[name='default']:checked").val();
              if (checked == 'undefined') {
                  alert('Please check one template before submitting!');
                  return;
              }
              
              $("#template-manage-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('template_manage_menu'); ?>
                <?php if ($this->tpls): ?>
                <form id="template-manage-form" method="post" action="<?php echo ADMIN_URL?>/index.php?q=template/manage/frontend">
                  <div class="submit">
                      <input name="set-default" type="button" id="set-default-top" class="button butDef" value="Set Default" />
                </div>
                <table cellpadding="0" cellspacing="0" border="0" id="table" class="uiTable">
                    <thead>
                        <tr>
                            <th class="nosort" style="width: 20px; text-align: center;">#</th>
                            <th><h3>Name</h3></th>
                            <th><h3>Default</h3></th>
                            <th><h3>Version</h3></th>
                            <th><h3>Publisher</h3></th>
                            <th><h3>Actions</h3></th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php foreach ($this->tpls as $template): 
                        
$active = ($this->cfg['template'] == $template['name']) ? TRUE FALSE?>
                        <tr id="template-<?php echo $template['tpl_id']; ?>">
                            <td><input name="default" type="radio" class="radio" value="<?php echo $template['name']; ?>"<?php if ($active): echo ' checked="checked"'; endif; ?> /></td>
                            <td><?php echo e($template['name']); ?></td>
                            <td><?php if ($active): echo '<strong>Yes</strong>'; else: echo 'No'; endif; ?></td>
                            <td><?php echo e($template['version']); ?></td>
                            <td>
                                <?php if (isset($this->providers[$template['provider']])): ?>
                                <a href="<?php echo $this->providers[$template['provider']]['link']; ?>"><?php echo e($this->providers[$template['provider']]['name']); ?></a>
                                <?php else: ?>
                                unknown
                                <?php endif; ?>
                            </td>
                            <td><a href="<?php echo ADMIN_URL,'/index.php?q=template/config&id=',$template['tpl_id']; ?>"><img src="<?php echo TPL_REL?>/images/cog.png" alt="Config" /></a></td>
                        </tr>
                        <?php endforeach; ?>
                    </tbody>
                </table>
                  <div class="submit">
                      <input name="set-default" type="button" id="set-default-bottom" class="button butDef" value="Set Default" />
                </div>
                </form>
                <?php else: ?>
                <div class="none">No templates installed? This is bad!</div>
                <?php endif; ?>
            </div>
        </div>
    </div>
Онлайн: 0
Реклама