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

PHP generate_select_list函数代码示例

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

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



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

示例1: xl

  </td>
 </tr>

 <tr<?php 
if (!$GLOBALS['athletic_team']) {
    echo " style='display:none;'";
}
?>
 id='row_medical_type'>
  <td valign='top' nowrap><b><?php 
xl('Medical Type', 'e');
?>
:</b></td>
  <td>
<?php 
echo generate_select_list('form_medical_type', 'medical_type', $irow['injury_type'], '');
?>
  </td>
 </tr>

 <!-- End For Athletic Teams -->

 <tr>
  <td valign='top' nowrap><b><?php 
xl('Begin Date', 'e');
?>
:</b></td>
  <td>

   <input type='text' size='10' name='form_begin' id='form_begin'
    value='<?php 
开发者ID:johnnytang24,项目名称:openemr,代码行数:31,代码来源:add_edit_issue.php


示例2: xlt

?>
    </tr>

    <tr<?php 
if (!$GLOBALS['gbl_visit_referral_source']) {
    echo " style='visibility:hidden;'";
}
?>
>
     <td class='bold' nowrap><?php 
echo xlt('Referral Source');
?>
:</td>
     <td class='text'>
<?php 
echo generate_select_list('form_referral_source', 'refsource', $viewmode ? $result['referral_source'] : '', '');
?>
     </td>
    </tr>

    <tr>
     <td class='bold' nowrap><?php 
echo xlt('Date of Service:');
?>
</td>
     <td class='text' nowrap>
      <input type='text' size='10' name='form_date' id='form_date' <?php 
echo $disabled;
?>
       value='<?php 
echo $viewmode ? substr($result['date'], 0, 10) : date('Y-m-d');
开发者ID:mi-squared,项目名称:openemr,代码行数:31,代码来源:common.php


示例3: xl

 <td class="text"><?php 
    xl('Default Warehouse', 'e');
    ?>
: </td>
 <td class='text'>
<?php 
    echo generate_select_list('default_warehouse', 'warehouse', '', '');
    ?>
 </td>
 <td class="text"><?php 
    xl('Invoice Refno Pool', 'e');
    ?>
: </td>
 <td class='text'>
<?php 
    echo generate_select_list('irnpool', 'irnpool', '', xl('Invoice reference number pool, if used'));
    ?>
 </td>
</tr>
<?php 
}
?>

