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


PHP HTML::makeInput方法代码示例

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


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

示例1: render

 public function render()
 {
     $attributes = array('name' => $this->fieldname, 'id' => $this->field_id, 'class' => 'datepicker', 'tabindex' => $this->tabindex, 'value' => HTML::convertSpecialCharacters($this->field_data), 'data-value' => HTML::convertSpecialCharacters($this->field_data));
     $html = "<span class='ss-icon'>date</span>";
     $html .= HTML::makeInput('text', $attributes, $this->is_required);
     return $html;
 }
开发者ID:nob,项目名称:joi,代码行数:7,代码来源:ft.date.php

示例2: render

 public function render()
 {
     if (is_array($this->field_data)) {
         $this->field_data = implode(", ", $this->field_data);
     }
     $attributes = array('name' => $this->fieldname, 'id' => $this->field_id, 'tabindex' => $this->tabindex, 'value' => $this->field_data);
     return HTML::makeInput('text', $attributes, $this->is_required);
 }
开发者ID:nob,项目名称:joi,代码行数:8,代码来源:ft.tags.php

示例3: render

 public function render()
 {
     $attributes = array('name' => $this->fieldname, 'id' => $this->field_id, 'class' => 'checkbox', 'tabindex' => $this->tabindex, 'value' => '1');
     if ($this->field_data) {
         $attributes['checked'] = 'checked';
     }
     return HTML::makeInput('hidden', array('name' => $this->fieldname, 'value' => false)) . HTML::makeInput('checkbox', $attributes, $this->is_required);
 }
开发者ID:andorpandor,项目名称:git-deploy.eu2.frbit.com-yr-prototype,代码行数:8,代码来源:ft.checkbox.php

示例4: render

 public function render()
 {
     $attributes = array('name' => $this->fieldname, 'id' => $this->field_id, 'class' => 'timepicker', 'tabindex' => $this->tabindex, 'value' => HTML::convertSpecialCharacters($this->field_data));
     $html = '<div class="field">';
     $html .= "<span class='ss-icon'>clock</span>";
     $html .= "<div class='bootstrap-timepicker'>";
     $html .= HTML::makeInput('text', $attributes, $this->is_required);
     $html .= "</div>";
     $html .= "</div>";
     return $html;
 }
开发者ID:andorpandor,项目名称:git-deploy.eu2.frbit.com-yr-prototype,代码行数:11,代码来源:ft.time.php

示例5: render

 public function render()
 {
     $options = array_get($this->field_config, 'options', array());
     $html = '<input type="hidden" name="' . $this->fieldname . '" value="false" />';
     foreach ($options as $key => $option) {
         $attributes = array('name' => $this->fieldname . '[]', 'id' => $this->field_id . '_' . $key, 'class' => 'checkbox', 'tabindex' => $this->tabindex, 'value' => $key, 'checked' => '');
         if ($this->field_data && in_array($key, Helper::ensureArray($this->field_data))) {
             $attributes['checked'] = 'checked';
         }
         $html .= '<div class="checkbox-block">';
         $html .= HTML::makeInput('checkbox', $attributes, $this->is_required);
         $html .= '<label for="' . $this->field_id . '_' . $key . '">' . $option . '</label>';
         $html .= '</div>';
     }
     return $html;
 }
开发者ID:andorpandor,项目名称:git-deploy.eu2.frbit.com-yr-prototype,代码行数:16,代码来源:ft.checkboxes.php

