当前位置: 首页>>代码示例>>PHP>>正文


PHP xla函数代码示例

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


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

示例1: make_task

/**
 *	This function creates a task as a record in the form_taskman DB_table.
 */
function make_task($ajax_req)
{
    global $send;
    $from_id = $ajax_req['from_id'];
    $to_id = $ajax_req['to_id'];
    $patient_id = $ajax_req['pid'];
    $doc_type = $ajax_req['doc_type'];
    $doc_id = $ajax_req['doc_id'];
    $enc = $ajax_req['enc'];
    $query = "SELECT * FROM users WHERE id=?";
    $to_data = sqlQuery($query, array($to_id));
    $filename = "Fax_" . $encounter . "_" . $to_data['lname'] . ".pdf";
    $query = "SELECT * FROM documents where encounter_id=? and foreign_id=? and url like ?";
    $doc = sqlQuery($query, array($encounter, $pid, '%' . $filename . '%'));
    $sql = "SELECT * from form_taskman where FROM_ID=? and TO_ID=? and PATIENT_ID=? and ENC_ID=?";
    $task = sqlQuery($sql, array($from_id, $to_id, $patient_id, $enc));
    if (!$doc['ID'] && $task['ID'] && $task['REQ_DATE'] < time() - 60) {
        // The task was requested more than a minute ago (prevents multi-clicks from "re-generating" the PDF),
        // but the document was deleted (to redo it)...
        // Delete the task, recreate the task, and send the newly made PDF.
        $sql = "DELETE from form_taskman where FROM_ID=? and TO_ID=? and PATIENT_ID=? and ENC_ID=?";
        $task = sqlQuery($sql, array($from_id, $to_id, $patient_id, $enc));
    }
    if ($task['ID'] && $task['COMPLETED'] == '2') {
        $send['comments'] = xlt('This fax has already been sent.') . " " . xlt('If you made changes and want to re-send it, delete the original (in Communications) and try again.') . " " . xlt('Filename') . ": " . $filename;
        echo json_encode($send);
        exit;
    } else {
        if ($task['ID'] && $task['COMPLETED'] == '1') {
            if ($task['DOC_TYPE'] == 'Fax') {
                $send['DOC_link'] = "<a href='" . $webroot . "/openemr/controller.php?document&view&patient_id=" . $task['PATIENT_ID'] . "&doc_id=" . $task['DOC_ID'] . "'\n\t\t\t\t\t\t\t\ttarget='_blank' title='" . xla('View the Summary Report sent to Fax Server.') . "'>\n\t\t\t\t\t\t\t\t<i class='fa fa-file-pdf-o fa-fw'></i></a>\n\t\t\t\t\t\t\t\t<i class='fa fa-repeat fa-fw' \n\t\t\t\t\t\t\t\t\tonclick=\"top.restoreSession(); create_task('" . attr($pat_data['ref_providerID']) . "','Fax-resend','ref'); return false;\">\n\t\t\t\t\t\t\t\t\t</i>\n\t\t\t\t\t\t\t";
                //add a resend option.
                $send['comments'] = xlt('This fax has already been sent.');
                echo json_encode($send);
                exit;
            } else {
                if ($task['DOC_TYPE'] == "Fax-resend") {
                    //we need to resend this fax????
                    //You can only resend from here once.
                    $send['comments'] = xlt('To resend, delete the file from Communications and try again.');
                    echo json_encode($send);
                    update_taskman($task, 'refaxed', '2');
                    exit;
                } else {
                    //DOC_TYPE is a Fax or Report
                    $send['comments'] = xlt('Currently working on making this document') . "...\n";
                }
            }
        } else {
            if (!$task['ID']) {
                $sql = "INSERT into form_taskman \n\t\t\t\t(REQ_DATE, FROM_ID,  TO_ID,  PATIENT_ID,  DOC_TYPE,  DOC_ID,  ENC_ID) VALUES\n\t\t\t\t(NOW(), '{$from_id}', '{$to_id}','{$patient_id}','{$doc_type}','{$doc_id}','{$enc}')";
                sqlQuery($sql);
            } else {
                $send['comments'] = xlt('Currently working on making this document') . "...\n";
            }
        }
    }
}
开发者ID:bradymiller,项目名称:openemr,代码行数:61,代码来源:taskman_functions.php

示例2: genWarehouseList

