Вход Регистрация
Файл: InstantSocial/uploud/templates/_default_/admin/cron.php
Строк: 47
<?php if(!defined('VALID_CMS_ADMIN')) { die('ACCESS DENIED'); } ?>

<form name="selform" action="index.php?view=cron" method="post">
    <table id="listTable" class="tablesorter" cellspacing="0" cellpadding="0" border="0" width="100%" style="margin-top:10px">
        <thead>
            <tr>
                <th class="lt_header" width="25">id</th>
                <th class="lt_header" width="80">Название</th>
                <th class="lt_header" width="">Описание</th>
                <th class="lt_header" width="30">Интервал</th>
                <th class="lt_header" width="100">Посл. запуск</th>
                <th class="lt_header" width="50">Активна?</th>
                <th class="lt_header" align="center" width="65">Действия</th>
            </tr>
        </thead>
        <?php if ($items){ ?>
            <tbody>
                <?php foreach($items as $num=>$item){ ?>
                    <tr id="<?php echo $item['id']; ?>" class="item_tr">
                        <td><?php echo $item['id']; ?></td>
                        <td>
                            <a title="Редактировать" href="?view=cron&do=edit&id=<?php echo $item['id']; ?>">
                                <?php echo $item['name']; ?>
                            </a>
                        </td>
                        <td><?php echo $item['comment']; ?></td>
                        <td><?php echo $item['job_interval']; ?> ч.</td>
                        <td><?php echo $item['run_date']; ?></td>
                        <td>
                            <?php if ($item['is_enabled']) { ?>
                                <a id="publink<?php echo $item['id']; ?>" href="javascript:pub(<?php echo $item['id']; ?>, 'view=cron&do=hide&id=<?php echo $item['id']; ?>', 'view=content&do=show&id=<?php echo $item['id']; ?>', 'off', 'on');" title="Отключить">
                                    <img id="pub<?php echo $item['id']; ?>" border="0" src="images/actions/on.gif"/>
                                </a>
                            <?php } else { ?>
                                <a id="publink<?php echo $item['id']; ?>" href="javascript:pub(<?php echo $item['id']; ?>, 'view=cron&do=show&id=<?php echo $item['id']; ?>', 'view=content&do=hide&item_=<?php echo $item['id']; ?>', 'on', 'off');" title="Включить">
                                    <img id="pub<?php echo $item['id']; ?>" border="0" src="images/actions/off.gif"/>
                                </a>
                            <?php ?>
                        </td>
                        <td align="right">
                            <div style="padding-right: 8px;">
                                <a title="Выполнить сейчас" onclick="jsmsg('Выполнить задачу <?php echo $item['name']; ?>?', '?view=cron&do=execute&id=<?php echo $item['id']; ?>')" href="#">
                                    <img border="0" hspace="2" alt="Выполнить сейчас" src="images/actions/play.gif"/>
                                </a>
                                <a title="Редактировать" href="?view=cron&do=edit&id=<?php echo $item['id']; ?>">
                                    <img border="0" hspace="2" alt="Редактировать" src="images/actions/edit.gif"/>
                                </a>
                                <a title="Удалить" onclick="jsmsg('Удалить задачу <?php echo $item['name']; ?>?', '?view=cron&do=delete&id=<?php echo $item['id']; ?>')" href="#">
                                    <img border="0" hspace="2" alt="Удалить" src="images/actions/delete.gif"/>
                                </a>
                            </div>
                        </td>
                    </tr>
                <?php ?>
            </tbody>
        <?php } else { ?>
            <tbody>
                <td colspan="7" style="padding-left:5px"><div style="padding:15px;padding-left:0px">Задачи не найдены</div></td>
            </tbody>
        <?php ?>
    </table>

    <script type="text/javascript">highlightTableRows("listTable","hoverRow","clickedRow");</script>
</form>
Онлайн: 1
Реклама