示例6: render

 public function render()
 {
     $attributes = array('name' => $this->fieldname, 'id' => $this->field_id, 'class' => 'multidate', 'tabindex' => $this->tabindex, 'value' => HTML::convertSpecialCharacters($this->field_data), 'data-value' => HTML::convertSpecialCharacters($this->field_data));
     $options['mode'] = array_get($this->field_config, 'mode', 'dropdown');
     /*
      *  Set up the dropdown Multidate field
      */
     if ($options['mode'] == 'dropdown') {
         $dates = str_replace(',', '","', $this->field_data);
         $html = '<div class="field">';
         $html .= "<span class='ss-icon'>date</span>";
         $html .= HTML::makeInput('text', $attributes, $this->is_required);
         $html .= '</div>';
         $html .= '<script>
               var dates = ["' . $dates . '"];
               $(document).ready(function(){
                 $("#' . $this->field_id . '").datepicker({multidate:true});
                 $("#' . $this->field_id . '").on("changeDate", function(e){
                   $(this).attr("size", $(this).val().length);
                 });
               });
             </script>';
         /*
          *  Set up the inline Multidate field
          */
     } elseif ($options['mode'] == 'inline') {
         // Hide the input field
         $attributes['class'] .= ' hidden';
         $dates = str_replace(',', '","', $this->field_data);
         $html = '<div class="field">';
         $html .= HTML::makeInput('text', $attributes, $this->is_required);
         $html .= '<div class="well" id="multidate-' . $this->field_id . '"></div>';
         $html .= '</div>';
         $html .= '<script>
               var dates = ["' . $dates . '"];
               $(document).ready(function(){
                 $("#multidate-' . $this->field_id . '").datepicker({multidate:true});
                 $("#multidate-' . $this->field_id . '").datepicker("setDates",dates);
                 $("#multidate-' . $this->field_id . '").on("changeDate", function (e){
                   $("input#' . $this->field_id . '").val($("#multidate-' . $this->field_id . '").datepicker("getFormattedDate"));
                 });
               });
             </script>';
     }
     return $html;
 }
开发者ID:Bferreira5,项目名称:Theme-Example,代码行数:46,代码来源:ft.multidate.php

示例7: render

 public function render()
 {
     $html = '';
     $options = $this->field_config['options'];
     $is_indexed = array_values($options) === $options;
     $i = 1;
     foreach ($this->field_config['options'] as $key => $option) {
         // Allow setting custom values and labels
         $value = $is_indexed ? $option : $key;
         $current_selection = $this->field_data === $value;
         $html .= "<div class='radio-block'>";
         $attributes = array('name' => $this->fieldname, 'tabindex' => $this->tabindex, 'class' => 'radio', 'id' => $this->field_id . '-radio-' . $i, 'value' => $value);
         if ($current_selection) {
             $attributes['checked'] = 'checked';
         }
         $html .= HTML::makeInput('radio', $attributes);
         $html .= "<label class='radio-label' for='{$this->field_id}-radio-{$i}'>{$option}</label>";
         $html .= "</div>";
         $i++;
     }
     return $html;
 }
开发者ID:andorpandor,项目名称:git-deploy.eu2.frbit.com-yr-prototype,代码行数:22,代码来源:ft.radio.php

示例8: form

 public function form()
 {
     $id = $this->fetchParam('id', md5(microtime()), null, FALSE, FALSE);
     $attributes = array('name' => $this->fetchParam('name', 'Multidate', null, FALSE, FALSE), 'id' => $id, 'class' => 'multidate', 'value' => $this->fetchParam('value', '', null, FALSE, FALSE), 'data-value' => $this->fetchParam('value', '', null, FALSE, FALSE));
     // Hide the input field
     $attributes['class'] .= ' hidden';
     $dates = str_replace(',', '","', $attributes['value']);
     $html = '<div class="field">';
     $html .= HTML::makeInput('text', $attributes);
     $html .= '<div class="" id="multidate-' . $attributes['id'] . '"></div>';
     $html .= '</div>';
     $html .= '<script>
               var dates = ["' . $attributes['value'] . '"];
               $(document).ready(function(){
                 $("#multidate-' . $attributes['id'] . '").datepicker({multidate:true});
                 $("#multidate-' . $attributes['id'] . '").datepicker("setDates",dates);
                 $("#multidate-' . $attributes['id'] . '").on("changeDate", function (e){
                   $("input#' . $attributes['id'] . '").val($("#multidate-' . $attributes['id'] . '").datepicker("getFormattedDate"));
                 });
               });
             </script>';
     return $html;
 }
开发者ID:Bferreira5,项目名称:Theme-Example,代码行数:23,代码来源:pi.multidate.php

