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


PHP generate_select_list函数代码示例

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


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


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