Input anordenen

Kent94

Mitglied
Sehr geehrte Damen und Herren,

habe mich vor kurzen für ein Shop System entschieden... Allerdings ist der Code so angeordnet das es 1 Input Feld gibt und ich per Admin Bereich diese Hinzufügen kann nun möchte ich allerdings Details und Vertragliche Sachen in 2 Kategorien aufteilen das habe ich soweit auch gemacht allerdings z.B Vorauszahlung wird bei Details angezeigt gibt es eine Möglichkeit per CSS oder so die Inputs tiefer zu setzen ??? habe versucht auch die Inputs einzelend anzugeben allerdings berechnet er mir dann nichts....

Ich hänge auch mal ein Screenshot an sowie den HTML / PHP Code.

PHP:
<div style="position: relative; top: 15px; left: 20px; width: 900px;">
<!-- store_details_1 START -->
<?php
echo '
<table
style="border-collapse: collapse; color: rgb(48, 54, 65); font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;"
border="0" cellpadding="0" cellspacing="0">
  <tbody style="">
    <tr style="">
      <td style="font-size: 14px;" valign="top">
      <div class="wrapper"
style="max-width: 100px;">
      <div class="row"
style="margin: 0px auto; overflow: hidden; min-width: 1146px;">
      <div class="columns twelve"
style="float: left; padding-right: 10px; width: 1146px;">
      <div class="headline-new"
style="border-bottom: 2px solid #155e87; font-size: 19px; height: 55px; line-height: 55px; text-align: center; text-transform: uppercase; margin-bottom: 20px; background-color: rgb(255, 255, 255);">'.$box_prodtitle.' DATEN</div>
      </div>
      </div>
      </td>
    </tr>
  </tbody>
</table>
<table span="3" border="1" bordercolor="#bbb" cellpadding="0" cellspacing="0" width="757px" style="background-color: #fff;">
         
          <td style="position: relative; left: 50px;" valign="top"><div class="small">';

if ($box_prodshort) {
    echo '';
}

echo '</div>
      <table border="0" cellpadding="0" cellspacing="0" width="100%" class="shopdetailstable"><br /><hr align="left" style="width: 660px;">
          <form name="cprice" action="'.$storeaddpath.'" method="post">';

for ($i=0; $i<count($box_prodvarcategory); $i++) {
    if ($box_prodvaronetime[$i] == 'no') {
        echo '<tr><td>'.$box_prodvarcategory[$i].'</td><td>';
       
        $box_select = '<select name="varid[]" id="'.$box_prodvarcatid[$i].'" class="selectfield" onChange="createprice()">';
        $box_selectcount=0;
        $box_selectcurrent=0;
        for ($j=0; $j<count($box_prodvarid); $j++) {
            if ($box_prodvarcheck[$j] == $box_prodvarcatid[$i]) {
                $box_select.= '<option value="'.$box_prodvarid[$j].'">'.$box_prodvariation[$j].'&nbsp;('.$box_prodvarmonper[$j].''.$box_prodvarstatus[$j].')</option>';
                $box_selectcount++;
                $box_selectcurrent = $j;
            }
        }
        if ($box_selectcount == 1) {
            echo '<input type="text name="free[]" class="inputfield" value="'.$box_prodvariation[$box_selectcurrent].'" readonly>';
        }else{
            echo ''.$box_select.'
                  </select>';
        }
       
        echo '</td></tr>';
    }
}

for ($i=0; $i<count($box_prodvarcategory); $i++) {
    if ($i == 0) {
        echo '
        <div style="position: relative; left: 30%;"><b>TECHNISCHE DATEN</b></div> <hr align="left" style="width: 660px;">
        <tr><td colspan="2">&nbsp;<hr align="left" style="width: 660px;"><div style="position: relative; left: 30%;"><b>VERTRAGLICHE OPTIONEN</b></div><hr align="left" style="width: 660px;"></td></tr>';
    }
    if ($box_prodvaronetime[$i] == 'yes') {
        echo '<tr><td>'.$box_prodvarcategory[$i].'</td><td>';
       
        $box_select = '<select name="varid[]" id="'.$box_prodvarcatid[$i].'" class="selectfield" onChange="createonetime()">';
        $box_selectcount=0;
        $box_selectcurrent=0;
        for ($j=0; $j<count($box_prodvarid); $j++) {
            if ($box_prodvarcheck[$j] == $box_prodvarcatid[$i]) {
                $box_select.= '<option value="'.$box_prodvarid[$j].'">'.$box_prodvariation[$j].'&nbsp;('.$box_prodvarmonper[$j].''.$box_prodvarstatus[$j].')</option>';
                $box_selectcount++;
                $box_selectcurrent = $j;
            }
        }
        if ($box_selectcount == 1) {
            echo '<input type="hidden" name="varid[]" id="'.$box_prodvarcatid[$i].'" value="'.$box_prodvarid[$box_selectcurrent].'"><input type="text name="free[]" class="inputfield" value="'.$box_prodvariation[$box_selectcurrent].'" readonly>';        }else{
            echo ''.$box_select.'
                  </select>';
        }
        echo '</td></tr>';
    }
}

