当前位置: 首页>>代码示例>>PHP>>正文


PHP Forms::printInput方法代码示例

本文整理汇总了PHP中Forms::printInput方法的典型用法代码示例。如果您正苦于以下问题:PHP Forms::printInput方法的具体用法?PHP Forms::printInput怎么用?PHP Forms::printInput使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Forms的用法示例。


在下文中一共展示了Forms::printInput方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: City

?>
                                
                            </td>
                            <td class="col2">
                                <?php 
$object = new City($db);
$catalogo = $object->getListCity();
$itemsSelect = array();
foreach ($catalogo as $item) {
    $itemsSelect[$item['id']] = $item['name'];
}
$id_city = '';
if ($action == 'EDIT' || $action == 'PREVIEW') {
    $id_city = $data['fk_id_city'];
}
Forms::printInput('SELECT', 'ID_CITY', $id_city, '', array(), $itemsSelect);
?>
                                
                            </td>
                        </tr>
                <tr>
                    <td style="vertical-align: top; padding-top: 9px;">

                    </td>

                    <td>
                        <?php 
if ($action == 'INSERT' || $action == 'EDIT') {
    ?>
                        <input name="BUTTON_ACTION" type="submit" value="<?php 
    echo $v_label_gral_form["BUTTON_SAVE"];
开发者ID:vicholuis,项目名称:proyectopruebalms,代码行数:31,代码来源:location.php

示例2: array

echo $action;
?>
" >

                <tr>
                    <td class="col1">
                        <?php 
Forms::printLabel($v_label["NAME_LBL"]);
?>

                    </td>
                    <td class="col2">                        
                        <?php 
$name = $action == 'EDIT' ? $data['name'] : '';
if ($action == 'EDIT' || $action == 'INSERT') {
    Forms::printInput('TEXT', 'NAME', $name, 'mini', array('REQUIRED' => $property["FORMS"]["VALIDATION_GENERIC"]["REQUIRED_VALUE"]));
} elseif ($action == 'PREVIEW') {
    echo $data['name'];
}
?>
                    </td>
                </tr>

                <tr>
                    <td style="vertical-align: top; padding-top: 9px;">

                    </td>

                    <td>
                        <?php 
if ($action == 'INSERT' || $action == 'EDIT') {
开发者ID:vicholuis,项目名称:proyectopruebalms,代码行数:31,代码来源:country.php

示例3: isset

                            </td>
                        </tr>                                                                                               
                          <tr>
                            <td class="col1">
                               <?php 
Forms::printLabel('Descripcion');
?>
                                
                            </td>
                            <td class="col2">
                                <?php 
$note = '';
if ($action == 'EDIT') {
    $note = isset($data['note']) ? $data['note'] : '';
}
Forms::printInput('TEXTAREA', 'note', $note, 'large', array(), $preview_flag);
?>
                                
                            </td>
                        </tr>
              </tbody>
         </table>   

        </td>
    </tr>
    <tr>
        <td style="vertical-align: top; padding-top: 10px;">
            &nbsp; &nbsp;
        </td>

        <td >
开发者ID:vicholuis,项目名称:proyectopruebalms,代码行数:31,代码来源:teacher_notes_register.php

示例4: array

                            </td>
                        </tr>
                        <tr>
                            <td class="col1">
                                 <?php 
Forms::printLabel($property["pages"]["security/new_user"]["R_PASSWORD_LBL"]);
?>
                                
                            </td>
                            <td class="col2">
                               <?php 
$val_pass = array();
if ($action == 'EDIT') {
    $val_pass = array('REQUIRED' => $property["FORMS"]["VALIDATION_GENERIC"]["REQUIRED_VALUE"], 'MINLENGTH' => array(5, $property["FORMS"]["VALIDATION_GENERIC"]["MIN_5_CHAR"]), 'EQUALTO' => array('#PASSWORD_1', $property["FORMS"]["VALIDATION_GENERIC"]["SAME_PASS"]));
}
Forms::printInput('PASSWORD', 'PASSWORD_2', '', '', $val_pass);
?>
                            </td>
                        </tr>
                        
                        
                        
                        <tr>
                            <td style="vertical-align: top; padding-top: 9px;">
                                
                            </td>
                          
                            <td>
                                  <input name="" type="submit" value="Guardar" class="button_form" />
                                  &nbsp; &nbsp;<input name="" type="reset" value="Limpiar" class="button_form close_dialog" />
                            </td>
开发者ID:vicholuis,项目名称:proyectopruebalms,代码行数:31,代码来源:my_account.php

示例5: SystemCatalog

?>

                    </td>
                    <td class="col2">                        
                        <?php 
$objectStatusSupervisor = new SystemCatalog($db);
$catalogoStatusSupervisor = $objectStatusSupervisor->getListSystemCatalog('STATUS_SUPERVISOR_ADMISSION_AREA');
$itemsSelectStatusSupervisor = array();
foreach ($catalogoStatusSupervisor as $item) {
    $itemsSelectStatusSupervisor[$item['pk_id_catalog']] = $item['description'];
}
$idStatusSupervisor = null;
if ($action == 'EDIT' || $action == 'PREVIEW') {
    $idStatusSupervisor = $data['status_supervisor_admission_area'];
}
Forms::printInput('SELECT', 'ID_STATUS_SUPERVISOR', $idStatusSupervisor, '', array(), $itemsSelectStatusSupervisor);
?>
                          
                    </td>
                </tr>                
                <tr>
                    <td style="vertical-align: top; padding-top: 9px;">

                    </td>

                    <td>
                        <?php 
if ($action == 'INSERT' || $action == 'EDIT') {
    ?>
                        <input name="BUTTON_ACTION" type="submit" value="<?php 
    echo $v_label_gral_form["BUTTON_SAVE"];
开发者ID:vicholuis,项目名称:proyectopruebalms,代码行数:31,代码来源:supervisor.php

示例6: array

                            </td>
                        </tr>
                         <tr>
                            <td class="col1">
                                <?php 
Forms::printLabel($property["pages"]["security/new_user"]["BIRTHDAY_LBL"]);
?>
                                
                            </td>
                            <td class="col2">
                                 <?php 
$birthday = '';
if ($action == 'EDIT' || $action == 'PREVIEW') {
    $birthday = $data['birthday'];
}
Forms::printInput('TEXT', 'BIRTHDAY', $birthday, 'datePicker', array(), array(), $preview_flag);
?>
                                
                            </td>
                        </tr>
                      <?php 
if ($action != 'PREVIEW') {
    ?>
                        
                        <tr>
                            <td style="vertical-align: top; padding-top: 9px;">
                                
                            </td>
                          
                            <td>
                                  <input name="" type="submit" value="Save" class="button_form" />
开发者ID:vicholuis,项目名称:proyectopruebalms,代码行数:31,代码来源:my_personal_data.php

示例7: array

    Forms::printInput('TEXT', 'tel_trab_contacto', $tel_trab_contacto, 'mini', array('REQUIRED' => $property["FORMS"]["VALIDATION_GENERIC"]["REQUIRED_VALUE"]));
} elseif ($action == 'PREVIEW') {
    echo $data['tel_trab_contacto'];
}
if ($action != 'PREVIEW') {
    ?>
 <span class="rojo">*</span><?php 
}
?>
                          </td>
                          <td>CELULAR:</td>
                          <td>
                           <?php 
$celular_contacto = $action == 'EDIT' ? $data['celular_contacto'] : '';
if ($action == 'EDIT' || $action == 'INSERT') {
    Forms::printInput('TEXT', 'celular_contacto', $celular_contacto, 'mini', array('REQUIRED' => $property["FORMS"]["VALIDATION_GENERIC"]["REQUIRED_VALUE"]));
} elseif ($action == 'PREVIEW') {
    echo $data['celular_contacto'];
}
if ($action != 'PREVIEW') {
    ?>
 <span class="rojo">*</span><?php 
}
?>
                          </td>
                         </TR>
                         <tr>
                          <td></td>
                          <td></td>
                          <td></td>
                          <td></td>
开发者ID:vicholuis,项目名称:proyectopruebalms,代码行数:31,代码来源:formulario.php

示例8: Country

?>
                                
                            </td>
                            <td class="col2">
                                <?php 
$object = new Country($db);
$catalogo = $object->getListCountry();
$itemsSelect = array();
foreach ($catalogo as $item) {
    $itemsSelect[$item['id']] = $item['name'];
}
$id_country = '';
if ($action == 'EDIT' || $action == 'PREVIEW') {
    $id_country = $data['fk_id_country'];
}
Forms::printInput('SELECT', 'ID_COUNTRY', $id_country, '', array(), $itemsSelect);
?>
                                
                            </td>
                        </tr>
                <tr>
                    <td style="vertical-align: top; padding-top: 9px;">

                    </td>

                    <td>
                        <?php 
if ($action == 'INSERT' || $action == 'EDIT') {
    ?>
                        <input name="BUTTON_ACTION" type="submit" value="<?php 
    echo $v_label_gral_form["BUTTON_SAVE"];
开发者ID:vicholuis,项目名称:proyectopruebalms,代码行数:31,代码来源:city.php

示例9: array

                    <table class="form">
                         <tr>
                            <td class="col1">
                            <?php 
Forms::printLabel('Periodos');
?>
                                
                            </td>
                            <td class="col2">
                                <?php 
$itemsSelect = array();
foreach ($listPeriod as $item) {
    $itemsSelect[$item['pk_id_period']] = $item['period'];
}
$valData = $period;
Forms::printInput('SELECT', 'PERIODO', $valData, '', array(), $itemsSelect);
?>
                                
                            </td>
                            <td class="col3">&nbsp;&nbsp;</td>
                          
                        </tr>
                    </table>
                </form>
                      
                   
            <?php 
if ($_SESSION["pk_id_role"] == ROLE_ROOT) {
    ?>
            <a  href="javascript:void(0);" class=" modal_ajax_form button_form" 
                v_title="Nuevo Curso"
开发者ID:vicholuis,项目名称:proyectopruebalms,代码行数:31,代码来源:course_admin.php

示例10: array

        $itemsSelectactivity = array();
        $list_status = $status_attendance->getListAttendanceStatus();
        foreach ($list_status as $item_status) {
            $itemsSelectactivity[$item_status['pk_id_attendance_status']] = $item_status['attendance_status'];
        }
        $pk_id_attendance_status = '';
        if ($action == 'EDIT') {
            $pk_id_attendance_status = $item['pk_id_attendance_status'];
        }
        Forms::printInput('SELECT', 'pk_id_attendance_status[]', $pk_id_attendance_status, '', array(), $itemsSelectactivity);
        ?>
                    </td> 
                    <td width="100px">
                    <?php 
        $valData = $action == 'EDIT' ? $item['observation'] : '';
        Forms::printInput('TEXTAREA', 'observation[]', $valData, null, array(), $preview_flag);
        ?>
                    </td>                                                                                                                                                                                                                                                                                                                                                                             
                 </tr>									 
               <?php 
    }
}
?>
 
              </tbody>
         </table>   

        </td>
    </tr>
    <tr>
        <td style="vertical-align: top; padding-top: 10px;">
开发者ID:vicholuis,项目名称:proyectopruebalms,代码行数:31,代码来源:take_care_register.php

示例11: array

    Forms::printInput('SELECT', 'status_admission_process', $STATUS_ADMISION_PROCESS, '', array(), $itemsSelect);
} else {
    echo "<span style=\"color:{$colorFontStatus};\" >" . $statusDesc . "</span>";
}
?>


        </td>
        <td  style="vertical-align:middle;font-size: 11px; min-width: 150px;padding: 3px; border-left: solid 1px <?php 
echo $color;
?>
;   ">

            <?php 
if ($active == 1) {
    Forms::printInput('TEXTAREA', 'observation_status', $observationStatus, 'medium', array('REQUIRED' => $property["FORMS"]["VALIDATION_GENERIC"]["REQUIRED_VALUE"]), array(), 'width:300px;');
    ?>
            
            <input type="hidden" name="fk_id_membership_app_form" value="<?php 
    echo $id_form;
    ?>
" >
            <input type="hidden" name="ACTION" value="INSERT" >
            <input type="hidden" name="fk_id_admission_area" value="<?php 
    echo $pk_id_area;
    ?>
"  >
            <input type="hidden" name="fk_id_supervisor_admission_area" value="<?php 
    echo $pk_id_supervisor_admission_area;
    ?>
" >
开发者ID:vicholuis,项目名称:proyectopruebalms,代码行数:31,代码来源:admision_aproval_area_form.php

示例12: array

    }
    ?>
                    </td>
                </tr>
                   <tr>
                    <td class="col1">
                        <?php 
    Forms::printLabel('Dato 5:');
    ?>

                    </td>
                    <td class="col2">                        
                        <?php 
    $data_5 = $action == 'EDIT' ? $data_main_course['data_5'] : '';
    if ($action == 'EDIT' || $action == 'INSERT') {
        Forms::printInput('TEXT', 'data_5', $data_5, 'mini', array());
    } elseif ($action == 'PREVIEW') {
        echo $data_main_course['data_5'];
    }
    ?>
                    </td>
                </tr>                                                         
                <tr>
                    <td style="vertical-align: top; padding-top: 9px;">

                    </td>

                    <td>
                        <?php 
    if ($action == 'INSERT' || $action == 'EDIT') {
        ?>
开发者ID:vicholuis,项目名称:proyectopruebalms,代码行数:31,代码来源:main_course.php

示例13: array

                         </td>
                     </tr>
                     
                    
                   
                       <tr>
                         <td class="col1">
                            <?php 
 Forms::printLabel('Descripcion');
 ?>
                             
                         </td>
                         <td class="col2">
                             <?php 
 $valData = '';
 Forms::printInput('TEXTAREA', 'consultation', $valData, 'large', array(), $preview_flag);
 ?>
                             
                         </td>
                     </tr>
                      
                     
                    
                     <tr>
                         <td style="vertical-align: top; padding-top: 9px;">
                             
                         </td>
                       
                         <td>
                               <input name="" type="submit" value="Guardar" class="button_form" />
                               &nbsp; &nbsp;<input name="" type="reset" value="Cancelar" class="button_form close_dialog" />
开发者ID:vicholuis,项目名称:proyectopruebalms,代码行数:31,代码来源:course_request.php

示例14: Kinship

                        <tr>
                            <td class="col1">
                               <?php 
Forms::printLabel('Parentesco');
?>
                                
                            </td>
                            <td class="col2">
                                <?php 
$kinship = new Kinship($db);
$catalogo1 = $kinship->getListKinship();
$itemsSelect = array();
foreach ($catalogo1 as $item) {
    $itemsSelect[$item['id']] = $item['name'];
}
Forms::printInput('SELECT', 'kinship', null, 'combobox', array(), $itemsSelect);
?>
                                                                
                            </td>
                        </tr>
                        <tr>
                            <td style="vertical-align: top; padding-top: 9px;">
                                
                            </td>
                          
                            <td>
                                 <input id="boton_add" name="boton_add" type="submit" value="Agregar" class="button_form" />
                                   
                            </td>
                        </tr>
                          
开发者ID:vicholuis,项目名称:proyectopruebalms,代码行数:30,代码来源:student_family_form.php

示例15: array

Forms::printLabel('Persona');
?>
                                
                            </td>
                            <td class="col2">
                                
                                <?php 
$itemsSelect = array();
foreach ($listPerson as $person) {
    $itemsSelect[$person['pk_id_person']] = $person['name'] . ' ' . $person['last_name'];
}
$pk_id_person = 0;
if (in_array($action, array('PREVIEW', 'EDIT'))) {
    $pk_id_person = $data['pk_id_person'];
}
Forms::printInput('SELECT', 'PK_ID_PERSON', $pk_id_person, 'combobox', array('REQUIRED' => $property["FORMS"]["VALIDATION_GENERIC"]["REQUIRED_VALUE"]), $itemsSelect);
?>
                                
                                
                              
                            </td>
                        </tr>
                             </table>
                        </div>
                        <?php 
if (in_array($action, array('INSERT', 'EDIT'))) {
    ?>
                       <table class="form">
                        <tr>
                            <td style="vertical-align: top; padding-top: 9px;">
                                
开发者ID:vicholuis,项目名称:proyectopruebalms,代码行数:30,代码来源:user.php


注:本文中的Forms::printInput方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。