本文整理汇总了PHP中print_input_hidden函数的典型用法代码示例。如果您正苦于以下问题:PHP print_input_hidden函数的具体用法?PHP print_input_hidden怎么用?PHP print_input_hidden使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了print_input_hidden函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: print_input_hidden
</script>
<?php
include APPPATH . "views/func.inc.php";
?>
<form name="myform" id="myform" action="<?php
echo WEB_PATH;
echo $form_action;
?>
" method="post">
<h3>รายละเอียด</h3>
<br/>
<div align="center">
<textarea class="mceEditor" name="page_detail" id="page_detail"><?if(isset($form_data["page_detail"])){ echo $form_data["page_detail"];}?></textarea>
</div>
<?php
print_input_hidden("page_id");
?>
<br/>
<div align="center">
<input class="btn btn-primary" type="submit" value="บันทึกข้อมูล" />
</div>
</form>
<script>
// prepare the form when the DOM is ready
$("#myform").validate({
rules: {
page_detail: {
required: true
}
},
messages: {
示例2: print_input_text
echo "<tr><td>";
print_input_text ('title', $title, '', 80, 175, false, __('Subject'));
echo "<tr><td>";
print_textarea ('description', 15, 50, $description, '', false, __('Message text'));
echo "<tr><td>";
echo '</table>';
$button = '';
echo '<div style="width:100%;">';
$table = new StdClass;
$table->width = '100%';
$table->class = "button-form";
$button .= print_submit_button (__('Send'), 'create_btn', false, 'class="sub create"', true);
$button .= print_input_hidden ('operation', 'generate_email',true);
$button .= print_input_hidden ('id_project', $id_project, true);
$button .= print_input_hidden ('id_task', $id_task, true);
$table->data[7][0] = $button;
$table->colspan[7][0] = 2;
print_table($table);
echo '</div>';
echo '</form>';
?>
<script type="text/javascript">
$(document).ready (function () {
$("#textarea-description").TextAreaResizer ();
});
</script>
示例3: __
if ($section_write_permission || $section_manage_permission) {
$table->head[3] = __('Delete');
}
foreach ($contacts as $contact) {
$data = array();
// Name
$data[0] = "<a href='index.php?sec=customers&sec2=operation/contacts/contact_detail&id=" . $contact['id'] . "'>" . $contact['fullname'] . "</a>";
$data[1] = "<a href='index.php?sec=customers&sec2=operation/companies/company_detail&id=" . $contact['id_company'] . "'>" . get_db_value('name', 'tcompany', 'id', $contact['id_company']) . "</a>";
$data[2] = $contact['email'];
if ($section_write_permission || $section_manage_permission) {
$data[3] = '<a href="index.php?sec=customers&
sec2=operation/contacts/contact_detail&
delete_contact=1&id=' . $contact['id'] . '&offset=' . $offset . '"
onClick="if (!confirm(\'' . __('Are you sure?') . '\'))
return false;">
<img src="images/cross.png"></a>';
}
array_push($table->data, $data);
}
print_table($table);
}
//Show create button only when contact list is displayed
if (($section_write_permission || $section_manage_permission) && !$id && !$new_contact) {
echo '<form method="post" action="index.php?sec=customers&sec2=operation/contacts/contact_detail">';
echo '<div style="width: ' . $table->width . '; text-align: right;">';
print_submit_button(__('Create'), 'new_btn', false, 'class="sub create"');
print_input_hidden('new_contact', 1);
echo '</div>';
echo '</form>';
}
}
示例4: print_select
$table->data['id_parent_value'][0] = print_select($parents, 'parent', $parent, '', __('Select parent'), '0', true, 0, true, __("Parent"), $global_field);
$table->data['id_linked_value'][0] = print_textarea('linked_value', 15, 1, $linked_value, '', true, __('Linked value') . integria_help("linked_values", true), $global_field);
if ($global_field) {
$table->data['id_linked_value'][1] = "";
$table->data['id_linked_value'][2] = print_textarea('add_linked_value', 15, 1, $add_linked_value, '', true, __('Add values') . integria_help("linked_values", true));
}
// Buttons
if ($add_field) {
$button = print_input_hidden('add_field', 1, true);
$button .= print_submit_button(__('Create'), 'create_btn', false, 'class="sub next"', true);
} else {
if ($update_field) {
if (!$global_field && ($type != 'linked' || $type != 'combo') || $global_field && ($type == 'linked' || $type == 'combo')) {
$button = print_input_hidden('update_field', 1, true);
$button .= print_input_hidden('add_field', 0, true);
$button .= print_input_hidden('id_field', $id_field, true);
$button .= print_submit_button(__('Update'), 'update_btn', false, 'class="sub upd"', true);
}
}
}
$table->data['button'][0] = $button;
$table->colspan['button'][0] = 3;
if ($add_field) {
echo '<form method="post" action="index.php?sec=incidents&sec2=operation/incidents/type_detail&id=' . $id_incident_type . '&add_field=1">';
} else {
echo '<form method="post" action="index.php?sec=incidents&sec2=operation/incidents/type_detail&id=' . $id_incident_type . '&update_field=1">';
}
print_table($table);
echo '</form>';
?>
示例5: print_input_hidden
//input pagination size
$table_search->data[3][0] = '<label id="label-text-block_size" for="text-block_size">'.__('Block size for pagination').print_help_tip (__("Selects the paging block. By default it's set in the general options and limited to 2-1000"), true).'</label>';
$table_search->data[3][0] .= '<input type="number" required pattern="^[2-100]" name="block_size" id="text-block_size" value="'.$params['block_size'].'" size="2" min="2" max="1000">';
//order column table hidden
$table_search->data[3][0] .= print_input_hidden ('sort_field', $params['sort_field_num'], true, false, 'sort_field');
$table_search->data[3][0] .= print_input_hidden ('sort_mode', $params['sort_mode'], true, false, 'sort_mode');
//offset pagination hidden
if(!isset($params['offset'])){
$params['offset'] = '';
}
$table_search->data[3][0] .= print_input_hidden ('offset', $params['offset'], true, false, 'offset');
//mode: list, tree, pure
$table_search->data[3][0] .= print_input_hidden ('mode', $params['mode'], true, false, 'mode');
//csv querys
$filter["query"] = $sql_search;
$filter["query_pag"] = $sql_search_pagination;
serialize_in_temp($filter, $config["id_user"]);
//tree_search_submit()
$table_search->data[3][1] = print_button(__('Export to CSV'), '', false, 'tree_search_submit(); window.open(\'' . 'include/export_csv.php?export_csv_inventory=1'.'\');', 'class="sub csv"', true);
//button
$table_search->data[3][2] = print_submit_button (__('Search'), 'search', false, 'class="sub search"', true);
$search_other .= print_table($table_search, true);
$search_other .= '</div>';
示例6: __
}
$j++;
}
$data[$j] = '<a id="link_add_row" title=' . __("Add row") . ' href=""><img src="images/add.png"></a>';
array_push($table_list->data, $data);
}
echo '<form id="external_form" name="external_edition_form" method="post" action="index.php?sec=inventory&sec2=operation/inventories/manage_external_tables&insert_row=1">';
print_input_hidden('id', $id_object_type, false);
print_input_hidden('external_table', $external_table, false);
print_input_hidden('key', $key, false);
print_table($table_list);
echo '</form>';
}
print_input_hidden('base_url_homedir', $config['base_url_dir'], false);
print_input_hidden('id', $id_object_type, false);
print_input_hidden('key', $key, false);
?>
<script type="text/javascript" src="include/js/jquery.validate.js"></script>
<script type="text/javascript" src="include/js/jquery.validation.functions.js"></script>
<script type="text/javascript">
$(document).ready (function () {
$("#external_table").change( function() {
external_table = $("#external_table").val();
id_object_type = $("#hidden-id").val();
var url = $("#hidden-base_url_homedir").val()+"/index.php?sec=inventory&sec2=operation/inventories/manage_external_tables&external_table="+external_table+"&id="+id_object_type;
window.location = url;
});
示例7: print_select
$table->data[4][0] = print_select($days_of_week, "first_day_week", $config["first_day_week"], '', '', '', true, 0, false, __('First day of the week'));
$table->data[4][1] = print_input_text("url_updatemanager", $config["url_updatemanager"], '', 35, 255, true, __('URL update manager'));
$table->data[5][0] = print_input_text("loginhash_pwd", $config["loginhash_pwd"], '', 30, 255, true, __('Loginhash password'));
$table->data[5][1] = print_checkbox("access_protocol", 1, $config["access_protocol"], true, __('Enable HTTPS access'));
$table->data[6][0] = print_input_text("access_port", $config["access_port"], '', 10, 255, true, __('Access port') . print_help_tip(__("Leave blank to use default port (80)"), true));
$table->data[6][1] = print_input_text("access_public", $config["access_public"], '', 30, 50, true, __('Public access to server') . print_help_tip(__("Public IP or name for the server, for example (23.45.67.3 or mydomain.com)"), true));
$csv_standard_encoding = !isset($config['csv_standard_encoding']) ? false : (bool) $config['csv_standard_encoding'];
$table->data[7][0] = print_label(__('CSV encoding type'), '', '', true);
$table->data[7][0] .= __('Excel') . ' ' . print_radio_button('csv_standard_encoding', 0, '', $csv_standard_encoding, true);
$table->data[7][0] .= print_help_tip(__("The Excel type may not be compatible with other applications"), true);
$table->data[7][0] .= ' ' . __('Other') . ' ' . print_radio_button('csv_standard_encoding', 1, '', $csv_standard_encoding, true);
$table->data[7][1] = print_checkbox("enable_update_manager", 1, $config["enable_update_manager"], true, __('Enable update manager updates'));
$table->data[8][0] = print_input_text("max_direct_download", $config["max_direct_download"], '', 10, 255, true, __('Maximum direct download size (MB)'));
$table->data[8][1] = print_input_text("max_file_size", $config["max_file_size"], '', 10, 255, true, __('Max. Upload file size'));
echo "<form name='setup' method='post'>";
print_table($table);
echo "<div class='button-form'>";
print_input_hidden('update', 1);
print_submit_button(__('Update'), 'upd_button', false, 'class="sub upd"');
echo "</div>";
echo '</form>';
?>
<script type="text/javascript" src="include/js/integria.js"></script>
<script type="text/javascript">
$(document).ready (function () {
$("textarea").TextAreaResizer ();
});
</script>
示例8: print_company_autocomplete_input
$table->data[1][0] = print_company_autocomplete_input($params);
$table->data[1][1] = print_input_text('search_date_begin', $search_date_begin, '', 15, 20, true, __('Date from'));
$table->data[1][2] = print_input_text('search_date_end', $search_date_end, '', 15, 20, true, __('Date to'));
$table->data[1][3] = print_input_text('search_min_billing', $search_min_billing, '', 15, 20, true, __('Min. billing'));
$buttons = print_submit_button(__('Search'), "search_btn", false, 'class="sub search"', true);
// Delete new lines from the string
$where_clause = str_replace(array("\r", "\n"), '', $where_clause);
$buttons .= print_button(__('Export to CSV'), '', false, 'window.open(\'' . 'include/export_csv.php?export_csv_companies=1&where_clause=' . str_replace('"', "\\'", $where_clause) . '&date=' . $date . '\')', 'class="sub csv"', true);
$table->data[2][0] = $buttons;
$table->colspan[2][0] = 4;
echo '<form method="post" id="company_stats_form" action="index.php?sec=customers&sec2=operation/companies/company_detail">';
print_table($table);
// Input hidden for ORDER
print_input_hidden('order_by_activity', $order_by_activity);
print_input_hidden('order_by_company', $order_by_company);
print_input_hidden('order_by_billing', $order_by_billing);
echo '</form>';
$companies = crm_get_companies_list($where_clause, $date, $order_by, false, $having);
$companies = print_array_pagination($companies, "index.php?sec=customers&sec2=operation/companies/company_detail{$search_params}", $offset);
if ($companies !== false) {
$table->width = "99%";
$table->class = "listing";
$table->data = array();
$table->style = array();
$table->colspan = array();
$table->head[0] = __('ID');
$table->head[1] = __('Company') . $company_order_image;
$table->head[2] = __('Role');
$table->head[3] = __('Contracts');
$table->head[4] = __('Leads');
$table->head[5] = __('Manager');
示例9: print_submit_button
$table->data[4][0] = "<b>".__('Description')."</b><br>$description<br>";
}
echo '<form method="post" id="contact_form">';
print_table ($table);
if ($new_contact || ($id && ($write_permission || $manage_permission)) ) {
echo "<div class='no' style='width:100%; text-align:right;'>";
unset($table->data);
$table->class = "button-form";
if ($id) {
$button = print_submit_button (__('Update'), 'update_btn', false, 'class="sub upd"', true);
$button .= print_input_hidden ('update_contact', 1, true);
$button .= print_input_hidden ('id', $id, true);
} else {
$button = print_submit_button (__('Create'), 'create_btn', false, 'class="sub create"', true);
$button .= print_input_hidden ('create_contact', 1, true);
}
$table->data['button'][0] = $button;
$table->colspan['button'][0] = 2;
print_table ($table);
echo "</div>";
}
echo "</form>";
}
?>
<script type="text/javascript" src="include/js/jquery.validate.js"></script>
<script type="text/javascript" src="include/js/jquery.validation.functions.js"></script>
<script type="text/javascript">
示例10: check_login
global $config;
check_login();
$id = (int) get_parameter('id');
$incident_creator = get_db_value("id_creator", "tincidencia", "id_incidencia", $id);
if (!give_acl($config["id_user"], 0, "IW") && $config['id_user'] != $incident_creator) {
// Doesn't have access to this page
audit_db($config['id_user'], $config["REMOTE_ADDR"], "ACL Violation", "Trying to access to ticket #" . $id);
include "general/noaccess.php";
return;
}
$title = get_db_value("titulo", "tincidencia", "id_incidencia", $id);
echo '<div id="upload_result"></div>';
echo "<div id='upload_control'>";
$table->width = '100%';
$table->data = array();
$table->data[0][0] = "<span style='font-size: 10px'>" . __("Please note that you cannot upload .php or .pl files, as well other source code formats. Please compress that files prior to upload (using zip or gz)") . "</span>";
$table->data[1][0] = print_textarea('file_description', 8, 1, '', "style='resize:none'", true, __('Description'));
if (defined('AJAX')) {
$action = 'ajax.php?page=operation/incidents/incident_detail';
} else {
$action = 'index.php?sec=incidents&sec2=operation/incidents/incident_detail';
}
$into_form = print_table($table, true);
$into_form .= '<div class="button" style="width: ' . $table->width . '">';
$into_form .= print_button(__('Upload'), 'upload', false, '', 'class="sub upload"', true);
$into_form .= '</div>';
$into_form .= print_input_hidden('id', $id, true);
$into_form .= print_input_hidden('upload_file', 1, true);
// Important: Set id 'form-add-file' to form. It's used from ajax control
print_input_file_progress($action, $into_form, 'id="form-add-file"', 'sub next', 'button-upload');
echo '</div>';
示例11: print_button
if ($operation == 'multiple_wu_insert') {
echo "<div id='tab2' class='ui-tabs-panel'>"; //Multiple WU
echo "<table width='100%' class='search-table-button'>";
echo "<tr>";
echo "<td style='text-align: right;'>";
echo print_button (__('Add new parse Workunit'), 'add_link', false, 'location.href=\'index.php?sec=users&sec2=operation/users/user_spare_workunit\'', 'class="sub create"');
echo "</td>";
echo "</table>";
foreach ($multiple_wu_report as $number => $mwur) {
print_single_workunit_report($mwur);
}
}
else {
echo "<div id='tab2' class='ui-tabs-panel ui-tabs-hide'>"; //Multiple WU
echo '<form id="multiple_task_form" method="post" onsubmit="return validate_multiple_form()">';
print_input_hidden ('operation', 'multiple_wu_insert');
//Massive work unit list
create_new_table_multiworkunit(1);
echo "<table width='100%' class='button-form'>";
echo "<tr>";
echo "<td style='width: 90%;'>";
echo "</td>";
echo "<td>";
echo print_button (__('Add'), 'add_multi_wu', false, '', 'class="sub create"');
echo "</td>";
echo "<td>";
echo print_submit_button (__('Save'), 'btn_upd', false, 'class="sub save"');
echo "</td>";
echo "</tr>";
echo "</table>";
示例12: print_input_text
echo '<td><b>'.__('End').' </b>';
echo print_input_text ('end_date', $end_date, '', 11, 20, true) ."</td>";
echo '</tr>';
// Description
echo '<tr>';
echo "<td colspan=2><b>".__("Description")."</b></td>";
echo '</tr><tr>';
echo '<td colspan=2><textarea name="description">'. $description ."</textarea></td>";
echo "</tr>";
// Buttom
echo "<tr><td colspan=2>";
if ($project_access['manage']) {
echo print_input_hidden ('id_project', $id_project, true);
echo print_input_hidden ('action', 'update', true);
echo print_submit_button (__('Update'), 'upd_btn', false, 'class="sub upd"', true);
}
echo "</td></tr>";
echo "</table>";
// People involved
//Get users with tasks
$sql = sprintf("SELECT DISTINCT id_user FROM trole_people_task, ttask WHERE ttask.id_project= %d AND ttask.id = trole_people_task.id_task", $id_project);
$users_aux = get_db_all_rows_sql($sql);
if(empty($users_aux)) {
$users_aux = array();
}
示例13: get_db_value
echo '<a href="index.php?sec=customers&sec2=operation/leads/template_manager&operation=edit&id=' . $todo["id"] . '">';
echo "<b>" . $todo["name"] . "</b></a>";
echo "<td valign=top>";
echo "<b>" . $todo["id_language"] . "</b>";
echo "<td valign=top>";
$company_name = get_db_value('name', 'tcompany', 'id', $todo["id_company"]);
echo $company_name;
echo '<td align="center" valign=top>';
echo '<a href="index.php?sec=customers&sec2=operation/leads/template_manager&operation=edit&id=' . $todo["id"] . '"><img border=0 src="images/wrench.png"></a> ';
echo '<a href="index.php?sec=customers&sec2=operation/leads/template_manager&operation=delete&id=' . $todo["id"] . '" onClick="if (!confirm(\' ' . __('Are you sure?') . '\')) return false;"><img border=0 src="images/cross.png"></a>';
}
echo "</table>";
echo '<form method="post" action="index.php?sec=customers&sec2=operation/leads/template_manager">';
echo '<div style="width: 99%; text-align: right;">';
print_submit_button(__('Create'), 'crt', false, 'class="sub create"');
print_input_hidden('operation', 'create');
echo '</form></div>';
}
// Fin bloque else
?>
<script type="text/javascript" src="include/js/jquery.validate.js"></script>
<script type="text/javascript" src="include/js/jquery.validation.functions.js"></script>
<script type="text/javascript">
// Form validation
trim_element_on_submit('#text-name');
validate_form("#form-template_manager");
var rules, messages;
// Rules: #text-name
示例14: print_input_hidden
print_input_hidden("offset", get_parameter("offset"));
echo "</form>";
/* Add a form to carry filter between treeview and listview */
echo '<form id="list_view_inventory" method="post" action="index.php?sec=inventory&sec2=operation/inventories/inventory" style="clear: both">';
print_input_hidden("search_free", $search_free);
print_input_hidden("id_object_type_search", $id_object_type);
foreach ($object_fields as $k => $v) {
print_input_hidden("object_fields_search[]", $k);
}
print_input_hidden("owner", $owner);
print_input_hidden("id_contract", $id_contract);
print_input_hidden("id_manufacturer", $id_manufacturer);
print_input_hidden("last_update", $last_update);
print_input_hidden('search', 1);
print_input_hidden('mode', 'list');
print_input_hidden("offset", get_parameter("offset"));
echo "</form>";
?>
<script type="text/javascript" src="include/js/jquery.ui.autocomplete.js"></script>
<script type="text/javascript" src="include/js/integria_inventory.js"></script>
<script type="text/javascript" src="include/js/fixed-bottom-box.js"></script>
<script type="text/javascript">
$(document).ready (function () {
$("#listview_form_submit").click(function (event) {
event.preventDefault();
$("#list_view_inventory").submit();
});
示例15: array
if ($buildings !== false) {
$table->width = '90%';
$table->class = 'listing';
$table->data = array();
$table->size = array();
$table->size[2] = '40px';
$table->style = array();
$table->style[0] = 'font-weight: bold';
$table->head[0] = __('Name');
$table->head[1] = __('Description');
$table->head[2] = __('Delete');
foreach ($buildings as $building) {
$data = array();
$data[0] = '<a href=index.php?sec=inventory&sec2=operation/buildings/building_detail&id=' . $building['id'] . '">' . $building['name'] . '</a>';
$data[1] = substr($building['description'], 0, 50) . "...";
$data[2] = '<a href="index.php?sec=inventory&
sec2=operation/buildings/building_detail&
delete_building=1&id=' . $building['id'] . '"
onClick="if (!confirm(\'' . __('Are you sure?') . '\'))
return false;"><img src="images/cross.png"></a>';
array_push($table->data, $data);
}
print_table($table);
}
echo '<form method="post" action="index.php?sec=inventory&sec2=operation/buildings/building_detail">';
echo '<div class="button" style="width: ' . $table->width . '">';
print_submit_button(__('Create'), 'new_btn', false, 'class="sub next"');
print_input_hidden('new_building', 1);
echo '</div>';
echo '</form>';
}