HEX
Server: Apache
System: Linux p3plzcpnl506847.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: slfopp7cb1df (5698090)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //proc/self/root/proc/self/cwd/pm/plugins/Manufacturing/Views/work_centers/add_edit_work_center.php
<div id="page-content" class="page-wrapper clearfix">
	<div class="row">
		<?php 
		$id = '';
		$title = '';
		if(isset($work_center)){
			$title .= app_lang('update_work_center');
			$id    = $work_center->id;
		}else{
			$title .= app_lang('add_work_center');
		}

		?>

		<?php echo form_open_multipart(site_url('manufacturing/add_edit_work_center/'.$id), array('id' => 'add_update_work_center','autocomplete'=>'off', 'class' => 'general-form')); ?>

		<div class="col-md-12" >
			<div class="panel_s">

				<div class="panel-body">
					<div class="row ">
						<div class="col-md-5">
							<h4 class="no-margin"><?php echo html_entity_decode($title); ?> 
						</div>
						<div class="col-md-7 d-none">

							<div class="o_not_full oe_button_box"><button type="button" name="240" class="btn oe_stat_button"><i class="fa fa-fw o_button_icon fa-pie-chart"></i><div class="o_field_widget o_stat_info"><span class="o_stat_value"><div name="oee" class="o_field_widget o_stat_info o_readonly_modifier" data-original-title="" title="">
								<span class="o_stat_value">0.00</span>
								<span class="o_stat_text"></span>
							</div>%</span><span class="o_stat_text">OEE</span></div></button><button type="button" name="241" class="btn oe_stat_button"><i class="fa fa-fw o_button_icon fa-bar-chart"></i><div class="o_field_widget o_stat_info"><span class="o_stat_value"><div name="blocked_time" class="o_field_widget o_stat_info o_readonly_modifier" data-original-title="" title="">
								<span class="o_stat_value">0.00</span>
								<span class="o_stat_text"></span>
							</div> Hours</span><span class="o_stat_text">Lost</span></div></button><button type="button" name="237" class="btn oe_stat_button" context="{'search_default_workcenter_id': id}"><i class="fa fa-fw o_button_icon fa-bar-chart"></i><div class="o_field_widget o_stat_info"><span class="o_stat_value"><div name="workcenter_load" class="o_field_widget o_stat_info o_readonly_modifier">
								<span class="o_stat_value">0.00</span>
								<span class="o_stat_text"></span>
							</div> Minutes</span><span class="o_stat_text">Load</span></div></button><button type="button" name="243" class="btn oe_stat_button" context="{'search_default_workcenter_id': id, 'search_default_thisyear': True}"><i class="fa fa-fw o_button_icon fa-bar-chart"></i><div class="o_field_widget o_stat_info"><span class="o_stat_value"><div name="performance" class="o_field_widget o_stat_info o_readonly_modifier" data-original-title="" title="">
								<span class="o_stat_value">0</span>
								<span class="o_stat_text"></span>
							</div>%</span><span class="o_stat_text">Performance</span></div></button>
						</div>

					</div>
				</div>
				<hr class="hr-color">

				<!-- start tab -->
				<div class="modal-body">
					<div class="tab-content">
						<!-- start general infor -->
						<div class="row">
							<div class="row">
								<div class="col-md-6">
									<?php 
									$work_center_name = isset($work_center) ? $work_center->work_center_name : '';
									$work_center_code = isset($work_center) ? $work_center->work_center_code : '';
									$time_efficiency = isset($work_center) ? $work_center->time_efficiency : 100;
									$capacity = isset($work_center) ? $work_center->capacity : 1;
									$costs_hour = isset($work_center) ? $work_center->costs_hour : 0;
									$oee_target = isset($work_center) ? $work_center->oee_target : 90;
									$time_start = isset($work_center) ? $work_center->time_start : 0;
									$time_stop = isset($work_center) ? $work_center->time_stop : 0;
									$description = isset($work_center) ? $work_center->description : '';
									$working_hour_selected = isset($work_center) ? $work_center->working_hours : '';
									?>

									<?php echo render_input1('work_center_name','work_center_name',$work_center_name,'text', [], [], '', '', true); ?>   
								</div>
								<div class="col-md-6">
									<?php echo render_input1('work_center_code','work_center_code',$work_center_code,'text'); ?>   
								</div>
							</div>
							<div class="row">
								<div class="col-md-6">
									<?php echo render_select1('working_hours',$working_hours,array('id','working_hour_name'),'work_center_working_hours',$working_hour_selected); ?>

								</div>
							</div>
						</div>


						<div class="row">
							<h5 class="h5-color"><?php echo app_lang('work_center_info'); ?></h5>
							<hr class="hr-color">

							<div class="row">
								<div class="col-md-6">
									<?php echo render_input1('time_efficiency','time_efficiency',$time_efficiency,'number'); ?>   
								</div>
								<div class="col-md-6">
									<?php echo render_input1('costs_hour','costs_hour',$costs_hour,'number'); ?>   
								</div>
								<div class="col-md-6">
									<?php echo render_input1('capacity','work_center_capacity',$capacity,'number'); ?>   
								</div>
								<div class="col-md-6">
									<?php echo render_input1('oee_target','oee_target',$oee_target,'number'); ?>   
								</div>
								<div class="col-md-6">
									<?php echo render_input1('time_start','work_center_time_start',$time_start,'number'); ?>   
								</div>
								<div class="col-md-6">
									<?php echo render_input1('time_stop','time_stop',$time_stop,'number'); ?>   
								</div>
								<div class="col-md-12">
									<p class="bold"><?php echo app_lang('work_center_description'); ?></p>
									<?php echo render_textarea1('description','',$description,array(),array(),'','tinymce'); ?>
								</div>
							</div>
						</div>

					</div>

					<div class="modal-footer">
						<a href="<?php echo site_url('manufacturing/work_center_manage'); ?>"  class="btn btn-default mr-2 "><?php echo app_lang('hr_close'); ?></a>
						<?php if(mrp_has_permission('manufacturing_can_create') || mrp_has_permission('manufacturing_can_edit')){ ?>
							<button type="submit" class="btn btn-info pull-right text-white"><span data-feather="check-circle" class="icon-16" ></span> <?php echo app_lang('submit'); ?></button>

						<?php } ?>
					</div>

				</div>
			</div>
		</div>

		<?php echo form_close(); ?>
	</div>

	<!-- init_tail -->
	<?php require 'plugins/Manufacturing/assets/js/work_centers/add_edit_work_center_js.php';?>

</body>
</html>