本文整理汇总了PHP中getUserFacilities函数的典型用法代码示例。如果您正苦于以下问题:PHP getUserFacilities函数的具体用法?PHP getUserFacilities怎么用?PHP getUserFacilities使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了getUserFacilities函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: xl
</select></td>
</tr>
<?php
if ($GLOBALS['restrict_user_facility']) {
?>
<tr>
<td colspan=2> </td>
<td><span class=text><?php
xl('Schedule Facilities:', 'e');
?>
</td>
<td>
<select name="schedule_facility[]" multiple style="width:150px;" >
<?php
$userFacilities = getUserFacilities($_GET['id']);
$ufid = array();
foreach ($userFacilities as $uf) {
$ufid[] = $uf['id'];
}
$fres = sqlStatement("select * from facility where service_location != 0 order by name");
if ($fres) {
while ($frow = sqlFetchArray($fres)) {
?>
<option <?php
echo in_array($frow['id'], $ufid) || $frow['id'] == $iter['facility_id'] ? "selected" : null;
?>
value="<?php
echo $frow['id'];
?>
"><?php
开发者ID:minggLu,项目名称:openemr,代码行数:31,代码来源:user_admin.php
示例2: xl
<tr>
<td nowrap><b><?php
xl('Facility', 'e');
?>
:</b></td>
<td>
<select name="facility" id="facility" >
<?php
// ===========================
// EVENTS TO FACILITIES
//(CHEMED) added service_location WHERE clause
// get the facilities
/***************************************************************
$qsql = sqlStatement("SELECT * FROM facility WHERE service_location != 0");
***************************************************************/
$facils = getUserFacilities($_SESSION['authId']);
$qsql = sqlStatement("SELECT id, name FROM facility WHERE service_location != 0");
/**************************************************************/
while ($facrow = sqlFetchArray($qsql)) {
/*************************************************************
$selected = ( $facrow['id'] == $e2f ) ? 'selected="selected"' : '' ;
echo "<option value={$facrow['id']} $selected>{$facrow['name']}</option>";
*************************************************************/
if ($_SESSION['authorizedUser'] || in_array($facrow, $facils)) {
$selected = $facrow['id'] == $e2f ? 'selected="selected"' : '';
echo "<option value={$facrow['id']} {$selected}>{$facrow['name']}</option>";
} else {
$selected = $facrow['id'] == $e2f ? 'selected="selected"' : '';
echo "<option value={$facrow['id']} {$selected}>{$facrow['name']}</option>";
}
/************************************************************/
开发者ID:kgenaidy,项目名称:openemr,代码行数:31,代码来源:add_edit_event.php
示例3: xl
<div id="bigCalHeader">
</div>
<div id="providerPicker">
<?php xl('Providers','e'); ?>
<div>
<?php
// ==============================
// FACILITY FILTERING (lemonsoftware)
/*********************************************************************
$facilities = getFacilities();
*********************************************************************/
if ($_SESSION['authorizeduser'] == 1) {
$facilities = getFacilities();
} else {
$facilities = getUserFacilities($_SESSION['authId']); // from users_facility
if (count($facilities) == 1)
$_SESSION['pc_facility'] = key($facilities);
}
/********************************************************************/
if (count($facilities) > 1) {
echo " <select name='pc_facility' id='pc_facility' class='view1' >\n";
if ( !$_SESSION['pc_facility'] ) $selected = "selected='selected'";
// echo " <option value='0' $selected>" .xl('All Facilities'). "</option>\n";
if (!$GLOBALS['restrict_user_facility']) echo " <option value='0' $selected>" . xl('All Facilities') . "</option>\n";
foreach ($facilities as $fa) {
$selected = ( $_SESSION['pc_facility'] == $fa['id']) ? "selected='selected'" : "" ;
echo " <option style=background-color:".htmlspecialchars($fa['color'],ENT_QUOTES)." value='" .htmlspecialchars($fa['id'],ENT_QUOTES). "' $selected>" .htmlspecialchars($fa['name'],ENT_QUOTES). "</option>\n";
}
echo " </select>\n";
}
开发者ID:sapphirew,项目名称:openemr,代码行数:31,代码来源:ajax_template.html.php
注:本文中的getUserFacilities函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论