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


PHP HTML::select方法代码示例

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


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

示例1: addForm

 public function addForm()
 {
     $themes = glob(DIR_THEME . '/*');
     $themeNames = [];
     foreach ($themes as $theme) {
         $themeData = parse_json_file($theme . '/composer.json');
         $theme = str_replace(DIR_THEME . '/', '', $theme);
         $themeNames[$theme] = $themeData['extra']['name'];
     }
     $data = [];
     $data['content'] = view('sites/form', ['title' => t('new_site'), 'name' => '', 'locales' => substr(app('request')->getPreferredLanguage(app('translator')->installedPackages), 0, 2), 'domains' => app('request')->server['HTTP_HOST'], 'use_alias_as_path' => 0, 'maintenance_mode' => 0, 'need_cache' => 0, 'template' => HTML::select('theme', '', $themeNames, 'class="form-control"'), 'site' => 'new', 'sites' => str_replace(DIR_SITE, '', glob(DIR_SITE . 's*'))]);
     $data['sidebar_right'] = HTML::saveButton() . HTML::mastercodeInput();
     $data['sidebar_left'] = '';
     $data['form_url'] = 'admin/sites/add';
     $data['meta_title'] = t('site_creation');
     $data['breadcrumbs'] = [['url' => '?route=config', 'title' => t('settings')], ['url' => '?route=config/sites', 'title' => t('site_list')], ['title' => t('site_creation')]];
     $d = document($data);
     return $d;
 }
开发者ID:sydes,项目名称:sydes,代码行数:19,代码来源:index.php

示例2: array

</td>
</tr>
<tr>
    <td class="align-right">Timezone</td>
    <td><?php 
echo HTML::input('message->timezone', array('class' => 'input-field'));
?>
 <?php 
echo HTML::validation_message('message->timezone');
?>
</td>
</tr>
<tr>
    <td class="align-right">Preferred meeting</td>
    <td><?php 
echo HTML::select('message->meeting', array('No preference / Not sure', 'Monday 11am Central (GMT-6)', 'Monday 7pm Central (GMT-6)', 'Thursday 9am GMT', 'All meetings'), $message->meeting, array('class' => 'input-field'));
?>
 <?php 
echo HTML::validation_message('message->meeting');
?>
</td>
</tr>
-->
<tr valign="top">
    <td class="align-right">Why you'd like to join<br/>and how you found us</td>
    <td><?php 
echo HTML::textarea('message->content', array('cols' => 40, 'rows' => 7));
?>
</td>
</tr>
<tr>
开发者ID:hutchike,项目名称:plumline,代码行数:31,代码来源:form.php

示例3: run


//.........这里部分代码省略.........
                     break;
                 case 'editbox':
                     $input['type'] = 'text';
                     if (empty($input['value']) and $s = $request->getArg($input['name'])) {
                         $input['value'] = $s;
                     }
                     if ($nobr) {
                         $form->pushContent(HTML::input($input), $nbsp, $text, $nbsp);
                     } else {
                         $form->pushContent(HTML::div(array('class' => $class), HTML::input($input), $text));
                     }
                     break;
                 case 'combobox':
                     // TODO: moACDROPDOWN
                     $values = $input['value'];
                     unset($input['value']);
                     $input['type'] = 'text';
                     if (is_string($values)) {
                         $values = explode(",", $values);
                     }
                     if (empty($values)) {
                         if ($input['method']) {
                             $input['value'] = xmlrequest($input['method']);
                         } elseif ($s = $request->getArg($input['name'])) {
                             $input['value'] = $s;
                         }
                     } elseif (is_array($values)) {
                         $name = $input['name'];
                         unset($input['name']);
                         foreach ($values as $val) {
                             $input = array('value' => $val);
                             if ($request->getArg($name)) {
                                 if ($request->getArg($name) == $val) {
                                     $input['selected'] = 'selected';
                                 } else {
                                     unset($input['selected']);
                                 }
                             }
                             //$select->pushContent(HTML::option($input, $val));
                         }
                     }
                     if ($nobr) {
                         $form->pushContent(HTML::input($input), $nbsp, $text, $nbsp);
                     } else {
                         $form->pushContent(HTML::div(array('class' => $class), HTML::input($input), $text));
                     }
                     break;
                 case 'pulldown':
                     $values = $input['value'];
                     unset($input['value']);
                     unset($input['type']);
                     $select = HTML::select($input);
                     if (is_string($values)) {
                         $values = explode(",", $values);
                     }
                     if (empty($values) and $s = $request->getArg($input['name'])) {
                         $select->pushContent(HTML::option(array('value' => $s), $s));
                     } elseif (is_array($values)) {
                         $name = $input['name'];
                         unset($input['name']);
                         foreach ($values as $val) {
                             $input = array('value' => $val);
                             if ($request->getArg($name)) {
                                 if ($request->getArg($name) == $val) {
                                     $input['selected'] = 'selected';
                                 } else {
开发者ID:pombredanne,项目名称:tuleap,代码行数:67,代码来源:WikiFormRich.php

示例4: User

        <input type="hidden" name="action" id="action" value="">
        <!-- Filters -->
        <div class="row filters">
            <!-- Search -->
            <div class="col-sm-3 col-xs-6 filter">
                <?php 
echo HTML::search();
?>
            </div>
            <!-- Estado -->
            <div class="col-sm-3 col-xs-6 col-md-2 filter">
                <?php 
$userNull = new User();
?>
                <?php 
echo HTML::select("statusId", $userNull->statuses, $_REQUEST["estadoId"], array("class" => "change-submit"), array("id" => "-1", "display" => "- Estado -"));
?>
            </div>
        </div>
        <!-- Results -->
        <?php 
if (count($results)) {
    ?>
            <div class="table-responsive">
                <table class="table table-striped">
                    <thead>
                        <tr>
                            <th><?php 
    echo Html::sortableLink("id", "Id");
    ?>
</th>
开发者ID:flafuente,项目名称:parrillas,代码行数:31,代码来源:list.view.php

示例5: usuarioEdit

 public function usuarioEdit($usuario_id, $usuario_tipo)
 {
     $getDataDB = new DB();
     $login = new ModelLogin();
     $image = new ModelImage();
     switch ($usuario_tipo) {
         case "musico":
             if (isset($_POST['form_edit_account'])) {
                 if (empty($_POST['usuario_nombre'])) {
                     echo MESSAGE_FORM_NOMBRE_EMPTY;
                     echo HTML::br(2);
                     echo "<a href='javascript:history.back()'> Volver Atrás</a>";
                 } elseif (!preg_match('/^[a-z\\d]{2,64}$/i', $_POST['usuario_telefono'])) {
                     echo MESSAGE_FORM_TELEFONO_EMPTY;
                     echo HTML::br(2);
                     echo "<a href='javascript:history.back()'> Volver Atrás</a>";
                 } elseif (strlen($_POST['usuario_telefono']) != 9) {
                     echo MESSAGE_FORM_TELEFONO_INVALID;
                     echo HTML::br(2);
                     echo "<a href='javascript:history.back()'> Volver Atrás</a>";
                 } elseif ($_POST['usuario_idioma'] == "") {
                     $_POST['usuario_idioma'] == $login->getUserDataCampo($usuario_id, "usuario_idioma");
                 } elseif ($_POST['usuario_idioma'] != "ca" && $_POST['usuario_idioma'] != "en" && $_POST['usuario_idioma'] != "es") {
                     echo MESSAGE_FORM_IDIOMA;
                     echo HTML::br(2);
                     echo "<a href='javascript:history.back()'> Volver Atrás</a>";
                 } elseif ($_POST['usuario_idioma'] != "ca" && $_POST['usuario_idioma'] != "en" && $_POST['usuario_idioma'] != "es") {
                     echo MESSAGE_FORM_IDIOMA;
                     echo HTML::br(2);
                     echo "<a href='javascript:history.back()'> Volver Atrás</a>";
                 } else {
                     $query_mod_account = DB::connect()->prepare("UPDATE  `uqfhhbcn_whymusic`.`wm_usuarios` SET  `usuario_nombre` =  :usuario_nombre,\n                `usuario_telefono` =  :usuario_telefono,\n                `usuario_idioma` = :usuario_idioma,\n                `usuario_descripcion` = :usuario_descripcion,\n                `estilo_id` = :estilo_id WHERE  `wm_usuarios`.`usuario_id` = :usuario_id;");
                     $query_mod_account->bindValue(':usuario_id', $usuario_id, PDO::PARAM_STR);
                     $query_mod_account->bindValue(':usuario_nombre', $_POST['usuario_nombre'], PDO::PARAM_STR);
                     $query_mod_account->bindValue(':usuario_idioma', $_POST['usuario_idioma'], PDO::PARAM_STR);
                     $query_mod_account->bindValue(':usuario_telefono', $_POST['usuario_telefono'], PDO::PARAM_STR);
                     $query_mod_account->bindValue(':usuario_descripcion', $_POST['usuario_descripcion'], PDO::PARAM_STR);
                     $query_mod_account->bindValue(':estilo_id', $_POST['estilo_nombre'], PDO::PARAM_STR);
                     $query_mod_account->execute();
                     if ($query_mod_account) {
                         echo MESSAGE_CORRECT_MOD;
                         if ($login->getTypeOfUser() == "administrador") {
                             ROUTER::redirect_to_action("admin/admin", 2);
                         } else {
                             ROUTER::redirect_to_action("account/edit", 2);
                         }
                     } else {
                         echo MESSAGE_ERROR_SQL;
                         echo HTML::br(2);
                         echo "<a href='javascript:history.back()'> Volver Atrás</a>";
                     }
                 }
             } else {
                 echo HTML::title("h3", "Editar foto de perfil");
                 echo HTML::open_form(ROUTER::create_action_url("account/edit"), "POST", "fileToUpload", array("enctype" => "multipart/form-data"));
                 echo HTML::label("fileToUpload", "Sube tu foto");
                 echo HTML::input("file", "fileToUpload", null, array("id" => "fileToUpload"));
                 echo HTML::br(1);
                 echo HTML::input("submit", "usuario_foto", "Subir foto");
                 echo HTML::close_form();
                 echo HTML::open_form(ROUTER::create_action_url('account/edit'), "POST", "form_edit_account");
                 /*Guarrada provisional*/
                 $_SESSION['usuario_id_edit'] = $login->getUserDataCampo($usuario_id, "usuario_id");
                 $_SESSION['usuario_tipo_edit'] = $login->getUserDataCampo($usuario_id, "usuario_tipo");
                 /*Fin de la gurrada*/
                 echo HTML::title("h3", "Editar foto de perfil");
                 echo HTML::open_form(ROUTER::create_action_url("account/edit"), "POST", "usuario_foto", array("enctype" => "multipart/form-data"));
                 echo HTML::label("usuario_foto", "Sube tu foto");
                 echo HTML::input("file", "fileToUpload", null, array("id" => "fileToUpload"));
                 echo HTML::input("submit", "usuario_foto", "Subir foto");
                 echo HTML::close_form();
                 echo HTML::label("usuario_nombre", WORDING_NOMBRE_MUSICO);
                 echo HTML::input("text", "usuario_nombre", $login->getUserDataCampo($usuario_id, "usuario_nombre"), array("placeholder" => "Su nombre"));
                 echo HTML::br(2);
                 echo HTML::label("usuario_idioma", WORDING_IDIOMA);
                 echo HTML::select("usuario_idioma", array("Idioma por defecto" => $login->getUserDataCampo($usuario_id, 'usuario_idioma'), "Inglés" => "en", "Castellano" => "es", "Catalán" => "ca"));
                 echo HTML::br(2);
                 echo HTML::label("usuario_telefono", WORDING_TELEFON);
                 echo HTML::input("text", "usuario_telefono", $login->getUserDataCampo($usuario_id, "usuario_telefono"), array("placeholder" => "9XXXXXXXX"));
                 echo HTML::br(2);
                 echo HTML::label("usuario_descripcion", "Descripción grupo:");
                 echo HTML::textArea("4", "50", $login->getUserDataCampo($usuario_id, "usuario_descripcion"), "usuario_descripcion");
                 echo HTML::br(2);
                 echo HTML::label("estilo_nombre", "Estilo de música:");
                 echo HTML::selectArray("estilo_nombre", $getDataDB->getFieldSQL("wm_estilo", "estilo_nombre , estilo_id", ""));
                 echo HTML::br(2);
                 echo HTML::button_HTML5("submit", BUTTON_MOD_DATA, "form_edit_account");
                 echo HTML::close_form();
             }
             break;
         case "local":
             if (isset($_POST['form_edit_account'])) {
                 if (empty($_POST['usuario_nombre'])) {
                     echo MESSAGE_FORM_NOMBRE_EMPTY;
                     echo HTML::br(2);
                     echo "<a href='javascript:history.back()'> Volver Atrás</a>";
                 } elseif (!preg_match('/^[a-z\\d]{2,64}$/i', $_POST['usuario_telefono'])) {
                     echo MESSAGE_FORM_TELEFONO_EMPTY;
                     echo HTML::br(2);
                     echo "<a href='javascript:history.back()'> Volver Atrás</a>";
//.........这里部分代码省略.........
开发者ID:neferketer,项目名称:whymusic.es,代码行数:101,代码来源:ModelAccount.php

示例6: VALUES

     if (isset($select1)) {
         array_push($select, $select1);
     }
     if (isset($select2)) {
         array_push($select, $select2);
     }
     if (isset($select3)) {
         array_push($select, $select3);
     }
     if (isset($select4)) {
         array_push($select, $select4);
     }
     if (isset($select5)) {
         array_push($select, $select5);
     }
     $data_html = $obj->select($var_name, $label, $select, $div_name);
     $data_css = $obj_css->styles($var_name, $color, $width, $height, $x_position, $y_position, $z_index, $font_size, $font_color);
     $obj->write_to_file($data_html, $html_file_name, $css_file_name, $data_css);
     $insert = "INSERT INTO `CMS`.`html_css` (`ID`, `HTML`, `CSS`,  `FORM_ID`,`STATUS`, `NAME`) VALUES (NULL, '{$data_html}', '{$data_css}', {$index_of_form},'1', '{$label}');";
     $result = $conn->query($insert);
     $ID = mysqli_insert_id($conn);
     $insert_div_data = "INSERT INTO `CMS`.`divs` (`ID`, `ELEMENT`, `HTML_CSS_ID`) VALUES (NULL, '{$data_html}',{$ID});";
     $result = $conn->query($insert_div_data);
     echo 'HTML & CSS Code created successfully<br/>';
     break;
 case 'file_html':
     $data_html = $obj->file_html($var_name, $label, $value, $div_name);
     $data_css = $obj_css->styles($var_name, $color, $width, $height, $x_position, $y_position, $z_index, $font_size, $font_color);
     $obj->write_to_file($data_html, $html_file_name, $css_file_name, $data_css);
     $insert = "INSERT INTO `CMS`.`html_css` (`ID`, `HTML`, `CSS`,  `FORM_ID`,`STATUS`, `NAME`) VALUES (NULL, '{$data_html}', '{$data_css}', {$index_of_form},'1', '{$label}');";
     $result = $conn->query($insert);
开发者ID:rdmdantz,项目名称:vc,代码行数:31,代码来源:index-old.php

示例7: asEditableTable

 function asEditableTable($type)
 {
     global $WikiTheme;
     if (!isset($this->_group)) {
         $this->_group =& $GLOBALS['request']->getGroup();
     }
     $table = HTML::table();
     $table->pushContent(HTML::tr(HTML::th(array('align' => 'left'), _("Access")), HTML::th(array('align' => 'right'), _("Group/User")), HTML::th(_("Grant")), HTML::th(_("Del/+")), HTML::th(_("Description"))));
     $allGroups = $this->_group->_specialGroups();
     foreach ($this->_group->getAllGroupsIn() as $group) {
         if (!in_array($group, $this->_group->specialGroups())) {
             $allGroups[] = $group;
         }
     }
     //array_unique(array_merge($this->_group->getAllGroupsIn(),
     $deletesrc = $WikiTheme->_findData('images/delete.png');
     $addsrc = $WikiTheme->_findData('images/add.png');
     $nbsp = HTML::raw('&nbsp;');
     foreach ($this->perm as $access => $groups) {
         //$permlist = HTML::table(array('class' => 'cal','valign' => 'top'));
         $first_only = true;
         $newperm = HTML::input(array('type' => 'checkbox', 'name' => "acl[_new_perm][{$access}]", 'value' => 1));
         $addbutton = HTML::input(array('type' => 'checkbox', 'name' => "acl[_add_group][{$access}]", 'title' => _("Add this ACL"), 'value' => 1));
         $newgroup = HTML::select(array('name' => "acl[_new_group][{$access}]", 'style' => 'text-align: right;', 'size' => 1));
         foreach ($allGroups as $groupname) {
             if (!isset($groups[$groupname])) {
                 $newgroup->pushContent(HTML::option(array('value' => $groupname), $this->groupName($groupname)));
             }
         }
         if (empty($groups)) {
             $addbutton->setAttr('checked', 'checked');
             $newperm->setAttr('checked', 'checked');
             $table->pushContent(HTML::tr(array('valign' => 'top'), HTML::td(HTML::strong($access . ":")), HTML::td($newgroup), HTML::td($nbsp, $newperm), HTML::td($nbsp, $addbutton), HTML::td(HTML::em(getAccessDescription($access)))));
         }
         foreach ($groups as $group => $bool) {
             $checkbox = HTML::input(array('type' => 'checkbox', 'name' => "acl[{$access}][{$group}]", 'title' => _("Allow / Deny"), 'value' => 1));
             if ($bool) {
                 $checkbox->setAttr('checked', 'checked');
             }
             $checkbox = HTML(HTML::input(array('type' => 'hidden', 'name' => "acl[{$access}][{$group}]", 'value' => 0)), $checkbox);
             $deletebutton = HTML::input(array('type' => 'checkbox', 'name' => "acl[_del_group][{$access}][{$group}]", 'style' => 'background: #aaa url(' . $deletesrc . ')', 'title' => _("Delete this ACL"), 'value' => 1));
             if ($first_only) {
                 $table->pushContent(HTML::tr(HTML::td(HTML::strong($access . ":")), HTML::td(array('class' => 'cal-today', 'align' => 'right'), HTML::strong($this->groupName($group))), HTML::td(array('align' => 'center'), $nbsp, $checkbox), HTML::td(array('align' => 'right', 'style' => 'background: #aaa url(' . $deletesrc . ') no-repeat'), $deletebutton), HTML::td(HTML::em(getAccessDescription($access)))));
                 $first_only = false;
             } else {
                 $table->pushContent(HTML::tr(HTML::td(), HTML::td(array('class' => 'cal-today', 'align' => 'right'), HTML::strong($this->groupName($group))), HTML::td(array('align' => 'center'), $nbsp, $checkbox), HTML::td(array('align' => 'right', 'style' => 'background: #aaa url(' . $deletesrc . ') no-repeat'), $deletebutton), HTML::td()));
             }
         }
         if (!empty($groups)) {
             $table->pushContent(HTML::tr(array('valign' => 'top'), HTML::td(array('align' => 'right'), _("add ")), HTML::td($newgroup), HTML::td(array('align' => 'center'), $nbsp, $newperm), HTML::td(array('align' => 'right', 'style' => 'background: #ccc url(' . $addsrc . ') no-repeat'), $addbutton), HTML::td(HTML::small(_("Check to add this ACL")))));
         }
     }
     if ($type == 'default') {
         $table->setAttr('style', 'border: dotted thin black; background-color:#eee;');
     } elseif ($type == 'inherited') {
         $table->setAttr('style', 'border: dotted thin black; background-color:#ddd;');
     } elseif ($type == 'page') {
         $table->setAttr('style', 'border: solid thin black; font-weight: bold;');
     }
     return $table;
 }
开发者ID:pombredanne,项目名称:tuleap,代码行数:61,代码来源:PagePerm.php

示例8: change_script

    }

    function change_script(form) {
      var url = form.url.value;
      var script = form.script.value;
      top.location.href = 'http://' + top.YAWF.domain + '/test/runner.part?url=' + escape(url) + '&script=' + escape(script);
    }
  </script>
</head>
<body onload="setup()">
  <form id="browser" onsubmit="top.YAWF.open(this.url.value); return false">
    <input type="button" name="home" value="Home" onclick="top.YAWF.open(this.form.url.value = '/')" />
    <label for="url">Address</label>
    <input type="text" id="url" name="url" value="<?php 
echo $url;
?>
" size="40" maxlength="100" />
    <input type="submit" name="go" value=" Go " />
    using test script
    <?php 
echo HTML::select('script', $scripts, $script, array('onchange' => 'change_script(this.form)'));
?>
    <a href="#" onclick="top.YAWF.open('test/script.part?script=' + document.forms.browser.script.value)">view</a>
    <span id="flash"><?php 
echo $error;
?>
</span>
  </form>
</body>
</html>
开发者ID:hutchike,项目名称:YAWF,代码行数:30,代码来源:browser.php

示例9: formLocal

 public function formLocal()
 {
     $login = new ModelLogin();
     if (isset($_POST['form_edit_account'])) {
         if (empty($_POST['usuario_nombre'])) {
             echo MESSAGE_FORM_NOMBRE_EMPTY;
             echo HTML::br(2);
             echo "<a href='javascript:history.back()'> Volver Atrás</a>";
         } elseif (empty($_POST['usuario_apellido1']) || empty($_POST['usuario_apellido2'])) {
             echo MESSAGE_FORM_APELLIDO_EMPTY;
             echo HTML::br(2);
             echo "<a href='javascript:history.back()'> Volver Atrás</a>";
         } elseif (strlen($_POST['usuario_nombre']) > 64 || strlen($_POST['usuario_nombre']) < 2) {
             echo MESSAGE_FROM_NOMBRE_LENGHT;
             echo HTML::br(2);
             echo "<a href='javascript:history.back()'> Volver Atrás</a>";
         } elseif (!preg_match('/^[a-z\\d]{2,64}$/i', $_POST['usuario_nombre'])) {
             echo MESSAGE_FORM_NOMBRE_CARACTER;
             echo HTML::br(2);
             echo "<a href='javascript:history.back()'> Volver Atrás</a>";
         } elseif (empty($_POST['usuario_telefono'])) {
             echo MESSAGE_FORM_TELEFONO_EMPTY;
             echo HTML::br(2);
             echo "<a href='javascript:history.back()'> Volver Atrás</a>";
         } elseif (strlen($_POST['usuario_telefono']) != 9) {
             echo MESSAGE_FORM_TELEFONO_INVALID;
             echo HTML::br(2);
             echo "<a href='javascript:history.back()'> Volver Atrás</a>";
         } elseif ($_POST['usuario_idioma'] == "") {
             $_POST['usuario_idioma'] == $login->getFormData($_SESSION['usuario_nombre_usuario'], "usuario_idioma");
         } elseif ($_POST['usuario_idioma'] != "ca" && $_POST['usuario_idioma'] != "en" && $_POST['usuario_idioma'] != "es") {
             echo MESSAGE_FORM_IDIOMA;
             echo HTML::br(2);
             echo "<a href='javascript:history.back()'> Volver Atrás</a>";
         } else {
             $query_mod_account = DB::connect()->prepare("UPDATE  `uqfhhbcn_whymusic`.`wm_usuarios` SET  `usuario_nombre` =  :usuario_nombre,\n            `usuario_apellido1` =  :usuario_apellido1,\n            `usuario_apellido2` =  :usuario_apellido2,\n            `usuario_telefono` =  :usuario_telefono,\n            `usuario_idioma` = :usuario_idioma WHERE  `wm_usuarios`.`usuario_nombre_usuario` =:usuario_nombre_usuario;");
             $query_mod_account->bindValue(':usuario_nombre_usuario', "musico", PDO::PARAM_STR);
             $query_mod_account->bindValue(':usuario_nombre', $_POST['usuario_nombre'], PDO::PARAM_STR);
             $query_mod_account->bindValue(':usuario_apellido1', $_POST['usuario_apellido1'], PDO::PARAM_STR);
             $query_mod_account->bindValue(':usuario_apellido2', $_POST['usuario_apellido2'], PDO::PARAM_STR);
             $query_mod_account->bindValue(':usuario_idioma', $_POST['usuario_idioma'], PDO::PARAM_STR);
             $query_mod_account->bindValue(':usuario_telefono', $_POST['usuario_telefono'], PDO::PARAM_STR);
             $query_mod_account->execute();
             // if username or/and email find in the database
             // TODO: this is really awful!
             if ($query_mod_account) {
                 echo MESSAGE_CORRECT_MOD;
                 ROUTER::redirect_to_action("account/edit", 2);
             } else {
                 echo MESSAGE_ERROR_SQL;
                 echo HTML::br(2);
                 echo "<a href='javascript:history.back()'> Volver Atrás</a>";
             }
         }
     } else {
         echo HTML::open_form(ROUTER::create_action_url('account/edit'), "POST", "form_edit_account");
         echo HTML::label("usuario_nombre", WORDING_USERNAME);
         echo HTML::input("text", "usuario_nombre", $login->getFormData($_SESSION['usuario_nombre_usuario'], "usuario_nombre"), array("placeholder" => "Su nombre"));
         echo HTML::br(2);
         echo HTML::label("usuario_apellido1", WORDING_APELLIDO1);
         echo HTML::input("text", "usuario_apellido1", $login->getFormData($_SESSION['usuario_nombre_usuario'], "usuario_apellido1"), array("placeholder" => "Su apellido"));
         echo HTML::br(2);
         echo HTML::label("usuario_apellido2", WORDING_APELLIDO2);
         echo HTML::input("text", "usuario_apellido2", $login->getFormData($_SESSION['usuario_nombre_usuario'], "usuario_apellido2"), array("placeholder" => "Su segundo apellido"));
         echo HTML::br(2);
         echo HTML::label("usuario_idioma", WORDING_IDIOMA);
         echo HTML::select("usuario_idioma", array("Idioma por defecto" => $login->getFormData($_SESSION['usuario_nombre_usuario'], 'usuario_idioma'), "Inglés" => "en", "Castellano" => "es", "Catalán" => "ca"));
         echo HTML::br(2);
         echo HTML::label("usuario_telefono", WORDING_TELEFON);
         echo HTML::input("text", "usuario_telefono", $login->getFormData($_SESSION['usuario_nombre_usuario'], "usuario_telefono"), array("placeholder" => "9XXXXXXXX"));
         echo HTML::br(2);
         echo HTML::button_HTML5("submit", BUTTON_MOD_DATA, "form_edit_account");
         echo HTML::close_form();
     }
 }
开发者ID:neferketer,项目名称:whymusic.es,代码行数:75,代码来源:ModelEditAccount.php

示例10: select_prt

 static function select_prt($sql_or_array, $name, $request = null, $xtra = null, $blank_option = true)
 {
     echo HTML::select($sql_or_array, $name, $request, $xtra, $blank_option);
 }
开发者ID:etlapa,项目名称:uiest,代码行数:4,代码来源:class.html.php

示例11: array

<div class="modal fade" id="mosca2Modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Cerrar</span></button>
                <h4 class="modal-title" id="myModalLabel">Añadir Logo2</h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal" role="form">
                    <label for="entradaId" class="col-sm-3 control-label">
                        Logo2
                    </label>
                    <div class="form-group">
                        <div class="col-sm-7">
                            <?php 
echo HTML::select("moscaId2", $moscas2, null, array("id" => "moscaId2", "class" => "select2"), null, array("display" => "nombre"));
?>
                        </div>
                    </div>

                    <label for="entradaId" class="col-sm-3 control-label">
                        Delay
                    </label>
                    <div class="form-group">
                        <div class="col-sm-7">
                            <input type="text" id="delay" name="delay" class="form-control dateMask" value="00:00:00:00" placeholder="HH:MM:SS:FR">
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
开发者ID:flafuente,项目名称:parrillas,代码行数:31,代码来源:parrilla.view.php

示例12: array

                            </div>
                        </div>
                    <?php 
}
?>
                    <?php 
if (!empty($entradasFIN)) {
    ?>
                        <!-- Entrada FIN -->
                        <div class="form-group edfin">
                            <label class="col-sm-3 control-label">
                                FIN
                            </label>
                            <div class="col-sm-8">
                                <?php 
    echo HTML::select("entradaIdFin", $entradasFIN, $entrada->entradaIdFin, array("id" => "entradaIdFin", "class" => "select2"), null, array("display" => "nombre"));
    ?>
                            </div>
                        </div>
                    <?php 
}
?>
                </div>
            </div>
        </div>
    </div>
</form>

<script>

    //Date Mask
开发者ID:flafuente,项目名称:parrillas,代码行数:31,代码来源:edit.view.php

示例13: getSelect

 protected function getSelect($name, $value = null, $items = array(), $attributes = null)
 {
     DOC::addChosen();
     $arr = array();
     $arr[0] = '--не задана--';
     foreach ($items as $row) {
         $arr[$row->getId()] = $row;
     }
     return HTML::select($name, $arr, $value, $attributes);
 }
开发者ID:php-nik,项目名称:core,代码行数:10,代码来源:Form.php


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