Ejemplo n.º 1
0
            foreach ($prices as $price_code => $days) {
                ?>
								<option value="<?php 
                echo $price_code;
                ?>
" data-length="<?php 
                echo $days;
                ?>
"><?php 
                echo $days;
                ?>
 <?php 
                echo $lang[$p]['form_days_for'];
                ?>
 <?php 
                echo baltsms::returnPrice($price_code);
                ?>
 EUR</option>
							<?php 
            }
            ?>
						</select>
					<?php 
        }
        ?>
				<?php 
    }
    ?>
			</div>
		</div>
		<div class="form-group">
Ejemplo n.º 2
0
} else {
    ?>
	<?php 
    /*
    Šis veiks pārbaudi vai augstāk norādītais tabulas nosaukums eksistē datubāzē
    Ja vēlies automatizēt tabulas izveidi, atkomentē nākošās divas līnijas, kas satur if() un izveido jaunu SQL komandas līniju iekš baltsms.class.php createTable() funkcijas saturā
    */
    # if($db->tableExists($c[$p]['db']['table']) === false) echo baltsms::alert("Tabula netika atrasta datubāzē. Tā tika izveidota automātiski ar nosaukumu, kas norādīts konfigurācijā!", "success");
    # if($db->tableExists($c[$p]['db']['table']) === false) echo baltsms::createTable($p, $c[$p]['db']['table']);
    ?>
	<form class="form-horizontal" method="POST" id="<?php 
    echo $p;
    ?>
">
		<div class="alert alert-info" id="instructions"><?php 
    echo baltsms::instructionTemplate($lang[$p]['instructions'], array("price" => baltsms::returnPrice($c[$p]['price']), "code" => $c[$p]['price']));
    ?>
</div>
		<div id="alerts"></div>
		<div class="form-group">
			<label for="name" class="col-sm-2 control-label"><?php 
    echo $lang[$p]['form_unlock_code'];
    ?>
</label>
			<div class="col-sm-10">
				<input type="text" class="form-control" name="code" placeholder="<?php 
    echo $lang[$p]['form_unlock_code'];
    ?>
" maxlength="9" autocomplete="off">
			</div>
		</div>
Ejemplo n.º 3
0
        } else {
            ?>
					<?php 
            foreach ($donators as $donator) {
                ?>
						<tr>
							<td><?php 
                echo htmlspecialchars($donator['name']);
                ?>
</td>
							<td><?php 
                echo htmlspecialchars($donator['message']);
                ?>
</td>
							<td><?php 
                echo baltsms::returnPrice($donator['amount']);
                ?>
 EUR</td>
							<td><?php 
                echo date("d/m/Y H:i", $donator['time']);
                ?>
</td>
						</tr>
					<?php 
            }
            ?>
				<?php 
        }
        ?>
			</tbody>
		</table>
Ejemplo n.º 4
0
');
				}, 3000);
			</script>
			<?php 
        } else {
            echo $baltsms->getResponse();
        }
    }
} else {
    ?>
	<form class="form-horizontal" method="POST" id="<?php 
    echo $p;
    ?>
">
		<div class="alert alert-info" id="instructions"><?php 
    echo baltsms::instructionTemplate($lang[$p]['instructions'], array("price" => baltsms::returnPrice(array_values($c[$p]['prices'])[0]), "code" => array_values($c[$p]['prices'])[0]));
    ?>
</div>
		<div id="alerts"></div>
		<div class="form-group">
			<label for="nickname" class="col-sm-2 control-label"><?php 
    echo $lang[$p]['form_player_name'];
    ?>
</label>
			<div class="col-sm-10">
				<input type="text" class="form-control" name="nickname" placeholder="<?php 
    echo $lang[$p]['form_player_name'];
    ?>
">
			</div>
		</div>