Subversion-Projekte lars-tiefland.content-management

Revision

Blame | Letzte Änderung | Log anzeigen | RSS feed

<?
        define ("modul_name", "online_shop");
        define ("tool_name", "design");

        require_once "connect2.php";
        $self=basename($PHP_SELF);
        $tab="shop_properties";

        // content_management anwählen
        mysql_select_db ("content_management");

        if ($action=="update")
        {
                unset($_POST[action]);
                unset($_POST[ID]);
                $_POST[site]=$site;

                foreach(array_keys($_POST) as $elem)
                {
                        if ($elem[0] == "_")
                        {
                                unset($_POST[$elem]);
                                $button=$$elem;
                                $elem=substr($elem,1);
                                $Pfad=$_POST[$elem."_Pfad"];
                                unset($_POST[$elem."_Pfad"]);
                                $image=$$elem;
                                $image_name=$elem."_name";
                                $image_name=urlencode($$image_name);
                                switch ($button) 
                                {
                                        case 0:
                                                break;
                                        case 1:
                                                $_POST[$elem]='';
                                                break;
                                        case 2:
                                                $_POST[$elem]=$image_name;
                                                copy($image,$Pfad.$image_name);
                                        break;
                                    default:
                                        break;
                            }
                        }
                }

                $names=implode(",",array_keys($_POST));
                foreach(array_keys($_POST) as $elem)
                {
                        $_POST[$elem] = "'".$_POST[$elem]."'";
                }
                $values=implode(",",$_POST);

                $query = "replace into $tab ($names) values ($values)";
                $result = mysql_query ($query) or die (mysql_errno().": ".mysql_error()."<hr>".$query."<hr>");

                require_once "create_images.php";
        }
?>
<html>
<head>
<title>Content-Management-System - Webagentur Niewerth</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript">
<!--



