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

PHP xl_list_label函数代码示例

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

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



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

示例1: generate_list_payment_category

function generate_list_payment_category($tag_name, $list_id, $currvalue, $title, $empty_name = ' ', $class = '', $onchange = '', $PaymentType = 'insurance', $screen = 'new_payment')
{
    $s = '';
    $tag_name_esc = htmlspecialchars($tag_name, ENT_QUOTES);
    $s .= "<select name='{$tag_name_esc}' id='{$tag_name_esc}'";
    if ($class) {
        $s .= " class='{$class}'";
    }
    if ($onchange) {
        $s .= " onchange='{$onchange}'";
    }
    $selectTitle = htmlspecialchars($title, ENT_QUOTES);
    $s .= " title='{$selectTitle}'>";
    $selectEmptyName = htmlspecialchars(xl($empty_name), ENT_QUOTES);
    if ($empty_name) {
        $s .= "<option value=''>" . $selectEmptyName . "</option>";
    }
    $lres = sqlStatement("SELECT * FROM list_options " . "WHERE list_id = ? ORDER BY seq, title", array($list_id));
    $got_selected = FALSE;
    while ($lrow = sqlFetchArray($lres)) {
        $optionValue = htmlspecialchars($lrow['option_id'], ENT_QUOTES);
        $s .= "<option   id='option_" . $lrow['option_id'] . "'" . " value='{$optionValue}'";
        if (strlen($currvalue) == 0 && $lrow['is_default'] || strlen($currvalue) > 0 && $lrow['option_id'] == $currvalue || $lrow['option_id'] == 'insurance_payment' && $screen == 'new_payment') {
            $s .= " selected";
            $got_selected = TRUE;
        }
        if (($PaymentType == 'insurance' || $screen == 'new_payment') && ($lrow['option_id'] == 'family_payment' || $lrow['option_id'] == 'patient_payment')) {
            $s .= " style='background-color:#DEDEDE' ";
        }
        if ($PaymentType == 'patient' && $lrow['option_id'] == 'insurance_payment') {
            $s .= " style='background-color:#DEDEDE' ";
        }
        $optionLabel = htmlspecialchars(xl_list_label($lrow['title']), ENT_QUOTES);
        $s .= ">{$optionLabel}</option>\n";
    }
    if (!$got_selected && strlen($currvalue) > 0) {
        $currescaped = htmlspecialchars($currvalue, ENT_QUOTES);
        $s .= "<option value='{$currescaped}' selected>* {$currescaped} *</option>";
        $s .= "</select>";
        $fontTitle = htmlspecialchars(xl('Please choose a valid selection from the list.'), ENT_QUOTES);
        $fontText = htmlspecialchars(xl('Fix this'), ENT_QUOTES);
        $s .= " <font color='red' title='{$fontTitle}'>{$fontText}!</font>";
    } else {
        $s .= "</select>";
    }
    return $s;
}
开发者ID:katopenzz,项目名称:openemr,代码行数:47,代码来源:payment_master.inc.php


示例2: getListOptions

function getListOptions($list_id)
{
    $options = array();
    $sql = sqlStatement("SELECT option_id, title from list_options WHERE list_id = ?", array($list_id));
    for ($iter = 0; $row = sqlFetchArray($sql); $iter++) {
        $options[] = new Option(out($row['option_id']), out(xl_list_label($row['title'])));
    }
    return $options;
}
开发者ID:katopenzz,项目名称:openemr,代码行数:9,代码来源:ui.php


示例3: getListItem

function getListItem($listid, $value)
{
    $lrow = sqlQuery("SELECT title FROM list_options " . "WHERE list_id = ? AND option_id = ?", array($listid, $value));
    $tmp = xl_list_label($lrow['title']);
    if (empty($tmp)) {
        $tmp = "({$value})";
    }
    return $tmp;
}
开发者ID:katopenzz,项目名称:openemr,代码行数:9,代码来源:order_manifest.php