if ($box_proddomain == 1) {
    echo '<tr><td colspan="2">&nbsp;</td></tr>
          <tr><td colspan="2">&nbsp;</td></tr>
          <tr height="18px"><td>'._SHOPDOMAIN.'</td><td>www.<input type="text" name="domain" maxlength="255" style="width:150px;" value="">.<select name="shortcut" style="width:55px;">
          '.$box_proddomainselect.'
          </select>
          </td></tr>
          <tr height="18px"><td>'._SHOPISMYDOMAIN.'</td><td><input type="checkbox" name="mydomain" value="1"></td></tr>';
}


echo '</table>
      </div><div style="padding: 15px;"></div></td></tr>
      </table>
      <div class="dataspace"></div>';
echo'
<table class="price_store" cellpadding="2" cellspacing="2">
  <tbody>
    <tr>
      <td>
<div style="margin: 0px auto 10px; overflow: hidden; color: rgb(48, 54, 65); font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 16px; text-align: left; text-indent: 0px;text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">
<div style="float: left; padding-left: 0px; padding-right: 0px;">
<div style="border-bottom: 2px solid #155e87; font-size: 19px; height: 55px; line-height: 55px; text-align: center; text-transform: uppercase; margin-bottom: 20px; background-color: rgb(255, 255, 255);">GESAMTPREIS:</div>';
echo '
<div style="float: left; padding-left: 0px; padding-right: 0px; width: 350px;">
<header style="font-size: 16px; text-transform: uppercase;"><b>MONATLICHE KOSTEN</b></header>
'.$box_prodjava.'   
<tr style="height: 34px; width: 50px; margin-top: 3px; background-color: #155e87; color: #fff;">
<td>&nbsp;    <input type="text" name="moneytotal" style="width: 223px; border:0px solid;background:none; font-weight: bold;" value="'.$box_prodallprice.'&nbsp;'._TAX.'" readonly>
</td>
</tr>
</div>
</div>
';
echo'</div>
</div>
      </td>
    </tr>
    <tr>
      <td>';
echo '<div style="padding: 15px;"></div>
<div style="float: left; padding-left: 0px; padding-right: 0px; width: 350px;">
<header style="font-size: 16px; text-transform: uppercase;"><b>EINMALIGE KOSTEN</b></header>
'.$box_prodjava.'   
<tr style="height: 34px; width: 50px; margin-top: 3px; background-color: #757575; color: #fff;">
<td>&nbsp;    <input type="text" name="moneyonetime" style="border:0px solid;background:none;width:223px; font-weight: bold;" value="'.$box_prodallonetime.'&nbsp;'._TAX.'" readonly>
      </td>
    </tr>
    <tr>
      <td></td>
    </tr>
  </tbody>
</table>';
if ($name == "shop") {
    echo '<div class="buttoncalc">';
    if (file_exists("themes/$sitetheme/images/$language/button-next.png")) {
        echo '1<input id="shopbutton" class="'.$box_buttonstatus.'" src="themes/'.$sitetheme.'/images/'.$language.'/button-next.png" type="image">';
    }elseif (file_exists("themes/$sitetheme/images/button-next.png")) {
        echo '<input id="shopbutton" class="'.$box_buttonstatus.'" src="themes/'.$sitetheme.'/images/button-next.png" type="image">';
    }else{
        echo '<a style="position: relative; left: -142px; top: 10px;" id="shopbutton" href="javascript:document.cprice.submit();" class="button_form">'._NEXT.'</a>';
    }
}else{
    echo '<div class="buttonadd">';
    if (file_exists("themes/$sitetheme/images/$language/button-add.png")) {
        echo '<input id="shopbutton" class="'.$box_buttonstatus.'" src="themes/'.$sitetheme.'/images/'.$language.'/button-add.png" type="image">';
    }elseif (file_exists("themes/$sitetheme/images/button-add.png")) {
        echo '<input id="shopbutton" class="'.$box_buttonstatus.'" src="themes/'.$sitetheme.'/images/button-add.png" type="image">';
    }else{
        echo '<a style="position: relative; left: -142px; top: 10px;" id="shopbutton" href="javascript:document.cprice.submit();" class="button_form">'._ADDTOBASKET.'</a><br /><br />';
    }
}

echo '</div>
      <input type="hidden" name="op" value="add"><input type="hidden" name="ids" value="'.$box_prodid.'">
      </form>';

    if ($box_prodtext) {
        echo '<div class="dataspace"></div><div style="padding: 15px;"></div>
              <hr style="position: relative; left: -66px; width: 760px;">
              '.$box_prodtext.'';
    }

?><br><br>

<!-- store_details_1 END -->

BILD: http://awesomescreenshot.com/06d53mt5fd

MfG.
 
Hallo,

Sorry also auf dem Bild sieht man ja ,,Slotanzahl'' dieses soll dort auch bleiben nun darunter sieht man Vorauszahlung ? dieses Input möchte ich über Vertragslaufzeit setzen.
 
Zurück