示例9: array

    echo '<h2 align="center">Actualizaci&oacute;n del usuario</h2>';
} else {
    echo '<h2 align="center">Registro de nuevo usuario</h2>';
}
$objHTMl->startForm('form_usrs', '?mod=formUsr' . (isset($_GET['id']) ? '&id=' . $_GET['id'] : ''), 'POST');
$objHTMl->startFieldset();
if (isset($_GET['id'])) {
    $objHTMl->inputHidden('actualizar', 1);
} else {
    $objHTMl->inputHidden('guardar', 1);
}
$objHTMl->inputText('Nombre:', 'nombre', $objUsuario->nombre, array('class' => 'validate[required]'));
$objHTMl->inputText('Apellido Paterno:', 'apellidoPaterno', $objUsuario->apellidoPaterno, array('class' => 'validate[required]'));
$objHTMl->inputText('Apellido Materno:', 'apellidoMaterno', $objUsuario->apellidoMaterno, array('class' => 'validate[required]'));
echo '<br>';
$objSelects->selectEstado('edoUsuario', $objUsuario->idCatEstado ? $objUsuario->idCatEstado : $_SESSION[EDO_USR_SESSION]);
$objSelects->selectJurisdiccion('jurisUsuario', $objUsuario->idCatEstado ? $objUsuario->idCatEstado : $_SESSION[EDO_USR_SESSION], $objUsuario->idCatJurisdiccion);
echo '<br>';
$objHTMl->inputText('Nombre de usuario:', 'usuario', $objUsuario->nombreUsuario, array('class' => 'validate[required,minSize[6]]', 'data-mayus' => 'false'));
echo $objHTMl->makeInput('password', 'Contraseña:', 'password', $objUsuario->password, array('class' => 'validate[required,minSize[6]]', 'data-mayus' => 'false'));
echo $objHTMl->makeInput('password', 'Confirmar Contraseña:', 'password2', $objUsuario->password, array('class' => 'validate[required,minSize[6]]', 'data-mayus' => 'false'));
echo '<br>';
$objSelects->SelectCatalogo('Tipo:', 'tipoUsuario', 'catTipoUsuario', $objUsuario->idCatTipoUsuario, array('class' => 'validate[required]'));
$objHTMl->inputText('Correo electrónico:', 'correo', $objUsuario->correo, array('class' => 'validate[required,custom[email]]', 'data-mayus' => 'false'));
$objHTMl->inputCheckbox('Habilitado', 'habilitado', '1', is_null($objUsuario->habilitado) ? 1 : $objUsuario->habilitado);
$objHTMl->endFieldset();
echo '<div align="center">';
$objHTMl->inputSubmit('btnGuardar', 'Guardar');
$objHTMl->inputButton('btnCancelar', 'Cancelar');
echo '</div>';
$objHTMl->endFormOnly();
开发者ID:p4scu41,项目名称:sail,代码行数:31,代码来源:formUsuario.php

示例10: render

 public function render()
 {
     $type = array_get($this->field_config, 'input_type', 'text');
     $attributes = array('name' => $this->fieldname, 'id' => $this->field_id, 'tabindex' => $this->tabindex, 'value' => HTML::convertSpecialCharacters($this->field_data), 'placeholder' => array_get($this->field_config, 'placeholder'));
     return HTML::makeInput($type, $attributes, $this->is_required);
 }
开发者ID:andorpandor,项目名称:git-deploy.eu2.frbit.com-yr-prototype,代码行数:6,代码来源:ft.text.php

示例11: array

