This repository has been archived by the owner on Dec 2, 2022. It is now read-only.
forked from jankul/studip-marketplace
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathshow_plugin_generator.php
64 lines (64 loc) · 3.34 KB
/
show_plugin_generator.php
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
<script type="text/javascript">
var checkInput = function() {
if ($('pluginname').value == '' || $('pluginclassname').value == '' || $('pluginauthor').value == '') {
alert('Bitte füllen Sie alle Pflichtfelder aus!');
return false;
} else {
return true;;
}
}
</script>
<FORM NAME="generator" METHOD="POST" ACTION="?dispatch=generate_plugin" onSubmit="return checkInput();">
<?=MessageBox::info("Willkommen zum Plugin-Generator!")?>
<DIV CLASS="topic">Plugin-Hüllen für Stud.IP von Version 1.9 bis einschl. 1.11 generieren</DIV>
<TABLE BORDER=0>
<? $css->switchClass(); ?>
<TR CLASS="<?=$css->getClass()?>">
<TD CLASS="<?=$css->getClass()?>" STYLE="font-size:12px; font-weight:bold;">Plugin-Name: <SPAN STYLE="color:red; font-weight:bold;">*</SPAN></TD>
<TD CLASS="<?=$css->getClass()?>"><INPUT TYPE="text" NAME="pluginname" ID="pluginname" SIZE="50" MAXLENGTH="255"></TD>
</TR>
<? $css->switchClass(); ?>
<TR CLASS="<?=$css->getClass()?>">
<TD CLASS="<?=$css->getClass()?>"><SPAN STYLE="font-size:12px; font-weight:bold;">Plugin-Klassenname: </SPAN><SPAN STYLE="color:red; font-weight:bold;">*</SPAN><BR><SPAN STYLE="font-size:10px;">Bitte keine Bindestriche oder Leerzeichen verwenden.</SPAN></TD>
<TD CLASS="<?=$css->getClass()?>" STYLE="vertical-align:top;"><INPUT TYPE="text" NAME="pluginclassname" ID="pluginclassname" SIZE="50" MAXLENGTH="255"></TD>
</TR>
<? $css->switchClass(); ?>
<TR>
<TD CLASS="<?=$css->getClass()?>" STYLE="font-size:12px; font-weight:bold;">Autor: <SPAN STYLE="color:red; font-weight:bold;">*</SPAN></TD>
<TD CLASS="<?=$css->getClass()?>"><INPUT TYPE="text" NAME="pluginauthor" ID="pluginauthor" SIZE="50" MAXLENGTH="255"></TD>
</TR>
<? $css->switchClass(); ?>
<TR CLASS="<?=$css->getClass()?>">
<TD CLASS="<?=$css->getClass()?>" STYLE="font-size:12px; font-weight:bold;">Minimale Stud.IP Version: <SPAN STYLE="color:red; font-weight:bold;">*</SPAN></TD>
<TD CLASS="<?=$css->getClass()?>">
<SELECT NAME="studipminversion" SIZE="1">
<? foreach (array('1.9','1.10','1.11') as $v) : ?>
<OPTION VALUE="<?=$v?>"><?=$v?></OPTION>
<? endforeach ?>
</SELECT>
</TD>
</TR>
<? $css->switchClass(); ?>
<TR CLASS="<?=$css->getClass()?>">
<TD CLASS="<?=$css->getClass()?>" STYLE="font-size:12px; font-weight:bold;">Maximale Stud.IP Version: <SPAN STYLE="color:red; font-weight:bold;">*</SPAN></TD>
<TD CLASS="<?=$css->getClass()?>">
<SELECT NAME="studipmaxversion" SIZE="1">
<? foreach (array('1.9','1.10','1.11') as $v) : ?>
<OPTION VALUE="<?=$v?>"><?=$v?></OPTION>
<? endforeach ?>
</SELECT>
</TD>
</TR>
<? $css->switchClass(); ?>
<TR CLASS="<?=$css->getClass()?>">
<TD CLASS="<?=$css->getClass()?>" STYLE="font-size:12px; font-weight:bold; vertical-align:top;">Art des Plugins: <SPAN STYLE="color:red; font-weight:bold;">*</SPAN></TD>
<TD CLASS="<?=$css->getClass()?>">
<? foreach (array('Administration','Homepage','Portal','Standard','System') as $t) : ?>
<INPUT TYPE="radio" NAME="plugintype" VALUE="<?=$t?>" <?=($t=='Administration'?'CHECKED':'')?>> <?=$t?><BR>
<? endforeach ?>
</TD>
</TR>
<TR><TD COLSPAN="2" STYLE="text-align:center;"><INPUT TYPE="image" <?=makeButton('magic','src')?>></TD></TR>
</TABLE>
</FORM>
<SPAN STYLE="color:red; font-weight:bold;">*</SPAN> = Pflichtfeld