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 pathquestion.php
58 lines (56 loc) · 3.46 KB
/
question.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
<script type="text/javascript">
var checkInput = function() {
if ($('email').value == '' || $('question').value == '' || $('captcha_code').value == '') {
alert("Bitte alle Felder korrekt ausfüllen!");
return false;
} else {
return true;
}
}
</script>
<? $user = $GLOBALS['AUTH']->getAuthenticatedUser(); ?>
<FORM NAME="question" METHOD="POST" ACTION="?dispatch=send_question" onSubmit="return checkInput();">
<INPUT TYPE="hidden" NAME="plugin_id" VALUE="<?=$plugin_id?>">
<DIV CLASS="topic">Treten Sie mit dem Autoren des Plugins in Kontakt <img src="images/icons/16/white/mail.png"></DIV>
<TABLE BORDER=0>
<TR>
<TD STYLE="width:200px; vertical-align:top; font-weight:bold;">Art der Anfrage: </TD>
<TD>
<SELECT NAME="question_type" SIZE="1">
<OPTION VALUE="Anfrage" <?=($_REQUEST['question_type'] == 'Anfage' ? 'CHECKED' : '')?>>Anfrage</OPTION>
<OPTION VALUE="Fehlerreport" <?=($_REQUEST['question_type'] == 'Fehlerreport' ? 'CHECKED' : '')?>>Fehlerreport</OPTION>
<OPTION VALUE="Feedback" <?=($_REQUEST['question_type'] == 'Feedback' ? 'CHECKED' : '')?>>Feedback</OPTION>
</SELECT>
</TD>
</TR>
<TR>
<TD STYLE="width:200px; vertical-align:top; font-weight:bold;">Eigene E-Mail Adresse: </TD>
<TD><INPUT TYPE="text" STYLE="width:400px;" MAXLENGTH=255 NAME="email" ID="email" VALUE="<?=($user ? $user['email'] : htmlReady($_REQUEST['email']))?>"> <SPAN STYLE="color:red; font-weight:bold;">*</SPAN></TD>
</TR>
<TR>
<TD STYLE="width:200px; vertical-align:top; font-weight:bold;">Name: </TD>
<TD><INPUT TYPE="text" STYLE="width:400px;" MAXLENGTH=255 NAME="users_name" ID="users_name" VALUE="<?=($user ? $user['vorname'].' '.$user['nachname'] : htmlReady($_REQUEST['users_name']))?>"></TD>
</TR>
<TR>
<TD STYLE="width:200px; vertical-align:top; font-weight:bold;">Anfrage: </TD>
<TD><TEXTAREA STYLE="width:400px; height:200px;" NAME="question" ID="question"><?=htmlReady($_REQUEST['question'])?></TEXTAREA><SPAN STYLE="color:red; font-weight:bold;">*</SPAN></TD>
</TR>
<? if (!$user) : ?>
<TR>
<TD STYLE="width:200px; vertical-align:top;">Geben Sie bitte die nebenstehende Zeichenfolge zur Verifikation ein: </TD>
<TD><IMG ID="captcha" STYLE="border:1px solid black;" alt="CAPTCHA Image" SRC="<?=$GLOBALS['BASE_URI']?>lib/captcha/securimage_show.php">
<object type="application/x-shockwave-flash" data="lib/captcha/securimage_play.swf?audio=lib/captcha/securimage_play.php&bgColor1=#fff&bgColor2=#fff&iconColor=#777&borderWidth=1&borderColor=#000" height="19" width="19">
<param name="movie" value="lib/captcha/securimage_play.swf?audio=lib/captcha/securimage_play.php&bgColor1=#fff&bgColor2=#fff&iconColor=#777&borderWidth=1&borderColor=#000" />
</object>
<BR><BR><a href="#" onclick="document.getElementById('captcha').src = '<?=$GLOBALS['BASE_URI']?>lib/captcha/securimage_show.php?' + Math.random(); return false">Bild unleserlich? Neues generieren</a><BR><INPUT TYPE="text" SIZE=20 MAXLENGTH=255 NAME="captcha_code" ID="captcha_code" VALUE=""> <SPAN STYLE="color:red; font-weight:bold;">*</SPAN></TD>
</TR>
<? endif ?>
<TR>
<TD COLSPAN=2> </TD>
</TR>
<TR>
<TD COLSPAN=2 STYLE="text-align:center;"><INPUT TYPE="image" <?=makeButton('absenden','src')?>> <IMG <?=makeButton('abbrechen','src')?> STYLE="cursor:pointer;" onClick="location.href='?';"></TD>
</TR>
</TABLE>
<SPAN STYLE="color:red; font-weight:bold;">*</SPAN> = Pflichtfeld
</FORM>