<?php
# ------------------------------------------------------------------------------
#
# This file contains the player gui for TVEz
#
# ------------------------------------------------------------------------------
#
# Copyright (C) 2003 Christian Eheim and Alex Pachikov
#
# This file is part of TVEz (tvez.sourceforge.net).
#
# TVEz is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# TVEz is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with TVEz; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# ------------------------------------------------------------------------------
#
# Created on 02/12/2003 by Alex Pachikov
#
# LAST MODIFIED:
# $Date: 2004/01/19 19:06:39 $
# $Revision: 1.4 $
# $Author: eheim $
#
# ------------------------------------------------------------------------------
require "../shared/session.php";
require "../../config/config_file.php";
require "../locale/localize.php";
$TRANSLATED_TEXT = get_translation("../locale");
require "../themes/theme.php";
$theme = get_theme();
echo '
<html>
<head>
<link rel="stylesheet" type="text/css" href="../themes/theme.css.php?theme='.$theme.'">
<link rel="stylesheet" type="text/css" href="../themes/theme.css.php?theme='.$theme.'&content=player">
';
?>
</head>
<body topmargin=0 leftmargin=0 marginwidth=0 marginheight=0 onload="javascript:setTimeout('top.playlist.location.reload()', 3000);">
<table cellpadding=4 cellspacing=0 class="player">
<tr>
<td class="player">
<form method=POST action=tvcontrol.php>
<a href="tvcontrol.php?tvst=slow2"><img src=images/slow.gif title="<?php echo localize_string("Slow") ?>" alt="slow" border=0></a>
<a href="tvcontrol.php?tvst=prev"><img src=images/prev.gif title="<?php echo localize_string("Previous") ?>" alt="prev" border=0></a>
<a href="tvcontrol.php?tvst=pause"><img src=images/pause.gif title="<?php echo localize_string("Pause") ?>" alt="pause" border=0></a>
<a href="tvcontrol.php?tvst=stop"><img src=images/stop.gif title="<?php echo localize_string("Stop") ?>" alt="stop" border=0></a>
<a href="tvcontrol.php?tvst=play"><img src=images/play.gif title="<?php echo localize_string("Play") ?>" alt="play" border=0></a>
<a href="tvcontrol.php?tvst=next"><img src=images/next.gif title="<?php echo localize_string("Next") ?>" alt="next" border=0></a>
<a href="tvcontrol.php?tvst=fast4"><img src=images/fast.gif title="<?php echo localize_string("Fast") ?>" alt="fast" border=0></a>
<a href="tvcontrol.php?tvst=clear"><img src=images/clr.gif title="<?php echo localize_string("Clear Playlist") ?>" alt="clear" border=0></a>
<a href="tvcontrol.php?tvst=quit"><img src=images/kill.gif title="<?php echo localize_string("Kill") ?>" alt="kill" border=0></a>
<br>
<select name=loop onchange="javascript:this.form.submit()">
<option value=><?php echo localize_string("Loop") ?></option>
<option value="loop no"><?php echo localize_string("no") ?></option>
<option value="loop loop"><?php echo localize_string("loop") ?></option>
<option value="loop repeat"><?php echo localize_string("repeat") ?></option>
<option value="loop shuffle"><?php echo localize_string("shuffle") ?></option>
<option value="loop shuffle+"><?php echo localize_string("shuffle+") ?></option>
</select> <select name=back onchange="javascript:this.form.submit()">
<?php
$times = array (
'10s' => 10,
'20s' => 20,
'30s' => 30,
'1m' => 60,
'2m' => 120,
'3m' => 180,
'5m' => 300,
'10m' => 600,
'20m' => 1200,
'30m' => 1800,
'60m' => 3600,
'90m' => 5400
);
echo "<option value=>".localize_string("Back")."</option>\n";
foreach ($times as $key => $value)
echo "<option value=\"seek -$value\">$key</option>\n";
?>
</select> <select name=tvst onchange="javascript:this.form.submit()">
<?php
echo "<option value=>".localize_string("Seek")."</option>\n";
for ($i=0;$i<100;$i=$i+5)
echo "<option value=\"seek %$i\">$i%</option>\n";
?>
</select> <select name=fwd onchange="javascript:this.form.submit()">
<?php
echo "<option value=>".localize_string("Fwd")."</option>\n";
foreach ($times as $key => $value)
echo "<option value=\"seek +$value\">$key</option>\n";
?>
</select>
</form>
</td>
</tr>
</table>
</body>
</html>