���ѧۧݧ�ӧ�� �ާ֧ߧ֧էا֧� - ���֧էѧܧ�ڧ��ӧѧ�� - /var/www/dev-kft.petruch.de/forms/product.edit.php
���ѧ٧ѧ�
<?php global $_customer; global $_product; $product = $_product->getSingle($p->productID); ?> <div class="title"><span> </span> <h3><?=$product->name?> bearbeiten</h3> <button class="transparent close-overlay" type="button"><i class="fa-solid fa-times"></i></button> </div> <form class="form-widget std"> <div class="grid-nth" style="--grid-cols:2;"> <div class="std-form"> <input value="<?=$product->name?>" name="name" class="required" id="f-name" type="text" placeholder="Name"> <label for="f-name">Name</label> </div> <div class="std-form"> <select name="customerID" class="required" id="f-customer"> <option value="0">Bitte Kunden auswählen</option> <?php if($customers = $_customer->getAll()) foreach($customers as $customer) echo '<option value="'.$customer->id.'"'.(($customer->id == $product->customerID)?' selected':'').'>'.$customer->customerNr.' | '.$customer->nameShow.'</option>'; ?> </select> <label for="f-customer">Kunde</label> </div> </div> <div class="grid-nth" style="--grid-cols:2;"> <div class="std-form"> <?php $icons = [ 'fa-syringe' => 'Spritze', 'fa-headphones' => 'Kopfhörer', 'fa-car-battery' => 'Auto Batterie', 'fa-gauge-simple-high' => 'Tacho', 'fa-paw' => 'Pfote', 'fa-crow' => 'Krähe', 'fa-dog' => 'Hund', 'fa-mosquito' => 'Mücke', 'fa-atom' => 'Atom', 'fa-sun' => 'Sonne', 'fa-battery-half' => 'Batterie', 'fa-bolt' => 'Blitz', 'fa-eye' => 'Auge', 'fa-globe' => 'Globus', 'fa-medium' => 'Medium', 'fa-rocket' => 'Rakete', 'fa-poo-storm' => 'Poo Storm', 'fa-water' => 'Wasser', 'fa-leaf' => 'Blatt', 'fa-heart' => 'Herz', 'fa-microchip' => 'Microchip', 'fa-robot' => 'Roboter' ] ?> <select name="icon" id="icon"> <option value="">Bitte Icon auswählen</option> <?php foreach($icons as $icon=>$name) echo '<option value="'.$icon.'"'.(($icon == $product->icon)?' selected':'').'>'.$name.'</option>'; ?> </select> <label for="f-icon">Icon</label> </div> <div class="std-form"> <input value="<?=$product->color?>" name="color" class="" id="f-color" type="color" placeholder="Kistengröße"> <label for="f-color">Farbe</label> </div> </div> <div class="grid-nth" style="--grid-cols:2;"> <div class="std-form"> <input value="<?=$product->batchSize?>" name="batchSize" class="" id="f-batchSize" type="number" placeholder="Kistengröße"> <label for="f-batchSize">Kistengröße</label> </div> <div class="std-form"> <select name="exactBatchSize" id="exactBatchSize"> <option value="0">Nein</option> <option value="1"<?=$product->exactBatchSize?' selected':''?>>Ja</option> </select> <label for="f-exactBatchSize">Exakte Kistengröße</label> </div> </div> <div class="grid-nth" style="--grid-cols:2;"> <div class="std-form"> <input value="<?=$product->buttonSmallAmount?>" name="buttonSmallAmount" class="" id="f-buttonSmallAmount" type="number" placeholder="Button Bulk-Anzahl"> <label for="f-buttonSmallAmount">Anzahl kleiner Button</label> </div> <div class="std-form"> <input value="<?=$product->buttonBigAmount?>" name="buttonBigAmount" class="" id="f-buttonBigAmount" type="number" placeholder="Button Bulk-Anzahl"> <label for="f-buttonBigAmount">Anzahl großer Button</label> </div> </div> <div class="grid-nth" style="--grid-cols:2;"> <div class="std-form"> <select name="sidesAmount" class="required" id="f-sidesAmount"> <?php for($i=1;$i<=2;$i++) echo '<option value="'.$i.'"'.(($i == $product->sidesAmount)?' selected':'').'>'.$i.'</option>'; ?> </select> <label for="f-sidesAmount">Seitenanzahl</label> </div> <div class="std-form"> <select name="machinePieceCounter" id="exactBatchSize"> <option value="0">Nein</option> <option value="1"<?=$product->machinePieceCounter?' selected':''?>>Ja</option> </select> <label for="f-machinePieceCounter">Maschinenstückzähler</label> </div> </div> <div class="std-form"> <textarea name="briefing" id="f-briefing" placeholder="Briefing"><?=$product->briefing?></textarea> <label for="f-briefing">Briefing</label> </div> <button>Speichern</button> <input type="hidden" name="do" value="productChange"> <input type="hidden" name="productID" value="<?=$product->id?>"> </form>
| ver. 1.4 |
Github
|
.
| PHP 8.3.33 | ���֧ߧ֧�ѧ�ڧ� ����ѧߧڧ��: 0 |
proxy
|
phpinfo
|
���ѧ����ۧܧ