$view = new view; $view->name = 'show_ccli_applicants'; $view->description = 'List of CCLI applicants and their apps'; $view->tag = 'Application'; $view->view_php = ''; $view->base_table = 'node'; $view->is_cacheable = FALSE; $view->api_version = 2; $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ $handler = $view->new_display('default', 'Defaults', 'default'); $handler->override_option('relationships', array( 'content_profile_rel' => array( 'label' => 'Content Profile', 'required' => 0, 'type' => 'profile', 'id' => 'content_profile_rel', 'table' => 'users', 'field' => 'content_profile_rel', 'relationship' => 'none', ), 'field_ur_car_reviewer_uid' => array( 'id' => 'field_ur_car_reviewer_uid', 'table' => 'node_data_field_ur_car_reviewer', 'field' => 'field_ur_car_reviewer_uid', ), )); $handler->override_option('fields', array( 'field_car_applicant_value' => array( 'label' => 'Applicant', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'link_to_node' => 1, 'label_type' => 'custom', 'format' => 'default', 'multiple' => array( 'group' => TRUE, 'multiple_number' => '', 'multiple_from' => '', 'multiple_reversed' => FALSE, ), 'exclude' => 0, 'id' => 'field_car_applicant_value', 'table' => 'node_data_field_car_applicant', 'field' => 'field_car_applicant_value', 'relationship' => 'none', ), 'name' => array( 'label' => 'User Name', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'link_to_user' => 1, 'overwrite_anonymous' => 0, 'anonymous_text' => '', 'exclude' => 0, 'id' => 'name', 'table' => 'users', 'field' => 'name', 'relationship' => 'none', ), 'field_car_gpa_value' => array( 'label' => 'GPA', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'link_to_node' => 0, 'label_type' => 'widget', 'format' => 'default', 'multiple' => array( 'group' => TRUE, 'multiple_number' => '', 'multiple_from' => '', 'multiple_reversed' => FALSE, ), 'exclude' => 0, 'id' => 'field_car_gpa_value', 'table' => 'node_data_field_car_gpa', 'field' => 'field_car_gpa_value', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), 'field_car_upload_app_fid' => array( 'label' => 'Application Packet', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'link_to_node' => 0, 'label_type' => 'custom', 'format' => 'default', 'multiple' => array( 'group' => TRUE, 'multiple_number' => '', 'multiple_from' => '', 'multiple_reversed' => FALSE, ), 'exclude' => 0, 'id' => 'field_car_upload_app_fid', 'table' => 'node_data_field_car_upload_app', 'field' => 'field_car_upload_app_fid', 'relationship' => 'none', ), 'nid' => array( 'label' => 'Scoring Form', 'alter' => array( 'alter_text' => 1, 'text' => 'Create', 'make_link' => 1, 'path' => 'node/add/ccli-app-scoring-form/[nid]?edit[group_casf_applicant][field_casf_gpa_score][0][value]=[field_car_gpa_value]', 'link_class' => '', 'alt' => 'Click here to start a Scoring Form for this applicant', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'empty' => '', 'hide_empty' => 1, 'empty_zero' => 0, 'link_to_node' => 0, 'exclude' => 0, 'id' => 'nid', 'table' => 'node', 'field' => 'nid', 'relationship' => 'none', ), 'field_ur_car_reviewer_uid' => array( 'label' => 'Reviewer', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'link_to_node' => 0, 'label_type' => 'custom', 'format' => 'default', 'multiple' => array( 'group' => 1, 'multiple_number' => '', 'multiple_from' => '', 'multiple_reversed' => 0, ), 'exclude' => 0, 'id' => 'field_ur_car_reviewer_uid', 'table' => 'node_data_field_ur_car_reviewer', 'field' => 'field_ur_car_reviewer_uid', 'relationship' => 'none', ), )); $handler->override_option('arguments', array( 'name' => array( 'id' => 'name', 'table' => 'users', 'field' => 'name', ), )); $handler->override_option('filters', array( 'type' => array( 'operator' => 'in', 'value' => array( 'ccli_app_complete' => 'ccli_app_complete', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'type', 'table' => 'node', 'field' => 'type', 'relationship' => 'none', ), 'status' => array( 'operator' => '=', 'value' => '1', 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'status', 'table' => 'node', 'field' => 'status', 'relationship' => 'none', ), 'status_1' => array( 'operator' => '=', 'value' => '1', 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'status_1', 'table' => 'users', 'field' => 'status', 'relationship' => 'none', ), 'rid' => array( 'operator' => 'or', 'value' => array( '10' => '10', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'rid', 'table' => 'users_roles', 'field' => 'rid', 'relationship' => 'none', 'reduce_duplicates' => 0, ), 'field_ur_car_reviewer_uid' => array( 'id' => 'field_ur_car_reviewer_uid', 'table' => 'node_data_field_ur_car_reviewer', 'field' => 'field_ur_car_reviewer_uid', ), )); $handler->override_option('access', array( 'type' => 'role', 'role' => array( '3' => 3, '4' => 4, '11' => 11, '6' => 6, ), )); $handler->override_option('cache', array( 'type' => 'none', )); $handler->override_option('title', 'Show CCLI Apps'); $handler->override_option('items_per_page', 0); $handler->override_option('style_plugin', 'table'); $handler->override_option('style_options', array( 'grouping' => '', 'override' => 1, 'sticky' => 0, 'order' => 'asc', 'columns' => array( 'field_car_applicant_value' => 'field_car_applicant_value', 'name' => 'name', 'field_car_upload_app_fid' => 'field_car_upload_app_fid', 'changed' => 'changed', 'nid' => 'nid', 'field_ur_car_reviewer_uid' => 'field_ur_car_reviewer_uid', ), 'info' => array( 'field_car_applicant_value' => array( 'sortable' => 1, 'separator' => '', ), 'name' => array( 'sortable' => 1, 'separator' => '', ), 'field_car_upload_app_fid' => array( 'separator' => '', ), 'changed' => array( 'sortable' => 1, 'separator' => '', ), 'nid' => array( 'sortable' => 0, 'separator' => '', ), 'field_ur_car_reviewer_uid' => array( 'separator' => '', ), ), 'default' => '-1', )); $handler = $view->new_display('page', 'Page', 'page_1'); $handler->override_option('title', 'Reviewer Assignments'); $handler->override_option('header', '
A list of all CCLI applicants with complete application packets and their assigned reviewer.
Clicking on the Applicant link takes you to the Applicant\'s "CCLI Application Complete" form.
Clicking on the User Name link takes you to the User\'s Profile.
Selecting the Application Packet link will open the PDF for viewing or printing.
Clicking on the "Create" link creates a new Scoring Form for that applicant.
'); $handler->override_option('header_format', '2'); $handler->override_option('header_empty', 0); $handler->override_option('footer', 'pager[\'items_per_page\']; if ($pager_total[0] == 1) { echo "Showing " . $pager_total_items[0] . " results"; } else { $start = 1 + ($pager_page_array[0] * $items_per_page); $end = (1 + $pager_page_array[0]) * $items_per_page; if ($end > $pager_total_items[0]) $end = $pager_total_items[0]; echo "Showing $start-$end of " . $pager_total_items[0] . " results"; } ?>'); $handler->override_option('footer_format', '3'); $handler->override_option('footer_empty', 1); $handler->override_option('items_per_page', 25); $handler->override_option('use_pager', '1'); $handler->override_option('path', 'reviewerassignments'); $handler->override_option('menu', array( 'type' => 'normal', 'title' => 'Reviewer Assignments', 'description' => '', 'weight' => '0', 'name' => 'menu-testing', )); $handler->override_option('tab_options', array( 'type' => 'none', 'title' => '', 'description' => '', 'weight' => 0, )); $handler = $view->new_display('page', 'Reviewer View', 'page_2'); $handler->override_option('relationships', array( 'field_ur_car_reviewer_uid' => array( 'label' => 'Reviewer Assigned', 'required' => 0, 'delta' => '-1', 'id' => 'field_ur_car_reviewer_uid', 'table' => 'node_data_field_ur_car_reviewer', 'field' => 'field_ur_car_reviewer_uid', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', ), )); $handler->override_option('fields', array( 'field_car_applicant_value' => array( 'label' => 'Applicant', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'link_to_node' => 1, 'label_type' => 'custom', 'format' => 'default', 'multiple' => array( 'group' => TRUE, 'multiple_number' => '', 'multiple_from' => '', 'multiple_reversed' => FALSE, ), 'exclude' => 0, 'id' => 'field_car_applicant_value', 'table' => 'node_data_field_car_applicant', 'field' => 'field_car_applicant_value', 'relationship' => 'none', ), 'name' => array( 'label' => 'User Name', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'link_to_user' => 1, 'overwrite_anonymous' => 0, 'anonymous_text' => '', 'exclude' => 0, 'id' => 'name', 'table' => 'users', 'field' => 'name', 'relationship' => 'none', ), 'field_car_gpa_value' => array( 'label' => 'GPA', 'alter' => array( 'alter_text' => 0, 'text' => '[field_car_gpa_value]', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'link_to_node' => 0, 'label_type' => 'widget', 'format' => 'default', 'multiple' => array( 'group' => TRUE, 'multiple_number' => '', 'multiple_from' => '', 'multiple_reversed' => FALSE, ), 'exclude' => 0, 'id' => 'field_car_gpa_value', 'table' => 'node_data_field_car_gpa', 'field' => 'field_car_gpa_value', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', ), 'field_car_upload_app_fid' => array( 'label' => 'Application Packet', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'link_to_node' => 0, 'label_type' => 'custom', 'format' => 'default', 'multiple' => array( 'group' => TRUE, 'multiple_number' => '', 'multiple_from' => '', 'multiple_reversed' => FALSE, ), 'exclude' => 0, 'id' => 'field_car_upload_app_fid', 'table' => 'node_data_field_car_upload_app', 'field' => 'field_car_upload_app_fid', 'relationship' => 'none', ), 'nid' => array( 'label' => 'Scoring Form', 'alter' => array( 'alter_text' => 1, 'text' => 'Create', 'make_link' => 1, 'path' => 'node/add/ccli-app-scoring-form/[nid]?edit[group_casf_applicant][field_casf_gpa_score][0][value]=[field_car_gpa_value]', 'link_class' => '', 'alt' => 'Click here to start a Scoring Form for this applicant', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'empty' => '', 'hide_empty' => 1, 'empty_zero' => 0, 'link_to_node' => 0, 'exclude' => 0, 'id' => 'nid', 'table' => 'node', 'field' => 'nid', 'relationship' => 'none', ), 'field_ur_car_reviewer_uid' => array( 'label' => 'Reviewer', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'link_to_node' => 0, 'label_type' => 'custom', 'format' => 'default', 'multiple' => array( 'group' => 1, 'multiple_number' => '', 'multiple_from' => '', 'multiple_reversed' => 0, ), 'exclude' => 0, 'id' => 'field_ur_car_reviewer_uid', 'table' => 'node_data_field_ur_car_reviewer', 'field' => 'field_ur_car_reviewer_uid', 'relationship' => 'none', ), )); $handler->override_option('filters', array( 'type' => array( 'operator' => 'in', 'value' => array( 'ccli_app_complete' => 'ccli_app_complete', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'type', 'table' => 'node', 'field' => 'type', 'relationship' => 'none', ), 'status' => array( 'operator' => '=', 'value' => '1', 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'status', 'table' => 'node', 'field' => 'status', 'relationship' => 'none', ), 'status_1' => array( 'operator' => '=', 'value' => '1', 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'status_1', 'table' => 'users', 'field' => 'status', 'relationship' => 'none', ), 'rid' => array( 'operator' => 'or', 'value' => array( '10' => '10', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'rid', 'table' => 'users_roles', 'field' => 'rid', 'relationship' => 'none', 'reduce_duplicates' => 0, ), 'field_ur_car_reviewer_uid' => array( 'operator' => 'or', 'value' => array( '1' => '1', '34' => '34', '71' => '71', '12' => '12', '32' => '32', ), 'group' => '0', 'exposed' => TRUE, 'expose' => array( 'use_operator' => 0, 'operator' => 'field_ur_car_reviewer_uid_op', 'identifier' => 'field_ur_car_reviewer_uid', 'label' => 'Reviewer Name', 'optional' => 1, 'single' => 1, 'remember' => 1, 'reduce' => 1, ), 'id' => 'field_ur_car_reviewer_uid', 'table' => 'node_data_field_ur_car_reviewer', 'field' => 'field_ur_car_reviewer_uid', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', 'reduce_duplicates' => 0, ), )); $handler->override_option('title', 'CCLI Application Review & Scoring'); $handler->override_option('header', 'Select your User Name in the Reviewer Name pull-down menu and click Apply to see your assignments.'); $handler->override_option('header_format', '2'); $handler->override_option('header_empty', 0); $handler->override_option('footer', 'pager[\'items_per_page\']; if ($pager_total[0] == 1) { echo "Showing " . $pager_total_items[0] . " results"; } else { $start = 1 + ($pager_page_array[0] * $items_per_page); $end = (1 + $pager_page_array[0]) * $items_per_page; if ($end > $pager_total_items[0]) $end = $pager_total_items[0]; echo "Showing $start-$end of " . $pager_total_items[0] . " results"; } ?>'); $handler->override_option('footer_format', '3'); $handler->override_option('footer_empty', 0); $handler->override_option('items_per_page', 25); $handler->override_option('use_pager', '1'); $handler->override_option('path', 'reviewerview'); $handler->override_option('menu', array( 'type' => 'normal', 'title' => 'CCLI Application Review & Scoring', 'description' => 'List of Applicants Per Reviewer', 'weight' => '0', 'name' => 'menu-testing', )); $handler->override_option('tab_options', array( 'type' => 'none', 'title' => '', 'description' => '', 'weight' => 0, ));