<?php
/* +----------------------------------------------------------------------+
| Netautor Professional Application Server |
+----------------------------------------------------------------------+
| Copyright (C) 1998-2005 digiconcept GmbH. <www.digiconcept.net> |
+----------------------------------------------------------------------+
| This file is subject to license, that is bundled with this package |
| in the file LICENSE.TXT, and is available at through the |
| world-wide-web at http://www.netautor.com/license/ |
| |
| If you did not receive a copy of the license and are unable to |
| obtain it through the world-wide-web, please send a note to |
| hide@address.com so we can mail you a copy. |
+----------------------------------------------------------------------+
| Authors: Stefan Rottensteiner <hide@address.com> |
| Marek Kadziela <hide@address.com> |
| Gregor Wollner |
| Christian Unger |
| Helli Kleinhans |
+----------------------------------------------------------------------+*/
/**
* Kopf mit Setlist etc. für den Medienpool
*
* @version $Revision: 1.4 $
* @author Stefan Rottensteiner
*/
require_once('../../include/init.inc');
if(!$USER->check_feature('Admin') && !$USER->check_feature('ac_mediapool'))
{
$USER->login_call();
}
$LOCALE->textdomain('mediapool');
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>/digiconcept/netautor/mediapool.bottom</title>
</head>
<link href="../../include/netautor.css" rel="stylesheet" type="text/css" src="../include/netautor.css">
<body class="bgstripes" style="border-top-style:solid; border-top-color:#cbcbcb; border-top-width:1px;">
<script>
function mp_startUpload(){
var up = parent.frames['mp_head'].document.getElementById('location_path');
var ul = parent.frames['mp_head'].document.getElementById('location_folder');
if(ul.type=='hidden')
var DEF_UPLOAD_PATH = up.options[up.selectedIndex].value;
else
var DEF_UPLOAD_PATH = up.options[up.selectedIndex].value+ul.options[ul.selectedIndex].value;
if(DEF_UPLOAD_PATH)
{
parent.frames['mp_main'].document.getElementById('DEF_UPLOAD_PATH').value = DEF_UPLOAD_PATH;
parent.frames['mp_main'].document.getElementById('mp_form_upload').submit();
}
}
function mp_startDelete()
{
parent.frames['mp_main'].document.getElementById('fileAction').value = 'delete';
parent.frames['mp_main'].document.getElementById('mp_list_form').submit();
document.getElementById('buttonDelete').style.display='none';
}
</script>
<form>
<center style="margin-top:5px;">
<?php
if($show=='upload')
{ ?>
<input type="button" value="<?php echo( $LOCALE->gettext('button_cancel_upload') ); ?>" class="new"
onClick="parent.document.location.href='index.php';">
<input type="button" value="<?php echo( $LOCALE->gettext('button_start_upload') ); ?>" class="create"
onClick="mp_startUpload();" >
<br>
<? }
else
{
if ( $GLOBALS['USER']->check_feature('Admin') || $GLOBALS['USER']->check_feature('ac_upload') || $GLOBALS['USER']->ID > 100 )
{
?>
<input type="button" value="<?php echo( $LOCALE->gettext('button_new_upload') ); ?>" class="create"
onClick="parent.document.location.href='index_upload.php';">
<?php
}
?>
<input type="button" value="<?php echo( $LOCALE->gettext('button_delete') ); ?>" class="delete"
onClick="mp_startDelete();" id="buttonDelete"
style="display:none;">
<input type="button" value="<?php echo( $LOCALE->gettext('button_refresh') ); ?>"
onclick="parent.frames['mp_main'].document.location.reload();" class="new">
<? } ?>
</center>
</form>
</body>
</html>