当前位置: 首页>>代码示例>>PHP>>正文


PHP print_container函数代码示例

本文整理汇总了PHP中print_container函数的典型用法代码示例。如果您正苦于以下问题:PHP print_container函数的具体用法?PHP print_container怎么用?PHP print_container使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了print_container函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: graph_sla_slicebar

	$incident_sla .= "</td>";
	$incident_sla .= "</tr>";
	$incident_sla .= "<tr>";
	$incident_sla .= "<td id=slaSlicebarField colspan=2 style='text-align: center; padding: 1px 2px 1px 5px;'>";
	$incident_sla .= graph_sla_slicebar ($id, $period, 155, 15, $ttl);
	$incident_sla .= "</td>";
	$incident_sla .= "<td colspan=2 style='text-align: center;' >";
	$incident_sla .= "<div class='pie_frame'>";
	$incident_sla .= graph_incident_sla_compliance ($id, 155, 80, $ttl);
	$incident_sla .= "</div>";	
	$incident_sla .= "</td>";
	$incident_sla .= "<tr>";
	//$incident_sla .= "</table>";
}

$right_side .= print_container('incident_sla', __('SLA information'), $incident_sla, 'open', true, true, '', 'no_border', 4, 'less_widht');

$table->data[0][0] = $left_side;
$table->data[0][1] = $right_side;

echo "<div id='indicent-details-view'>";

echo '<h2>'.__('Tickets').' #'.$incident["id_incidencia"].'</h2><h4>'. $incident['titulo'];


if (!$pure) {
	echo integria_help ("incident_dashboard_detail", true);
	echo "<div id='button-bar-title'>";
	echo "<ul>";

	//Only incident manager and user with IR flag which are owners and admin can edit incidents
开发者ID:articaST,项目名称:integriaims,代码行数:31,代码来源:incident_dashboard_detail.php

示例2: stdClass

    // JSON STRING
    $html .= "</div>";
    $html .= "<ul></ul>";
    $html .= "</div>";
    $table_description = new stdClass();
    $table_description->width = '99%';
    $table_description->id = 'incident_file_description';
    $table_description->class = 'search-table-button';
    $table_description->data = array();
    $table_description->data[0][0] = print_textarea("file_description", 3, 40, '', '', true, __('Description'));
    $table_description->data[1][0] = print_submit_button(__('Add'), 'crt_btn', false, 'class="sub create"', true);
    $html .= "<div id='file_description_table_hook' style='display:none;'>";
    $html .= print_table($table_description, true);
    $html .= "</div>";
    $table->colspan[10][0] = 4;
    $table->data[10][0] = print_container('file_upload_container', __('File upload'), $html, 'closed', true, false);
}
if ($create_incident) {
    $button = print_input_hidden('action', 'insert', true);
    if (give_acl($config["id_user"], 0, "IW")) {
        $button .= print_submit_button(__('Create'), 'action2', false, 'class="sub create"', true);
    }
} else {
    $button = print_input_hidden('id', $id, true);
    $button .= print_input_hidden('action', 'update', true);
    $button .= print_submit_button(__('Update'), 'action2', false, 'class="sub upd"', true);
}
$table->colspan['button'][0] = 4;
$table->data['button'][0] = $button;
if ($has_permission) {
    if ($create_incident) {
开发者ID:dsyman2,项目名称:integriaims,代码行数:31,代码来源:incident_detail.php

示例3: print_container

				//$tracking_group .= "</table>";
				
				echo print_container('incident_tracking_group', __('Statistics by group'), $tracking_group, 'open', true, '20px', '', '', 1, 'less_widht');
			echo "</td>";	
			echo "<td style='vertical-align:top;width: 33%;'>";
				//$tracking_user = "<table class='details_table alternate'>";
				foreach ($stats[INCIDENT_METRIC_USER] as $key => $value) {
					$name = get_db_value ('nombre_real', 'tusuario', 'id_usuario', $key);
					$tracking_user = "<tr>";
					$tracking_user .= "<td><strong>".$name."</strong>:</td>";
					$tracking_user .= "<td style='text-align:right;'>".give_human_time($value,true,true,true)."</td>";
					$tracking_user .= "</tr>";
				}
				//$tracking_user .= "</table>";
				
				echo print_container('incident_tracking_user', __('Statistics by owner'), $tracking_user, 'open', true, '20px', '', '', 1, 'less_widht');
			echo "</td>";	
		echo "</tr>";
	echo "</table>";
}

$trackings = get_db_all_rows_field_filter ('tincident_track', 'id_incident', $id, 'timestamp DESC, id_it DESC');

if ($trackings !== false) {
	unset($table);
	$table = new StdClass;
	$table->width = "100%";
	$table->class = 'listing';
	$table->data = array ();
	$table->head = array ();
	$table->head[0] = __('Description');
开发者ID:articaST,项目名称:integriaims,代码行数:31,代码来源:incident_tracking.php

示例4: print_table

                $tasks_report .= '<div class="pie_frame">';
                $tasks_report .= print_table($table_task, true);
                $tasks_report .= '</div><br>';
                if ($pdf_output) {
                    $tasks_report .= '<hr>';
                }
            }
        }
    }
    //Print containers
    echo print_container('project_labour_report', __('Labour'), $labour, 'no', true, true, "container_simple_title", "container_simple_div");
    echo print_container('project_budget_report', __('Budget'), $budget, 'no', true, true, "container_simple_title", "container_simple_div");
    echo print_container('project_involved_people_report', __('People involved'), $people_involved, 'no', true, true, "container_simple_title", "container_simple_div");
    echo print_container('project_task_distribution_report', __('Task distribution'), $task_distribution, 'no', true, true, "container_simple_title", "container_simple_div");
    echo print_container('project_workload_distribution_report', __('Workload distribution'), $workload_distribution, 'no', true, true, "container_simple_title", "container_simple_div");
    echo print_container('project_tasks_report', __('Project tasks'), $tasks_report, 'no', true, true, "container_simple_title", "container_simple_div");
}
?>

