Hochladen aller Dateien des Projekts.

This commit is contained in:
2024-06-13 22:21:23 +02:00
parent 8af145816f
commit 2e0cd7dee3
650 changed files with 97218 additions and 0 deletions

225
us_import_komplex.php Executable file
View File

@@ -0,0 +1,225 @@
<?php
@session_start();
if ( ( $_SESSION[ "benutzer_anmeldename" ] == "superuser" ) and ( $_SESSION[ "mandant_name" ] == "Standard" ) )
{
header( "Location: su_uebersicht.php" );
exit;
}
//$benutzer_anmeldename = $_SESSION[ "benutzer_anmeldename" ];
if ( strlen( $_SESSION[ "benutzer_anmeldename" ] ) > 0 )
{
////////////////////////////////////////
// Javascript-Dateien
$_SESSION[ "javascript_dateien" ] = "jquery.iframe-transport.js|jquery.ui.widget.js|load-image_min.js|jquery.fileupload.js|jquery.fileupload-process.js|jquery.fileupload-image.js|jquery.fileupload-audio.js|jquery.fileupload-video.js|jquery.fileupload-validate.js|jquery.fileupload-ui.js|jquery.fileupload-jquery-ui.js|fileupload.main.js|tmpl.min.js|canvas-to-blob_min.js";
////////////////////////////////////////
////////////////////////////////////////
// Javascript-Startup
$_SESSION[ "javascript_startup" ] = "";
////////////////////////////////////////
////////////////////////////////////////
// CSS-Dateien
$_SESSION[ "css_dateien" ] = "jquery.fileupload.css|jquery.fileupload-ui.css|blueimp-gallery_min.css";
////////////////////////////////////////
$_SESSION[ "title" ] = "Übersicht";
include( 'ssi_header.php' );
$_SESSION[ "title" ] = "";
////////////////////////////////////////
// Javascript-Dateien
$_SESSION[ "javascript_dateien" ] = "";
////////////////////////////////////////
////////////////////////////////////////
// Javascript-Startup
$_SESSION[ "javascript_startup" ] = "";
////////////////////////////////////////
////////////////////////////////////////
// CSS-Dateien
$_SESSION[ "css_dateien" ] = "";
////////////////////////////////////////
//onclick=\"$( '#ergebnis_3' ).load('su_web.php?cmd=benutzer_anlegen', function() { $( '.date-pick' ).datepicker({ showAnim: 'clip', buttonImageOnly: true, showOn: 'both', buttonImage: 'img/kalender.png', showWeek: true } ); } );
$us_rech_imp_button = liefere_benutzerspezifische_einstellung( $_SESSION[ "mandant_name" ], $_SESSION[ "benutzer_anmeldename" ], "us_rech_imp_button" );
if ( $us_rech_imp_button == "ja" )
{
echo "<div style='margin-left:200px; padding-bottom:30px; min-height:550px;' >";
include( "us_menu.php" );
}
else
{
echo "<div style='margin-left:20px; padding-bottom:30px; min-height:550px;' >";
}
/*
$ergebnis = welche_dokumentarten_darf_benutzer_importieren( $_SESSION[ "mandant_name" ], $_SESSION[ "benutzer_anmeldename" ] );
if ( $ergebnis[ 0 ] > 0 )
{
echo '<select name="alpha_03" style="height:100%; width:255px;" onchange="$( \'#importmaske\' ).load( \'su_web.php?cmd=liefere_importmaske&mandant_name='.urlencode( $mandant_name ).'&element_typ=\'+this.value, function() { $( \'.date-pick\' ).datepicker({ showAnim: \'clip\', buttonImageOnly: true, showOn: \'both\', buttonImage: \'img/kalender.png\', showWeek: true } ); }, function() { $ (\'.fileupload\' ).fileupload({ url: \'us_upload.php\' }) } ) " ><option />';
//echo '<select name="alpha_03" style="height:100%; width:255px;" onchange="ajaxFunction( \'su_web.php?cmd=liefere_importmaske&mandant_name='.urlencode( $mandant_name ).'&element_typ=\'+this.value, \'importmaske\' );" ><option />';
foreach ( $ergebnis[ 1 ] as $dokart_kuerzel )
{
$erg = liefere_dokartinformationen( $mandant_name, $dokart_kuerzel );
echo "<option value='".$erg[ 2 ][ "dokart_kuerzel" ]."'>".$erg[ 2 ][ "dokart_name" ]."</option>";
}
echo "</select><div id='importmaske'></div>
";
}*/
?>
<form id="fileupload" action="//jquery-file-upload.appspot.com/" method="POST" enctype="multipart/form-data">
<!-- Redirect browsers with JavaScript disabled to the origin page -->
<noscript><input type="hidden" name="redirect" value="http://blueimp.github.io/jQuery-File-Upload/"></noscript>
<!-- The fileupload-buttonbar contains buttons to add/delete files and start/cancel the upload -->
<div class="fileupload-buttonbar">
<div class="fileupload-buttons">
<!-- The fileinput-button span is used to style the file input field as button -->
<span class="fileinput-button">
<span>Add files...</span>
<input type="file" name="files[]" multiple>
</span>
<button type="submit" class="start">Start upload</button>
<button type="reset" class="cancel">Cancel upload</button>
<button type="button" class="delete">Delete</button>
<input type="checkbox" class="toggle">
<!-- The loading indicator is shown during file processing -->
<span class="fileupload-loading"></span>
</div>
<!-- The global progress information -->
<div class="fileupload-progress fade" style="display:none">
<!-- The global progress bar -->
<div class="progress" role="progressbar" aria-valuemin="0" aria-valuemax="100"></div>
<!-- The extended global progress information -->
<div class="progress-extended">&nbsp;</div>
</div>
</div>
<!-- The table listing the files available for upload/download -->
<table role="presentation"><tbody class="files"></tbody></table>
</form>
<!-- The blueimp Gallery widget -->
<div id="blueimp-gallery" class="blueimp-gallery blueimp-gallery-controls" data-filter=":even">
<div class="slides"></div>
<h3 class="title"></h3>
<a class="prev"></a>
<a class="next"></a>
<a class="close">×</a>
<a class="play-pause"></a>
<ol class="indicator"></ol>
</div>
<!-- The template to display files available for upload -->
<script id="template-upload" type="text/x-tmpl">
{% for (var i=0, file; file=o.files[i]; i++) { %}
<tr class="template-upload fade">
<td>
<span class="preview"></span>
</td>
<td>
<p class="name">{%=file.name%}</p>
{% if (file.error) { %}
<div><span class="error">Error:</span> {%=file.error%}</div>
{% } %}
</td>
<td>
<p class="size">{%=o.formatFileSize(file.size)%}</p>
{% if (!o.files.error) { %}
<div class="progress"></div>
{% } %}
</td>
<td>
{% if (!o.files.error && !i && !o.options.autoUpload) { %}
<button class="start">Start</button>
{% } %}
{% if (!i) { %}
<button class="cancel">Cancel</button>
{% } %}
</td>
</tr>
{% } %}
</script>
<!-- The template to display files available for download -->
<script id="template-download" type="text/x-tmpl">
{% for (var i=0, file; file=o.files[i]; i++) { %}
<tr class="template-download fade">
<td>
<span class="preview">
{% if (file.thumbnailUrl) { %}
<a href="{%=file.url%}" title="{%=file.name%}" download="{%=file.name%}" data-gallery><img src="{%=file.thumbnailUrl%}"></a>
{% } %}
</span>
</td>
<td>
<p class="name">
<a href="{%=file.url%}" title="{%=file.name%}" download="{%=file.name%}" {%=file.thumbnailUrl?'data-gallery':''%}>{%=file.name%}</a>
</p>
{% if (file.error) { %}
<div><span class="error">Error</span> {%=file.error%}</div>
{% } %}
</td>
<td>
<span class="size">{%=o.formatFileSize(file.size)%}</span>
</td>
<td>
<button class="delete" data-type="{%=file.deleteType%}" data-url="{%=file.deleteUrl%}"{% if (file.deleteWithCredentials) { %} data-xhr-fields='{"withCredentials":true}'{% } %}>Delete</button>
<input type="checkbox" name="delete" value="1" class="toggle">
</td>
</tr>
{% } %}
</script>
<!-- blueimp Gallery script -->
<script src="http://blueimp.github.io/Gallery/js/jquery.blueimp-gallery.min.js"></script>
<?php
//echo "jsdoklhnf sdofjkh irewsfgj sijfsowigfhj owirghaowigerhj owrigoairghaoyiswegfjslwrjg aolwsgrh owreasig hawosrig hwi ghwoirghjowsieghosihdf oswierghf ";
echo '</div>';
echo "<p style='clear:both;' />";
include( 'ssi_footer.php' );
}
else
{
header("Location: index.php");
}
?>