<?php 
// List the access control groups if phpgacl installed
if (isset($phpgacl_location) && acl_check('admin', 'acl')) {
    ?>
  <tr>
  <td class='text'><?php 
    xl('Access Control', 'e');
    ?>
开发者ID:reinhardsual,项目名称:openemr,代码行数:31,代码来源:usergroup_admin_add.php


示例4: restoreSession

?>
'>
<!-- no restoreSession() on submit because session data are not relevant -->

<center>

<table border='0' width='100%'>

 <tr>
  <td width='1%' nowrap><b><?php 
echo xlt('Procedure Type');
?>
:</b></td>
  <td>
<?php 
echo generate_select_list('form_procedure_type', 'proc_type', $row['procedure_type'], xl('The type of this entity'), ' ', '', 'proc_type_changed()');
?>
  </td>
 </tr>

 <tr>
  <td nowrap><b><?php 
echo xlt('Name');
?>
:</b></td>
  <td>
   <input type='text' size='40' name='form_name' maxlength='63'
    value='<?php 
echo htmlspecialchars($row['name'], ENT_QUOTES);
?>
'
开发者ID:mindfeederllc,项目名称:openemr,代码行数:31,代码来源:types_edit.php


示例5: htmlspecialchars

					</tr>
					<tr>
						<td class='label'><?php 
echo htmlspecialchars(xl('Race'), ENT_NOQUOTES);
?>
:</td>
						<td><?php 
echo generate_select_list('race', 'race', $sql_race, 'Select Race', 'Unassigned', '', '');
?>
</td>
             					<td class='label'><?php 
echo htmlspecialchars(xl('Ethnicity'), ENT_NOQUOTES);
?>
:</td>
                                                <td><?php 
echo generate_select_list('ethnicity', 'ethnicity', $sql_ethnicity, 'Select Ethnicity', 'Unassigned', '', '');
?>
</td>

					</tr>
					<tr>
                                                <td class='label' width='100'><?php 
echo htmlspecialchars(xl('Lab Result'), ENT_NOQUOTES);
?>
:</td>
                                                <td width='100'><input type='text' name='form_lab_results' size='13' maxlength='250' value='<?php 
echo htmlspecialchars($form_lab_results, ENT_QUOTES);
?>
' title='<?php 
echo htmlspecialchars(xl('Result, use % as a wildcard'), ENT_QUOTES);
?>
开发者ID:richsiy,项目名称:openemr,代码行数:31,代码来源:clinical_reports.php


示例6: generate_form_field

function generate_form_field($frow, $currvalue)
{
    global $rootdir, $date_init;
    $currescaped = htmlspecialchars($currvalue, ENT_QUOTES);
    $data_type = $frow['data_type'];
    $field_id = $frow['field_id'];
    $list_id = $frow['list_id'];
    // escaped variables to use in html
    $field_id_esc = htmlspecialchars($field_id, ENT_QUOTES);
    $list_id_esc = htmlspecialchars($list_id, ENT_QUOTES);
    // Added 5-09 by BM - Translate description if applicable
    $description = htmlspecialchars(xl_layout_label($frow['description']), ENT_QUOTES);
    // added 5-2009 by BM to allow modification of the 'empty' text title field.
    //  Can pass $frow['empty_title'] with this variable, otherwise
    //  will default to 'Unassigned'.
    // modified 6-2009 by BM to allow complete skipping of the 'empty' text title
    //  if make $frow['empty_title'] equal to 'SKIP'
    $showEmpty = true;
    if (isset($frow['empty_title'])) {
        if ($frow['empty_title'] == "SKIP") {
            //do not display an 'empty' choice
            $showEmpty = false;
            $empty_title = "Unassigned";
        } else {
            $empty_title = $frow['empty_title'];
        }
    } else {
        $empty_title = "Unassigned";
    }
    // generic single-selection list
    if ($data_type == 1) {
        echo generate_select_list("form_{$field_id}", $list_id, $currvalue, $description, $showEmpty ? $empty_title : '');
    } else {
        if ($data_type == 2) {
            $fldlength = htmlspecialchars($frow['fld_length'], ENT_QUOTES);
            $maxlength = htmlspecialchars($frow['max_length'], ENT_QUOTES);
            echo "<input type='text'" . " name='form_{$field_id_esc}'" . " id='form_{$field_id_esc}'" . " size='{$fldlength}'" . " maxlength='{$maxlength}'" . " title='{$description}'" . " value='{$currescaped}'";
            if (strpos($frow['edit_options'], 'C') !== FALSE) {
                echo " onchange='capitalizeMe(this)'";
            }
            $tmp = htmlspecialchars($GLOBALS['gbl_mask_patient_id'], ENT_QUOTES);
            if ($field_id == 'pubpid' && strlen($tmp) > 0) {
                echo " onkeyup='maskkeyup(this,\"{$tmp}\")'";
                echo " onblur='maskblur(this,\"{$tmp}\")'";
            }
            echo " />";
        } else {
            if ($data_type == 3) {
                $textCols = htmlspecialchars($frow['fld_length'], ENT_QUOTES);
                $textRows = htmlspecialchars($frow['max_length'], ENT_QUOTES);
                echo "<textarea" . " name='form_{$field_id_esc}'" . " id='form_{$field_id_esc}'" . " title='{$description}'" . " cols='{$textCols}'" . " rows='{$textRows}'>" . $currescaped . "</textarea>";
            } else {
                if ($data_type == 4) {
                    echo "<input type='text' size='10' name='form_{$field_id_esc}' id='form_{$field_id_esc}'" . " value='{$currescaped}'" . " title='{$description}'" . " onkeyup='datekeyup(this,mypcc)' onblur='dateblur(this,mypcc)' />" . "<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', button:'img_{$field_id}'});\n";
                } 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}'>";
                        echo "<option value=''>" . htmlspecialchars(xl('Unassigned'), ENT_NOQUOTES) . "</option>";
                        while ($urow = sqlFetchArray($ures)) {
                            $uname = htmlspecialchars($urow['fname'] . ' ' . $urow['lname'], ENT_NOQUOTES);
                            $optionId = htmlspecialchars($urow['id'], ENT_QUOTES);
                            echo "<option value='{$optionId}'";
                            if ($urow['id'] == $currvalue) {
                                echo " selected";
                            }
                            echo ">{$uname}</option>";
                        }
                        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 "<option value=''>" . htmlspecialchars(xl('Unassigned'), ENT_NOQUOTES) . "</option>";
                            while ($urow = sqlFetchArray($ures)) {
                                $uname = htmlspecialchars($urow['fname'] . ' ' . $urow['lname'], ENT_NOQUOTES);
                                $optionId = htmlspecialchars($urow['id'], ENT_QUOTES);
                                echo "<option value='{$optionId}'";
                                if ($urow['id'] == $currvalue) {
                                    echo " selected";
                                }
                                echo ">{$uname}</option>";
                            }
                            echo "</select>";
                        } else {
                            if ($data_type == 12) {
                                echo "<select name='form_{$field_id_esc}' id='form_{$field_id_esc}' title='{$description}'>";
                                echo "<option value='0'></option>";
                                $pres = get_pharmacies();
                                while ($prow = sqlFetchArray($pres)) {
                                    $key = $prow['id'];
                                    $optionValue = htmlspecialchars($key, ENT_QUOTES);
                                    $optionLabel = htmlspecialchars($prow['name'] . ' ' . $prow['area_code'] . '-' . $prow['prefix'] . '-' . $prow['number'] . ' / ' . $prow['line1'] . ' / ' . $prow['city'], ENT_NOQUOTES);
                                    echo "<option value='{$optionValue}'";
                                    if ($currvalue == $key) {
                                        echo " selected";
                                    }
                                    echo ">{$optionLabel}</option>";
                                }
//.........这里部分代码省略.........
开发者ID:johnnytang24,项目名称:openemr,代码行数:101,代码来源:options.inc.php


示例7: attr

            echo "    <option value='" . attr($date1) . "'>" . xlt('This visit begins new contraceptive use') . "</option>\n";
            echo "    <option value='" . attr($date0) . "'>" . xlt('Contraceptive services previously started') . "</option>\n";
            echo "    <option value=''>" . xlt('None of the above') . "</option>\n";
            echo "   </select>\n";
            echo "&nbsp; &nbsp; &nbsp;\n";
        }
    }
}
// If there is a choice of warehouses, allow override of user default.
if ($prod_lino > 0) {
    // if any products are in this form
    $trow = sqlQuery("SELECT count(*) AS count FROM list_options WHERE list_id = 'warehouse'");
    if ($trow['count'] > 1) {
        $trow = sqlQuery("SELECT default_warehouse FROM users WHERE username = ?", array($_SESSION['authUser']));
        echo "   <span class='billcell'><b>" . xlt('Warehouse') . ":</b></span>\n";
        echo generate_select_list('default_warehouse', 'warehouse', $trow['default_warehouse'], '');
        echo "&nbsp; &nbsp; &nbsp;\n";
    }
}
// Allow the patient price level to be fixed here.
$plres = sqlStatement("SELECT option_id, title FROM list_options " . "WHERE list_id = 'pricelevel' ORDER BY seq");
if (true) {
    $trow = sqlQuery("SELECT pricelevel FROM patient_data WHERE " . "pid = ? LIMIT 1", array($pid));
    $pricelevel = $trow['pricelevel'];
    echo "   <span class='billcell'><b>" . xlt('Price Level') . ":</b></span>\n";
    echo "   <select name='pricelevel'";
    if ($isBilled) {
        echo " disabled";
    }
    echo ">\n";
    while ($plrow = sqlFetchArray($plres)) {
开发者ID:bbgunmaster,项目名称:openemr,代码行数:31,代码来源:new.php


示例8: htmlspecialchars

    echo $screen == 'new_payment' ? htmlspecialchars('0.00') : htmlspecialchars($PayTotal);
    ?>
"  style="text-align:right"    class="class1 text "   /></td>
	    <td align="left" ></td>
	    <td align="left" ></td>
		<td align="left" class="text"><?php 
    echo htmlspecialchars(xl('Paying Entity'), ENT_QUOTES) . ':';
    ?>
</td>
		<td align="left"><?php 
    if ($PaymentType == '' && $screen == 'edit_payment') {
        $blankValue = ' ';
    } else {
        $blankValue = '';
    }
    echo generate_select_list("type_name", "payment_type", "{$PaymentType}", "Paying Entity", "{$blankValue}", "class1 text", 'PayingEntityAction()');
    ?>
		</td>
	    <td align="left" ></td>
	    <td align="left" ></td>
		<td align="left" class="text"><?php 
    echo htmlspecialchars(xl('Payment Category'), ENT_QUOTES) . ':';
    ?>
</td>
		<td align="left"><?php 
    if ($AdjustmentCode == '' && $screen == 'edit_payment') {
        $blankValue = ' ';
    } else {
        $blankValue = '';
    }
    echo generate_list_payment_category("adjustment_code", "payment_adjustment_code", "{$AdjustmentCode}", "Payment Category", "{$blankValue}", "class1 text", 'FilterSelection(this)', "{$PaymentType}", "{$screen}");
开发者ID:katopenzz,项目名称:openemr,代码行数:31,代码来源:payment_master.inc.php


示例9: attr

echo attr($age_from);
?>
" size='3' maxlength='3' /> <?php 
echo xlt('To{{range}}');
?>
 
								<input name='age_to' class="numeric_only" type='text' id="age_to" value="<?php 
echo attr($age_to);
?>
" size='3' maxlength='3' /></td>
								<td class='label'><?php 
echo xlt('Gender');
?>
:</td>
								<td colspan="2"><?php 
echo generate_select_list('gender', 'sex', $sql_gender, 'Select Gender', 'Unassigned', '', '');
?>
</td>
							</tr>
							
						</table>
						
						</div></td>
						<td height="100%" valign='middle' width="175"><table style='border-left:1px solid; width:100%; height:100%'>
							<tr>
								<td width="130px"><div style='margin-left:15px'> <a href='#' class='css_button' onclick='submitForm();'> <span>
											<?php 
echo xlt('Submit');
?>
											</span> </a>
									</div>
开发者ID:katopenzz,项目名称:openemr,代码行数:31,代码来源:patient_list_creation.php


示例10: generate_specRx


//.........这里部分代码省略.........
" value="<?php 
    echo attr($OSMIDADD);
    ?>
"></td>
                          <td class="WAdd2"><input type="text" class="presbyopia" id="OSADD_<?php 
    echo attr($W);
    ?>
" name="OSADD_<?php 
    echo attr($W);
    ?>
" value="<?php 
    echo attr($OSADD);
    ?>
" tabindex="<?php 
    echo attr($W);
    ?>
0107"></td>
                          <td></td>
                          <td><input class="jaeger" type="text" id="NEAROSVA_<?php 
    echo attr($W);
    ?>
" name="NEAROSVA_<?php 
    echo attr($W);
    ?>
" value="<?php 
    echo attr($NEAROSVA);
    ?>
" tabindex="<?php 
    echo attr($W);
    ?>
0111"></td>

                          <td name="W_wide"></td>

                          <td name="W_wide"><input type="text" class="prism" id="BPDD_<?php 
    echo attr($W);
    ?>
" name="BPDD_<?php 
    echo attr($W);
    ?>
" value="<?php 
    echo attr($BPDD);
    ?>
" tabindex="<?php 
    echo attr($W);
    ?>
0128"></td>
                          <td name="W_wide"><input type="text" class="prism" id="BPDN_<?php 
    echo attr($W);
    ?>
" name="BPDN_<?php 
    echo attr($W);
    ?>
" value="<?php 
    echo attr($BPDN);
    ?>
" tabindex="<?php 
    echo attr($W);
    ?>
0129"></td>
                          <td name="W_wide" title="<?php 
    echo xla('Lens Material Options');
    ?>
" colspan="2">
                            <?php 
    echo generate_select_list("LENS_MATERIAL_" . $W, "Eye_Lens_Material", "{$LENS_MATERIAL}", '', ' ', '', 'restoreSession;submit_form();', '', array('style' => 'width:120px', 'tabindex' => $W . '0130'));
    ?>
                          </td>
                        </tr>
                        <tr>
                          <td colspan="2"><b><?php 
    echo xlt('Comments');
    ?>
:</b>
                          </td>
                          <td colspan="4" class="up"></td>
                        </tr>
                        <tr>
                          <td colspan="6">
                            <textarea id="COMMENTS_<?php 
    echo attr($W);
    ?>
" name="COMMENTS_W" tabindex="<?php 
    echo attr($W);
    ?>
0110"><?php 
    echo text($COMMENTS);
    ?>
</textarea>
                          </td>
                          <td colspan="2">
                          </td>
                        </tr>
                      </table>
    </div>
    <?php 
    $output = ob_get_contents();
    ob_end_clean();
    return $output;
}
开发者ID:bradymiller,项目名称:openemr,代码行数:101,代码来源:eye_mag_functions.php


示例11: xlt

   <?php 
echo xlt('Specialty');
?>
:
   <input type='text' name='form_specialty' size='10' value='<?php 
echo attr($_POST['form_specialty']);
?>
'
    class='inputtext' title='<?php 
echo xla("Any part of the desired specialty");
?>
' />&nbsp;
<?php 
echo xlt('Type') . ": ";
// Generates a select list named form_abook_type:
echo generate_select_list("form_abook_type", "abook_type", $_REQUEST['form_abook_type'], '', 'All');
?>
   <input type='checkbox' name='form_external' value='1'<?php 
if ($form_external) {
    echo ' checked';
}
?>
    title='<?php 
echo xla("Omit internal users?");
?>
' />
   <?php 
echo xlt('External Only');
?>
&nbsp;&nbsp;
   <input type='submit' title='<?php 
开发者ID:kgenaidy,项目名称:openemr,代码行数:31,代码来源:addrbook_list.php


示例12: attr

                          <td name="W_wide"></td>

                          <td name="W_wide"><input type="text" class="prism" id="BPDD_1" name="BPDD_1" value="<?php 
echo attr($BPDD_1);
?>
" tabindex="138"></td>
                          <td name="W_wide"><input type="text" class="prism" id="BPDN_1" name="BPDN_1" value="<?php 
echo attr($BPDN_1);
?>
" tabindex="140"></td>
                          <td name="W_wide" title="<?php 
echo xla('Lens Material Options');
?>
" colspan="2"  tabindex="142">
                            <?php 
echo generate_select_list("LENS_MATERIAL_1", "Eye_Lens_Material", "{$LENS_MATERIAL_1}", '', '--Lens Material--', '', 'restoreSession;submit_form();', '', array('style' => 'width:120px'));
?>
                          </td>
                        </tr>
                        <tr>
                          <td colspan="2"><b><?php 
echo xlt('Comments');
?>
:</b>
                          </td>
                          <td colspan="4" class="up"></td>
                        </tr>
                        <tr>
                          <td colspan="6">
                            <textarea id="COMMENTS_1" name="COMMENTS_W" tabindex="111"><?php 
echo text($COMMENTS_1);
开发者ID:bradymiller,项目名称:openemr,代码行数:31,代码来源:view.php


示例13: text

    echo text($amendment_desc);
} else {
    echo "";
}
?>
</textarea></td>
		</tr>
		
		<tr>
			<td><span class=text ><?php 
echo xlt('Request Status');
?>
</span></td>
			<td>
				<?php 
echo generate_select_list("form_amendment_status", "amendment_status", $amendment_status, 'Amendment Status', ' ', '', '', '', $customAttributes);
?>
			</td>
		</tr>
		
		<tr>
			<td><span class=text ><?php 
echo xlt('Comments');
?>
</span></td>
			<td><textarea <?php 
echo $onlyRead ? "readonly" : "";
?>
 id="note" name="note" rows="4" cols="30"><?php 
if ($amendment_id) {
    echo "";
开发者ID:katopenzz,项目名称:openemr,代码行数:31,代码来源:add_edit_amendments.php


示例14: htmlspecialchars

echo htmlspecialchars(xl('Cancel'), ENT_NOQUOTES);
?>
</span>
                </a>
            </td>
        </tr>
	</table>

	<table class="text">
	    <tr><td>
        <?php 
echo htmlspecialchars(xl('Transaction Type'), ENT_NOQUOTES);
?>
:&nbsp;</td><td>
	<?php 
echo generate_select_list('title', 'transactions', $form_id, '', '', '', 'titleChanged()');
?>
        </td></tr>
	</table>

<div id='referdiv'>

    <?php 
if ($GLOBALS['enable_amc_prompting'] && 'LBTref' == $form_id) {
    ?>
        <div style='float:right;margin-right:25px;border-style:solid;border-width:1px;'>
            <div style='float:left;margin:5px 5px 5px 5px;'>
                <?php 
    // Display the send records checkbox (AMC prompting)
    $itemAMC = amcCollect("send_sum_amc", $pid, 'transactions', $transid);
    ?>
开发者ID:minggLu,项目名称:openemr,代码行数:31,代码来源:add_transaction.php


示例15: htmlspecialchars

                    ?>
)"   type="text"   style="width:60px;text-align:right; font-size:12px" /></td>
							<td align="left" class="<?php 
                    echo $StringClass;
                    ?>
" ><input name="HiddenReasonCode<?php 
                    echo $CountIndex;
                    ?>
" id="HiddenReasonCode<?php 
                    echo $CountIndex;
                    ?>
"  value="<?php 
                    echo htmlspecialchars($ReasonCodeDB);
                    ?>
" type="hidden"/><?php 
                    echo generate_select_list("ReasonCode{$CountIndex}", "msp_remit_codes", "{$ReasonCodeDB}", "MSP Code");
                    ?>
</td>							
							<td align="center" class="<?php 
                    echo $StringClass;
                    ?>
" ><input type="checkbox" id="FollowUp<?php 
                    echo $CountIndex;
                    ?>
"  name="FollowUp<?php 
                    echo $CountIndex;
                    ?>
" value="y" onClick="ActionFollowUp(<?php 
                    echo $CountIndex;
                    ?>
)" <?php 
开发者ID:mi-squared,项目名称:openemr,代码行数:31,代码来源:edit_payment.php


示例16: xlt

?>
  </td>
 </tr>
 <?php 
if ($_GET['prov'] != true) {
    ?>
 <tr>
  <td nowrap>
   <b><?php 
    echo xlt('Room Number');
    ?>
:</b>
  </td>
  <td colspan='4' nowrap>
<?php 
    echo generate_select_list('form_room', 'patient_flow_board_rooms', $pcroom, xl('Room Number'));
    ?>
  </td>
 </tr>
<?php 
}
?>
 <tr>
  <td nowrap>
   <b><?php 
echo xlt('Comments');
?>
:</b>
  </td>
  <td colspan='4' nowrap>
   <input type='text' size='40' name='form_comments' style='width:100%' value='<?php 
开发者ID:minggLu,项目名称:openemr,代码行数:31,代码来源:add_edit_event.php


示例17: batch_despatch

 public static function batch_despatch($var, $func, $data_credentials)
 {
     global $pid;
     if (UserService::valid($data_credentials)) {
         require_once "../../library/invoice_summary.inc.php";
         require_once "../../library/options.inc.php";
         require_once "../../library/acl.inc";
         require_once "../../library/patient.inc";
         if ($func == 'ar_responsible_party') {
             $patient_id = $pid;
             $encounter_id = $var['encounter'];
             $x['ar_responsible_party'] = ar_responsible_party($patient_id, $encounter_id);
             return UserService::function_return_to_xml($x);
         } elseif ($func == 'getInsuranceData') {
             $type = $var['type'];
             $given = $var['given'];
             $x = getInsuranceData($pid, $type, $given);
             return UserService::function_return_to_xml($x);
         } elseif ($func == 'generate_select_list') {
             $tag_name = $var['tag_name'];
             $list_id = $var['list_id'];
             $currvalue = $var['currvalue'];
             $title = $var['title'];
             $empty_name = $var['empty_name'];
             $class = $var['class'];
             $onchange = $var['onchange'];
             $x['generate_select_list'] = generate_select_list($tag_name, $list_id, $currvalue, $title, $empty_name, $class, $onchange);
             return UserService::function_return_to_xml($x);
         } elseif ($func == 'xl_layout_label') {
             $constant = $var['constant'];
             $x['xl_layout_label'] = xl_layout_label($constant);
             return UserService::function_return_to_xml($x);
         } elseif ($func == 'generate_form_field') {
             $frow = $var['frow'];
             $currvalue = $var['currvalue'];
             ob_start();
             generate_form_field($frow, $currvalue);
             $x['generate_form_field'] = ob_get_contents();
             ob_end_clean();
             return UserService::function_return_to_xml($x);
         } elseif ($func == 'getInsuranceProviders') {
             $i = $var['i'];
             $provider = $var['provider'];
             $insurancei = getInsuranceProviders();
             $x = $insurancei;
             return $x;
         } elseif ($func == 'get_layout_form_value') {
             $frow = $var['frow'];
             $_POST = $var['post_array'];
             $x['get_layout_form_value'] = get_layout_form_value($frow);
             return UserService::function_return_to_xml($x);
         } elseif ($func == 'updatePatientData') {
             $patient_data = $var['patient_data'];
             $create = $var['create'];
             updatePatientData($pid, $patient_data, $create);
             $x['ok'] = 'ok';
             return UserService::function_return_to_xml($x);
         } elseif ($func == 'updateEmployerData') {
             $employer_data = $var['employer_data'];
             $create = $var['create'];
             updateEmployerData($pid, $employer_data, $create);
             $x['ok'] = 'ok';
             return UserService::function_return_to_xml($x);
         } elseif ($func == 'newHistoryData') {
             newHistoryData($pid);
             $x['ok'] = 'ok';
             return UserService::function_return_to_xml($x);
         } elseif ($func == 'newInsuranceData') {
             $_POST = $var[0];
             foreach ($var as $key => $value) {
                 if ($key >= 3) {
                     $var[$key] = formData($value);
                 }
                 if ($key >= 1) {
                     $parameters[$key] = $var[$key];
                 }
             }
             $parameters[12] = fixDate($parameters[12]);
             $parameters[27] = fixDate($parameters[27]);
             call_user_func_array('newInsuranceData', $parameters);
             $x['ok'] = 'ok';
             return UserService::function_return_to_xml($x);
         } elseif ($func == 'generate_layout_validation') {
             $form_id = $var['form_id'];
             ob_start();
             generate_layout_validation($form_id);
             $x = ob_get_clean();
             return $x;
         }
     } else {
         throw new SoapFault("Server", "credentials failed");
     }
 }
开发者ID:jatin-52,项目名称:erm,代码行数:93,代码来源:server_side.php


示例18: generate_form_field

function generate_form_field($frow, $currvalue) {
  global $rootdir, $date_init, $ISSUE_TYPES, $code_types,$condition_str;

  $currescaped = htmlspecialchars($currvalue, ENT_QUOTES);

  $data_type   = $frow['data_type'];
  $field_id    = $frow['field_id'];
  $list_id     = $frow['list_id'];
  $backup_list = $frow['list_backup_id'];
  $condition_str = get_conditions_str($condition_str,$frow);

  // escaped variables to use in html
  $field_id_esc= htmlspecialchars( $field_id, ENT_QUOTES);
  $list_id_esc = htmlspecialchars( $list_id, ENT_QUOTES);

  // Added 5-09 by BM - Translate description if applicable
  $description = (isset($frow['description']) ? htmlspecialchars(xl_layout_label($frow['description']), ENT_QUOTES) : '');

  // Support edit option T which assigns the (possibly very long) description as
  // the default value.
  if (strpos($frow['edit_options'], 'T') !== FALSE) {
    if (strlen($currescaped) == 0) $currescaped = $description;
    // Description used in this way is not suitable as a title.
    $description = '';
  }

  // added 5-2009 by BM to allow modification of the 'empty' text title field.
  //  Can pass $frow['empty_title'] with this variable, otherwise
  //  will default to 'Unassigned'.
  // modified 6-2009 by BM to allow complete skipping of the 'empty' text title
  //  if make $frow['empty_title'] equal to 'SKIP'
  $showEmpty = true;
  if (isset($frow['empty_title'])) {
   if ($frow['empty_title'] == "SKIP") {
    //do not display an 'empty' choice
    $showEmpty = false;
    $empty_title = "Unassigned";
   }
   else {
    $empty_title = $frow['empty_title'];
   }
  }
  else {
   $empty_title = "Unassigned";
  }

  $disabled = strpos($frow['edit_options'], '0') === FALSE ? '' : 'disabled';

  $lbfchange = (strpos($frow['form_id'], 'LBF') === 0 || strpos($frow['form_id'], 'LBT') === 0) ?
    "checkSkipConditions();" : "";
  $lbfonchange = $lbfchange ? "onchange='$lbfchange'" : "";

  // generic single-selection list or Race and Ethnicity.
  // These data types support backup lists.
  if ($data_type == 1 || $data_type == 33) {
    echo generate_select_list("form_$field_id", $list_id, $currvalue,
      $description, ($showEmpty ? $empty_title : ''), '', $lbfchange, '',
      ($disabled ? array('disabled' => 'disabled') : null), false, $backup_list);
  }

  // simple text field
  else if ($data_type == 2) {
    $fldlength = htmlspecialchars( $frow['fld_length'], ENT_QUOTES);
    $maxlength = $frow['max_length'];
    $string_maxlength = "";
    // if max_length is set to zero, then do not set a maxlength
    if ($maxlength) $string_maxlength = "maxlength='".attr($maxlength)."'";
    echo "<input type='text'" .
      " name='form_$field_id_esc'" .
      " id='form_$field_id_esc'" .
      " size='$fldlength'" .
      " $string_maxlength" .
      " title='$description'" .
      " value='$currescaped'";
    $tmp = $lbfchange;
    if (strpos($frow['edit_options'], 'C') !== FALSE)
      $tmp .= "capitalizeMe(this);";
    else if (strpos($frow['edit_options'], 'U') !== FALSE)
      $tmp .= "this.value = this.value.toUpperCase();";
    if ($tmp) echo " onchange='$tmp'";
    $tmp = htmlspecialchars( $GLOBALS['gbl_mask_patient_id'], ENT_QUOTES);
    if ($field_id == 'pubpid' && strlen($tmp) > 0) {
      echo " onkeyup='maskkeyup(this,\"$tmp\")'";
      echo " onblur='maskblur(this,\"$tmp\")'";
    }
    if (strpos($frow['edit_options'], '1') !== FALSE && strlen($currescaped) > 0) {
      echo " readonly";
    }
	if ($disabled) echo ' disabled';
    echo " />";
  }

  // long or multi-line text field
  else if ($data_type == 3) {
    $textCols = htmlspecialchars( $frow['fld_length'], ENT_QUOTES);
    $textRows = htmlspecialchars( $frow['fld_rows'], ENT_QUOTES);
    echo "<textarea" .
      " name='form_$field_id_esc'" .
      " id='form_$field_id_esc'" .
      " title='$description'" .
//.........这里部分代码省略.........
开发者ID:juggernautsei,项目名称:openemr,代码行数:101,代码来源:options.inc.php


示例19: attr

         }
         echo "</td>\n";
         echo "  <td>";
         echo "<input type='text' size='4' name='form_result_units[{$lino}]'" . " class='celltext' value='" . attr($result_units) . "' " . " title='" . xl('Units applicable to the result value') . "'" . " />";
         echo "</td>\n";
         echo "  <td>";
         echo "<input type='text' size='8' name='form_result_range[{$lino}]'" . " class='celltext' value='" . attr($result_range) . "' " . " title='" . xl('Reference range of results') . "'" . " />";
         // Include a hidden form field containing all IDs for this line.
         echo "<input type='hidden' name='form_line[{$lino}]' " . "value='{$order_id}:{$order_seq}:{$report_id}:{$result_id}' />";
         echo "</td>\n";
         echo "  <td class='bold' style='cursor:pointer' " . "onclick='extShow({$lino}, this)' align='center' " . "title='" . xl('Click here to view/edit more details') . "'>";
         echo "&nbsp;?&nbsp;";
         echo "</td>\n";
         echo " </tr>\n";
         // Create a floating div for additional attributes of this result.
         $extra_html .= "<div id='ext_{$lino}' " . "style='position:absolute;width:750px;border:1px solid black;" . "padding:2px;background-color:#cccccc;visibility:hidden;" . "z-index:1000;left:-1000px;top:0px;font-size:9pt;'>\n" . "<table width='100%'>\n" . "<tr><td class='bold' align='center' colspan='2' style='padding:4pt 0 4pt 0'>" . htmlspecialchars($result_text) . "</td></tr>\n" . "<tr><td class='bold' width='1%' nowrap>" . xlt('Status') . ": </td>" . "<td>" . generate_select_list("form_result_status[{$lino}]", 'proc_res_status', $result_status, xl('Result Status'), '') . "</td></tr>\n" . "<tr><td class='bold' nowrap>" . xlt('Facility') . ": </td>" . "<td><input type='text' size='15' name='form_facility[{$lino}]'" . " value='{$result_facility}' " . " title='" . xla('Supplier facility name') . "'" . " style='width:100%' /></td></tr>\n" . "<tr><td class='bold' nowrap>" . xlt('Comments') . ": </td>" . "<td><textarea rows='3' cols='15' name='form_comments[{$lino}]'" . " title='" . xla('Comments for this result or recommendation') . "'" . " style='width:100%' />" . htmlspecialchars($result_comments) . "</textarea></td></tr>\n" . "<tr><td class='bold' nowrap>" . xlt('Notes') . ": </td>" . "<td><textarea rows='4' cols='15' name='form_notes[{$lino}]'" . " title='" . xla('Additional notes for this result or recommendation') . "'" . " style='width:100%' />" . htmlspecialchars($result_notes) . "</textarea></td></tr>\n" . "</table>\n" . "<p><center><input type='button' value='" . xla('Close') . "' " . "onclick='extShow({$lino}, false)' /></center></p>\n" . "</div>";
         $lastpoid = $order_id;
         $lastpcid = $order_seq;
         $lastprid = $report_id;
         ++$lino;
     }
 }
 if (!empty($facilities)) {
     // display facility information
     $extra_ht 

鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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