function genWarehouseList($tag_name, $currvalue, $title, $class = '')
{
    global $drug_id;
    $drow = sqlQuery("SELECT allow_multiple FROM drugs WHERE drug_id = ?", array($drug_id));
    $allow_multiple = $drow['allow_multiple'];
    $lres = sqlStatement("SELECT * FROM list_options " . "WHERE list_id = 'warehouse' ORDER BY seq, title");
    echo "<select name='" . attr($tag_name) . "' id='" . attr($tag_name) . "'";
    if ($class) {
        echo " class='" . attr($class) . "'";
    }
    echo " title='" . attr($title) . "'>";
    $got_selected = FALSE;
    $count = 0;
    if ($allow_multiple) {
        echo "<option value=''>" . xlt('Unassigned') . "</option>";
        ++$count;
    }
    while ($lrow = sqlFetchArray($lres)) {
        $whid = $lrow['option_id'];
        if ($whid != $currvalue && !$allow_multiple && checkWarehouseUsed($whid)) {
            continue;
        }
        echo "<option value='" . attr($whid) . "'";
        if (strlen($currvalue) == 0 && $lrow['is_default'] || strlen($currvalue) > 0 && $whid == $currvalue) {
            echo " selected";
            $got_selected = TRUE;
        }
        echo ">" . text($lrow['title']) . "</option>\n";
        ++$count;
    }
    if (!$got_selected && strlen($currvalue) > 0) {
        echo "<option value='" . attr($currvalue) . "' selected>* " . text($currvalue) . " *</option>";
        echo "</select>";
        echo " <font color='red' title='" . xla('Please choose a valid selection from the list.') . "'>" . xlt('Fix this') . "!</font>";
    } else {
        echo "</select>";
    }
    return $count;
}
开发者ID:katopenzz,项目名称:openemr,代码行数:39,代码来源:add_edit_lot.php

示例3: writeOptionLine


