fhiiqm/form/alpruef_form.inc.php
changeset 19 33ee23fafd4d
child 20 5877137431e4
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/fhiiqm/form/alpruef_form.inc.php	Fri Dec 09 14:33:22 2011 +0100
@@ -0,0 +1,79 @@
+<?php
+
+/**
+ * @author Bettina Schwarzer, Fritz-Haber-Institut
+ * @copyright 12/2011
+ * 
+ * Form Anlage Pruefung
+ */
+
+	include_once($_SERVER['DOCUMENT_ROOT'] ."/fhiiqm/inc/dbconnect.inc.php");
+	if (!isset($dbc) || !$dbc) $dbc = new dbconnection();
+    $okn = true;
+
+?>
+<div align="center">
+<table>
+<tr><td class="bigger">Die Auswahl der Anlage geschieht durch<br />Eingeben von mindesten 2 Zeichen in das Anlage-Feld.
+</td></tr>
+<tr><td class="bigger"><div class="red">Achtung! </div>Umlaute wie '&auml;', '&uuml;', '&ouml;', '&szlig;' werden nicht gefunden, bitte benachbarte Zeichen eingeben.</td></tr>
+<tr><td class="bigger">&nbsp;</td></tr>
+</table>
+</div>
+<form action="<?php $_SERVER['PHP_SELF'] ?>" method="post" enctype="multipart/form-data" name="falprot"> 
+<div align="center">
+    <table border="0" cellspacing="3" cellpadding="3">
+        <tr><td>Anlage *</td>
+            <td valign="top"><input class="long20" type="text" name="al[bez]" id="albez" value="<?php echo $al['bez']; ?>"/>
+            <?php
+                if (isset($al['bez']) && $al['bez']< "!")
+                { 
+                    echo "<br><span class=\"red\">Anlage ist erforderlich!</span>\n";
+                    $okn = false;
+                }    
+            ?>
+            </td>
+        </tr>
+        <tr><td>Pr&uuml;fdatum *
+            </td>
+            <td valign="top"><input class="long10" type="text" name="al[pdat]" id="alpdat" value="<?php echo $al['pdat']; ?>"/>
+            <?php
+                echo "<br />Uhrzeitangabe im Format 'hh:mm:ss' m&ouml;glich";
+                if (isset($al['pdat']) && $al['pdat']< "!")
+                { 
+                    echo "<br><span class=\"red\">Pr&uuml;fdatum ist erforderlich!</span>\n";
+                    $okn = false;
+                }    
+            ?>
+            </td>
+        </tr> 
+        <tr><td>Bemerkung</td>
+            <td valign="top"><textarea name="al[bem]" id="bem" rows="5" cols="50"><?php echo $al['bem']; ?></textarea>
+            </td>
+        </tr>
+	<tr>
+	   <td>Dateibezeichnung Pr&uuml;fprotokoll (*)</td>
+	   <td><input name="al[pfname]" type="text" size="50" maxlength="50" value="<?php echo $al['pfname']; ?>">
+	   <?php
+            echo "<br />bitte <u>keine</u> Umlaute im Dateinamen angeben!";   
+			if (isset($al['pfname']) && $upd && is_uploaded_file($_FILES["pfile"]["tmp_name"]) && $al['pfname']<'!')
+				{
+					echo "<br><span class=\"red\">Dateiname ist erforderlich!</span>\n";
+					$okn = false;
+				}
+				else
+				{
+                    if ($al['pfname']>='!' && file_exists("alprot/".$al['pfname']))
+                        echo "<br />Protokoll anschauen:&nbsp;<a href='alprot/" . $al['pfname'] ."'>" . $al['pfname'] . "</a>";
+                    if ($okn) $okn = true; else $okn=false;
+                }
+		?>
+		</td>
+    </tr>
+
+    <input type="hidden" name="MAX_FILE_SIZE" value="6000000"/>    
+    <input type="hidden" name="al[id]" id="alid" value="<?php echo $al["id"]; ?>"/>
+    <input type="hidden" name="al[okn]" value="<?php echo $okn; ?>"/>
+<!-- </table>
+ </div>   
+</form> -->
\ No newline at end of file