Hi,
>> Just wondering how most people build forms to collect data. Do people
>> normally just do it outside Midgard using PHP directly talking to MySQL
>> or does Midgard provide an infrastructure for collecting data? I looked
>> at the tables in MySQL and it doesn't seem to have anything dedicated to
>> defining and storing forms and their collected data.
I had to build a form for a survey some weeks ago.
It stores every answer as article (named by date) and every detail as
parameter to that article.
It is probably not programmed explicitly nice, but it works ;-)
Even parts of the evaluation are finished. Maybe later on I will try and add
some graphs to that evaluation. I have been playing with 'jpgraph'
(http://www.aditus.nu/jpgraph/index.php ) for that purpose, but so far this
code is not ready to be published.
I have attached the textfile that contains the necessary pages and snippet.
For those who want to see it work, check out:
http://esc.charite.de/gemsa/ for the form (in GERMAN!)
http://esc.charite.de/gemsa/ergebnisse/ for the outcome
maybe someone can use that....
Alex
***root website***
<?
if ($submit)
{
// Include the module to enter articles+params
mgd_include_snippet("/gemsa/create_article");
exit;
}
?>
<head>
<title>Liebe KommilitonInnen, </title>
</head>
<body bgcolor="#ffffff">
<p>Liebe KommilitonInnen, </p>
<p>mit dem folgenden
Fragebogen wollen wir die Nutzung des Internet durch Medizinstudenten evaluieren
und den Bedarf eines (weiteren) Medizinstudenten-Portals ermitteln.</p>
<p>Wir w�rden uns freuen, wenn Ihr Euch ein paar Minuten Zeit nehmen k�nnt, den
Bogen auszuf�llen...</p>
<p>Vielen Dank
f�r Eure Mithilfe, </p>
<p>German medical students association GeMSA</p>
<hr width="100%" size="8">
<form name="form1" method="post" action="">
<p>An welcher Uni studierst Du?
<input type="radio" name="uni" value="bonn">
Bonn
<input type="radio" name="uni" value="muenchen">
M�nchen
<input type="radio" name="uni" value="berlin">
Berlin</p>
<p>Im welchem Fachsemester?
<input type="text" name="semester" size="5" maxlength="5">
</p>
<p>Bist Du
<input type="radio" name="abschnitt" value="vorklinik">
Vorklinik
<input type="radio" name="abschnitt" value="klinik">
Klinik</p>
<p>Bist Du
<input type="radio" name="geschlecht" value="mann">
m�nnlich
<input type="radio" name="geschlecht" value="frau">
weiblich</p>
<p>Hast Du vor Deinem Studium eine Ausbildung absolviert
<input type="radio" name="ausbildung" value="ja">
ja
<input type="radio" name="ausbildung" value="nein">
nein</p>
<p>Wenn ja, welche:
<input type="text" name="ausbildung_welche" size="50" maxlength="50">
</p>
<p>Alter:
<input type="text" name="alter" size="5" maxlength="5">
</p>
<p>Arbeitest in einer studentischen AG?
<input type="radio" name="ag" value="ja">
ja
<input type="radio" name="ag" value="nein">
nein</p>
<p>Wenn ja, in welcher?
<input type="text" name="ag_welche" size="50" maxlength="50">
</p>
<p>Hast Du einen eigenen Computer zu Hause
<input type="radio" name="eigen_comp" value="ja">
ja
<input type="radio" name="eigen_comp" value="nein">
nein</p>
<p>Wenn ja, was f�r einen (Prozessor,
RAM, ...)
<input type="text" name="comp_detail" size="50" maxlength="50">
</p>
<p align="left">Welches Betriebssystem benutzt Du?
<input type="radio" name="os" value="win">
MSWindows
<input type="radio" name="os" value="linux">
Linux
<input type="radio" name="os" value="mac">
MacOS
<input type="radio" name="os" value="sonst">
Sonstiges</p>
<p align="left">Welchen Webbrowser benutzt Du?
<input type="radio" name="browser" value="ie">
MSInternetExplorer
<input type="radio" name="browser" value="netscape">
Netscape Navigator
<input type="radio" name="browser" value="opera">
Opera
<input type="radio" name="browser" value="sonst">
anderen</p>
<p>Hast Du einen Internetzugang zu Hause
<input type="radio" name="net_home" value="ja">
ja
<input type="radio" name="net_home" value="nein">
nein</p>
<p> Wenn ja, wie:
<input type="radio" name="einwahl" value="modem">
Modem
<input type="radio" name="einwahl" value="isdn">
ISDN
<input type="radio" name="einwahl" value="DSL">
DSL
<input type="radio" name="einwahl" value="sonst">
anderen</p>
<p>Kannst Du an der Uni einen Computer benutzen
<input type="radio" name="net_uni" value="ja">
ja
<input type="radio" name="net_uni" value="nein">
nein</p>
<p>Wieviele Stunden pro Woche arbeitest Du am Computer
<input type="text" name="comp_stunden" size="5" maxlength="5">
</p>
<p>Bitte sch�tze die ungef�hren Anteile in % ein
f�r:</p>
<p> -
<input type="text" name="c_studium" size="5" maxlength="5">
Studium (CD-Rom, Internet, GK, ..) </p>
<p> -
<input type="text" name="c_promo" size="5" maxlength="5">
Promotion</p>
<p> -
<input type="text" name="c_spiele" size="5" maxlength="5">
Spiele</p>
<p> -
<input type="text" name="c_komm" size="5" maxlength="5">
Kommunikation (Chat, email,..)</p>
<p> -
<input type="text" name="c_multi" size="5" maxlength="5">
Multimedia (Videos, Musik, �)</p>
<p> -
<input type="text" name="c_office" size="5" maxlength="5">
Officeanwendungen (Word, Excel, �)</p>
<p> -
<input type="text" name="c_sonst" size="5" maxlength="5">
Sonstige</p>
<p>Kennst Du online-Angebote f�r Medizinstudenten:
<input type="radio" name="online_angeb" value="ja">
ja
<input type="radio" name="online_angeb" value="nein">
nein</p>
<p> Wenn ja, welche (bitte mit Schulnote):
<textarea name="online_angeb_welche" cols="100" rows="5"></textarea>
</p>
<p>Benutzt Du die Webseiten Deiner Uni?
<input type="radio" name="uni_webs" value="ja">
ja
<input type="radio" name="uni_webs" value="nein">
nein</p>
<p> Wenn ja, wof�r?
<textarea name="uni_webs_wofuer" cols="100" rows="5"></textarea>
</p>
<p>Hast Du schon mal Altklausuren online gesucht?
<input type="radio" name="altkl" value="ja">
ja
<input type="radio" name="altkl" value="nein">
nein</p>
<p> Wenn ja, hast Du welche gefunden?
<input type="radio" name="altkl_gef" value="ja">
ja
<input type="radio" name="altkl_gef" value="nein">
nein</p>
<p>Kennst Du die Website Deiner Fachschaft:
<input type="radio" name="wsfs" value="ja">
ja
<input type="radio" name="wsfs" value="nein">
nein</p>
<p>Kennst Du die Fachtagung Medizin?
<input type="radio" name="ftm" value="ja">
ja
<input type="radio" name="ftm" value="nein">
nein</p>
<p>Kennst Du die Website der Fachtagung Medizin?
<input type="radio" name="wsftm" value="ja">
ja
<input type="radio" name="wsftm" value="nein">
nein</p>
<p>Kennst Du den Deutschen Famulantenaustausch?
<input type="radio" name="dfa" value="ja">
ja
<input type="radio" name="dfa" value="nein">
nein</p>
<p>Kennst Du die Website des Deutschen Famulantenaustauschs?
<input type="radio" name="wsdfa" value="ja">
ja
<input type="radio" name="wsdfa" value="nein">
nein</p>
<p> </p>
<p>Bitte bewerte die folgenden Aussagen: </p>
<table width="75%" border="1">
<tr>
<td width="19%"> </td>
<td width="7%">
<p>stimme voll zu</p>
</td>
<td width="7%">
<p>stimme zu</p>
</td>
<td width="7%">
<p>stimme ehr zu</p>
</td>
<td width="13%">
<p>unentschieden</p>
</td>
<td width="15%">
<p>stimme ehr nicht zu</p>
</td>
<td width="6%">
<p>stimme nicht zu</p>
</td>
<td width="26%">
<p>stimme entschieden nicht zu</p>
</td>
</tr>
<tr>
<td width="19%">
<p>Ich lerne Medizin im Internet.</p>
</td>
<td width="7%">
<div align="center">
<p>
<input type="radio" name="q1" value="1">
</p>
</div>
</td>
<td width="7%">
<div align="center">
<p>
<input type="radio" name="q1" value="2">
</p>
</div>
</td>
<td width="7%">
<div align="center">
<p>
<input type="radio" name="q1" value="3">
</p>
</div>
</td>
<td width="13%">
<div align="center">
<p>
<input type="radio" name="q1" value="4">
</p>
</div>
</td>
<td width="15%">
<div align="center">
<p>
<input type="radio" name="q1" value="5">
</p>
</div>
</td>
<td width="6%">
<div align="center">
<p>
<input type="radio" name="q1" value="6">
</p>
</div>
</td>
<td width="26%">
<div align="center">
<p>
<input type="radio" name="q1" value="7">
</p>
</div>
</td>
</tr>
<tr>
<td width="19%">
<p>Welche F�cher?</p>
</td>
<td colspan="7">
<p>
<input type="text" name="faecher" size="110" maxlength="50">
</p>
</td>
</tr>
<tr>
<td width="19%">
<p>Welche F�cher nicht? </p>
</td>
<td colspan="7">
<p>
<input type="text" name="faecher_nicht" size="110" maxlength="50">
</p>
</td>
</tr>
<tr>
<td width="19%">
<p>Ich benutze das Internet zur Pr�fungsvorbereitung.</p>
</td>
<td width="7%">
<div align="center">
<p>
<input type="radio" name="q2" value="1">
</p>
</div>
</td>
<td width="7%">
<div align="center">
<p>
<input type="radio" name="q2" value="2">
</p>
</div>
</td>
<td width="7%">
<div align="center">
<p>
<input type="radio" name="q2" value="3">
</p>
</div>
</td>
<td width="13%">
<div align="center">
<p>
<input type="radio" name="q2" value="4">
</p>
</div>
</td>
<td width="15%">
<div align="center">
<p>
<input type="radio" name="q2" value="5">
</p>
</div>
</td>
<td width="6%">
<div align="center">
<p>
<input type="radio" name="q2" value="6">
</p>
</div>
</td>
<td width="26%">
<div align="center">
<p>
<input type="radio" name="q2" value="7">
</p>
</div>
</td>
</tr>
<tr>
<td width="19%">
<p>Ich tausche mich im Internet mit Kommilitonen aus.</p>
</td>
<td width="7%">
<div align="center">
<p>
<input type="radio" name="q3" value="1">
</p>
</div>
</td>
<td width="7%">
<div align="center">
<p>
<input type="radio" name="q3" value="2">
</p>
</div>
</td>
<td width="7%">
<div align="center">
<p>
<input type="radio" name="q3" value="3">
</p>
</div>
</td>
<td width="13%">
<div align="center">
<p>
<input type="radio" name="q3" value="4">
</p>
</div>
</td>
<td width="15%">
<div align="center">
<p>
<input type="radio" name="q3" value="5">
</p>
</div>
</td>
<td width="6%">
<div align="center">
<p>
<input type="radio" name="q3" value="6">
</p>
</div>
</td>
<td width="26%">
<div align="center">
<p>
<input type="radio" name="q3" value="7">
</p>
</div>
</td>
</tr>
<tr>
<td width="19%">
<p>Ich tausche mich im Internet mit Dozenten aus.</p>
</td>
<td width="7%">
<div align="center">
<p>
<input type="radio" name="q4" value="1">
</p>
</div>
</td>
<td width="7%">
<div align="center">
<p>
<input type="radio" name="q4" value="2">
</p>
</div>
</td>
<td width="7%">
<div align="center">
<p>
<input type="radio" name="q4" value="3">
</p>
</div>
</td>
<td width="13%">
<div align="center">
<p>
<input type="radio" name="q4" value="4">
</p>
</div>
</td>
<td width="15%">
<div align="center">
<p>
<input type="radio" name="q4" value="5">
</p>
</div>
</td>
<td width="6%">
<div align="center">
<p>
<input type="radio" name="q4" value="6">
</p>
</div>
</td>
<td width="26%">
<div align="center">
<p>
<input type="radio" name="q4" value="7">
</p>
</div>
</td>
</tr>
<tr>
<td width="19%">
<p>Ich suche Famulaturen im Internet.</p>
</td>
<td width="7%">
<div align="center">
<p>
<input type="radio" name="q5" value="1">
</p>
</div>
</td>
<td width="7%">
<div align="center">
<p>
<input type="radio" name="q5" value="2">
</p>
</div>
</td>
<td width="7%">
<div align="center">
<p>
<input type="radio" name="q5" value="3">
</p>
</div>
</td>
<td width="13%">
<div align="center">
<p>
<input type="radio" name="q5" value="4">
</p>
</div>
</td>
<td width="15%">
<div align="center">
<p>
<input type="radio" name="q5" value="5">
</p>
</div>
</td>
<td width="6%">
<div align="center">
<p>
<input type="radio" name="q5" value="6">
</p>
</div>
</td>
<td width="26%">
<div align="center">
<p>
<input type="radio" name="q5" value="7">
</p>
</div>
</td>
</tr>
<tr>
<td width="19%">
<p>Ich suche Promotionen im Internet.</p>
</td>
<td width="7%">
<div align="center">
<p>
<input type="radio" name="q6" value="1">
</p>
</div>
</td>
<td width="7%">
<div align="center">
<p>
<input type="radio" name="q6" value="2">
</p>
</div>
</td>
<td width="7%">
<div align="center">
<p>
<input type="radio" name="q6" value="3">
</p>
</div>
</td>
<td width="13%">
<div align="center">
<p>
<input type="radio" name="q6" value="4">
</p>
</div>
</td>
<td width="15%">
<div align="center">
<p>
<input type="radio" name="q6" value="5">
</p>
</div>
</td>
<td width="6%">
<div align="center">
<p>
<input type="radio" name="q6" value="6">
</p>
</div>
</td>
<td width="26%">
<div align="center">
<p>
<input type="radio" name="q6" value="7">
</p>
</div>
</td>
</tr>
<tr>
<td width="19%">
<p>Ich suche Studieninformationen im Internet (Stundenpl�ne,
Termine, ...)</p>
</td>
<td width="7%">
<div align="center">
<p>
<input type="radio" name="q7" value="1">
</p>
</div>
</td>
<td width="7%">
<div align="center">
<p>
<input type="radio" name="q7" value="2">
</p>
</div>
</td>
<td width="7%">
<div align="center">
<p>
<input type="radio" name="q7" value="3">
</p>
</div>
</td>
<td width="13%">
<div align="center">
<p>
<input type="radio" name="q7" value="4">
</p>
</div>
</td>
<td width="15%">
<div align="center">
<p>
<input type="radio" name="q7" value="5">
</p>
</div>
</td>
<td width="6%">
<div align="center">
<p>
<input type="radio" name="q7" value="6">
</p>
</div>
</td>
<td width="26%">
<div align="center">
<p>
<input type="radio" name="q7" value="7">
</p>
</div>
</td>
</tr>
<tr>
<td width="19%">
<p>Es f�llt mir schwer, gesuchte Informationen im Internet
zu finden.</p>
</td>
<td width="7%">
<div align="center">
<p>
<input type="radio" name="q8" value="1">
</p>
</div>
</td>
<td width="7%">
<div align="center">
<p>
<input type="radio" name="q8" value="2">
</p>
</div>
</td>
<td width="7%">
<div align="center">
<p>
<input type="radio" name="q8" value="3">
</p>
</div>
</td>
<td width="13%">
<div align="center">
<p>
<input type="radio" name="q8" value="4">
</p>
</div>
</td>
<td width="15%">
<div align="center">
<p>
<input type="radio" name="q8" value="5">
</p>
</div>
</td>
<td width="6%">
<div align="center">
<p>
<input type="radio" name="q8" value="6">
</p>
</div>
</td>
<td width="26%">
<div align="center">
<p>
<input type="radio" name="q8" value="7">
</p>
</div>
</td>
</tr>
<tr>
<td width="19%">
<p>Habe ich Information gefunden, ist sie in der Regel hilfreich.</p>
</td>
<td width="7%">
<div align="center">
<p>
<input type="radio" name="q9" value="1">
</p>
</div>
</td>
<td width="7%">
<div align="center">
<p>
<input type="radio" name="q9" value="2">
</p>
</div>
</td>
<td width="7%">
<div align="center">
<p>
<input type="radio" name="q9" value="3">
</p>
</div>
</td>
<td width="13%">
<div align="center">
<p>
<input type="radio" name="q9" value="4">
</p>
</div>
</td>
<td width="15%">
<div align="center">
<p>
<input type="radio" name="q9" value="5">
</p>
</div>
</td>
<td width="6%">
<div align="center">
<p>
<input type="radio" name="q9" value="6">
</p>
</div>
</td>
<td width="26%">
<div align="center">
<p>
<input type="radio" name="q9" value="7">
</p>
</div>
</td>
</tr>
<tr>
<td width="19%">
<p>Ich halte Lernangebote im Internet f�r sinnvoll.</p>
</td>
<td width="7%">
<div align="center">
<p>
<input type="radio" name="q10" value="1">
</p>
</div>
</td>
<td width="7%">
<div align="center">
<p>
<input type="radio" name="q10" value="2">
</p>
</div>
</td>
<td width="7%">
<div align="center">
<p>
<input type="radio" name="q10" value="3">
</p>
</div>
</td>
<td width="13%">
<div align="center">
<p>
<input type="radio" name="q10" value="4">
</p>
</div>
</td>
<td width="15%">
<div align="center">
<p>
<input type="radio" name="q10" value="5">
</p>
</div>
</td>
<td width="6%">
<div align="center">
<p>
<input type="radio" name="q10" value="6">
</p>
</div>
</td>
<td width="26%">
<div align="center">
<p>
<input type="radio" name="q10" value="7">
</p>
</div>
</td>
</tr>
</table>
<p> </p>
<p>Was m��te sich am vorhandenen Angebot �ndern,
damit Du das Internet zum Studieren benutzt? </p>
<p>
<textarea name="net_angeb" cols="100" rows="5"></textarea>
</p>
<p>Wie suchst Du medizinische Informationen im
Internet (Mehrfachnennung m�glich)?</p>
<p>
<input type="checkbox" name="google" value="1">
allgemeine
Suchmaschinen (Google, yahoo,... )</p>
<p>
<input type="checkbox" name="pubmed" value="1">
Speziell medizinische Suchmaschienen (PubMed,
MediaVista, ...)</p>
<p>
<input type="checkbox" name="medilearn" value="1">
Medizinische
Portale (medilearn, medizinstudent.de, ...)</p>
<p>
<input type="checkbox" name="fakult" value="1">
Die
Seiten Deiner Fakult�t.</p>
<p>
<input type="checkbox" name="suche_sonst" value="1">
Anders
(wie?)</p>
<p>
<textarea name="suche_wie" cols="100" rows="5"></textarea>
</p>
<p>Bitte bewerte das online-Angebot Deiner Uni
in Bezug auf Informationen zu: </p>
<table width="97%" border="1">
<tr bordercolor="#333333">
<td width="21%"> </td>
<td width="8%">
<p>stimme voll zu</p>
</td>
<td width="7%">
<p>stimme zu</p>
</td>
<td width="6%">
<p>stimme ehr zu</p>
</td>
<td width="11%">
<p>unentschieden</p>
</td>
<td width="10%">
<p>stimme ehr nicht zu</p>
</td>
<td width="7%">
<p>stimme nicht zu</p>
</td>
<td width="15%">
<p>stimme entschieden nicht zu</p>
</td>
<td width="8%">kenne ich nicht</td>
<td width="7%">nutze ich nicht</td>
</tr>
<tr bordercolor="#333333">
<td width="21%" height="1">
<p> Fachschaft</p>
</td>
<td width="8%" height="1">
<div align="center">
<p>
<input type="radio" name="q11" value="1">
</p>
</div>
</td>
<td width="7%" height="1">
<div align="center">
<p>
<input type="radio" name="q11" value="2">
</p>
</div>
</td>
<td width="6%" height="1">
<div align="center">
<p>
<input type="radio" name="q11" value="3">
</p>
</div>
</td>
<td width="11%" height="1">
<div align="center">
<p>
<input type="radio" name="q11" value="4">
</p>
</div>
</td>
<td width="10%" height="1">
<div align="center">
<p>
<input type="radio" name="q11" value="5">
</p>
</div>
</td>
<td width="7%" height="1">
<div align="center">
<p>
<input type="radio" name="q11" value="6">
</p>
</div>
</td>
<td width="15%" height="1">
<div align="center">
<p>
<input type="radio" name="q11" value="7">
</p>
</div>
</td>
<td width="7%" height="1">
<div align="center">
<p>
<input type="radio" name="q11" value="8">
</p>
</div>
</td>
<td width="15%" height="1">
<div align="center">
<p>
<input type="radio" name="q11" value="9">
</p>
</div>
</td>
</tr>
<tr bordercolor="#333333">
<td width="21%" height="1">
<p> Deutsche Famulantenaustausch</p>
</td>
<td width="8%" height="1">
<div align="center">
<p>
<input type="radio" name="q12" value="1">
</p>
</div>
</td>
<td width="7%" height="1">
<div align="center">
<p>
<input type="radio" name="q12" value="2">
</p>
</div>
</td>
<td width="6%" height="1">
<div align="center">
<p>
<input type="radio" name="q12" value="3">
</p>
</div>
</td>
<td width="11%" height="1">
<div align="center">
<p>
<input type="radio" name="q12" value="4">
</p>
</div>
</td>
<td width="10%" height="1">
<div align="center">
<p>
<input type="radio" name="q12" value="5">
</p>
</div>
</td>
<td width="7%" height="1">
<div align="center">
<p>
<input type="radio" name="q12" value="6">
</p>
</div>
</td>
<td width="15%" height="1">
<div align="center">
<p>
<input type="radio" name="q12" value="7">
</p>
</div>
</td>
<td width="7%" height="1">
<div align="center">
<p>
<input type="radio" name="q12" value="8">
</p>
</div>
</td>
<td width="15%" height="1">
<div align="center">
<p>
<input type="radio" name="q12" value="9">
</p>
</div>
</td>
</tr>
<tr bordercolor="#333333">
<td width="21%" height="1">
<p>Auslandsstudium (Erasmus)</p>
</td>
<td width="8%" height="1">
<div align="center">
<p>
<input type="radio" name="q13" value="1">
</p>
</div>
</td>
<td width="7%" height="1">
<div align="center">
<p>
<input type="radio" name="q13" value="2">
</p>
</div>
</td>
<td width="6%" height="1">
<div align="center">
<p>
<input type="radio" name="q13" value="3">
</p>
</div>
</td>
<td width="11%" height="1">
<div align="center">
<p>
<input type="radio" name="q13" value="4">
</p>
</div>
</td>
<td width="10%" height="1">
<div align="center">
<p>
<input type="radio" name="q13" value="5">
</p>
</div>
</td>
<td width="7%" height="1">
<div align="center">
<p>
<input type="radio" name="q13" value="6">
</p>
</div>
</td>
<td width="15%" height="1">
<div align="center">
<p>
<input type="radio" name="q13" value="7">
</p>
</div>
</td>
<td width="7%" height="1">
<div align="center">
<p>
<input type="radio" name="q13" value="8">
</p>
</div>
</td>
<td width="15%" height="1">
<div align="center">
<p>
<input type="radio" name="q13" value="9">
</p>
</div>
</td>
</tr>
<tr bordercolor="#333333">
<td width="21%" height="1">
<p>Stundenpl�ne</p>
</td>
<td width="8%" height="1">
<div align="center">
<p>
<input type="radio" name="q14" value="1">
</p>
</div>
</td>
<td width="7%" height="1">
<div align="center">
<p>
<input type="radio" name="q14" value="2">
</p>
</div>
</td>
<td width="6%" height="1">
<div align="center">
<p>
<input type="radio" name="q14" value="3">
</p>
</div>
</td>
<td width="11%" height="1">
<div align="center">
<p>
<input type="radio" name="q14" value="4">
</p>
</div>
</td>
<td width="10%" height="1">
<div align="center">
<p>
<input type="radio" name="q14" value="5">
</p>
</div>
</td>
<td width="7%" height="1">
<div align="center">
<p>
<input type="radio" name="q14" value="6">
</p>
</div>
</td>
<td width="15%" height="1">
<div align="center">
<p>
<input type="radio" name="q14" value="7">
</p>
</div>
</td>
<td width="7%" height="1">
<div align="center">
<p>
<input type="radio" name="q14" value="8">
</p>
</div>
</td>
<td width="15%" height="1">
<div align="center">
<p>
<input type="radio" name="q14" value="9">
</p>
</div>
</td>
</tr>
<tr bordercolor="#333333">
<td width="21%" height="1">
<p>Klausurtermine</p>
</td>
<td width="8%" height="1">
<div align="center">
<p>
<input type="radio" name="q15" value="1">
</p>
</div>
</td>
<td width="7%" height="1">
<div align="center">
<p>
<input type="radio" name="q15" value="2">
</p>
</div>
</td>
<td width="6%" height="1">
<div align="center">
<p>
<input type="radio" name="q15" value="3">
</p>
</div>
</td>
<td width="11%" height="1">
<div align="center">
<p>
<input type="radio" name="q15" value="4">
</p>
</div>
</td>
<td width="10%" height="1">
<div align="center">
<p>
<input type="radio" name="q15" value="5">
</p>
</div>
</td>
<td width="7%" height="1">
<div align="center">
<p>
<input type="radio" name="q15" value="6">
</p>
</div>
</td>
<td width="15%" height="1">
<div align="center">
<p>
<input type="radio" name="q15" value="7">
</p>
</div>
</td>
<td width="7%" height="1">
<div align="center">
<p>
<input type="radio" name="q15" value="8">
</p>
</div>
</td>
<td width="15%" height="1">
<div align="center">
<p>
<input type="radio" name="q15" value="9">
</p>
</div>
</td>
</tr>
<tr bordercolor="#333333">
<td width="21%" height="1">
<p>Promotionsangebote</p>
</td>
<td width="8%" height="1">
<div align="center">
<p>
<input type="radio" name="q16" value="1">
</p>
</div>
</td>
<td width="7%" height="1">
<div align="center">
<p>
<input type="radio" name="q16" value="2">
</p>
</div>
</td>
<td width="6%" height="1">
<div align="center">
<p>
<input type="radio" name="q16" value="3">
</p>
</div>
</td>
<td width="11%" height="1">
<div align="center">
<p>
<input type="radio" name="q16" value="4">
</p>
</div>
</td>
<td width="10%" height="1">
<div align="center">
<p>
<input type="radio" name="q16" value="5">
</p>
</div>
</td>
<td width="7%" height="1">
<div align="center">
<p>
<input type="radio" name="q16" value="6">
</p>
</div>
</td>
<td width="15%" height="1">
<div align="center">
<p>
<input type="radio" name="q16" value="7">
</p>
</div>
</td>
<td width="7%" height="1">
<div align="center">
<p>
<input type="radio" name="q16" value="8">
</p>
</div>
</td>
<td width="15%" height="1">
<div align="center">
<p>
<input type="radio" name="q16" value="9">
</p>
</div>
</td>
</tr>
<tr bordercolor="#333333">
<td width="21%" height="1">
<p>Scripte, Handouts</p>
</td>
<td width="8%" height="1">
<div align="center">
<p>
<input type="radio" name="q17" value="1">
</p>
</div>
</td>
<td width="7%" height="1">
<div align="center">
<p>
<input type="radio" name="q17" value="2">
</p>
</div>
</td>
<td width="6%" height="1">
<div align="center">
<p>
<input type="radio" name="q17" value="3">
</p>
</div>
</td>
<td width="11%" height="1">
<div align="center">
<p>
<input type="radio" name="q17" value="4">
</p>
</div>
</td>
<td width="10%" height="1">
<div align="center">
<p>
<input type="radio" name="q17" value="5">
</p>
</div>
</td>
<td width="7%" height="1">
<div align="center">
<p>
<input type="radio" name="q17" value="6">
</p>
</div>
</td>
<td width="15%" height="1">
<div align="center">
<p>
<input type="radio" name="q17" value="7">
</p>
</div>
</td>
<td width="7%" height="1">
<div align="center">
<p>
<input type="radio" name="q17" value="8">
</p>
</div>
</td>
<td width="15%" height="1">
<div align="center">
<p>
<input type="radio" name="q17" value="9">
</p>
</div>
</td>
</tr>
<tr bordercolor="#333333">
<td width="21%" height="1">
<p>Pr�fungsvorbereitung</p>
</td>
<td width="8%" height="1">
<div align="center">
<p>
<input type="radio" name="q18" value="1">
</p>
</div>
</td>
<td width="7%" height="1">
<div align="center">
<p>
<input type="radio" name="q18" value="2">
</p>
</div>
</td>
<td width="6%" height="1">
<div align="center">
<p>
<input type="radio" name="q18" value="3">
</p>
</div>
</td>
<td width="11%" height="1">
<div align="center">
<p>
<input type="radio" name="q18" value="4">
</p>
</div>
</td>
<td width="10%" height="1">
<div align="center">
<p>
<input type="radio" name="q18" value="5">
</p>
</div>
</td>
<td width="7%" height="1">
<div align="center">
<p>
<input type="radio" name="q18" value="6">
</p>
</div>
</td>
<td width="15%" height="1">
<div align="center">
<p>
<input type="radio" name="q18" value="7">
</p>
</div>
</td>
<td width="7%" height="1">
<div align="center">
<p>
<input type="radio" name="q18" value="8">
</p>
</div>
</td>
<td width="15%" height="1">
<div align="center">
<p>
<input type="radio" name="q18" value="9">
</p>
</div>
</td>
</tr>
<tr bordercolor="#333333">
<td width="21%" height="1">
<p>Suchfunktion</p>
</td>
<td width="8%" height="1">
<div align="center">
<p>
<input type="radio" name="q19" value="1">
</p>
</div>
</td>
<td width="7%" height="1">
<div align="center">
<p>
<input type="radio" name="q19" value="2">
</p>
</div>
</td>
<td width="6%" height="1">
<div align="center">
<p>
<input type="radio" name="q19" value="3">
</p>
</div>
</td>
<td width="11%" height="1">
<div align="center">
<p>
<input type="radio" name="q19" value="4">
</p>
</div>
</td>
<td width="10%" height="1">
<div align="center">
<p>
<input type="radio" name="q19" value="5">
</p>
</div>
</td>
<td width="7%" height="1">
<div align="center">
<p>
<input type="radio" name="q19" value="6">
</p>
</div>
</td>
<td width="15%" height="1">
<div align="center">
<p>
<input type="radio" name="q19" value="7">
</p>
</div>
</td>
<td width="7%" height="1">
<div align="center">
<p>
<input type="radio" name="q19" value="8">
</p>
</div>
</td>
<td width="15%" height="1">
<div align="center">
<p>
<input type="radio" name="q19" value="9">
</p>
</div>
</td>
</tr>
</table>
<p>Hier ist Platz f�r all die Kommentare, die
Du uns zur Entwicklung eines MedizinStudentenportals schon immer mal geben
wolltest: </p>
<p>
<textarea name="komment" cols="100" rows="5"></textarea>
</p>
<p>
<input type="submit" name="submit" value="Abschicken">
</p>
</form>
</body>
</html>
***/root-website****
***outcome-website (still under development)***
<?php
$topic = 47;
$article = mgd_list_topic_articles( $topic, "score" );
if ( $article->N == 0 ) {
echo "No articles";
} else {
$vork = 0;
$klin = 0;
$ag_ja=0;
$ag_nein=0;
$altersum=0;
$alter_anzahl=0;
$ausbildg_ja=0;
$ausbildg_nein=0;
$mann=0;
$frau=0;
$semester=0;
$uni="";
$note_dozent_austausch_netz = 0;
$note_famulatur_suche_netz = 0;
$note_infos_hilfreich = 0;
$note_kommil_austausch_netz = 0;
$note_lernangeb_sinnvoll_netz = 0;
$note_lern_im_netz = 0;
$note_promo_suche_netz = 0;
$note_pruefungsvorb_netz = 0;
$note_studieninfos_suche_netz = 0;
$note_suche_schwer = 0;
$ort_berlin=0;
$ort_muenchen=0;
$ort_bonn=0;
while ( $article->fetch() )
{
if ($article->parameter(allgemein,abschnitt) == "vorklinik"){$vork++;};
if ($article->parameter(allgemein,abschnitt) == "klinik"){$klin++;};
if ($article->parameter(allgemein,ag) == "ja"){$ag_ja++;};
if ($article->parameter(allgemein,ag) == "nein"){$ag_nein++;};
if (!$article->parameter(allgemein,alter) == 0){
$altersum = $altersum + $article->parameter(allgemein,alter);
$alteranzahl++;};
if ($article->parameter(allgemein,ausbildung) =="nein"){$ausbildg_nein++;};
if ($article->parameter(allgemein,ausbildung) =="ja"){$ausbildg_ja++;};
if ($article->parameter(allgemein,geschlecht) =="mann"){$mann++;};
if ($article->parameter(allgemein,geschlecht) =="frau"){$frau++;};
if ($article->parameter(allgemein,uni) =="berlin"){$ort_berlin++;};
if ($article->parameter(allgemein,uni) =="bonn"){$ort_bonn++;};
if ($article->parameter(allgemein,uni) =="muenchen"){$ort_muenchen++;};
// and so on....
// this is how far I have come yet
// later on I may evaluate these parameters in graphical form
// I have played a bit with jpgraph for that purpose
// but the code is far from being ready to publish
}
echo "$article->N Antwort", ( $article->N == 1 ) ? '' : 'en ';
echo "davon: <br>".$vork." Vorklinik, ".$klin." Klinik<br>";
echo "in einer AG: ".$ag_ja."<br>";
$durchschnittsalter = $altersum/$alteranzahl;
echo "Durchschnittliches Alter: ".$durchschnittsalter."<br>";
echo "Vorher Ausbildung absolviert: ".$ausbildg_ja."<br>";
echo $mann . " M�nner und ".$frau." Frauen<br>";
echo "Berlin: " . $ort_berlin . "<br>";
echo "Bonn: " . $ort_bonn . "<br>";
echo "M�nchen: " . $ort_muenchen . "<br>";
}
?>
***/outcome-website***
// used Empty Style for that
// Topic contains 1 subtopic 'umfrage' which holds the articles..
***snippet create-article
<?
mgd_auth_midgard(somelogin,somepassword,0);
// user has to exist and be
// authenticated in order to create articles
$midgard = mgd_get_midgard();
$up = 0;
$topic = 47; //change to id of topic you store your survey's articles in
$title = "umfrage";
$jetzt = date("d.m.Y H:i:s");
$name = "$jetzt";
$author = $midgard->user;
$abstract = "";
$content = "";
$calstart = "0000-00-00";
$url = "";
$caldays = 0;
$icon = 0;
$view = 0;
$print = 0;
$extra1 = "";
$extra2 = "";
$extra3 = "";
$type = 0;
mgd_errno();
$article = mgd_create_article( $up, $topic, $name, $title, $abstract, $content,
$author, $url, $calstart, $caldays, $icon,
$view, $print, $extra1, $extra2, $extra3,
$type);
if( ! $article ) {
//error, say why
echo "Eintrag in Datenbank fehlgeschlagen!!!.<br>\n";
echo "Grund: " . mgd_errstr();
}
else
{
$param = mgd_get_article($article);
$param->parameter("allgemein","uni","$uni");
$param->parameter("allgemein","semster","$semester");
$param->parameter("allgemein","abschnitt","$abschnitt");
$param->parameter("allgemein","geschlecht","$geschlecht");
$param->parameter("allgemein","ausbildung","$ausbildung");
$param->parameter("allgemein","ausbildung_welche","$ausbildung_welche");
$param->parameter("allgemein","alter","$alter");
$param->parameter("allgemein","ag","$ag");
$param->parameter("allgemein","ag_welche","$ag_welche");
$param->parameter("computer","eigen_comp","$eigen_comp");
$param->parameter("computer","comp_detail","$comp_detail");
$param->parameter("computer","os","$os");
$param->parameter("computer","browser","$browser");
$param->parameter("computer","net_home","$net_home");
$param->parameter("computer","einwahl","$einwahl");
$param->parameter("computer","net_uni","$net_uni");
$param->parameter("computer","comp_stunden","$comp_stunden");
$param->parameter("computer","c_studium","$c_studium");
$param->parameter("computer","c_promo","$c_promo");
$param->parameter("computer","c_spiele","$c_spiele");
$param->parameter("computer","c_komm","$c_komm");
$param->parameter("computer","c_multi","$c_multi");
$param->parameter("computer","c_office","$c_office");
$param->parameter("computer","c_sonst","$c_sonst");
$param->parameter("web","online_angeb","$online_angeb");
$param->parameter("web","online_angeb_welche","$online_angeb_welche");
$param->parameter("web","uni_webs","$uni_webs");
$param->parameter("web","uni_webs_wofuer","$uni_webs_wofuer");
$param->parameter("web","altkl","$altkl");
$param->parameter("web","altkl_gef","$altkl_gef");
$param->parameter("web","wsfs","$wsfs");
$param->parameter("web","ftm","$ftm");
$param->parameter("web","wsftm","$wsftm");
$param->parameter("web","dfa","$dfa");
$param->parameter("web","wsdfa","$wsdfa");
$param->parameter("benotung","lern_im_netz","$q1");
$param->parameter("benotung","lern_im_netz_faecher","$faecher");
$param->parameter("benotung","lern_im_netz_faecher_nicht","$faecher_nicht");
$param->parameter("benotung","pruefungsvorb_netz","$q2");
$param->parameter("benotung","kommil_austausch_netz","$q3");
$param->parameter("benotung","dozent_austausch_netz","$q4");
$param->parameter("benotung","famulatur_suche_netz","$q5");
$param->parameter("benotung","promo_suche_netz","$q6");
$param->parameter("benotung","studieninfos_suche_netz","$q7");
$param->parameter("benotung","suche_schwer","$q8");
$param->parameter("benotung","infos_hilfreich","$q9");
$param->parameter("benotung","lernangeb_sinnvoll_netz","$q10");
$param->parameter("benotung","net_angeb_was_anders","$net_angeb");
$param->parameter("suche","google","$google");
$param->parameter("suche","pubmed","$pubmed");
$param->parameter("suche","medilearn","$medilearn");
$param->parameter("suche","fakult","$fakult");
$param->parameter("suche","suche_sonst","$suche_sonst");
$param->parameter("suche","suche_wie","$suche_wie");
$param->parameter("uni_online","fachschaft","$q11");
$param->parameter("uni_online","dfa","$q12");
$param->parameter("uni_online","erasmus","$q13");
$param->parameter("uni_online","stundenplaene","$q14");
$param->parameter("uni_online","klausurtermine","$q15");
$param->parameter("uni_online","promoangeb","$q16");
$param->parameter("uni_online","scripten","$q17");
$param->parameter("uni_online","pruefungsvorbereit","$q18");
$param->parameter("uni_online","suchfunkt","$q19");
$param->parameter("kommentar","kommentar","$komment");
// success, better tell it to the world
echo "Daten wurden erfolgreich eingetragen!<br>";
echo "Vielen Dank f�rs mitmachen...<br>";
}
?>
***/snippet****
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]