$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() . $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("DUE_DATE", $focus->due_date);
//Isvalid
$current_date = $timedate->to_display_date(gmdate('Y-m-d H:i:s'));
if (empty($focus->due_date)) {
    $xtpl->assign('isvalid', $focus->isvalid);
} elseif ($current_date > $focus->due_date) {
    $focus->update_isvalid();
    $focus->isvalid = 'Not Valid';
    $xtpl->assign('isvalid', $focus->isvalid);
}
$xtpl->assign('ISVALID_OPTIONS', get_select_options_with_id($app_list_strings['isvalid_options'], $focus->isvalid));
$xtpl->assign("PRICE", $focus->price);
//Material Link
if (isset($focus->paper_id)) {
    $xtpl->assign("PAPER_ID", $focus->paper_id);
}
if (isset($focus->material_id)) {
    $xtpl->assign("MATERIAL_ID", $focus->material_id);
}
if (isset($focus->supplier_id)) {
    $xtpl->assign("SUPPLIER_ID", $focus->supplier_id);
    $xtpl->assign("SUPPLIER_NAME", $focus->supplier_name);