<?php 
if (!$pdf_output) {
    ?>
<script type="text/javascript">
	$(function() {
		// Init the tooltip
		$('div.tooltip_title').tooltip({
			track: true,
			open: function (event, ui) {
				ui.tooltip.css('max-width', '800px');
			}
		});
开发者ID:dsyman2,项目名称:integriaims,代码行数:31,代码来源:project_report.php

示例5: graph_workunit_project_user_single

echo "</td>";
echo "</strong>";
echo "</tr>";
echo "</table>";
echo "</td>";
echo "<td>";
$content = '<div class="pie_frame">' . graph_workunit_project_user_single(180, 150, $id_project) . '</div>';
print_container('planning_hours_worked', __("Hours worked"), $content, 'no', false, '10px');
echo "</td>";
echo "<td>";
$content = '<div class="pie_frame">' . graph_workunit_project_task_status(180, 150, $id_project) . '</div>';
print_container('planning_hours_summary_task', __("Summary task status"), $content, 'no', false, '10px');
echo "</td>";
echo "<td>";
$content = '<div class="pie_frame">' . graph_project_task_per_user(180, 150, $id_project) . '</div>';
print_container('planning_hours_task_user', __("Task per user"), $content, 'no', false, '10px');
echo "</td>";
echo "</tr>";
echo "</table>";
echo "</center>";
//Create button bar
echo "<div style='width:100%; border-spacing:0px;' class='button'>";
// Oppen the task creation
print_button(__('Add tasks'), 'addmass', false, '', 'class="sub create"');
// Submit the update form
print_button(__('Update'), 'update', false, 'document.forms[\'form-tasks\'].submit()', 'class="sub upd"');
echo "</div>";
//Get project users
$sql = sprintf("SELECT DISTINCT(id_user) FROM trole_people_project WHERE id_project = %d", $id_project);
$users_db = get_db_all_rows_sql($sql);
foreach ($users_db as $u) {
开发者ID:dsyman2,项目名称:integriaims,代码行数:31,代码来源:task_planning.php

示例6: get_parameter

 	$filter['id_building'] = (int) get_parameter ('search_id_building');
 	$filter['sla_fired'] = (bool) get_parameter ('search_sla_fired');
 	$filter['id_incident_type'] = (int) get_parameter ('search_id_incident_type');
 	$filter['id_user'] = (string) get_parameter ('search_id_user', '');
 	$filter['id_incident_type'] = (int) get_parameter ('search_id_incident_type');
 	$filter['id_user'] = (string) get_parameter ('search_id_user', '');
 	$filter['first_date'] = (string) get_parameter ('search_first_date');
 	$filter['last_date'] = (string) get_parameter ('search_last_date');
}

if (!$output) {
	$output = __('All tickets');
}

$container_title = __("Ticket report parameters");
echo print_container('incident_report_parameters', $container_title, $output, 'no', true, true, "container_simple_title", "container_simple_incident_report_parameters ");  

if ($show_list) {

	$table->class = 'listing';
	$table->width = "95%";
	$table->style = array ();
	$table->style[0] = 'font-weight: bold';
	$table->head = array ();
	$table->head[0] = __('ID');
	$table->head[1] = __('SLA');
	$table->head[2] = __('% SLA');
	$table->head[3] = __('Ticket');
	$table->head[4] = __('Group')."<br><em>".__("Company")."</em>";
	$table->head[5] = __('Status')."<br /><em>".__('Resolution')."</em>";
	$table->head[6] = __('Priority');
开发者ID:articaST,项目名称:integriaims,代码行数:31,代码来源:incidents_html.php

示例7: pie3d_graph

    $managers_invoicing_volume = pie3d_graph($config['flash_charts'], $managers_invoicing, 300, 150, __('others'), "", "", $config['font'], $config['fontsize'] - 1, $ttl);
} else {
    $managers_invoicing_volume = __('No data to show');
}
$managers_invoicing_volume = '<br><div class="pie_frame">' . $managers_invoicing_volume . '</div>';
$table->data[2][1] = print_container('managers_invoicing_volume', __('Managers invoicing volume'), $managers_invoicing_volume, 'no', true, '10px');
//TOP 10 INVOICING
$companies_invoincing = crm_get_total_invoiced($where_clause);
if ($read && $enterprise) {
    $companies_invoincing = crm_get_user_companies($config['id_user'], $companies_invoincing);
}
if ($companies_invoincing != false) {
    $companies_invoincing_content = '<br>' . print_table(crm_print_most_invoicing_companies($companies_invoincing), true);
} else {
    $companies_invoincing_content = '<br><div>' . __('No data to show') . '</div>';
}
$table->data[3][0] = print_container('top_10_invoicing', __('Top 10 invoicing'), $companies_invoincing_content, 'no', true, '10px');
//TOP 10 MANAGERS INVOICING
if ($read && $enterprise) {
    $managers_invoicing = crm_get_invoicing_managers_acl($config['id_user'], $where_clause);
} else {
    $managers_invoicing = crm_get_managers_invoicing($where_clause);
}
if ($managers_invoicing != false) {
    $managers_invoicing_content = '<br>' . print_table(crm_print_most_invoicing_managers($managers_invoicing), true);
} else {
    $managers_invoicing_content = '<br><div>' . __('No data to show') . '</div>';
}
$table->data[3][1] = print_container('top_10_managers_invoicing', __('Top 10 managers invoicing'), $managers_invoicing_content, 'no', true, '10px');
echo '<br>';
print_table($table);
开发者ID:dsyman2,项目名称:integriaims,代码行数:31,代码来源:company_statistics.php

示例8: __

        }
        if (isset($row_2)) {
            $incidents_home .= "</table>";
        }
    } else {
        $incidents_home .= "<div class='landing_empty'>";
        $incidents_home .= __("There aren't active incidents");
        $incidents_home .= "</div>";
    }
    $much_more = "<a href='index.php?sec=incidents&sec2=operation/incidents/incident_dashboard'>";
    $much_more .= "<img class='much_more' src='images/add.png' title='" . __('Incidents') . "'>";
    $much_more .= "</a>";
    $subtitle = "<span class='landing_subtitle'>";
    $subtitle .= __('Total active incidents') . ": " . incidents_active_user($config["id_user"]);
    $subtitle .= "</span>";
    echo print_container('incidents_home', __('Incidents') . $subtitle . $much_more, $incidents_home, 'no');
    echo "</td>";
    echo "</tr>";
    echo "</table>";
} else {
    if (give_acl($config["id_user"], 0, "AR")) {
        include "operation/agenda/agenda.php";
    } else {
        echo "<h1>" . __("Welcome to Integria") . "</h1>";
    }
}
$check_browser = check_browser();
if ($check_browser) {
    $browser_message = '<h4>' . __('Recommended browsers are Firefox and Chrome. You are using another browser.') . '</h4>';
    echo "<div class= 'dialog ui-dialog-content' title='" . __("Info") . "' id='browser_dialog'>{$browser_message}</div>";
    echo "<script type='text/javascript'>";
开发者ID:dsyman2,项目名称:integriaims,代码行数:31,代码来源:home.php

示例9: print_container

        $tracking_group .= "</tr>";
    }
    $tracking_group .= "</table>";
    echo print_container('incident_tracking_group', __('Statistics by group'), $tracking_group, 'no', true, '20px');
    echo "</td>";
    echo "<td style='vertical-align:top;width: 33%;'>";
    $tracking_user = "<table class='details_table alternate'>";
    foreach ($stats[INCIDENT_METRIC_USER] as $key => $value) {
        $name = get_db_value('nombre_real', 'tusuario', 'id_usuario', $key);
        $tracking_user .= "<tr>";
        $tracking_user .= "<td><strong>" . $name . "</strong>:</td>";
        $tracking_user .= "<td style='text-align:right;'>" . give_human_time($value, true, true, true) . "</td>";
        $tracking_user .= "</tr>";
    }
    $tracking_user .= "</table>";
    echo print_container('incident_tracking_user', __('Statistics by owner'), $tracking_user, 'no', true, '20px');
    echo "</td>";
    echo "</tr>";
    echo "</table>";
}
$trackings = get_db_all_rows_field_filter('tincident_track', 'id_incident', $id, 'timestamp DESC, id_it DESC');
if ($trackings !== false) {
    unset($table);
    $table->width = "99%";
    $table->class = 'listing';
    $table->data = array();
    $table->head = array();
    $table->head[0] = __('Description');
    $table->head[1] = __('User');
    $table->head[2] = __('Date');
    $table->style[2] = "width: 150px";
开发者ID:dsyman2,项目名称:integriaims,代码行数:31,代码来源:incident_tracking.php

示例10: __

	echo "<th>".__("Completed").":<span style='background-color:#b8e0fd;'>&nbsp;".$completed."&nbsp;</span></th>";
	echo "<th>".__("In process").":<span style='background-color:#fceaa2;'>&nbsp;".$in_process."&nbsp;</span></th>";
	echo "<th>".__("Pending").":<span style='background-color:#FFF;'>&nbsp;".$pending."&nbsp;</span></th>";
echo "</tr></table>";

$content_general = "<tr><td valign='top' >";
		$content = '<tr><td colspan="2" valign=top style="height:250px;">'.graph_workunit_project_user_single(350, 150, $id_project).'</td></tr>';
	$content_general .=	print_container('planning_hours_worked', __("Hours worked"), $content, 'no', true, '10px');
$content_general .= "</td><td valign='top' >";
		$content = '<tr><td colspan="2" valign=top style="height:250px;">'. graph_workunit_project_task_status(350, 150, $id_project).'</td></tr>';
	$content_general .= print_container('planning_hours_summary_task', __("Summary task status"), $content, 'no', true, '10px');
$content_general .= "</td><td valign='top'  >";
		$content = '<tr><td colspan="2" valign=top style="height:250px;">'. graph_project_task_per_user(350, 150, $id_project).'</td></tr>';
	$content_general .= print_container('planning_hours_task_user', __("Task per user"), $content, 'no', true, '10px', '', '', 1, 'less_widht');
$content_general .= "</td></tr>";
print_container('task_information', __("Task Information"), $content_general, 'closed', false, '10px', '', '', 2);

//Starting main form for this view
echo "<form id='form-tasks' method='post' action='index.php?sec=projects&sec2=operation/projects/task_planning&id_project=".$id_project."'>";
print_input_hidden('update', 'update');
//Create table and table header.
echo "<table class='listing'>";
	echo "<thead>";
		echo "<tr>";
			echo "<th>".__('Task')."</th>";
			echo "<th>".__('Owner')."</th>";
			echo "<th>".__('Start date')."</th>";
			echo "<th>".__('End date')."</th>";
			echo "<th>".__('Hours worked')."</th>";
			echo "<th>".__('Delay (days)')."</th>";
			echo "<th>".__('Status')."</th>";
开发者ID:articaST,项目名称:integriaims,代码行数:31,代码来源:task_planning.php

示例11: switch

    $comp_invoiced_data[$comp_name] = $val;
}
switch ($search_invoice_type) {
    case 'Submitted':
        $container_title = __("Submitted billing per company");
        break;
    case 'Received':
        $container_title = __("Received billing per company");
        break;
    default:
        $container_title = "Submitted billing per company";
        break;
}
$companies_invoiced_graph = pie3d_graph($config["flash_charts"], $comp_invoiced_data, 400, 150, __('others'), $config["base_url"], "", $config['font'], $config['fontsize'], $graph_ttl);
$companies_invoiced_graph = '<div class="pie_frame">' . $companies_invoiced_graph . "</div>";
echo print_container('companies_invoiced', $container_title, $companies_invoiced_graph, 'no', true, true, "container_simple_title", "container_simple_div");
switch ($search_invoice_type) {
    case 'Submitted':
        $container_title = __("Submitted billing per currency");
        break;
    case 'Received':
        $container_title = __("Received billing per currency");
        break;
    default:
        $container_title = __("Submitted billing per currency");
        break;
}
echo print_container('currency_invoiced', $container_title, $currency_table, 'no', true, true, "container_simple_title", "container_simple_div");
?>

