本文整理汇总了PHP中smarty_care::assign方法的典型用法代码示例。如果您正苦于以下问题:PHP smarty_care::assign方法的具体用法?PHP smarty_care::assign怎么用?PHP smarty_care::assign使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类smarty_care
的用法示例。
在下文中一共展示了smarty_care::assign方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setCharSet
case 'blood':
$formtitle = $LDBloodBank;
$bgc1 = '#99ffcc';
break;
case 'patho':
$formtitle = $LDPathology;
$bgc1 = '#cde1ec';
break;
default:
$bgc1 = '#ffffff';
}
# Start the smarty templating
/**
* HEAD META definition
*/
$smarty->assign('setCharSet', setCharSet());
/**
* Toolbar
*/
if (!isset($edit) || empty($edit)) {
$smarty->assign('edit', FALSE);
}
# Set it to be purely printout
$smarty->assign('printmode', TRUE);
# Added for the html tag direction
$smarty->assign('HTMLtag', html_ret_rtl($lang));
# Set colors
$smarty->assign('top_txtcolor', $cfg['top_txtcolor']);
$smarty->assign('top_bgcolor', $cfg['top_bgcolor']);
$smarty->assign('body_bgcolor', $cfg['body_bgcolor']);
$smarty->assign('body_txtcolor', $cfg['body_txtcolor']);
示例2: Department
$dept_obj = new Department();
$dept_OC = $dept_obj->getAllActiveWithNOC();
include_once $root_path . 'include/care_api_classes/class_personell.php';
$pers_obj = new Personell();
$quicklist =& $pers_obj->getNOCQuicklist($dept_OC, $pyear, $pmonth);
}
# Start Smarty templating here
/**
* LOAD Smarty
*/
# Note: it is advisable to load this after the inc_front_chain_lang.php so
# that the smarty script can use the user configured template theme
require_once $root_path . 'gui/smarty_template/smarty_care.class.php';
$smarty = new smarty_care('common');
# Title in toolbar
$smarty->assign('sToolbarTitle', "{$LDORNOC} :: {$LDQuickView}");
# href for help button
$smarty->assign('pbHelp', "javascript:gethelp('op_duty.php','quick')");
# href for close button
$smarty->assign('breakfile', $breakfile);
# Body onLoad javascript
$smarty->assign('sOnLoadJs', 'onUnload="killchild()"');
# Window bar title
$smarty->assign('sWindowTitle', "{$LDORNOC} :: {$LDQuickView}");
# Collect extra javascript
ob_start();
?>
<script language="javascript">
<!--
var urlholder;
示例3: if
}
}
# end of else if mode== get
}
# end of if (srcword!="")
//echo $sql;
# Start Smarty templating here
/**
* LOAD Smarty
*/
# Note: it is advisable to load this after the inc_front_chain_lang.php so
# that the smarty script can use the user configured template theme
require_once $root_path . 'gui/smarty_template/smarty_care.class.php';
$smarty = new smarty_care('nursing');
# Title in toolbar
$smarty->assign('sToolbarTitle', "{$LDOrLogBook} - {$LDSearch}");
# hide return button
$smarty->assign('pbBack', FALSE);
# href for help button
$smarty->assign('pbHelp', "javascript:gethelp('oplog.php','search','{$mode}','{$rows}','{$datafound}')");
# href for close button
$smarty->assign('breakfile', $breakfile);
# Window bar title
$smarty->assign('sWindowTitle', "{$LDOrLogBook} - {$LDSearch}");
# Body Onload js
$smarty->assign('sOnLoadJs', 'onLoad="if (window.focus) window.focus();document.suchform.srcword.select();"');
# Body OnUnload js
$smarty->assign('sOnUnloadJs', 'onUnload="if (wwin) wwin.close();"');
# Collect js code
ob_start();
?>
示例4: Ward
$obj = new Ward();
$station = $obj->WardName($location_nr);
}
echo $obj->getLastQuery();
}
}
# Start Smarty templating here
/**
* LOAD Smarty
*/
# Note: it is advisable to load this after the inc_front_chain_lang.php so
# that the smarty script can use the user configured template theme
require_once $root_path . 'gui/smarty_template/smarty_care.class.php';
$smarty = new smarty_care('nursing');
# Title in toolbar
$smarty->assign('sToolbarTitle', $LDNotes . ' :: ' . ${$station} . ' (' . formatDate2Local($s_date, $date_format) . ')');
# hide back button
$smarty->assign('pbBack', FALSE);
# href for help button
$smarty->assign('pbHelp', "javascript:gethelp('outpatient_notes.php','Outpatient Clinic :: Notes on the patient','','{$station}','{$LDNotes}')");
# href for close button
$smarty->assign('breakfile', 'javascript:window.close()');
# OnLoad Javascript code
if ($mode == 'save' && $occup || $saved) {
$sTemp = "window.opener.location.reload();";
} else {
$sTemp = '';
}
$smarty->assign('sOnLoadJs', 'onLoad="' . $sTemp . ' if (window.focus) window.focus();"');
# Window bar title
$smarty->assign('sWindowTitle', $LDNotes . ' :: ' . ${$station} . ' (' . formatDate2Local($s_date, $date_format) . ')');
示例5: popinfo
$buff = $dept_obj->LDvar($dept_nr);
if (isset(${$buff}) && !empty(${$buff})) {
$sTitle = $sTitle . ${$buff};
} else {
$sTitle = $sTitle . $dept_obj->FormalName($dept_nr);
}
# Start Smarty templating here
/**
* LOAD Smarty
*/
# Note: it is advisable to load this after the inc_front_chain_lang.php so
# that the smarty script can use the user configured template theme
require_once $root_path . 'gui/smarty_template/smarty_care.class.php';
$smarty = new smarty_care('common');
# Title in toolbar
$smarty->assign('sToolbarTitle', $sTitle);
# href for help button
$smarty->assign('pbHelp', "javascript:gethelp('products.php','maincat','','{$cat}')");
# href for close button
$smarty->assign('breakfile', $breakfile);
# Window bar title
$smarty->assign('sWindowTitle', $sTitle);
# Body OnLoad Javascript code
$smarty->assign('sOnLoadJs', 'onLoad="document.smed.keyword.focus()"');
# Buffer page output
ob_start();
?>
<script language=javascript>
function popinfo(b)
{
示例6: header
break;
default:
header("location:" . $root_path . "language/" . $lang . "/lang_" . $lang . "_invalid-access-warning.php");
exit;
}
require $root_path . "include/inc_products_search_mod.php";
# Start Smarty templating here
/**
* LOAD Smarty
*/
# Note: it is advisable to load this after the inc_front_chain_lang.php so
# that the smarty script can use the user configured template theme
require_once $root_path . 'gui/smarty_template/smarty_care.class.php';
$smarty = new smarty_care('common');
# Title in the title bar
$smarty->assign('sToolbarTitle', "{$title} {$LDPharmaDb} {$LDSearch}");
# href for the back button
// $smarty->assign('pbBack',$returnfile);
# href for the help button
$smarty->assign('pbHelp', "javascript:gethelp('products_db.php','search','{$from}','{$cat}')");
# href for the close button
$smarty->assign('breakfile', $breakfile);
# Window bar title
$smarty->assign('sWindowTitle', "{$title} {$LDPharmaDb} {$LDSearch}");
# Assign Body Onload javascript code
$smarty->assign('sOnLoadJs', 'onLoad="document.suchform.keyword.select()"');
# Collect javascript code
ob_start();
?>
<script language="javascript" >
示例7: array
$sTemp = ob_get_contents();
ob_end_clean();
$smarty->append('JavaScript', $sTemp);
# Prepare the submenu icons
$aSubMenuIcon = array(createComIcon($root_path, 'settings_tree.gif', '0'), createComIcon($root_path, 'sitemap_animator.gif', '0'), createComIcon($root_path, 'icn_rad.gif', '0'), createComIcon($root_path, 'eyeglass.gif', '0'), createComIcon($root_path, 'discussions.gif', '0'), createComIcon($root_path, 'sitemap_animator.gif', '0'));
# Prepare the submenu item descriptions
$aSubMenuText = array($LDReRepairTxt, $LDRepabotActivateTxt, $LDRepairReportTxt, $LDReportsArchiveTxt, $LDQuestionsTxt, $LDQBotActivateTxt);
# Prepare the submenu item links indexed by their template tags
$aSubMenuItem = array('LDPharmaOrder' => "<a href=\"technik-reparatur-anfordern.php" . URL_APPEND . "\">{$LDReRepair}</a>", 'LDHow2Order' => "<a href=\"technik-bot-pass.php" . URL_APPEND . "&mode=repabot\">{$LDRepabotActivate}</a>", 'LDOrderCat' => "<a href=\"technik-reparatur-melden.php" . URL_APPEND . "\">{$LDRepairReport}</a>", 'LDOrderArchive' => "<a href=\"technik-report-arch.php" . URL_APPEND . "\">{$LDReportsArchive}</a>", 'LDPharmaDb' => "<a href=\"technik-questions.php" . URL_APPEND . "\">{$LDQuestions}</a>", 'LDOrderBotActivate' => "<a href=\"technik-bot-pass.php" . URL_APPEND . "&mode=fragebot\">{$LDQBotActivate}</a>");
# Create the submenu rows
$iRunner = 0;
while (list($x, $v) = each($aSubMenuItem)) {
$sTemp = '';
ob_start();
if ($cfg['icons'] != 'no_icon') {
$smarty2->assign('sIconImg', '<img ' . $aSubMenuIcon[$iRunner] . '>');
}
$smarty2->assign('sSubMenuItem', $v);
$smarty2->assign('sSubMenuText', $aSubMenuText[$iRunner]);
$smarty2->display('common/submenu_row.tpl');
$sTemp = ob_get_contents();
ob_end_clean();
$iRunner++;
$smarty->assign($x, $sTemp);
}
# Assign the submenu to the mainframe center block
$smarty->assign('sMainBlockIncludeFile', 'tech/submenu_technik.tpl');
/**
* show Template
*/
$smarty->display('common/mainframe.tpl');
示例8: Department
$_SESSION['sess_user_origin'] = 'amb';
$_SESSION['sess_parent_mod'] = '';
/* Create department object and load all medical depts */
require_once $root_path . 'include/care_api_classes/class_department.php';
$dept_obj = new Department();
$medical_depts =& $dept_obj->getAllMedical();
# Start Smarty templating here
/**
* LOAD Smarty
*/
# Note: it is advisable to load this after the inc_front_chain_lang.php so
# that the smarty script can use the user configured template theme
require_once $root_path . 'gui/smarty_template/smarty_care.class.php';
$smarty = new smarty_care('common');
# Title in toolbar
$smarty->assign('sToolbarTitle', $LDAmbulatory);
# href for help button
$smarty->assign('pbHelp', "javascript:gethelp('outpatient_overview.php','Outpatient :: Overview')");
# href for close button
$smarty->assign('breakfile', $breakfile);
# Window bar title
$smarty->assign('sWindowTitle', $LDAmbulatory);
# Prepare the submenu icons
$smarty->assign('sTitleIcon', '<img ' . createComIcon($root_path, 'l-arrowgrnlrg.gif', '0', '', TRUE) . '>');
if ($cfg['icons'] != 'no_icon') {
$smarty->assign('sApptIcon', '<img ' . createComIcon($root_path, 'icon-date-hour.gif', '0') . '>');
$smarty->assign('sOutPatientIcon', '<img ' . createComIcon($root_path, 'forums.gif', '0') . '>');
//$smarty->assign('sPendReqIcon','<img '.createComIcon($root_path,'waiting.gif','0').'>');
//$smarty->assign('sNewsIcon','<img '.createComIcon($root_path,'bubble2.gif','0').'>');
}
# Assign the text
示例9:
$pagen->setTotalDataCount($totalcount);
}
$pagen->setSortItem($oitem);
$pagen->setSortDirection($odir);
}
//echo $target;
# Start Smarty templating here
/**
* LOAD Smarty
*/
# Note: it is advisable to load this after the inc_front_chain_lang.php so
# that the smarty script can use the user configured template theme
require_once $root_path . 'gui/smarty_template/smarty_care.class.php';
$smarty = new smarty_care('nursing');
# Title in toolbar
$smarty->assign('sToolbarTitle', $LDTestRequest . " - " . $LDSearchPatient);
# hide back button
$smarty->assign('pbBack', FALSE);
# href for help button
$smarty->assign('pbHelp', "javascript:gethelp('laboratory_testrequest.php','Laboratories :: Test Request','lab')");
# href for close button
if ($_COOKIE["ck_login_logged" . $sid]) {
$smarty->assign('breakfile', $root_path . 'main/startframe.php' . URL_APPEND);
} else {
$smarty->assign('breakfile', $breakfile);
}
# Window bar title
$smarty->assign('sWindowTitle', $LDTestRequest . " - " . $LDSearchPatient);
# Body onload javascript code
$smarty->assign('sOnLoadJs', 'onLoad="document.searchform.searchkey.select()"');
# Collect extra javascript code
示例10:
# Import the current encounter number
$current_encounter = $person->CurrentEncounter();
# Import the death date
$death_date = $person->DeathDate();
# Load GUI page
//include('./gui_bridge/default/gui_person_reg_show.php');
# Start Smarty templating here
/**
* LOAD Smarty
*/
# Note: it is advisable to load this after the inc_front_chain_lang.php so
# that the smarty script can use the user configured template theme
require_once $root_path . 'gui/smarty_template/smarty_care.class.php';
$smarty = new smarty_care('common');
# Title in the toolbar
$smarty->assign('sToolbarTitle', $LDPatientRegister);
# href for help button
$smarty->assign('pbHelp', "javascript:gethelp('submenu1.php','{$LDPatientRegister}')");
$smarty->assign('breakfile', $breakfile);
# Window bar title
$smarty->assign('title', $LDPatientRegister);
# Onload Javascript code
$smarty->assign('sOnLoadJs', "if (window.focus) window.focus();");
# href for help button
$smarty->assign('pbHelp', "javascript:gethelp('person_admit.php')");
# Hide the return button
$smarty->assign('pbBack', FALSE);
# Loads the standard gui tags for the registration display page
require './gui_bridge/default/gui_std_tags.php';
# Collect additional javascript code
ob_start();
示例11:
$returnfile = $breakfile;
}
$thisfile = 'edv_system_format_currency_set.php';
$editfile = 'edv_system_format_currency_add.php' . URL_REDIRECT_APPEND . '&mode=edit&from=set&item_no=';
# Load the db routine
require $root_path . 'include/inc_currency_set.php';
# Start Smarty templating here
/**
* LOAD Smarty
*/
# Note: it is advisable to load this after the inc_front_chain_lang.php so
# that the smarty script can use the user configured template theme
require_once $root_path . 'gui/smarty_template/smarty_care.class.php';
$smarty = new smarty_care('system_admin');
# Title in toolbar
$smarty->assign('sToolbarTitle', $LDCurrencyAdmin);
# href for return button
$smarty->assign('pbBack', $returnfile);
# href for help button
$smarty->assign('pbHelp', "javascript:gethelp('currency_set.php')");
# href for close button
$smarty->assign('breakfile', $breakfile);
# Window bar title
$smarty->assign('sWindowTitle', $LDCurrencyAdmin);
if ($rows) {
$smarty->append('JavaScript', '<script language="javascript" src="' . $root_path . 'js/check_currency_same_item.js"></script>');
}
# Buffer page output
ob_start();
# Define to create the edit links on the table and create the GUI body
define('SET_EDIT', 1);
示例12: setcookie
require_once $root_path . 'include/inc_front_chain_lang.php';
if (isset($ck_edv_admin_user)) {
setcookie('ck_edvzugang_user', $ck_edv_admin_user);
}
$breakfile = 'edv.php' . URL_APPEND;
$_SESSION['sess_file_return'] = basename(__FILE__);
# Start Smarty templating here
/**
* LOAD Smarty
*/
# Note: it is advisable to load this after the inc_front_chain_lang.php so
# that the smarty script can use the user configured template theme
require_once $root_path . 'gui/smarty_template/smarty_care.class.php';
$smarty = new smarty_care('common');
# Title in toolbar
$smarty->assign('sToolbarTitle', "{$LDEDP} {$LDSystemAdmin}");
# href for help button
$smarty->assign('pbHelp', "javascript:gethelp('system_admin.php')");
# href for close button
$smarty->assign('breakfile', $breakfile);
# Window bar title
$smarty->assign('sWindowTitle', "{$LDEDP} {$LDSystemAdmin}");
# Buffer page output
ob_start();
?>
<br><ul>
<FONT SIZE=2 FACE="verdana,Arial">
<?php
echo $LDWelcome;
?>
示例13:
$mode = '';
}
// end of switch($mode)
if ($edit) {
$returnfile .= '&batch_nr=' . $batch_nr . '&pn=' . $pn . '&tracker=' . $tracker;
}
# Start Smarty templating here
/**
* LOAD Smarty
*/
# Note: it is advisable to load this after the inc_front_chain_lang.php so
# that the smarty script can use the user configured template theme
require_once $root_path . 'gui/smarty_template/smarty_care.class.php';
$smarty = new smarty_care('nursing');
# Title in toolbar
$smarty->assign('sToolbarTitle', $LDRadioDiagnostics . " (" . $batch_nr . ")");
# hide back button
$smarty->assign('pbBack', $returnfile);
# href for help button
$smarty->assign('pbHelp', "javascript:gethelp('pending_radio_findings.php')");
# href for close button
$smarty->assign('breakfile', $breakfile);
# Window bar title
$smarty->assign('sWindowTitle', $LDRadioDiagnostics . " (" . $batch_nr . ")");
$smarty->assign('sOnLoadJs', 'onLoad="if (window.focus) window.focus();"');
# Collect extra javascript code
ob_start();
?>
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3.0//EN" "html.dtd">
<?php
示例14: useDefault
header("location:{$thisfile}" . URL_REDIRECT_APPEND . "&save_ok=1");
exit;
# Else get current global data
} else {
$glob_obj->getConfig('news_%');
}
# Start Smarty templating here
/**
* LOAD Smarty
*/
# Note: it is advisable to load this after the inc_front_chain_lang.php so
# that the smarty script can use the user configured template theme
require_once $root_path . 'gui/smarty_template/smarty_care.class.php';
$smarty = new smarty_care('system_admin');
# Title in toolbar
$smarty->assign('sToolbarTitle', $LDNewsDisplay);
# href for help button
$smarty->assign('pbHelp', "javascript:gethelp('newsdisplay.php')");
# href for close button
$smarty->assign('breakfile', $breakfile);
# Window bar title
$smarty->assign('sWindowTitle', $LDNewsDisplay);
# Collect javascript code
ob_start();
?>
<script language="javascript">
<!-- Script Begin
function useDefault() {
d=document.newsdisplay;
d.news_headline_title_font_size.value="<?php
示例15: basename
require 'include/inc_breakfile.php';
$thisfile = basename($_SERVER['PHP_SELF']);
$_SESSION['sess_file_return'] = $thisfile;
if (empty($target)) {
$target = 'search';
}
# Start Smarty templating here
/**
* LOAD Smarty
*/
# Note: it is advisable to load this after the inc_front_chain_lang.php so
# that the smarty script can use the user configured template theme
require_once $root_path . 'gui/smarty_template/smarty_care.class.php';
$smarty = new smarty_care('nursing');
# Title in toolbar
$smarty->assign('sToolbarTitle', "{$LDUploadDicom} :: {$LDSearch} ");
# hide back button
$smarty->assign('pbBack', FALSE);
# href for help button
$smarty->assign('pbHelp', "javascript:gethelp('patient_search.php')");
# href for close button
$smarty->assign('breakfile', $breakfile);
# Window bar title
$smarty->assign('sWindowTitle', "{$LDUploadDicom} :: {$LDSearch} ");
# Body onLoad javascript code
$smarty->assign('sOnLoadJs', 'onLoad="document.searchform.searchkey.select()";');
# Start creating the search module
require_once $root_path . 'include/care_api_classes/class_gui_search_person.php';
$psearch =& new GuiSearchPerson();
$psearch->setTargetFile('upload.php');
$psearch->setCancelFile($breakfile);