示例#1
0
                    } else {
                        _h('You will be reminded to renew this job on this date. You will be given the option to renew this job closer to the renewal date (a new button will appear).');
                    }
                }
                echo '<br/>';
                $element = array('type' => 'checkbox', 'name' => 'renew_auto', 'value' => isset($job['renew_auto']) && $job['renew_auto'], 'label' => 'Automatically Renew', 'help' => 'This Job will be automatically renewed on this date. A new Job will be created as a copy from this Job.');
                module_form::generate_form_element($element);
                echo '<br/>';
                $element = array('type' => 'checkbox', 'name' => 'renew_invoice', 'value' => isset($job['renew_invoice']) && $job['renew_invoice'], 'label' => 'Automatically Invoice', 'help' => 'When this Job is renewed the tasks will be automatically completed and an invoice will be automatically created and emailed to the customer.');
                module_form::generate_form_element($element);
            }
        }));
    } else {
        $fieldset_data['elements'][] = array('title' => 'Renewal Date', 'fields' => array('(recurring jobs available in <a href="http://codecanyon.net/item/ultimate-client-manager-pro-edition/2621629?ref=dtbaker" target="_blank">UCM Pro Edition</a>)'));
    }
    if ((int) $job_id > 0 && class_exists('module_import_export', false) && module_import_export::is_plugin_enabled() && isset($import_tasks_link)) {
        $fieldset_data['elements'][] = array('title' => 'Task CSV Data', 'fields' => array(function () use($job_id, $import_tasks_link) {
            // hack to add a "export" link to this page
            if (module_job::can_i('view', 'Export Job Tasks')) {
                ?>

						    <a href="<?php 
                echo module_job::link_open($job_id, false) . '&import_export_go=yes';
                ?>
"
						       class=""><?php 
                _e('Export Tasks');
                ?>
</a>
					    <?php 
            }
示例#2
0
						    <?php 
                _h('This will be the ' . module_config::c('project_name_single', 'Website') . ' this quote is assigned to - and therefor the customer. Every quote should have a' . module_config::c('project_name_single', 'Website') . ' assigned. Clicking the open link will take you to the ' . module_config::c('project_name_single', 'Website'));
            } else {
                if ($quote['website_id']) {
                    echo module_website::link_open($quote['website_id'], true);
                } else {
                    _e('N/A');
                }
            }
        }));
    } else {
        if (!class_exists('module_website', false) && module_config::c('show_ucm_ads', 1)) {
            $fieldset_data['elements'][] = array('title' => module_config::c('project_name_single', 'Website'), 'fields' => array('(website option available in <a href="http://codecanyon.net/item/ultimate-client-manager-pro-edition/2621629?ref=dtbaker" target="_blank">UCM Pro Edition</a>)'));
        }
    }
    if ((int) $quote_id > 0 && class_exists('module_import_export', false) && module_import_export::is_plugin_enabled()) {
        $fieldset_data['elements'][] = array('title' => 'Task CSV Data', 'fields' => array(function () use($quote_id, $import_tasks_link) {
            // hack to add a "export" link to this page
            if (module_quote::can_i('view', 'Export Quote Tasks')) {
                ?>

						    <a href="<?php 
                echo module_quote::link_open($quote_id, false) . '&import_export_go=yes';
                ?>
"
						       class=""><?php 
                _e('Export Tasks');
                ?>
</a>
					    <?php 
            }