function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//-->
</script>
<script language="javascript" src="../Farb_Assistent.js"></script>
<meta name="description" content="Redaktionssystem">
<meta name="author" content="Webagentur Niewerth">
<meta name="robots" content="noindex">
<link rel=stylesheet type="text/css" href="../buttons.css">
<style type="text/css"><MM:BeginLock translatorClass="MM_SSI" type="ssi" orig="%3C? require_once %22../buttons.css%22; ?%3E" fileRef="../buttons.css" depFiles="file:///L|/content-management/buttons.css">span {text-decoration:underline; color:#000000}
p {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: #000000}
p.error {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; font-weight: bold}
span {font-family: Arial, Helvetica, sans-serif; font-size: 10pt}
span.blue {font-family: Arial, Helvetica, sans-serif; color: #FFFFFF; background-color:#0000A0; font-size: 10pt}
span.small {font-family: Arial, Helvetica, sans-serif; font-size: 8pt; text-decoration: none}
td {font-family: Arial, Helvetica, sans-serif; font-size: 10pt}
td.timeout {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: #FF0000;}
td.small {font-family: Arial, Helvetica, sans-serif; font-size: 8pt}
td.headline {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: #FFFFFF; font-weight: bold}
td.haupt {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; font-weight: bold}
input {font-family: Arial, Helvetica, sans-serif; font-size: 8pt}
select {font-family: Arial, Helvetica, sans-serif; font-size: 8pt}
textarea {font-family: Arial, Helvetica, sans-serif; font-size: 8pt}a {  text-decoration: none}
</style><MM:EndLock></style>
</head>

<body bgcolor="#<? echo $webs[bgcolor_seite]; ?>" text="#000000" leftmargin="20" topmargin="10" marginwidth="20" marginheight="10">
<form method="post" action="<? echo $self ?>" name="formname" enctype="multipart/form-data">
  <table width="555" border="0" cellspacing="0" cellpadding="0">
    <tr valign="top"> 
      <td width="485"> 
<?
        $result = mysql_query ("SELECT * FROM $tab where site='$site'") or die (mysql_errno().": ".mysql_error());
        $zeile=mysql_fetch_array($result);
?>
        <table width="100%" border="1" cellspacing="0" cellpadding="3" bordercolorlight="#FFFFFF" bordercolordark="#999999">
          <tr> 
            <td colspan="2" class="headline" bgcolor="#<? echo $webs[bgcolor_links] ?>"><font color="#<? echo $webs[font_color_links] ?>"><b>Shopdesign: 
              Bearbeiten</b></font></td>
          </tr>
          <?
        $Feld="shopempfaenger1";
        if (isset($user_rechte[modul_name][tool_name][$Feld]))
        {
?>
          <tr> 
            <td valign="top" class="headline" bgcolor="#<? echo $webs[bgcolor_links] ?>"> 
              <font color="#<? echo $webs[font_color_links] ?>"><b> 
              <?
                                if ($web_rechte[modul_name][tool_name][$Feld]) 
                                {
                                        echo $web_rechte[modul_name][tool_name][$Feld]; 
                                }
                                else 
                                {
                        ?>
              ShopEmpf&auml;nger1: 
              <?
                                }
                        ?>
              </b></font>
                          </td>
            <td height="23" class="headline" bgcolor="#<? echo $webs[bgcolor_rechts] ?>">
<input type="text" name="shopempfaenger1" value="<? echo $zeile[shopempfaenger1] ?>"></td>
          </tr>
          <? 
        }
?>
          <?
        $Feld="shopempfaenger2";
        if (isset($user_rechte[modul_name][tool_name][$Feld]))
        {
?>
          <tr> 
            <td valign="top" class="headline" bgcolor="#<? echo $webs[bgcolor_links] ?>"> 
              <font color="#<? echo $webs[font_color_links] ?>"><b> 
              <?
                                if ($web_rechte[modul_name][tool_name][$Feld]) 
                                {
                                        echo $web_rechte[modul_name][tool_name][$Feld]; 
                                }
                                else 
                                {
                        ?>
              ShopEmpf&auml;nger2: 
              <?
                                }
                        ?>
              </b></font></td>
            <td height="23" class="headline" bgcolor="#<? echo $webs[bgcolor_rechts] ?>"><input type="text" name="shopempfaenger2" value="<? echo $zeile[shopempfaenger2] ?>"></td>
          </tr>
          <? 
        }
?>
          <tr> 
            <td valign="top" class="headline" bgcolor="#<? echo $webs[bgcolor_links] ?>"><font color="#<? echo $webs[font_color_links] ?>"><b>Text 
              Best&auml;tiungs-<br>
              Mail Kunde1:</b></font></td>
            <td height="23" bgcolor="#<? echo $webs[bgcolor_rechts] ?>"><font color="#<? echo $webs[font_color_rechts] ?>">
              <textarea name="bestmailkunde1" cols="60" rows="6"><? echo $zeile[bestmailkunde1] ?></textarea>
              <br>
              Nutzen Sie dieses Template f&uuml;r die </font></td>
          </tr>
          <tr> 
            <td valign="top" class="headline" bgcolor="#<? echo $webs[bgcolor_links] ?>"><font color="#<? echo $webs[font_color_links] ?>"><b>Text 
              Best&auml;tiungs-<br>
              Mail Kunde2:</b></font></td>
            <td height="23" class="headline" bgcolor="#<? echo $webs[bgcolor_rechts] ?>"> 
              <textarea name="bestmailkunde2" cols="60" rows="6"><? echo $zeile[bestmailkunde2] ?></textarea></td>
          </tr>
          <tr> 
            <td valign="top" class="headline" bgcolor="#<? echo $webs[bgcolor_links] ?>"><font color="#<? echo $webs[font_color_links] ?>"><b>Text 
              Best&auml;tiungs-<br>
              Mail1:</b></font></td>
            <td height="23" class="headline" bgcolor="#<? echo $webs[bgcolor_rechts] ?>"><textarea name="bestmailshop1" cols="60" rows="6"><? echo $zeile[bestmailshop1] ?></textarea></td>
          </tr>
          <tr> 
            <td valign="top" class="headline" bgcolor="#<? echo $webs[bgcolor_links] ?>"><font color="#<? echo $webs[font_color_links] ?>"><b>Text 
              Best&auml;tiungs-<br>
              Mail1:</b></font></td>
            <td height="23" class="headline" bgcolor="#<? echo $webs[bgcolor_rechts] ?>"> 
              <textarea name="bestmailshop2" cols="60" rows="6"><? echo $zeile[bestmailshop2] ?></textarea></td>
          </tr>
          <tr> 
            <td valign="top" class="headline" bgcolor="#<? echo $webs[bgcolor_links] ?>" width="105"><font color="#<? echo $webs[font_color_links] ?>"><b>Grafikbutton 
              verwenden:</b></font></td>
            <td height="23" class="headline" bgcolor="#<? echo $webs[bgcolor_rechts] ?>" width="432"> 
              <table border="0" cellpadding="0" cellspacing="0">
                <tr> 
                  <td width="54%" height="20"> <input type="radio" name="grafik" value="1"<? if ($zeile[grafik] == 1) {echo "checked";}?>>
                    ja</td>
                </tr>
                <tr> 
                  <td width="54%"> <input type="radio" name="grafik" value="0"<? if ($zeile[grafik] == 0) {echo "checked";}?>>
                    nein </td>
                </tr>
              </table></td>
          </tr>
          <tr> 
            <td bgcolor="#<? echo $webs[bgcolor_links] ?>" class="headline" valign="top" width="105"><font color="#<? echo $webs[font_color_links] ?>"><b>Text 
              Farbe:</b></font></td>
            <td bgcolor="#<? echo $webs[bgcolor_rechts] ?>" width="432"> <table border="0" cellspacing="0" cellpadding="0" width="100%">
                <tr> 
                  <td nowrap width="6%">&nbsp;</td>
                  <td nowrap>Farbe: # 
                    <input type="text" name="textcolor" size="6" maxlength="6" value="<? echo $zeile[textcolor] ?>"> 
                    <input type="button" value="Farb Assistent" onClick="Farb_Assistent(this.form.textcolor.value,'document.formname.textcolor.value');" name="button3"> 
                  </td>
                  <td width="40%" align="center"> <table width="23" height="10" border="1" cellspacing="0" cellpadding="0">
                      <tr> 
                        <td bgcolor="<? echo $zeile[textcolor] ?>">&nbsp;</td>
                      </tr>
                    </table></td>
                </tr>
              </table></td>
          </tr>
          <tr> 
            <td bgcolor="#<? echo $webs[bgcolor_links] ?>" class="headline" valign="top" width="105"><font color="#<? echo $webs[font_color_links] ?>"><b>Hintergrund 
              Normal:</b></font></td>
            <td bgcolor="#<? echo $webs[bgcolor_rechts] ?>"> <table border="0" cellspacing="0" cellpadding="0" width="100%">
                <tr> 
                  <td nowrap width="6%"> 
                    <?
                                $image_name="background";
                                $image_Path="/images/bt_original/";

                                                $image_raw_Path=$image_Path;
                                                $image_Path=$webs[verzeichnis].$image_Path;
                        ?>
                    <input type="hidden" name="<? echo $image_name ?>_Pfad" value="<? echo $image_Path ?>"> 
                    <?
                        if ($zeile[$image_name] != "")
                        {
                        ?>
                    <input type="radio" name="_<? echo $image_name ?>" value="0" checked> 
                  </td>
                  <td nowrap colspan="2"><a href="http://www.<? echo $site.$image_raw_Path.$zeile[$image_name] ?>" target="blank"> 
                    <? echo $zeile[$image_name]; ?> </a></td>
                </tr>
                <tr> 
                  <td nowrap width="6%"> 
                    <? } ?>
                    <input type="radio" name="_<? echo $image_name ?>" value="1" <? if ($zeile[$image_name] == "") {echo "checked";}?>> 
                  </td>
                  <td nowrap>Farbe: # 
                    <input type="text" name="bgcolor" size="6" maxlength="6" value="<? echo $zeile[bgcolor] ?>"> 
                    <input type="button" value="Farb Assistent" onClick="Farb_Assistent(this.form.bgcolor.value,'document.formname.bgcolor.value');" name="button"> 
                  </td>
                  <td width="40%" align="center"> <table width="24" height="10" border="1" cellspacing="0" cellpadding="0">
                      <tr> 
                        <td bgcolor="<? echo $zeile[bgcolor] ?>">&nbsp;</td>
                      </tr>
                    </table></td>
                </tr>
                <tr> 
                  <td nowrap width="6%"> <input type="radio" name="_<? echo $image_name ?>" value="2"> 
                  </td>
                  <td nowrap colspan="2"> <input type="File" name="<? echo $image_name ?>" size="17" maxlength="255" onFocus="this.form._<? echo $image_name ?>[<? if ($zeile[$image_name] != "") {echo "2";} else {echo "1";} ?>].checked=true;"> 
                  </td>
                </tr>
              </table></td>
          </tr>
          <tr> 
            <td bgcolor="#<? echo $webs[bgcolor_links] ?>" class="headline" valign="top" width="105"><font color="#<? echo $webs[font_color_links] ?>"><b>Text 
              Farbe:</b></font></td>
            <td bgcolor="#<? echo $webs[bgcolor_rechts] ?>" width="432"> <table border="0" cellspacing="0" cellpadding="0" width="100%">
                <tr> 
                  <td nowrap width="6%">&nbsp;</td>
                  <td nowrap>Farbe: # 
                    <input type="text" name="textcolor2" size="6" maxlength="6" value="<? echo $zeile[textcolor2] ?>"> 
                    <input type="button" value="Farb Assistent" onClick="Farb_Assistent(this.form.textcolor2.value,'document.formname.textcolor2.value');" name="button2"> 
                  </td>
                  <td width="40%" align="center"> <table width="23" height="10" border="1" cellspacing="0" cellpadding="0">
                      <tr> 
                        <td bgcolor="<? echo $zeile[textcolor2] ?>">&nbsp;</td>
                      </tr>
                    </table></td>
                </tr>
              </table></td>
          </tr>
          <tr> 
            <td bgcolor="#<? echo $webs[bgcolor_links] ?>" class="headline" valign="top" width="105"><font color="#<? echo $webs[font_color_links] ?>"><b>Hintergrund 
              Mouseover:</b></font></td>
            <td bgcolor="#<? echo $webs[bgcolor_rechts] ?>"> <table border="0" cellspacing="0" cellpadding="0" width="100%">
                <tr> 
                  <td nowrap width="6%"> 
                    <?
                        $image_name="background2";
                        $image_Path="/images/bt_original_f2/";

                                        $image_raw_Path=$image_Path;
                                        $image_Path=$webs[verzeichnis].$image_Path;
                                        ?>
                    <input type="hidden" name="<? echo $image_name ?>_Pfad" value="<? echo $image_Path ?>"> 
                    <?
                        if ($zeile[$image_name] != "")
                        {
                        ?>
                    <input type="radio" name="_<? echo $image_name ?>" value="0" checked> 
                  </td>
                  <td nowrap colspan="2"><a href="http://www.<? echo $site.$image_raw_Path.$zeile[$image_name] ?>" target="blank"> 
                    <? echo $zeile[$image_name]; ?> </a></td>
                </tr>
                <tr> 
                  <td nowrap width="6%"> 
                    <? } ?>
                    <input type="radio" name="_<? echo $image_name ?>" value="1" <? if ($zeile[$image_name] == "") {echo "checked";}?>> 
                  </td>
                  <td nowrap>Farbe: # 
                    <input type="text" name="bgcolor2" size="6" maxlength="6" value="<? echo $zeile[bgcolor2] ?>"> 
                    <input type="button" value="Farb Assistent" onClick="Farb_Assistent(this.form.bgcolor2.value,'document.formname.bgcolor2.value');" name="button"> 
                  </td>
                  <td width="40%" align="center"> <table width="24" height="10" border="1" cellspacing="0" cellpadding="0">
                      <tr> 
                        <td bgcolor="<? echo $zeile[bgcolor] ?>">&nbsp;</td>
                      </tr>
                    </table></td>
                </tr>
                <tr> 
                  <td nowrap width="6%"> <input type="radio" name="_<? echo $image_name ?>" value="2"> 
                  </td>
                  <td nowrap colspan="2"> <input type="File" name="<? echo $image_name ?>" size="17" maxlength="255" onFocus="this.form._<? echo $image_name ?>[<? if ($zeile[$image_name] != "") {echo "2";} else {echo "1";} ?>].checked=true;"> 
                  </td>
                </tr>
              </table></td>
          </tr>
          <tr> 
            <td class="headline" valign="top" width="105" bgcolor="#<? echo $webs[bgcolor_links] ?>"><font color="#<? echo $webs[font_color_links] ?>"><b>Buttongr&ouml;&szlig;e:</b></font></td>
            <td class="headline" nowrap bgcolor="#<? echo $webs[bgcolor_rechts] ?>" width="432"> 
              <table width="75%" border="0" cellpadding="0" cellspacing="0">
                <tr> 
                  <td width="54%">L&auml;nge: </td>
                  <td width="46%"> <input type="text" name="horizontal" size="6" maxlength="6" value="<? echo $zeile[horizontal] ?>"> 
                  </td>
                </tr>
                <tr> 
                  <td width="54%">H&ouml;he: </td>
                  <td width="46%"> <input type="text" name="vertikal" size="6" maxlength="6" value="<? echo $zeile[vertikal] ?>"> 
                  </td>
                </tr>
              </table></td>
          </tr>
          <tr> 
            <td bgcolor="#<? echo $webs[bgcolor_links] ?>" class="headline" valign="top" width="105"><font color="#<? echo $webs[font_color_links] ?>"><b>Text:</b></font></td>
            <td bgcolor="#<? echo $webs[bgcolor_rechts] ?>" width="432"> <table width="75%" border="0" cellpadding="0" cellspacing="0">
                <tr> 
                  <td width="54%">Art: </td>
                  <td width="46%"> <select name="textart">
                      <option value="Alanden.TTF" 
                                            <?if($zeile[textart]=="Alanden.TTF"){echo" selected";}?>>Alan 
                      Den</option>
                      <option value="tt1040m_.ttf" 
                                            <?if($zeile[textart]=="tt1040m_.TTF"){echo" selected";}?>>Amazone 
                      BT</option>
                      <option value="Amelia.ttf" 
                                            <?if($zeile[textart]=="Amelia.ttf"){echo" selected";}?>>Amelia</option>
                      <option value="FETNGT.TTF" 
                                            <?if($zeile[textart]=="FETNGT.TTF"){echo" selected";}?>>Federation 
                      PNG</option>
                      <option value="future.ttf" 
                                            <?if($zeile[textart]=="future.ttf"){echo" selected";}?>>Future</option>
                      <option value="HIGHLA2.TTF" 
                                            <?if($zeile[textart]=="HIGHLA2.TTF"){echo" selected";}?>>Highlander</option>
                      <option value="Nadiannb.ttf" 
                                            <?if($zeile[textart]=="Nadiannb.ttf"){echo" selected";}?>>Nadianne</option>
                      <option value="pdark.ttf" 
                                            <?if($zeile[textart]=="pdark.ttf"){echo" selected";}?>>Perfect 
                      Dark</option>
                      <option value="Diploma.ttf" 
                                            <?if($zeile[textart]=="Diploma.ttf"){echo" selected";}?>>PT 
                      Diploma</option>
                      <option value="WARLOCK.TTF" 
                                            <?if($zeile[textart]=="WARLOCK.TTF"){echo" selected";}?>>WarLock</option>
                      <option value="PENCB.TTF" 
                                            <?if($zeile[textart]=="PENCB.TTF"){echo" selected";}?>>PencilBox</option>
                    </select> </td>
                </tr>
                <tr> 
                  <td width="54%">Gr&ouml;&szlig;e in Pixel: </td>
                  <td width="46%"> <input type="text" name="textgroesse" value="<? echo $zeile[textgroesse] ?>" maxlength="6" size="6"> 
                  </td>
                </tr>
              </table></td>
          </tr>
          <tr> 
            <td class="headline"valign="top" width="105" bgcolor="#<? echo $webs[bgcolor_links] ?>"><font color="#<? echo $webs[font_color_links] ?>"><b>Textposition:</b></font></td>
            <td class="headline" height="18" nowrap width="432" bgcolor="#<? echo $webs[bgcolor_rechts] ?>"> 
              <table width="75%" border="0" cellpadding="0" cellspacing="0">
                <tr> 
                  <td width="54%">Horizontale Ausrichtung: </td>
                  <td width="46%"> <input type="text" name="txt_horizontal" size="6" maxlength="6" value="<? echo $zeile[txt_horizontal] ?>"> 
                  </td>
                </tr>
                <tr> 
                  <td width="54%">Vertikale Ausrichtung: </td>
                  <td width="46%"> <input type="text" name="txt_vertikal" size="6" maxlength="6" value="<? echo $zeile[txt_vertikal] ?>"> 
                  </td>
                </tr>
              </table></td>
          </tr>
          <tr> 
            <td class="headline"valign="top" width="105" bgcolor="#<? echo $webs[bgcolor_links] ?>"><font color="#<? echo $webs[font_color_links] ?>"><b>&Uuml;berlange 
              Textbutton erlauben:</b></font></td>
            <td class="headline" height="18" nowrap width="432" bgcolor="#<? echo $webs[bgcolor_rechts] ?>"> 
              <table width="0" border="0" cellpadding="0" cellspacing="0">
                <tr> 
                  <td height="7"> <input type="radio" name="zugr_txt" value="0"<? if ($zeile[zugr_txt] == 0) {echo "checked";}?>>
                    ja </td>
                </tr>
                <tr> 
                  <td height="5"> <input type="radio" name="zugr_txt" value="1"<? if ($zeile[zugr_txt] == 1) {echo "checked";}?>>
                    nein </td>
                </tr>
              </table></td>
          </tr>
          <tr> 
            <td class="headline"valign="top" width="105" bgcolor="#<? echo $webs[bgcolor_links] ?>"><font color="#<? echo $webs[font_color_links] ?>"><b>Button 
              dem Text anpassen:</b></font></td>
            <td class="headline" nowrap width="432" bgcolor="#<? echo $webs[bgcolor_rechts] ?>"> 
              <table border="0" cellpadding="0" cellspacing="0">
                <tr> 
                  <td height="21"> <input type="radio" name="bt_laenge" value="1"<? if ($zeile[bt_laenge] == 1) {echo "checked";}?>>
                    ja </td>
                </tr>
                <tr> 
                  <td height="5"> <input type="radio" name="bt_laenge" value="0"<? if ($zeile[bt_laenge] == 0) {echo "checked";}?>>
                    nein </td>
                </tr>
              </table></td>
          </tr>
          <tr> 
            <td align="right" colspan="2" bgcolor="#<? echo $webs[bgcolor_links] ?>"> 
              <input type="hidden" name="action" value="update"> <input type="submit" value="OK"> 
              <input type="reset" name="Button" value="Zur&uuml;cksetzen"> </td>
          </tr>
        </table>
      </td>
    </tr>
  </table>  
  </form>
</body>