//.........这里部分代码省略.........
    echo "  <td align='center' class='optcell'>";
    echo "<input type='text' name='opt[{$opt_line_no}][id]' value='" . htmlspecialchars($option_id, ENT_QUOTES) . "' size='12' maxlength='63' class='optin' />";
    echo "</td>\n";
    echo "  <td align='center' class='optcell'>";
    echo "<input type='text' name='opt[{$opt_line_no}][title]' value='" . htmlspecialchars($title, ENT_QUOTES) . "' size='20' maxlength='63' class='optin' />";
    echo "</td>\n";
    // if not english and translating lists then show the translation
    if ($GLOBALS['translate_lists'] && $_SESSION['language_choice'] > 1) {
        echo "  <td align='center' class='translation'>" . htmlspecialchars(xl($title), ENT_QUOTES) . "</td>\n";
    }
    echo "  <td align='center' class='optcell'>";
    echo "<input type='text' name='opt[{$opt_line_no}][seq]' value='" . htmlspecialchars($seq, ENT_QUOTES) . "' size='4' maxlength='10' class='optin' />";
    echo "</td>\n";
    echo "  <td align='center' class='optcell'>";
    echo "<input type='checkbox' name='opt[{$opt_line_no}][default]' value='1' " . "onclick='defClicked({$opt_line_no})' class='optin'{$checked} />";
    echo "</td>\n";
    echo "  <td align='center' class='optcell'>";
    echo "<input type='checkbox' name='opt[{$opt_line_no}][activity]' value='1' " . " class='optin'{$checked_active} />";
    echo "</td>\n";
    // Tax rates, contraceptive methods and LBF names have an additional attribute.
    //
    if ($list_id == 'taxrate' || $list_id == 'contrameth' || $list_id == 'lbfnames' || $list_id == 'transactions') {
        echo "  <td align='center' class='optcell'>";
        echo "<input type='text' name='opt[{$opt_line_no}][value]' value='" . htmlspecialchars($value, ENT_QUOTES) . "' size='8' maxlength='15' class='optin' />";
        echo "</td>\n";
    } else {
        if ($list_id == 'adjreason') {
            echo "  <td align='center' class='optcell'>";
            echo "<select name='opt[{$opt_line_no}][value]' class='optin'>";
            foreach (array(1 => xl('Charge adjustment'), 2 => xl('Coinsurance'), 3 => xl('Deductible'), 4 => xl('Other pt resp'), 5 => xl('Comment')) as $key => $desc) {
                echo "<option value='{$key}'";
                if ($key == $value) {
                    echo " selected";
                }
                echo ">" . htmlspecialchars($desc) . "</option>";
            }
            echo "</select>";
            echo "</td>\n";
        } else {
            if ($list_id == 'abook_type') {
                echo "  <td align='center' class='optcell'>";
                echo "<select name='opt[{$opt_line_no}][value]' class='optin'>";
                foreach (array(1 => xl('Unassigned'), 2 => xl('Person'), 3 => xl('Company')) as $key => $desc) {
                    echo "<option value='{$key}'";
                    if ($key == $value) {
                        echo " selected";
                    }
                    echo ">" . htmlspecialchars($desc) . "</option>";
                }
                echo "</select>";
                echo "</td>\n";
            } else {
                if ($list_id == 'immunizations') {
                    echo "  <td align='center' class='optcell'>";
                    echo "<input type='text' size='10' name='opt[{$opt_line_no}][value]' " . "value='" . htmlspecialchars($value, ENT_QUOTES) . "' onclick='sel_cvxcode(this)' " . "title='" . htmlspecialchars(xl('Click to select or change CVX code'), ENT_QUOTES) . "'/>";
                    echo "</td>\n";
                }
            }
        }
    }
    // IPPF includes the ability to map each list item to a "master" identifier.
    // Sports teams use this for some extra info for fitness levels.
    //
    if ($GLOBALS['ippf_specific'] || $list_id == 'fitness') {
        echo "  <td align='center' class='optcell'>";
        echo "<input type='text' name='opt[{$opt_line_no}][mapping]' value='" . htmlspecialchars($mapping, ENT_QUOTES) . "' size='12' maxlength='15' class='optin' />";
        echo "</td>\n";
    } else {
        if ($list_id == 'apptstat') {
            list($apptstat_color, $apptstat_timealert) = explode("|", $notes);
            echo "  <td align='center' class='optcell'>";
            echo "<input type='text' class='color' name='opt[{$opt_line_no}][apptstat_color]' value='" . htmlspecialchars($apptstat_color, ENT_QUOTES) . "' size='6' maxlength='6' class='optin' />";
            echo "</td>\n";
            echo "  <td align='center' class='optcell'>";
            echo "<input type='text' name='opt[{$opt_line_no}][apptstat_timealert]' value='" . htmlspecialchars($apptstat_timealert, ENT_QUOTES) . "' size='2' maxlength='2' class='optin' />";
            echo "</td>\n";
        } else {
            echo "  <td align='center' class='optcell'>";
            echo "<input type='text' name='opt[{$opt_line_no}][notes]' value='" . htmlspecialchars($notes, ENT_QUOTES) . "' size='25' maxlength='255' class='optin' />";
            echo "</td>\n";
        }
    }
    if ($list_id == 'apptstat') {
        echo "  <td align='center' class='optcell'>";
        echo "<input type='checkbox' name='opt[{$opt_line_no}][toggle_setting_1]' value='1' " . "onclick='defClicked({$opt_line_no})' class='optin'{$checked_tog1} />";
        echo "</td>\n";
        echo "  <td align='center' class='optcell'>";
        echo "<input type='checkbox' name='opt[{$opt_line_no}][toggle_setting_2]' value='1' " . "onclick='defClicked({$opt_line_no})' class='optin'{$checked_tog2} />";
        echo "</td>\n";
    }
    echo "  <td align='center' class='optcell'>";
    echo "<input type='text' name='opt[{$opt_line_no}][codes]' title='" . xla('Clinical Term Code(s)') . "' value='" . htmlspecialchars($codes, ENT_QUOTES) . "' onclick='select_clin_term_code(this)' size='25' maxlength='255' class='optin' />";
    echo "</td>\n";
    if (preg_match('/_issue_list$/', $list_id)) {
        echo "  <td align='center' class='optcell'>";
        echo generate_select_list("opt[{$opt_line_no}][subtype]", 'issue_subtypes', $subtype, 'Subtype', ' ', 'optin');
        echo "</td>\n";
    }
    echo " </tr>\n";
}
开发者ID:mi-squared,项目名称:openemr,代码行数:101,代码来源:edit_list.php

示例4: xla

   </table>

   </div>

  </td>

 </tr>

</table>

</div> <!-- end main content div -->

<div id="portal-buttons-bottom"> <!-- buttons bottom div -->
    <input type="button" style="text-align: right;" value="<?php 
echo xla('Log Out');
?>
" onclick="window.location = 'logout.php'"/>

    <input type="button" style="text-align: right;" value="<?php 
echo xla('Change Password');
?>
" onclick="window.location = '<?php 
echo $landingpage . "&password_update=1";
?>
'"/>
</div><!-- end buttons bottom div -->

</div>
</body>
</html>
开发者ID:mi-squared,项目名称:openemr,代码行数:30,代码来源:summary_pat_portal.php

