From 1176b7614f2cabeab23120ef52ee525e4044bd7c Mon Sep 17 00:00:00 2001 From: Saketh1499 Date: Mon, 4 Jan 2021 15:16:34 +0530 Subject: View responses --- download_details.inc | 36 ++++++++++++++++++++++++++++++++++++ installer_response_form.module | 14 ++++++++++++++ 2 files changed, 50 insertions(+) create mode 100755 download_details.inc diff --git a/download_details.inc b/download_details.inc new file mode 100755 index 0000000..215ebb0 --- /dev/null +++ b/download_details.inc @@ -0,0 +1,36 @@ +fields('installer_response'); + $result = $query->execute(); + while ($row = $result->fetchObject()) + { + $preference_rows[] = array( + $row->id, + $row->name_title."."." ".$row->first_name." ".$row->last_name, + //$row->first_name, + //$row->last_name, + $row->institute, + $row->email_id, + $row->designation, + $row->insatller_type + ); + } //$row = $result->fetchObject() + $preference_header = array( + 'No', + 'Name', + 'Institute', + 'Email_ID', + 'Institute', + 'Insatller Type' + ); + $output .= theme('table', array( + 'header' => $preference_header, + 'rows' => $preference_rows + )); + + return $output; +} diff --git a/installer_response_form.module b/installer_response_form.module index 49f3d39..440aaae 100644 --- a/installer_response_form.module +++ b/installer_response_form.module @@ -66,6 +66,16 @@ function installer_response_form_menu() 'type' => MENU_NORMAL_ITEM, 'file' => 'settings.inc' ); + + $items['view_respones'] = array( + 'title' => 'Completed Downloads', + 'page callback' => 'view_responses_all', + 'access arguments' => array( + 'osdag download code' + ), + 'file' => 'download_details.inc' + ); + return $items; } @@ -83,6 +93,10 @@ function installer_response_form_permission(){ 'title' => t('administer installer settings'), 'restrict access' => TRUE, ), + 'osdag download code' => array( + 'title' => t('OSDAG download responses'), + 'restrict access' => TRUE, + ) ); } -- cgit From b44313b44ed7fa4875587feedb5d4e6c553d90bf Mon Sep 17 00:00:00 2001 From: Saketh1499 Date: Mon, 4 Jan 2021 15:22:49 +0530 Subject: View responses --- download_details.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/download_details.inc b/download_details.inc index 215ebb0..a87b382 100755 --- a/download_details.inc +++ b/download_details.inc @@ -24,7 +24,7 @@ function view_responses_all() 'Name', 'Institute', 'Email_ID', - 'Institute', + 'Designation', 'Insatller Type' ); $output .= theme('table', array( -- cgit From 3b60f659eca6f08bc924e9da3bdacd242b87c954 Mon Sep 17 00:00:00 2001 From: Saketh1499 Date: Mon, 4 Jan 2021 17:34:00 +0530 Subject: Update View responeses --- download_details.inc | 5 ++--- installer_response_form.module | 8 ++++---- settings.inc | 0 upload_installer.inc | 0 4 files changed, 6 insertions(+), 7 deletions(-) mode change 100644 => 100755 installer_response_form.module mode change 100644 => 100755 settings.inc mode change 100644 => 100755 upload_installer.inc diff --git a/download_details.inc b/download_details.inc index a87b382..0ffb813 100755 --- a/download_details.inc +++ b/download_details.inc @@ -1,5 +1,4 @@ institute, $row->email_id, $row->designation, - $row->insatller_type + //$row->insatller_type ); } //$row = $result->fetchObject() $preference_header = array( @@ -25,7 +24,7 @@ function view_responses_all() 'Institute', 'Email_ID', 'Designation', - 'Insatller Type' + //'Insatller Type' ); $output .= theme('table', array( 'header' => $preference_header, diff --git a/installer_response_form.module b/installer_response_form.module old mode 100644 new mode 100755 index 440aaae..46e758a --- a/installer_response_form.module +++ b/installer_response_form.module @@ -68,10 +68,10 @@ function installer_response_form_menu() ); $items['view_respones'] = array( - 'title' => 'Completed Downloads', + 'title' => 'Instaler Responses', 'page callback' => 'view_responses_all', 'access arguments' => array( - 'osdag download code' + 'osdag view responses' ), 'file' => 'download_details.inc' ); @@ -93,8 +93,8 @@ function installer_response_form_permission(){ 'title' => t('administer installer settings'), 'restrict access' => TRUE, ), - 'osdag download code' => array( - 'title' => t('OSDAG download responses'), + 'osdag view responses' => array( + 'title' => t('OSDAG view responses'), 'restrict access' => TRUE, ) ); diff --git a/settings.inc b/settings.inc old mode 100644 new mode 100755 diff --git a/upload_installer.inc b/upload_installer.inc old mode 100644 new mode 100755 -- cgit From 3e265fe05cca7f08ed48367a988a645d8e3c4c6f Mon Sep 17 00:00:00 2001 From: Saketh1499 Date: Mon, 4 Jan 2021 18:08:50 +0530 Subject: Changes Updates for View Responses --- download_details.inc | 2 +- installer_response_form.module | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/download_details.inc b/download_details.inc index 0ffb813..a8f975f 100755 --- a/download_details.inc +++ b/download_details.inc @@ -19,7 +19,7 @@ function view_responses_all() ); } //$row = $result->fetchObject() $preference_header = array( - 'No', + 'S. No', 'Name', 'Institute', 'Email_ID', diff --git a/installer_response_form.module b/installer_response_form.module index 46e758a..671bb59 100755 --- a/installer_response_form.module +++ b/installer_response_form.module @@ -68,7 +68,7 @@ function installer_response_form_menu() ); $items['view_respones'] = array( - 'title' => 'Instaler Responses', + 'title' => 'Installer Responses', 'page callback' => 'view_responses_all', 'access arguments' => array( 'osdag view responses' -- cgit From 834232ecf2d672cfae294a40ac9ba5b94b970289 Mon Sep 17 00:00:00 2001 From: Saketh1499 Date: Mon, 4 Jan 2021 19:14:46 +0530 Subject: Update Serial Number --- download_details.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/download_details.inc b/download_details.inc index a8f975f..c130a1b 100755 --- a/download_details.inc +++ b/download_details.inc @@ -19,7 +19,7 @@ function view_responses_all() ); } //$row = $result->fetchObject() $preference_header = array( - 'S. No', + 'S.No', 'Name', 'Institute', 'Email_ID', -- cgit