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

PHP getUserFacilities函数代码示例

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

本文整理汇总了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>&nbsp;</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;未经允许,请勿转载。


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP getUserFullName函数代码示例发布时间:2022-05-15
下一篇:
PHP getUserFace函数代码示例发布时间: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