if (isset($_POST['own_domain'])) {
    echo $_POST['own_domain'];
}
?>
" name="own_domain" style="display: block;">
                        <small>Caso possua informe aqui o domínio próprio do seu site (ele será usado no lugar do sub-domínio)</small>
                    </td>
                </tr>
                <tr class="form-field" style="display: none;">
                    <th scope="row"><label for="state">Localização</label></th>
                    <td>
                        <label for="state">Estado</label>
                        <select name="state" id="state">
                            <option value="">Selecione</option>
                            <?php 
foreach (State::getAll() as $state) {
    ?>
                                <option value="<?php 
    echo $state->id;
    ?>
" <?php 
    if (isset($_POST['state']) && $_POST['state'] == $state->id) {
        echo ' selected="selected" ';
    }
    ?>
>
                                    <?php 
    echo $state->name;
    ?>
                                </option>
                            <?php 
Beispiel #2
0
                            <div class="control-group">
                                <form action="#" method="POST">
                                    <table style="margin-left: 20%;" width="100%" >

                                        <tr>
                                            <td>
                                                <label class="control-label" for="selectError">State</label>
                                            </td>
                                            <td>
                                                <div class="input-group" style="width: 50%">
                                                    <span class="input-group-addon"></span>
                                                    <select required="" name="state_id" class="form-control">
                                                        <option value="">--Select State--</option>
                                                        <?php 
$countryObj = new State();
$rows = $countryObj->getAll();
foreach ($rows as $row) {
    ?>
                                                            <option value="<?php 
    echo $row['id'];
    ?>
"><?php 
    echo $row['name'];
    ?>
 </option>
                                                        <?php 
}
?>
                                                    </select>

Beispiel #3
0
                        Add 
                    </a><br/><br/>
                    <table class="table table-striped table-bordered bootstrap-datatable datatable responsive">
                        <thead>
                            <tr>
                                <th>Id</th>
                                <th>State </th>
                                <th>Country </th>
                                <th>Status</th>
                                <th>Actions</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php 
$stateObj = new State();
$rows = $stateObj->getAll();
foreach ($rows as $row) {
    ?>
  

                                <tr>
                                    <td><?php 
    echo $row['id'];
    ?>
</td>
                                    <td class="center"><?php 
    echo $row['name'];
    ?>
</td>
                                    <td class="center"><?php 
    echo $row['country_name'];