$xtpl->assign("RETURN_ACTION", 'index');
}
require_once 'include/QuickSearchDefaults.php';
$qsd = new QuickSearchDefaults();
$sqs_objects = array('assigned_user_name' => $qsd->getQSUser());
$quicksearch_js = $qsd->getQSScripts();
$quicksearch_js .= '<script type="text/javascript" language="javascript">sqs_objects = ' . $json->encode($sqs_objects) . '</script>';
$xtpl->assign("JAVASCRIPT", get_set_focus_js() . get_validate_record_js() . get_pressline_js() . $quicksearch_js);
$xtpl->assign("THEME", $theme);
$xtpl->assign("IMAGE_PATH", $image_path);
$xtpl->assign("PRINT_URL", "index.php?" . $GLOBALS['request_string']);
$xtpl->assign("ID", $focus->id);
$xtpl->assign("NAME", $focus->name);
$xtpl->assign("pressmachine_id", $focus->pressmachine_id);
$xtpl->assign("pressmachine_name", $focus->pressmachine_name);
$pressrows = $focus->getPresslineRows();
if (count($pressrows) == 0) {
    $xtpl->assign("PRESSROWS", $focus->getPresslineRow(new Pressline(), 0, true));
    $xtpl->parse("main.row1");
}
for ($i = 0; $i < count($pressrows); $i++) {
    $fieldcount = count($pressrows[$i]);
    $xtpl->assign("PRESSROWS", $focus->getPresslineRow($pressrows[$i], $i, true));
    $xtpl->parse("main.row1");
}
//Add Custom Fields
require_once 'modules/DynamicFields/templates/Files/EditView.php';
global $current_user;
if (is_admin($current_user) && $_REQUEST['module'] != 'DynamicLayout' && !empty($_SESSION['editinplace'])) {
    $record = '';
    if (!empty($_REQUEST['record'])) {