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


PHP generate_form_field函数代码示例

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


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

示例1: writeTemplateLine

function writeTemplateLine($selector, $dosage, $period, $quantity, $refills, $prices, $taxrates)
{
    global $tmpl_line_no;
    ++$tmpl_line_no;
    echo " <tr>\n";
    echo "  <td class='tmplcell drugsonly'>";
    echo "<input type='text' name='form_tmpl[{$tmpl_line_no}][selector]' value='{$selector}' size='8' maxlength='100'>";
    echo "</td>\n";
    echo "  <td class='tmplcell drugsonly'>";
    echo "<input type='text' name='form_tmpl[{$tmpl_line_no}][dosage]' value='{$dosage}' size='6' maxlength='10'>";
    echo "</td>\n";
    echo "  <td class='tmplcell drugsonly'>";
    generate_form_field(array('data_type' => 1, 'field_id' => 'tmpl[' . $tmpl_line_no . '][period]', 'list_id' => 'drug_interval', 'empty_title' => 'SKIP'), $period);
    echo "</td>\n";
    echo "  <td class='tmplcell drugsonly'>";
    echo "<input type='text' name='form_tmpl[{$tmpl_line_no}][quantity]' value='{$quantity}' size='3' maxlength='7'>";
    echo "</td>\n";
    echo "  <td class='tmplcell drugsonly'>";
    echo "<input type='text' name='form_tmpl[{$tmpl_line_no}][refills]' value='{$refills}' size='3' maxlength='5'>";
    echo "</td>\n";
    foreach ($prices as $pricelevel => $price) {
        echo "  <td class='tmplcell'>";
        echo "<input type='text' name='form_tmpl[{$tmpl_line_no}][price][{$pricelevel}]' value='{$price}' size='6' maxlength='12'>";
        echo "</td>\n";
    }
    $pres = sqlStatement("SELECT option_id FROM list_options " . "WHERE list_id = 'taxrate' ORDER BY seq");
    while ($prow = sqlFetchArray($pres)) {
        echo "  <td class='tmplcell'>";
        echo "<input type='checkbox' name='form_tmpl[{$tmpl_line_no}][taxrate][" . $prow['option_id'] . "]' value='1'";
        if (strpos(":{$taxrates}", $prow['option_id']) !== false) {
            echo " checked";
        }
        echo " /></td>\n";
    }
    echo " </tr>\n";
}
开发者ID:stephen-smith,项目名称:openemr,代码行数:36,代码来源:add_edit_drug.php

示例2: generate_form_field

			<div class="tab_title sr" data-role="tab" data-value="sr">Srpski</div>
			<div class="tab_title en" data-role="tab" data-value="en">English</div>
			<div class="tab sr_tab">
				<?php 
generate_form_field("text", "title_sr", "Naziv", "", $errors, "Naziv usluge");
?>
				<?php 
generate_form_field("textarea", "body_sr", "Opis usluge", "", $errors);
?>
			</div>
			<div class="tab en_tab">
				<?php 
generate_form_field("text", "title_en", "Title", "", $errors, "Title of the page");
?>
				<?php 
generate_form_field("textarea", "body_en", "Description", "", $errors);
?>
			</div>
		</div>
		<div class="form-field">
			<label for="published">Status:</label>
			<select id="published" name="published">
				<option value="false">Skrivena</option>
				<option value="true">Objavljena</option>
			</select>
		</div>
		<div class="form-field">
			<input type="submit" name="submit" value="Sačuvaj">
		</div>
	</form>
</section>
开发者ID:mrzarkovic,项目名称:advokat,代码行数:31,代码来源:add-service.php

示例3: xl

    ?>
  </td>
 </tr>
<?php 
}
// end of if has admin access
?>

 <tr id="nameRow">
  <td width='1%' nowrap><b><?php 
xl('Name', 'e');
?>
:</b></td>
  <td>
<?php 
generate_form_field(array('data_type' => 1, 'field_id' => 'title', 'list_id' => 'titles', 'empty_title' => ' '), $row['title']);
?>
   <b><?php 
xl('Last', 'e');
?>
:</b><input type='text' size='10' name='form_lname' class='inputtext'
     maxlength='50' value='<?php 
echo htmlspecialchars($row['lname'], ENT_QUOTES);
?>
'/>&nbsp;
   <b><?php 
xl('First', 'e');
?>
:</b> <input type='text' size='10' name='form_fname' class='inputtext'
     maxlength='50' value='<?php 
echo htmlspecialchars($row['fname'], ENT_QUOTES);
开发者ID:hompothgyorgy,项目名称:openemr,代码行数:31,代码来源:addrbook_edit.php

示例4: xl

