Location: PHPKode > projects > Auto TV to Sabnzbd > autoTvToSab/application/views/series/add.php
<?php defined('SYSPATH') or die('No direct script access.'); ?>
<div id="wrap">
<!-- content-wrap starts -->
<div id="content-wrap">
    <div id="googleHeader">
        Downloads from <a href="http://nzbmatrix.com/" title="NZBMatrix.com">NZBMatrix.com</a>

    <form id="form-search" action="<?php echo URL::site('search/result')?>" method="get">
        <input class="input-text" name="q" type="text" />
        <input name="where" value="site" type="hidden" />
        <input class="input-button" name="search" value="" type="submit" />

    <div id="main">
        <div class="inner">
            <!-- BuySellAds.com Zone Code -->
                    <div class="top-banner">
                        <?php echo HTML::anchor('#', HTML::image("images/black/banner/fringe.jpg", array('alt' => 'Top Banner')), array('title' => 'Top Banner', 'class' => 'adhere'));?>
                    <!-- END BuySellAds.com Zone Code -->
    <h1><?php echo $title?></h1>
    <?php if (isset($_GET['msg'])) { ?><p class="success"><?php echo HTML::entities($_GET['msg'])?></p> <?php } ?>
    <form id="submitform" action="<?php echo URL::site('series/doAdd')?>" method="post">
            <label for="name"><?php echo __('Serie name')?>:</label>
            <input type="text" name="name" id="name" size="30" />
        <p id="search-result" style="display: none"></p>
            <label for="cat"><?php echo __('Download catagory')?>:</label>
            <select id="cat" name="cat">
                <option value="tv-all" style="font-weight: bold;">TV: ALL</option>
                <option value="5">TV: DVD</option>
                <option value="6">TV: Divx/Xvid</option>
                <option value="41" selected>TV: HD</option>
                <option value="7">TV: Sport/Event</option>
                <option value="8">TV: Other</option>
            <label for="language"><?php echo __('Language')?>:</label>
            <select id="language" name="language">
                <?php foreach ($languages as $lang) { ?>
                <option value="<?php echo $lang->id?>"><?php echo $lang->name?></option>
                <?php } ?>
        <input type="hidden" name="poster" id="poster" />
        <p class="submit">
            <input class="button" type="submit" value="<?php echo __('Save')?>" />
<div class="clearer"></div>
                    <!-- main ends -->
<script type="text/javascript">
$('<img src="' + baseUrl + 'images/move-spinner.gif" id="spinner" />').css('position','absolute').hide().appendTo('body');

var searchData = "";

$('#name').autocomplete(data, {
    matchContains: false,
    minChars: 1
}).result(function (e, result) {

function getImages(search) {
    var position = $('#name').offset();
    $('#spinner').css({ top: position.top , left: position.left + $('#name').width() + 30 }).fadeIn();
    var url = baseUrl + 'series/getBanners/' + search;
    $.get(url, function (data) {
        $("img.select-img").click(function () {
            return false;

$('<div id="slow-page-sign" />').css('position', 'absolute').hide().appendTo('body');
$('input[type="submit"]').click(function () {
    $(this).attr("disabled", true);
    $(this).val('<?php echo __('Wait')?>...');
    var position = $(this).offset();
    $('#slow-page-sign').css({ top: position.top - $(this).height() - $('#slow-page-sign').height() , left: position.left, background: '#fff', color: '#000' }).
        fadeIn().html('<?php echo __('add-slow-page')?>');

Return current item: Auto TV to Sabnzbd