本文整理匯總了PHP中print_help_tip函數的典型用法代碼示例。如果您正苦於以下問題:PHP print_help_tip函數的具體用法?PHP print_help_tip怎麽用?PHP print_help_tip使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了print_help_tip函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: user_print_autocomplete_input
function user_print_autocomplete_input($parameters)
{
if (isset($parameters['input_name'])) {
$input_name = $parameters['input_name'];
}
$input_value = '';
if (isset($parameters['input_value'])) {
$input_value = $parameters['input_value'];
}
if (isset($parameters['input_id'])) {
$input_id = $parameters['input_id'];
}
$return = false;
if (isset($parameters['return'])) {
$return = $parameters['return'];
}
$input_size = 20;
if (isset($parameters['size'])) {
$input_size = $parameters['size'];
}
$input_maxlength = 30;
if (isset($parameters['maxlength'])) {
$input_maxlength = $parameters['maxlength'];
}
$src_code = print_image('images/group.png', true, false, true);
if (isset($parameters['image'])) {
$src_code = print_image($parameters['image'], true, false, true);
}
$title = '';
if (isset($parameters['title'])) {
$title = $parameters['title'];
}
$help_message = "Type at least two characters to search";
if (isset($parameters['help_message'])) {
$help_message = $parameters['help_message'];
}
$return_help = true;
if (isset($parameters['return_help'])) {
$return_help = $parameters['return_help'];
}
$disabled = false;
if (isset($parameters['disabled'])) {
$disabled = $parameters['disabled'];
}
$attributes = '';
if (isset($parameters['attributes'])) {
$attributes = $parameters['attributes'];
}
return print_input_text_extended($input_name, $input_value, $input_id, '', $input_size, $input_maxlength, $disabled, '', $attributes, $return, '', $title . print_help_tip($help_message, $return_help));
}
示例2: __
echo '<table class="search-table-button" style="width: 99%;" border=0>';
echo '<tr>';
echo '<td width="25%"><b>' . __('User ') . ' </b>';
$params = array();
$params['input_value'] = $id_user_filter;
$params['input_id'] = 'text-user';
$params['input_name'] = 'user';
$params['return'] = false;
$params['return_help'] = false;
user_print_autocomplete_input($params);
echo '</td>';
echo '<td width="25%"><b>' . __('Start') . ' </b>';
print_help_tip(__('Empty date is all range time of project'));
print_input_text('start_date', $start_date, '', 10, 20);
echo '<td width="25%"><b>' . __('End') . ' </b>';
print_help_tip(__('Empty date is all range time of project'));
print_input_text('end_date', $end_date, '', 10, 20);
echo '</tr>';
echo '<tr><td colspan=3>';
print_input_hidden('id_project', $id_project);
print_input_hidden('action', 'update');
print_submit_button(__('Update'), 'upd_btn', false, 'class="sub upd"');
echo '</td></tr>';
echo "</table>";
echo "</form>";
?>
<script type="text/javascript">
add_ranged_datepicker ("#text-start_date", "#text-end_date", null);
</script>
<?php
echo "<div id='time_graph' style='margin: 0px auto; width: 800px;'></div>";
示例3: print_input_text_extended
//Parent name
if(!isset($params['parent_name'])){
$params['parent_name'] = '';
}
$table_search->data[2][1] = print_input_text_extended ("parent_name", $params['parent_name'], "text-parent_name", '', 20, 0, false, "", "class='inventory_obj_search' style='width:165px !important;'", true, false, __('Parent object'), false, true);
$table_search->data[2][1] .= " " . print_image("images/add.png", true, array("onclick" => "show_inventory_search('','','','','','','','','','', '', '')", "style" => "cursor: pointer"));
$table_search->data[2][1] .= " " . print_image("images/cross.png", true, array("onclick" => "cleanParentInventory()", "style" => "cursor: pointer"));
//$table_search->data[2][1] .= print_input_hidden ('id_parent', $id_parent, true);
//check
$table_search->data[2][2] = print_checkbox_extended ('last_update', 1, $params['last_update'],
false, '', '', true, __('Last updated'));
//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');
示例4: __
$table->data[8][1] = "<h4>" . __("POP/IMAP Parameters") . "</h4>";
$table->data[9][0] = print_input_text("pop_host", $config["pop_host"], '', 25, 30, true, __('POP/IMAP Host'));
$table->data[9][0] .= print_help_tip(__("Use ssl://host.domain.com if want to use IMAP with SSL"), true);
$table->data[9][1] = print_input_text("pop_port", $config["pop_port"], '', 15, 30, true, __('POP/IMAP Port'));
$table->data[9][1] .= print_help_tip(__("POP3: Port 110, IMAP: Port 143, IMAPS: Port 993, SSL-POP: Port 995"), true);
$table->data[10][0] = print_input_text("pop_user", $config["pop_user"], '', 15, 30, true, __('POP/IMAP User'));
$table->data[10][1] = print_input_text("pop_pass", $config["pop_pass"], '', 15, 30, true, __('POP/IMAP Password'));
$table->data[11][1] = "<h4>" . __("Newsletter SMTP Parameters") . "</h4>";
$table->data[12][0] = print_input_text("news_smtp_host", $config["news_smtp_host"], '', 35, 200, true, __('SMTP Host'));
$table->data[12][1] = print_input_text("news_smtp_port", $config["news_smtp_port"], '', 5, 10, true, __('SMTP Port'));
$table->data[13][0] = print_input_text("news_smtp_user", $config["news_smtp_user"], '', 25, 200, true, __('SMTP User'));
$table->data[13][1] = print_input_text("news_smtp_pass", $config["news_smtp_pass"], '', 25, 200, true, __('SMTP Password'));
$table->data[14][0] = print_input_text("news_batch_newsletter", $config["news_batch_newsletter"], '', 4, 255, true, __('Max. emails sent per execution'));
$table->data[14][0] .= 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[14][1] = print_input_text("batch_email_validation", $config["batch_email_validation"], '', 4, 255, true, __('Newsletter email validation batch'));
$table->data[14][1] .= print_help_tip(__("This means, in each execution of the batch external process (integria_cron) will try to validate this ammount of emails."), true);
$table->data[15][0] = print_checkbox("active_validate", 1, $config["active_validate"], true, __('Activate email validation'));
$table->data[16][1] = "<h4>" . __("Mail general texts") . "</h4>";
$table->colspan[17][0] = 3;
$table->colspan[18][0] = 3;
$table->colspan[19][0] = 3;
$table->data[17][0] = print_textarea("header_email", 5, 40, $config["HEADER_EMAIL"], '', true, __('Email header'));
$table->data[18][0] = print_textarea("footer_email", 5, 40, $config["FOOTER_EMAIL"], '', true, __('Email footer'));
$table->data[19][1] = "<h4>" . __("Mail queue control");
$total_pending = get_db_sql("SELECT COUNT(*) from tpending_mail");
$table->data[19][1] .= " : " . $total_pending . " " . __("mails in queue") . "</h4>";
if ($total_pending > 0) {
$table->colspan[20][0] = 3;
$mail_queue = "<div style='height: 250px; overflow-y: auto;'>";
$mail_queue .= "<table width=100% class=listing>";
$mail_queue .= "<tr><th>" . __("Date") . "<th>" . __("Recipient") . "<th>" . __("Subject") . "<th>" . __("Attempts") . "<th>" . __("Status") . "</tr>";
示例5: get_inventory_contacts
$contacts = get_inventory_contacts ($id, false);
if ($contacts === false)
$contacts = array ();
$companies = get_companies ();
foreach ($contacts as $contact) {
$data = array ();
if(!isset($companies[$contact['id_company']])){
$companies[$contact['id_company']] = '';
}
$data[0] = $companies[$contact['id_company']];
$data[1] = $contact['fullname'];
$details = '';
if ($contact['phone'] != '')
$details .= '<strong>'.__('Phone number').'</strong>: '.$contact['phone'].'<br />';
if ($contact['mobile'] != '')
$details .= '<strong>'.__('Mobile phone').'</strong>: '.$contact['mobile'].'<br />';
$data[2] = $contact['position'];
$data[3] = print_help_tip ($details, true, 'tip_view');
if ($write_permission) {
$data[4] = '<a href="index.php?sec=inventory&sec2=operation/contacts/contact_detail&id='.$contact['id'].'&id_inventory='.$id.'">'.
'<img src="images/setup.gif" /></a>';
}
array_push ($table->data, $data);
}
print_table ($table);
?>
示例6: array
$icon = $object["icon"];
$min_stock = $object["min_stock"];
$show_in_list = $object["show_in_list"];
}
/*if ($id == -1) {
echo "<h3>".__('Create a new object')."</h3>";
} else {
echo "<h3>".__('Update existing object')."</h3>";
}*/
$table->width = '99%';
$table->class = 'search-table-button';
$table->colspan = array();
$table->colspan[3][0] = 2;
$table->data = array();
$table->data[0][0] = print_input_text('name', $name, '', 45, 100, true, __('Name'));
$table->data[0][1] = '<label>' . __('Show in tree view') . print_help_tip(__('If this value is checked this object type will appear as a root inside inventory\'s tree view.'), true) . '</label>';
$table->data[0][1] .= print_checkbox('show_in_list', 1, $show_in_list, __('Show in tree view'));
$files = list_files('images/objects/', "png", 1, 0);
$table->data[1][0] = print_select($files, 'icon', $icon, '', __('None'), "", true, false, false, __('Icon'));
$table->data[1][0] .= objects_get_icon($id, true);
$table->data[1][1] = print_input_text('min_stock', $min_stock, '', 45, 100, true, __('Min. stock'));
$table->data[2][0] = print_textarea('description', 10, 50, $description, '', true, __('Description'));
$table->colspan[2][0] = 2;
if ($id == -1) {
$button = print_submit_button(__('Create'), 'crt_btn', false, 'class="sub next"', true);
$button .= print_input_hidden('insert_object', 1, true);
} else {
$button = print_submit_button(__('Update'), 'upd_btn', false, 'class="sub upd"', true);
$button .= print_input_hidden('id', $id, true);
$button .= print_input_hidden('update_object', 1, true);
}
示例7: combo_users_task
function combo_users_task($id_task, $icon_list = false, $return = false)
{
global $config;
// Show only users assigned to this project
$task_users = get_db_all_rows_field_filter('trole_people_task', 'id_task', $id_task);
$visible_users = get_user_visible_users($config["id_user"], 'PR', true);
$users = array();
if ($task_users) {
foreach ($task_users as $user) {
if (isset($visible_users[$user['id_user']])) {
if ($icon_list) {
array_push($users, $user);
} else {
$users[$user['id_user']] = $user['id_user'];
}
}
}
}
$output = '';
if (!$icon_list) {
$output .= print_select($users, 'user', '', '', '', '', true, 0, true, false, false, "width:100px");
} else {
$text = __('Users') . ':<br />';
$users_size = count($users);
$count = 0;
foreach ($users as $user) {
$count++;
$text .= $user["id_user"];
if ($count < $users_size) {
$text .= ", ";
}
}
$output .= print_help_tip($text, true, 'tip_people');
}
if ($return) {
return $output;
}
echo $output;
}
示例8: ui_print_truncate_text
function ui_print_truncate_text($text, $numChars = GENERIC_SIZE_TEXT, $showTextInAToopTip = true, $return = true, $showTextInTitle = true, $suffix = '…', $style = false)
{
global $config;
if (is_string($numChars)) {
switch ($numChars) {
case 'agent_small':
$numChars = $config['agent_size_text_small'];
break;
case 'agent_medium':
$numChars = $config['agent_size_text_medium'];
break;
case 'module_small':
$numChars = $config['module_size_text_small'];
break;
case 'module_medium':
$numChars = $config['module_size_text_medium'];
break;
case 'description':
$numChars = $config['description_size_text'];
break;
case 'item_title':
$numChars = $config['item_title_size_text'];
break;
default:
$numChars = (int) $numChars;
break;
}
}
if ($numChars == 0) {
if ($return == true) {
return $text;
} else {
echo $text;
}
}
$text = safe_output($text);
if (mb_strlen($text, "UTF-8") > $numChars) {
// '/2' because [...] is in the middle of the word.
$half_length = intval(($numChars - 3) / 2);
// Depending on the strange behavior of mb_strimwidth() itself,
// the 3rd parameter is not to be $numChars but the length of
// original text (just means 'large enough').
$truncateText2 = mb_strimwidth($text, mb_strlen($text, "UTF-8") - $half_length, mb_strlen($text, "UTF-8"), "", "UTF-8");
$truncateText = mb_strimwidth($text, 0, $numChars - $half_length, "", "UTF-8") . $suffix;
$truncateText = $truncateText . $truncateText2;
if ($showTextInTitle) {
if ($style === null) {
$truncateText = $truncateText;
} else {
if ($style !== false) {
$truncateText = '<span style="' . $style . '" title="' . $text . '">' . $truncateText . '</span>';
} else {
$truncateText = '<span title="' . $text . '">' . $truncateText . '</span>';
}
}
}
if ($showTextInAToopTip) {
$truncateText = $truncateText . print_help_tip($text, true);
} else {
if ($style !== false) {
$truncateText = '<span style="' . $style . '">' . $truncateText . '</span>';
}
}
} else {
if ($style !== false) {
$truncateText = '<span style="' . $style . '">' . $text . '</span>';
} else {
$truncateText = $text;
}
}
if ($return == true) {
return $truncateText;
} else {
echo $truncateText;
}
}
示例9: form_search_incident
//.........這裏部分代碼省略.........
foreach ($linked_values as $value) {
$value_without_parent = preg_replace("/^.*\\|/", "", $value);
$values[$value_without_parent] = $value_without_parent;
$has_childs = get_db_all_rows_sql("SELECT * FROM tincident_type_field WHERE parent=" . $type_field['id']);
if ($has_childs) {
$i = 0;
foreach ($has_childs as $child) {
if ($i == 0) {
$childs = $child['id'];
} else {
$childs .= ',' . $child['id'];
}
$i++;
}
$childs = "'" . $childs . "'";
$script = 'javascript:change_linked_type_fields_table(' . $childs . ',' . $type_field['id'] . ');';
} else {
$script = '';
}
}
$input = print_select($values, 'search_type_field_' . $type_field['id'], $data, $script, __('Any'), '', true, false, false, $type_field['label']);
break;
case "numeric":
$input = print_input_number('search_type_field_' . $type_field['id'], $data, 1, 1000000, '', true, $type_field['label']);
break;
case "date":
$input = print_input_date('search_type_field_' . $type_field['id'], $data, '', '', '', true, $type_field['label']);
break;
case "textarea":
$input = print_input_text('search_type_field_' . $type_field['id'], $data, '', 30, 30, true, $type_field['label']);
break;
}
$table_type_fields->data[$row][$column] = $input;
if ($column >= 3) {
$column = 0;
$row++;
} else {
$column++;
}
}
}
$table_advanced->colspan[6][0] = 4;
if ($table_type_fields->data) {
$table_type_fields_html = print_table($table_type_fields, true);
}
if (!isset($table_type_fields_html)) {
$table_type_fields_html = '';
}
$table_advanced->data[6][0] = "<div id='table_type_fields'>" . $table_type_fields_html . "</div>";
$table->colspan['row_advanced'][0] = 5;
$table->data['row_advanced'][0] = print_container_div('advanced_parameters_incidents_search', __('Advanced filter'), print_table($table_advanced, true), 'closed', true, true);
//Store serialize filter
serialize_in_temp($filter, $config["id_user"]);
$table->colspan['button'][0] = 2;
$table->colspan['button'][2] = 2;
$table->data['button'][0] = '</br>';
$table->data['button'][2] = print_submit_button(__('Filter'), 'search', false, 'class="sub search"', true);
$table->data['button'][2] .= print_input_hidden('search_inverse_filter', (int) $inverse_filter, true);
$table->data['button'][2] .= print_submit_button(__('Inverse filter'), 'submit_inverse_filter', false, 'class="sub search"', true);
$table->data['button'][2] .= print_button(__('Export to CSV'), '', false, 'window.open(\'' . 'include/export_csv.php?export_csv_tickets=1' . '\')', 'class="sub"', true);
// Inverse filter info
$output .= '<div id="inverse_filter_info" style="display: ' . ($inverse_filter ? 'block' : 'none') . ';">';
$output .= ui_print_message(__('Inverse filter enabled'), 'suc', 'style="display:inline;padding-top: 15px;padding-bottom: 15px;"', true, 'h3', false);
$output .= print_help_tip(__('The result will be the items which doesn\'t match the filters') . '. ' . __('The select controls with \'Any\' or \'All\' selected will be ignored'), true);
$output .= '<br /><br />';
$output .= '</div>';
if ($ajax) {
$output .= '<form id="search_incident_form" method="post">';
} else {
$output .= '<form id="search_incident_form" method="post" onsubmit="incidents_gift();return false">';
}
//~ $output .= '<form id="search_incident_form" method="post">';
$output .= '<div class="divresult_incidents">' . print_table($table, true) . '</div>';
$output .= '</form>';
echo "<div class= 'dialog ui-dialog-content' id='search_inventory_window'></div>";
// WARNING: Important for the inverse filter feature
// Change the search_inverse_filter value when the form is submitted using the submit_inverse_filter or the search buttons
// Show or hide the inverse filter info
$output .= '<script type="text/javascript">';
$output .= '$(document).ready(function () {';
$output .= 'var inverseFilterInfo = document.getElementById("inverse_filter_info");';
$output .= 'var filterForm = document.getElementById("search_incident_form");';
$output .= 'var filterBtn = filterForm.elements["search"];';
$output .= 'var inverseFilterBtn = filterForm.elements["submit_inverse_filter"];';
$output .= 'var inverseFilter = filterForm.elements["search_inverse_filter"];';
$output .= '$(filterBtn).click(function (e) {';
$output .= 'inverseFilter.value = 0;';
$output .= '$(inverseFilterInfo).hide();';
$output .= '});';
$output .= '$(inverseFilterBtn).click(function (e) {';
$output .= 'inverseFilter.value = 1;';
$output .= '$(inverseFilterInfo).show();';
$output .= '});';
$output .= '});';
$output .= '</script>';
if ($return) {
return $output;
}
echo $output;
}
示例10: get_invoice_irpf
$irpf = get_invoice_irpf($invoice["id"]);
//~ Descuento sobre el total
$before_amount = $amount * ($discount_before/100);
$total_before = round($amount - $before_amount, 2);
//~ Se aplica sobre el descuento los task
$tax_amount = $total_before * ($tax/100);
//~ Se aplica sobre el descuento el irpf
$irpf_amount = $total_before * ($irpf/100);
$total = round($total_before + $tax_amount - $irpf_amount, 2);
$final_total[strtoupper ($invoice["currency"])] += $total;
$data[2] = $total;
if (($tax != 0) && ($clean_output == 0))
$data[2] .= print_help_tip (__("With taxes"). ": ". format_numeric($amount,2), true);
$data[3] = strtoupper ($invoice["currency"]);
$data[4] = __($invoice["status"]);
$data[5] = "<span style='font-size: 10px'>".$invoice["invoice_create_date"] . "</span>";
$data[6] = "<span style='font-size: 10px'>".$invoice["invoice_expiration_date"]. "</span>";
if ($clean_output == 0){
$data[7] = '';
if ($invoice['invoice_type'] == 'Submitted') {
$data[7] = '<a href="index.php?sec=users&sec2=operation/invoices/invoice_view
&id_invoice='.$invoice["id"].'&clean_output=1&pdf_output=1&language='.$invoice['id_language'].'">
<img src="images/page_white_acrobat.png" title="'.__('Export to PDF').'"></a>';
}
示例11: array
$auth_method = 'mysql';
} else {
$auth_method = $config['auth_methods'];
}
$disabled = false;
$table->width = '99%';
$table->class = 'search-table-button';
$table->colspan = array();
$table->data = array();
$auth_methods = array('mysql' => __('Local Integria'), 'ldap' => __('LDAP'));
if ($is_enterprise) {
add_enterprise_auth_methods($auth_methods);
}
$table->data[0][0] = print_select($auth_methods, "auth_methods", $auth_method, '', '', '', true, 0, true, __('Authentication method'));
$table->data[0][1] = print_input_text("session_timeout", $config['session_timeout'], '', 10, 10, true, __('Session timeout (secs)'));
$table->data[0][1] .= print_help_tip(__("This is defined in seconds. "), true);
$table->data[1][0] = '<b>' . __('Autocreate remote users') . '</b>';
$table->data[2][0] = __('Yes') . ' ' . print_radio_button_extended('autocreate_remote_users', 1, '', $config['autocreate_remote_users'], false, 'enable_autocreate_profile();', '', true) . ' ';
$table->data[2][0] .= __('No') . ' ' . print_radio_button_extended('autocreate_remote_users', 0, '', $config['autocreate_remote_users'], false, 'enable_autocreate_profile();', '', true);
if ($config['autocreate_remote_users'] == 0) {
$disabled = true;
}
$profile_list = profile_get_profiles();
if ($profile_list === false) {
$profile_list = array();
}
$table->data[3][0] = print_select($profile_list, "default_remote_profile", $config['default_remote_profile'], '', '', '', true, 0, true, __('Autocreate profile'), $disabled);
$group_list = group_get_groups();
if ($group_list === false) {
$group_list = array();
}
示例12: array
$retval = array();
foreach ($files as $file) {
$retval["custom_logos/{$file}"] = $file;
}
return $retval;
}
$imagelist = get_logo_files();
$table->data[0][0] = print_select($imagelist, 'site_logo', $config["site_logo"], '', __('Default'), '', true, 0, true, __('Site logo') . print_help_tip(__('You can place your custom images into the folder') . ": images/custom_logos", true));
$table->data[1][0] = print_select($imagelist, 'header_logo', $config["header_logo"], '', __('Default'), '', true, 0, true, __('Header logo') . print_help_tip(__('You can place your custom images into the folder') . ": images/custom_logos", true));
$backgrounds_list_jpg = list_files("images/backgrounds", "jpg", 1, 0);
$backgrounds_list_gif = list_files("images/backgrounds", "gif", 1, 0);
$backgrounds_list_png = list_files("images/backgrounds", "png", 1, 0);
$backgrounds_list = array_merge($backgrounds_list_jpg, $backgrounds_list_png);
$backgrounds_list = array_merge($backgrounds_list, $backgrounds_list_gif);
asort($backgrounds_list);
$table->data[2][0] = print_select($backgrounds_list, 'login_background', $config["login_background"], '', __('Default'), '', true, 0, true, __('Login background') . print_help_tip(__('You can place your custom images into the folder') . ": images/backgrounds", true));
$table->data[3][0] = print_input_text("block_size", $config["block_size"], '', 5, 5, true, __('Block size for pagination'));
function get_font_files()
{
global $config;
$base_dir = $config['homedir'] . '/include/fonts';
$files = list_files($base_dir, ".ttf", 1, 0);
$retval = array();
foreach ($files as $file) {
$retval[$config['homedir'] . 'include/fonts/' . $file] = $file;
}
return $retval;
}
$fontlist = get_font_files();
$flash_options = array();
$flash_options[0] = "Disabled";
示例13: sprintf
}
if ($id_category) {
$where_clause .= sprintf(' AND id_wo_category = %d ', $id_category);
}
if ($id_project) {
$where_clause .= sprintf(' AND id_task = ANY(SELECT id FROM ttask WHERE id_project = %d) ', $id_project);
}
echo '<form id="form-search_wo" action="index.php?sec=projects&sec2=operation/workorders/wo" method="post">';
$table->class = 'search-table';
$table->style = array();
$table->style[0] = 'font-weight: bold;';
$table->data = array();
$table->width = "99%";
$table->data[0][0] = print_input_text("search_text", $search_text, "", 15, 100, true, __('Search'));
$table->data[0][1] = print_input_text_extended('owner', $owner, 'text-user', '', 15, 30, false, '', '', true, '', __('Owner')) . print_help_tip(__("Type at least two characters to search") . ". " . __("Use '*' for get all values"), true);
$table->data[0][2] = print_input_text_extended('creator', $creator, 'text-user2', '', 15, 30, false, '', '', true, '', __('Submitter')) . print_help_tip(__("Type at least two characters to search"), true);
$wo_status_values = wo_status_array();
$table->data[1][0] = print_select($wo_status_values, 'search_status', $search_status, '', __("Any"), -1, true, 0, false, __('WO Status'));
$priorities = get_priorities();
$table->data[1][1] = print_select($priorities, 'search_priority', $search_priority, '', __("Any"), -1, true, 0, false, __('Priority'));
$avatar = get_db_value('avatar', 'tusuario', 'id_usuario', $config["id_user"]);
if (!$avatar) {
$avatar = "avatar1";
}
$table->data[1][2] = print_submit_button(__('Search'), "search_btn", false, 'class="sub search"', true);
$table->data[1][2] .= ' <a href="index.php?sec=projects&sec2=operation/workorders/wo&owner=' . $config["id_user"] . '"><img src="images/avatars/' . $avatar . '.png" class="avatar_small" title="' . __('My WO\'s') . '"></a>';
$table->data[1][2] .= ' <a href="index.php?sec=projects&sec2=operation/workorders/wo&creator=' . $config["id_user"] . '"><img src="images/user_comment.png" title="' . __('My delegated WO\'s') . '"></a>';
$table->rowspan[0][3] = 3;
if ($owner != "") {
$table->data[0][3] = '<b>' . __('Submitters') . '</b>';
$table->data[0][3] .= '<br>' . graph_workorder_num('200', '100', 'submitter', $where_clause, 5);
示例14: foreach
foreach ($slas_aux as $s) {
$slas[$s["id"]] = $s["name"];
}
$table->data[5][1] = print_select($slas, 'id_sla', $id_sla, '', '', 0, true, false, false, __('Ticket SLA'));
if (!isset($inventory_name)) {
$inventory_name = '';
}
$table->data[6][0] = print_input_text('inventory_name', $inventory_name, '', 25, 0, true, __('Default Inventory object'), false);
$table->data[6][0] .= ' ' . "<a href='javascript: show_inventory_search(\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\");' title='" . __('Search parent') . "'><img src='images/add.png' /></a>";
if (!isset($id_inventory)) {
$id_inventory = '';
}
$table->data[6][0] .= print_input_hidden('id_inventory', $id_inventory, true);
$table->data[6][1] = print_input_text('email_from', $email_from, '', 40, 0, true, __('Email from'));
if ($config['enteprise'] == 1) {
$table->data[7][0] = print_textarea("email_group", 5, 40, $email_group, '', true, __('Email group') . print_help_tip(__("Set values separated by comma. You can use regular expresions"), true));
}
echo '<form id="form-configurar_grupo" method="post" action="index.php?sec=users&sec2=godmode/grupos/lista_grupos">';
print_table($table);
if (!isset($autocreate_user)) {
$autocreate_user = '';
}
if (!isset($grant_access)) {
$grant_access = '';
}
if (!isset($send_welcome)) {
$send_welcome = '';
}
if (!isset($default_company)) {
$default_company = '';
}
示例15: user_print_autocomplete_input
$params['attributes'] = "style='width:210px;'";
$table->data[2][1] = user_print_autocomplete_input($params);
}
// Various checkboxes
$table->data[3][0] = print_checkbox ('have_cost', 1, $have_cost, true,
__('Have cost'));
$table->data[3][1] = print_checkbox ('public', 1, $public, true, __('Public'));
if (! $id_workunit) {
$table->data[4][0] = print_checkbox ('forward', 1,
false, true, __('Forward') . print_help_tip (__('If this checkbox is activated, propagation will be forward'), true));
$table->data[4][1] = print_checkbox ('split', 1, false, true,
__('Backward') . print_help_tip (__('If this checkbox is activated, propagation will be backward'),
true));
}
$table->data[5][0] = print_checkbox ('work_home', 1, $work_home, true, __('Work from home'));
$table->data[6][0] = print_textarea ('description', 10, 30, $description,
'', true, __('Description'));
echo '<form id="single_task_form" method="post" onsubmit="return validate_single_form()">';
print_table ($table);
$button = '';
echo '<div style="width:100%;">';
unset($table->data);
$table->width = '100%';
$table->class = "button-form";