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

PHP xl_appt_category函数代码示例

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

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



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

示例1: htmlspecialchars

][Count]='<?php 
                echo htmlspecialchars($rowresult4['encounter'], ENT_QUOTES);
                ?>
';
                EncounterDateArray[<?php 
                echo attr($iter['enc_pid']);
                ?>
][Count]='<?php 
                echo htmlspecialchars(oeFormatShortDate(date("Y-m-d", strtotime($rowresult4['date']))), ENT_QUOTES);
                ?>
';
                CalendarCategoryArray[<?php 
                echo attr($iter['enc_pid']);
                ?>
][Count]='<?php 
                echo htmlspecialchars(xl_appt_category($rowresult4['pc_catname']), ENT_QUOTES);
                ?>
';
				EncounterNoteArray[<?php 
                echo attr($iter['enc_pid']);
                ?>
][Count]='<?php 
                echo htmlspecialchars($rowresult4['billing_note'], ENT_QUOTES);
                ?>
';
                Count++;
         <?php 
                $enc_billing_note = $rowresult4['billing_note'];
            }
            ?>
        </script>
开发者ID:mi-squared,项目名称:openemr,代码行数:31,代码来源:billing_report.php


示例2: view_action

 function view_action($patient_id = "", $doc_id)
 {
     // Added by Rod to support document delete:
     global $gacl_object, $phpgacl_location;
     global $ISSUE_TYPES;
     require_once dirname(__FILE__) . "/../library/acl.inc";
     require_once dirname(__FILE__) . "/../library/lists.inc";
     $d = new Document($doc_id);
     $n = new Note();
     $notes = $n->notes_factory($doc_id);
     $this->assign("file", $d);
     $this->assign("web_path", $this->_link("retrieve") . "document_id=" . $d->get_id() . "&");
     $this->assign("NOTE_ACTION", $this->_link("note"));
     $this->assign("MOVE_ACTION", $this->_link("move") . "document_id=" . $d->get_id() . "&process=true");
     $this->assign("hide_encryption", $GLOBALS['hide_document_encryption']);
     // Added by Rod to support document delete:
     $delete_string = '';
     if (acl_check('admin', 'super')) {
         $delete_string = "<a href='' class='css_button' onclick='return deleteme(" . $d->get_id() . ")'><span><font color='red'>" . xl('Delete') . "</font></span></a>";
     }
     $this->assign("delete_string", $delete_string);
     $this->assign("REFRESH_ACTION", $this->_link("list"));
     $this->assign("VALIDATE_ACTION", $this->_link("validate") . "document_id=" . $d->get_id() . "&process=true");
     // Added by Rod to support document date update:
     $this->assign("DOCDATE", $d->get_docdate());
     $this->assign("UPDATE_ACTION", $this->_link("update") . "document_id=" . $d->get_id() . "&process=true");
     // Added by Rod to support document issue update:
     $issues_options = "<option value='0'>-- " . xl('Select Issue') . " --</option>";
     $ires = sqlStatement("SELECT id, type, title, begdate FROM lists WHERE " . "pid = ? " . "ORDER BY type, begdate", array($patient_id));
     while ($irow = sqlFetchArray($ires)) {
         $desc = $irow['type'];
         if ($ISSUE_TYPES[$desc]) {
             $desc = $ISSUE_TYPES[$desc][2];
         }
         $desc .= ": " . $irow['begdate'] . " " . htmlspecialchars(substr($irow['title'], 0, 40));
         $sel = $irow['id'] == $d->get_list_id() ? ' selected' : '';
         $issues_options .= "<option value='" . $irow['id'] . "'{$sel}>{$desc}</option>";
     }
     $this->assign("ISSUES_LIST", $issues_options);
     // For tagging to encounter
     // Populate the dropdown with patient's encounter list
     $this->assign("TAG_ACTION", $this->_link("tag") . "document_id=" . $d->get_id() . "&process=true");
     $encOptions = "<option value='0'>-- " . xlt('Select Encounter') . " --</option>";
     $result_docs = sqlStatement("SELECT fe.encounter,fe.date,openemr_postcalendar_categories.pc_catname FROM form_encounter AS fe " . "LEFT JOIN openemr_postcalendar_categories ON fe.pc_catid=openemr_postcalendar_categories.pc_catid  WHERE fe.pid = ? ORDER BY fe.date desc", array($patient_id));
     if (sqlNumRows($result_docs) > 0) {
         while ($row_result_docs = sqlFetchArray($result_docs)) {
             $sel_enc = $row_result_docs['encounter'] == $d->get_encounter_id() ? ' selected' : '';
             $encOptions .= "<option value='" . attr($row_result_docs['encounter']) . "' {$sel_enc}>" . oeFormatShortDate(date('Y-m-d', strtotime($row_result_docs['date']))) . "-" . text($row_result_docs['pc_catname']) . "</option>";
         }
     }
     $this->assign("ENC_LIST", $encOptions);
     //Populate the dropdown with category list
     $visit_category_list = "<option value='0'>-- " . xlt('Select One') . " --</option>";
     $cres = sqlStatement("SELECT pc_catid, pc_catname FROM openemr_postcalendar_categories ORDER BY pc_catname");
     while ($crow = sqlFetchArray($cres)) {
         $catid = $crow['pc_catid'];
         if ($catid < 9 && $catid != 5) {
             continue;
         }
         // Applying same logic as in new encounter page.
         $visit_category_list .= "<option value='" . attr($catid) . "'>" . text(xl_appt_category($crow['pc_catname'])) . "</option>\n";
     }
     $this->assign("VISIT_CATEGORY_LIST", $visit_category_list);
     $this->assign("notes", $notes);
     $this->_last_node = null;
     $menu = new HTML_TreeMenu();
     //pass an empty array because we don't want the documents for each category showing up in this list box
     $rnode = $this->_array_recurse($this->tree->tree, array());
     $menu->addItem($rnode);
     $treeMenu_listbox = new HTML_TreeMenu_Listbox($menu, array("promoText" => xl('Move Document to Category:')));
     $this->assign("tree_html_listbox", $treeMenu_listbox->toHTML());
     $activity = $this->fetch($GLOBALS['template_dir'] . "documents/" . $this->template_mod . "_view.html");
     $this->assign("activity", $activity);
     return $this->list_action($patient_id);
 }
