function show_form($errors = '') { print '<form method="POST" action="' . $_SERVER['PHP_SELF'] . '">'; if ($errors) { print '<ul><li>'; print implode('</li><li>', $errors); print '</li></ul>'; } print 'Username: '******'username', $_POST); print '<br/>'; print 'Password: '******'password', $_POST); print '<br/>'; input_submit('submit', 'Log In'); print '<input type="hidden" name="_submit_check" value="1"/>'; print '</form>'; }
</div> <div class="portlet-body"> <form id="form_editar" class="form-horizontal form-row-seperated" name="nuevo" action='procesa_datos_editar.php?tipo=<?php echo $_GET['tipo']; ?> &id=<?php echo $_GET['id']; ?> ' method="post"> <?php foreach ($inputs as $key => $value) { if ($key == 'pass') { echo input_password($value); } else { echo input_text($value); } } ?> <div class="form-actions"> <div class="row"> <div class="col-lg-offset-10 col-lg-2 col-sm-offset-8 col-sm-4"> <button type="submit" class="btn green button-submit"> <?php echo _('Guardar'); ?> <i class="fa fa-arrow-circle-right"></i></button> </div> </div>
function build_input_form($field_array) { hook_action('build_input_form'); if ($field_array['name']) { if (!isset($field_array['object_id']) or !is_numeric($field_array['object_id'])) { $field_array['object_id'] = '0'; } if (!isset($field_array['nice_name'])) { $field_array['nice_name'] = ''; } if (!isset($field_array['object_type'])) { $field_array['object_type'] = ''; } if (!isset($field_array['description'])) { $field_array['description'] = ''; } if (!isset($field_array['placeholder'])) { $field_array['placeholder'] = ''; } if (!isset($field_array['default_value'])) { $field_array['default_value'] = ''; } if (!isset($field_array['addClass'])) { $field_array['addClass'] = NULL; } if (!isset($field_array['input_type'])) { $field_array['input_type'] = 'text'; } if (!isset($field_array['create_slug'])) { $field_array['create_slug'] = FALSE; } if (!isset($field_array['required'])) { $field_array['required'] = FALSE; } if (!isset($field_array['handle'])) { $field_array['handle'] = TRUE; } if ($field_array['required'] == TRUE) { $field_array['required'] = 'required'; } if (!isset($field_array['input_option'])) { $field_array['input_option'] = array(); } if (!is_array($field_array['input_option'])) { $field_array['input_option'] = array(); } switch ($field_array['input_type']) { case 'text': input_text($field_array); break; case 'email': input_email($field_array); break; case 'hidden': input_hidden($field_array); break; case 'request_uri': input_request_uri($field_array); break; case 'number': input_number($field_array); break; case 'password': input_password($field_array); break; case 'textarea': input_textarea($field_array); break; case 'wysiwyg': echo input_editor($field_array); break; case 'select': input_select($field_array); break; case 'multiimage': input_multiimage($field_array); break; } } }