kleine Fehler behoben,

Vor und Zurück Buttons eingefügt,
This commit is contained in:
Karl Burkhart
2011-10-14 12:31:57 +00:00
parent b4a6579b29
commit 6960789302
7 changed files with 118 additions and 36 deletions
+19 -3
View File
@@ -81,15 +81,31 @@ if(isset($_POST['submitbild']))
$dokument = new dokument();
$dokument->loadDokumenttyp($_REQUEST['dokumenttyp']);
$extension = end(explode(".",strtolower($_FILES['bild']['name'])));
$titel = '';
// da nur 32 zeichen gespeichert werden dürfen, muss anhand vom typ gekürzt werden
if($_REQUEST['dokumenttyp']=='Lebenslf')
$titel = $p->t('incoming/lebenslauf').".".$extension;
if($_REQUEST['dokumenttyp']=='LearnAgr')
$titel = $p->t('incoming/learningAgreement').".".$extension;
if($_REQUEST['dokumenttyp']=='Motivat')
$titel = $p->t('incoming/motivationsschreiben').".".$extension;
if($_REQUEST['dokumenttyp']=='Zeugnis')
$titel = $p->t('incoming/zeugnis').".".$extension;
if($_REQUEST['dokumenttyp']=='Lichtbil')
$titel = $p->t('incoming/lichtbild').".".$extension;
$akte->dokument_kurzbz = $_REQUEST['dokumenttyp'];
$akte->person_id = $_GET['person_id'];
$akte->inhalt = base64_encode($content);
$akte->mimetype = $_FILES['bild']['type'];
$akte->erstelltam = date('Y-m-d H:i:s');
$akte->gedruckt = false;
$akte->titel = $_FILES['bild']['name'];
$akte->bezeichnung = $dokument->bezeichnung;
$akte->titel = $titel;
//$akte->bezeichnung = $dokument->bezeichnung;
$akte->updateamum = date('Y-m-d H:i:s');
// $akte->updatevon = $user;
$akte->insertamum = date('Y-m-d H:i:s');
+1
View File
@@ -1,4 +1,5 @@
<?php
session_cache_limiter('none'); //muss gesetzt werden sonst funktioniert der Download mit IE8 nicht
session_start();
if (!isset($_SESSION['incoming/user']) || $_SESSION['incoming/user']=='')
+41 -16
View File
@@ -164,6 +164,10 @@ if($method =="austauschprogram")
</td>
</tr>
</table>
<tr>
<td><input type="button" value="'.$p->t('global/zurueck').'" onclick="document.location.href = \'incoming.php?method=university\'"; ><input type="button" value="'.$p->t('incoming/weiter').'" onclick="document.location.href = \'incoming.php?method=lehrveranstaltungen\'"; style="float:right"></td>
</tr>
</table>
</form>
@@ -259,13 +263,12 @@ else if($method=="lehrveranstaltungen")
echo '<br><br><br>
<table border ="0" width="100%">
<tr>
<td width="25%"></td>
<td width="25%" align="center"><input type="button" value="'.$p->t('global/zurueck').'" onclick="document.location.href = \'incoming.php?method=austauschprogram\'";></td>
<td width="25%" align="center"><a href="incoming.php?method=lehrveranstaltungen">'.$p->t('incoming/übersichtlehrveranstaltungen').'</a></td>
<td width="25%" align="center"><a href="incoming.php?method=lehrveranstaltungen&view=own">'.$p->t('incoming/eigenelehrveranstaltungen').'</a></td>
<td width="25%"></td>
<td width="25%" align="center"><input type="button" value="'.$p->t('incoming/hauptmenue').'" onclick="document.location.href = \'incoming.php\'";></td>
</tr>
<tr><td>&nbsp;</td></tr>
</table>';
</table> <br><br>';
$qry = "SELECT
tbl_lehrveranstaltung.lehrveranstaltung_id, tbl_lehrveranstaltung.studiengang_kz,
@@ -815,7 +818,7 @@ else if ($method == "university")
}
echo ' <form method="POST" action="incoming.php?method=university" name="UniversityForm">
<table border ="0" style="margin-top:50px;" align="center" >
<table border ="0" style="margin-top:5%;" align="center" >
<tr><td>
<fieldset>
<table border ="0">
@@ -916,7 +919,10 @@ echo' <td>'.$p->t('incoming/masterstudiengang').'</td>
</td>
</tr>
</table>
</table>
<tr>
<td><input type="button" value="'.$p->t('global/zurueck').'" onclick="document.location.href = \'incoming.php?method=profil\'"; ><input type="button" value="'.$p->t('incoming/weiter').'" onclick="document.location.href = \'incoming.php?method=austauschprogram\'"; style="float:right"></td>
</tr>
</table>
</form>
<script type="text/javascript">
@@ -1154,15 +1160,15 @@ else if ($method == "profil")
}
// Ausgabe Profil Formular
echo'<form action="incoming.php?method=profil" method="POST" name="ProfilForm">
<table border =0 align="center" style="margin-top:5%;" >
<table align="center" style="margin-top:5%;" >
<tr valign="top" ><td>
<fieldset>
<table border = "0" >
<table>
<tr><td>
<tr>
<td>'.$p->t('global/titel').' Pre</td>
<td><input type="text" size="20" maxlength="64" name="titel_pre" value="'.$person->titelpre.'"></td>
<td>'.$p->t('incoming/zugangsvoraussetzung').'</td>
<td>'.$p->t('incoming/zugangsvoraussetzung').'&sup1;</td>
<td><input type="text" name="zgv" size=40 value="'.$preincoming->zgv.'"></td>
</tr>
<tr>
@@ -1244,7 +1250,7 @@ echo' <td>'.$p->t('incoming/abgelegtin').'</td>
</td></td>
</tr>
<tr>
<td>Nation</td>
<td>'.$p->t('incoming/nation').'</td>
<td><SELECT name="nation">
<option value="nat_auswahl">-- select --</option>';
foreach ($nation->nation as $nat)
@@ -1252,7 +1258,10 @@ echo' <td>'.$p->t('incoming/abgelegtin').'</td>
$selected="";
if($adresse->result[0]->nation == $nat->code)
$selected = "selected";
echo '<option '.$selected.' value="'.$nat->code.'" >'.$nat->langtext."</option>\n";
if($sprache == 'English')
echo '<option '.$selected.' value="'.$nat->code.'" >'.$nat->engltext."</option>\n";
else
echo '<option '.$selected.' value="'.$nat->code.'" >'.$nat->langtext."</option>\n";
}
echo ' </td>
<td>'.$p->t('global/vorname').'</td>
@@ -1287,19 +1296,35 @@ echo' <td>'.$p->t('incoming/abgelegtin').'</td>
<input type="hidden" name="emergency_emailId" id="emergency_emailId" value="'.$emEmailId.'"></td>
</tr>
<tr>
<td></td><td></td><td align = "center"><input type="submit" name="submit_profil" value="'.$p->t('global/speichern').'" onclick="return checkProfil()"></td>
<td><a href="'.APP_ROOT.'/cis/public/incoming/akteupload.php?person_id='.$person->person_id.'&dokumenttyp=Lebenslf" onclick="FensterOeffnen(this.href); return false;">'.$p->t('incoming/uploadCv').'</a></td>
<td></td>
<td></td>
<td align="center"><input type="button" value="'.$p->t('incoming/uploadCv').'" onclick=FensterOeffnen("'.APP_ROOT.'/cis/public/incoming/akteupload.php?person_id='.$person->person_id.'&dokumenttyp=Lebenslf");></td>
<td></td>
</tr>
<tr>
<td></td><td></td><td align = "center"><input type="submit" name="submit_profil" value="'.$p->t('global/speichern').'" onclick="return checkProfil()"></td>
<td></td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="right"><input type="button" value="'.$p->t('incoming/weiter').'" onclick="document.location.href = \'incoming.php?method=university\'";></td>
</tr>
<tr>
<td colspan="5">&sup1; '.$p->t('incoming/zugangsvoraussetzungFussnote').'</td>
</tr>
</table>
<table border =0 align="center" style="margin-top:5%;" >
<tr><td>
</td></tr>
</table>
</form>
<script type="text/javascript">
function FensterOeffnen (adresse)
function FensterOeffnen(adresse)
{
MeinFenster = window.open(adresse, "Info", "width=500,height=500,left=100,top=200");
MeinFenster.focus();
@@ -1362,7 +1387,7 @@ echo '<script type="text/javascript">
echo '<table align="center" border="0">
<tr>
<th></th>
<th>Name</th>
<th>'.$p->t('incoming/name').'</th>
<th>'.$p->t('global/bezeichnung').'</th>
</tr>';
foreach ($akte->result as $ak)
+2 -2
View File
@@ -76,7 +76,7 @@ if (isset($_POST['userid']))
<form action ="index.php" method="POST">
<table border ="0" width ="100%" height="40%">
<tr height="50%">
<td align ="center"><span style="font-size:1.2em"></span></td>
<td align ="center" valign="center"><h3><?php echo $p->t('incoming/welcomeToUAS');?></h3><span style="font-size:1.2em"></span></td>
</tr>
<tr >
<td align="center" valign="bottom"> <img src="../../../skin/images/tw_logo_02.jpg"></td>
@@ -87,7 +87,7 @@ if (isset($_POST['userid']))
<td>&nbsp;</td>
</tr>
<tr>
<td align="center"><a href="registration.php">Registration</a></td>
<td align="center"><a href="registration.php"><?php echo $p->t('incoming/registration');?></a></td>
</tr>
<tr>
<td>&nbsp;</td>
+13 -11
View File
@@ -95,7 +95,10 @@ echo ' <form action="registration.php" method="POST" name="RegistrationForm">
<option value="staat_auswahl">-- select --</option>\n';
foreach ($nation->nation as $nat)
{
echo '<option value="'.$nat->code.'" >'.$nat->langtext."</option>\n";
if($sprache == 'English')
echo '<option value="'.$nat->code.'" >'.$nat->engltext."</option>\n";
else
echo '<option value="'.$nat->code.'" >'.$nat->langtext."</option>\n";
}
echo' </tr>
@@ -121,12 +124,15 @@ echo ' <form action="registration.php" method="POST" name="RegistrationForm">
<td><input type="text" size="40" maxlength="256" name="ort"></td>
</tr>
<tr>
<td>Nation</td>
<td>'.$p->t('incoming/nation').'</td>
<td><SELECT name="nation">\n
<option value="nat_auswahl">-- select --</option>\n';
foreach ($nation->nation as $nat)
{
echo '<option value="'.$nat->code.'" >'.$nat->langtext."</option>\n";
if($sprache == 'English')
echo '<option value="'.$nat->code.'" >'.$nat->engltext."</option>\n";
else
echo '<option value="'.$nat->code.'" >'.$nat->langtext."</option>\n";
}
echo ' </tr>
@@ -223,7 +229,7 @@ if(isset($_REQUEST['submit']))
$adresse->new = true;
if(!$adresse->save())
die('Fehler beim Anlegen der Adresse aufgetreten.');
die($p->t('incoming/fehlerAdresse'));
$kontakt->person_id = $person->person_id;
$kontakt->kontakttyp = "email";
@@ -231,7 +237,7 @@ if(isset($_REQUEST['submit']))
$kontakt->new = true;
if(!$kontakt->save())
die('Fehler beim Anlegen des Kontaktes aufgetreten.');
die($p->t('incoming/fehlerKontakt'));
$preincoming->person_id = $person->person_id;
$preincoming->anmerkung = $anmerkung;
@@ -247,7 +253,7 @@ if(isset($_REQUEST['submit']))
if(!$preincoming->save())
{
echo $preincoming->errormsg;
die('Fehler beim Anlegen des Preincoming aufgetreten.');
die($p->t('incoming/fehlerIncoming'));
}
echo sendMail($zugangscode, $email);
}
@@ -255,11 +261,7 @@ if(isset($_REQUEST['submit']))
function sendMail($zugangscode, $email)
{
global $p;
$emailtext= "Dies ist eine automatisch generierte E-Mail.<br><br>";
$emailtext.= "Vielen Dank für Ihre Registrierung an der Fachhochschule Technikum Wien.<br><br>Sie wurden erfolgreich am System registriert.<br><br><br>Mit Hilfe Ihrer UID: <b>".$zugangscode."</b> können Sie sich in unserem
System (<a href=\"".APP_ROOT."/cis/public/incoming\">Link zur Anmeldung</a>) anmelden und Ihre Daten bearbeiten.<br><br><br>
Mit freundlichen Grüßen, <br><br>FH Technikum Wien International<br>Center for International Relations & Cross-Cultural Education<br>UAS Technikum Wien<br>Hoechstaedtplatz 5, 1200 Wien, AUSTRIA";
$emailtext= $p->t('incoming/registrationEmail', array($zugangscode));
$mail = new mail($email, 'no-reply', 'Incoming-Registration', 'Bitte sehen Sie sich die Nachricht in HTML Sicht an, um den Link vollständig darzustellen.');
$mail->setHTMLContent($emailtext);
if(!$mail->send())
+20 -1
View File
@@ -14,7 +14,7 @@ $this->phrasen['incoming/studiertbis']='Studiert in Wien bis';
$this->phrasen['incoming/eigeneuniversitaet']='Heimatuniversität Daten';
$this->phrasen['incoming/universitätsname']='Name der Universität';
$this->phrasen['incoming/universitätsnameerweitert']='Name der Universität (erweitert)';
$this->phrasen['incoming/zugangsvoraussetzung']='Zugangsvoraussetzung 1';
$this->phrasen['incoming/zugangsvoraussetzung']='Zugangsvoraussetzung';
$this->phrasen['incoming/abgelegtin']='Abgelegt in (Name der Institution)';
$this->phrasen['incoming/abgelegtinort']='Abgelegt in (Ort)';
$this->phrasen['incoming/abgelegtam']='Abgelegt am (Datum, dd.mm.YYYY)';
@@ -27,4 +27,23 @@ $this->phrasen['incoming/jahrestudiert']='Jahre studiert';
$this->phrasen['incoming/uploadLearningAgreement']= 'Upload Learning Agreement';
$this->phrasen['incoming/uploadCv']='Upload CV';
$this->phrasen['incoming/dokument']='Dokument';
$this->phrasen['incoming/zugangsvoraussetzungFussnote']='Bitte geben Sie hier an, wann und wo Sie Ihre Abschlussprüfungen gemacht haben, um an einer Universität studieren zu können (=Matura, Abitur).';
$this->phrasen['incoming/lebenslauf']='Lebenslauf';
$this->phrasen['incoming/learningAgreement']='Learning Agreement';
$this->phrasen['incoming/motivationsschreiben']='Motivationsschreiben';
$this->phrasen['incoming/zeugnis']='Zeugnis';
$this->phrasen['incoming/lichtbild']='Lichtbild';
$this->phrasen['incoming/name']='Name';
$this->phrasen['incoming/registrationEmail']='Dies ist eine automatisch generierte E-Mail.<br><br>
Vielen Dank für Ihre Registrierung an der Fachhochschule Technikum Wien.<br><br>Sie wurden erfolgreich am System registriert.<br><br><br>Mit Hilfe Ihrer UID: <b>%s</b> können Sie sich in unserem
System (<a href="'.APP_ROOT.'cis/public/incoming">Link zur Anmeldung</a>) anmelden und Ihre Daten bearbeiten.<br><br><br>
Mit freundlichen Grüßen, <br><br>FH Technikum Wien International<br>Center for International Relations & Cross-Cultural Education<br>UAS Technikum Wien<br>Hoechstaedtplatz 5, 1200 Wien, AUSTRIA';
$this->phrasen['incoming/weiter']='Weiter';
$this->phrasen['incoming/fehlerAdresse']='Fehler beim Anlegen der Adresse aufgetreten.';
$this->phrasen['incoming/fehlerKontakt']='Fehler beim Anlegen des Kontaktes aufgetreten.';
$this->phrasen['incoming/fehlerIncoming']='Fehler beim Anlegen des Preincoming aufgetreten';
$this->phrasen['incoming/nation']='Nation';
$this->phrasen['incoming/hauptmenue']='Hauptmenü';
$this->phrasen['incoming/welcomeToUAS']='Willkommen bei der Online Registrierung für Incomingstudierende an der Fachhochschule Technikum Wien!';
$this->phrasen['incoming/registration']='Registration';
?>
+22 -3
View File
@@ -14,10 +14,10 @@ $this->phrasen['incoming/studiertbis']='Studies in Vienna To';
$this->phrasen['incoming/eigeneuniversitaet']='Sending Institution Information';
$this->phrasen['incoming/universitätsname']='Sending Institution Name';
$this->phrasen['incoming/universitätsnameerweitert']='Sending Institution Name (Advanced)';
$this->phrasen['incoming/zugangsvoraussetzung']='University Entrance Qualification 1';
$this->phrasen['incoming/abgelegtin']='Issued at (Name of Institution)';
$this->phrasen['incoming/zugangsvoraussetzung']='University Entrance Qualification';
$this->phrasen['incoming/abgelegtin']='Place of issue (Name of Institution)';
$this->phrasen['incoming/abgelegtinort']='Issued in (Ort)';
$this->phrasen['incoming/abgelegtam']='Issued on (Date, dd.mm.YYYY)';
$this->phrasen['incoming/abgelegtam']='Date of issue (Date, dd.mm.YYYY)';
$this->phrasen['incoming/zugangsvoraussetzungmaster']='Master Entrance Qualification';
$this->phrasen['incoming/personimernstfall']='Person to Contact in Case of Emergency';
$this->phrasen['incoming/bachelorstudiengang']='Bachelor´s Degree Program';
@@ -27,4 +27,23 @@ $this->phrasen['incoming/jahrestudiert']='Years completetd when starting at UAS
$this->phrasen['incoming/uploadLearningAgreement']= 'Upload Learning Agreement';
$this->phrasen['incoming/uploadCv']='Upload CV';
$this->phrasen['incoming/dokument']='Document';
$this->phrasen['incoming/zugangsvoraussetzungFussnote']='Please indicate here where and when you passed your final exam in order to be able to register for university (= school leaving examination).';
$this->phrasen['incoming/lebenslauf']='Curriculum vitae';
$this->phrasen['incoming/learningAgreement']='Learning Agreement';
$this->phrasen['incoming/motivationsschreiben']='Letter of motivation';
$this->phrasen['incoming/zeugnis']='Transcript of record';
$this->phrasen['incoming/lichtbild']='photo';
$this->phrasen['incoming/name']='Name';
$this->phrasen['incoming/registrationEmail']='This is an automatically generated email.<br><br>
Thank you, for your registration at the UAS Technikum Wien.<br><br>Your application was successfully registered in our system.<br><br><br>
With your user ID: <b>%s</b> you can now access our online application system for incoming students and fill in your data (<a href="'.APP_ROOT.'cis/public/incoming">application link</a>).<br><br><br>
Kind regards, <br><br>FH Technikum Wien International<br>Center for International Relations & Cross-Cultural Education<br>UAS Technikum Wien<br>Hoechstaedtplatz 5, 1200 Wien, AUSTRIA ';
$this->phrasen['incoming/weiter']='Next';
$this->phrasen['incoming/fehlerAdresse']='Error, creating address.';
$this->phrasen['incoming/fehlerKontakt']='Error, creating contact.';
$this->phrasen['incoming/fehlerIncoming']='Error, creating incoming';
$this->phrasen['incoming/nation']='Country';
$this->phrasen['incoming/hauptmenue']='Main Menu';
$this->phrasen['incoming/welcomeToUAS']='Welcome at the Online Registration Platform for Incoming Students at UAS Technikum Wien!';
$this->phrasen['incoming/registration']='Registration';
?>