
<?php
/* $Id: header.inc 7155 2015-02-17 20:14:32Z vvs2012 $ */

	// Titles and screen header
	// Needs the file config.php loaded where the variables are defined for
	//  $RootPath
	//  $Title - should be defined in the page this file is included with
	if (!isset($RootPath)){
		$RootPath = dirname(htmlspecialchars($_SERVER['PHP_SELF']));
		if ($RootPath == '/' OR $RootPath == "\\") {
			$RootPath = '';
		}
	}

	$ViewTopic = isset($ViewTopic)?'?ViewTopic=' . $ViewTopic : '';
	$BookMark = isset($BookMark)? '#' . $BookMark : '';
	$StrictXHTML=False;
 
	if (!headers_sent()){
		if ($StrictXHTML) {
			header('Content-type: application/xhtml+xml; charset=utf-8');
		} else {
			header('Content-type: text/html; charset=utf-8');
		}
	}
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
			"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">';

	echo '<html xmlns="http://www.w3.org/1999/xhtml"><head><title>' . $Title . '</title>';
	echo '<link rel="shortcut icon" href="'. $RootPath.'/favicon.ico" />';
	echo '<link rel="icon" href="' . $RootPath.'/favicon.ico" />';
	if ($StrictXHTML) {
		echo '<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />';
	} else {
		echo '<meta http-equiv="Content-Type" content="application/html; charset=utf-8" />';
	}
	
	


	if($Title == _('Copy a BOM to New Item Code')){//solve the cannot modify heaer information in CopyBOM.php scritps
		ob_start();
	}
	
	 
		$userid = $_SESSION['UserID'];
		
$SQLuser = "SELECT email,realname
	               
			FROM www_users
			WHERE userid='" . $userid. "'
			";
	
			$resultuser = DB_query($SQLuser);
	
			$myrowuser = DB_fetch_array($resultuser) ;
		$emailm= $myrowuser['email'];
$realname= $myrowuser['realname'];
?>

	<!-- begin::Head -->
	<head>
		<meta charset="utf-8" />
		<title>----E-Business ERP System----</title>
		<meta name="description" content="Latest updates and statistic charts">
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, shrink-to-fit=no">

		<!--begin::Web font -->
		<script src="https://ajax.googleapis.com/ajax/libs/webfont/1.6.16/webfont.js"></script>
		<script>
			WebFont.load({
            google: {"families":["Poppins:300,400,500,600,700","Roboto:300,400,500,600,700"]},
            active: function() {
                sessionStorage.fonts = true;
            }
          });
        </script>

		<!--end::Web font -->

		<!--begin:: Global Mandatory Vendors -->
		<link href="includes/vendors/perfect-scrollbar/css/perfect-scrollbar.css" rel="stylesheet" type="text/css" />
			<link href="css/evergreen2/default.css" rel="stylesheet" type="text/css" />
		<!--end:: Global Mandatory Vendors -->

		<!--begin:: Global Optional Vendors -->
		<link href="includes/vendors/tether/dist/css/tether.css" rel="stylesheet" type="text/css" />
		<link href="includes/vendors/bootstrap-datepicker/dist/css/bootstrap-datepicker3.min.css" rel="stylesheet" type="text/css" />
		<link href="includes/vendors/bootstrap-datetime-picker/css/bootstrap-datetimepicker.min.css" rel="stylesheet" type="text/css" />
		<link href="includes/vendors/bootstrap-timepicker/css/bootstrap-timepicker.min.css" rel="stylesheet" type="text/css" />
		<link href="includes/vendors/bootstrap-daterangepicker/daterangepicker.css" rel="stylesheet" type="text/css" />
		<link href="includes/vendors/bootstrap-touchspin/dist/jquery.bootstrap-touchspin.css" rel="stylesheet" type="text/css" />
		<link href="includes/vendors/bootstrap-switch/dist/css/bootstrap3/bootstrap-switch.css" rel="stylesheet" type="text/css" />
		<link href="includes/vendors/bootstrap-select/dist/css/bootstrap-select.css" rel="stylesheet" type="text/css" />
		<link href="includes/vendors/select2/dist/css/select2.css" rel="stylesheet" type="text/css" />
		<link href="includes/vendors/nouislider/distribute/nouislider.css" rel="stylesheet" type="text/css" />
		<link href="includes/vendors/owl.carousel/dist/assets/owl.carousel.css" rel="stylesheet" type="text/css" />
		<link href="includes/vendors/owl.carousel/dist/assets/owl.theme.default.css" rel="stylesheet" type="text/css" />
		<link href="includes/vendors/ion-rangeslider/css/ion.rangeSlider.css" rel="stylesheet" type="text/css" />
		<link href="includes/vendors/ion-rangeslider/css/ion.rangeSlider.skinFlat.css" rel="stylesheet" type="text/css" />
		<link href="includes/vendors/dropzone/dist/dropzone.css" rel="stylesheet" type="text/css" />
		<link href="includes/vendors/summernote/dist/summernote.css" rel="stylesheet" type="text/css" />
		<link href="includes/vendors/bootstrap-markdown/css/bootstrap-markdown.min.css" rel="stylesheet" type="text/css" />
		<link href="includes/vendors/animate.css/animate.css" rel="stylesheet" type="text/css" />
		<link href="includes/vendors/toastr/build/toastr.css" rel="stylesheet" type="text/css" />
		<link href="includes/vendors/jstree/dist/themes/default/style.css" rel="stylesheet" type="text/css" />
		<link href="includes/vendors/morris.js/morris.css" rel="stylesheet" type="text/css" />
		<link href="includes/vendors/chartist/dist/chartist.min.css" rel="stylesheet" type="text/css" />
		<link href="includes/vendors/sweetalert2/dist/sweetalert2.min.css" rel="stylesheet" type="text/css" />
		<link href="includes/vendors/socicon/css/socicon.css" rel="stylesheet" type="text/css" />
		<link href="includes/vendors/vendors/line-awesome/css/line-awesome.css" rel="stylesheet" type="text/css" />
		<link href="includes/vendors/vendors/flaticon/css/flaticon.css" rel="stylesheet" type="text/css" />
		<link href="includes/vendors/vendors/metronic/css/styles.css" rel="stylesheet" type="text/css" />
		<link href="includes/vendors/vendors/fontawesome5/css/all.min.css" rel="stylesheet" type="text/css" />
		<link href="xcrud/plugins/bootstrap/css/bootstrap.css" rel="stylesheet" type="text/css" />
		<link href="xcrud/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
		<link href="xcrud/plugins/bootstrap/css/bootstrap-theme.css" rel="stylesheet" type="text/css" />
		<link href="xcrud/plugins/bootstrap/css/bootstrap-theme.min.css" rel="stylesheet" type="text/css" />
       <link href="xcrud/plugins/bootstrap/css/bootstrap-theme.min.css" rel="stylesheet" type="text/css" />
		<!--end:: Global Optional Vendors -->

		<!--begin::Global Theme Styles -->
		<link href="includes/assets/demo/base/style.bundle.css" rel="stylesheet" type="text/css" />

		<!--RTL version:<link href="assets/demo/base/style.bundle.rtl.css" rel="stylesheet" type="text/css" />-->

		<!--end::Global Theme Styles -->

		<!--begin::Page Vendors Styles -->
		<link href="includes/assets/vendors/custom/fullcalendar/fullcalendar.bundle.css" rel="stylesheet" type="text/css" />

		<!--RTL version:<link href="assets/includes/vendors/custom/fullcalendar/fullcalendar.bundle.rtl.css" rel="stylesheet" type="text/css" />-->

		<!--end::Page Vendors Styles -->
		<link rel="shortcut icon" href="../favicon.ico" />
		
		
		<!--begin:: Global Mandatory Vendors -->
		<script src="includes/vendors/jquery/dist/jquery.js" type="text/javascript"></script>
		<script src="includes/vendors/popper.js/dist/umd/popper.js" type="text/javascript"></script>
		<script src="includes/vendors/bootstrap/dist/js/bootstrap.min.js" type="text/javascript"></script>
		<script src="includes/vendors/js-cookie/src/js.cookie.js" type="text/javascript"></script>
		<script src="includes/vendors/moment/min/moment.min.js" type="text/javascript"></script>
		<script src="includes/vendors/tooltip.js/dist/umd/tooltip.min.js" type="text/javascript"></script>
		<script src="includes/vendors/perfect-scrollbar/dist/perfect-scrollbar.js" type="text/javascript"></script>
		<script src="includes/vendors/wnumb/wNumb.js" type="text/javascript"></script>
         
		<!--end:: Global Mandatory Vendors -->

		<!--begin:: Global Optional Vendors -->
		<script src="includes/vendors/jquery.repeater/src/lib.js" type="text/javascript"></script>
		<script src="includes/vendors/jquery.repeater/src/jquery.input.js" type="text/javascript"></script>
		<script src="includes/vendors/jquery.repeater/src/repeater.js" type="text/javascript"></script>
		<script src="includes/vendors/jquery-form/dist/jquery.form.min.js" type="text/javascript"></script>
		<script src="includes/vendors/block-ui/jquery.blockUI.js" type="text/javascript"></script>
		<script src="includes/vendors/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js" type="text/javascript"></script>
		<script src="includes/vendors/js/framework/components/plugins/forms/bootstrap-datepicker.init.js" type="text/javascript"></script>
		<script src="includes/vendors/bootstrap-datetime-picker/js/bootstrap-datetimepicker.min.js" type="text/javascript"></script>
		<script src="includes/vendors/bootstrap-timepicker/js/bootstrap-timepicker.min.js" type="text/javascript"></script>
		<script src="includes/vendors/js/framework/components/plugins/forms/bootstrap-timepicker.init.js" type="text/javascript"></script>
		<script src="includes/vendors/bootstrap-daterangepicker/daterangepicker.js" type="text/javascript"></script>
		<script src="includes/vendors/js/framework/components/plugins/forms/bootstrap-daterangepicker.init.js" type="text/javascript"></script>
		<script src="includes/vendors/bootstrap-touchspin/dist/jquery.bootstrap-touchspin.js" type="text/javascript"></script>
		<script src="includes/vendors/bootstrap-maxlength/src/bootstrap-maxlength.js" type="text/javascript"></script>
		<script src="includes/vendors/bootstrap-switch/dist/js/bootstrap-switch.js" type="text/javascript"></script>
		<script src="includes/vendors/js/framework/components/plugins/forms/bootstrap-switch.init.js" type="text/javascript"></script>
		<script src="includes/vendors/vendors/bootstrap-multiselectsplitter/bootstrap-multiselectsplitter.min.js" type="text/javascript"></script>
		<script src="includes/vendors/bootstrap-select/dist/js/bootstrap-select.js" type="text/javascript"></script>
		<script src="includes/vendors/select2/dist/js/select2.full.js" type="text/javascript"></script>
		<script src="includes/vendors/typeahead.js/dist/typeahead.bundle.js" type="text/javascript"></script>
		<script src="includes/vendors/handlebars/dist/handlebars.js" type="text/javascript"></script>
		<script src="includes/vendors/inputmask/dist/jquery.inputmask.bundle.js" type="text/javascript"></script>
		<script src="includes/vendors/inputmask/dist/inputmask/inputmask.date.extensions.js" type="text/javascript"></script>
		<script src="includes/vendors/inputmask/dist/inputmask/inputmask.numeric.extensions.js" type="text/javascript"></script>
		<script src="includes/vendors/inputmask/dist/inputmask/inputmask.phone.extensions.js" type="text/javascript"></script>
		<script src="includes/vendors/nouislider/distribute/nouislider.js" type="text/javascript"></script>
		
		<script src="includes/vendors/autosize/dist/autosize.js" type="text/javascript"></script>
		<script src="includes/vendors/clipboard/dist/clipboard.min.js" type="text/javascript"></script>
		<script src="includes/vendors/ion-rangeslider/js/ion.rangeSlider.js" type="text/javascript"></script>
		<script src="includes/vendors/dropzone/dist/dropzone.js" type="text/javascript"></script>
		<script src="includes/vendors/summernote/dist/summernote.js" type="text/javascript"></script>
		<script src="includes/vendors/markdown/lib/markdown.js" type="text/javascript"></script>
		<script src="includes/vendors/bootstrap-markdown/js/bootstrap-markdown.js" type="text/javascript"></script>
		<script src="includes/vendors/js/framework/components/plugins/forms/bootstrap-markdown.init.js" type="text/javascript"></script>
		<script src="includes/vendors/jquery-validation/dist/jquery.validate.js" type="text/javascript"></script>
		<script src="includes/vendors/jquery-validation/dist/additional-methods.js" type="text/javascript"></script>
		<script src="includes/vendors/js/framework/components/plugins/forms/jquery-validation.init.js" type="text/javascript"></script>
		<script src="includes/vendors/bootstrap-notify/bootstrap-notify.min.js" type="text/javascript"></script>
		<script src="includes/vendors/js/framework/components/plugins/base/bootstrap-notify.init.js" type="text/javascript"></script>
		<script src="includes/vendors/toastr/build/toastr.min.js" type="text/javascript"></script>
		<script src="includes/vendors/jstree/dist/jstree.js" type="text/javascript"></script>
		<script src="includes/vendors/raphael/raphael.js" type="text/javascript"></script>
		<script src="includes/vendors/morris.js/morris.js" type="text/javascript"></script>
		<script src="includes/vendors/chartist/dist/chartist.js" type="text/javascript"></script>
		<script src="includes/vendors/chart.js/dist/Chart.bundle.js" type="text/javascript"></script>
		<script src="includes/vendors/js/framework/components/plugins/charts/chart.init.js" type="text/javascript"></script>
		<script src="includes/vendors/vendors/bootstrap-session-timeout/dist/bootstrap-session-timeout.min.js" type="text/javascript"></script>
		<script src="includes/vendors/vendors/jquery-idletimer/idle-timer.min.js" type="text/javascript"></script>
		<script src="includes/vendors/waypoints/lib/jquery.waypoints.js" type="text/javascript"></script>
		<script src="includes/vendors/counterup/jquery.counterup.js" type="text/javascript"></script>
		<script src="includes/vendors/es6-promise-polyfill/promise.min.js" type="text/javascript"></script>
		<script src="includes/vendors/sweetalert2/dist/sweetalert2.min.js" type="text/javascript"></script>
		<script src="includes/vendors/js/framework/components/plugins/base/sweetalert2.init.js" type="text/javascript"></script>
  	<script src="includes/bootstrap/css/bootstrap-theme.css" type="text/javascript"></script>
  		<script src="includes/bootstrap/css/bootstrap-theme.min.css" type="text/javascript"></script>
  			<script src="includes/bootstrap/css/bootstrap.css" type="text/javascript"></script>
  			<script src="includes/bootstrap/css/bootstrap.min.css" type="text/javascript"></script>
  			<script src="includes/bootstrap/js/bootstrap.js" type="text/javascript"></script>
  				<script src="includes/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
		
			<!--end:: Global Optional Vendors -->

		<!--begin::Global Theme Bundle -->
		<script src="includes/assets/demo/base/scripts.bundle.js" type="text/javascript"></script>

		<!--end::Global Theme Bundle -->

		<!--begin::Page Vendors -->
		<script src="includes/assets/vendors/custom/fullcalendar/fullcalendar.bundle.js" type="text/javascript"></script>

		<!--end::Page Vendors -->

		<!--begin::Page Scripts -->
		<script src="includes/assets/app/js/dashboard.js" type="text/javascript"></script>

	</head>

	<!-- end::Head -->

	<!-- begin::Body -->
	