本文整理汇总了PHP中print_input_text函数的典型用法代码示例。如果您正苦于以下问题:PHP print_input_text函数的具体用法?PHP print_input_text怎么用?PHP print_input_text使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了print_input_text函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
<?php
} else {
?>
<table cellpadding="0" cellspacing="3">
<?php
foreach ($mission_array['completed'] as $k3 => $v3) {
?>
<form method="post" action="<?php
echo $webLocation;
?>
admin.php?page=manage&sub=missions&s=3">
<tr>
<td colspan="2" valign="top">
<span class="fontNormal"><b>Title</b></span><br />
<input type="text" class="image" name="missionTitle" value="<?php
echo print_input_text($v3['title']);
?>
" />
</td>
<td valign="top">
<span class="fontNormal"><b>Start Date</b></span><br />
<input type="text" class="date" name="missionStart" value="<?php
if (empty($v3['start'])) {
echo "0000-00-00 00:00:00";
} else {
echo dateFormat("sql", $v3['start']);
}
?>
" />
</td>
<td width="55%" rowspan="3" align="center" valign="top">
示例2: get_priority_name
Participants : %s
Description
------------------------------------------------------------------------------------------------------
%s
------------------------------------------------------------------------------------------------------
", $task["name"], $project_manager, $task["start"], $task["end"], get_priority_name($task["priority"]), $task_days, $task_cost, $task["completion"], $participants, $task["description"]);
$section_title = __("Task report details");
$section_subtitle = $project_name . " >> " .$task["name"];
$t_menu = print_task_tabs();
print_title_with_menu ($section_title, $section_subtitle, "task_emailreport", 'projects', $t_menu, 'email');
echo "<form method=post action=''>";
echo "<table width=100% class=search-table-button>";
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);
示例3: get_parameter
$search_text = (string) get_parameter('search_text');
$id_company = (int) get_parameter('id_company', 0);
$where_clause = "WHERE 1=1";
if ($search_text != "") {
$where_clause .= " AND (fullname LIKE '%{$search_text}%' OR email LIKE '%{$search_text}%' OR phone LIKE '%{$search_text}%' OR mobile LIKE '%{$search_text}%') ";
}
if ($id_company) {
$where_clause .= sprintf(' AND id_company = %d', $id_company);
}
$search_params = "&search_text={$search_text}&id_company={$id_company}";
$table->width = '99%';
$table->class = 'search-table';
$table->style = array();
$table->style[0] = 'font-weight: bold;';
$table->data = array();
$table->data[0][0] = print_input_text("search_text", $search_text, "", 15, 100, true, __('Search'));
$params = array();
$params['input_id'] = 'id_company';
$params['input_name'] = 'id_company';
$params['input_value'] = $id_company;
$params['title'] = __('Company');
$params['return'] = true;
$table->data[0][1] = print_company_autocomplete_input($params);
$table->data[0][2] = 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);
$table->data[0][3] = print_button(__('Export to CSV'), '', false, 'window.open(\'include/export_csv.php?export_csv_contacts=1&where_clause=' . str_replace("'", "\\'", $where_clause) . '\')', 'class="sub csv"', true);
echo '<form id="contact_search_form" method="post">';
print_table($table);
echo '</form>';
$contacts = crm_get_all_contacts($where_clause);
示例4: array
$table->data = array();
// Field name
$table->data[0][0] = print_input_text('label', $label, '', 45, 100, true, __('Field name'), $global_field);
// Type
$types = array('text' => __('Text'), 'textarea' => __('Textarea'), 'combo' => __('Combo'), 'linked' => __('Linked'), 'numeric' => __('Numeric'));
$table->data[0][1] = print_select($types, 'type', $type, '', '', '', true, 0, false, __("Type"), $global_field);
// Show in the ticket list
$table->data[0][2] = print_checkbox('show_in_list', 1, $show_in_list, true, __('Show in the tickets list'), $global_field);
// Global field
$table->data[0][3] = print_checkbox('global', 1, $global_field, true, __('Global field'), $global_field);
// Combo value
$table->data['id_combo_value'][0] = print_input_text('combo_value', $combo_value, '', 45, 0, true, __('Combo value'), $global_field);
$table->data['id_combo_value'][0] .= print_help_tip(__("Set values separated by comma"), true);
// Add values
if ($global_field) {
$table->data['id_combo_value'][1] = print_input_text('add_combo_value', $add_combo_value, '', 45, 0, true, __('Add values')) . print_help_tip(__("Set values separated by comma"), true);
}
// Linked values
$sql = "SELECT id, label\n\t\tFROM tincident_type_field\t\n\t\tWHERE id_incident_type = {$id_incident_type}\n\t\t\tAND type = 'linked'";
$parents_result = get_db_all_rows_sql($sql);
if ($parents_result == false) {
$parents_result = array();
}
$parents = array();
foreach ($parents_result as $result) {
$parents[$result['id']] = $result['label'];
}
$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] = "";
示例5: StdClass
$select_label_object .= '</div>';
$select_label_object .= '</td></tr></table>';
$select_label_object .= '</div>';
print_container_div("inventory_column",__("Column editor"),$select_label_object, 'open', false, false);
$search_other = "<div class='divresult_inventory'>";
$table_search = new StdClass();
$table_search->class = 'search-table-button';
$table_search->width = '100%';
$table_search->data = array ();
$table_search->size[0] = "40%";
$table_search->size[1] = "35%";
//find
$table_search->data[0][0] = print_input_text ('search_free', $params['search_free'], '', 25, 128, true, __('Search'). print_help_tip (__("Search by id, name, status, description and custom fields"), true));
//associate company
$companies = get_companies();
$companies[0] = __("All");
if(!isset($params['id_company'])){
$params['id_company'] = 0;
}
$table_search->data[0][1] = print_select ($companies, 'id_company', $params['id_company'],'', '', 0, true, false, false, __('Associated company'), '', 'width: 218px;');
//owner
if(!isset($params['owner'])){
$params['owner'] = "";
}
$params_assigned['input_id'] = 'text-owner';
$params_assigned['input_name'] = 'owner';
示例6: array
echo "<div id='button-bar-title'><ul>";
echo "<li><a href='index.php?sec=projects&sec2=operation/inventories/inventory_reports'>".print_image ("images/flecha_volver.png", true, array("title" => __("Back to Report")))."</a></li>";
echo "</ul></div>";
echo "</h4>";
}
echo $result_msg;
$table = new stdClass;
$table->width = '100%';
$table->class = 'search-table-button';
$table->data = array ();
$table->colspan = array ();
$table->colspan[1][0] = 2;
$table->colspan[2][0] = 2;
$table->data[0][0] = print_input_text ('name', $name, '', 40, 255, true, __('Name'));
$groups = get_user_groups ($config['id_user'], "VR");
$groups[0] = __('None');
$table->data[0][1] = print_select ($groups, "id_group", $id_group, '', '', 0, true, false, false, __('Group'));
$table->data[1][0] = print_textarea ('sql', 10, 100, $sql, '', true, __('Report SQL sentence'));
if (dame_admin ($config['id_user'])) {
if ($id) {
$button = print_input_hidden ('update_report', 1, true);
$button .= print_input_hidden ('id', $id, true);
$button .= print_submit_button (__('Update'), 'update', false, 'class="sub upd"', true);
} else {
$button = print_input_hidden ('create_report', 1, true);
$button .= print_submit_button (__('Create'), 'create', false, 'class="sub create"', true);
示例7: print_input_password
$table->data[2][1] = print_input_password("api_password", $config["api_password"], '', 30, 255, true, __('API password'));
$days_of_week = get_days_of_week();
$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 ();
});
示例8: array
$table->data = array ();
$table->colspan = array ();
$table->colspan[0][0] = 4;
$table->colspan[1][0] = 4;
$table->colspan[4][0] = 4;
if ($new_contact || ($id && ($write_permission || $manage_permission)) ) {
$table->class = "search-table-button";
$table->data[0][0] = print_input_text ("fullname", $fullname, "", 60, 100, true, __('Full name'));
$table->data[1][0] = print_input_text ("email", $email, "", 35, 100, true, __('Email'));
$table->data[2][0] = print_input_text ("phone", $phone, "", 15, 60, true, __('Phone number'));
$table->data[2][1] = print_input_text ("mobile", $mobile, "", 15, 60, true, __('Mobile number'));
$table->data[3][0] = print_input_text ('position', $position, '', 25, 50, true, __('Position'));
$params = array();
$params['input_id'] = 'id_company';
$params['input_name'] = 'id_company';
$params['input_value'] = $id_company;
$params['title'] = __('Company');
$params['return'] = true;
$table->data[3][1] = print_company_autocomplete_input($params);
if ($id) {
$table->data[3][1] .= " <a href='index.php?sec=customers&sec2=operation/companies/company_detail&id=$id_company'>";
$table->data[3][1] .= "<img src='images/company.png'></a>";
}
$table->data[4][0] = print_textarea ("description", 10, 1, $description, '', true, __('Description'));
示例9: array
<div class="overlay_content" id="login_overlay">
<div class="title">Log into Splash Games</div>
<form method="POST" action="">
<div class="content">
<a href="#" class="fb_login"><img src="/img/fb_login_button.jpg" alt="Facebook login"></a>
<span class="or">OR</span>
<?php
// Email Address
$email = array('name' => 'email', 'id' => 'email', 'mandatory' => TRUE, 'label' => 'Email Address', 'tabindex' => 1);
echo print_input_text($email, $loginOldValues, $loginErrors);
// Password
$password = array('name' => 'password', 'id' => 'password', 'mandatory' => TRUE, 'label' => 'Password', 'tabindex' => 5);
echo print_input_password($password, $loginOldValues, $loginErrors);
// Remeber me
$sendOffer = array('name' => 'remember', 'id' => 'remember', 'mandatory' => FALSE, 'label' => 'Remember me next time', 'value' => 1, 'tabindex' => 10);
echo print_checkbox($sendOffer, $loginOldValues, $loginErrors);
?>
<div class="field forgot_password">
<a href="/forgot-password" class="forgot_password">Forgot password?</a>
</div>
</div>
<div class="submit_container">
示例10: print_input_text
$table->data[0][0] = print_input_text("search_text", $search_text, "", 15, 100, true, __('Search'));
$table->data[0][1] = print_select_from_sql('SELECT id, name FROM tcompany_role ORDER BY name', 'search_role', $search_role, '', __('Select'), 0, true, false, false, __('Company Role'));
$table->data[0][2] = print_input_text("search_country", $search_country, "", 10, 100, true, __('Country'));
$table->data[0][3] = print_input_text_extended('search_manager', $search_manager, 'text-user', '', 15, 30, false, '', array(), true, '', __('Manager')) . print_help_tip(__("Type at least two characters to search"), true);
// $companies_name = crm_get_companies_list("", false, "ORDER BY name", true);
// $table->data[1][0] = print_select ($companies_name, 'search_parent', $search_parent, '', __('Any'), 0, true, false, false, __('Parent'));
$params = array();
$params['input_id'] = 'search_parent';
$params['input_name'] = 'search_parent';
$params['input_value'] = $search_parent;
$params['title'] = __('Parent');
$params['return'] = true;
$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);
示例11: mysql_query
$newsResult = mysql_query($news);
while ($newsFetch = mysql_fetch_assoc($newsResult)) {
extract($newsFetch, EXTR_OVERWRITE);
?>
<form method="post" action="<?php
echo $webLocation;
?>
admin.php?page=manage&sub=news&id=<?php
echo $id;
?>
">
<tr>
<td>
<b>Title</b><br />
<input type="text" class="name" name="newsTitle" maxlength="100" value="<?php
echo print_input_text($newsTitle);
?>
" />
</td>
<td colspan="2">
<b>Category</b><br />
<select name="newsCat">
<?php
$cats = "SELECT * FROM sms_news_categories ORDER BY catid ASC";
$catsResult = mysql_query($cats);
while ($catFetch = mysql_fetch_assoc($catsResult)) {
extract($catFetch, EXTR_OVERWRITE);
if ($newsCat == $catid) {
echo "<option value='{$newsCat}' selected>" . stripslashes($catName) . "</option>";
} else {
echo "<option value='{$catid}'>" . stripslashes($catName) . "</option>";
示例12: combo_user_task_profile
$table->data[1][0] = combo_user_task_profile ($id_task, 'id_profile',
$id_profile, false, true);
}
// Show task combo if none was given.
if (! $id_task) {
$table->data[0][1] = combo_task_user_participant ($wu_user,
true, 0, true, __('Task'));
}
else {
$table->data[0][1] = combo_task_user_participant ($wu_user,
true, $id_task, true, __('Task'));
}
// Time used
$table->data[2][0] = print_input_text ('duration', $duration, '', 7, 7,
true, __('Time used'));
if (dame_admin ($config['id_user'])) {
$table->colspan[2][1] = 3;
$params = array();
$params['input_id'] = 'text-id_username';
$params['input_name'] = 'id_username';
$params['input_value'] = $wu_user;
$params['title'] = 'Username';
$params['return'] = true;
$params['return_help'] = true;
$params['attributes'] = "style='width:210px;'";
$table->data[2][1] = user_print_autocomplete_input($params);
}
示例13: get_parameter
// FILTER
// GET FILTER PARAMETERS
$status = get_parameter('status', 0);
$search = get_parameter('search', '');
unset($table);
$table->class = 'result_table';
$table->width = '98%';
$table->data = array();
$table->header = array();
$table->style[0] = 'width:60px;text-align:right;';
$table->style[1] = 'width:150px';
$table->style[2] = 'width:60px;text-align:right;';
$table->style[3] = 'width:150px';
$table->style[4] = 'width:100px';
$table->data[0][0] = "<b>" . __('Search') . "</b>";
$table->data[0][1] = print_input_text('search', $search, '', 20, 0, true);
$table->data[0][2] = "<b>" . __('Status') . "</b>";
$table->data[0][3] = print_select($statuses, 'status', $status, '', __('Any'), 0, true);
$table->data[0][4] = print_submit_button(__('Filter'), '', false, 'class="sub search"', true);
$table->data[0][5] = '';
echo '<form method="post">';
print_table($table);
echo '</form>';
unset($table);
// INCIDENT LIST
$table->class = 'result_table listing';
$table->width = '98%';
$table->id = 'incident_search_result_table';
$table->head = array();
$table->head[0] = __('ID');
$table->head[1] = __('Ticket');
示例14:
print_table ($table);
}
//id_incident hidden
echo '<div id="id_incident_hidden" style="display:none;">';
print_input_text('id_incident_hidden', $id);
echo '</div>';
//id_user hidden
echo '<div id="id_user_hidden" style="display:none;">';
print_input_text('id_user_hidden', $config['id_user']);
echo '</div>';
//is_enterprise hidden
echo '<div id="is_enterprise_hidden" style="display:none;">';
print_input_text('is_enterprise_hidden', $is_enterprise);
echo '</div>';
echo "<div class= 'dialog ui-dialog-content' title='".__("Inventory objects")."' id='inventory_search_window'></div>";
echo "<div class= 'dialog ui-dialog-content' title='".__("Tickets")."' id='parent_search_window'></div>";
echo "<div class= 'dialog ui-dialog-content' title='".__("Contacts")."' id='contact_search_window'></div>";
echo "<div class= 'dialog ui-dialog-content' title='".__("Users")."' id='users_search_window'></div>";
echo "<div class= 'dialog ui-dialog-content' title='".__("Warning")."' id='ticket_childs'></div>";
?>
<script type="text/javascript" src="include/js/jquery.metadata.js"></script>
示例15: print_input_text
$row[] = print_input_text("smtp_queue_retries", $config["smtp_queue_retries"], '', 5, 10, true, __('SMTP Queue retries') . print_help_tip(__("This are the number of attempts the mail queue try to send the mail. Should be high (20-30) if your internet connection have frequent downtimes and near zero if its stable"), true));
$row[] = print_input_text("max_pending_mail", $config["max_pending_mail"], '', 10, 255, true, __('Max pending mail') . print_help_tip(__("Maximum number of queued emails. When this number is exceeded, an alert is activated"), true));
$row[] = print_input_text("batch_newsletter", $config["batch_newsletter"], '', 4, 255, true, __('Max. emails sent per execution') . print_help_tip(__("This means, in each execution of the batch external process (integria_cron). If you set your cron to execute each hour in each execution of that process will try to send this ammount of emails. If you set the cron to run each 5 min, will try this number of mails."), true));
$table->data[] = $row;
$row = array();
$row[] = "<br /><h4>" . __("POP/IMAP Parameters") . "</h4>";
$table->data['pop-imap'] = $row;
$table->colspan['pop-imap'][0] = $cols;
$row = array();
$row[] = print_select($popimap, "select_pop_imap", $config["select_pop_imap"], '', '', '', true, 0, true, __('Select IMAP or POP'));
$row[] = print_input_text("pop_host", $config["pop_host"], '', 25, 30, true, __('POP/IMAP Host') . print_help_tip(__("Use ssl://host.domain.com if want to use IMAP with SSL"), true));
$row[] = print_input_text("pop_port", $config["pop_port"], '', 15, 30, true, __('POP/IMAP Port') . print_help_tip(__("POP3: Port 110, IMAP: Port 143, IMAPS: Port 993, SSL-POP: Port 995"), true));
$table->data[] = $row;
$row = array();
$row[] = print_input_text("pop_user", $config["pop_user"], '', 15, 30, true, __('POP/IMAP User'));
$row[] = print_input_text("pop_pass", $config["pop_pass"], '', 15, 30, true, __('POP/IMAP Password'));
$table->data[] = $row;
$row = array();
$row[] = "<br /><h4>" . __("Mail general texts") . "</h4>";
$table->data['mail_header_footer'] = $row;
$table->colspan['mail_header_footer'][0] = $cols;
$row = array();
$row[] = print_textarea("header_email", 9, 40, $config["HEADER_EMAIL"], '', true, __('Email header'));
$table->data['header_email'] = $row;
$table->colspan['header_email'][0] = $cols;
$row = array();
$row[] = print_textarea("footer_email", 15, 40, $config["FOOTER_EMAIL"], '', true, __('Email footer'));
$table->data['footer_email'] = $row;
$table->colspan['footer_email'][0] = $cols;
$total_pending = get_db_sql("SELECT COUNT(*) from tpending_mail");
$row = array();