Commit 1159c166 authored by Tommek's avatar Tommek

waren vergabe in loot

parent 649cc54b
This diff is collapsed.
......@@ -302,9 +302,11 @@ function aoqml_challenge($position, $type){
$content .= ' ' . htmlspecialchars($_POST['win_'.$position]) . "\n";
/*if(strlen($_POST['ware']) > 2){
$content .= ' ' . htmlspecialchars('<take item="'.$_POST['ware'].'"/>') . "\n";
}*/
if(intval($_POST['ware_id_win_'.$position]) > 0){
$content .= ' ' . htmlspecialchars('<take item="#'.$_POST['ware_id_win_'.$position].'"/>') .
htmlspecialchars('<!-- '.$_POST['ware_comment_win_'.$position].' -->') .
"\n";
}
if(intval($_POST['ep_win_'.$position]) > 0){
$content .= ' ' . htmlspecialchars('<set attribute="EP" inc="'.$_POST['ep_win_'.$position].'"/>') . "\n";
......@@ -327,9 +329,11 @@ function aoqml_challenge($position, $type){
$content .= "\n" . ' ' . htmlspecialchars('<failure>') . "\n";
$content .= ' ' . htmlspecialchars($_POST['loss_'.$position]) . "\n";
/*if(strlen($_POST['ware']) > 2){
$content .= ' ' . htmlspecialchars('<take item="'.$_POST['ware'].'"/>') . "\n";
}*/
if(intval($_POST['ware_id_loss_'.$position]) > 0){
$content .= ' ' . htmlspecialchars('<take item="#'.$_POST['ware_id_loss_'.$position].'"/>') .
htmlspecialchars('<!-- '.$_POST['ware_comment_loss_'.$position].' -->') .
"\n";
}
if(intval($_POST['ep_loss_'.$position]) > 0){
$content .= ' ' . htmlspecialchars('<set attribute="EP" inc="'.$_POST['ep_loss_'.$position].'"/>') . "\n";
......
<?php
function input_loot($position){
echo '<label>EP:
<input type="text" name="ep_'.$position.'" value="0">
</label>';
echo '<label>Cash in Groschen:
<input type="text" name="cash_'.$position.'" value="0">
</label>';
//todo select auf Waren
//echo '<input type="hidden" name="ware" value="testware">';
?>
<label>EP:
<input type="text" name="ep_<?=$position;?>" value="0">
</label>
<label>Cash in Groschen:
<input type="text" name="cash_<?=$position;?>" value="0">
</label>
<label>Waren-ID siehe <a href="https://wiki.antamar.eu/index.php/Aktuelle_Warenliste" target="_blank">Liste im Wiki</a>:
<input type="text" name="ware_id_<?=$position;?>" placeholder="1234">
<input type="text" name="ware_comment_<?=$position;?>" placeholder="einfacher Holzlöffel">
</label>
<?php
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment