Files
votianng/html/jobs/job_edit.php
2026-03-29 10:34:57 +02:00

83 lines
3.3 KiB
PHP

<?php
/*=======================================================================
*
* job_edit.php
*
* Autor: Carsten Annacker
*
=======================================================================*/
include_once("../include/global.inc.php");
include_once("../include/caglobal.inc.php");
include_once ("../include/auth.inc.php");
// für Nacherfassungen und nachträgliche Änderungen von Aufträgen
// wenn job_id übergeben: Nachträgliche Änderung eines Auftrages
//list ($csc_id, $jb_id) =
getSecHttpVars("1", array("csc_id", "jb_id", "dbhistory"));
list ($jb_copy) = getHttpVars(array("jb_copy"));
list ($csc_id_start) = getHttpVars(array("csc_id_start"));
list ($disp) = getHttpVars(array("disp"));
$hq_id_job = "";
if ($jb_id != ""):
$what_is_this = "Auftrags&auml;nderung (Nr. $jb_id)";
$csc_id = getFieldValueFromId("job", "jb_id", "$jb_id", "csc_id");
$hq_id_job = getFieldValueFromId("job", "jb_id", "$jb_id", "hq_id");
else:
$what_is_this = "Auftragserfassung";
endif;
if ($csc_id != ""):
// csc_id übergeben: Auftragseingabe durch die Zentrale
// oder festgelegt durch jb_id (siehe oben)
$csc_id_orderer = $csc_id;
else:
// nix csc_id übergeben: Normaler Auftrag so wie es sich gehört
$usr_id = $HTTP_SESSION_VARS['usr_id'];
$usr_type = getFieldValueFromId("user", "usr_id", "$usr_id", "usr_type");
if ($usr_type == 2):
// customer (employee)
// Auftraggebende Kostenstelle wird aus angemeldetem employee ermittelt
$csc_id_orderer = $db->getOne("SELECT csc_id FROM employee WHERE emp_id = '$emp_id'");
elseif ($usr_type == 1):
// headquarter
$csc_id_orderer = 0;
else:
// sysadmin or courier -> not allowed to put jobs in the system
reportDie ("$PHP_SELF: Ungültiger 'usr_type': '$usr_type'", false);
endif;
endif;
?>
<html>
<head>
<title>AUFTRAGSERFASSUNG</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="description" content="Auftragserfassung"> <meta name="keywords" content="Auftragserfassung">
<script type="text/javascript">
self.moveTo(0, 0);
self.resizeTo(screen.width, screen.height);
// For identification of the window
this.iname="job_edit";
top.opener.top.job_edit = this;
var Start = new Date();
var Startzeit = Start.getTime();
</script>
</head>
<frameset rows="35,*,250,95" border=0>
<frame src="job_header.php?csc_id_orderer=<?php echo ec($csc_id_orderer);?>&what_is_this=<?php echo $what_is_this;?>&hq_id_job=<?php echo $hq_id_job;?>" name="job_header" scrolling="no" marginwidth=0 marginheight=0>
<frame src="job_tour.php?csc_id_orderer=<?php echo ec($csc_id_orderer);?>&hq_id_job=<?php echo $hq_id_job;?>" name="job_tour" scrolling="no" marginwidth=0 marginheight=0>
<frame src="job_options.php?csc_id_orderer=<?php echo ec($csc_id_orderer);?>&jb_id=<?php echo ec($jb_id);?>&jb_copy=<?php echo $jb_copy;?>&csc_id_start=<?php echo $csc_id_start;?>&disp=<?php echo $disp;?>&dbhistory=<?php echo $dbhistory;?>&hq_id_job=<?php echo $hq_id_job;?>" name="job_options" scrolling="no" marginwidth=0 marginheight=0>
<frame src="job_tour_list.php" name="job_tour_list" scrolling="no" marginwidth=0 marginheight=0>
<noframes>
<p>Diese Seite benutzt Frames. Bitte benutzen Sie einen Browser, der Frames darstellen kann
(z.B. Internet Explorer ab Version 3.0 oder Netscape ab Version 2.0).</p>
</noframes>
</frameset>
</html>