本文整理汇总了PHP中erp_html_form_input函数的典型用法代码示例。如果您正苦于以下问题:PHP erp_html_form_input函数的具体用法?PHP erp_html_form_input怎么用?PHP erp_html_form_input使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了erp_html_form_input函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _e
<?php
$history = $employee->get_history();
?>
<?php
if (current_user_can('erp_manage_jobinfo')) {
?>
<h3><?php
_e('Employee Main Status', 'wp-erp');
?>
</h3>
<form action="" method="post">
<?php
erp_html_form_input(array('label' => __('Employee Status : ', 'wp-erp'), 'name' => 'employee_status', 'value' => $employee->erp->status, 'class' => 'select2', 'type' => 'select', 'options' => array(0 => __('- Select -', 'wp-erp')) + erp_hr_get_employee_statuses()));
?>
<input type="hidden" name="user_id" id="erp-employee-id" value="<?php
echo $employee->id;
?>
">
<input type="hidden" name="action" id="erp-employee-status-action" value="erp-hr-employee-status">
<?php
wp_nonce_field('wp-erp-hr-employee-update-nonce');
?>
<input type="submit" class="button" name="employee_update_status" value="<?php
esc_attr_e('Update', 'wp-erp');
?>
">
</form>
示例2: erp_html_form_input
</span>
</li>
</ul>
</li>
<li>
<ul class="erp-form-fields two-col block clearfix">
<li class="erp-form-field">
<?php
erp_html_form_input(array('label' => __('Payment Date', 'erp-accounting'), 'name' => 'issue_date', 'placeholder' => date('Y-m-d'), 'type' => 'text', 'required' => true, 'class' => 'erp-date-field'));
?>
</li>
<li class="erp-form-field">
<?php
erp_html_form_input(array('label' => __('Reference', 'erp-accounting'), 'name' => 'ref', 'type' => 'text', 'addon' => '#'));
?>
</li>
</ul>
</li>
</ul>
<?php
include dirname(dirname(__FILE__)) . '/common/transaction-table.php';
?>
<?php
include dirname(dirname(__FILE__)) . '/common/memo.php';
?>
<input type="hidden" name="field_id" value="0">
示例3: _e
<div class="note-tab-wrap">
<h3><?php
_e('Notes', 'wp-erp');
?>
</h3>
<form action="" class="note-form" method="post">
<?php
erp_html_form_input(array('name' => 'note', 'required' => true, 'placeholder' => __('Add a note...', 'wp-erp'), 'type' => 'textarea', 'custom_attr' => array('rows' => 3, 'cols' => 30)));
?>
<input type="hidden" name="user_id" value="<?php
echo $employee->id;
?>
">
<input type="hidden" name="action" id="erp-employee-action" value="erp-hr-employee-new-note">
<?php
wp_nonce_field('wp-erp-hr-employee-nonce');
?>
<?php
submit_button(__('Add Note', 'wp-erp'), 'primary');
?>
</form>
<?php
$notes = $employee->get_notes();
if ($notes) {
?>
<ul class="erp-list notes-list">
<?php
示例4: erp_crm_get_social_field
<?php
$social_field = erp_crm_get_social_field();
?>
<div class="customer-social-wrap">
<?php
foreach ($social_field as $social_key => $social_value) {
?>
<div class="row">
<?php
erp_html_form_input(array('label' => $social_value['title'], 'name' => $social_key, 'value' => "{{{ data.social_field.{$social_key} }}}", 'id' => 'erp-customer-social' . $social_key, 'class' => 'erp-customer-social' . $social_key));
?>
</div>
<?php
}
?>
<input type="hidden" name="customer_id" id="erp-customer-id" value="{{ data.customer_id }}">
<input type="hidden" name="action" id="erp-customer-social" value="erp-crm-customer-social">
<?php
wp_nonce_field('wp-erp-crm-customer-social-nonce');
?>
</div>
示例5: erp_html_show_notice
if (isset($_GET['error']) && array_key_exists($_GET['error'], $errors)) {
erp_html_show_notice($errors[$_GET['error']], 'error');
}
?>
<form action="" method="post">
<ul class="erp-list separated">
<?php
erp_html_form_input(array('label' => __('Assignment', 'wp-erp'), 'name' => 'assignment_to', 'type' => 'checkbox', 'help' => __('Assign to multiple employees', 'wp-erp'), 'tag' => 'li'));
erp_html_form_input(array('label' => __('Leave Policy', 'wp-erp'), 'name' => 'leave_policy', 'type' => 'select', 'class' => 'chosen-select', 'tag' => 'li', 'required' => true, 'options' => array(0 => __('- Select -', 'wp-erp')) + erp_hr_leave_get_policies_dropdown_raw()));
erp_html_form_input(array('label' => __('Leave Period', 'wp-erp'), 'name' => 'leave_period', 'type' => 'select', 'tag' => 'li', 'required' => true, 'class' => 'chosen-select', 'options' => array($cur_year => sprintf('%s - %s', erp_format_date('01-01-' . $cur_year), erp_format_date('31-12-' . $cur_year)), $cur_year + 1 => sprintf('%s - %s', erp_format_date('01-01-' . ($cur_year + 1)), erp_format_date('31-12-' . ($cur_year + 1))))));
erp_html_form_input(array('label' => __('Employee', 'wp-erp'), 'name' => 'single_employee', 'type' => 'select', 'class' => 'chosen-select show-if-single', 'tag' => 'li', 'options' => erp_hr_get_employees_dropdown_raw()));
erp_html_form_input(array('label' => __('Location', 'wp-erp'), 'name' => 'location', 'type' => 'select', 'class' => 'chosen-select show-if-multiple', 'tag' => 'li', 'options' => erp_company_get_location_dropdown_raw(__('All Locations', 'wp-erp'))));
erp_html_form_input(array('label' => __('Department', 'wp-erp'), 'name' => 'department', 'type' => 'select', 'class' => 'chosen-select show-if-multiple', 'tag' => 'li', 'options' => erp_hr_get_departments_dropdown_raw(__('All Departments', 'wp-erp'))));
erp_html_form_input(array('label' => __('Comment', 'wp-erp'), 'name' => 'comment', 'type' => 'textarea', 'tag' => 'li', 'placeholder' => __('Optional Comment', 'wp-erp')));
?>
</ul>
<input type="hidden" name="erp-action" value="hr-leave-assign-policy">
<?php
wp_nonce_field('erp-hr-leave-assign');
?>
<?php
submit_button(__('Assign Policies', 'wp-erp'), 'primary');
?>
</form>
<script type="text/javascript">
jQuery(function($) {
示例6: leave_assign_employee_policy
/**
* Fetch assigning policy dropdown html
* according to employee id
*
* @since 0.1
*
* @return html|json
*/
public function leave_assign_employee_policy()
{
$this->verify_nonce('wp-erp-hr-nonce');
$employee_id = isset($_POST['employee_id']) && $_POST['employee_id'] ? intval($_POST['employee_id']) : false;
if (!$employee_id) {
$this->send_error('Please select employee', 'wp-erp');
}
$policies = erp_hr_get_assign_policy_from_entitlement($employee_id);
if ($policies) {
ob_start();
erp_html_form_input(array('label' => __('Leave Type', 'wp-erp'), 'name' => 'leave_policy', 'id' => 'erp-hr-leave-req-leave-policy', 'value' => '', 'required' => true, 'type' => 'select', 'options' => array('' => __('- Select -', 'wp-erp')) + $policies));
$content = ob_get_clean();
return $this->send_success($content);
}
return $this->send_error('No policy found. Can not apply any leave', 'wp-erp');
}
示例7: erp_html_form_input
<div class="status-form-wrap">
<div class="row">
<?php
erp_html_form_input(array('label' => __('Date', 'wp-erp'), 'name' => 'date', 'value' => date('Y-m-d', current_time('timestamp')), 'required' => true, 'class' => 'erp-date-field'));
?>
</div>
<div class="row">
<?php
erp_html_form_input(array('label' => __('Employment Status', 'wp-erp'), 'name' => 'status', 'value' => '', 'type' => 'select', 'options' => array(0 => __('- Select -', 'wp-erp')) + erp_hr_get_employee_types()));
?>
</div>
<div class="row">
<?php
erp_html_form_input(array('label' => __('Comment', 'wp-erp'), 'name' => 'comment', 'value' => '', 'placeholder' => __('Optional comment', 'wp-erp'), 'type' => 'textarea', 'custom_attr' => array('rows' => 4, 'cols' => 25)));
?>
</div>
<?php
wp_nonce_field('employee_update_employment');
?>
<input type="hidden" name="action" id="status-action" value="erp-hr-emp-update-status">
<input type="hidden" name="employee_id" id="emp-id" value="{{ data.id }}">
</div>
示例8: erp_html_form_input
<?php
erp_html_form_input(array('label' => __('Invoice Date', 'erp-accounting'), 'name' => 'issue_date', 'placeholder' => date('Y-m-d'), 'type' => 'text', 'required' => true, 'class' => 'erp-date-field'));
?>
</li>
<li class="erp-form-field">
<?php
erp_html_form_input(array('label' => __('Due Date', 'erp-accounting'), 'name' => 'due_date', 'placeholder' => date('Y-m-d'), 'type' => 'text', 'required' => true, 'class' => 'erp-date-field'));
?>
</li>
</ul>
</li>
<li class="erp-form-field">
<?php
erp_html_form_input(array('label' => __('Billing Address', 'erp-accounting'), 'name' => 'billing_address', 'placeholder' => '', 'type' => 'textarea', 'custom_attr' => ['rows' => 3, 'cols' => 30]));
?>
</li>
</ul>
<?php
include dirname(dirname(__FILE__)) . '/common/transaction-table.php';
?>
<?php
include dirname(dirname(__FILE__)) . '/common/memo.php';
?>
<input type="hidden" name="field_id" value="0">
<input type="hidden" name="account_id" value="<?php
echo $accounts_receivable_id;
示例9: erp_html_form_input
<div class="row">
<?php
erp_html_form_input(array('label' => __('Work Quality', 'wp-erp'), 'name' => 'work_quality', 'value' => '', 'class' => 'erp-hrm-select2', 'type' => 'select', 'id' => 'performance_work_quality', 'options' => array(0 => __('- Select -', 'wp-erp')) + erp_performance_rating()));
?>
</div>
<div class="row">
<?php
erp_html_form_input(array('label' => __('Attendence/Punctuality', 'wp-erp'), 'name' => 'attendance', 'value' => '', 'class' => 'erp-hrm-select2', 'type' => 'select', 'id' => 'performance_attendance', 'options' => array(0 => __('- Select -', 'wp-erp')) + erp_performance_rating()));
?>
</div>
<div class="row">
<?php
erp_html_form_input(array('label' => __('Communication/Listening', 'wp-erp'), 'name' => 'communication', 'value' => '', 'class' => 'erp-hrm-select2', 'type' => 'select', 'id' => 'performance_communication', 'options' => array(0 => __('- Select -', 'wp-erp')) + erp_performance_rating()));
?>
</div>
<div class="row">
<?php
erp_html_form_input(array('label' => __('Dependablity', 'wp-erp'), 'name' => 'dependablity', 'value' => '', 'class' => 'erp-hrm-select2', 'type' => 'select', 'id' => 'performance_dependablity', 'options' => array(0 => __('- Select -', 'wp-erp')) + erp_performance_rating()));
?>
</div>
<?php
wp_nonce_field('employee_update_performance');
?>
<input type="hidden" name="type" value="reviews">
<input type="hidden" name="action" id="performance-reviews-action" value="erp-hr-emp-update-performance-reviews">
<input type="hidden" name="employee_id" id="emp-id" value="{{ data.id }}">
</div>
示例10: erp_html_form_input
<li>
<?php
erp_html_form_input(array('label' => __('Twitter', 'wp-erp'), 'name' => 'social[twitter]', 'value' => '{{ data.social.twitter }}'));
?>
</li>
<li>
<?php
erp_html_form_input(array('label' => __('Google Plus', 'wp-erp'), 'name' => 'social[googleplus]', 'value' => '{{ data.social.googleplus }}'));
?>
</li>
<li>
<?php
erp_html_form_input(array('label' => __('Linkedin', 'wp-erp'), 'name' => 'social[linkedin]', 'value' => '{{ data.social.linkedin }}'));
?>
</li>
<?php
do_action('erp-crm-customer-form-social-profile');
?>
</ol>
</fieldset>
<?php
do_action('erp-crm-customer-form-bottom');
?>
示例11: _e
position: relative;
top: -4px;
}
</style>
<div class="wrap erp-hr-calendar-wrap">
<h1><?php
_e('Calendar', 'wp-erp');
?>
</h1>
<div class="tablenav top erp-calendar-filter">
<form method="post" action="">
<?php
erp_html_form_input(array('name' => 'department', 'value' => isset($_GET['department']) ? $_GET['department'] : '', 'class' => 'erp-hrm-select2-add-more erp-hr-dept-drop-down', 'custom_attr' => array('data-id' => 'erp-new-dept'), 'type' => 'select', 'options' => erp_hr_get_departments_dropdown_raw()));
erp_html_form_input(array('name' => 'designation', 'value' => isset($_GET['designation']) ? $_GET['designation'] : '', 'class' => 'erp-hrm-select2-add-more erp-hr-desi-drop-down', 'custom_attr' => array('data-id' => 'erp-new-designation'), 'type' => 'select', 'options' => erp_hr_get_designation_dropdown_raw()));
?>
<input type="submit" class="button" name="erp_leave_calendar_filter" value="<?php
_e('Filter', 'wp-erp');
?>
">
</form>
</div>
<div id="erp-hr-calendar"></div>
</div>
<script>
;jQuery(document).ready(function($) {
$('#erp-hr-calendar').fullCalendar({
header: {
示例12: extra_tablenav
/**
* Filters
*
* @param string $which
*
* @return void
*/
public function extra_tablenav($which)
{
if ('top' == $which) {
echo '<div class="alignleft actions">';
$start_date = '';
$end_date = '';
$type = '';
$form_type = '';
if (isset($_REQUEST['start_date']) && !empty($_REQUEST['start_date'])) {
$start_date = $_REQUEST['start_date'];
}
if (isset($_REQUEST['end_date']) && !empty($_REQUEST['end_date'])) {
$end_date = $_REQUEST['end_date'];
}
if (isset($_REQUEST['type']) && !empty($_REQUEST['type'])) {
$type = $_REQUEST['type'];
}
if (isset($_REQUEST['form_type']) && !empty($_REQUEST['form_type'])) {
$form_type = $_REQUEST['form_type'];
}
erp_html_form_input(['name' => 'type', 'value' => $type, 'type' => 'select', 'options' => ['' => __('All Types', 'erp-accounting'), 'sales' => __('Sales', 'erp-accounting'), 'expense' => __('Expense', 'erp-accounting'), 'journal' => __('Journal Entries', 'erp-accounting')], 'placeholder' => __('Start Date', 'erp-accounting')]);
erp_html_form_input(['name' => 'start_date', 'class' => 'erp-date-field', 'value' => $start_date, 'placeholder' => __('Start Date', 'erp-accounting')]);
erp_html_form_input(['name' => 'end_date', 'class' => 'erp-date-field', 'value' => $end_date, 'placeholder' => __('End Date', 'erp-accounting')]);
submit_button(__('Filter'), 'button', 'submit_filter_sales', false);
echo '</div>';
}
}
示例13: erp_html_form_input
<li class="erp-form-field row-street-1">
<?php
erp_html_form_input(array('label' => __('Street', 'erp-accounting'), 'name' => 'street_1', 'id' => 'street_1', 'required' => false, 'type' => 'text', 'placeholder' => __('Street', 'erp-accounting'), 'class' => 'regular-text', 'value' => isset($item->street_1) ? $item->street_1 : ''));
?>
</li>
<li class="erp-form-field row-city">
<?php
erp_html_form_input(array('label' => __('City', 'erp-accounting'), 'name' => 'city', 'id' => 'city', 'required' => false, 'type' => 'text', 'placeholder' => __('City/Town', 'erp-accounting'), 'class' => 'regular-text', 'value' => isset($item->city) ? $item->city : ''));
?>
</li>
<li class="erp-form-field row-state">
<?php
erp_html_form_input(array('label' => __('State', 'erp-accounting'), 'name' => 'state', 'id' => 'state', 'required' => false, 'type' => 'text', 'placeholder' => __('State/Province', 'erp-accounting'), 'class' => 'regular-text', 'value' => isset($item->state) ? $item->state : ''));
?>
</li>
<li class="erp-form-field row-postal-code">
<?php
erp_html_form_input(array('label' => __('Post Code', 'erp-accounting'), 'name' => 'postal_code', 'id' => 'postal_code', 'required' => false, 'type' => 'text', 'placeholder' => __('Postal Code', 'erp-accounting'), 'class' => 'regular-text', 'value' => isset($item->postal_code) ? $item->postal_code : ''));
?>
</li>
<li class="erp-form-field row-country">
<?php
erp_html_form_input(array('label' => __('Country', 'erp-accounting'), 'name' => 'country', 'id' => 'country', 'required' => false, 'type' => 'text', 'placeholder' => __('Country', 'erp-accounting'), 'class' => 'regular-text', 'value' => isset($item->country) ? $item->country : ''));
?>
</li>
<li class="erp-form-field row-currency">
<?php
erp_html_form_input(array('label' => __('User Currency', 'erp-accounting'), 'name' => 'currency', 'id' => 'currency', 'required' => false, 'type' => 'select', 'options' => erp_get_currencies(), 'value' => isset($item->currency) ? $item->currency : ''));
?>
</li>
</ul>
示例14: extra_tablenav
/**
* Filters
*
* @param string $which
*
* @return void
*/
public function extra_tablenav($which)
{
if ('top' == $which) {
echo '<div class="alignleft actions">';
$start_date = '';
$end_date = '';
if (isset($_REQUEST['start_date']) && !empty($_REQUEST['start_date'])) {
$start_date = $_REQUEST['start_date'];
}
if (isset($_REQUEST['end_date']) && !empty($_REQUEST['end_date'])) {
$end_date = $_REQUEST['end_date'];
}
$all_types = $this->get_form_types();
$types = [];
foreach ($all_types as $key => $type) {
$types[$key] = $type['label'];
}
erp_html_form_input(['name' => 'form_type', 'type' => 'select', 'options' => ['' => __('All Types', 'erp-accounting')] + $types]);
erp_html_form_input(['name' => 'user_id', 'type' => 'hidden', 'class' => 'erp-ac-customer-search', 'placeholder' => __('Search for Customer', 'erp-accounting')]);
erp_html_form_input(['name' => 'start_date', 'class' => 'erp-date-field', 'value' => $start_date, 'placeholder' => __('Start Date', 'erp-accounting')]);
erp_html_form_input(['name' => 'end_date', 'class' => 'erp-date-field', 'value' => $end_date, 'placeholder' => __('End Date', 'erp-accounting')]);
submit_button(__('Filter'), 'button', 'submit_filter_sales', false);
echo '</div>';
}
}
示例15: erp_html_form_input
erp_html_form_input(array('type' => 'hidden', 'name' => 'line_unit_price[]', 'value' => '0'));
?>
<?php
erp_html_form_input(array('type' => 'hidden', 'name' => 'line_discount[]', 'value' => '0'));
?>
</td>
</tr>
<?php
$total_due = $result['due'] + $total_due;
}
?>
</tbody>
<tfoot>
<tr>
<th> </th>
<th class="align-right"></th>
<th class="col-amount"><?php
_e('Total', 'erp-accounting');
?>
</th>
<th class="erp-ac-total-due col-amount">
<?php
erp_html_form_input(array('type' => 'number', 'name' => 'price_total', 'value' => $total_due, 'class' => 'erp-ac-total-due', 'custom_attr' => array('readonly' => '')));
?>
</th>
</tr>
</tfoot>
</table>