當前位置: 首頁>>代碼示例>>PHP>>正文


PHP smarty_care::Pagetime方法代碼示例

本文整理匯總了PHP中smarty_care::Pagetime方法的典型用法代碼示例。如果您正苦於以下問題:PHP smarty_care::Pagetime方法的具體用法?PHP smarty_care::Pagetime怎麽用?PHP smarty_care::Pagetime使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在smarty_care的用法示例。


在下文中一共展示了smarty_care::Pagetime方法的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');
開發者ID:patmark,項目名稱:care2x-tz,代碼行數:31,代碼來源:labor_test_request_aftersave.php


注:本文中的smarty_care::Pagetime方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。