开发者ID:dsyman2,项目名称:integriaims,代码行数:29,代码来源:invoice_stats.php

示例12: sprintf

$lead_stats .= "</td>";
$lead_stats .= "<td style='text-align:right'>";
$lead_stats .= sprintf("%d", $total_leads);
$lead_stats .= "</td>";
$lead_stats .= "</tr>";
$lead_stats .= "<tr>";
$lead_stats .= "<td>";
$lead_stats .= "<strong>" . __("Total success") . "</strong>";
$lead_stats .= "</td>";
$lead_stats .= "<td style='text-align:right'>";
$leads_success = $data[200]["total_leads"];
$lead_stats .= sprintf("%d", $leads_success);
$lead_stats .= "</td>";
$lead_stats .= "</tr>";
$lead_stats .= "<tr>";
$lead_stats .= "<td>";
$lead_stats .= "<strong>" . __("Conversion rate") . "</strong>";
$lead_stats .= "</td>";
$lead_stats .= "<td style='text-align:right'>";
if ($total_leads) {
    $conversion_rate = $leads_success / $total_leads * 100;
} else {
    $conversion_rate = 0;
}
$lead_stats .= sprintf("%.2f %%", $conversion_rate);
$lead_stats .= "</td>";
$lead_stats .= "</tr>";
$lead_stats .= "</table>";
$lead_stats = '<br><div style="padding-left: 20px;">' . $lead_stats . '</div>';
echo print_container('lead_rate', __('Lead statistics'), $lead_stats, 'no', true, true, "container_simple_title", "container_simple_div");
print_table($table);
开发者ID:dsyman2,项目名称:integriaims,代码行数:31,代码来源:campaign_stats.php

