• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP setCharSet函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中setCharSet函数的典型用法代码示例。如果您正苦于以下问题:PHP setCharSet函数的具体用法?PHP setCharSet怎么用?PHP setCharSet使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了setCharSet函数的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: Department

require_once $root_path . 'include/care_api_classes/class_department.php';
$dept_obj = new Department();
$dept =& $dept_obj->getPhoneInfo($dept_nr);
require_once $root_path . 'include/care_api_classes/class_globalconfig.php';
$glob_obj = new GlobalConfig($GLOBAL_CONFIG);
$glob_obj->getConfig('person_%');
/* Check whether config foto path exists, else use default path */
$default_photo_path = 'fotos/registration';
$photo_filename = $person['photo_filename'];
$photo_path = is_dir($root_path . $GLOBAL_CONFIG['person_foto_path']) ? $GLOBAL_CONFIG['person_foto_path'] : $default_photo_path;
require_once $root_path . 'include/inc_photo_filename_resolve.php';
html_rtl($lang);
?>
<HEAD>
<?php 
echo setCharSet();
?>
<TITLE><?php 
echo $LDInfo4Duty;
?>
</TITLE>

<script language="javascript">

function closethis()
{
	window.opener.focus();
	window.close();
}

</script>
开发者ID:patmark,项目名称:care2x-tz,代码行数:31,代码来源:doctors-dienstplan-popinfo.php


示例2: 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']);
开发者ID:patmark,项目名称:care2x-tz,代码行数:31,代码来源:labor_test_request_aftersave.php


示例3: InitializeGUI

 function InitializeGUI()
 {
     global $root_path, $lang, $cfg;
     if (empty($root_path)) {
         $root_path = $this->root_path;
     }
     if (empty($lang)) {
         $lang = $this->lang;
     }
     # HEAD META definition
     $this->assign('setCharSet', setCharSet());
     # collect JavaScript for Smarty. By default collect the help javascript and css stylesheets
     if ($this->bLoadJS) {
         ob_start();
         include $this->root_path . 'include/inc_js_gethelp.php';
         include $this->root_path . 'include/inc_css_a_hilitebu.php';
         $sTemp = ob_get_contents();
         ob_end_clean();
     }
     $this->assign('JavaScript', $sTemp);
     # Added for the html tag direction
     $this->assign('HTMLtag', html_ret_rtl($this->lang));
     # Set colors
     $this->assign('top_txtcolor', $this->cfg['top_txtcolor']);
     $this->assign('top_bgcolor', $this->cfg['top_bgcolor']);
     $this->assign('body_bgcolor', $this->cfg['body_bgcolor']);
     $this->assign('body_txtcolor', $this->cfg['body_txtcolor']);
     $this->assign('bot_bgcolor', $this->cfg['bot_bgcolor']);
     # Set title bar buttons
     $this->assign('gifBack2', createLDImgSrc($this->root_path, 'back2.gif', '0'));
     $this->assign('gifHilfeR', createLDImgSrc($this->root_path, 'hilfe-r.gif', '0'));
     $this->assign('gifClose2', createLDImgSrc($this->root_path, 'close2.gif', '0'));
     $this->assign('LDCloseAlt', $this->LDCloseAlt);
     # Set default href of the title bar buttons
     # By default, the back button uses the javascript
     $this->assign('pbBack', 'javascript:window.history.back()');
     # By default the help button points to the main help window
     $this->assign('pbHelp', "javascript:gethelp()");
     # By default the break/close button points to the main startframe
     $this->assign('breakfile', $this->root_path . 'main/startframe.php' . URL_APPEND);
     # By default the toolbar title is empty
     //$this->assign('sToolbarTitle','');
     # By default the window title is Care2x
     $this->assign('title', 'Care2x');
     # For the dhtml effects
     if ($this->cfg['dhtml']) {
         # Overload css  document body attributes
         $this->assign('bgcolor', 'bgcolor=' . $this->cfg['body_bgcolor']);
         $this->assign('dhtml', 'style="filter:alpha(opacity=70)" onMouseover="hilite(this,1)" onMouseOut="hilite(this,0)"');
         $this->assign('sLinkColors', 'link=' . $this->cfg['idx_txtcolor'] . ' alink=' . $this->cfg['body_alink'] . ' vlink=' . $this->cfg['idx_txtcolor']);
     }
     # Show Copyright
     if ($this->bShowCopyright) {
         $this->assign('sCopyright', $this->Copyright());
         $this->assign('sPageTime', $this->Pagetime());
     }
 }
