?> " /> --> <input type="hidden" name="user_id" value="<?php echo $user_id; ?> " /> <input type="hidden" name="customer_id" value="<?php echo $user['customer_id']; ?> " /> <?php module_form::print_form_auth(); module_form::prevent_exit(array('valid_exits' => array('.submit_button'))); module_form::set_required(array('fields' => array('name' => 'Name', 'email' => 'Email'))); hook_handle_callback('layout_column_half', 1); $title = 'User Details'; include module_theme::include_ucm('includes/plugin_user/pages/contact_admin_form.php'); if (module_config::c('users_have_address', 0)) { ob_start(); handle_hook("address_block", $module, "physical", "user", "user_id"); $fieldset_data = array('heading' => array('type' => 'h3', 'title' => 'Address'), 'elements_before' => ob_get_clean()); echo module_form::generate_fieldset($fieldset_data); unset($fieldset_data); } if ((int) $user_id > 0) { //handle_hook("note_list",$module,"user","user_id",$user_id); if (class_exists('module_note', false) && module_note::is_plugin_enabled()) { module_note::display_notes(array('title' => 'User Notes', 'owner_table' => 'user', 'owner_id' => $user_id, 'view_link' => $module->link_open($user_id))); }
?> " /> <?php } ?> <input type="hidden" name="hourly_rate" value="<?php echo htmlspecialchars($invoice['hourly_rate']); ?> " /> <input type="hidden" name="_redirect" value="" id="form_redirect" /> <?php $fields = array('fields' => array('name' => 'Name')); module_form::set_required($fields); module_form::prevent_exit(array('valid_exits' => array('.submit_button', '.save_invoice_item', '.save_invoice_payment', '.delete', '.apply_discount'))); hook_handle_callback('layout_column_half', 1, '35'); /* INVOICE DETAILS */ $fieldset_data = array('heading' => array('type' => 'h3', 'title' => 'Invoice Details'), 'class' => 'tableclass tableclass_form tableclass_full', 'elements' => array(array('title' => 'Invoice #', 'field' => array('type' => 'text', 'name' => 'name', 'value' => $invoice['name'])), array('title' => 'Status', 'field' => array('type' => 'select', 'name' => 'status', 'value' => $invoice['status'], 'blank' => false, 'options' => module_invoice::get_statuses(), 'allow_new' => true)), array('title' => 'Created Date', 'field' => array('type' => 'date', 'name' => 'date_create', 'value' => print_date($invoice['date_create']))), array('title' => 'Due Date', 'fields' => array(array('type' => 'date', 'name' => 'date_due', 'value' => print_date($invoice['date_due'])), array('type' => 'checkbox', 'name' => 'overdue_email_auto', 'value' => isset($invoice['overdue_email_auto']) && $invoice['overdue_email_auto'], 'label' => 'Auto Overdue Email', 'help' => 'When this Invoice becomes overdue an email will be automatically sent to the customer. Settings > Invoice for more options.'))), array('title' => 'Sent Date', 'hidden' => !(int) $invoice_id, 'field' => array('type' => 'date', 'name' => 'date_sent', 'id' => 'date_sent', 'value' => print_date($invoice['date_sent']))), array('title' => 'Paid Date', 'hidden' => !(int) $invoice_id, 'field' => array('type' => 'date', 'name' => 'date_paid', 'value' => print_date($invoice['date_paid']), 'help' => 'To mark an invoice as paid please record a full payment against this invoice. Once that is done you can adjust the date here.'))), 'extra_settings' => array('owner_table' => 'invoice', 'owner_key' => 'invoice_id', 'owner_id' => $invoice['invoice_id'], 'layout' => 'table_row', 'allow_new' => module_invoice::can_i('create', 'Invoices'), 'allow_edit' => module_invoice::can_i('edit', 'Invoices'))); $incrementing = false; if (!isset($invoice['taxes']) || !count($invoice['taxes'])) { $invoice['taxes'][] = array(); // at least have 1? } foreach ($invoice['taxes'] as $tax) { if (isset($tax['increment']) && $tax['increment']) { $incrementing = true; } } ob_start();
* More licence clarification available here: http://codecanyon.net/wiki/support/legal-terms/licensing-terms/ * Deploy: 9809 f200f46c2a19bb98d112f2d32a8de0c4 * Envato: 4ffca17e-861e-4921-86c3-8931978c40ca * Package Date: 2015-11-25 02:55:20 * IP Address: 67.79.165.254 */ $module->page_title = _l('Template Edit'); //print_heading('Newsletter Editor'); $newsletter_template_id = isset($_REQUEST['newsletter_template_id']) ? (int) $_REQUEST['newsletter_template_id'] : false; $newsletter_template = module_newsletter::get_newsletter_template($newsletter_template_id); ?> <form action="" method="post"> <input type="hidden" name="_process" value="save_newsletter_template"> <?php module_form::set_required(array('fields' => array('newsletter_template_name' => 'Name'))); module_form::prevent_exit(array('valid_exits' => array('.submit_button', '.valid_exit'))); ?> <table width="100%" cellpadding="5"> <tbody> <tr> <td valign="top"> <h3><?php echo _l('Newsletter Template Details'); ?> </h3> <table width="100%" border="0" cellspacing="0" cellpadding="2" class="tableclass tableclass_form"> <tbody> <tr>
// eg: form elements, submit buttons, etc.. module_security::check_page(array('category' => 'Product', 'page_name' => 'Products', 'module' => 'product', 'feature' => 'Edit')); } else { module_security::check_page(array('category' => 'Product', 'page_name' => 'Products', 'module' => 'product', 'feature' => 'Create')); } module_security::sanatise_data('product', $product_category); } ?> <form action="" method="post" id="product_category_form"> <input type="hidden" name="_process" value="save_product_category" /> <input type="hidden" name="product_category_id" value="<?php echo (int) $product_category_id; ?> " /> <?php module_form::set_required(array('fields' => array('name' => 'Name'))); module_form::prevent_exit(array('valid_exits' => array('.submit_button'))); $fieldset_data = array('heading' => array('type' => 'h3', 'title' => 'Product Information'), 'class' => 'tableclass tableclass_form tableclass_full', 'elements' => array()); $fieldset_data['elements'][] = array('title' => 'Name', 'fields' => array(array('type' => 'text', 'name' => 'product_category_name', 'value' => $product_category['product_category_name']))); echo module_form::generate_fieldset($fieldset_data); unset($fieldset_data); $form_actions = array('class' => 'action_bar action_bar_center', 'elements' => array(array('type' => 'save_button', 'name' => 'butt_save', 'value' => _l('Save')), array('ignore' => !(int) $product_category_id, 'type' => 'delete_button', 'name' => 'butt_del', 'value' => _l('Delete')), array('type' => 'button', 'name' => 'cancel', 'value' => _l('Cancel'), 'class' => 'submit_button', 'onclick' => "window.location.href='" . $module->link_open(false) . "';"))); echo module_form::generate_form_actions($form_actions); ?> </form>
<?php hook_handle_callback('layout_column_half', 1); ?> <form action="" method="post" id="subscription_form"> <input type="hidden" name="_process" value="save_subscription" /> <input type="hidden" name="subscription_id" value="<?php echo $subscription_id; ?> " /> <?php module_form::set_required(array('fields' => array('name' => 'Name', 'amount' => 'Amount'))); module_form::prevent_exit(array('valid_exits' => array('.submit_button'))); $payment_methods = handle_hook('get_payment_methods', $module); $invoice_template_email = $invoice_template_print = array(); foreach (module_template::get_templates() as $possible_template) { if (strpos($possible_template['template_key'], 'invoice_print') !== false) { $invoice_template_print[$possible_template['template_key']] = $possible_template['template_key']; } else { if (strpos($possible_template['template_key'], 'invoice_email') !== false) { $key = preg_replace('#\\_(due|paid|overdue)$#', '', $possible_template['template_key']); if (!isset($invoice_template_email[$key])) { $invoice_template_email[$key] = array(); } $invoice_template_email[$key][] = $possible_template['template_key']; } }
_e('Newsletter Sent Already'); ?> </h4> <?php echo _l('<p>This newsletter has already been sent out <strong>%s</strong> times:</p>%s<p>Please press the <strong>duplicate</strong> button at the bottom to create a new newsletter based on this newsletter. You can also re-send this newsletter to a new group of people below if you want.</p>', count($sends_warning), $sends_links); ?> </div> <?php } ?> <form action="" method="post" id="newsletter_form"> <input type="hidden" name="_process" value="save_newsletter"> <?php module_form::set_required(array('fields' => array('subject' => 'Subject', 'from_name' => 'Sender Name', 'from_email' => 'Sender Email', 'bounce_email' => 'Bounce Email', 'to_name' => 'To Name'))); module_form::prevent_exit(array('valid_exits' => array('.submit_button', '.valid_exit'))); ?> <table width="100%" cellpadding="5"> <tbody> <tr> <td width="450" valign="top"> <h3><?php echo _l('Email Details'); ?> </h3> <table width="100%" border="0" cellspacing="0" cellpadding="2" class="tableclass tableclass_form"> <tbody> <tr>
<?php print_heading('Step #1: Database Connection Details'); ?> <p> <em>Please contact your hosting provider for assistance with creating a database.</em> </p> <form action="?m=setup&step=<?php echo $step; ?> &save=true" method="post"> <?php module_form::set_required(array('fields' => array('db_host' => 'Database Host', 'db_name' => 'Database Name', 'db_user' => 'Database Username', 'db_pass' => 'Database Password'))); ?> <table class="tableclass tableclass_form"> <tbody> <tr> <th class="width2"><?php echo _l('Database Host:'); ?> </th> <td> <input type="text" name="db_host" value="<?php echo h($db_host); ?> "> </td>
if (isset($_POST['is_all_day']) && $_POST['is_all_day']) { $calendar['is_all_day'] = $_POST['is_all_day']; } if (isset($_POST['title']) && $_POST['title']) { $calendar['subject'] = $_POST['title']; } } if ($calendar_id && module_calendar::can_i('edit', 'Calendar') || !$calendar_id && module_calendar::can_i('create', 'Calendar')) { // perms are good to go! } else { die('Permission denied'); } ?> <form action="" method="post" id="calendar_event_form"> <?php module_form::set_required(array('fields' => array('subject' => 'Subject', 'start' => 'Start Date', 'end' => 'End Date'))); $customer_list = array(); $customers = module_customer::get_customers(); foreach ($customers as $customer) { $customer_list[$customer['customer_id']] = $customer['customer_name']; } $staff_members = module_user::get_staff_members(); $staff_member_rel = array(); foreach ($staff_members as $staff_member) { $staff_member_rel[$staff_member['user_id']] = $staff_member['name']; } if (!isset($calendar['staff_ids']) || !is_array($calendar['staff_ids']) || !count($calendar['staff_ids'])) { $calendar['staff_ids'] = array(false); } // output our event information using the standard UCM form processor: $fieldset_data = array('heading' => false, 'class' => 'tableclass tableclass_form tableclass_full', 'elements' => array(array('title' => _l('Subject'), 'fields' => array('<div id="calendarcolor" style="float:right"></div><input id="colorvalue" name="color" type="hidden" value="' . (isset($calendar['color']) ? htmlspecialchars($calendar['color']) : '') . '" />', array('type' => 'text', 'name' => "subject", 'value' => isset($calendar['subject']) ? $calendar['subject'] : ''))), array('title' => _l('Start'), 'fields' => array(array('type' => 'date', 'name' => "start", 'value' => isset($calendar['start']) ? print_date($calendar['start']) : ''), '<span class="calendar_time">@</span>', array('type' => 'time', 'name' => "start_time", 'value' => isset($calendar['start']) ? date('g:ia', $calendar['start']) : '', 'class' => 'calendar_time'), array('type' => 'check', 'id' => "is_all_day", 'value' => 1, 'name' => "is_all_day", 'checked' => isset($calendar['is_all_day']) && $calendar['is_all_day'] ? true : false, 'label' => _l('All Day Event')))), array('title' => _l('End'), 'fields' => array(array('type' => 'date', 'name' => "end", 'value' => isset($calendar['end']) ? print_date($calendar['end']) : ''), '<span class="calendar_time">@</span>', array('type' => 'time', 'name' => "end_time", 'value' => isset($calendar['end']) ? date('g:ia', $calendar['end']) : '', 'class' => 'calendar_time'))), array('title' => _l('Customer'), 'fields' => array(array('type' => 'select', 'name' => 'customer_id', 'options' => $customer_list, 'value' => isset($calendar['customer_id']) ? $calendar['customer_id'] : 0), isset($calendar['customer_id']) && $calendar['customer_id'] ? '<a href="' . module_customer::link_open($calendar['customer_id'], false) . '" target="_blank">' . _l('Open') . '</a>' : '')), array('title' => module_config::c('customer_staff_name', 'Staff'), 'fields' => array('<div id="staff_ids_holder" style="float:left;">', array('type' => 'select', 'name' => 'staff_ids[]', 'options' => $staff_member_rel, 'multiple' => 'staff_ids_holder', 'values' => $calendar['staff_ids']), '</div>', _hr('Assign a staff member to this calendar event. Click the plus sign to add more staff members.'))), array('title' => _l('Description'), 'field' => array('type' => 'textarea', 'name' => "description", 'value' => isset($calendar['description']) ? $calendar['description'] : ''))));
} else { module_security::check_page(array('category' => 'Vendor', 'page_name' => $page_type, 'module' => 'vendor', 'feature' => 'Create')); } module_security::sanatise_data('vendor', $vendor); } ?> <form action="" method="post" id="vendor_form"> <input type="hidden" name="_process" value="save_vendor" /> <input type="hidden" name="vendor_id" value="<?php echo $vendor_id; ?> " /> <input type="hidden" name="_redirect" value="" id="form_redirect" /> <?php module_form::set_required(array('fields' => array('vendor_name' => 'Name', 'name' => 'Contact Name'))); module_form::prevent_exit(array('valid_exits' => array('.submit_button'))); module_form::print_form_auth(); //!(int)$vendor['vendor_id'] && if (isset($_REQUEST['move_user_id']) && (int) $_REQUEST['move_user_id'] > 0 && module_vendor::can_i('create', 'Companies')) { // we have to move this contact over to this vendor as a new primary user id $vendor['primary_user_id'] = (int) $_REQUEST['move_user_id']; ?> <input type="hidden" name="move_user_id" value="<?php echo $vendor['primary_user_id']; ?> "> <?php } hook_handle_callback('layout_column_half', 1); /** COMPANY INFORMATION **/
<input type="hidden" name="<?php echo $use_master_key; ?> " value="<?php echo $user[$use_master_key]; ?> " /> <?php module_form::prevent_exit(array('valid_exits' => array('.submit_button'))); $required = array('fields' => array('name' => 'Name')); if (module_config::c('user_email_required', 1)) { $required['fields']['email'] = true; } module_form::set_required($required); // check if this customer is linked to anyone else. and isn't the primary $contact_links = array(); if ((int) $user_id > 0 && $use_master_key == 'customer_id') { $this_one_is_linked_primary = false; $contact_links = module_user::get_contact_customer_links($user['user_id']); if (count($contact_links)) { // check if this user is primary. $this_one_is_linked_primary = $user['linked_parent_user_id'] == $user_id; $c = array(); foreach ($contact_links as $contact_link) { $other_contact = module_user::get_user($contact_link['user_id']); if ($this_one_is_linked_primary && !$other_contact['linked_parent_user_id']) { // hack to ensure data validity $other_contact['linked_parent_user_id'] = $user_id; update_insert('user_id', $other_contact['user_id'], 'user', array('linked_parent_user_id' => $user_id));
$locked = false; $linked_finances = $linked_invoice_payments = array(); $finance_recurring_id = (int) $_REQUEST['finance_recurring_id']; $recurring = module_finance::get_recurring($finance_recurring_id); $show_record_button = true; if (!$finance_recurring_id) { $show_record_button = false; $module->page_title = _l('Recurring'); } else { $module->page_title = _l('Recurring: %s', htmlspecialchars($recurring['name'])); } ?> <form action="" method="post"> <?php module_form::set_required(array('fields' => array('name' => 'Name', 'amount' => 'Amount', 'start_date' => 'Start Date'))); module_form::prevent_exit(array('valid_exits' => array('.submit_button'))); ?> <input type="hidden" name="_process" value="save_recurring" /> <input type="hidden" name="finance_recurring_id" value="<?php echo $finance_recurring_id; ?> " /> <?php ob_start(); ?> <table width="100%" border="0" cellspacing="0" cellpadding="2" class="tableclass tableclass_form">