예제 #1
0
파일: data.php 프로젝트: sgh1986915/php-crm
 function get_data_statuses()
 {
     return get_col_vals("data_record", "status");
 }
예제 #2
0
    <table width="100%" border="0" cellspacing="0" cellpadding="2" class="tableclass tableclass_form">
        <tbody>
        <?php 
    foreach ($fields as $key => $val) {
        ?>
            <tr>
                <th class="width1">
                    <?php 
        echo _l($val[0]);
        ?>
                </th>
                <td>
                    <?php 
        // quick added hack for 'region' to display as a drop down
        if ($key == 'region_id' || $key == 'state_id' || $key == 'country_id') {
            echo print_select_box(get_col_vals('address', $key), 'address[' . $address_hash . '][' . $key . ']', isset($address[$key]) ? $address[$key] : '', '', false, false, true);
        } else {
            ?>
                        <input type="text" name="address[<?php 
            echo $address_hash;
            ?>
][<?php 
            echo $key;
            ?>
]" value="<?php 
            echo isset($address[$key]) ? htmlspecialchars($address[$key]) : '';
            ?>
" size="<?php 
            echo $val[1];
            ?>
" />