示例13: ob_start

    echo "PHP 5.5.0 or later is required. Please upgrade your PHP installation.";
    die;
}
/* We’re live! */
require_once __DIR__ . DIRECTORY_SEPARATOR . 'bones.php';
require_once DIR_PHP . 'pagesetup.php';
if ($_SERVER['REQUEST_METHOD'] == 'GET') {
    if (isset($_GET['nav'])) {
        $_SESSION['nav'] = $_GET['nav'];
        include DIR_NAV . DIRECTORY_SEPARATOR . 'nav.php';
    }
}
ob_start();
echo "<!DOCTYPE html>";
echo "<html lang=\"en\">";
print_head();
echo "<body>";
print_noscript();
echo "<div class=\"oldie-display-none nojs-display-none\">";
print_navbar();
if (Config::read('var.showsession')) {
    print_session();
    unset($_SESSION['dev']);
}
print_container();
print_footer();
echo "</div>";
print_scripts();
echo "</body>";
echo "</html>";
ob_end_flush();
开发者ID:amoschou,项目名称:acet,代码行数:31,代码来源:index.php

示例14: __

$html .= "<table width=\"99%\">";
$html .= "<td width=\"45%\">";
$html .= __('Drop the file here');
$html .= "<td>";
$html .= __('or');
$html .= "<td width=\"45%\">";
$html .= "<a id=\"browse_button\">" . __('browse it') . "</a>";
$html .= "<tr>";
$html .= "</table>";
$html .= "<input name=\"upfile\" type=\"file\" id=\"file-upfile\" class=\"sub file\" />";
$html .= "<input type=\"hidden\" name=\"upfiles\" id=\"upfiles\" />";
// JSON STRING
$html .= "</div>";
$html .= "<ul></ul>";
$html .= "</div>";
$table->data[3][0] = print_container('attachment_upload_container', __('Attachments'), $html, 'closed', true, false);
$table->data[4][0] = print_textarea("last_mail", 10, 1, $last_email, 'style="height:350px;"', true, __('Last E-mail'));
$table->data[5][0] = print_submit_button(__('Send email'), 'apply_btn', false, 'class="sub upd"', true);
$table->data[5][0] .= print_input_hidden('id', $id, true);
$table->data[5][0] .= print_input_hidden('send', 1, true);
echo '<form method="post" id="lead_mail_go">';
print_table($table);
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" src="include/js/jquery.fileupload.js"></script>
<script type="text/javascript" src="include/js/jquery.iframe-transport.js"></script>
<script type="text/javascript" src="include/js/jquery.knob.js"></script>
开发者ID:dsyman2,项目名称:integriaims,代码行数:30,代码来源:lead_mail.php

