本文整理汇总了PHP中integria_help函数的典型用法代码示例。如果您正苦于以下问题:PHP integria_help函数的具体用法?PHP integria_help怎么用?PHP integria_help使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了integria_help函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __
}
}
echo "<form id=\"form-file_releases\" class=\"fileupload_form\" method=\"post\" enctype=\"multipart/form-data\">";
echo "<div id=\"drop_file\">";
echo "<table width=\"99%\">";
echo "<td width=\"30%\">";
echo __('Drop the file here');
echo "<td>";
echo __('or');
echo "<td width=\"30%\">";
echo "<a id=\"browse_button\">" . __('browse it') . "</a>";
echo "<td>";
echo __('or');
echo "<td width=\"30%\">";
echo print_select($files_not_in, 'location', $location, '', __('Select'), 0, true, 0, false, __('Choose file from repository'));
echo " " . integria_help("choose_download", true);
echo print_image("images/cross.png", true, array('class' => 'delete', 'style' => 'display: none;'));
echo "</table>";
echo "<input name=\"upfile\" type=\"file\" id=\"file-upfile\" class=\"sub file\" />";
echo "</div>";
echo "<ul></ul>";
echo "</form>";
}
} else {
echo "<h1>" . __('Update existing file release') . "</h1>";
}
$table = new stdClass();
$table->width = '99%';
$table->id = 'download_data';
$table->class = 'search-table-button';
$table->data = array();
示例2: check_login
global $config;
check_login();
if (! give_acl ($config["id_user"], 0, "IM")) {
audit_db ($config["id_user"], $config["REMOTE_ADDR"], "ACL Violation",
"Trying to access SLA Management");
require ("general/noaccess.php");
exit;
}
echo '<h2>'.__('Support').'</h2>';
echo "<h4>".__('SLA Management');
echo integria_help ("sla", true);
echo "</h4>";
$id = (int) get_parameter ('id');
$new_sla = (bool) get_parameter ('new_sla');
$create_sla = (bool) get_parameter ('create_sla');
$update_sla = (bool) get_parameter ('update_sla');
$delete_sla = (bool) get_parameter ('delete_sla');
// CREATE
if ($create_sla) {
$name = (string) get_parameter ('name');
$description = (string) get_parameter ('description');
$min_response = (float) get_parameter ('min_response');
$max_response = (float) get_parameter ('max_response');
$max_incidents = (int) get_parameter ('max_incidents');
示例3: update_config_token
update_config_token("smtp_queue_retries", $config["smtp_queue_retries"]);
update_config_token("max_pending_mail", $config["max_pending_mail"]);
update_config_token("batch_newsletter", $config["batch_newsletter"]);
update_config_token("news_batch_newsletter", $config["news_batch_newsletter"]);
update_config_token("batch_email_validation", $config["batch_email_validation"]);
update_config_token("active_validate", $config["active_validate"]);
}
$table->width = '99%';
$table->class = 'search-table-button';
$table->colspan = array();
$table->data = array();
$table->data[2][0] = print_input_text("notification_period", $config["notification_period"], '', 7, 7, true, __('Notification period'));
$table->data[2][0] .= integria_help("notification_period", true);
$table->data[2][1] = print_input_text("mail_from", $config["mail_from"], '', 30, 50, true, __('System mail from address'));
$table->colspan[3][0] = 3;
$table->data[3][1] = "<h4>" . __("SMTP Parameters") . integria_help("mailsetup", true) . "</h4>";
$table->data[4][0] = print_input_text("smtp_host", $config["smtp_host"], '', 35, 200, true, __('SMTP Host'));
$table->data[4][0] .= print_help_tip(__("Left it blank if you want to use your local mail, instead an external SMTP host"), true);
$table->data[4][1] = print_input_text("smtp_port", $config["smtp_port"], '', 5, 10, true, __('SMTP Port'));
$table->data[5][0] = print_input_text("smtp_user", $config["smtp_user"], '', 25, 200, true, __('SMTP User'));
$table->data[5][1] = print_input_text("smtp_pass", $config["smtp_pass"], '', 25, 200, true, __('SMTP Password'));
$table->data[6][0] = print_input_text("smtp_queue_retries", $config["smtp_queue_retries"], '', 5, 10, true, __('SMTP Queue retries'));
$table->data[6][0] .= 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);
$table->data[6][1] = print_input_text("max_pending_mail", $config["max_pending_mail"], '', 10, 255, true, __('Max pending mail'));
$table->data[6][1] .= print_help_tip(__("Maximum number of queued emails. When this number is exceeded, an alert is activated"), true);
$table->data[7][0] = print_input_text("batch_newsletter", $config["batch_newsletter"], '', 4, 255, true, __('Max. emails sent per execution'));
$table->data[7][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->colspan[8][0] = 3;
$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);
示例4: incidents_get_score_table
// Score this incident
if ($id){
if (($incident["score"] == 0) AND (($incident["id_creator"] == $config["id_user"]) AND (
($incident["estado"] == 7)))) {
echo incidents_get_score_table ($id);
}
}
}
else {
if (! defined ('AJAX')) {
echo "<h2>".__('Support')."</h2>";
echo "<h4>".__('Create ticket');
echo integria_help ("create_tickets", true);
echo "</h4>";
}
}
echo '<div class="result">'.$result_msg.'</div>';
$table = new stdClass();
$table->width = '100%';
$table->class = 'search-table-button';
$table->id = "incident-editor";
$table->size = array ();
$table->size[0] = '430px';
$table->size[1] = '';
$table->size[2] = '';
$table->head = array();
$table->style = array();
示例5: get_db_value
$fullname = get_db_value ('fullname', 'tcompany_contact', 'id', $id);
$sql = sprintf ('DELETE FROM tcompany_contact WHERE id = %d', $id);
process_sql ($sql);
if(!isset($REMOTE_ADDR)){
$REMOTE_ADDR = '';
}
audit_db ($config['id_user'], $REMOTE_ADDR, "Contact deleted", "Contact named '$fullname' has been deleted");
echo ui_print_success_message (__('Successfully deleted'), '', true, 'h3', true);
$id = 0;
}
// FORM (Update / Create)
if ($id || $new_contact) {
if ($new_contact) {
echo "<h4>".__('New Contact');
echo integria_help ("contact_detail", true);
echo "<div id='button-bar-title'>";
echo "<ul>";
echo "<li><a href='index.php?sec=customers&sec2=operation/contacts/contact_detail'>".print_image ("images/flecha_volver.png", true, array("title" => __("Back")))."</a></li>";
echo "</ul>";
echo "</div>";
echo "</h4>";
if (!$section_write_permission && !$section_manage_permission) {
audit_db($config["id_user"], $config["REMOTE_ADDR"], "ACL Violation","Trying to create a contact in a group without access");
require ("general/noaccess.php");
exit;
}
$id = 0;
$fullname = (string) get_parameter ('fullname');
$phone = (string) get_parameter ('phone');
$mobile = (string) get_parameter ('mobile');
示例6: __
$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();
}
$table->data[4][0] = print_select($group_list, "default_remote_group", $config['default_remote_group'], '', '', '', true, 0, true, __('Autocreate group'), $disabled);
$table->data[5][0] = print_input_text("autocreate_blacklist", $config['autocreate_blacklist'], '', 60, 500, true, __('Autocreate blacklist'), $disabled);
$table->data[5][0] .= integria_help("autocreate_blacklist", true);
$table->data[6][0] = print_input_text("LDAP_server", $config['ldap_server'], '', 10, 50, true, __('LDAP server'));
$table->data[7][0] = print_input_text("LDAP_port", $config['ldap_port'], '', 10, 50, true, __('LDAP port'));
$ldap_version = array(1 => 'LDAPv1', 2 => 'LDAPv2', 3 => 'LDAPv3');
$table->data[8][0] = print_select($ldap_version, "ldap_version", $config['ldap_version'], '', '', '', true, 0, true, __('LDAP version'));
$table->data[9][0] = '<b>' . __('Start TLS') . '</b>';
$table->data[10][0] = __('Yes') . ' ' . print_radio_button('ldap_start_tls', 1, '', $config['ldap_start_tls'], true, '', '', '') . ' ';
$table->data[10][0] .= __('No') . ' ' . print_radio_button('ldap_start_tls', 0, '', $config['ldap_start_tls'], true, '', '', '');
$table->data[11][0] = print_input_text("ldap_base_dn", $config['ldap_base_dn'], '', 60, 50, true, __('Base DN'));
$table->data[12][0] = print_input_text("ldap_login_attr", $config['ldap_login_attr'], '', 60, 50, true, __('Login attribute'));
// Hide LDAP configuration options
/*for ($i = 6; $i <= 11; $i++) {
$table->rowstyle[$i] = $config['auth_methods'] == 'ldap' ? '' : 'display: none;';
$table->rowclass[$i] = 'ldap';
}*/
// Add enterprise authentication options
示例7: __
$data[3] = ($objects_type_field['inherit']? __('Yes'):__('No'));
$data[4] = ($objects_type_field['show_list']? __('Yes'):__('No'));
$data[5] = '<form style="display:inline;" method="post" onsubmit="if (!confirm(\''.__('Are you sure?').'\'))
return false;">';
$data[5] .= print_input_hidden ('delete_object_type_field', 1, true);
$data[5] .= print_input_hidden ('id', $id_object_type, true);
$data[5] .= print_input_hidden ('id_object_type_field', $objects_type_field["id"], true);
$data[5] .= print_input_image ('delete', 'images/cross.png', 1, '', true, '',array('title' => __('Delete')));
$data[5] .= '</form>';
array_push ($table->data, $data);
}
print_table ($table);
} else {
echo "<h4>".__('No objects types fields');
echo integria_help ("manage_objects", true);
echo "</h4>";
}
echo'</div>';
echo '<div class="divform">';
echo '<form method="post" action="index.php?sec=inventory&sec2=operation/inventories/manage_objects_types_field">';
echo '<table class="search-table">';
echo '<tr>';
echo '<td>';
print_input_hidden ('action', 'create');
print_input_hidden ('id', $id_object_type);
print_submit_button (__('Create'), 'crt_btn', false, 'class="sub next"');
echo '</td>';
echo '</tr>';
echo '</table>';
示例8: check_login
// INTEGRIA - the ITIL Management System
// http://integria.sourceforge.net
// ==================================================
// Copyright (c) 2008-2012 Ártica Soluciones Tecnológicas
// http://www.artica.es <info@artica.es>
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; version 2
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
check_login();
require_once 'include/functions_user.php';
echo "<h2>" . __('IMPORT USERS') . "</h2>";
echo "<h4>" . __('FROM CSV') . integria_help("import_from_csv", true) . "</h4>";
$upload_file = (int) get_parameter('upload_file');
$group = (int) get_parameter('group');
$profile = (int) get_parameter('perfil', 1);
$nivel = (int) get_parameter('nivel');
$pass_policy = (int) get_parameter('pass_policy');
$avatar_param = get_parameter('avatar');
//only avatar name (without extension)
$avatar_param = explode('.', $avatar_param);
$avatar = $avatar_param[0];
if ($upload_file) {
if ($_FILES["file"]["error"] == 0) {
if ($_FILES["file"]["type"] != 'text/csv' && $_FILES["file"]["type"] != 'application/vnd.ms-excel') {
echo ui_print_error_message(__('Unsupported file type'), '', true, 'h3', true);
} else {
load_file($_FILES["file"]["tmp_name"], $group, $profile, $nivel, $pass_policy, $avatar);
示例9: check_login
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; version 2
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
global $config;
check_login ();
include_once('include/functions_inventories.php');
echo "<h2>".__('Inventory')."</h2>";
echo "<h4>".__('Import objects from CSV');
echo integria_help ("inventory_import_objects", true);
echo "</h4>";
$upload_file = (int) get_parameter('upload_file');
$id_object_type = get_parameter('id_object_type');
if ($upload_file) {
if ($_FILES["file"]["error"] == 0) {
if (($_FILES["file"]["type"] != 'text/csv') && ($_FILES["file"]["type"] != 'application/vnd.ms-excel')) {
echo ui_print_error_message (__('Unsupported file type'), '', true, 'h3', true);
}
else {
inventories_load_file ($_FILES["file"]["tmp_name"]);
}
}
}
示例10: print_title_with_menu
/**
* Print the title, subtitle and the menu into a page
*
* The element will have an id like: "password-$name"
*
* @param title
* @param subtitle
* @param sec
* @param menu (associative array)
* - title: title when hover
* - link: sec2 (undef to avoid link and only print image)
* - img: image
* @param selected_tab
* @param bool return or echo flag
*
* @return echoes the header.
*/
function print_title_with_menu($title = "", $subtitle = "", $help_tip = false, $sec = 'projects', $menu = false, $selected_tab = false)
{
echo "<h2>" . $title . "</h2>";
echo "<h4>" . $subtitle;
if ($help_tip !== false) {
echo integria_help($help_tip, true);
}
echo "<div id='button-bar-title'>";
echo '<ul>';
if ($menu !== false) {
foreach ($menu as $section => $info) {
$class = $section == $selected_tab ? 'button-bar-selected' : '';
$anchor = '';
if (isset($info['link'])) {
$anchor = '<a href="index.php?sec=' . $sec . '&sec2=' . $info['link'] . '"';
if (isset($info['target'])) {
$anchor .= ' target="' . $info['target'] . '"';
}
$anchor .= '>';
}
echo '<li class="' . $class . '">' . $anchor . '<span><img src="' . $info['img'] . '" title="' . $info['title'] . '"></span></a></li>';
}
}
echo '</ul>';
echo '</div>';
echo "</h4>";
}
示例11: print_table
print_table($table);
unset($table);
echo "</form>";
// Form to give project/task access
echo "<form name='form-access' method=post action='index.php?sec=projects&sec2=operation/projects/role_user_global&add=1&id_user={$id_user}'>";
$table->id = "cost_form";
$table->width = "99%";
$table->class = "search-table";
$table->data = array();
$table->data[0][0] = combo_task_user_manager($config['id_user'], 0, true, __('Tasks'), 'tasks[]', '', true);
if (dame_admin($config['id_user'])) {
$table->data[0][1] = combo_roles(false, "roles", __('Role'), true);
} else {
$table->data[0][1] = combo_roles(false, "roles", __('Role'), true, false);
}
$table->data[0][1] .= integria_help("project_roles", true);
$table->data[0][2] = print_submit_button(__('Add'), 'sub_btn', false, 'class="create sub"; style="margin-top:25px"', true);
print_table($table);
echo "</form>";
echo "<table class='listing' width='99%'>";
echo "<th>" . __("Project");
echo "<th>" . __("Task");
echo "<th>" . __("Role");
echo "<th>" . __("WU");
echo "<th>" . __("WU/Tsk");
echo "<th align='center'>" . __("Delete") . "</th>";
$sql = get_projects_query($id_user, "", 0, true);
$new = true;
$color = 1;
while ($project = get_db_all_row_by_steps_sql($new, $result_project, $sql)) {
$sql = get_tasks_query($id_user, $project['id'], "", 0, true);
示例12: check_crm_acl
$section_manage_permission = check_crm_acl ('company', 'cm');
if (!$section_manage_permission) {
include ("general/noaccess.php");
exit;
}
$id = (int) get_parameter ('id');
$new_role = (bool) get_parameter ('new_role');
$create_role = (bool) get_parameter ('create_role');
$update_role = (bool) get_parameter ('update_role');
$delete_role = (bool) get_parameter ('delete_role');
echo "<h2>".__('Customers')."</h2>";
echo "<h4>".__('Company role management');
echo integria_help ("company_detail", true);
if ($id || $new_role) {
echo "<div id='button-bar-title'><ul>";
echo "<li><a href='index.php?sec=customers&sec2=operation/companies/company_role'>".print_image ("images/flecha_volver.png", true, array("title" => __("Back")))."</a></li>";
echo "</ul></div>";
}
echo "</h4>";
// CREATE
if ($create_role) {
$name = (string) get_parameter ("name");
$description = (string) get_parameter ("description");
$sql = sprintf ('INSERT INTO tcompany_role (name, description)
VALUE ("%s", "%s")', $name, $description);
$id = process_sql ($sql, 'insert_id');
if ($id === false) {
示例13: get_parameter
$config["pwu_defaultime"] = get_parameter("pwu_defaultime", 4);
$config["currency"] = (string) get_parameter("currency", "€");
/*
process_sql ("DELETE FROM tconfig WHERE token = 'no_wu_completion'");
process_sql ("INSERT INTO tconfig (token, value) VALUES ('no_wu_completion', '".$config["no_wu_completion"]."')");
*/
update_config_token("no_wu_completion", $config["no_wu_completion"]);
update_config_token("hours_perday", $config["hours_perday"]);
update_config_token("autowu_completion", $config["autowu_completion"]);
update_config_token("pwu_defaultime", $config["pwu_defaultime"]);
update_config_token("currency", $config["currency"]);
}
$table->width = '99%';
$table->class = 'search-table-button';
$table->colspan = array();
$table->data = array();
$table->data[0][0] = print_input_text("no_wu_completion", $config["no_wu_completion"], '', 20, 500, true, __('No WU completion users'));
$table->data[0][0] .= integria_help("no_wu_completion", true);
$table->data[0][1] = print_input_text("hours_perday", $config["hours_perday"], '', 5, 5, true, __('Work hours per day'));
$table->data[0][1] .= integria_help("hours_perday", true);
$table->data[1][0] = print_input_text("autowu_completion", $config["autowu_completion"], '', 7, 7, true, __('Auto WU Completion (days)'));
$table->data[1][0] .= integria_help("autowu_completion", true);
$table->data[1][1] = print_input_text("pwu_defaultime", $config["pwu_defaultime"], '', 5, 5, true, __('Project WU Default time'));
$table->data[2][0] = print_input_text("currency", $config["currency"], '', 3, 3, true, __('Currency'));
$button = print_input_hidden('update', 1, true);
$button .= print_submit_button(__('Update'), 'upd_button', false, 'class="sub upd"', true);
$table->data['button'][0] = $button;
$table->colspan['button'][0] = 2;
echo "<form name='setup_project' method='post'>";
print_table($table);
echo '</form>';
示例14: get_db_all_rows_sql
// Linked values
$sql = "SELECT id, label FROM tcontract_field WHERE 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"));
$table->data['id_linked_value'][0] = print_textarea ('linked_value', 15, 1, $linked_value, '', true, __('Linked value').integria_help ("linked_values", true));
if (!$id_field) {
$button = print_input_hidden('add_field', 1, true);
$button .= print_submit_button (__('Create'), 'create_btn', false, 'class="sub next"', true);
} else {
$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;
echo "<div class='divform'>";
示例15: __
AND ttask.id_project = %d '. $sql_filter .'
AND id_user = "'.$config["id_user"].'"
AND tworkunit_task.id_workunit = tworkunit.id
ORDER BY tworkunit.timestamp DESC', $id_project);
}
if (!$pure) {
$section_title = __('Workunit resume');
$section_subtitle = $project_name.' - ' . __('All tasks');
$p_menu = print_project_tabs('workunits');
print_title_with_menu ($section_title, $section_subtitle, "task_workunit", 'projects', $p_menu, 'workunits');
} else {
echo '<h2>'.__('Workunit resume') . "</h2>";
echo '<h4>' . $project_name.' - ' . __('All tasks');
echo integria_help ("task_workunit", true);
echo '<ul class="ui-tabs-nav"><li class="ui-tabs">';
echo "<a href='index.php?sec=projects&sec2=operation/projects/task_workunit&id_project=$id_project&pure=0' title='".__("Back to view")."'><img src='images/go-previous.png'></a>";
echo '</li>';
echo '</ul>';
echo '</h4>';
}
}
$workunits = get_db_all_rows_sql ($sql);
if ($workunits) {
foreach ($workunits as $workunit) {
show_workunit_user ($workunit['id']);
}
}