开发者ID:bootygal1,项目名称:openemr,代码行数:75,代码来源:C_Document.class.php


示例3: substr

        $dispmin = substr($row['pc_startTime'], 3, 2);
        if ($disphour >= 12) {
            $dispampm = "pm";
            if ($disphour > 12) {
                $disphour -= 12;
            }
        }
        $etitle = xl('(Click to edit)');
        if ($row['pc_hometext'] != "") {
            $etitle = xl('Comments') . ": " . $row['pc_hometext'] . "\r\n" . $etitle;
        }
        echo "<a href='javascript:oldEvt(" . htmlspecialchars($row['pc_eid'], ENT_QUOTES) . ")' title='" . htmlspecialchars($etitle, ENT_QUOTES) . "'>";
        echo "<b>" . htmlspecialchars(xl($dayname) . ", " . $row['pc_eventDate'], ENT_NOQUOTES) . "</b>" . xlt("Status") . "(";
        echo " " . generate_display_field(array('data_type' => '1', 'list_id' => 'apptstat'), $row['pc_apptstatus']) . ")<br>";
        // can't use special char parser on this
        echo htmlspecialchars("{$disphour}:{$dispmin} " . xl($dispampm) . " " . xl_appt_category($row['pc_catname']), ENT_NOQUOTES) . "<br>\n";
        echo htmlspecialchars($row['fname'] . " " . $row['lname'], ENT_NOQUOTES) . "</a><br>\n";
    }
    if (isset($res) && $res != null) {
        if ($count < 1) {
            echo "&nbsp;&nbsp;" . htmlspecialchars(xl('None'), ENT_NOQUOTES);
        }
        echo "</div>";
    }
}
// Show PAST appointments.
if (isset($pid) && !$GLOBALS['disable_calendar'] && $GLOBALS['num_past_appointments_to_show'] > 0) {
    $query = "SELECT e.pc_eid, e.pc_aid, e.pc_title, e.pc_eventDate, " . "e.pc_startTime, e.pc_hometext, u.fname, u.lname, u.mname, " . "c.pc_catname, e.pc_apptstatus " . "FROM openemr_postcalendar_events AS e, users AS u, " . "openemr_postcalendar_categories AS c WHERE " . "e.pc_pid = ? AND e.pc_eventDate < CURRENT_DATE AND " . "u.id = e.pc_aid AND e.pc_catid = c.pc_catid " . "ORDER BY e.pc_eventDate, e.pc_startTime DESC " . "LIMIT " . $GLOBALS['num_past_appointments_to_show'];
    $pres = sqlStatement($query, array($pid));
    // appointments expand collapse widget
    $widgetTitle = xl("Past Appoinments");
开发者ID:mindfeederllc,项目名称:openemr,代码行数:31,代码来源:demographics.php


示例4: while

        EncounterIdArray=new Array;
        Count = 0;
	<?php 
    if (isset($enc_list) && sqlNumRows($enc_list) > 0) {
        while ($row = sqlFetchArray($enc_list)) {
            ?>
				        EncounterIdArray[Count]='<?php 
            echo attr($row['encounter']);
            ?>
';
                                        EncounterDateArray[Count]='<?php 
            echo attr(oeFormatShortDate(date("Y-m-d", strtotime($row['date']))));
            ?>
';
                                        CalendarCategoryArray[Count]='<?php 
            echo attr(xl_appt_category($row['pc_catname']));
            ?>
';
                                        Count++;
	<?php 
        }
    }
    ?>
  top.restoreSession();
  $.ajax({
    type:'get',
    url:'<?php 
    echo $GLOBALS['webroot'] . "/interface/patient_file/encounter/patient_encounter.php";
    ?>
',
    data:{set_pid: pid},
开发者ID:juggernautsei,项目名称:openemr,代码行数:31,代码来源:messages.php


示例5: generate_print_field


//.........这里部分代码省略.........
                                                $tmp = "({$currvalue})";
                                            }
                                        }
                                        if ($tmp === '') {
                                            $tmp = '&nbsp;';
                                        } else {
                                            $tmp = htmlspecialchars($tmp, ENT_QUOTES);
                                        }
                                        echo $tmp;
                                    } else {
                                        if ($data_type == 17) {
                                            $tmp = '';
                                            if ($currvalue) {
                                                foreach ($ISSUE_TYPES as $key => $value) {
                                                    if ($currvalue == $key) {
                                                        $tmp = $value[1];
                                                    }
                                                }
                                                if (empty($tmp)) {
                                                    $tmp = "({$currvalue})";
                                                }
                                            }
                                            if ($tmp === '') {
                                                $tmp = '&nbsp;';
                                            } else {
                                                $tmp = htmlspecialchars($tmp, ENT_QUOTES);
                                            }
                                            echo $tmp;
                                        } else {
                                            if ($data_type == 18) {
                                                $tmp = '';
                                                if ($currvalue) {
                                                    $crow = sqlQuery("SELECT pc_catid, pc_catname " . "FROM openemr_postcalendar_categories WHERE pc_catid = ?", array($currvalue));
                                                    $tmp = xl_appt_category($crow['pc_catname']);
                                                    if (empty($tmp)) {
                                                        $tmp = "({$currvalue})";
                                                    }
                                                }
                                                if ($tmp === '') {
                                                    $tmp = '&nbsp;';
                                                } else {
                                                    $tmp = htmlspecialchars($tmp, ENT_QUOTES);
                                                }
                                                echo $tmp;
                                            } else {
                                                if ($data_type == 21) {
                                                    // In this special case, fld_length is the number of columns generated.
                                                    $cols = max(1, $fld_length);
                                                    $avalue = explode('|', $currvalue);
                                                    $lres = sqlStatement("SELECT * FROM list_options " . "WHERE list_id = ? ORDER BY seq, title", array($list_id));
                                                    echo "<table cellpadding='0' cellspacing='0' width='100%'>";
                                                    $tdpct = (int) (100 / $cols);
                                                    for ($count = 0; $lrow = sqlFetchArray($lres); ++$count) {
                                                        $option_id = $lrow['option_id'];
                                                        if ($count % $cols == 0) {
                                                            if ($count) {
                                                                echo "</tr>";
                                                            }
                                                            echo "<tr>";
                                                        }
                                                        echo "<td width='{$tdpct}%'>";
                                                        echo "<input type='checkbox'";
                                                        if (in_array($option_id, $avalue)) {
                                                            echo " checked";
                                                        }
                                                        echo ">" . htmlspecialchars(xl_list_label($lrow['title']), ENT_NOQUOTES);
开发者ID:hitechelp,项目名称:openemr,代码行数:67,代码来源:options.inc.php


示例6: text

        echo "<td align='center' class='js-blink-infinite'>\t";
        # and if so blink
    } else {
        echo "<td align='center' class='detail'> ";
        # and if not do not blink
    }
    if ($yestime == '1' && $timecheck >= 1 && strtotime($newarrive) != '') {
        echo text($timecheck . ' ' . ($timecheck >= 2 ? xl('minutes') : xl('minute')));
    }
    #end time in current status
    ?>
	
		 </td>
         <td class="detail" align="center">
         <?php 
    echo text(xl_appt_category($appointment['pc_title']));
    ?>
         </td>
         <td class="detail" align="center">
         <?php 
    echo text($docname);
    ?>
         </td>
         <td class="detail" align="center"> 
         <?php 
    # total time in practice
    if (strtotime($newend) != '') {
        $from_time = strtotime($newarrive);
        $to_time = strtotime($newend);
    } else {
        $from_time = strtotime($newarrive);
开发者ID:minggLu,项目名称:openemr,代码行数:31,代码来源:patient_tracker.php


示例7: postcalendar_user_search

/**
 * search events
 */
function postcalendar_user_search()
{
    if (!(bool) PC_ACCESS_OVERVIEW) {
        return _POSTCALENDARNOAUTH;
    }
    $tpl = new pcSmarty();
    $k = formData("pc_keywords", "R");
    //from library/formdata.inc.php
    $k_andor = pnVarCleanFromInput('pc_keywords_andor');
    $pc_category = pnVarCleanFromInput('pc_category');
    $pc_facility = pnVarCleanFromInput('pc_facility');
    $pc_topic = pnVarCleanFromInput('pc_topic');
    $submit = pnVarCleanFromInput('submit');
    $event_dur_hours = pnVarCleanFromInput('event_dur_hours');
    $event_dur_minutes = pnVarCleanFromInput('event_dur_minutes');
    $start = pnVarCleanFromInput('start');
    $end = pnVarCleanFromInput('end');
    // get list of categories for the user to choose from
    $categories = postcalendar_userapi_getCategories();
    $cat_options = '';
    foreach ($categories as $category) {
        $selected = "";
        if ($pc_category == $category[id]) {
            $selected = " SELECTED ";
        }
        //modified 8/09 by BM to allow translation if applicable
        $cat_options .= "<option value=\"{$category['id']}\" {$selected}>" . xl_appt_category($category[name]) . "</option>";
    }
    $tpl->assign_by_ref('CATEGORY_OPTIONS', $cat_options);
    $tpl->assign('event_dur_hours', $event_dur_hours);
    $tpl->assign('event_dur_minutes', $event_dur_minutes);
    // create default start and end dates for the search form
    if (isset($start) && $start != "") {
        $tpl->assign('DATE_START', $start);
    } else {
        $tpl->assign('DATE_START', date("m/d/Y"));
    }
    if (isset($end) && $end != "") {
        $tpl->assign('DATE_END', $end);
    } else {
        $tpl->assign('DATE_END', date("m/d/Y", strtotime("+7 Days", time())));
    }
    // then override the setting if we have a value from the submitted form
    $ProviderID = pnVarCleanFromInput("provider_id");
    if (is_numeric($ProviderID)) {
        $tpl->assign('ProviderID', $ProviderID);
    } elseif ($ProviderID == "_ALL_") {
    } else {
        $tpl->assign('ProviderID', "");
    }
    $provinfo = getProviderInfo();
    $tpl->assign('providers', $provinfo);
    // build a list of provider-options for the select box on the input form -- JRM
    $provider_options = "<option value='_ALL_' ";
    if ($ProviderID == "_ALL_") {
        $provider_options .= " SELECTED ";
    }
    $provider_options .= ">" . xl('All Providers') . "</option>";
    foreach ($provinfo as $provider) {
        $selected = "";
        // if we don't have a ProviderID chosen, pick the first one from the
        // pc_username Session variable
        if ($ProviderID == "") {
            // that variable stores the 'username' and not the numeric 'id'
            if ($_SESSION['pc_username'][0] == $provider['username']) {
                $selected = " SELECTED ";
            }
        } else {
            if ($ProviderID == $provider['id']) {
                $selected = " SELECTED ";
            }
        }
        $provider_options .= "<option value=\"" . $provider['id'] . "\" " . $selected . ">";
        $provider_options .= $provider['lname'] . ", " . $provider['fname'] . "</option>";
    }
    $tpl->assign_by_ref('PROVIDER_OPTIONS', $provider_options);
    // build a list of facility options for the select box on the input form -- JRM
    $facilities = getFacilities();
    $fac_options = "<option value=''>" . xl('All Facilities') . "</option>";
    foreach ($facilities as $facility) {
        $selected = "";
        if ($facility['id'] == $pc_facility) {
            $selected = " SELECTED ";
        }
        $fac_options .= "<option value=\"" . $facility['id'] . "\" " . $selected . ">";
        $fac_options .= $facility['name'] . "</option>";
    }
    $tpl->assign_by_ref('FACILITY_OPTIONS', $fac_options);
    $PatientID = pnVarCleanFromInput("patient_id");
    // limit the number of results returned by getPatientPID
    // this helps to prevent the server from stalling on a request with
    // no PID and thousands of PIDs in the database -- JRM
    // the function getPatientPID($pid, $given, $orderby, $limit, $start) <-- defined in library/patient.inc
    $plistlimit = 500;
    if (is_numeric($PatientID)) {
        $tpl->assign('PatientList', getPatientPID(array('pid' => $PatientID, 'limit' => $plistlimit)));
    } else {
//.........这里部分代码省略.........
开发者ID:stephen-smith,项目名称:openemr,代码行数:101,代码来源:pnuser.php


示例8: htmlspecialchars

             $apptStyle = " style='background-color:#e6e6ff;'";
         } else {
             $apptStyle = '';
         }
     }
     //////
     echo "<div " . $apptStyle . ">";
     echo "<a href='javascript:oldEvt(" . htmlspecialchars(preg_replace("/-/", "", $row['pc_eventDate']), ENT_QUOTES) . ', ' . htmlspecialchars($row['pc_eid'], ENT_QUOTES) . ")' title='" . htmlspecialchars($etitle, ENT_QUOTES) . "'>";
     echo "<b>" . htmlspecialchars($row['pc_eventDate'], ENT_NOQUOTES) . ", ";
     echo htmlspecialchars(sprintf("%02d", $disphour) . ":{$dispmin} " . xl($dispampm) . " (" . xl($dayname), ENT_NOQUOTES) . ")</b> ";
     if ($row['pc_recurrtype']) {
         echo "<img src='" . $GLOBALS['webroot'] . "/interface/main/calendar/modules/PostCalendar/pntemplates/default/images/repeating8.png' border='0' style='margin:0px 2px 0px 2px;' title='" . htmlspecialchars(xl("Repeating event"), ENT_QUOTES) . "' alt='" . htmlspecialchars(xl("Repeating event"), ENT_QUOTES) . "'>";
     }
     echo "<span title='" . generate_display_field(array('data_type' => '1', 'list_id' => 'apptstat'), $row['pc_apptstatus']) . "'>";
     echo "<br>" . xlt('Status') . "( " . htmlspecialchars($row['pc_apptstatus'], ENT_NOQUOTES) . " ) </span>";
     echo htmlspecialchars(xl_appt_category($row['pc_catname']), ENT_NOQUOTES) . "\n";
     if ($row['pc_hometext']) {
         echo " <span style='color:green'> Com</span>";
     }
     echo "<br>" . htmlspecialchars($row['ufname'] . " " . $row['ulname'], ENT_NOQUOTES) . "</a></div>\n";
     //////
 }
 if ($resNotNull) {
     //////
     if ($count < 1) {
         echo "&nbsp;&nbsp;" . htmlspecialchars(xl('None'), ENT_NOQUOTES);
     } else {
         //////
         if ($extraApptDate) {
             echo "<div>&nbsp;</div>";
         } else {
开发者ID:mi-squared,项目名称:openemr,代码行数:31,代码来源:demographics.php


示例9: xl_appt_category

        echo $appointment['pubpid'];
        ?>
</td>

                <td class="detail">&nbsp;<?php 
        echo $appointment['phone_home'];
        ?>
</td>

                <td class="detail">&nbsp;<?php 
        echo $appointment['phone_cell'];
        ?>
</td>

		<td class="detail">&nbsp;<?php 
        echo xl_appt_category($appointment['pc_catname']);
        ?>
		</td>

		<td class="detail">&nbsp;<?php 
        echo $appointment['pc_hometext'];
        ?>
</td>

	</tr>

	<?php 
        $lastdocname = $docname;
    }
    // assign the session key with the $pid_list array - note array might be empty -- handle on the printed_fee_sheet.php page.
    $_SESSION['pidList'] = $pid_list;
开发者ID:rreddy70,项目名称:openemr,代码行数:31,代码来源:appointments_report.php


示例10: extract


//.........这里部分代码省略.........
        } elseif (!pnSecAuthAction(0, 'PostCalendar::Category', "{$tmp['catname']}::{$tmp['catid']}", ACCESS_OVERVIEW)) {
            continue;
        } elseif (!pnSecAuthAction(0, 'PostCalendar::User', "{$tmp['uname']}::{$cuserid}", ACCESS_OVERVIEW)) {
            continue;
        } elseif (!pnSecAuthAction(0, 'PostCalendar::Topic', "{$topicname}::{$tmp['topic']}", ACCESS_OVERVIEW)) {
            continue;
        } elseif ($tmp['sharing'] == SHARING_PRIVATE && $cuserid != $userid) {
            continue;
        }
        // add event to the array if we passed the permissions check
        // this is the common information
        $events[$i]['intervals'] = $tmp['duration'] / 60 / $GLOBALS['day_calandar_interval'];
        //sets the number of rows this event should span
        $events[$i]['eid'] = $tmp['eid'];
        $events[$i]['uname'] = $tmp['uname'];
        $events[$i]['uid'] = $cuserid;
        $events[$i]['catid'] = $tmp['catid'];
        $events[$i]['time'] = $tmp['time'];
        $events[$i]['eventDate'] = $tmp['eventDate'];
        $events[$i]['duration'] = $tmp['duration'];
        // there has to be a more intelligent way to do this
        @(list($events[$i]['duration_hours'], $dmin) = @explode('.', $tmp['duration'] / 60 / 60));
        $events[$i]['duration_minutes'] = substr(sprintf('%.2f', '.' . 60 * ($dmin / 100)), 2, 2);
        //''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
        $events[$i]['endDate'] = $tmp['endDate'];
        $events[$i]['startTime'] = $tmp['startTime'];
        $events[$i]['recurrtype'] = $tmp['recurrtype'];
        $events[$i]['recurrfreq'] = $tmp['recurrfreq'];
        $events[$i]['recurrspec'] = $tmp['recurrspec'];
        $events[$i]['topic'] = $tmp['topic'];
        $events[$i]['alldayevent'] = $tmp['alldayevent'];
        $events[$i]['catcolor'] = $tmp['catcolor'];
        // Modified 06-2009 by BM to translate the category if applicable
        $events[$i]['catname'] = xl_appt_category($tmp['catname']);
        $events[$i]['catdesc'] = $tmp['catdesc'];
        $events[$i]['pid'] = $tmp['pid'];
        $events[$i]['apptstatus'] = $tmp['apptstatus'];
        $events[$i]['pubpid'] = $tmp['pubpid'];
        $events[$i]['patient_name'] = $tmp['patient_name'];
        $events[$i]['provider_name'] = $tmp['provider_name'];
        $events[$i]['owner_name'] = $tmp['owner_name'];
        $events[$i]['patient_dob'] = $tmp['patient_dob'];
        $events[$i]['patient_age'] = getPatientAge($tmp['patient_dob']);
        $events[$i]['facility'] = getFacility($tmp['facility']);
        $events[$i]['sharing'] = $tmp['sharing'];
        $events[$i]['prefcatid'] = $tmp['prefcatid'];
        $events[$i]['aid'] = $tmp['aid'];
        $events[$i]['topictext'] = $topicname;
        $events[$i]['intervals'] = ceil($tmp['duration'] / 60 / $GLOBALS['calendar_interval']);
        if ($events[$i]['intervals'] == 0) {
            $events[$i]['intervals'] = 1;
        }
        // is this a public event to be shown as busy?
        if ($tmp['sharing'] == SHARING_BUSY && $cuserid != $userid) {
            // make it not display any information
            $events[$i]['title'] = _USER_BUSY_TITLE;
            $events[$i]['hometext'] = _USER_BUSY_MESSAGE;
            $events[$i]['desc'] = _USER_BUSY_MESSAGE;
            $events[$i]['conttel'] = '';
            $events[$i]['contname'] = '';
            $events[$i]['contemail'] = '';
            $events[$i]['website'] = '';
            $events[$i]['fee'] = '';
            $events[$i]['location'] = '';
            $events[$i]['street1'] = '';
            $events[$i]['street2'] = '';
开发者ID:bradymiller,项目名称:openemr,代码行数:67,代码来源:pnuserapi.php


示例11: text

            echo text(oeFormatTime($appointment['pc_startTime']));
            ?>
        </td>

        <td class="detail">&nbsp;<?php 
            echo text($appointment['fname'] . " " . $appointment['lname']);
            ?>
        </td>

        <td class="detail">&nbsp;<?php 
            echo text($appointment['pubpid']);
            ?>
        </td>

        <td class="detail">&nbsp;<?php 
            echo text(xl_appt_category($appointment['pc_catname']));
            ?>
        </td>

        <td class="detail">
            <?php 
            //Appointment Status
            if ($chk_show_details) {
                if ($no_visit != 1) {
                    echo xlt('Complete Visit Time');
                }
            } else {
                if ($tracker_status != "") {
                    $frow['data_type'] = 1;
                    $frow['list_id'] = 'apptstat';
                    generate_print_field($frow, $tracker_status);
开发者ID:katopenzz,项目名称:openemr,代码行数:31,代码来源:patient_flow_board_report.php


示例12: echo

        <td class="detail">&nbsp;<?php echo ($docname == $lastdocname) ? "" : $docname ?>
        </td>

        <td class="detail"><?php echo text(oeFormatShortDate($appointment['pc_eventDate'])) ?>
        </td>
        
        <td class="detail"><?php echo text(oeFormatTime($appointment['pc_startTime'])) ?>
        </td>

        <td class="detail">&nbsp;<?php echo text($appointment['fname'] . " " . $appointment['lname']) ?>
        </td>

        <td class="detail">&nbsp;<?php echo text($appointment['pubpid']) ?>
        </td>

        <td class="detail">&nbsp;<?php echo text(xl_appt_category($appointment['pc_catname'])) ?>
        </td>

        <td class="detail">
            <?php
                //Appointment Status
                if($chk_show_details) {
                   if($no_visit != 1) {
                    echo xlt('Complete Visit Time');
                   }
                }
                else
                {
                 if($tracker_status != ""){
                    $frow['data_type']=1;
                    $frow['list_id']='apptstat';
开发者ID:jayvicson,项目名称:openemr,代码行数:31,代码来源:patient_flow_board_report.php


示例13: while

	EncounterIdArray=new Array;
	Count=0;
	 <?php 
if (sqlNumRows($result4) > 0) {
    while ($rowresult4 = sqlFetchArray($result4)) {
        ?>
					EncounterIdArray[Count]='<?php 
        echo attr($rowresult4['encounter']);
        ?>
';
					EncounterDateArray[Count]='<?php 
        echo attr(oeFormatShortDate(date("Y-m-d", strtotime($rowresult4['date']))));
        ?>
';
					CalendarCategoryArray[Count]='<?php 
        echo attr(xl_appt_category($rowresult4['pc_catname']));
        ?>
';
					Count++;
	 <?php 
    }
}
?>
	 top.window.parent.left_nav.setPatientEncounter(EncounterIdArray,EncounterDateArray,CalendarCategoryArray);
 top.restoreSession();
<?php 
if ($mode == 'new') {
    ?>
 parent.left_nav.setEncounter(<?php 
    echo "'" . attr(oeFormatShortDate($date)) . "', '" . attr($encounter) . "', window.name";
    ?>
开发者ID:juggernautsei,项目名称:openemr,代码行数:31,代码来源:save.php


示例14: xl_appt_category

  <td class="detail">
   &nbsp;<?php 
            echo $row['fname'] . " " . $row['lname'];
            ?>
  </td>

  <td class="detail">
   &nbsp;<?php 
            echo $row['pubpid'];
            ?>
  </td>

  <td class="detail">
   &nbsp;<?php 
            echo xl_appt_category($row['pc_catname']);
            ?>
  </td>

 </tr>

<?php 
            $lastdocname = $docname;
        }
    }
    ?>
</tbody>
</table>
</div>  <!-- end of search results -->
<?php 
} else {
开发者ID:robonology,项目名称:openemr,代码行数:30,代码来源:appointments_report.php


示例15: xl_appt_category

    } else {
        if ($crow['pc_catid'] == $default_catid) {
            $catoptions .= " selected";
            $thisduration = $duration;
        }
    }
    $catoptions .= ">" . xl_appt_category($crow['pc_catname']) . "</option>\n";
    // This section is to build the list of preferred categories:
    if ($duration) {
        $prefcat_options .= "    <option value='" . $crow['pc_catid'] . "'";
        if ($eid) {
            if ($crow['pc_catid'] == $row['pc_prefcatid']) {
                $prefcat_options .= " selected";
            }
        }
        $prefcat_options .= ">" . xl_appt_category($crow['pc_catname']) . "</option>\n";
    }
}
?>

<?php 
require $GLOBALS['srcdir'] . "/restoreSession.php";
?>

 // This is for callback by the find-patient popup.
 function setpatient(pid, lname, fname, dob) {
  var f = document.forms[0];
  f.form_patient.value = lname + ', ' + fname;
  f.form_pid.value = pid;
  dobstyle = (dob == '' || dob.substr(5, 10) == '00-00') ? '' : 'none';
  document.getElementById('dob_row').style.display = dobstyle;
开发者ID:kgenaidy,项目名称:openemr,代码行数:31,代码来源:add_edit_event.php


示例16: postcalendar_admin_categoryLimits

function postcalendar_admin_categoryLimits($msg = '', $e = '', $args)
{
    if (!PC_ACCESS_ADD) {
        return _POSTCALENDARNOAUTH;
    }
    extract($args);
    unset($args);
    $output = new pnHTML();
    $output->SetInputMode(_PNH_VERBATIMINPUT);
    // set up Smarty
    $tpl = new pcSmarty();
    $tpl->caching = false;
    $template_name = pnModGetVar(__POSTCALENDAR__, 'pcTemplate');
    if (!isset($template_name)) {
        $template_name = 'default';
    }
    if (!empty($e)) {
        $output->Text('<div style="padding:5px; border:1px solid red; background-color: pink;">');
        $output->Text('<center><b>' . $e . '</b></center>');
        $output->Text('</div><br />');
    }
    if (!empty($msg)) {
        $output->Text('<div style="padding:5px; border:1px solid green; background-color: lightgreen;">');
        $output->Text('<center><b>' . $msg . '</b></center>');
        $output->Text('</div><br />');
    }
    //=================================================================
    //  Setup the correct config file path for the templates
    //=================================================================
    $modinfo = pnModGetInfo(pnModGetIDFromName(__POSTCALENDAR__));
    $modir = pnVarPrepForOS($modinfo['directory']);
    $modname = $modinfo['displayname'];
    //print_r($all_categories);
    unset($modinfo);
    $tpl->assign('action', pnModURL(__POSTCALENDAR__, 'admin', 'categoryLimitsUpdate'));
    //===============================================================
    //  Setup titles for smarty
    //===============================================================
    $tpl->assign('_PC_LIMIT_TITLE', _PC_LIMIT_TITLE);
    $tpl->assign('StartTimeTitle', _PC_LIMIT_START_TIME);
    $tpl->assign('EndTimeTile', _PC_LIMIT_END_TIME);
    $tpl->assign('LimitHoursTitle', _PC_TIMED_DURATION_HOURS);
    $tpl->assign('LimitMinutesTitle', _PC_TIMED_DURATION_MINUTES);
    //=============================================================
    // Setup Vars for smarty
    //============================================================
    $tpl->assign('mer_title', 'mer');
    $mer = array('am', 'pm');
    $tpl->assign_by_ref('mer', $mer);
    $tpl->assign('starttimeh', 'starttimeh');
    $tpl->assign('starttimem', 'starttimem');
    $tpl->assign('endtimeh', 'endtimeh');
    $tpl->assign('endtimem', 'endtimem');
    $tpl->assign('InputLimit', 'limit');
    $tpl->assign('LimitTitle', _PC_LIMIT_TITLE);
    $tpl->assign('_PC_NEW_LIMIT_TITLE', _PC_NEW_LIMIT_TITLE);
    $tpl->assign('_PC_CAT_DELETE', _PC_CAT_DELETE);
    $tpl->assign('EndTimeTitle', _PC_LIMIT_END_TIME);
    $hour_array = array('00', '01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '21', '21', '22', '23');
    $min_array = array('00', '05', '10', '15', '20', '25', '30', '35', '40', '45', '50', '55');
    $tpl->assign_by_ref('hour_array', $hour_array);
    $tpl->assign_by_ref('min_array', $min_array);
    $categories = pnModAPIFunc(__POSTCALENDAR__, 'user', 'getCategories');
    // create translations of category names if applicable
    $sizeAllCat = count($categories);
    for ($m = 0; $m < $sizeAllCat; $m++) {
        $tempCategory = $categories[$m]["name"];
        $categories[$m]["name"] = xl_appt_category($tempCategory);
    }
    $tpl->assign_by_ref('categories', $categories);
    $limits = pnModAPIFunc(__POSTCALENDAR__, 'user', 'getCategoryLimits');
    $tpl->assign_by_ref('limits', $limits);
    $tpl->assign('BGCOLOR2', $GLOBALS['style']['BGCOLOR2']);
    $tpl->assign("catTitle", _PC_REP_CAT_TITLE_S);
    $tpl->assign("catid", "catid");
    $form_submit = '<input type=hidden name="form_action" value="commit"/>
				   ' . $authkey . '<input type="submit" name="submit" value="' . xl('go') . '">';
    $tpl->assign('FormSubmit', $form_submit);
    $output->Text($tpl->fetch($template_name . '/admin/submit_category_limit.html'));
    $output->Text(postcalendar_footer());
    return $output->GetOutput();
}
开发者ID:robertdown,项目名称:openemr,代码行数:82,代码来源:pnadmin.php


示例17: xlt

	<option value='_blank'>-- <?php 
echo xlt('Select One');
?>
 --</option>
<?php 
$cres = sqlStatement("SELECT pc_catid, pc_catname " . "FROM openemr_postcalendar_categories where pc_active = 1 ORDER BY pc_seq ");
while ($crow = sqlFetchArray($cres)) {
    $catid = $crow['pc_catid'];
    if ($catid < 9 && $catid != 5) {
        continue;
    }
    echo "       <option value='" . attr($catid) . "'";
    if ($viewmode && $crow['pc_catid'] == $result['pc_catid']) {
        echo " selected";
    }
    echo ">" . text(xl_appt_category($crow['pc_catname'])) . "</option>\n";
}
?>
      </select>
     </td>
    </tr>

    <tr>
     <td class='bold' nowrap><?php 
echo xlt('Facility:');
?>
</td>
     <td class='text'>
      <select name='facility_id' onChange="bill_loc()">
<?php 
if ($viewmode) {
开发者ID:mi-squared,项目名称:openemr,代码行数:31,代码来源:common.php


示例18: smarty_function_pc_filter

/**
 *  $Id$
 *
 *  PostCalendar::PostNuke Events Calendar Module
 *  Copyright (C) 2002  The PostCalendar Team
 *  http://postcalendar.tv
 *  
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *  
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *  
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 *  To read the license please read the docs/license.txt or visit
 *  http://www.gnu.org/copyleft/gpl.html
 *
 */
function smarty_function_pc_filter($args, &$smarty)
{
    extract($args);
    unset($a 

鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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