示例#1
0
"><?php 
    echo $data['exp_cat_name'];
    ?>
</option>
                                    <?php 
}
?>

                            </select>

                        </div>
                        <div class="input-field col s12">
                            <select name="in_ac_id">
                                <option value="" disabled selected>Choose Account</option>
                                <?php 
$array_accounts = $db->show_accounts();
foreach ($array_accounts as $data) {
    ?>
                                    <option value="<?php 
    echo $data['ac_id'];
    ?>
"><?php 
    echo $data['ac_name'];
    ?>
</option>
                                    <?php 
}
?>

                            </select>
示例#2
0
                            <input type="date" name="tr_date" class="datepicker">
                            <label for="date">Date</label>
                        </div>
                        <div class="input-field col s12">
                            <input id="amount" name="tr_amount" type="text" >
                            <label for="amount">amount</label>
                        </div>
                        <div class="input-field col s12">
                            <textarea id="textarea1" name="tr_des" class="materialize-textarea"></textarea>
                            <label for="textarea1">Description</label>
                        </div>
                        <div class="input-field col s12">
                            <select name="tr_ac_id_from">
                                <option value="" disabled selected>Choose Account From</option>
                                <?php 
$array_accounts_from = $db->show_accounts();
foreach ($array_accounts_from as $data) {
    ?>
                                    <option value="<?php 
    echo $data['ac_id'];
    ?>
"><?php 
    echo $data['ac_name'];
    ?>
</option>
                                    <?php 
}
?>

                            </select>