开发者ID:tejdeeps,项目名称:tejcs.com,代码行数:57,代码来源:smarty_care.class.php


示例4: setCharSet

<html>
<head>
<?php 
echo setCharSet($lang);
?>
<title></title>
</head>
<body>
&nbsp;<p>
<table border=0 bgcolor="#006600" width=100%>
  <tr>
    <td>
	<table border=0 bgcolor="#ffffff" width=100%>
   <tr>
     <td align=center><font size=6 color=#800000 face="verdana,arial,helvetica"><?php 
echo $LDWarning;
?>
</font></td>
   </tr>
 </table>
 
	</td>
  </tr>
</table>

<font size=6 color=#ff0000 face="verdana,arial,helvetica">&nbsp;</font>


	 <table border=0 bgcolor="#006600" width=100%>
  <tr>
    <td>
开发者ID:patmark,项目名称:care2x-tz,代码行数:31,代码来源:inc_install_warning.php


示例5: header

* We check again the language variable lang. If table file not available use default (lang = "en")
*/
if (!isset($lang) || empty($lang)) {
    include $root_path . 'chklang.php';
}
/* Load the language table */
if (file_exists($root_path . 'language/' . $lang . '/lang_' . $lang . '_indexframe.php')) {
    include $root_path . 'language/' . $lang . '/lang_' . $lang . '_indexframe.php';
} else {
    include $root_path . 'language/en/lang_en_indexframe.php';
    $lang = 'en';
    // last desperate effort to settle the language
}
// echo $_COOKIE['ck_config']; // for debugging only
if ($mask == 2 && !$nonewmask) {
    header("location: indexframe2.php?sid=" . $sid . "&lang=" . $lang . "&boot=" . $boot . "&cookie=" . $cookie);
    exit;
}
# Get the global config for language usage
require_once $root_path . 'include/care_api_classes/class_globalconfig.php';
$GLOBALCONFIG = array();
$gc = new GlobalConfig($GLOBALCONFIG);
$gc->getConfig('language_%');
# Prepare additional data for the gui template
$charset = setCharSet();
# Load dept & ward classes
require_once $root_path . 'include/care_api_classes/class_department.php';
require_once $root_path . 'include/care_api_classes/class_ward.php';
$dept = new Department();
$ward = new Ward();
require './gui_bridge/gui_indexframe.php';
开发者ID:patmark,项目名称:care2x-tz,代码行数:31,代码来源:indexframe.php


示例6: error_reporting

<?php

error_reporting(E_COMPILE_ERROR | E_ERROR | E_CORE_ERROR);
require './roots.php';
require $root_path . 'include/inc_environment_global.php';
define('LANG_FILE', '');
//define('LANG_FILE','aufnahme.php');
$local_user = 'aufnahme_user';
require_once $root_path . 'include/inc_front_chain_lang.php';
require_once $root_path . 'include/inc_date_format_functions.php';
# Create the notes object
require_once $root_path . 'include/care_api_classes/class_notes.php';
$obj = new Notes();
# Load the notes
if ($n_obj =& $obj->getEncounterNotes($nr)) {
    $notes = $n_obj->FetchRow();
}
# Prepare variables for template
$bd = @formatDate2Local($bd, $date_format);
$TP_CHARSET = setCharSet();
$TP_DATE = @formatDate2Local($notes['date'], $date_format);
$TP_TIME = @convertTimeToLocal($notes['time']);
$TP_DOC = $notes['personell_name'];
$TP_USR = $notes['modify_id'];
$TP_NOTES = nl2br($notes['notes']);
$TP_CLOSE = '<a href="javascript:window.close()"><img ' . createLDImgSrc($root_path, 'close2.gif', '0') . '></a>';
# Load the template
$tp_notes = $TP_obj->load('registration_admission/tp_show_notes_details.htm');
eval("echo {$tp_notes};");
开发者ID:patmark,项目名称:care2x-tz,代码行数:29,代码来源:show_notes_details.php



注:本文中的setCharSet函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP setClass函数代码示例发布时间:2022-05-15
下一篇:
PHP setCache函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap