Вход Регистрация
Файл: adultscript-2.0.3-pro/files/admin/templates/default/rss_manage.tpl.php
Строк: 176
<?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 suspend this Video XML Feed?";
    var lang_question_enable = "Are you sure you want to enable this Video XML Feed?";
    var lang_question_delete = "Are you sure you want to delete this Video XML Feed?";
    $(document).ready(function() {
        $("a[id^='manage_feed_']").click(function(e) {
            e.preventDefault();
            var click_id    = $(this).attr('id');
            var click_arr   = click_id.split('_');
            var action      = click_arr[2];
            var feed_id     = click_arr[3];
            if (action == 'suspend') {
                var answer = confirm(lang_question_disable);
            } else if (action == 'activate') {
                var answer = confirm(lang_question_enable);
            } else if (action == 'delete') {
                var answer  = confirm(lang_question_delete);
            }
            
            if (answer) {
                $("input[name='action']").val(action);
                $("input[name='feed_id']").val(feed_id);
                $("#manage_feed_form").submit();
            }
        });
        
        $("input[id='add-feed']").click(function() {
              location.href = "<?php echo ADMIN_URL?>/index.php?q=rss/add";
        });
    }); 
    </script>
    <div id="container" class="clearfix">
        <div id="page">
            <?php echo $this->fetch('video_menu'); ?>
            <div class="content clearfix">
                <?php echo $this->fetch('video_add_menu'); ?>
                <?php if ($this->feeds): ?>
                <form id="manage_feed_form" method="post" action="<?php echo CURRENT_URL?>">
                    <input name="action" type="hidden" value="" />
                    <input name="feed_id" type="hidden" value="" />
                </form>
                <div class="submit">
                      <input name="add-feed" type="button" id="add-feed" class="button butDef" value=" Add Feed " />
                </div>
                <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">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>Channel</h3></th>
                            <th><h3>Videos</h3></th>
                            <th><h3>Last Updated</h3></th>
                            <th><h3>Status</h3></th>
                            <th><h3>Actions</h3></th>
                        </tr>
                    </thead>
                    <tbody>
                          <?php foreach ($this->feeds as $feed):
                          if (
$feed['status'] == '1'):
                              
$status_image 'accept.png';
                            
$status 'suspend';
                        else:
                            
$status_image 'cancel.png';
                            
$status 'activate';
                        endif; 
?>
                          <tr id="row_<?php echo $feed['feed_id']; ?>">
                              <td><input name="checkbox_feed_<?php echo $feed['feed_id']; ?>" type="checkbox" id="checkbox_item_<?php echo $feed['feed_id']; ?>" /></td>
                              <td><strong><?php echo e($feed['name']); ?></strong></td>
                              <td><?php echo e($feed['channel']); ?></td>
                              <td><strong><?php echo $feed['total_videos']; ?></td>
                              <td><?php echo $feed['last_updated']; ?></td>
                              <td><a href="#status" id="manage_feed_<?php echo $status?>_<?php echo $feed['feed_id']; ?>" title="Click to <?php echo $status?> this feed!"><img src="<?php echo TPL_REL?>/images/<?php echo $status_image?>" /></a></td>
                              <td>
                                  <a href="<?php echo ADMIN_URL?>/index.php?q=rss/run&amp;id=<?php echo $feed['feed_id']; ?>" title="Click to parse this feed!"><img src="<?php echo TPL_REL?>/images/feed_go.png" alt="Parse" /></a>&nbsp;
                                  <a href="<?php echo ADMIN_URL?>/index.php?q=rss/edit&amp;id=<?php echo $feed['feed_id']; ?>" title="Click to edit this feed!"><img src="<?php echo TPL_REL?>/images/feed_edit.png" alt="Edit" /></a>&nbsp;
                                <a href="#delete" id="manage_feed_delete_<?php echo $feed['feed_id']; ?>" title="Click to delete this feed!"><img src="<?php echo TPL_REL?>/images/feed_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: ?>
                <div class="none">No Video RSS Feeds found! Click <a href="<?php echo ADMIN_URL?>/index.php?q=rss/add">here</a> to add rss feeds!</div>
                <?php endif; ?>
            </div>
               <div class="legend">
                    <img src="<?php echo TPL_REL?>/images/feed_edit.png" alt="feed_edit" /> Edit Feed &nbsp;
                    <img src="<?php echo TPL_REL?>/images/feed_delete.png" alt="feed_delete" /> Delete Feed &nbsp;
                    <img src="<?php echo TPL_REL?>/images/feed_go.png" alt="feed_go" /> Parse Feed &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>
Онлайн: 0
Реклама