Blame | Letzte Änderung | Log anzeigen | RSS feed
<?php//$Id$require_once "connect2.php";/* ---------------------------------------------------------------------------------------------------------------- *//* INIT *//* ---------------------------------------------------------------------------------------------------------------- */// Session einleitensession_start();$mode= (isset($_POST["mode"]))? $_POST["mode"] : "";?><html><head><title><? echo $webs[kunde_bezeichnung] ?>: Redaktionssystem</title><meta http-equiv="Content-Type" content="text/html; charset=<? echo $charset ?>"><style type="text/css">body{font-family: Arial, Helvetica, sans-serif; font-size: 10pt;<? if ($webs[font_color_seite]) { ?>color: #<? echo $webs[font_color_seite] ?>;<? } ?><? if ($webs[bgcolor_seite]) { ?>background-color: #<? echo $webs[bgcolor_seite] ?>;<? } ?><? if ($webs[hintergrundbild]) { ?>background-image: url(../images/hintergrundbild/<? echo $webs[hintergrundbild] ?>);<? } ?>}th, .links{font-size: 10pt;<? if ($webs[font_color_links]) { ?>color: #<? echo $webs[font_color_links] ?>;<? } ?><? if ($webs[bgcolor_links]) { ?>background-color: #<? echo $webs[bgcolor_links] ?>;<? } ?>}.td1, .rechts{font-size: 10pt;<? if ($webs[font_color_rechts]) { ?>color: #<? echo $webs[font_color_rechts] ?>;<? } ?><? if ($webs[bgcolor_rechts]) { ?>background-color: #<? echo $webs[bgcolor_rechts] ?>;<? } ?>}.td0{font-size: 10pt;<? if ($webs[font_color_rechts]) { ?>background-color: #<? echo $webs[font_color_rechts] ?>;<? } ?><? if ($webs[bgcolor_rechts]) { ?>color: #<? echo $webs[bgcolor_rechts] ?>;<? } ?>}A:link {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: #<? echo $webs[font_color_rechts] ?>}A:visited {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: #<? echo $webs[font_color_rechts] ?>}A:active {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: #<? echo $webs[font_color_rechts] ?>}A:hover {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: #<? echo $webs[font_color_rechts] ?>}table.input{border-width: 2px 1px 1px 2px;border-top-color : #CCCCCC;border-left-color : #CCCCCC;border-bottom-color : #AAAAAA;border-right-color : #AAAAAA;border-style :inset;background-color : #FFFFFF;}form {display:inline;}</style></head><body><?$mode= (isset($_POST["mode"])) ? $_POST["mode"] : "";$id= (isset($_POST["ID"])) ? $_POST["ID"] : 0;$id=intval($id);switch($mode){case "edit_w":$sql=break;case "new_w":break;case "save_w":break;case "update_w":break;case "edit_b":break;case "new_b":break;case "save_b":break;case "update_b":break;default:$sql="SELECT ID, word, acronyms_desc from akronyms";$res=mysql_query($sql);if(!$res){mail("tiefland@weban.de","Fehler beim Lesen der Akronyms",mysql_error()."\n$sql\n","FROM: tiefland@weban.de","-F tiefland@weban.de");}else{?><table width="100%"><tr><th colspan="2">Aktionen</th></tr><tr><td class="td1" align="center"><form action="" method="post"><input type="hidden" name="ID" value="<?=$row["ID"];?>"><input type="hidden" name="mode" value="new_w"><input type="submit" value="neues Wort"></form></td><td class="td1" align="center"><form action="" method="post"><input type="hidden" name="ID" value="<?=$row["ID"];?>"><input type="hidden" name="mode" value="new_b"><input type="submit" value="neue Beschreibung"></form></td></tr></table><br><br><table width="100%"><tr><th>Akronym</th><th width="65%">Beschreibung</th><th width="20%">Aktionen</th></tr><?phpwhile($row=mysql_fetch_assoc($res)){$sql2="SELECT a_desc FROM akronyms_desc WHERE ID=".$row["acronyms_desc"];$res2=mysql_query($sql2);if(!$res2){mail("tiefland@weban.de","Fehler beim Lesen der Akronyms",mysql_error()."\n$sql2\n","FROM: tiefland@weban.de","-F tiefland@weban.de");}else{$row2=mysql_fetch_assoc($res2);?><tr><td class="td<?=$row["ID"]%2;?>"><?=$row["word"];?></td><td class="td<?=$row["ID"]%2;?>"><?=$row2["a_desc"];?></td><td class="td<?=$row["ID"]%2;?>"><form action="" method="post"><input type="hidden" name="ID" value="<?=$row["ID"];?>"><input type="hidden" name="mode" value="edit_w"><input type="submit" value="Wort ändern"></form><form action="" method="post"><input type="hidden" name="ID" value="<?=$row["ID"];?>"><input type="hidden" name="mode" value="edit_b"><input type="submit" value="Beschreibung ändern"></form></td></tr><?php}}?></table><?php}break;}?></body></html>