本文整理汇总了PHP中erp_html_form_input函数的典型用法代码示例。如果您正苦于以下问题:PHP erp_html_form_input函数的具体用法?PHP erp_html_form_input怎么用?PHP erp_html_form_input使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了erp_html_form_input函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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>
开发者ID:ediamin,项目名称:wp-erp,代码行数:30,代码来源:tab-job.php
示例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">
开发者ID:asaquzzaman,项目名称:accounting,代码行数:31,代码来源:payment-voucher.php
示例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
开发者ID:nizamuddin,项目名称:wp-erp,代码行数:31,代码来源:tab-notes.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>
开发者ID:ediamin,项目名称:wp-erp,代码行数:23,代码来源:customer-social.php
示例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($) {
开发者ID:nizamuddin,项目名称:wp-erp,代码行数:31,代码来源:leave-entitlements.php
示例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');
}
开发者ID:ediamin,项目名称:wp-erp,代码行数:24,代码来源:class-ajax.php
示例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>
开发者ID:nizamuddin,项目名称:wp-erp,代码行数:25,代码来源:employment-status.php
示例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;
开发者ID:asaquzzaman,项目名称:accounting,代码行数:31,代码来源:invoice-new.php
示例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>
开发者ID:ediamin,项目名称:wp-erp,代码行数:31,代码来源:performance-reviews.php
示例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');
?>
开发者ID:ediamin,项目名称:wp-erp,代码行数:29,代码来源:new-customer.php
示例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: {
开发者ID:ediamin,项目名称:wp-erp,代码行数:31,代码来源:calendar.php
示例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>';
}
}
开发者ID:asaquzzaman,项目名称:accounting,代码行数:34,代码来源:class-journal-transactions-list-table.php
示例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>
开发者ID:asaquzzaman,项目名称:accounting,代码行数:31,代码来源:user-form-rows.php
示例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>';
}
}
开发者ID:asaquzzaman,项目名称:accounting,代码行数:32,代码来源:class-transaction-list-table.php
示例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>
开发者ID:asaquzzaman,项目名称:accounting,代码行数:31,代码来源:bank-ransfer-form.php
示例16: erp_html_form_input
<div class="row">
<?php
erp_html_form_input(array('label' => __('Start Date', 'wp-erp'), 'name' => 'start_date', 'value' => '{{ data.start_date }}', 'id' => 'erp-hr-holiday-start', 'required' => true, 'class' => 'erp-leave-date-picker-from'));
?>
</div>
<div class="row">
<?php
erp_html_form_input(array('label' => __('Range', 'wp-erp'), 'name' => 'range', 'value' => '{{ data.range }}', 'id' => 'erp-hr-holiday-range', 'help' => __('Enable', 'wp-erp'), 'type' => 'checkbox', 'class' => 'erp-hr-holiday-date-range'));
?>
</div>
<div class="row">
<?php
erp_html_form_input(array('label' => __('End Date', 'wp-erp'), 'name' => 'end_date', 'id' => 'erp-hr-holiday-end', 'value' => '{{ data.end_date }}', 'class' => 'erp-leave-date-picker-to'));
?>
</div>
<div class="row">
<?php
erp_html_form_input(array('type' => 'textarea', 'label' => __('Description', 'wp-erp'), 'name' => 'description', 'id' => 'erp-hr-holiday-description', 'value' => '{{ data.description }}', 'class' => 'erp-hr-leave-holiday-description'));
?>
</div>
<?php
wp_nonce_field('erp-leave-holiday');
?>
<input type="hidden" name="action" id="erp-hr-holiday-action" value="erp_hr_holiday_create">
<input type="hidden" name="holiday_id" id="erp-hr-holiday-id" value="{{ data.id }}">
</div>
开发者ID:ediamin,项目名称:wp-erp,代码行数:30,代码来源:holiday.php
示例17: erp_html_form_input
<?php
erp_html_form_input(array('label' => __('Job Title', 'wp-erp'), 'name' => 'job_title', 'value' => '{{ data.job_title }}', 'required' => true, 'placeholder' => __('Project Manager', 'wp-erp')));
?>
</div>
<div class="row">
<?php
erp_html_form_input(array('label' => __('From', 'wp-erp'), 'name' => 'from', 'value' => '{{ data.from }}', 'required' => true, 'class' => 'erp-date-field', 'placeholder' => '2012-01-20'));
?>
</div>
<div class="row">
<?php
erp_html_form_input(array('label' => __('To', 'wp-erp'), 'name' => 'to', 'value' => '{{ data.to }}', 'required' => true, 'class' => 'erp-date-field', 'placeholder' => '2014-09-12'));
?>
</div>
<div class="row">
<?php
erp_html_form_input(array('label' => __('Job Description', 'wp-erp'), 'name' => 'description', 'type' => 'textarea', 'value' => '{{ data.description }}', 'placeholder' => __('Details about the job', 'wp-erp')));
?>
</div>
<?php
wp_nonce_field('erp-work-exp-form');
?>
<input type="hidden" name="action" value="erp-hr-create-work-exp">
<input type="hidden" name="exp_id" value="{{ data.id }}">
<input type="hidden" name="employee_id" value="{{ data.employee_id }}">
</div>
开发者ID:nizamuddin,项目名称:wp-erp,代码行数:31,代码来源:work-experience.php
示例18: erp_html_form_input
erp_html_form_input(array('name' => 'line_qty[]', 'type' => 'number', 'placeholder' => 1, 'value' => 1, 'class' => 'line_qty'));
?>
</td>
<td class="col-unit-price">
<?php
erp_html_form_input(array('name' => 'line_unit_price[]', 'type' => 'number', 'placeholder' => '0.00', 'class' => 'line_price'));
?>
</td>
<td class="col-discount">
<?php
erp_html_form_input(array('name' => 'line_discount[]', 'type' => 'number', 'placeholder' => '0', 'addon' => '%', 'addon_pos' => 'after', 'class' => 'line_dis'));
?>
</td>
<td class="col-amount">
<?php
erp_html_form_input(array('name' => 'line_total[]', 'type' => 'number', 'class' => 'line_total', 'custom_attr' => ['readonly' => 'readonly']));
?>
</td>
<td class="col-action">
<a href="#" class="remove-line"><span class="dashicons dashicons-trash"></span></a>
<a href="#" class="move-line"><span class="dashicons dashicons-menu"></span></a>
</td>
</tr>
<?php
}
?>
</tbody>
<tfoot>
<tr>
<th><a href="#" class="button add-line"><?php
_e('+ Add Line', 'erp-accounting');
开发者ID:asaquzzaman,项目名称:accounting,代码行数:31,代码来源:transaction-table.php
示例19: isset
<?php
$employee_id = isset($_GET['id']) ? intval($_GET['id']) : null;
?>
<div class="performance-form-wrap">
<div class="row">
<?php
erp_html_form_input(array('label' => __('Reference Date', 'wp-erp'), 'name' => 'performance_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' => __('Reviewer', 'wp-erp'), 'name' => 'reviewer', 'value' => '', 'class' => 'erp-hrm-select2', 'type' => 'select', 'id' => 'performance_reviewer', 'options' => erp_hr_get_employees_dropdown_raw($employee_id)));
?>
</div>
<div class="row">
<?php
erp_html_form_input(array('label' => __('Comments', 'wp-erp'), 'name' => 'comments', 'value' => '', 'type' => 'textarea', 'id' => 'performance_comments'));
?>
</div>
<?php
wp_nonce_field('employee_update_performance');
?>
<input type="hidden" name="type" value="comments">
<input type="hidden" name="action" id="performance-comments-action" value="erp-hr-emp-update-performance-comments">
<input type="hidden" name="employee_id" id="emp-id" value="{{ data.id }}">
</div>
开发者ID:ediamin,项目名称:wp-erp,代码行数:31,代码来源:performance-comments.php
示例20: erp_html_form_input
<div class="erp-crm-bulk-contact-subscriber-wrap">
<div class="row" id="erp-crm-contact-subscriber-group-checkbox">
<?php
erp_html_form_input(array('label' => __('Assign Group', 'wp-erp'), 'name' => 'group_id[]', 'type' => 'multicheckbox', 'id' => 'erp-crm-contact-group-id', 'class' => 'erp-crm-contact-group-class', 'options' => erp_crm_get_contact_group_dropdown()));
?>
</div>
<?php
wp_nonce_field('wp-erp-crm-bulk-contact-subscriber');
?>
<input type="hidden" name="action" value="erp-crm-bulk-contact-subscriber">
<input type="hidden" name="user_id" value="{{ data.user_id }}">
</div>
开发者ID:ediamin,项目名称:wp-erp,代码行数:15,代码来源:new-bulk-contact-group.php
注:本文中的erp_html_form_input函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论