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

PHP generate_form_field函数代码示例

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

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



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


示例16: 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


示例17: display_layout_tabs_data_editable


//.........这里部分代码省略.........
        $currvalue = '';
        $group_fields_query = sqlStatement("SELECT * FROM layout_options " . "WHERE form_id = ? AND uor > 0 AND group_name = ? " . "ORDER BY seq", array($formtype, $this_group));
        ?>

		<div class="tab <?php 
        echo $first ? 'current' : '';
        ?>
" id="tab_<?php 
        echo $group_name_esc;
        ?>
" >
			<table border='0' cellpadding='0'>

			<?php 
        while ($group_fields = sqlFetchArray($group_fields_query)) {
            $titlecols = $group_fields['titlecols'];
            $datacols = $group_fields['datacols'];
            $data_type = $group_fields['data_type'];
            $field_id = $group_fields['field_id'];
            $list_id = $group_fields['list_id'];
            $currvalue = '';
            if ($formtype == 'DEM') {
                if ($GLOBALS['athletic_team']) {
                    // Skip fitness level and return-to-play date because those appear
                    // in a special display/update form on this page.
                    if ($field_id === 'fitness' || $field_id === 'userdate1') {
                        continue;
                    }
                }
                if (strpos($field_id, 'em_') === 0) {
                    // Skip employer related fields, if it's disabled.
                    if ($GLOBALS['omit_employers']) {
                        continue;
                    }
                    $tmp = substr($field_id, 3);
                    if (isset($result2[$tmp])) {
                        $currvalue = $result2[$tmp];
                    }
                } else {
                    if (isset($result1[$field_id])) {
                        $currvalue = $result1[$field_id];
                    }
                }
            } else {
                if (isset($result1[$field_id])) {
                    $currvalue = $result1[$field_id];
                }
            }
            // Handle a data category (group) change.
            if (strcmp($this_group, $last_group) != 0) {
                $group_name = substr($this_group, 1);
                // totally skip generating the employer category, if it's disabled.
                if ($group_name === 'Employer' && $GLOBALS['omit_employers']) {
                    continue;
                }
                $last_group = $this_group;
            }
            // Handle starting of a new row.
            if ($titlecols > 0 && $cell_count >= $CPR || $cell_count == 0) {
                disp_end_row();
                echo "<tr>";
            }
            if ($item_count == 0 && $titlecols == 0) {
                $titlecols = 1;
            }
            // Handle starting of a new label cell.
            if ($titlecols > 0) {
                disp_end_cell();
                $titlecols_esc = htmlspecialchars($titlecols, ENT_QUOTES);
                echo "<td class='label' colspan='{$titlecols_esc}' ";
                echo ">";
                $cell_count += $titlecols;
            }
            ++$item_count;
            // Added 5-09 by BM - Translate label if applicable
            if ($group_fields['title']) {
                echo htmlspecialchars(xl_layout_label($group_fields['title']), ENT_NOQUOTES) . ":";
            } else {
                echo "&nbsp;";
            }
            // Handle starting of a new data cell.
            if ($datacols > 0) {
                disp_end_cell();
                $datacols_esc = htmlspecialchars($datacols, ENT_QUOTES);
                echo "<td class='text data' colspan='{$datacols_esc}'";
                echo ">";
                $cell_count += $datacols;
            }
            ++$item_count;
            echo generate_form_field($group_fields, $currvalue);
        }
        ?>

			</table>
		</div>

 	 <?php 
        $first = false;
    }
}
开发者ID:johnnytang24,项目名称:openemr,代码行数:101,代码来源:options.inc.php


示例18: text

    echo ">" . text($value) . "</option>\n";
}
?>
   </select>
  </td>
 </tr>

 <tr id='row_distributor'>
  <td valign='top' nowrap><b><?php 
echo xlt('Distributor');
?>
:</b></td>
  <td>
<?php 
// Address book entries for distributors.
generate_form_field(array('data_type' => 14, 'field_id' => 'distributor_id', 'list_id' => '', 'edit_options' => 'R', 'description' => xl('Address book entry for the distributor')), '');
?>
  </td>
 </tr>

 <tr id='row_sale_date'>
  <td valign='top' nowrap><b><?php 
echo xlt('Date');
?>
:</b></td>
  <td>
   <input type='text' size='10' name='form_sale_date' id='form_sale_date'
    value='<?php 
echo attr(date('Y-m-d'));
?>
'
开发者ID:katopenzz,项目名称:openemr,代码行数:31,代码来源:add_edit_lot.php


示例19: generate_form_field

?>
:</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('History order', 'e');
?>
:</b>
 <td valign='top'>
 <?php 
generate_form_field(array('data_type' => 1, 'field_id' => 'history_order', 'list_id' => 'boolean'), $row['history_order']);
?>
 </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']);
?>
' />
  </td>
开发者ID:juggernautsei,项目名称:openemr,代码行数:31,代码来源:new.php


示例20: htmlspecialchars

    ?>
'  />
   <input type='hidden' name='reply_to' id='reply_to' value='<?php 
    echo htmlspecialchars($reply_to, ENT_QUOTES);
    ?>
' />
   &nbsp; &nbsp;
   <b><?php 
    echo htmlspecialchars(xl('Status'), ENT_NOQUOTES);
    ?>
:</b>
    <?php 
    if ($form_message_status == "") {
        $form_message_status = 'New';
    }
    generate_form_field(array('data_type' => 1, 'field_id' => 'message_status', 'list_id' => 'message_status', 'empty_title' => 'SKIP', 'order_by' => 'title'), $form_message_status);
    ?>
  </td>
</tr>
<tr>
  <td class='text'>
   <b><?php 
    echo htmlspecialchars(xl('To'), ENT_QUOTES);
    ?>
:</b>
   <input type='textbox' name='assigned_to_text' id='assigned_to_text' size='40' readonly='readonly'
    value='<?php 
    echo htmlspecialchars(xl("Select Users From The Dropdown List"), ENT_QUOTES);
    ?>
' >
   <input type='hidden' name='assigned_to' id='assigned_to' >
开发者ID:juggernautsei,项目名称:openemr,代码行数:31,代码来源:messages.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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