-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathfirma4.phtml
116 lines (106 loc) · 4.38 KB
/
firma4.phtml
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<!DOCTYPE phtml>
<html>
<head>
<meta charset='utf-8'/>
<?php
require_once __DIR__.'/inc/stdLib.php';
$menu = $_SESSION['menu'];
//$head = mkHeader();//wird nicht mehr benötigt, weil Aufruf in stdlib
echo $menu['stylesheets'];
echo $menu['javascripts'];
echo $head['THEME'];
echo $head['ELFINDER'];
echo $head['TRANSLATION'];
?>
<script type="text/javascript">
$(document).ready(function() {
var language = kivi.myconfig.countrycode;
$( ".lang" ).each( function(){
var key = $( this ).attr( "data-lang" );
if( $( this ).is( ":input" ) ) $( this ).attr( 'title', typeof( langData[language][key] ) != 'undefined' ? langData[language][key] : 'LNG ERR' );
else $( this ).text( typeof( langData[language][key] ) != 'undefined' ? langData[language][key] : 'LNG ERR' );
});
$.urlParam = function( name ){
var results = new RegExp( '[\?&]' + name + '=([^&#]*)' ).exec( window.location.href );
if( results == null ) alert( 'Parameter: "' + name + '" does not exist in "' + window.location.href + '"!' );
else return decodeURIComponent( results[1] || 0 );
}
var source_type = $.urlParam( 'Q' ) ;
var number = $.urlParam( 'kdnr' ) ;
var id = $.urlParam( 'fid' ) ;
start = function( lng ){
$('#elfinder').elfinder({
url : 'jquery-plugins/elFinder/php/connector.minimal.php?Q=' + source_type + '&number=' + number,
height : 600,
defaultView: 'list',
rememberLastDir : true,
lang : lng,
handlers : {
dblclick : function(event, elfinderInstance) {
event.preventDefault();
elfinderInstance.exec('getfile')
.done(function() { elfinderInstance.exec('quicklook'); })
.fail(function() { elfinderInstance.exec('open'); });
}
},
getFileCallback : function(files, fm) {
return false;
},
commandsOptions : {
quicklook : {
width : 700,
height : 700,
googleDocsMimes : ['application/pdf', 'image/tiff', 'application/vnd.ms-office', 'application/msword', 'application/vnd.ms-word', 'application/vnd.ms-excel', 'application/vnd.ms-powerpoint', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet']
}
}
});
}
if( language != 'en' ){
$.ajax({
url : 'jquery-plugins/elFinder/js/i18n/elfinder.' + language + '.js',
cache : true,
dataType : 'script'
}).done( function(){
start( language );
}).fail( function(){
start( 'en' );
});
}
else start( language );
$('#btn1').button().click(function() {
window.location.replace("firma1.php?Q=" + source_type + "&id= " + id);
});
$('#btn2').button().click(function() {
window.location.replace("firma2.php?Q=" + source_type + "&fid=" + id + "&id=" + id);
});
$('#btn3').button().click(function() {
window.location.replace("firma3.php?Q=" + source_type + "&fid=" + id);
});
$('#btn4').button().click(function() {
window.location.replace("firma4.php?Q=" + source_type + "&fid=" + id);
});
});
</script>
<style>
</style>
</head>
<body>
<?php
echo $menu['pre_content'];
echo $menu['start_content'];
?>
<div class="ui-widget-content" style="height:700px">
<p class="ui-state-highlight ui-corner-all tools" style="margin-top: 20px; padding: 0.6em;"><b>Detailansicht Kunde</b></p>
<div id='menubox'>
<button id="btn1"><label data-lang='CUSTOMBASE' class='lang' ></label></button>
<button id="btn2"><label data-lang='CONTACTS' class='lang' ></label></button>
<button id="btn3"><label data-lang='SALES' class='lang' ></label></button>
<button id="btn4"><label data-lang='DOCUMENTS' class='lang' ></label></button>
</div>
<br>
<div id="elfinder"></div>
</div>
<?php echo $menu['end_content']; ?>
<?php echo $head['TOOLS']; ?>
</body>
</html>