Esempio n. 1
0
 /**
  * Prints the ERP modal window markup
  *
  * @return void
  */
 public function erp_modal_markup()
 {
     include WPERP_INCLUDES . '/admin/views/erp-modal.php';
     erp_get_js_template(WPERP_INCLUDES . '/admin/views/address.php', 'erp-address');
 }
Esempio n. 2
0
 public function load_js_template()
 {
     global $current_screen;
     // var_dump( $current_screen ); die();
     switch ($current_screen->base) {
         case 'crm_page_erp-sales-customers':
         case 'crm_page_erp-sales-companies':
             erp_get_js_template(WPERP_CRM_JS_TMPL . '/new-customer.php', 'erp-crm-new-contact');
             erp_get_js_template(WPERP_CRM_JS_TMPL . '/new-bulk-contact-group.php', 'erp-crm-new-bulk-contact-group');
             // erp_get_js_template( WPERP_CRM_JS_TMPL . '/save-search-fields.php', 'erp-crm-save-search-item' );
             erp_get_vue_component_template(WPERP_CRM_JS_TMPL . '/save-search-fields.php', 'erp-crm-save-search-item');
             if (isset($_GET['action']) && $_GET['action'] == 'view') {
                 erp_get_js_template(WPERP_CRM_JS_TMPL . '/new-assign-company.php', 'erp-crm-new-assign-company');
                 erp_get_js_template(WPERP_CRM_JS_TMPL . '/customer-edit-company.php', 'erp-crm-customer-edit-company');
                 erp_get_js_template(WPERP_CRM_JS_TMPL . '/customer-social.php', 'erp-crm-customer-social');
                 erp_get_js_template(WPERP_CRM_JS_TMPL . '/customer-feed-edit.php', 'erp-crm-customer-edit-feed');
                 erp_get_js_template(WPERP_CRM_JS_TMPL . '/new-subscriber-contact.php', 'erp-crm-assign-subscriber-contact');
                 erp_get_vue_component_template(WPERP_CRM_JS_TMPL . '/customer-newnote.php', 'erp-crm-new-note-template');
                 erp_get_vue_component_template(WPERP_CRM_JS_TMPL . '/customer-log-activity.php', 'erp-crm-log-activity-template');
                 erp_get_vue_component_template(WPERP_CRM_JS_TMPL . '/customer-email-note.php', 'erp-crm-email-note-template');
                 erp_get_vue_component_template(WPERP_CRM_JS_TMPL . '/customer-schedule-note.php', 'erp-crm-schedule-note-template');
                 erp_get_vue_component_template(WPERP_CRM_JS_TMPL . '/customer-timeline-item.php', 'erp-crm-timeline-item-template');
             }
             break;
         case 'crm_page_erp-sales-contact-groups':
             erp_get_js_template(WPERP_CRM_JS_TMPL . '/new-contact-group.php', 'erp-crm-new-contact-group');
             erp_get_js_template(WPERP_CRM_JS_TMPL . '/new-subscriber-contact.php', 'erp-crm-assign-subscriber-contact');
             break;
         default:
             # code...
             break;
     }
 }
Esempio n. 3
0
 /**
  * Print JS templates in footer
  *
  * @return void
  */
 public function admin_js_templates()
 {
     global $current_screen;
     // var_dump( $current_screen );
     switch ($current_screen->base) {
         case 'hr-management_page_erp-hr-depts':
             erp_get_js_template(WPERP_HRM_JS_TMPL . '/new-dept.php', 'erp-new-dept');
             erp_get_js_template(WPERP_HRM_JS_TMPL . '/row-dept.php', 'erp-dept-row');
             break;
         case 'hr-management_page_erp-hr-designation':
             erp_get_js_template(WPERP_HRM_JS_TMPL . '/new-designation.php', 'erp-new-desig');
             erp_get_js_template(WPERP_HRM_JS_TMPL . '/row-desig.php', 'erp-desig-row');
             break;
         case 'hr-management_page_erp-hr-employee':
             erp_get_js_template(WPERP_HRM_JS_TMPL . '/new-employee.php', 'erp-new-employee');
             erp_get_js_template(WPERP_HRM_JS_TMPL . '/row-employee.php', 'erp-employee-row');
             erp_get_js_template(WPERP_HRM_JS_TMPL . '/employment-status.php', 'erp-employment-status');
             erp_get_js_template(WPERP_HRM_JS_TMPL . '/compensation.php', 'erp-employment-compensation');
             erp_get_js_template(WPERP_HRM_JS_TMPL . '/job-info.php', 'erp-employment-jobinfo');
             erp_get_js_template(WPERP_HRM_JS_TMPL . '/work-experience.php', 'erp-employment-work-experience');
             erp_get_js_template(WPERP_HRM_JS_TMPL . '/education-form.php', 'erp-employment-education');
             erp_get_js_template(WPERP_HRM_JS_TMPL . '/dependents.php', 'erp-employment-dependent');
             break;
         case 'leave_page_erp-leave-policies':
             erp_get_js_template(WPERP_HRM_JS_TMPL . '/leave-policy.php', 'erp-leave-policy');
             break;
         default:
             # code...
             break;
     }
 }
