ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
metadata-converter.php
Go to the documentation of this file.
1
<?
php
2
$this->
data
[
'header'
] = $this->t(
'metaconv_title'
);
3
$this->includeAtTemplateBase(
'includes/header.php'
);
4
?>
5
<h2><?
php
echo
$this->t(
'metaconv_title'
); ?></h2>
6
<form action=
"?"
method=
"post"
enctype=
"multipart/form-data"
>
7
<
p
><?
php
echo
($this->t(
'{admin:metaconv_xmlmetadata}'
)); ?></
p
>
8
<
p
>
9
<
textarea
rows=
"20"
style
=
"width: 100%"
10
name=
"xmldata"
><?
php
echo
htmlspecialchars($this->
data
[
'xmldata'
]); ?></
textarea
>
11
</
p
>
12
<
p
>
13
<?
php
echo
$this->t(
'metaconv_selectfile'
); ?>
14
<
input
type=
"file"
name=
"xmlfile"
/></
p
>
15
<
p
>
16
<button type=
"submit"
class
=
"btn"
><?
php
echo
$this->t(
'metaconv_parse'
); ?></button>
17
</
p
>
18
</form>
19
<?
php
20
$output
= $this->
data
[
'output'
];
21
22
if
(!empty(
$output
)) {
23
?>
24
<h2><?
php
echo
$this->t(
'metaconv_converted'
); ?></h2>
25
<?
php
26
$i
= 1;
27
foreach
(
$output
as
$type
=>
$text
) {
28
if
(
$text
===
''
) {
29
continue
;
30
}
31
?>
32
<h3><?
php
echo
htmlspecialchars(
$type
); ?></h3>
33
<div
class
=
"metadatabox"
>
34
<button
data
-clipboard-target=
"#metadata<?php echo $i; ?>"
id
=
"btn<?php echo $i; ?>"
35
class
=
"btn topright"
style
=
"margin-right: 0.5em;"
>
36
<img src=
"/<?php echo $this->data['baseurlpath'].'resources/icons/clipboard.svg'; ?>"
37
alt=
"Copy to clipboard"
/>
38
</button>
39
<pre
id
=
"metadata<?php echo $i; ?>"
><?
php
40
echo
htmlspecialchars(
$text
);
41
?></pre>
42
</div>
43
<?
php
44
$i++;
45
}
46
?>
47
<
script
type=
"text/javascript"
>
48
<?
php
49
for
($j = 1; $j <=
$i
; $j++) {
50
?>
51
var clipboard<?php echo $j; ?> =
new
Clipboard(
'#btn<?php echo $j; ?>'
);
52
<?
php
53
}
54
?>
55
</
script
>
56
<?
php
57
}
58
$this->includeAtTemplateBase(
'includes/footer.php'
);
$type
$type
Definition:
proxy_ylocal.php:10
Symfony\Polyfill\Mbstring
Definition:
Mbstring.php:12
style
"color:#CC0000 style
Definition:
example_001.php:92
data
$this data['header']
Definition:
metadata-converter.php:2
textarea
textarea
Definition:
langcheck.php:160
input
input
Definition:
langcheck.php:166
$text
$text
Definition:
errorreport.php:18
$output
$output
Definition:
metadata-converter.php:20
echo
$i
$i
Definition:
disco.tpl.php:19
php
script
libs
composer
vendor
simplesamlphp
simplesamlphp
templates
metadata-converter.php
Generated on Thu Jan 16 2025 19:01:56 for ILIAS by
1.8.13 (using
Doxyfile
)