<?
error_reporting (E_ALL ^ E_NOTICE);
require_once "../includes/classes/clsDataConn.php";
require_once "../includes/classes/clsAdminLogin.php";
require_once "../includes/generic_functions.php";
/*
require_once "../includes/classes/clsPartFinder.php";
require_once "../includes/classes/clsMakes.php";
require_once "../includes/classes/clsUnits.php";
require_once "../includes/classes/clsUnitsBrief.php";
*/
require_once "includes/inc_admin_validate.php";

$pl = 					$_GET["pl"];
$unit_id = 				$_GET["unit"];
$unit_name =			getUnitName($unit_id);
$part_id = 				$_GET["part_id"];
//$part_number =			getPartNumber($part_id,$pl);
$arr_part_data = 		getPartDataFromId($part_id);
	$part_number = 		$arr_part_data["parts.part_number"][0];
	$part_item = 		$arr_part_data["parts.item"][0];
	$part_description 			= $arr_part_data["parts.description"][0];
	/*
	$display_order 				= $arr_part_data["parts.display_order"][0];
	$notes 						= $arr_part_data["parts.notes"][0];
	$steel_driveshaft_tube_od 	= $arr_part_data["parts.steel_driveshaft_tube_od"][0];
	$torque_fuse_options 		= $arr_part_data["parts.torque_fuse_options"][0];
	$pts_series 				= $arr_part_data["parts.pts_series"][0];
	$driveline_series 			= $arr_part_data["parts.driveline_series"][0];
	*/
	
?>
	<div id="main">
		<div class="content">
			<div class="cleaner"></div>
			<?
			if (strlen($message) > 0) {?>
				<div class="warning"><?php 
echo $message;
?>
</div>
				<div class="cleaner"></div>
			<? }?>
			<?
			if ($action == "add_part_to_unit") {?>
				<div class="warning">Search for a part to add to unit '<?php 
echo getUnitName($unit_id);
?>
'</div>
				<div class="cleaner"></div>
			<? } elseif ($action == "assembly_add_part") {?>
				<div class="warning">Search for a part to add to assembly '<?php 
echo getAssemblyName($assembly_id);
?>
'</div>
				<div class="cleaner"></div>
			<? }?>
			<form name='product_line_search2' id='product_line_search2' method='get' action='system_editor_search.php' class='form' style="padding-left:50px;">
			<div class="long">
				<div class='label'>Select Product Line:</div>
				<? FormObjects::selectBoxForProductLineNonReload("pl", $product_lines->displays, $product_lines->values, $_GET['pl'], "dropdown", "product_line"); ?>
			</div>
$product_lines 		= new ProductLines();
$makes 				= new Makes($part_finder->product_line);
$unitsBrief			= new UnitsBrief($part_finder->product_line,$part_finder->make_id);
$product_line_obj 	= new ProductLine($part_finder->product_line);

if ($_GET["new_only"] == "true") {
	$title_type = "New Products";
	$google_new = "NewOnly";
} else {
	$title_type = "Part Finder";
	$google_new = "All";
}
//echo "oem_pn: _".$_GET["oem_pn"]."<BR>\n";

$make_name = $makes->getMakeName($_GET["make"]);
$unit_name = getUnitName($_GET["unit"]);

if (strlen($make_name)>0) {
	$title_addon .= " :: " . $make_name;
}
if (strlen($unit_name)>0 && $unit_name != -1) {
	$title_addon .= " :: " . $unit_name;
}
if (strlen($_GET["pn"])>0) {
	$title_addon .= " :: " . $_GET["pn"];
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
   "http://www.w3.org/TR/html4/strict.dtd">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
Beispiel #4
0
<!DOCTYPE html>
<html>

<head>
<meta http-equiv="refresh" content="30">
</head>

<body>
<h1>My Website</h1>
<p>Some text...</p>

<?php 
include_once 'db/dbSC.php';
echo getUnitName('X22');
// include_once('process.php');
$t = array_fill(0, 7, array_fill(0, 7, 0));
print_r($t);
echo '<br>';
echo '<br>';
$data = array(array(22, 18), array(15, 13), array(54, 24), array(17, 15));
$child_data = array(array(2, 1), array(1, 1), array(5, 2), array(1, 1));
$first_names = array_column($data, 1);
print_r($first_names);
echo 'data<br>';
echo 'data<br>';
print_r($data);
echo '$child_data<br>';
print_r($child_data);
echo '<br>';
// 	write_to_log(__FILE__,__LINE__,__FUNCTION__,'before flip',$arr);
$rows = count($child_data);
	<?
	if (strlen($_GET['ring_gears_unit_id']) > 0) {
		$unit_name = getUnitName($_GET['ring_gears_unit_id']);
		if (strlen($unit_name) > 0) {
			echo "<h3>Application: ".$unit_name."</h3>\n";
		}
	}
	require "includes/inc_toolbar_unit_editing.php";?>
	<div id='scroll'>
		<div class='scroll_inner' style='width:1350px'>
			<div class='longest' style='font-weight:bold;'>Part Number</div>
			<div class='longest' style='font-weight:bold;'>Application</div>
			<div class='longest' style='font-weight:bold;'>OEM Number</div>
			<div class='longest' style='font-weight:bold;'>Number of Teeth</div>
			<div class='shorter' style='font-weight:bold;'>O.D.</div>
			<div class='shorter' style='font-weight:bold;'>ID</div>
			<div class='shorter' style='font-weight:bold;'>Pitch</div>
			<div class='shorter' style='font-weight:bold;'>Thick</div>
			<div class='shorter' style='font-weight:bold;'>Chamfer</div>
			<div class="line"></div>
			<?
			if ( !is_null($part_finder->part_stack) && !is_null($part_finder->part_stack->stack) ) {
				// we have parts in the stack
				$previous_part_number = "sdfwefuhieunfiwienfwefn";//starting value so we always show the first item
				$part_stack = $part_finder->part_stack;  						// PartStack object
				while ($part = $part_stack->removePart()) { 					// a part object from the array of parts			
					//compare previous part shown with current part to prevent duplicate listings
					if ($previous_part_number == $part->part_number) {
						continue;
					}
					?>
Beispiel #6
0
							</td>
						</tr>
						
						<tr>
							<td>Input</td>
							<td><input name='antecedent_input_<?php 
    echo $i;
    ?>
' type='text' id='antecedent_input_<?php 
    echo $i;
    ?>
' size='10' <?php 
    echo $disabled_value;
    ?>
  onclick='get_input_values_for_antecedent();' /><?php 
    echo getUnitName($childUid);
    ?>
 </td>
						</tr>
						<tr>
							<td></td>
							<td><input type='checkbox' name='antecedent_checked_input_<?php 
    echo $i;
    ?>
' value='antecedent_input_<?php 
    echo $i;
    ?>
' />Get Data From Sensor<br /></td>
						</tr>
					</table>
				</div>