auction_create.php

main 40 lines · 2.2 KB Raw
Alex Alex Commit Initial commit 01/10/2026 09:20
1<?php if (is_array($own_characters) && !empty($own_characters)): ?>
2 <p><a href="/auctionChar.php?action=list"><?= t('auc.go_back_list') ?></a></p>
3 <form action="/auctionChar.php" method="POST">
4 <input type="hidden" name="action" value="add">
5 <p><?= t('auc.char_offline') ?></p>
6 <select name="pid">
7 <?php foreach($own_characters as $char): ?>
8 <option value="<?php echo $char['id']; ?>">
9 <?php echo "Level: ", $char['level'], " ", vocation_id_to_name($char['vocation']), ": ", $char['name']; ?>
10 </option>
11 <?php endforeach; ?>
12 </select>
13 <p><strong><?= t('auc.shop_points') ?></strong>
14 <br><?= t('auc.your_points') ?> <?php echo $own_characters[0]['points']; ?>
15 <br><?= t('auc.minimum') ?> <?php echo $auction['lowestPrice']; ?>
16 <br>deposit: <?php echo $auction['deposit']; ?>%
17 <br><?= t('auc.your_max') ?> <?php echo $max; ?>
18 </p>
19 <p><strong><?= t('auc.deposit_info') ?></strong>
20 <br>To ensure you as the seller is a legitimate account, and to encourage fair prices you have to temporarily invest <?php echo $auction['deposit']; ?>% of the selling price as a deposit.
21 </p>
22 <p>Once the auction has completed, the deposit fee will be refunded back to your account.</p>
23 <p>If you wish to reclaim your character, you can do it after the bidding period if nobody has placed an offer on it. But if you do this you will not get the deposit back. It is therefore advisable that you create a good and appealing offer to our community.</p>
24 <p><?= t('auc.sell_price') ?></p>
25 <input type="number" name="cost" min="<?php echo $auction['lowestPrice']; ?>" max="<?php echo $max; ?>" step="5" placeholder="<?php echo $auction['lowestPrice']; ?> - <?php echo $max; ?>">
26 <br>
27 <p><?= t('auc.verify_pw') ?></p>
28 <input type="password" name="password">
29 <br>
30 <input type="submit" value="<?= t('auc.sell_btn') ?>">
31 </form>
32<?php else: ?>
33 <p><a href="/auctionChar.php?action=list"><?= t('auc.go_back_list') ?></a></p>
34 <p>Your account does not follow the required rules to sell characters.
35 <br>1. Minimum level: <?php echo $auction['lowestLevel']; ?>
36 <br>2. Minimum already earned shop points: <?php echo $minToCreate; ?>
37 <br>3. Eligible characters must be offline.
38 </p>
39<?php endif; ?>
40
Top