Esempio n. 4
0
                </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 
erp_get_js_template(WPERP_HRM_JS_TMPL . '/leave-days.php', 'erp-leave-days');
Esempio n. 5
0
 /**
  * Print JS templates in footer
  *
  * @return void
  */
 public function admin_js_templates()
 {
     global $current_screen;
     // var_dump( $current_screen ); die();
     switch ($current_screen->base) {
         case 'toplevel_page_erp-hr':
             erp_get_js_template(WPERP_HRM_JS_TMPL . '/new-leave-request.php', 'erp-new-leave-req');
             erp_get_js_template(WPERP_HRM_JS_TMPL . '/leave-days.php', 'erp-leave-days');
             break;
         case 'hr-management_page_erp-hr-depts':
             erp_get_js_template(WPERP_HRM_JS_TMPL . '/new-dept.php', 'erp-new-dept');
             erp_get_js_template(WPERP_HRM_JS_TMPL . '/row-dept.php', 'erp-dept-row');
             break;
         case 'hr-management_page_erp-hr-designation':
             erp_get_js_template(WPERP_HRM_JS_TMPL . '/new-designation.php', 'erp-new-desig');
             erp_get_js_template(WPERP_HRM_JS_TMPL . '/row-desig.php', 'erp-desig-row');
             break;
         case 'hr-management_page_erp-hr-employee':
         case 'hr-management_page_erp-hr-my-profile':
             erp_get_js_template(WPERP_HRM_JS_TMPL . '/new-employee.php', 'erp-new-employee');
             erp_get_js_template(WPERP_HRM_JS_TMPL . '/row-employee.php', 'erp-employee-row');
             erp_get_js_template(WPERP_HRM_JS_TMPL . '/employment-status.php', 'erp-employment-status');
             erp_get_js_template(WPERP_HRM_JS_TMPL . '/compensation.php', 'erp-employment-compensation');
             erp_get_js_template(WPERP_HRM_JS_TMPL . '/job-info.php', 'erp-employment-jobinfo');
             erp_get_js_template(WPERP_HRM_JS_TMPL . '/work-experience.php', 'erp-employment-work-experience');
             erp_get_js_template(WPERP_HRM_JS_TMPL . '/education-form.php', 'erp-employment-education');
             erp_get_js_template(WPERP_HRM_JS_TMPL . '/performance-reviews.php', 'erp-employment-performance-reviews');
             erp_get_js_template(WPERP_HRM_JS_TMPL . '/performance-comments.php', 'erp-employment-performance-comments');
             erp_get_js_template(WPERP_HRM_JS_TMPL . '/performance-goals.php', 'erp-employment-performance-goals');
             erp_get_js_template(WPERP_HRM_JS_TMPL . '/dependents.php', 'erp-employment-dependent');
             erp_get_js_template(WPERP_HRM_JS_TMPL . '/new-dept.php', 'erp-new-dept');
             erp_get_js_template(WPERP_HRM_JS_TMPL . '/new-designation.php', 'erp-new-desig');
             erp_get_js_template(WPERP_HRM_JS_TMPL . '/employee-terminate.php', 'erp-employment-terminate');
             break;
         case 'leave_page_erp-leave-policies':
             erp_get_js_template(WPERP_HRM_JS_TMPL . '/leave-policy.php', 'erp-leave-policy');
             break;
         case 'leave_page_erp-holiday-assign':
             erp_get_js_template(WPERP_HRM_JS_TMPL . '/holiday.php', 'erp-hr-holiday-js-tmp');
             break;
         default:
             # code...
             break;
     }
 }
Esempio n. 6
0
 /**
  * Print JS templates in footer
  *
  * @return void
  */
 public function admin_js_templates()
 {
     global $current_screen;
     if ($current_screen->base == 'accounting_page_erp-accounting-bank') {
         erp_get_js_template(WPERP_ACCOUNTING_JS_TMPL . '/bank.php', 'erp-ac-transfer-money-pop');
     }
 }