$objHTML->inputText('Fecha Recepción: ', 'fecha_recepcion');
echo '<br>';
$objHTML->inputCheckbox('Rechazo Muestra', 'rechazo_muestra', 1);
echo '<br>';
$objSelects->SelectCatalogo('Criterio Rechazo', 'criterio_rechazo', 'catMotivoRechazo');
echo '<br>';
$objHTML->inputText('Otro Criterio de Rechazo', 'otro_criterio_rechazo', '', array('size' => 40));
echo '<br><br><div align="center">';
$objHTML->inputButton('btnRecibeMuestra', 'Procesar Muestra', array('onClick' => 'procesarMuestra()'));
echo '</div>';
$objHTML->endFormOnly();
echo '</div>';
$objHTML->startForm('form_busca', '?mod=recepBus', 'POST');
$objHTML->startFieldset();
$objSelects->selectEstado('edoCaso', isset($_POST['edoCaso']) ? $_POST['edoCaso'] : $_SESSION[EDO_USR_SESSION], $_SESSION[EDO_USR_SESSION] == 0 ? array() : array('disabled' => 'disabled'));
echo $objHTML->makeInput('number', 'Folio Solicitud: ', 'folio_solicitud', $_POST['folio_solicitud'], array('size' => 10));
$objHTML->inputText('Folio Laboratorio: ', 'folio_laboratorio', $_POST['folio_laboratorio']);
$objHTML->endFieldset();
$objHTML->endForm('buscar', 'Buscar', 'limpiar', 'Limpiar');
if (isset($_POST['buscar'])) {
    $busqueda = new BusquedaEstudios();
    $busqueda->idCatEstado = $_POST['edoCaso'];
    $busqueda->folioLaboratorio = $_POST['folio_laboratorio'];
    $busqueda->folioSolicitud = $_POST['folio_solicitud'];
    $busqueda->buscar();
    if (!empty($busqueda->resultado)) {
        echo '<br><br><div class="datagrid">
        <table>
        <thead>
                <tr align="center">
                    <th>Folio Solicitud</th>	
开发者ID:p4scu41,项目名称:sail,代码行数:31,代码来源:recepcionMuestraBuscar.php

示例12: contactForm

 public static function contactForm($field_callback, $before_callback = null, $after_callback = null, $return = false)
 {
     $_this = self::getInstance();
     if (!isset($_this->features['contact-form'])) {
         return;
     }
     $options = $_this->theme_options->child(array($_this->features['contact-form']['group'], $_this->features['contact-form']['name']));
     $labels = array('name' => __('Name', $_this->domain), 'email' => __('E-mail', $_this->domain), 'website' => __('Website', $_this->domain), 'phone' => __('Phone number', $_this->domain), 'subject' => __('Subject', $_this->domain), 'message' => __('Message', $_this->domain), 'captcha' => __('Captcha', $_this->domain));
     $requires = array('name' => true, 'email' => true, 'website' => false, 'phone' => false, 'subject' => false, 'message' => true, 'captcha' => true);
     $output = HTML::form()->action(admin_url(self::WP_AJAX_URI))->method('post')->add(HTML::makeInput('hidden', 'action', $_this->features['contact-form']['action']));
     if ($_this->features['contact-form']['form_id']) {
         $output->id($_this->features['contact-form']['form_id']);
     }
     if ($_this->features['contact-form']['form_class']) {
         $output->class($_this->features['contact-form']['form_class']);
     }
     if ($before_callback !== null) {
         $output->add(is_callable($before_callback) ? call_user_func($before_callback) : (string) $before_callback);
     }
     if (is_callable($field_callback)) {
         foreach ($options->value('fields') as $field) {
             $html = call_user_func($field_callback, $field, $requires[$field], $labels[$field]);
             if ($field == 'captcha' && function_exists('cptch_display_captcha_custom')) {
                 $captcha = HTML::makeInput('hidden', 'cntctfrm_contact_action', 'true')->html() . preg_replace('/ style="[^"]*"/i', '', cptch_display_captcha_custom());
                 $html = strpos($html, '%s') !== false ? sprintf($html, $captcha) : $captcha;
             }
             $output->add($html);
         }
     }
     if ($after_callback !== null) {
         $output->add(is_callable($after_callback) ? call_user_func($after_callback) : (string) $after_callback);
     }
     if ($return) {
         return $output->html();
     } else {
         echo $output->html();
     }
 }
开发者ID:xpander54,项目名称:wp-drz,代码行数:38,代码来源:theme.php

示例13: render

 public function render()
 {
     $attributes = array('name' => $this->fieldname, 'id' => $this->field_id, 'tabindex' => $this->tabindex, 'value' => '', 'autocomplete' => 'off', 'data-bind' => "css: {required: showChangePassword}");
     return HTML::makeInput('password', $attributes, $this->is_required);
 }
开发者ID:andorpandor,项目名称:git-deploy.eu2.frbit.com-yr-prototype,代码行数:5,代码来源:ft.password.php

示例14: render

 public function render()
 {
     $attributes = array('name' => $this->fieldname, 'id' => $this->field_id, 'tabindex' => $this->tabindex, 'value' => HTML::convertSpecialCharacters($this->field_data));
     return HTML::makeInput('text', $attributes, $this->is_required);
 }
开发者ID:nob,项目名称:joi,代码行数:5,代码来源:ft.text.php

示例15: render

 public function render()
 {
     $attributes = array('name' => $this->fieldname, 'id' => $this->field_id, 'class' => 'checkbox', 'tabindex' => $this->tabindex, 'value' => '1');
     return HTML::makeInput('checkbox', $attributes, $this->is_required);
 }
开发者ID:nob,项目名称:joi,代码行数:5,代码来源:ft.checkbox.php


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