function input($objectName, $method, $object, $options = array()) { $attr = $object->getAttribute($method); switch ($attr->type) { case 'string': $str = text_field($objectName, $method, $object, $options); break; case 'text': $str = text_area($objectName, $method, $object, $options); break; case 'date': $str = date_select($objectName, $method, $object); break; case 'datetime': $str = date_time_select($objectName, $method, $object); break; case 'integer': $str = text_field($objectName, $method, $object, $options); break; case 'float': $str = text_field($objectName, $method, $object, $options); break; case 'boolean': $str = check_box($objectName, $method, $object, $options); break; default: $str = hidden_field($objectName, $method, $object); break; } return error_wrapping($str, isset($object->errors[$method])); }
/** Adds the opening tag for a form and 2 hidden fields: - id - created_at */ function form_for($en, $http_action = "create", $html_attrs = array()) { $html_opts = ""; if (count($html_attrs) > 0) { foreach ($html_attrs as $attr => $val) { $html_opts .= $attr . '="' . $val . '" '; } } $path_func_name = $en->__get_entity_name() . "_" . $http_action . "_path"; $html = '<form action="' . $path_func_name() . '" method="post" ' . $html_opts . ' >'; $html .= hidden_field($en, "id"); $html .= hidden_field($en, "created_at"); return $html; }
function display_form($name, $place, $choices) { printf("<form method=\"post\" action=\"%s\">\n", script_name()); hidden_field("name", $name); hidden_field("place", $place); hidden_field("choices", implode("#", $choices)); printf("Where was %s born?<br /><br />\n", htmlspecialchars($name)); for ($i = 0; $i < 5; $i++) { radio_button("response", $choices[$i], $choices[$i], FALSE); print "<br />\n"; } print "<br />\n"; submit_button("submit", "Submit"); print "</form>\n"; }
function column_config_form($fk_table, $table, $column) { global $button_strings, $dt_strings; $fk_columns = array(); foreach ($GLOBALS['s_fields'][$fk_table] as $field) { if ($field['type'] == 'BLOB') { continue; } $fk_columns[] = $field['name']; } $pre = ifsetor($GLOBALS['s_cust']['fk_lookups'][$table][$column]); $html = "<table border=\"1\" cellpadding=\"3\" cellspacing=\"0\">\n" . " <tr>\n" . " <th>\n" . ' ' . sprintf($dt_strings['ColConf'], $column) . "\n" . " </th>\n" . " </tr>\n" . " <tr>\n" . " <td>\n" . ' <b>' . $dt_strings['ColFKLook'] . "</b><br>\n" . ' ' . get_selectlist('dt_column_config_fk_column', $fk_columns, $pre, TRUE) . "\n" . " </td>\n" . " </tr>\n" . "</table>\n" . hidden_field('dt_column_config_table', $table) . "\n" . hidden_field('dt_column_config_column', $column) . "\n" . '<input type="submit" name="dt_column_config_save" value="' . $button_strings['Save'] . "\" class=\"bgrp\">\n" . '<input type="button" name="dt_column_config_cancel" onClick="javascript:hide(this.parentNode.id);" value="' . $button_strings['Cancel'] . "\" class=\"bgrp\">\n"; header('Content-Type: text/html;charset=' . $GLOBALS['charset']); echo $html; }
require './inc/script_start.inc.php'; if ($_SERVER['REQUEST_METHOD'] == 'GET') { $table = get_request_data('table', 'GET'); $col = get_request_data('col', 'GET'); $where = get_request_data('where', 'GET'); } else { $table = get_request_data('table'); $col = get_request_data('col'); $where = get_request_data('where'); $s_wt['blob_as'][$col] = get_request_data('blobtype'); } $imageurl = 'showimage.php?where=' . urlencode($where) . '&table=' . $table . '&col=' . $col; $imageurl .= '&' . uniqid('UNIQ_'); $blob = get_blob_content(sprintf('SELECT %s FROM %s %s', $col, $table, $where)); $title = build_title(sprintf('Blob from %s %s', $table, $where), FALSE); echo html_head($title) . '<body bgcolor="' . $s_cust['color']['area'] . "\">\n" . js_window_resize(BLOB_WINDOW_WIDTH, BLOB_WINDOW_HEIGHT) . '<form method="post" action="' . url_session($_SERVER['PHP_SELF']) . '" name="showblob_form">' . "\n" . hidden_field('table', htmlentities($table)) . hidden_field('col', htmlentities($col)) . hidden_field('where', htmlentities($where)) . "<table>\n<tr>\n<td>\n" . get_selectlist('blobtype', $blob_types, $s_wt['blob_as'][$col], TRUE) . "</td>\n<td>\n" . '<input type="submit" name="change_blobtype" value="Change Type">' . "\n" . "</td>\n<td width=\"50\">\n</td>\n<td>\n" . '<input type="button" value="Close" onClick="self.close()">' . "\n" . "</td>\n</tr>\n<table>\n" . "</form>\n"; $blobas = isset($s_wt['blob_as'][$col]) && $s_wt['blob_as'][$col] != '' ? $s_wt['blob_as'][$col] : 'hex'; switch ($blobas) { case 'png': case 'jpg': case 'gif': echo '<img src="' . $imageurl . "\">\n"; break; case 'text': echo '<pre align="left">' . htmlspecialchars($blob) . "</pre>\n"; break; case 'html': echo $blob; break; case 'hex': echo hex_view($blob);
<?php // File adm_gfix.php / FirebirdWebAdmin // Purpose interface for the gfix command // Author Lutz Brueckner <*****@*****.**> // Copyright (c) 2000, 2001, 2002, 2003, 2004, 2005 by Lutz Brueckner, // published under the terms of the GNU General Public Licence v.2, // see file LICENCE for details if ($s_connected == TRUE) { ?> <form method="post" action="<?php echo url_session($_SERVER['PHP_SELF']); ?> " name="db_gfix_form"> <?php echo hidden_field('gfix_doit', '1'); if ($s_login['user'] != 'SYSDBA') { sysdba_pw_textfield($adm_strings['SysdbaPW'], $adm_strings['Required'], $s_sysdba_pw); } ?> <table> <tr> <td> <table class="table table-bordered"> <tr> <th align="left" colspan="3"><?php echo $adm_strings['Buffers']; ?> </th> <tr> <td>
function display_entry($dbh) { # Get script parameters; trim whitespace from the ID, but not # from the password, because the password must match exactly. $member_id = trim(script_param("member_id")); $password = script_param("password"); if (empty($member_id)) { die("No member ID was specified\n"); } if (!ctype_digit($member_id)) { # must look like integer die("Invalid member ID was specified (must be an integer)\n"); } if (empty($password)) { die("No password was specified\n"); } if (check_pass($dbh, $member_id, $password)) { # regular member $admin = FALSE; } else { if (check_pass($dbh, 0, $password)) { # administrator $admin = TRUE; } else { die("Invalid password\n"); } } $stmt = "SELECT\n last_name, first_name, suffix, email, street, city,\n state, zip, phone, interests, member_id, expiration\n FROM member WHERE member_id = ?\n ORDER BY last_name"; $sth = $dbh->prepare($stmt); $sth->execute(array($member_id)); if (!($row = $sth->fetch())) { die("No user with member_id = {$member_id} was found\n"); } printf("<form method=\"post\" action=\"%s?action=%d\">\n", script_name(), UPDATE_ENTRY); # Add member ID and password as hidden values so that next invocation # of script can tell which record the form corresponds to and so that # the user need not re-enter the password. hidden_field("member_id", $member_id); hidden_field("password", $password); # Format results of statement for editing print "<table>\n"; # Display member ID as static text display_column("Member ID", $row, "member_id", FALSE); # $admin is true if the user provided the administrative password, # false otherwise. Administrative users can edit the expiration # date, regular users cannot. display_column("Expiration", $row, "expiration", $admin); # Display other values as editable text display_column("Last name", $row, "last_name"); display_column("First name", $row, "first_name"); display_column("Suffix", $row, "suffix"); display_column("Email", $row, "email"); display_column("Street", $row, "street"); display_column("City", $row, "city"); display_column("State", $row, "state"); display_column("Zip", $row, "zip"); display_column("Phone", $row, "phone"); display_column("Interests", $row, "interests"); print "</table>\n"; submit_button("button", "Submit"); print "</form>\n"; }
<table border="0" align=center> <form method="post" action="main.php" name="login_form"> <? hidden_field("act","mac"); ?> <tr> <td valign="center" align="left" height="23"><span><font face="Verdana" size="2"><b><font color="#74468f">Already a member? </font></b></font></span><font face="Verdana" size="2"><b><font color="#ff0000"><span>Sign in.</span></font></b></font></td> </tr> <tr> <td bgcolor="#D0D0D0" height="1"><img height="1" src="images/spacer.gif" width="1"></td> </tr> <tr> <td valign="center" align="left" height="20"><font face="Verdana" size="2"><b>Enter your Id</b></font></td> </tr> <tr> <td valign="center" align="left" height="20"><label><input id="uid" name="lemail" size="20"></label></td> </tr> <tr> <td valign="top" align="left" height="5"><img height="5" src="images/spacer.gif" width="1"></td> </tr> <tr> <td valign="center" align="left" height="20"><font face="Verdana" size="2"><b>Password</b></font></td> </tr> <tr> <td valign="center" align="left"><label><input id="password" type="password" name="pwd" size="20"></label></td> </tr> <tr> <td valign="center" align="left" height="25"><label><input id="remember" type="checkbox" value="Y" name="remember"> <font face="Verdana" size="1"><b>Remember me</b></font></label></td> </tr>
public function subscription_form($model, $action = "", $handle = false, $show_name_field = true, $extra1 = false, $extra2 = false, $image_submit = false) { if (!$handle) { $handle = "all_sections"; } $form = '<div id="subscription-form"> <form action="' . $action . '" method="post" class="form_container">' . hidden_field($model, "handle", array('value' => $handle)) . hidden_field($model, "status", array('value' => 1)) . '<fieldset>'; if ($show_name_field) { $form .= large(text_field($model, "name", array(), "Name <span class='mandatory'>*</span>")) . form_divider(); } $form .= large(text_field($model, "email", array(), "Email <span class='mandatory'>*</span>")); if ($extra1) { $form .= form_divider() . large(text_field($model, "extra1", array(), $extra1)); } if ($extra2) { $form .= form_divider() . large(text_field($model, "extra2", array(), $extra2)); } $form .= form_divider() . '<span id="mandatory">* Compulsory fields</span>'; if ($image_submit) { $form .= image_submit_tag($image_submit, array('alt' => "submit button", "title" => "Submit")); } else { $form .= small(submit_field($model, "Subscribe")); } $form .= '</fieldset> </form> </div>'; return $form; }
// データの整形 $_POST = fix_data($_POST); // 必須項目のチェック include 'php/check.php'; // 入力エラー処理 list($error_html, $error_css) = input_error($error_blank, $error_injustice); if (!$error_html && !$error_css) { $flag_check = true; } if ($flag_check) { // チケット発行 if (empty($_SESSION['ticket'])) { $_SESSION['ticket'] = md5(uniqid() . mt_rand()); } // 不可視フィールドを生成 $hidden = hidden_field(); // URLは自動リンク $_POST = auto_link($_POST, array('body')); include 'php/confirm.php'; } } ?> <?php /** * 送信 */ if (!empty($INPUT_mode) && $INPUT_mode == 'send') { $flag_check = true; if ($_SESSION['ticket']) {
</p> <p> <form action="application_create.php" method="post"> <? foreach ($_POST as $name => $value): ?> <?php echo hidden_field($name, array('value' => $value)); ?> <? endforeach ?> <input type="submit" name="submit" value="申込む" /> </form> <form action="application.php" method="post"> <? foreach ($_POST as $name => $value): ?> <?php echo hidden_field($name, array('value' => $value)); ?> <? endforeach ?> <input type="submit" name="submit" value="戻る" /> </form> </p> </div> </div> <div id="sub"> </div> </div> <? include 'footer.php' ?> </body> </html>
function get_item_input_field($fieldname, $item_attribute_type_r, $item_r, $value = NULL, $dowrap = TRUE, $prompt_mask = NULL, $onchange_event = NULL, $disabled = FALSE) { if (is_array($item_attribute_type_r)) { $s_attribute_type = $item_attribute_type_r['s_attribute_type']; $order_no = $item_attribute_type_r['order_no']; $prompt = $item_attribute_type_r['prompt']; $input_type = $item_attribute_type_r['input_type']; $compulsory_ind = $item_attribute_type_r['compulsory_ind']; $widget['type'] = $item_attribute_type_r['input_type']; $widget['args'][0] = $item_attribute_type_r['input_type_arg1']; $widget['args'][1] = $item_attribute_type_r['input_type_arg2']; $widget['args'][2] = $item_attribute_type_r['input_type_arg3']; $widget['args'][3] = $item_attribute_type_r['input_type_arg4']; $widget['args'][4] = $item_attribute_type_r['input_type_arg5']; } if ($item_attribute_type_r['multi_attribute_ind'] == 'Y') { $multi_value = TRUE; if (!is_array($value)) { $old_value = ifempty($value, ""); unset($value); $value[] = $old_value; } } else { $multi_value = FALSE; // an array will be a lookup value if (!is_array($value)) { // Escape all html entities so they are displayed correctly! if (strlen($value) > 0) { $value = htmlspecialchars($value); } } } $field = NULL; $field_mask = NULL; // Now we have to work out how to parse the input_type if ($item_attribute_type_r['input_type'] == 'hidden') { return hidden_field($fieldname, $value); } else { if ($item_attribute_type_r['input_type'] == 'readonly') { $field = readonly_field($fieldname, $value); } else { if ($item_attribute_type_r['input_type'] == 'textarea' || $item_attribute_type_r['input_type'] == 'htmlarea') { // arg[0] = rows, arg[1] = cols, arg[2] = length $field = textarea_field($fieldname, $prompt, $widget['args']['0'], $widget['args']['1'], $widget['widget']['2'], $compulsory_ind, $value, $onchange_event, $disabled); } else { if ($item_attribute_type_r['input_type'] == 'text') { // arg[0] = length of field, arg[1] = maxlength of field $field = text_field($fieldname, $prompt, $widget['args']['0'], $widget['args']['1'], $compulsory_ind, $value, $onchange_event, $disabled, $multi_value); } else { if ($item_attribute_type_r['input_type'] == 'password') { // arg[0] = length of field, arg[1] = maxlength of field $field = password_field($fieldname, $prompt, $widget['args']['0'], $widget['args']['1'], $compulsory_ind, $value, $onchange_event, $disabled, $multi_value); } else { if ($item_attribute_type_r['input_type'] == 'email') { // arg[0] = length of field, arg[1] = maxlength of field $field = email_field($fieldname, $prompt, $widget['args']['0'], $widget['args']['1'], $compulsory_ind, $value, $onchange_event, $disabled, $multi_value); } else { if ($item_attribute_type_r['input_type'] == 'filtered') { // arg[0] = length of field, arg[1] = maxlength of field, arg[2] = legalChars $field = filtered_field($fieldname, $prompt, $widget['args']['0'], $widget['args']['1'], $widget['args']['2'], $compulsory_ind, $value, $onchange_event, $disabled, $multi_value); } else { if ($item_attribute_type_r['input_type'] == 'datetime') { // arg[0] = datetime mask, arg[1] = auto_datetime $field = datetime_field($fieldname, $prompt, ifempty($widget['args']['0'], 'DD/MM/YYYY'), $widget['args']['1'], $compulsory_ind, $value, $onchange_event, $disabled, $multi_value); } else { if ($item_attribute_type_r['input_type'] == 'number') { // arg[0] = length of field, arg[0] = maxlength of field $field = number_field($fieldname, $prompt, $widget['args']['0'], $widget['args']['0'], $compulsory_ind, $value, $onchange_event, $disabled, $multi_value); } else { if ($item_attribute_type_r['input_type'] == 'simple_checkbox') { // arg[0] = checked $field = checkbox_field($fieldname, $prompt, strcasecmp(trim($widget['args']['0']), 'CHECKED') === 0, $value, $onchange_event, $disabled); } else { if ($item_attribute_type_r['input_type'] == 'checkbox') { // arg[0] = checked, arg[1] = unchecked $field = enhanced_checkbox_field($fieldname, $prompt, $widget['args']['0'], $widget['args']['1'], $value, $onchange_event, $disabled); } else { if ($item_attribute_type_r['input_type'] == 'checkbox_grid') { $lookup_results = fetch_attribute_type_lookup_rs($s_attribute_type, 'order_no, ' . get_lookup_order_by($widget['args']['0']) . ' ASC'); if ($lookup_results) { //arg[0] = display_mask, arg[1] = orientation $field = checkbox_grid($fieldname, $lookup_results, $widget['args']['0'], $widget['args']['1'], $value, $disabled); } } else { if ($item_attribute_type_r['input_type'] == 'radio_grid') { $lookup_results = fetch_attribute_type_lookup_rs($s_attribute_type, 'order_no, ' . get_lookup_order_by($widget['args']['0']) . ' ASC'); if ($lookup_results) { //arg[0] = display_mask, arg[1] = orientation $field = radio_grid($fieldname, $lookup_results, $widget['args']['0'], $widget['args']['1'], $value, $disabled); } } else { if ($item_attribute_type_r['input_type'] == 'value_radio_grid') { //arg[0] = "comma delimited list of values" $field = value_radio_grid($fieldname, explode(',', $widget['args']['0']), $value, $disabled); } else { if ($item_attribute_type_r['input_type'] == 'single_select') { $lookup_results = fetch_attribute_type_lookup_rs($s_attribute_type, 'order_no, ' . get_lookup_order_by($widget['args']['0']) . ' ASC'); if ($lookup_results) { //arg[0] = display mask, arg[1] = max value length $field = single_select($fieldname, $lookup_results, $widget['args']['0'], $widget['args']['1'], $value, $onchange_event, $disabled); } } else { if ($item_attribute_type_r['input_type'] == 'multi_select') { $lookup_results = fetch_attribute_type_lookup_rs($s_attribute_type, 'order_no, ' . get_lookup_order_by($widget['args']['0']) . ' ASC'); if ($lookup_results) { //arg[0] = display mask, arg[1] = max value length, arg[2] = select box number of visible rows $field = multi_select($fieldname, $lookup_results, $widget['args']['0'], $widget['args']['1'], $widget['args']['2'], $value, $onchange_event, $disabled); } } else { if ($item_attribute_type_r['input_type'] == 'value_select') { //arg[0] = "comma delimited list of values"; arg[1] = number of visible rows (Defaults to single select $field = value_select($fieldname, explode(',', $widget['args']['0']), $widget['args']['1'], $value, $onchange_event, $disabled); } else { if ($item_attribute_type_r['input_type'] == 'review_options') { //arg[1] = display_mask, arg[1] = orientation $lookup_results = fetch_attribute_type_lookup_rs($s_attribute_type, 'value DESC'); //We want the rows highest value first. if ($lookup_results) { $field = review_options($fieldname, $lookup_results, $widget['args']['0'], $widget['args']['1'], $value, $disabled); } } else { if ($item_attribute_type_r['input_type'] == 'url') { //arg[0] = length of field, arg[1] = maxlength of field, arg[2] = extensions $field = url($fieldname, $item_r, $item_attribute_type_r, $prompt, $widget['args']['0'], $widget['args']['1'], $widget['args']['2'], $value, $onchange_event, $disabled, $multi_value); } else { $field = ">>> ERROR (input_type = {$input_type}) <<<"; } } } } } } } } } } } } } } } } } } } if ($dowrap) { return format_item_data_field($item_attribute_type_r, $field, $prompt_mask); } else { return $field; } }
function content() { global $errors; ?> <h2>Login</h2> <p>If you have not yet registered for an account, you will need to <a href="register">register</a> before you can log in. If you have have forgotten your password, you can <a href="request-reset">reset it</a>.</p> <?php show_error_list($errors); ?> <form method="post" action="" accept-charset="UTF-8"> <div class="fieldrow"> <?php text_field($_POST, 'email', 'Email address'); ?> </div> <div class="fieldrow"> <div> <label for="password">Password</label> <input type="password" id="password" name="password" /> </div> </div> <div class="fieldrow"> <input type="checkbox" id="forever" name="forever" value="1" checked="checked" /> <label for="forever">Stay logged in? <br/><span class="label-extra">If you are using a shared computer, you should not set this option.</span></label> </div> <div class="fieldrow"> <input type="submit" name="login" value="Login" /> <br/><span class="note">(This sets a cookie, which logging out clears.)</span> </div> <?php if (array_key_exists('return', $_GET)) { hidden_field('return', $_GET['return']); } elseif (array_key_exists('return', $_POST)) { hidden_field('return', $_POST['return']); } ?> </form> <?php }
/** * Returns an entire form with input tags and everything for a specified Active Record object. Example * (post is a new record that has a title using VARCHAR and a body using TEXT): * form("post") => * <form action='/post/create' method='post'> * <p> * <label for="post_title">Title</label><br /> * <input id="post_title" name="post[title]" size="30" type="text" value="Hello World" /> * </p> * <p> * <label for="post_body">Body</label><br /> * <textarea cols="40" id="post_body" name="post[body]" rows="20"> * Back to the hill and over it again! * </textarea> * </p> * <input type='submit' value='Create' /> * </form> * * It's possible to specialize the form builder by using a different action name and by supplying another * block renderer. Example (entry is a new record that has a message attribute using VARCHAR): * * form("entry", array('action' => "sign", 'input_block' => * 'foreach($record->content_columns() as $column_name => $column) $contents .= Inflector::humanize($column_name) . ": " . input($record, $column) . "<br />"')) => * * <form action='/post/sign' method='post'> * Message: * <input id="post_title" name="post[title]" size="30" type="text" value="Hello World" /><br /> * <input type='submit' value='Sign' /> * </form> * * It's also possible to add additional content to the form by giving it a block, such as: * * form("entry", array('action' => "sign", 'block' => * content_tag("b", "Department") . * collection_select("department", "id", $departments, "id", "name")) * ) * @uses all_input_tags() * @uses content_tag() * @uses Helpers::object() */ function form($record_name, $options = array()) { $record = $this->object($record_name); $options["action"] = $options[":action"] ? $options[":action"] : $record->is_new_record() ? "add" : "save"; $action = url_for(array(':action' => $options[':action'], ':id' => $record->id)); $submit_value = isset($options['submit_value']) ? $options['submit_value'] : ucfirst(preg_replace('/[^\\w]/', '', $options[':action'])); $contents = ''; if (!$record->is_new_record()) { $contents .= hidden_field($record_name, 'id'); } $contents .= $this->all_input_tags($record, $record_name, $options); if (isset($options['block'])) { $contents .= eval($options['block']); } $contents .= "<br>" . submit_tag($submit_value) . "<br><br>"; return $this->content_tag('form', $contents, array('action' => $action, 'method' => 'post')); }
<div align="center"> <form method=post action=main.php name=register> <? hidden_field("act",$act); ?> <? hidden_field("sact","save"); ?> <table border="0" width="80%" class="form_lbl"> <tr> <td width="100%" height=40> <b><font face="Verdana" color="#74468f" size="4"> Register an account </font></b></span> </td> </tr> <tr> <td width="100%"> <b>Fields marked with asterisk (<span class="err_txt">*</span>) are compulsory. This information is a must for successful account creation. </td> </tr> <tr> <td width="100%"> <table border="0" width="100%" class="form_lbl"> <tr> <td width="50%" align="right">Choose a Sign in ID <span class="err_txt">*</span></td> <td width="50%"><input type="text" name="fields_p[login]" value="<? echo $fields_p['login']; ?>" size=20></font></td> </tr> <tr><td colspan=2> <font size=1>Carefully choose your password you will have to remember it, since we not collecting your email we have no way of sending you your passsword if you lost it.</font> </td></tr> <tr> <td align="right">Choose a password <span class="err_txt">*</span></td> <td><input type="password" name="fields_p[password]" value="" size=20></font></td>
?> </div> <hr> <?php } ?> <div id="curdiv" style="margin:5px;"> <form method="post" action="poker_video_deal.php" name="c_deal"> <?php hidden_field("act", $act); ?> <?php hidden_field("sact", "bet"); ?> <?php hidden_field("guserid", $guserid); ?> <font size=3 color='#ff0000'><b>Start here for a fresh deal</b></font><br><br> <font color='#ffcc00'>Your fresh Deal, Bet on it now.</font><br> <?php display_hand($cur_hand, true); ?> <font color='#ff0000'>Click on the card to discard it.</font><br><br> Bet : <?php print_select_bet($cur_bet_value); ?> Points <input type="submit" name="bet_now" value="Bet Now"> </form>
?> <li><?php echo $err_msg; ?> </li> <?php } } ?> </ul> </div> <?php } ?> <?php echo hidden_field($this->faq, "project_id"); ?> <?php echo text_field($this->faq, "question", "", array("class" => "question_txt", "placeholder" => "Question text here...")); ?> <?php echo textarea_field($this->faq, "answer", "", array("class" => "answer_txt", "placeholder" => "The answer goes here...")); ?> <input type ="submit" value="Save question" class="btn btn-primary"/> <?php echo form_end_tag();
document.getElementById('main-form').target = "create_image_frame"; } </script> <?php define('SQ_PAINTED_SIMPLE_ASSET_MAP', TRUE); ?> </head> <body onload="Init();" onUnload="asset_finder_onunload();"> <form action="" method="get" name="main_form" id="main-form"> <?php // insert nonce secuirty token. if ($GLOBALS['SQ_SYSTEM']->user && !$GLOBALS['SQ_SYSTEM']->user instanceof Public_User) { hidden_field('token', get_unique_token()); } ?> <table class="sq-fieldsets-table"> <tr> <td valign="top" class="sq-popup-asset-map"> <div id="asset_map"> <iframe src="insert_image_asset_map.php" name="sq_wysiwyg_popup_sidenav" frameborder="0" width="200" height="600px" scrolling="no"> </iframe> </div> </td> <td valign="top"> <table cellspacing="0" cellpadding="0"> <tr> <td valign="top" width="100%" colspan=2> <fieldset>
public function hidden_field($method, $options = array()) { return hidden_field($this->objectName, $method, $this->object, $options); }