本文整理汇总了PHP中required_field函数的典型用法代码示例。如果您正苦于以下问题:PHP required_field函数的具体用法?PHP required_field怎么用?PHP required_field使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了required_field函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: comment_text_field
/**
* Outputs a text field and associated label.
*
* Used in the comments reply form to reduce duplication and clean up the
* template. Adds a wrapper div around the label and input field for ease of
* styling.
*
* @since 2.4
* @uses required_field()
*
* @param string $field
* @param string $label
* @param string $value
* @param boolean $required
* @param integer $size
*/
function comment_text_field($field, $label, $value = '', $required = false, $size = 20)
{
?>
<div class="text-wrap <?php
echo "{$field}-wrap";
?>
">
<label for="<?php
echo $field;
?>
"><?php
printf($label, required_field($required));
?>
</label>
<input class="<?php
echo comment_field_classes();
?>
" type="text" name="<?php
echo $field;
?>
" id="<?php
echo $field;
?>
" value="<?php
echo $value;
?>
" size="<?php
echo $size;
?>
" />
</div>
<?php
}
示例2: lang
<?if($success===False){?>
<div class="error">
<?php
echo lang('SAVE_SYSTEM_ERROR');
?>
</div>
<?}?>
<?if($success===True){?>
<div class="success">
<?php
echo lang('SAVE_SYSTEM_SUCCESS');
?>
</div>
<?}?>
<div class="column span-4">
<?php
echo form_label(lang('TYPE') . required_field(), 'type_name');
?>
</div>
<div class="column span-20 last">
<?php
echo form_input('type_name', set_value('type_name', $ds->type_name), 'id="type_name" class="text part-5" ');
?>
</div>
<div class="column span-4">
<?php
echo form_label(lang('DESCR'), 'descr');
?>
</div>
<div class="column span-20 last">
示例3: form_label
</div>
<div class="column span-4">
<?php
echo form_label(lang('LEFT_WORD'), 'left_word');
?>
</div>
<div class="column span-20 last">
<?php
echo form_input('left_word', set_value('left_word', $ds->left_word), 'id="left_word" class="text part"');
?>
</div>
<div class="column span-4">
<?php
echo form_label(lang('RIGHT_WORD') . required_field(), 'right_word');
?>
</div>
<div class="column span-20 last">
<?php
echo form_input('right_word', set_value('right_word', $ds->right_word), 'id="right_word" class="text part"');
?>
</div>
<div class="column span-4">
<?php
echo form_label(lang('ARCHIVE'), 'archive');
?>
</div>
<div class="column span-20 last">
<?php
示例4: form_label
', spinnerImage:''});
</script>
</div>
<div class="column span-12 last fr">
<?php
echo form_label(lang('PRIORITY') . get_field_help('tasks', 'PRIORITY'), 'priority_task');
?>
<br>
<?php
echo form_dropdown('priority_tasks', array(2 => lang('HIGH'), 1 => lang('MEDIUM'), 0 => lang('LOW')), set_value('priority', ''), 'id="priority_task" class="text"');
?>
</div>
</div>
<div class="column span-24 last">
<?php
echo form_label(lang('DESCR_TASK') . get_field_help('tasks', 'DESCR_TASK') . required_field(), 'descr');
?>
<br>
<div style="margin:0px;padding-right:4px;">
<?php
echo form_textarea('descr_tasks', set_value('descr_tasks', ''), 'id="descr_task" style="width: 100%;"');
?>
</div>
</div>
<div class="column span-24 last tools" style="margin-top: 5px;">
<input type="submit" value="<?php
echo lang('SAVE');
?>
" class="button" id="submit_tasks" name="submit" onclick="return add_task();">
</div>
示例5: void
echo $r['filial'];
?>
); void(0);"><?php
echo img('public/img/icons/delete_inline.gif', 'border="0"');
?>
</a>
</td>
</tr>
<? } ?>
</table>
</div>
<? } ?>
<div class="column span-4">
<?php
echo form_label(lang('FILIAL') . required_field(), 'filial_name');
?>
</div>
<div class="column span-10">
<?php
echo get_filials_vp(set_value('_filials_rid', ''));
?>
</div>
<div class="column span-10 last">
<?php
echo form_button('all_filials', lang('ALL_FILIALS'), 'id="all_filials" class="button"');
?>
</div>
<div class="clear"></div>
示例6: form_input
</div>
<div class="column span-8">
<?php
echo form_input('departure', date_conv(set_value('departure', date('Y-m-d'))), 'id="departure" class="text date-entry"');
?>
<script type="text/javascript">
$('#departure').dateEntry({dateFormat: '<?php
echo $this->config->item('crm_date_entry_format');
?>
', spinnerImage:''});
</script>
</div>
<div class="column span-4">
<?php
echo form_label(lang('ARRIVAL') . required_field(), 'arrival');
?>
</div>
<div class="column span-8 last">
<?php
echo form_input('arrival', date_conv(set_value('arrival', date('Y-m-d'))), 'id="arrival" class="text date-entry"');
?>
<script type="text/javascript">
$('#arrival').dateEntry({dateFormat: '<?php
echo $this->config->item('crm_date_entry_format');
?>
', spinnerImage:''});
</script>
</div>
<div class="column span-24 last controls">
示例7: form_label
?>
</div>
<?}?>
<div class="column span-4">
<?php
echo form_label(lang('CODE') . required_field(), 'code');
?>
</div>
<div class="column span-20 last">
<?php
echo form_input('code', set_value('code', ''), 'id="code" class="text part"');
?>
</div>
<div class="column span-4">
<?php
echo form_label(lang('NAME') . required_field(), 'hotelcat_name');
?>
</div>
<div class="column span-20 last">
<?php
echo form_input('hotelcat_name', set_value('hotelcat_name', ''), 'id="hotelcat_name" class="text part-5"');
?>
</div>
<div class="column span-4">
<?php
echo form_label(lang('ARCHIVE'), 'archive');
?>
</div>
<div class="column span-20 last">
<?php
示例8: lang
<?if($success===True){?>
<div class="success">
<?php
echo lang('SAVE_SYSTEM_SUCCESS');
?>
</div>
<?}?>
<div class="column span-4">
<?php
echo form_label(lang('COMPANY') . required_field(), 'company_name');
?>
</div>
<div class="column span-20 last">
<?php
echo form_input('company_name', set_value('company_name', $ds->company_name), 'id="company_name" class="text part-5"');
?>
</div>
<div class="column span-4">
<?php
echo form_label(lang('COMPANY_TYPE') . required_field(), 'company_type');
?>
</div>
<div class="column span-20 last">
<?php
echo form_dropdown('company_type', get_advcompaniestypes_list(), set_value('company_type', $ds->company_type), 'id="company_type" class="text" ');
?>
示例9: form_label
?>
</div>
<?}?>
<div class="column span-4">
<?php
echo form_label(lang('NUM') . required_field(), 'num');
?>
</div>
<div class="column span-20 last">
<?php
echo form_input('num', set_value('num', $ds->num), 'id="num" class="text part-3"');
?>
</div>
<div class="column span-4">
<?php
echo form_label(lang('DISCOUNT') . required_field(), 'discount');
?>
</div>
<div class="column span-20 last">
<?php
echo form_input('discount', set_value('discount', $ds->discount), 'id="discount" class="text part"');
?>
</div>
<div class="column span-4">
<?php
echo form_label(lang('ARCHIVE'), 'archive');
?>
</div>
<div class="column span-20 last">
<?php
示例10: lang
?>
</div>
<?}?>
<?if($success===False){?>
<div class="error">
<?php
echo lang('SAVE_SYSTEM_ERROR');
?>
</div>
<?}?>
<?if($success===True){?>
<div class="success">
<?php
echo lang('SAVE_SYSTEM_SUCCESS');
?>
</div>
<?}?>
<div class="column span-4">
<?php
echo form_label(lang('POSITION') . required_field(), '_positions_rid');
?>
</div>
<div class="column span-8">
<?php
echo form_dropdown('_positions_rid', get_positions_list(), set_value('_positions_rid', ''), 'id="_positions_rid" class="text" ');
?>
</div>
<div class="column span-4">
<?php
echo form_label(lang('MODULE'), '_modules_rid');
?>
示例11: lang
<div class="success">
<?php
echo lang('SAVE_SYSTEM_SUCCESS');
?>
</div>
<?}?>
<div class="column span-4">
<?php
echo form_label(lang('SOURCE') . required_field(), 'source_name');
?>
</div>
<div class="column span-20 last">
<?php
echo form_input('source_name', set_value('source_name', ''), 'id="source_name" class="text part-5" ');
?>
</div>
<div class="column span-4">
<?php
echo form_label(lang('TYPE') . required_field(), '_advertisestypes_rid');
?>
</div>
<div class="column span-20 last">
<?php
echo form_dropdown('_advertisestypes_rid', get_advertisestypes_list(), set_value('_advertisestypes_rid', ''), 'id="_advertisestypes_rid" class="text" ');
?>
示例12: form_input
?>
</div>
<div class="column span-21">
<?php
echo form_input('date_report_from', set_value('date_report_from', ''), 'id="date_report_from" class="text date-entry"');
?>
<script type="text/javascript">
$('#date_report_from').dateEntry({dateFormat: '<?php
echo $this->config->item('crm_date_entry_format');
?>
', spinnerImage:''});
</script>
</div>
<div class="column span-3">
<?php
echo form_label(lang('DATE_REPORT_TO') . required_field(), 'date_report_to');
?>
</div>
<div class="column span-21">
<?php
echo form_input('date_report_to', set_value('date_report_to', ''), 'id="date_report_to" class="text date-entry"');
?>
<script type="text/javascript">
$('#date_report_to').dateEntry({dateFormat: '<?php
echo $this->config->item('crm_date_entry_format');
?>
', spinnerImage:''});
</script>
</div>
<div class="column span-3">
<?php
示例13: form_input
<?php
echo form_input('s_name', set_value('s_name', ''), 'id="s_name" class="text part-5"');
?>
</div>
<div class="column span-4">
<?php
echo form_label(lang('CLIENT') . get_field_help('aircalls', 'CLIENT'), '_clients_rid');
?>
</div>
<div class="column span-20 last">
<?php
echo get_clients_vp(set_value('_clients_rid', null));
?>
</div>
<div class="column span-4">
<?php
echo form_label(lang('PHONES') . required_field(), 'phones');
?>
</div>
<div class="column span-20 last">
<?php
echo form_input('phones', set_value('phones', ''), 'id="phones" class="text part-5"');
?>
</div>
<div class="column span-4">
<?php
echo form_label(lang('EMAIL'), 'email');
?>
</div>
<div class="column span-20 last">
示例14: base_url
buttonImageOnly: true, buttonImage: '<?php
echo base_url();
?>
public/js/jquery.datapick.package-3.6.1/calendar.gif'});
</script>
</div>
<div class="column span-4">
<?php
echo form_label(lang('EDATE'), 'edate');
?>
</div>
<div class="column span-20 last">
<?php
echo form_input('edate', set_value('edate', $ds->edate), 'id="edate" class="text" readonly="readonly" style="width:90px;"');
?>
<script type="text/javascript">
$('#edate').datepick({showOn: 'button', yearRange: '-60:+60',
buttonImageOnly: true, buttonImage: '<?php
echo base_url();
?>
public/js/jquery.datapick.package-3.6.1/calendar.gif'});
</script>
</div>
<div class="column span-4">
<?php
echo form_label(lang('NAL_NUM'), 'nal_number');
?>
</div>
<div class="column span-20">
<?php
echo form_input('nal_number', set_value('nal_number', $ds->nal_number), 'id="nal_number" class="text" style="width: 150px;"');
示例15: form_label
<div class="column span-4">
<?php
echo form_label(lang('COUNTRY') . get_field_help('calls', 'COUNTRY'), 'country_name');
?>
</div>
<div class="column span-8">
<?php
echo form_dropdown('_countries_rid', get_countries_list(), null, 'id="_countries_rid" class="text" ');
?>
</div>
<div class="column span-4">
<?php
echo form_label(lang('CUROURT') . get_field_help('calls', 'CUROURT'), 'curourt_name');
?>
</div>
<div class="column span-8 last">
<?php
echo get_curourts_vp(set_value('_curourts_rid', null));
?>
</div>
<div class="column span-4">
</div>
<div class="column span-8">
<input type="button" value="<?php
echo lang('ADD_COUNTRY_IN_LIST');
?>
" class="button" id="add_country" name="add_country">
</div>