本文整理匯總了PHP中Price::update_isvalid方法的典型用法代碼示例。如果您正苦於以下問題:PHP Price::update_isvalid方法的具體用法?PHP Price::update_isvalid怎麽用?PHP Price::update_isvalid使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Price
的用法示例。
在下文中一共展示了Price::update_isvalid方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: array
$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);