示例5: text

    </div>
  </td>
 </tr>

 <tr>
  <td class='text' valign='top'>
   <textarea name='reason' cols='40' rows='12' wrap='virtual' style='width:96%'
    ><?php 
echo $viewmode ? text($result['reason']) : text($GLOBALS['default_chief_complaint']);
?>
</textarea>
  </td>
  <td class='text' valign='top'>
   <select multiple name='issues[]' size='8' style='width:100%'
    title='<?php 
echo xla('Hold down [Ctrl] for multiple selections or to unselect');
?>
'>
<?php 
while ($irow = sqlFetchArray($ires)) {
    $list_id = $irow['id'];
    $tcode = $irow['type'];
    if ($ISSUE_TYPES[$tcode]) {
        $tcode = $ISSUE_TYPES[$tcode][2];
    }
    echo "    <option value='" . attr($list_id) . "'";
    if ($viewmode) {
        $perow = sqlQuery("SELECT count(*) AS count FROM issue_encounter WHERE " . "pid = ? AND encounter = ? AND list_id = ?", array($pid, $encounter, $list_id));
        if ($perow['count']) {
            echo " selected";
        }
开发者ID:mi-squared,项目名称:openemr,代码行数:31,代码来源:common.php

示例6: xlt

	<table class='text'>
		<tr>
			<td class='label'>
			   <?php 
echo xlt('Patient ID');
?>
:
			</td>
			<td>
			   <input type='text' name='form_patient_id' size='10' maxlength='31' value='<?php 
echo attr($form_patient_id);
?>
'
				title='<?php 
echo xla('Patient ID');
?>
' />
			</td>
		</tr>
	</table>

	</div>

  </td>
  <td align='left' valign='middle' height="100%">
	<table style='border-left:1px solid; width:100%; height:100%' >
		<tr>
			<td>
				<div style='margin-left:15px'>
					<a href='#' class='css_button' onclick='$("#form_refresh").attr("value","true"); $("#theform").submit();'>
开发者ID:katopenzz,项目名称:openemr,代码行数:30,代码来源:chart_location_activity.php

示例7: xlt

                        <td class='label'>
                           <?php 
    echo xlt('To');
    ?>
:
                        </td>
                        <td>
                           <input type='text' name='form_to_date' id="form_to_date" size='10' value='<?php 
    echo attr($form_to_date);
    ?>
'
                                onkeyup='datekeyup(this,mypcc)' onblur='dateblur(this,mypcc)' title='yyyy-mm-dd'>
                           <img src='../pic/show_calendar.gif' align='absbottom' width='24' height='22'
                                id='img_to_date' border='0' alt='[?]' style='cursor:pointer'
                                title='<?php 
    echo xla("Click here to choose a date");
    ?>
'>
                        </td>
                        <td>
                           <input type='checkbox' name='form_details'<?php 
    if ($_POST['form_details']) {
        echo ' checked';
    }
    ?>
>
                           <?php 
    echo xlt('Important Codes');
    ?>
                        </td>
		</tr>
开发者ID:katopenzz,项目名称:openemr,代码行数:31,代码来源:svc_code_financial_report.php

示例8: writeFieldLine

function writeFieldLine($linedata)
{
    global $fld_line_no, $sources, $lbfonly, $extra_html, $validations;
    ++$fld_line_no;
    $checked = $linedata['default_value'] ? " checked" : "";
    //echo " <tr bgcolor='$bgcolor'>\n";
    echo " <tr id='fld[{$fld_line_no}]' class='" . ($fld_line_no % 2 ? 'even' : 'odd') . "'>\n";
    echo "  <td class='optcell' style='width:4%' nowrap>";
    // tuck the group_name INPUT in here
    echo "<input type='hidden' name='fld[{$fld_line_no}][group]' value='" . htmlspecialchars($linedata['group_name'], ENT_QUOTES) . "' class='optin' />";
    echo "<input type='checkbox' class='selectfield' " . "name='" . $linedata['group_name'] . "~" . $linedata['field_id'] . "' " . "id='" . $linedata['group_name'] . "~" . $linedata['field_id'] . "' " . "title='" . htmlspecialchars(xl('Select field', ENT_QUOTES)) . "'>";
    echo "<input type='text' name='fld[{$fld_line_no}][seq]' id='fld[{$fld_line_no}][seq]' value='" . htmlspecialchars($linedata['seq'], ENT_QUOTES) . "' size='2' maxlength='3' " . "class='optin' style='width:36pt' />";
    echo "</td>\n";
    echo "  <td align='center' class='optcell' {$lbfonly} style='width:3%'>";
    echo "<select name='fld[{$fld_line_no}][source]' class='optin noselect' {$lbfonly}>";
    foreach ($sources as $key => $value) {
        echo "<option value='" . attr($key) . "'";
        if ($key == $linedata['source']) {
            echo " selected";
        }
        echo ">" . text($value) . "</option>\n";
    }
    echo "</select>";
    echo "</td>\n";
    echo "  <td align='left' class='optcell' style='width:10%'>";
    echo "<input type='text' name='fld[{$fld_line_no}][id]' value='" . htmlspecialchars($linedata['field_id'], ENT_QUOTES) . "' size='15' maxlength='63'\n         class='optin noselect' style='width:100%' />";
    // class='optin noselect' onclick='FieldIDClicked(this)' />";
    /*
    echo "<input type='hidden' name='fld[$fld_line_no][id]' value='" .
         htmlspecialchars($linedata['field_id'], ENT_QUOTES) . "' />";
    echo htmlspecialchars($linedata['field_id'], ENT_QUOTES);
    */
    echo "</td>\n";
    echo "  <td align='center' class='optcell' style='width:12%'>";
    echo "<input type='text' id='fld[{$fld_line_no}][title]' name='fld[{$fld_line_no}][title]' value='" . htmlspecialchars($linedata['title'], ENT_QUOTES) . "' size='15' maxlength='63' class='optin' style='width:100%' />";
    echo "</td>\n";
    // if not english and set to translate layout labels, then show the translation
    if ($GLOBALS['translate_layout'] && $_SESSION['language_choice'] > 1) {
        echo "<td align='center' class='translation' style='width:10%'>" . htmlspecialchars(xl($linedata['title']), ENT_QUOTES) . "</td>\n";
    }
    echo "  <td align='center' class='optcell' style='width:4%'>";
    echo "<select name='fld[{$fld_line_no}][uor]' class='optin'>";
    foreach (array(0 => xl('Unused'), 1 => xl('Optional'), 2 => xl('Required')) as $key => $value) {
        echo "<option value='{$key}'";
        if ($key == $linedata['uor']) {
            echo " selected";
        }
        echo ">{$value}</option>\n";
    }
    echo "</select>";
    echo "</td>\n";
    echo "  <td align='center' class='optcell' style='width:8%'>";
    echo "<select name='fld[{$fld_line_no}][data_type]' id='fld[{$fld_line_no}][data_type]' onchange=NationNotesContext('" . $fld_line_no . "',this.value)>";
    echo "<option value=''></option>";
    global $datatypes;
    foreach ($datatypes as $key => $value) {
        if ($linedata['data_type'] == $key) {
            echo "<option value='{$key}' selected>{$value}</option>";
        } else {
            echo "<option value='{$key}'>{$value}</option>";
        }
    }
    echo "</select>";
    echo "  </td>";
    echo "  <td align='center' class='optcell' style='width:4%'>";
    if ($linedata['data_type'] == 2 || $linedata['data_type'] == 3 || $linedata['data_type'] == 21 || $linedata['data_type'] == 22 || $linedata['data_type'] == 23 || $linedata['data_type'] == 25 || $linedata['data_type'] == 27 || $linedata['data_type'] == 28 || $linedata['data_type'] == 32 || $linedata['data_type'] == 15 || $linedata['data_type'] == 40) {
        // Show the width field
        echo "<input type='text' name='fld[{$fld_line_no}][lengthWidth]' value='" . htmlspecialchars($linedata['fld_length'], ENT_QUOTES) . "' size='2' maxlength='10' class='optin' title='" . xla('Width') . "' />";
        if ($linedata['data_type'] == 3 || $linedata['data_type'] == 40) {
            // Show the height field
            echo "<input type='text' name='fld[{$fld_line_no}][lengthHeight]' value='" . htmlspecialchars($linedata['fld_rows'], ENT_QUOTES) . "' size='2' maxlength='10' class='optin' title='" . xla('Height') . "' />";
        } else {
            // Hide the height field
            echo "<input type='hidden' name='fld[{$fld_line_no}][lengthHeight]' value=''>";
        }
    } else {
        // all other data_types (hide both the width and height fields
        echo "<input type='hidden' name='fld[{$fld_line_no}][lengthWidth]' value=''>";
        echo "<input type='hidden' name='fld[{$fld_line_no}][lengthHeight]' value=''>";
    }
    echo "</td>\n";
    echo "  <td align='center' class='optcell' style='width:4%'>";
    echo "<input type='text' name='fld[{$fld_line_no}][maxSize]' value='" . htmlspecialchars($linedata['max_length'], ENT_QUOTES) . "' size='1' maxlength='10' class='optin' style='width:100%' " . "title='" . xla('Maximum Size (entering 0 will allow any size)') . "' />";
    echo "</td>\n";
    echo "  <td align='center' class='optcell' style='width:8%'>";
    if ($linedata['data_type'] == 1 || $linedata['data_type'] == 21 || $linedata['data_type'] == 22 || $linedata['data_type'] == 23 || $linedata['data_type'] == 25 || $linedata['data_type'] == 26 || $linedata['data_type'] == 27 || $linedata['data_type'] == 32 || $linedata['data_type'] == 33 || $linedata['data_type'] == 34 || $linedata['data_type'] == 36) {
        $type = "";
        $disp = "style='display:none'";
        if ($linedata['data_type'] == 34) {
            $type = "style='display:none'";
            $disp = "";
        }
        echo "<input type='text' name='fld[{$fld_line_no}][list_id]'  id='fld[{$fld_line_no}][list_id]' value='" . htmlspecialchars($linedata['list_id'], ENT_QUOTES) . "'" . $type . " size='6' maxlength='30' class='optin listid' style='width:100%;cursor:pointer'" . "title='" . xl('Choose list') . "' />";
        echo "<select name='fld[{$fld_line_no}][contextName]' id='fld[{$fld_line_no}][contextName]' " . $disp . ">";
        $res = sqlStatement("SELECT * FROM customlists WHERE cl_list_type=2 AND cl_deleted=0");
        while ($row = sqlFetchArray($res)) {
            $sel = '';
            if ($linedata['list_id'] == $row['cl_list_item_long']) {
                $sel = 'selected';
            }
//.........这里部分代码省略.........
开发者ID:juggernautsei,项目名称:openemr,代码行数:101,代码来源:edit_layout.php

示例9: jQuery

		e.stopPropagation();
		//
		jQuery.ajax({
            type: 'get',
            url: jQuery('#formlog').attr('action'), 
            data: { archivelog: 'yes' },
            dataType: "json",
            success: function(data) {
				var str = "<p><?php 
echo xla('Archive Log Files');
?>
</p><ul id='logarchlist'>";
				var fct = data.length;
				if (fct == 0) {
					str = str + "<li><?php 
echo xla('No logs older than 7 days');
?>
</li>";
				} else {
					for(var i = 0; i < fct; i++) {
						str = str + "<li>" + data[i] + "</li>";
					}
				};
				str = str + "</ul>";
				jQuery('#notesrsp').hide();
		        jQuery('#logrsp').html('');
		        jQuery('#logrsp').html(str);
		        jQuery('#logrsp').show();				
			},
		    error: function( xhr, status ) { alert( "<?php 
echo xls('Sorry, there was a problem!');
开发者ID:bradymiller,项目名称:openemr,代码行数:31,代码来源:edih_view.php

示例10: getDocListByEncID

function getDocListByEncID($encounter, $raw_encounter_date, $pid)
{
    global $ISSUE_TYPES, $auth_med;
    $documents = getDocumentsByEncounter($pid, $encounter);
    if (count($documents) > 0) {
        foreach ($documents as $documentrow) {
            if ($auth_med) {
                $irow = sqlQuery("SELECT type, title, begdate FROM lists WHERE id = ? LIMIT 1", array($documentrow['list_id']));
                if ($irow) {
                    $tcode = $irow['type'];
                    if ($ISSUE_TYPES[$tcode]) {
                        $tcode = $ISSUE_TYPES[$tcode][2];
                    }
                    echo text("{$tcode}: " . $irow['title']);
                }
            } else {
                echo "(" . xlt('No access') . ")";
            }
            // Get the notes for this document and display as title for the link.
            $queryString = "SELECT date,note FROM notes WHERE foreign_id = ? ORDER BY date";
            $noteResultSet = sqlStatement($queryString, array($documentrow['id']));
            $note = '';
            while ($row = sqlFetchArray($noteResultSet)) {
                $note .= oeFormatShortDate(date('Y-m-d', strtotime($row['date']))) . " : " . attr($row['note']) . "\n";
            }
            $docTitle = $note ? $note : xla("View document");
            $docHref = $GLOBALS['webroot'] . "/controller.php?document&view&patient_id=" . attr($pid) . "&doc_id=" . attr($documentrow['id']);
            echo "<div class='text docrow' id='" . attr($documentrow['id']) . "' title='" . $docTitle . "'>\n";
            echo "<a href='{$docHref}' onclick='top.restoreSession()' >" . xlt('Document') . ": " . text(basename($documentrow['url'])) . ' (' . text(xl_document_category($documentrow['name'])) . ')' . "</a>";
            echo "</div>";
        }
    }
}
开发者ID:jatin-52,项目名称:erm,代码行数:33,代码来源:encounters.php

示例11: next

    }
    else{
      document.getElementById('alert_msg').innerHTML='';
      if(action == 'next'){
       next(w_count);
      }
      else if (action == 'prev'){
       prev(w_count);
      }
      var tot_res = res_array.length/w_count;
	  if(tot_res > 0){
		document.getElementById('alert_msg').innerHTML='<?php 
    echo xla('Showing result');
    ?>
 '+cur_res+' <?php 
    echo xla('of');
    ?>
 '+tot_res;
	  }
    }
    
  }
</script>
</head>
<body class="body_top" style="padding-top:95px;">
<?php 
}
?>
<div id="report_custom" style="width:100%;">  <!-- large outer DIV -->

<?php 
开发者ID:ekuiperemr,项目名称:openemr,代码行数:31,代码来源:custom_report.php

示例12: generate_display_field

        echo generate_display_field(array('data_type' => '1', 'list_id' => 'occurrence'), $row['occurrence']);
        echo "</td>\n";
        if ($focustype == "allergy") {
            echo "  <td>";
            echo generate_display_field(array('data_type' => '1', 'list_id' => 'reaction'), $row['reaction']);
            echo "</td>\n";
        }
        if ($GLOBALS['athletic_team']) {
            echo "  <td class='center'>" . $row['extrainfo'] . "</td>\n";
            // games missed
        } else {
            echo "  <td>" . text($row['referredby']) . "</td>\n";
        }
        echo "  <td>" . text($row['modifydate']) . "</td>\n";
        echo "  <td>" . text($row['comments']) . "</td>\n";
        echo "  <td id='e_{$rowid}' class='noclick center' title='" . xla('View related encounters') . "'>";
        echo "  <input type='button' value='" . attr($ierow['count']) . "' class='editenc' id='" . attr($rowid) . "' />";
        echo "  </td>";
        echo " </tr>\n";
    }
}
echo "</table>";
?>

</table>

</form>
</div> <!-- end patient_stats -->

</body>
开发者ID:katopenzz,项目名称:openemr,代码行数:30,代码来源:stats_full.php

示例13: die

        if ($result['errmsg']) {
            die(text($result['errmsg']));
        }
        echo "<p>" . xlt('Report has been sent to the patient.') . "</p>\n";
        echo "</body></html>\n";
    }
} else {
    ?>
</body>
<?php 
    if (!$printable) {
        // Set up translated strings for use by interactive search
        ?>
<script type="text/javascript">
var xl_string = <?php 
        echo json_encode(array('spcl_chars' => xla('Special characters are not allowed') . '.', 'not_found' => xla('No results found') . '.', 'results' => xla('Showing result'), 'literal_of' => xla('of')));
        ?>
;
</script>
<script type="text/javascript" src="<?php 
        echo $GLOBALS['web_root'];
        ?>
/interface/patient_file/report/custom_report.js?v=<?php 
        echo $v_js_includes;
        ?>
"></script>
<?php 
    }
    ?>
</html>
<?php 
开发者ID:juggernautsei,项目名称:openemr,代码行数:31,代码来源:custom_report.php

示例14: generate_form_field


//.........这里部分代码省略.........
                    }
                    echo " {$lbfonchange} onkeyup='datekeyup(this,mypcc)' onblur='dateblur(this,mypcc)' {$disabled} />";
                    if (!$disabled) {
                        echo "<img src='{$rootdir}/pic/show_calendar.gif' align='absbottom' width='24' height='22'" . " id='img_{$field_id_esc}' border='0' alt='[?]' style='cursor:pointer'" . " title='" . htmlspecialchars(xl('Click here to choose a date'), ENT_QUOTES) . "' />";
                        $date_init .= " Calendar.setup({" . "inputField:'form_{$field_id}', " . "ifFormat:'%Y-%m-%d', ";
                        if ($agestr) {
                            $date_init .= "onUpdate: function() {" . "if (typeof(updateAgeString) == 'function') updateAgeString('{$field_id}','{$age_asof_date}', {$age_format});" . "}, ";
                        }
                        $date_init .= "button:'img_{$field_id}'})\n";
                    }
                    // Optional display of age or gestational age.
                    if ($agestr) {
                        echo "</td></tr><tr><td id='span_{$field_id}' class='text'>" . text($agestr) . "</td></tr></table>";
                    }
                } else {
                    if ($data_type == 10) {
                        $ures = sqlStatement("SELECT id, fname, lname, specialty FROM users " . "WHERE active = 1 AND ( info IS NULL OR info NOT LIKE '%Inactive%' ) " . "AND authorized = 1 " . "ORDER BY lname, fname");
                        echo "<select name='form_{$field_id_esc}' id='form_{$field_id_esc}' title='{$description}' {$lbfonchange} {$disabled}>";
                        echo "<option value=''>" . xlt($empty_title) . "</option>";
                        $got_selected = false;
                        while ($urow = sqlFetchArray($ures)) {
                            $uname = text($urow['fname'] . ' ' . $urow['lname']);
                            $optionId = attr($urow['id']);
                            echo "<option value='{$optionId}'";
                            if ($urow['id'] == $currvalue) {
                                echo " selected";
                                $got_selected = true;
                            }
                            echo ">{$uname}</option>";
                        }
                        if (!$got_selected && $currvalue) {
                            echo "<option value='" . attr($currvalue) . "' selected>* " . text($currvalue) . " *</option>";
                            echo "</select>";
                            echo " <font color='red' title='" . xla('Please choose a valid selection from the list.') . "'>" . xlt('Fix this') . "!</font>";
                        } else {
                            echo "</select>";
                        }
                    } else {
                        if ($data_type == 11) {
                            $ures = sqlStatement("SELECT id, fname, lname, specialty FROM users " . "WHERE active = 1 AND ( info IS NULL OR info NOT LIKE '%Inactive%' ) " . "AND ( authorized = 1 OR ( username = '' AND npi != '' ) ) " . "ORDER BY lname, fname");
                            echo "<select name='form_{$field_id_esc}' id='form_{$field_id_esc}' title='{$description}'";
                            echo " {$lbfonchange} {$disabled}>";
                            echo "<option value=''>" . xlt('Unassigned') . "</option>";
                            $got_selected = false;
                            while ($urow = sqlFetchArray($ures)) {
                                $uname = text($urow['fname'] . ' ' . $urow['lname']);
                                $optionId = attr($urow['id']);
                                echo "<option value='{$optionId}'";
                                if ($urow['id'] == $currvalue) {
                                    echo " selected";
                                    $got_selected = true;
                                }
                                echo ">{$uname}</option>";
                            }
                            if (!$got_selected && $currvalue) {
                                echo "<option value='" . attr($currvalue) . "' selected>* " . text($currvalue) . " *</option>";
                                echo "</select>";
                                echo " <font color='red' title='" . xla('Please choose a valid selection from the list.') . "'>" . xlt('Fix this') . "!</font>";
                            } else {
                                echo "</select>";
                            }
                        } else {
                            if ($data_type == 12) {
                                echo "<select name='form_{$field_id_esc}' id='form_{$field_id_esc}' title='{$description}'";
                                echo " {$lbfonchange} {$disabled}>";
                                echo "<option value='0'></option>";
开发者ID:hitechelp,项目名称:openemr,代码行数:67,代码来源:options.inc.php

示例15: htmlspecialchars

echo htmlspecialchars(xl('Completion Status'), ENT_NOQUOTES);
?>
</th>
    <th><?php 
echo htmlspecialchars(xl('Error'), ENT_NOQUOTES);
?>
</th>
	<th>&nbsp;</th>
    </tr>
    
<?php 
$result = getImmunizationList($pid, $_GET['sortby'], true);
while ($row = sqlFetchArray($result)) {
    $isError = $row['added_erroneously'];
    if ($isError) {
        $tr_title = 'title="' . xla("Entered in Error") . '"';
    } else {
        $tr_title = "";
    }
    if ($row["id"] == $id) {
        echo "<tr " . $tr_title . " class='immrow text selected' id='" . htmlspecialchars($row["id"], ENT_QUOTES) . "'>";
    } else {
        echo "<tr " . $tr_title . " class='immrow text' id='" . htmlspecialchars($row["id"], ENT_QUOTES) . "'>";
    }
    // Figure out which name to use (ie. from cvx list or from the custom list)
    if ($GLOBALS['use_custom_immun_list']) {
        $vaccine_display = generate_display_field(array('data_type' => '1', 'list_id' => 'immunizations'), $row['immunization_id']);
    } else {
        if (!empty($row['code_text_short'])) {
            $vaccine_display = htmlspecialchars(xl($row['code_text_short']), ENT_NOQUOTES);
        } else {
开发者ID:katopenzz,项目名称:openemr,代码行数:31,代码来源:immunizations.php


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