/** * Copyright: dtbaker 2012 * Licence: Please check CodeCanyon.net for licence details. * 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 */ if (!module_config::can_i('edit', 'Settings')) { redirect_browser(_BASE_HREF); } $search = isset($_REQUEST['search']) ? $_REQUEST['search'] : array(); $subscriptions = module_subscription::get_subscriptions($search); $pagination = process_pagination($subscriptions); $heading = array('title' => 'Subscriptions', 'type' => 'h2', 'main' => true); if (module_subscription::can_i('create', 'Subscriptions')) { $heading['button'] = array('title' => "Create New Subscription", 'type' => 'add', 'url' => module_subscription::link_open('new')); } print_heading($heading); ?> <form action="" method="post"> <?php echo $pagination['summary'];
</td> <td class="search_action"> <?php echo create_link("Reset", "reset", module_website::link_open(false)); ?> <?php echo create_link("Search", "submit"); ?> </td> </tr> </table> <?php $pagination = process_pagination($websites); $colspan = 4; ?> <?php echo $pagination['summary']; ?> <table width="100%" border="0" cellspacing="0" cellpadding="2" class="tableclass tableclass_rows"> <thead> <tr class="title"> <th id="website_name"><?php echo _l('Name'); ?>
/** * Copyright: dtbaker 2012 * Licence: Please check CodeCanyon.net for licence details. * 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 */ $fieldset_data = array(); $fieldset_data['heading'] = array('type' => 'h3', 'title' => $options['title'], 'help' => 'This will show a history of emails sent from the system.'); ob_start(); ?> <div class="content_box_wheader"> <?php $pagination = process_pagination($emails); ?> <table class="tableclass tableclass_rows emails" width="100%" id="emails" style="<?php if (!count($emails)) { echo ' display:none; '; } ?> "> <thead> <tr> <th><?php _e('Date'); ?> </th> <th><?php
_e('(unsubscribed %s)', print_date($res['time'])); } else { if (isset($res['reason']) && $res['reason'] == 'no_email') { _e('(do not send)'); } else { if (isset($res['reason']) && $res['reason'] == 'doubleoptin') { _e('(double opt-in incomplete)', print_date($res['time'])); } else { _e('(unsubscribed %s)', print_date($res['time'])); } } } } } }); } } if (class_exists('module_extra', false)) { $table_manager->display_extra('member', function ($member) { module_extra::print_table_data('member', $member['member_id']); }); } $table_manager->set_columns($columns); $table_manager->set_rows($members); $table_manager->pagination = true; $table_manager->print_table(); $pagination = process_pagination($members); ?> </form>
<a href="<?php echo module_note::link_open('new', false, $link_options); ?> " data-options="<?php echo htmlspecialchars(base64_encode(serialize($link_options))); ?> " class="uibutton note_options_link note_add no_permissions"><?php _e('Add New Note'); ?> </a> <?php //<div class="content_box_wheader"> } } if (get_display_mode() != 'mobile') { $pagination = process_pagination($note_items, module_config::c('notes_per_page', 20), 0, 'note' . md5(serialize($link_options))); } else { $pagination = array('rows' => $note_items, 'links' => '', 'page_numbers' => 1); } ob_start(); /** START TABLE LAYOUT **/ $table_manager = module_theme::new_table_manager(); $columns = array(); $columns['date'] = array('title' => 'Date', 'width' => 60, 'callback' => function ($note_item) { if ($note_item['reminder']) { echo '<strong>'; } echo print_date($note_item['note_time']); if ($note_item['reminder']) { echo '</strong>'; }
<?php } ?> </tbody> </table> <?php echo $send_members_pagination['links']; ?> </div> <?php // show any probmeatic ones here (blocked due to bounce limit reached, or unsubscribed, or wont receive again due to previous receive. $problem_members = module_newsletter::get_problem_members($send_id); if (mysql_num_rows($problem_members) > 0) { print_heading(array('type' => 'h3', 'title' => _l('Will not send to %s recipients', mysql_num_rows($problem_members)))); $problem_members_pagination = process_pagination($problem_members); //echo $problem_members_pagination['summary']; ?> <div class="content_box_wheader"> <table class="tableclass tableclass_rows tableclass_full"> <thead> <tr> <th><?php _e('Company Name'); ?> </th> <th><?php _e('Name'); ?> </th> <th><?php
<td class="search_action"> <?php echo create_link("Reset", "reset", module_ticket::link_open(false)); ?> <?php echo create_link("Search", "submit"); ?> </td> </tr> </table> <?php $pagination = process_pagination($tickets, module_config::c('ticket_list_default_per_page', 70), 0, 'ticket_list'); $colspan = 4; ?> <?php echo $pagination['summary']; ?> <?php echo $pagination['links']; ?> <table width="100%" border="0" cellspacing="0" cellpadding="2" class="tableclass tableclass_rows"> <thead>
</td> <td class="search_action"> <?php echo create_link("Reset", "reset", module_user::link_open_contact(false)); ?> <?php echo create_link("Search", "submit"); ?> </td> </tr> </table> <?php $pagination = process_pagination($users); $colspan = 4; ?> <?php echo $pagination['summary']; ?> <table width="100%" border="0" cellspacing="0" cellpadding="2" class="tableclass tableclass_rows"> <thead> <tr class="title"> <th><?php echo _l('Name'); ?>
<?php /** * Copyright: dtbaker 2012 * Licence: Please check CodeCanyon.net for licence details. * 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 */ $search = isset($_REQUEST['search']) ? $_REQUEST['search'] : array(); $customers = module_customer::get_customers($search); $pagination = process_pagination($customers); ?> <h2> <?php if (module_customer::can_i('create', 'Customers')) { ?> <span class="button"> <?php echo create_link("Create New Customer", "add", module_customer::link_open('new')); ?> </span> <?php } ?>
$total_debit = $total_credit = 0; foreach ($recent_transactions as $recent_transaction) { $total_credit += $recent_transaction['credit']; $total_debit += $recent_transaction['debit']; } if (!module_finance::can_i('view', 'Finance')) { redirect_browser(_BASE_HREF); } if (class_exists('module_table_sort', false)) { module_table_sort::enable_pagination_hook(array('table_id' => 'finance_list', 'sortable' => array('sort_date' => array('field' => 'transaction_date', 'current' => 2), 'sort_name' => array('field' => 'name'), 'sort_credit' => array('field' => 'credit'), 'sort_debit' => array('field' => 'debit')))); } // hack to add a "export" option to the pagination results. if (class_exists('module_import_export', false) && module_finance::can_i('view', 'Export Finance')) { module_import_export::enable_pagination_hook(array('name' => 'Finance Export', 'parent_form' => 'finance_form', 'fields' => array('Date' => 'transaction_date', 'Name' => 'name', 'URL' => 'url', 'Description' => 'description', 'Credit' => 'credit', 'Debit' => 'debit', 'Account' => 'account_name', 'Categories' => 'categories'))); } $recent_transactions_pagination = process_pagination($recent_transactions); $upcoming_finances = array(); ?> <h2> <?php if (module_finance::can_i('create', 'Finance')) { ?> <span class="button"> <?php echo create_link("Add New", "add", module_finance::link_open('new'));
</td> <td> </td> <td align="right"> <?php echo create_link("Reset", "reset", module_report::link_open(false)); ?> <?php echo create_link("Search", "submit"); ?> </td> </tr> </table> <?php $pagination = process_pagination($reports); $colspan = 4; ?> <?php echo $pagination['summary']; ?> <table width="100%" border="0" cellspacing="0" cellpadding="2" class="tableclass tableclass_rows"> <thead> <tr class="title"> <th id="report_id"><?php echo _l('Id'); ?> </th> <?php
</td> <td class="search_action"> <?php echo create_link("Reset", "reset", module_job::link_open(false)); ?> <?php echo create_link("Search", "submit"); ?> </td> </tr> </table> <?php $pagination = process_pagination($jobs); $colspan = 4; ?> <?php echo $pagination['summary']; ?> <table width="100%" border="0" cellspacing="0" cellpadding="2" class="tableclass tableclass_rows"> <thead> <tr class="title"> <th id="job_title"><?php echo _l('Job Title'); ?>
public function process_data() { if ($this->pagination) { $this->rows = process_pagination($this->rows, $this->pagination_per_page, 0, $this->table_id); } if (!is_array($this->rows) || !isset($this->rows['rows'])) { $row_data = array(); if (is_resource($this->rows)) { while ($row = mysql_fetch_assoc($this->rows)) { $row_data[] = $row; } } else { if (is_array($this->rows)) { $row_data = $this->rows; } } $this->rows = array('rows' => $row_data); unset($row_data); } hook_handle_callback('table_process_data', $this); }
</td> <td class="search_action"> <?php echo create_link("Reset", "reset", module_invoice::link_open(false)); ?> <?php echo create_link("Search", "submit"); ?> </td> </tr> </table> <?php $pagination = process_pagination($invoices, 20, 0, 'invoices'); $colspan = 4; ?> <?php echo $pagination['summary']; ?> <table width="100%" border="0" cellspacing="0" cellpadding="2" class="tableclass tableclass_rows"> <thead> <tr class="title"> <th id="invoice_number"><?php echo _l('Invoice Number'); ?>