示例15: format_numeric

    $budget .= "</td><td>";
    if ($total_hr > 0) {
        $budget .= format_numeric($total_project_costs / $total_hr) . " " . $config["currency"];
    } else {
        $budget .= __("N/A");
    }
    $budget .= "</td></tr>";
    $budget .= "</table>";
    // Workload distribution
    $workload_distribution = '<div class="pie_frame">' . graph_workunit_project_user_single(350, 150, $id_project, $graph_ttl) . '</div>';
    //Print containers
    echo print_container('project_labour', __('Labour'), $labour);
    echo print_container('project_budget', __('Budget'), $budget);
    echo print_container('project_involved_people', __('People involved'), $people_involved);
    echo print_container('project_task_distribution', __('Task distribution'), $task_distribution);
    echo print_container('project_workload_distribution', __('Workload distribution'), $workload_distribution);
}
echo "</form>";
//div to show user info
echo "<div class= 'dialog ui-dialog-content' title='" . __("User info") . "' id='user_info_window'></div>";
?>
<script type="text/javascript" src="include/js/jquery.ui.slider.js"></script>
<script type="text/javascript" src="include/languages/date_<?php 
echo $config['language_code'];
?>
.js"></script>
<script type="text/javascript" src="include/js/integria_date.js"></script>
<script type="text/javascript" src="include/js/jquery.ui.autocomplete.js"></script>
<script type="text/javascript" src="include/js/integria_incident_search.js"></script>

<script type="text/javascript">
开发者ID:dsyman2,项目名称:integriaims,代码行数:31,代码来源:project_detail.php


注:本文中的print_container函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。