本文整理匯總了PHP中smarty_care::Copyright方法的典型用法代碼示例。如果您正苦於以下問題:PHP smarty_care::Copyright方法的具體用法?PHP smarty_care::Copyright怎麽用?PHP smarty_care::Copyright使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類smarty_care
的用法示例。
在下文中一共展示了smarty_care::Copyright方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1:
* This is a hybrid compromise as long as not all forms are converted to smarty
* templates. In this case, when the form is pathology, the smarty assignments are done
* otherwise the output is buffered
*/
$edit = 0;
if ($target == 'patho') {
$smarty->assign('patho', TRUE);
include $root_path . 'include/inc_test_request_printout_patho.php';
} else {
# Collect output buffer
ob_start();
if ($target == 'baclabor') {
include $root_path . 'include/inc_test_findings_form_baclabor.php';
} else {
include $root_path . 'include/inc_test_request_printout_' . $target . '.php';
}
$sTemp = ob_get_contents();
ob_end_clean();
$smarty->assign('printout_form', $sTemp);
}
/**
* show Copyright
* managed in smarty_care.class.php
*/
$smarty->assign('sCopyright', $smarty->Copyright());
$smarty->assign('sPageTime', $smarty->Pagetime());
/**
* show Template
*/
$smarty->display('laboratory/request_aftersave.tpl');
// $smarty->display('debug.tpl');