Esempio n. 1
0
    <?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>
Esempio n. 2
0
                        </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">
Esempio n. 3
0
<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 
Esempio n. 4
0
<?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>
Esempio n. 5
0
    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($) {
Esempio n. 6
0
 /**
  * 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');
 }
Esempio n. 7
0
<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>
Esempio n. 8
0
                        <?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;
Esempio n. 9
0
    <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>
Esempio n. 10
0
            <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');
?>
Esempio n. 11
0
        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: {
 /**
  * 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>';
     }
 }
Esempio n. 13
0
    <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>
 /**
  * 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>';
     }
 }
Esempio n. 15
0
    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>&nbsp;</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>
Esempio n. 16
0
    <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>
Esempio n. 17
0
        <?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>
Esempio n. 18
0
    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');
Esempio n. 19
0
<?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>
Esempio n. 20
0
<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>
Esempio n. 21
0
    <div class="row">
        <?php 
erp_html_form_input(array('label' => __('Goal Description', 'wp-erp'), 'name' => 'goal_description', 'value' => '', 'type' => 'textarea', 'id' => 'performance_goal_description'));
?>
    </div>

    <div class="row">
        <?php 
erp_html_form_input(array('label' => __('Employee Assessment', 'wp-erp'), 'name' => 'employee_assessment', 'value' => '', 'type' => 'textarea', 'id' => 'performance_employee_assessment'));
?>
    </div>

    <div class="row">
        <?php 
erp_html_form_input(array('label' => __('Supervisor', 'wp-erp'), 'name' => 'supervisor', 'value' => '', 'class' => 'erp-hrm-select2', 'type' => 'select', 'id' => 'performance_supervisor', 'options' => erp_hr_get_employees_dropdown_raw($employee_id)));
?>
    </div>

    <div class="row">
        <?php 
erp_html_form_input(array('label' => __('Supervisor Assessment', 'wp-erp'), 'name' => 'supervisor_assessment', 'value' => '', 'type' => 'textarea', 'id' => 'performance_supervisor_assessment'));
?>
    </div>

    <?php 
wp_nonce_field('employee_update_performance');
?>
    <input type="hidden" name="type" value="goals">
    <input type="hidden" name="action" id="performance-goals-action" value="erp-hr-emp-update-performance-goals">
    <input type="hidden" name="employee_id" id="emp-id" value="{{ data.id }}">
</div>
Esempio n. 22
0
    <div class="row" data-selected="{{ data.work.location }}">
        <?php 
erp_html_form_input(array('label' => __('Location', 'wp-erp'), 'name' => 'location', 'value' => '', 'type' => 'select', 'options' => array(0 => __('- Select -', 'wp-erp')) + erp_company_get_location_dropdown_raw()));
?>
    </div>

    <div class="row" data-selected="{{ data.work.department }}">
        <?php 
erp_html_form_input(array('label' => __('Department', 'wp-erp'), 'name' => 'department', 'value' => '', 'type' => 'select', 'options' => erp_hr_get_departments_dropdown_raw()));
?>
    </div>

    <div class="row" data-selected="{{ data.work.designation }}">
        <?php 
erp_html_form_input(array('label' => __('Job Title', 'wp-erp'), 'name' => 'designation', 'value' => '', 'type' => 'select', 'options' => erp_hr_get_designation_dropdown_raw()));
?>
    </div>

    <div class="row" data-selected="{{ data.work.reporting_to }}">
        <?php 
erp_html_form_input(array('label' => __('Reporting To', 'wp-erp'), 'name' => 'reporting_to', 'value' => '', 'type' => 'select', 'options' => erp_hr_get_employees_dropdown_raw($employee_id)));
?>
    </div>

    <?php 
wp_nonce_field('employee_update_jobinfo');
?>
    <input type="hidden" name="action" id="status-action" value="erp-hr-emp-update-jobinfo">
    <input type="hidden" name="employee_id" id="emp-id" value="{{ data.id }}">
</div>
Esempio n. 23
0
    <li class="row">
        <?php 
erp_html_form_input(array('label' => __('City', 'wp-erp'), 'name' => 'city', 'value' => '{{ data.city }}'));
?>
    </li>

    <li class="row" data-selected="{{ data.state }}">
        <?php 
erp_html_form_input(array('label' => __('Province / State', 'wp-erp'), 'name' => 'state', 'id' => 'erp-state', 'type' => 'select', 'class' => 'erp-state-select', 'options' => array(0 => __('- Select -', 'wp-erp'))));
?>
    </li>

    <li class="row">
        <?php 
erp_html_form_input(array('label' => __('Postal / Zip Code', 'wp-erp'), 'name' => 'zip', 'type' => 'number', 'value' => '{{ data.zip }}'));
?>
    </li>

    <li class="row" data-selected="{{ data.country }}">
        <label for="erp-popup-country"><?php 
_e('Country', 'wp-erp');
?>
 <span class="required">*</span></label>
        <select name="country" id="erp-popup-country" class="erp-country-select" data-parent="ul">
            <?php 
$country = \WeDevs\ERP\Countries::instance();
?>
            <?php 
echo $country->country_dropdown();
?>
Esempio n. 24
0
<?php

$working_days = erp_company_get_working_days();
$options = array('8' => __('Full Day', 'wp-erp'), '4' => __('Half Day', 'wp-erp'), '0' => __('Non-working Day', 'wp-erp'));
$days = array('mon' => __('Monday', 'wp-erp'), 'tue' => __('Tuesday', 'wp-erp'), 'wed' => __('Wednesday', 'wp-erp'), 'thu' => __('Thursday', 'wp-erp'), 'fri' => __('Friday', 'wp-erp'), 'sat' => __('Saturday', 'wp-erp'), 'sun' => __('Sunday', 'wp-erp'));
?>

<form action="" method="post">

    <ul class="erp-list separated">
    <?php 
foreach ($days as $key => $day) {
    erp_html_form_input(array('label' => $day, 'name' => 'day[' . $key . ']', 'value' => $working_days[$key], 'type' => 'select', 'tag' => 'li', 'options' => $options));
}
?>
    </ul>

    <input type="hidden" name="erp-action" value="settings-save-work-days">

    <?php 
wp_nonce_field('erp-settings');
?>
    <?php 
submit_button(__('Save Changes', 'wp-erp'), 'primary');
?>
</form>
Esempio n. 25
0
erp_html_form_input(array('label' => __('From Account', 'erp-accounting'), 'name' => 'form_account_id', 'placeholder' => __('Select an Account', 'erp-accounting'), 'type' => 'select', 'class' => 'select2 erp-ac-bank-ac-drpdwn erp-ac-bank-ac-drpdwn-frm', 'required' => true, 'value' => '', 'options' => ['' => __('&mdash; Select &mdash;', 'erp-accounting')] + erp_ac_get_bank_dropdown()));
?>

    </div>

    <div class="row">
        <?php 
erp_html_form_input(array('label' => __('To Account', 'erp-accounting'), 'name' => 'to_account_id', 'placeholder' => __('Select an Account', 'erp-accounting'), 'type' => 'select', 'class' => 'select2 erp-ac-bank-ac-drpdwn erp-ac-bank-ac-drpdwn-to', 'required' => true, 'value' => '', 'options' => ['' => __('&mdash; Select &mdash;', 'erp-accounting')] + erp_ac_get_bank_dropdown()));
?>
    </div>

    <div class="row">
        <?php 
erp_html_form_input(array('label' => __('Amount', 'erp-accounting'), 'type' => 'number', 'name' => 'amount', 'id' => 'erp-ac-amount', 'value' => '', 'required' => true, 'custom_attr' => array('min' => '0')));
?>
    </div>

    <div class="row">
        <?php 
erp_html_form_input(array('label' => __('Memo', 'erp-accounting'), 'name' => 'memo', 'type' => 'textarea', 'id' => 'erp-ac-memo', 'value' => ''));
?>
    </div>
        <?php 
erp_html_form_input(array('name' => 'action', 'type' => 'hidden', 'id' => 'erp-ac-memo', 'value' => 'ac_transfer_money'));
?>

        <?php 
//wp_nonce_field( 'ac_transfer_money', 'ac_transfer_mone_nonce' );
?>
</div>
Esempio n. 26
0
<div class="work-exp-form-wrap">

    <div class="row">
        <?php 
erp_html_form_input(array('label' => __('Name', 'wp-erp'), 'name' => 'name', 'value' => '{{ data.name }}', 'required' => true, 'placeholder' => __('Name of the person', 'wp-erp')));
?>
    </div>

    <div class="row">
        <?php 
erp_html_form_input(array('label' => __('Relationship', 'wp-erp'), 'name' => 'relation', 'value' => '{{ data.relation }}', 'required' => true, 'placeholder' => __('Father', 'wp-erp')));
?>
    </div>

    <div class="row">
        <?php 
erp_html_form_input(array('label' => __('Date of Birth', 'wp-erp'), 'name' => 'dob', 'value' => '{{ data.dob }}', 'class' => 'erp-date-field', 'placeholder' => '1970-01-20'));
?>
    </div>

    <?php 
wp_nonce_field('erp-hr-dependent-form');
?>

    <input type="hidden" name="action" value="erp-hr-create-dependent">
    <input type="hidden" name="dep_id" value="{{ data.id }}">
    <input type="hidden" name="employee_id" value="{{ data.employee_id }}">
</div>
Esempio n. 27
0
<div class="crm-customer-assing-company-wrap">

    <# if ( data.type == 'assign_company' ) { #>

        <div class="row">
            <?php 
erp_html_form_input(array('label' => __('Company Name', 'wp-erp'), 'name' => 'erp_assign_company_id', 'type' => 'select', 'id' => 'erp-select-customer-company', 'class' => 'erp-crm-select2-add-more erp-crm-customer-company-dropdown', 'custom_attr' => ['data-id' => 'erp-contact-new', 'data-type' => 'company', 'data-single' => 1], 'required' => true, 'options' => ['' => __('--Select a Company--', 'wp-erp')] + erp_get_peoples_array(['type' => 'company', 'number' => -1])));
?>
        </div>

    <# } else if ( data.type == 'assign_customer' ) { #>

        <div class="row">
            <?php 
erp_html_form_input(array('label' => __('Contact Name', 'wp-erp'), 'name' => 'erp_assign_customer_id', 'type' => 'select', 'id' => 'erp-select-customer-company', 'class' => 'erp-crm-select2-add-more erp-crm-customer-company-dropdown', 'custom_attr' => ['data-id' => 'erp-contact-new', 'data-type' => 'contact', 'data-single' => 1], 'required' => true, 'options' => ['' => __('--Select a Contact--', 'wp-erp')] + erp_get_peoples_array(['type' => 'contact', 'number' => -1])));
?>
        </div>

    <# } #>

    <?php 
wp_nonce_field('wp-erp-crm-assign-customer-company-nonce');
?>

    <input type="hidden" name="action" value="erp-crm-customer-add-company">
    <input type="hidden" name="id" value="{{ data.id }}">
    <input type="hidden" name="assign_type" value="{{ data.type }}">
</div>
Esempio n. 28
0
}
?>

<h3><?php 
_e('History', 'wp-erp');
?>
</h3>

<?php 
$cur_year = date('Y');
$requests = erp_hr_leave_get_requests(array('year' => $cur_year, 'user_id' => $employee->id, 'status' => 1, 'orderby' => 'req.start_date'));
?>

<form action="#" id="erp-hr-empl-leave-history">
    <?php 
erp_html_form_input(array('name' => 'leave_policy', 'type' => 'select', 'options' => array('all' => __('All Policy', 'wp-erp')) + erp_hr_leave_get_policies_dropdown_raw()));
?>

    <select name="year" id="year">
        <?php 
for ($i = $cur_year; $i > $cur_year - 5; $i--) {
    ?>
            <option value="<?php 
    echo $i;
    ?>
"><?php 
    echo $i;
    ?>
</option>
        <?php 
}
Esempio n. 29
0
</label></td>
                                <td>
                                    <?php 
erp_html_form_input(array('name' => 'mobile', 'value' => $company->mobile, 'class' => 'regular-text'));
?>
                                </td>
                            </tr>

                            <tr>
                                <td><label for="website"><?php 
_e('Website', 'wp-erp');
?>
</label></td>
                                <td>
                                    <?php 
erp_html_form_input(array('name' => 'website', 'type' => 'url', 'value' => $company->website, 'class' => 'regular-text'));
?>
                                </td>
                            </tr>

                            <tr>
                                <td><label for="currency"><?php 
_e('Main Currency', 'wp-erp');
?>
</label></td>
                                <td>
                                    <select name="currency" id="currency">
                                        <?php 
echo erp_get_currencies_dropdown($company->currency);
?>
 ?>
Esempio n. 30
0
erp_html_form_input(array('label' => __('From', 'wp-erp'), 'name' => 'leave_from', 'value' => '', 'required' => true, 'class' => 'erp-date-field'));
?>
                </div>

                <div class="cols last">
                    <?php 
erp_html_form_input(array('label' => __('To', 'wp-erp'), 'name' => 'leave_to', 'value' => '', 'required' => true, 'class' => 'erp-date-field'));
?>
                </div>
            </li>

            <li class="show-days"></li>

            <li>
                <?php 
erp_html_form_input(array('label' => __('Reason', 'wp-erp'), 'name' => 'leave_reason', 'type' => 'textarea', 'custom_attr' => array('cols' => 30, 'rows' => 3)));
?>
            </li>
        </ul>

        <input type="hidden" name="erp-action" value="hr-leave-req-new">
        <?php 
wp_nonce_field('erp-leave-req-new');
?>
        <?php 
submit_button(__('Submit Request', 'wp-erp'), 'primary', 'submit', true, array('disabled' => 'disabled'));
?>
    </form>
</div><!-- .wrap -->

<?php