-
Notifications
You must be signed in to change notification settings - Fork 0
/
mymovies.tpl
executable file
·88 lines (87 loc) · 3.57 KB
/
mymovies.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<div class="header">
<h2>My > <strong>Movies</strong></h2>
<div class="breadcrumb-wrapper">
<ol class="breadcrumb">
<li><a href="{$smarty.const.WWW_TOP}{$site->home_link}">Home</a></li>
/ My Movies
</ol>
</div>
</div>
<div class="row">
<div class="alert alert-info">
Using 'My Movies' you can search for movies, and add them to a wishlist. If the movie
becomes available it will be added to an <strong><a
href="{$smarty.const.WWW_TOP}/rss?t=-4&dl=1&i={$userdata.id}&r={$userdata.rsstoken}">RSS
Feed</a></strong> you can use to automatically download. You can <strong><a
href="{$smarty.const.WWW_TOP}/mymovies">Manage Your Movie
List</a></strong> or to remove old items.
</div>
<div class="well well-sm">
{if $movies|@count > 0}
<table class="data highlight Sortable table" id="browsetable">
<tr>
<th style="padding-top:0px; padding-bottom:0px;"></th>
<th style="padding-top:0px; padding-bottom:0px;">name</th>
<th style="padding-top:0px; padding-bottom:0px;">category</th>
<th style="padding-top:0px; padding-bottom:0px;">added</th>
<th class="mid" style="padding-top:0px; padding-bottom:0px;">options</th>
</tr>
{foreach $movies as $movie}
<tr class="{cycle values=",alt"}">
<td class="mid" style="width:140px">
<div class="movcover">
<img class="shadow img img-polaroid"
src="{$smarty.const.WWW_TOP}/covers/movies/{if $movie.cover == 1}{$movie.imdbid}-cover.jpg{else}no-cover.jpg{/if}"
width="120" border="0" alt="{$movie.title|escape:"htmlall"}"/>
<div class="movextra">
<div style="text-align: center;">
<a class="rndbtn badge badge-imdb" target="_blank"
href="{$site->dereferrer_link}http://www.imdb.com/title/tt{$movie.imdbid}"
title="View Imdb">Imdb</a>
</div>
</div>
</div>
</td>
<td>
<h4><a title="View Movie"
href="{$smarty.const.WWW_TOP}/Movies?imdb={$movie.imdbid}">{$movie.title|escape:"htmlall"}
({$movie.year})</a></h4>
{if isset($movie.tagline) && $movie.tagline != ''}<b>{$movie.tagline}</b><br/>{/if}
{if isset($movie.plot) && $movie.plot != ''}{$movie.plot}<br/><br/>{/if}
{if isset($movie.genre) && $movie.genre != ''}<b>Genre:</b>{$movie.genre}<br/>{/if}
{if isset($movie.director) && $movie.director != ''}
<b>Director:</b>
{$movie.director}
<br/>
{/if}
{if isset($movie.actors) && $movie.actors != ''}
<b>Starring:</b>
{$movie.actors}
<br/>
<br/>
{/if}
</td>
<td class="less">{if $movie.categoryNames != ''}{$movie.categoryNames|escape:"htmlall"}{else}All{/if}</td>
<td class="less" style="width:100px;"
title="Added on {$movie.created_at}">{$movie.created_at|date_format}</td>
<td class="mid" style="width:100px;">
<div class="btn-group">
<a class="btn btn-mini btn-warning mymovies"
href="{$smarty.const.WWW_TOP}/mymovies/edit/{$movie.imdbid}" rel="edit"
name="movies{$movie.imdbid}" title="Edit Categories">Edit</a>
<a class="btn btn-mini btn-danger mymovies"
href="{$smarty.const.WWW_TOP}/mymovies/delete/{$movie.imdbid}" rel="remove"
name="movies{$movie.imdbid}" title="Remove from My Movies">Remove</a>
</div>
</td>
</tr>
{/foreach}
</table>
{else}
<div class="alert">
<button type="button" class="close" data-dismiss="alert">×</button>
<strong>Sorry!</strong> No movies bookmarked
</div>
{/if}
</div>
</div>