<span class="title"><?php 
xl('Advance Directives', 'e');
?>
</span>
<br><br>
<form action='advancedirectives.php' method='post' onsubmit='return validate(this)' enctype="multipart/form-data">
      <table border=0 cellpadding=1 cellspacing=1>
      <?php 
echo "<tr><td class='required'>";
xl('Completed', 'e');
echo ":</td><td width=10></td><td class='text'>";
generate_form_field(array('data_type' => 1, 'field_id' => 'yesno', 'list_id' => 'yesno', 'empty_title' => 'SKIP'), $form_completedad);
echo "</td></tr><tr><td class='required'>";
xl('Last Reviewed', 'e');
echo ":</td><td width=10></td><td class='text'>";
generate_form_field(array('data_type' => 4, 'field_id' => 'adreviewed'), $form_adreviewed);
echo "<script language='JavaScript'>Calendar.setup({inputField:'form_adreviewed', ifFormat:'%Y-%m-%d', button:'img_adreviewed'});</script>";
echo "</td></tr>";
echo "<tr><td class=text colspan=2><br><input type=submit id=create value='" . xl('Save') . "' /> &nbsp; <input type=button id=cancel value='" . xl('Cancel') . "' /></td></tr>";
?>
      </table></form>
<div>
<?php 
$query = "SELECT id FROM categories WHERE name='Advance Directive'";
$myrow2 = sqlQuery($query);
if ($myrow2) {
    $parentId = $myrow2['id'];
    $query = "SELECT id, name FROM categories WHERE parent='{$parentId}'";
    $resNew1 = sqlStatement($query);
    while ($myrows3 = sqlFetchArray($resNew1)) {
        $categoryId = $myrows3['id'];
开发者ID:mindfeederllc,项目名称:openemr,代码行数:31,代码来源:advancedirectives.php

示例5: xl

    &nbsp;(<?php 
xl('leave blank if still active', 'e');
?>
)
  </td>
 </tr>

 <tr id='row_occurrence'>
  <td valign='top' nowrap><b><?php 
xl('Occurrence', 'e');
?>
:</b></td>
  <td>
   <?php 
// Modified 6/2009 by BM to incorporate the occurrence items into the list_options listings
generate_form_field(array('data_type' => 1, 'field_id' => 'occur', 'list_id' => 'occurrence', 'empty_title' => 'SKIP'), $irow['occurrence']);
?>
  </td>
 </tr>

 <tr id='row_classification'>
  <td valign='top' nowrap><b><?php 
xl('Classification', 'e');
?>
:</b></td>
  <td>
   <select name='form_classification'>
<?php 
foreach ($ISSUE_CLASSIFICATIONS as $key => $value) {
    echo "   <option value='{$key}'";
    if ($key == $irow['classification']) {
开发者ID:stephen-smith,项目名称:openemr,代码行数:31,代码来源:add_edit_issue.php

示例6: generate_form_field

:</b></td>
  <td>
<?php 
generate_form_field(array('data_type' => 1, 'field_id' => 'laterality', 'list_id' => 'proc_lat', 'description' => xl('Laterality of this procedure, if applicable')), $row['laterality']);
?>
  </td>
 </tr>

 <tr class='resonly'>
  <td width='1%' nowrap><b><?php 
echo xlt('Default Units');
?>
:</b></td>
  <td>
<?php 
generate_form_field(array('data_type' => 1, 'field_id' => 'units', 'list_id' => 'proc_unit', 'description' => xl('Optional default units for manual entry of results')), $row['units']);
?>
  </td>
 </tr>

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

示例7: xl

        echo $result3["subscriber_postal_code"];
        ?>
">
   <span class='required'<?php 
        if ($GLOBALS['omit_employers']) {
            echo " style='display:none'";
        }
        ?>
>
   <?php 
        xl('Country', 'e');
        ?>
: </span>
   <?php 
        // Modified 7/2009 by BM to incorporate data types
        generate_form_field(array('data_type' => $GLOBALS['country_data_type'], 'field_id' => 'i' . $i . 'subscriber_country', 'list_id' => $GLOBALS['country_list'], 'fld_length' => '10', 'max_length' => '63', 'edit_options' => 'C'), $result3['subscriber_country']);
        ?>
   <br />
   <span class=bold><?php 
        xl('Subscriber Phone', 'e');
        ?>
: 
   <input type='text' size='20' name='i<?php 
        echo $i;
        ?>
subscriber_phone' value='<?php 
        echo $result3["subscriber_phone"];
        ?>
' onkeyup='phonekeyup(this,mypcc)' />
   </span><br />
   <span class=bold><?php 
开发者ID:nickolasnikolic,项目名称:openemr,代码行数:31,代码来源:new_comprehensive.php

示例8: xlt

 echo "  <td class='bold'>" . xlt('DOB') . ":</td>\n";
 echo "  <td class='text'>" . text($row['DOB']) . "</td>\n";
 echo " </tr>\n";
 echo " <tr>\n";
 echo "  <td class='bold'>" . xlt('SSN') . ":</td>\n";
 echo "  <td class='text'>" . text($row['ss']) . "</td>\n";
 echo " </tr>\n";
 echo " <tr>\n";
 echo "  <td class='bold'>" . xlt('Current Location') . ":</td>\n";
 // Note that $current_location has already been html escaped
 echo "  <td class='text'>{$current_location}</td>\n";
 echo " </tr>\n";
 echo " <tr>\n";
 echo "  <td class='bold'>" . xlt('Check In To') . ":</td>\n";
 echo " <td class='text'>";
 generate_form_field(array('data_type' => 1, 'field_id' => 'newloc', 'list_id' => 'chartloc', 'empty_title' => ''), '');
 echo " </td>\n";
 echo " </tr>\n";
 echo " <tr>\n";
 echo "  <td class='bold'>" . xlt('Or Out To') . ":</td>\n";
 echo "  <td class='text'><select name='form_newuser' onchange='userSelect()'>\n";
 echo "   <option value=''></option>";
 $ures = sqlStatement("SELECT id, fname, mname, lname FROM users " . "WHERE username != '' AND active = 1 ORDER BY lname, fname, mname");
 while ($urow = sqlFetchArray($ures)) {
     echo "    <option value='" . attr($urow['id']) . "'";
     echo ">" . text($urow['lname']) . ', ' . text($urow['fname']) . ' ' . text($urow['mname']) . "</option>\n";
 }
 echo "  </select></td>\n";
 echo " </tr>\n";
 echo " <tr>\n";
 echo "  <td>&nbsp;</td>\n";
开发者ID:katopenzz,项目名称:openemr,代码行数:31,代码来源:chart_tracker.php

示例9: xlt

<br>
<form action='patient_data.php' name='patient_data' method='post' onsubmit='return top.restoreSession()'>
  <table border=0 cellpadding=1 cellspacing=1>
    <?php 
echo "<tr><td class='required'>";
echo xlt('Date/Time');
echo ":</td><td class='text'>";
echo "<input type='text' size='16' name='form_date' id='form_date' " . "value='" . attr($form_date) . "' " . "onkeyup='datekeyup(this,mypcc)' onblur='dateblur(this,mypcc)' " . "title='" . xla('yyyy-mm-dd hh:mm:ss') . "' />";
echo "<img src='../../pic/show_calendar.gif' align='absbottom' width='24' height='22'" . "id='img_date' border='0' alt='[?]' style='cursor:pointer'" . "title='" . xla('Click here to choose a date') . "' />";
echo "<script language='JavaScript'>Calendar.setup({inputField:'form_date', ifFormat:'%Y-%m-%d %H:%M:%S', button:'img_date', showsTime:'true'});</script>";
echo "</td></tr>";
echo "<tr><td class='required'>";
echo xlt('Completed');
echo ":</td><td class='text'>";
generate_form_field(array('data_type' => 1, 'field_id' => 'complete', 'list_id' => 'yesno', 'empty_title' => 'SKIP'), $form_complete ? $form_complete : "YES");
echo "</td></tr>";
echo "<tr><td class='bold'>";
echo xlt('Results/Details');
echo ":</td><td class='text'>";
echo "<textarea name='form_result' cols='40' rows='3'>";
echo attr($form_result);
echo "</textarea>";
echo "</td></tr>";
echo "</table>";
echo "<input type='hidden' name='form_category' value='" . attr($category) . "' />";
echo "<input type='hidden' name='form_item' value='" . attr($item) . "' />";
if (isset($entryID)) {
    echo "<input type='hidden' name='form_entryID' value='" . attr($entryID) . "' />";
}
?>
开发者ID:aaricpittman,项目名称:openemr,代码行数:30,代码来源:patient_data.php

示例10: xlt

                    align='absbottom' width='24' height='22' id='img_to_date'
                    border='0' alt='[?]' style='cursor: pointer'
                    title='<?php 
echo xlt('Click here to choose a date');
?>
'></td>
            </tr>

            <tr>
                <td class='label'><?php 
echo xlt('Status');
# status code drop down creation
?>
:</td>
                <td><?php 
generate_form_field(array('data_type' => 1, 'field_id' => 'apptstatus', 'list_id' => 'apptstat', 'empty_title' => 'All'), $_POST['form_apptstatus']);
?>
</td>
                <td><?php 
echo xlt('Category');
?>
:</td>
                <td>
                                    <select id="form_apptcat" name="form_apptcat">
                                        <?php 
$categories = fetchAppointmentCategories();
echo "<option value='ALL'>" . xlt("All") . "</option>";
while ($cat = sqlFetchArray($categories)) {
    echo "<option value='" . attr($cat['id']) . "'";
    if ($cat['id'] == $_POST['form_apptcat']) {
        echo " selected='true' ";
开发者ID:katopenzz,项目名称:openemr,代码行数:31,代码来源:patient_flow_board_report.php

示例11: foreach

   &nbsp;
   <select name='form_reviewed'>
<?php 
foreach (array('1' => xl('All'), '2' => xl('Reviewed'), '3' => xl('Received, not reviewed'), '4' => xl('Sent, not received'), '5' => xl('Not sent')) as $key => $value) {
    echo "<option value='{$key}'";
    if ($key == $form_reviewed) {
        echo " selected";
    }
    echo ">" . text($value) . "</option>\n";
}
?>
   </select>

   &nbsp;
<?php 
generate_form_field(array('data_type' => 10, 'field_id' => 'provider', 'empty_title' => '-- All Providers --'), $form_provider);
?>
  </td>
 </tr>
 <tr>
  <td class='text' align='center'>
   <input type='checkbox' name='form_patient' value='1'
    <?php 
if ($form_patient) {
    echo 'checked ';
}
?>
/>Current Patient Only

   &nbsp;
   <span title='<?php 
开发者ID:rakuun535,项目名称:YWC-EMR,代码行数:31,代码来源:list_reports.php

示例12: foreach

</tr>

<?php 
foreach ($l_arr as $layout_entry) {
    ?>
  <tr>
	<td style="width:180px;">
		<span class=text><?php 
    echo text(xl_layout_label($layout_entry['title']));
    ?>
: </span>
	</td>
	<td style="width:270px;">
                <?php 
    $entry_data = sqlQuery("SELECT `field_value` FROM `facility_user_ids` " . "WHERE `uid` = ? AND `facility_id` = ? AND `field_id` = ?", array($user_info['id'], $fac_info['id'], $layout_entry['field_id']));
    echo "<td><span class='text'>" . generate_form_field($layout_entry, $entry_data['field_value']) . "&nbsp;</td>";
    ?>
 
	</td>
  </tr>
<?php 
}
?>

</table>
</form>

<!-- include support for the list-add selectbox feature -->
<?php 
include $GLOBALS['fileroot'] . "/library/options_listadd.inc";
?>
开发者ID:katopenzz,项目名称:openemr,代码行数:31,代码来源:facility_user_admin.php

示例13: htmlspecialchars

		Calendar.setup({inputField:'dates', ifFormat:'%Y-%m-%d %H:%M:%S',
		button:'img_date', showsTime:true});
</script>
	</tr>
	<tr>
		<td><span class=text><?php 
echo htmlspecialchars(xl('Type of Disclosure'), ENT_NOQUOTES);
?>
: </span></TD>
		<td><?php 
if ($editlid) {
    //To incorporate the disclosure types  into the list_options listings
    generate_form_field(array('data_type' => 1, 'field_id' => 'disclosure_type', 'list_id' => 'disclosure_type', 'fld_length' => '10', 'max_length' => '63', 'empty_title' => 'SKIP'), $app_event);
} else {
    //To incorporate the disclosure types  into the list_options listings
    generate_form_field(array('data_type' => 1, 'field_id' => 'disclosure_type', 'list_id' => 'disclosure_type', 'fld_length' => '10', 'max_length' => '63', 'empty_title' => 'SKIP'), $title);
}
?>
		</td>
	</tr>
	<tr>
		<td><span class=text><?php 
echo htmlspecialchars(xl('Recipient of the Disclosure'), ENT_NOQUOTES);
?>
:
		</span></td>
		<td class='text'>
		<?php 
if ($editlid) {
    ?>
 <input type=entry name=recipient_name size=20 value="<?php 
开发者ID:bharathi26,项目名称:openemr,代码行数:31,代码来源:record_disclosure.php

示例14: generate_form_field

:</b></td>
  <td valign='top'>
<?php 
generate_form_field(array('data_type' => 1, 'field_id' => 'order_priority', 'list_id' => 'ord_priority'), $row['order_priority']);
?>
  </td>
 </tr>

 <tr>
  <td width='1%' valign='top' nowrap><b><?php 
xl('Status', 'e');
?>
:</b></td>
  <td valign='top'>
<?php 
generate_form_field(array('data_type' => 1, 'field_id' => 'order_status', 'list_id' => 'ord_status'), $row['order_status']);
?>
  </td>
 </tr>

 <tr>
  <td width='1%' valign='top' nowrap><b><?php 
xl('Clinical History', 'e');
?>
:</b></td>
  <td valign='top'>
   <input type='text' maxlength='255' name='form_clinical_hx' style='width:100%'
    class='inputtext' value='<?php 
echo attr($row['clinical_hx']);
?>
' />
开发者ID:mindfeederllc,项目名称:openemr,代码行数:31,代码来源:new.php

示例15: xl

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


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