示例4: xlt

  <td class='text' >
   <?php 
    echo xlt('Payment Method');
    ?>
:
  </td>
  <td colspan='2' >
  <select name="form_method" id="form_method"  class="text" onChange='CheckVisible("yes")'>
  <?php 
    $query1112 = "SELECT * FROM list_options where list_id=?  ORDER BY seq, title ";
    $bres1112 = sqlStatement($query1112, array('payment_method'));
    while ($brow1112 = sqlFetchArray($bres1112)) {
        if ($brow1112['option_id'] == 'electronic' || $brow1112['option_id'] == 'bank_draft') {
            continue;
        }
        echo "<option value='" . htmlspecialchars($brow1112['option_id'], ENT_QUOTES) . "'>" . htmlspecialchars(xl_list_label($brow1112['title']), ENT_QUOTES) . "</option>";
    }
    ?>
  </select>
  </td>
 </tr>
 
 <tr height="5"><td colspan='3'></td></tr>

 <tr>
  <td class='text' >
   <?php 
    echo xla('Check/Ref Number');
    ?>
:
  </td>
开发者ID:nitinkunte,项目名称:openemr,代码行数:31,代码来源:front_payment.php


示例5: getListItemTitle

function getListItemTitle($list, $option)
{
    $row = sqlQuery("SELECT title FROM list_options WHERE " . "list_id = ? AND option_id = ?", array($list, $option));
    if (empty($row['title'])) {
        return $option;
    }
    return xl_list_label($row['title']);
}
开发者ID:hitechelp,项目名称:openemr,代码行数:8,代码来源:options.inc.php


示例6: xlt

  <td><span class='bold'><?php 
echo xlt('Short Description');
?>
</span></td>
<?php 
if (related_codes_are_used()) {
    ?>
  <td><span class='bold'><?php 
    echo xlt('Related');
    ?>
</span></td>
<?php 
}
$pres = sqlStatement("SELECT title FROM list_options " . "WHERE list_id = 'pricelevel' ORDER BY seq");
while ($prow = sqlFetchArray($pres)) {
    echo "  <td class='bold' align='right' nowrap>" . text(xl_list_label($prow['title'])) . "</td>\n";
}
?>
  <td></td>
  <td></td>
 </tr>
