Anzeigesystem für WMS Monitore. http://wms.viwetter.de/interface/index.php
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

67 lines
2.3 KiB

<?php
?>
<style type="text/css">
td.contain{
min-width: 1.4em;
}
</style>
<div class="card">
<div class="card-body">
<form enctype="multipart/form-data" action="./exec/upload_media.php" method="POST">
<table>
<tr>
<td>Remote oder Upload</td>
<td>
<table>
<tr>
<td class="contain"><input type="radio" name="remote" value="remote" onclick="javascript:selremote()"></td>
<td>Remote</td>
</tr>
<tr>
<td class="contain"><input type="radio" name="remote" value="upload" onclick="javascript:selupload()"></td>
<td>Upload</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>Url Eingabe</td>
<td><input type="text" name="url" id="remotelink" onkeyup="javascript:datein()" disabled></td>
</tr>
<tr>
<td>Datei Upload</td>
<td><input type="file" name="userfile" id="fileupload" onchange="javascript:datein()" disabled ></td>
</tr>
<tr>
<td></td>
<td><input type="submit" value="Hinzufügen" name="submitbtn" id="submitbtn"></td>
</tr>
</table>
<input type="hidden" name="fid" value="<?php echo $_GET["fid"];?>">
<input type="hidden" name="folder" value="<?php echo substr($_GET["folder"],0,strpos($_GET["folder"]," "));?>">
</form>
</div>
</div>
<script type="text/javascript">
var fileupload = document.getElementById("fileupload");
var remotelink = document.getElementById("remotelink");
var submitbtn = document.getElementById("submitbtn");
function selremote(){
remotelink.disabled=false;
fileupload.disabled=true;
submitbtn.disabled=true;
}
function selupload(){
remotelink.disabled=true;
fileupload.disabled=false;
submitbtn.disabled=true;
}
function datein(){
submitbtn.disabled=false;
}
submitbtn.disabled=true;
</script >
<?php
?>