<?php 
if (isset($_REQUEST['filter'])) {
    $res = main_code_set_search($filter_key, $search, NULL, NULL, false, NULL, false, $fstart, $fend - $fstart, $filter_elements);
}
for ($i = 0; $row = sqlFetchArray($res); $i++) {
    $all[$i] = $row;
}
if (!empty($all)) {
    $count = 0;
    foreach ($all as $iter) {
开发者ID:minggLu,项目名称:openemr,代码行数:31,代码来源:superbill_custom_full.php


示例7: xl

    echo "<input type='checkbox' name='form_cb_prices' value='1' />\n";
    echo " " . xl('Prices') . "<br />\n";
    echo "<input type='checkbox' name='form_cb_categories' value='1' />\n";
    echo " " . xl('Document Categories') . "<br />\n";
    echo "<input type='checkbox' name='form_cb_feesheet' value='1' />\n";
    echo " " . xl('Fee Sheet Options') . "<br />\n";
    echo "<input type='checkbox' name='form_cb_lang' value='1' />\n";
    echo " " . xl('Translations') . "<br />\n";
    // Multi-select for lists.
    echo "</td><td valign='top'>\n";
    echo "<b>" . xlt('Lists') . "</b><br />\n";
    echo "<select multiple name='form_sel_lists[]' size='15'>";
    $lres = sqlStatement("SELECT option_id, title FROM list_options WHERE " . "list_id = 'lists' ORDER BY title, seq");
    while ($lrow = sqlFetchArray($lres)) {
        echo "<option value='" . attr($lrow['option_id']) . "'";
        echo ">" . text(xl_list_label($lrow['title'])) . "</option>\n";
    }
    echo "</select>\n";
    // Multi-select for layouts.
    echo "</td><td valign='top'>\n";
    echo "<b>" . xlt('Layouts') . "</b><br />\n";
    echo "<select multiple name='form_sel_layouts[]' size='15'>";
    $lres = sqlStatement("SELECT option_id, title FROM list_options WHERE " . "list_id = 'lbfnames' ORDER BY title, seq");
    while ($lrow = sqlFetchArray($lres)) {
        echo "<option value='" . attr($lrow['option_id']) . "'";
        echo ">" . text(xl_layout_label($lrow['title'])) . "</option>\n";
    }
    echo "</select>\n";
    echo "</td>\n</tr>\n</table>\n";
    echo "&nbsp;<br /><input type='submit' value='" . xl('Continue') . "' />\n";
}
开发者ID:visolve-openemr,项目名称:openemr420,代码行数:31,代码来源:backup.php


示例8: List_Look

function List_Look($thisData, $thisList)
{
    if ($thisList == 'occurrence') {
        if (!$thisData || $thisData == '') {
            return xl('Unknown or N/A');
        }
    }
    if ($thisData == '') {
        return '';
    }
    $fres = sqlStatement("SELECT title FROM list_options WHERE list_id = ? " . "AND option_id = ? AND activity = 1", array($thisList, $thisData));
    if ($fres) {
        $rret = sqlFetchArray($fres);
        $dispValue = xl_list_label($rret['title']);
        if ($thisList == 'occurrence' && $dispValue == '') {
            $dispValue = xl('Unknown or N/A');
        }
    } else {
        $dispValue = xl('Not Found');
    }
    return $dispValue;
}
开发者ID:juggernautsei,项目名称:openemr,代码行数:22,代码来源:pat_ledger.php


示例9: foreach

 $category = $row['title'] ? $row['title'] : 'Uncategorized';
 $disp_category = '&nbsp';
 if ($category !== $last_category) {
     $last_category = $category;
     $disp_category = $category;
     ++$irow;
 }
 foreach ($code_types as $key => $value) {
     if ($value['id'] == $row['code_type']) {
         break;
     }
 }
 $bgcolor = $irow & 1 ? "#ffdddd" : "#ddddff";
 echo "  <tr bgcolor='{$bgcolor}'>\n";
 // Added 5-09 by BM - Translate label if applicable
 echo "   <td class='text'>" . xl_list_label($disp_category) . "</td>\n";
 echo "   <td class='text'>{$key}</td>\n";
 echo "   <td class='text'>" . $row['code'] . "</td>\n";
 echo "   <td class='text'>" . $row['modifier'] . "</td>\n";
 echo "   <td class='text'>" . $row['units'] . "</td>\n";
 echo "   <td class='text'>" . $row['code_text'] . "</td>\n";
 if (related_codes_are_used()) {
     // Show related codes.
     echo "   <td class='text'>";
     $arel = explode(';', $row['related_code']);
     foreach ($arel as $tmp) {
         list($reltype, $relcode) = explode(':', $tmp);
         $reltype = $code_types[$reltype]['id'];
         $relrow = sqlQuery("SELECT code_text FROM codes WHERE " . "code_type = '{$reltype}' AND code = '{$relcode}' LIMIT 1");
         echo $relcode . ' ' . trim($relrow['code_text']) . '<br />';
     }
开发者ID:mindfeederllc,项目名称:openemr,代码行数:31,代码来源:services_by_category.php


示例10: getListOptions

</table>

<p>
<?php 
$procedure_order_type = getListOptions('order_type', array('option_id', 'title'));
?>
<select name="procedure_type_names" id="procedure_type_names">
	<?php 
foreach ($procedure_order_type as $ordered_types) {
    ?>
	<option value="<?php 
    echo attr($ordered_types['option_id']);
    ?>
" ><?php 
    echo text(xl_list_label($ordered_types['title']));
    ?>
</option>
	<?php 
}
?>
    
</select> 
<input type='button' value='<?php 
echo xla('Add Procedure');
?>
' onclick="addProcLine()" />
&nbsp;
<input type='submit' name='bn_save' value='<?php 
echo xla('Save');
?>
开发者ID:juggernautsei,项目名称:openemr,代码行数:30,代码来源:new.php


示例11: empty

//
$sanitize_all_escapes = true;
$fake_register_globals = false;
require_once "../../globals.php";
require_once "{$srcdir}/formdata.inc.php";
$popup = empty($_REQUEST['popup']) ? 0 : 1;
// Generate some code based on the list of columns.
//
$colcount = 0;
$header0 = "";
$header = "";
$coljson = "";
$res = sqlStatement("SELECT option_id, title FROM list_options WHERE " . "list_id = 'ptlistcols' ORDER BY seq, title");
while ($row = sqlFetchArray($res)) {
    $colname = $row['option_id'];
    $title = xl_list_label($row['title']);
    $header .= "   <th>";
    $header .= text($title);
    $header .= "</th>\n";
    $header0 .= "   <td align='center'><input type='text' size='10' ";
    $header0 .= "value='' class='search_init' /></td>\n";
    if ($coljson) {
        $coljson .= ", ";
    }
    $coljson .= "{\"sName\": \"" . addcslashes($colname, "\t\r\n\"\\") . "\"}";
    ++$colcount;
}
?>
<html>
<head>
<?php 
开发者ID:bharathi26,项目名称:openemr,代码行数:31,代码来源:dynamic_finder.php


示例12: generatePriceLevelSelector

 public function generatePriceLevelSelector($tagname = 'pricelevel', $disabled = false)
 {
     $s = "<select name='" . attr($tagname) . "'";
     if ($disabled) {
         $s .= " disabled";
     }
     $s .= ">";
     $pricelevel = $this->getPriceLevel();
     $plres = sqlStatement("SELECT option_id, title FROM list_options " . "WHERE list_id = 'pricelevel' AND activity = 1 ORDER BY seq");
     while ($plrow = sqlFetchArray($plres)) {
         $key = $plrow['option_id'];
         $val = $plrow['title'];
         $s .= "<option value='" . attr($key) . "'";
         if ($key == $pricelevel) {
             $s .= ' selected';
         }
         $s .= ">" . text(xl_list_label($val)) . "</option>";
     }
     $s .= "</select>";
     return $s;
 }
开发者ID:juggernautsei,项目名称:openemr,代码行数:21,代码来源:FeeSheetHtml.class.php


示例13: load_drug_attributes

function load_drug_attributes($id)
{
    $res = sqlStatement("SELECT * FROM list_options WHERE list_id = '{$id}' ORDER BY seq");
    while ($row = sqlFetchArray($res)) {
        if ($row['title'] == '') {
            $arr[$row['option_id']] = ' ';
        } else {
            $arr[$row['option_id']] = xl_list_label($row['title']);
        }
    }
    return $arr;
}
开发者ID:mi-squared,项目名称:openemr,代码行数:12,代码来源:Prescription.class.php


示例14: fetch_rule_txt

function fetch_rule_txt($list_id, $option_id)
{
    $rs = sqlQuery('SELECT title, seq from list_options WHERE list_id=? AND option_id=?', array($list_id, $option_id));
    $rs['title'] = xl_list_label($rs['title']);
    return $rs;
}
开发者ID:mi-squared,项目名称:openemr,代码行数:6,代码来源:appointments_report.php


示例15: getListtitle

 public function getListtitle($listId, $listOptionId)
 {
     $appTable = new ApplicationTable();
     $sql = "SELECT title FROM list_options WHERE list_id = ? AND option_id = ? ";
     $result = $appTable->zQuery($sql, array($listId, $listOptionId));
     $row = $result->current();
     $return = xl_list_label($row['title']);
     return $return;
 }
开发者ID:juggernautsei,项目名称:openemr,代码行数:9,代码来源:CommonPlugin.php


示例16: Array

 var mypcc = '<?php 
echo $GLOBALS['phone_country_code'];
?>
';

 var aitypes = new Array(); // issue type attributes
 var aopts   = new Array(); // Option objects
<?php 
$i = 0;
foreach ($ISSUE_TYPES as $key => $value) {
    echo " aitypes[{$i}] = " . attr($value[3]) . ";\n";
    echo " aopts[{$i}] = new Array();\n";
    $qry = sqlStatement("SELECT * FROM list_options WHERE list_id = ?", array($key . "_issue_list"));
    while ($res = sqlFetchArray($qry)) {
        echo " aopts[{$i}][aopts[{$i}].length] = new Option('" . attr(trim($res['option_id'])) . "', '" . attr(xl_list_label(trim($res['title']))) . "', false, false);\n";
        if ($res['codes']) {
            echo " aopts[{$i}][aopts[{$i}].length-1].setAttribute('data-code','" . attr(trim($res['codes'])) . "');\n";
        }
    }
    ++$i;
}
///////////
ActiveIssueCodeRecycleFn($thispid, $ISSUE_TYPES);
///////////
?>

<?php 
require $GLOBALS['srcdir'] . "/restoreSession.php";
?>
开发者ID:mi-squared,项目名称:openemr,代码行数:29,代码来源:add_edit_issue.php


示例17: getRequirements

 function getRequirements()
 {
     return xl_list_label($this->value, ENT_NOQUOTES);
 }
开发者ID:katopenzz,项目名称:openemr,代码行数:4,代码来源:RuleCriteriaSex.php


示例18: generate_display_field

function generate_display_field($frow, $currvalue)
{
    $data_type = $frow['data_type'];
    $field_id = $frow['field_id'];
    $list_id = $frow['list_id'];
    $s = '';
    // generic selection list or the generic selection list with add on the fly
    // feature, or radio buttons
    if ($data_type == 1 || $data_type == 26 || $data_type == 27) {
        $lrow = sqlQuery("SELECT title FROM list_options " . "WHERE list_id = ? AND option_id = ?", array($list_id, $currvalue));
        $s = htmlspecialchars(xl_list_label($lrow['title']), ENT_NOQUOTES);
    } else {
        if ($data_type == 2) {
            $s = htmlspecialchars($currvalue, ENT_NOQUOTES);
        } else {
            if ($data_type == 3) {
                $s = nl2br(htmlspecialchars($currvalue, ENT_NOQUOTES));
            } else {
                if ($data_type == 4) {
                    $s = htmlspecialchars(oeFormatShortDate($currvalue), ENT_NOQUOTES);
                } else {
                    if ($data_type == 10 || $data_type == 11) {
                        $urow = sqlQuery("SELECT fname, lname, specialty FROM users " . "WHERE id = ?", array($currvalue));
                        $s = htmlspecialchars(ucwords($urow['fname'] . " " . $urow['lname']), ENT_NOQUOTES);
                    } else {
                        if ($data_type == 12) {
                            $pres = get_pharmacies();
                            while ($prow = sqlFetchArray($pres)) {
                                $key = $prow['id'];
                                if ($currvalue == $key) {
                                    $s .= htmlspecialchars($prow['name'] . ' ' . $prow['area_code'] . '-' . $prow['prefix'] . '-' . $prow['number'] . ' / ' . $prow['line1'] . ' / ' . $prow['city'], ENT_NOQUOTES);
                                }
                            }
                        } else {
                            if ($data_type == 13) {
                                $squads = acl_get_squads();
                                if ($squads) {
                                    foreach ($squads as $key => $value) {
                                        if ($currvalue == $key) {
                                            $s .= htmlspecialchars($value[3], ENT_NOQUOTES);
                                        }
                                    }
                                }
                            } else {
                                if ($data_type == 14) {
                                    $urow = sqlQuery("SELECT fname, lname, specialty FROM users " . "WHERE id = ?", array($currvalue));
                                    $uname = $urow['lname'];
                                    if ($urow['fname']) {
                                        $uname .= ", " . $urow['fname'];
                                    }
                                    $s = htmlspecialchars($uname, ENT_NOQUOTES);
                                } else {
                                    if ($data_type == 15) {
                                        $s = htmlspecialchars($currvalue, ENT_NOQUOTES);
                                    } else {
                                        if ($data_type == 21) {
                                            $avalue = explode('|', $currvalue);
                                            $lres = sqlStatement("SELECT * FROM list_options " . "WHERE list_id = ? ORDER BY seq, title", array($list_id));
                                            $count = 0;
                                            while ($lrow = sqlFetchArray($lres)) {
                                                $option_id = $lrow['option_id'];
                                                if (in_array($option_id, $avalue)) {
                                                    if ($count++) {
                                                        $s .= "<br />";
                                                    }
                                                    // Added 5-09 by BM - Translate label if applicable
                                                    $s .= htmlspecialchars(xl_list_label($lrow['title']), ENT_NOQUOTES);
                                                }
                                            }
                                        } else {
                                            if ($data_type == 22) {
                                                $tmp = explode('|', $currvalue);
                                                $avalue = array();
                                                foreach ($tmp as $value) {
                                                    if (preg_match('/^([^:]+):(.*)$/', $value, $matches)) {
                                                        $avalue[$matches[1]] = $matches[2];
                                                    }
                                                }
                                                $lres = sqlStatement("SELECT * FROM list_options " . "WHERE list_id = ? ORDER BY seq, title", array($list_id));
                                                $s .= "<table cellpadding='0' cellspacing='0'>";
                                                while ($lrow = sqlFetchArray($lres)) {
                                                    $option_id = $lrow['option_id'];
                                                    if (empty($avalue[$option_id])) {
                                                        continue;
                                                    }
                                                    // Added 5-09 by BM - Translate label if applicable
                                                    $s .= "<tr><td class='bold' valign='top'>" . htmlspecialchars(xl_list_label($lrow['title']), ENT_NOQUOTES) . ":&nbsp;</td>";
                                                    $s .= "<td class='text' valign='top'>" . htmlspecialchars($avalue[$option_id], ENT_NOQUOTES) . "</td></tr>";
                                                }
                                                $s .= "</table>";
                                            } else {
                                                if ($data_type == 23) {
                                                    $tmp = explode('|', $currvalue);
                                                    $avalue = array();
                                                    foreach ($tmp as $value) {
                                                        if (preg_match('/^([^:]+):(.*)$/', $value, $matches)) {
                                                            $avalue[$matches[1]] = $matches[2];
                                                        }
                                                    }
                                                    $lres = sqlStatement("SELECT * FROM list_options " . "WHERE list_id = ? ORDER BY seq, title", array($list_id));
//.........这里部分代码省略.........
开发者ID:johnnytang24,项目名称:openemr,代码行数:101,代码来源:options.inc.php


示例19: sqlStatement

 // Create entries based on the fee_sheet_options table.
 $res = sqlStatement("SELECT * FROM fee_sheet_options " . "ORDER BY fs_category, fs_option");
 while ($row = sqlFetchArray($res)) {
     $fs_category = $row['fs_category'];
     $fs_option = $row['fs_option'];
     $fs_codes = $row['fs_codes'];
     if ($fs_category !== $last_category) {
         $last_category = $fs_category;
         $SBCODES[] = '*G|' . substr($fs_category, 1);
     }
     $SBCODES[] = " |" . substr($fs_option, 1);
 }
 // Create entries based on categories defined within the codes.
 $pres = sqlStatement("SELECT option_id, title FROM list_options " . "WHERE list_id = 'superbill' ORDER BY seq");
 while ($prow = sqlFetchArray($pres)) {
     $SBCODES[] = '*G|' . xl_list_label($prow['title']);
     $res = sqlStatement("SELECT code_type, code, code_text FROM codes " . "WHERE superbill = '" . $prow['option_id'] . "' AND active = 1 " . "ORDER BY code_text");
     while ($row = sqlFetchArray($res)) {
         $SBCODES[] = $row['code'] . '|' . $row['code_text'];
     }
 }
 // Create one more group, for Products.
 if ($GLOBALS['sell_non_drug_products']) {
     $SBCODES[] = '*G|' . xl('Products');
     $tres = sqlStatement("SELECT " . "dt.drug_id, dt.selector, d.name, d.ndc_number " . "FROM drug_templates AS dt, drugs AS d WHERE " . "d.drug_id = dt.drug_id AND d.active = 1 " . "ORDER BY d.name, dt.selector, dt.drug_id");
     while ($trow = sqlFetchArray($tres)) {
         $tmp = $trow['selector'];
         if ($trow['name'] !== $trow['selector']) {
             $tmp .= ' ' . $trow['name'];
         }
         $prodcode = empty($trow['ndc_number']) ? '(' . $trow['drug_id'] . ')' : $trow['ndc_number'];
开发者ID:minggLu,项目名称:openemr,代码行数:31,代码来源:printed_fee_sheet.php


示例20: sqlStatement

}
// Include Layout Based Transaction Forms.
$lres = sqlStatement("SELECT * FROM list_options " . "WHERE list_id = 'transactions' AND activity = 1 ORDER BY seq, title");
while ($lrow = sqlFetchArray($lres)) {
    $layouts[$lrow['option_id']] = xl_list_label($lrow['title']);
}
// Include Layout Based Encounter Forms.
$lres = sqlStatement("SELECT * FROM list_options " . "WHERE list_id = 'lbfnames' AND activity = 1 ORDER BY seq, title");
while ($lrow = sqlFetchArray($lres)) {
    $layouts[$lrow['option_id']] = xl_list_label($lrow['title']);
}
// Include predefined Validation Rules from list
$validations = array();
$lres = sqlStatement("SELECT * FROM list_options " . "WHERE list_id = 'LBF_Validations' AND activity = 1 ORDER BY seq, title");
while ($lrow = sqlFetchArray($lres)) {
    $validations[$lrow['option_id']] = xl_list_label($lrow['title']);
}
// array of the data_types of the fields
$datatypes = array("1" => xl("List box"), "2" => xl("Textbox"), "3" => xl("Textarea"), "4" => xl("Text-date"), "10" => xl("Providers"), "11" => xl("Providers NPI"), "12" => xl("Pharmacies"), "13" => xl("Squads"), "14" => xl("Organizations"), "15" => xl("Billing codes"), "16" => xl("Insurances"), "18" => xl("Visit Categories"), "21" => xl("Checkbox list"), "22" => xl("Textbox list"), "23" => xl("Exam results"), "24" => xl("Patient allergies"), "25" => xl("Checkbox w/text"), "26" => xl("List box w/add"), "27" => xl("Radio buttons"), "28" => xl("Lifestyle status"), "31" => xl("Static Text"), "32" => xl("Smoking Status"), "33" => xl("Race and Ethnicity"), "34" => xl("NationNotes"), "35" => xl("Facilities"), "36" => xl("Multiple Select List"), "40" => xl("Image canvas"));
$sources = array('F' => xl('Form'), 'D' => xl('Patient'), 'H' => xl('History'), 'E' => xl('Visit'), 'V' => xl('VisForm'));
function nextGroupOrder($order)
{
    if ($order == '9') {
        $order = 'A';
    } else {
        if ($order == 'Z') {
            $order = 'a';
        } else {
            $order = chr(ord($order) + 1);
        }
    }
开发者ID:juggernautsei,项目名称:openemr,代码行数:31,代码来源:edit_layout.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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