From 032116b4dba160d7415d0863fd1877f8fd918166 Mon Sep 17 00:00:00 2001
From: prashantsinalkar
Date: Wed, 11 Jan 2017 16:24:53 +0530
Subject: fixed minor issue and formated the code
---
run.inc | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
(limited to 'run.inc')
diff --git a/run.inc b/run.inc
index c1b2524..4862465 100755
--- a/run.inc
+++ b/run.inc
@@ -73,14 +73,14 @@ function textbook_companion_run_form($form, &$form_state)
'#ajax' => array(
'callback' => 'ajax_example_list_callback'
),
- '#validated' => TRUE,
- '#states' => array(
- 'invisible' => array(
- ':input[name="category"]' => array(
- 'value' => 0
- )
- )
+ '#validated' => TRUE
+ /* '#states' => array(
+ 'invisible' => array(
+ ':input[name="category"]' => array(
+ 'value' => 0
+ )
)
+ )*/
);
$form['download_chapter'] = array(
'#type' => 'item',
@@ -448,7 +448,7 @@ function _list_of_books($preference_id = NULL)
}
return $book_titles;
}
-function _list_of_chapters($preference_id = 0)
+function _list_of_chapters($preference_id)
{
$book_chapters = array(
0 => 'Please select...'
@@ -552,7 +552,7 @@ function _html_book_info($preference_id)
$book_details = $query->execute()->fetchObject();
$html_data = '';
if ($book_details) {
- $html_data = '
' . 'About the Book | About the Contributor | ' . '
' . '- Author: ' . $book_details->preference_author . '
' . '- Title of the Book: ' . $book_details->preference_book . '
' . '- Publisher: ' . $book_details->preference_publisher . '
' . '- Year: ' . $book_details->preference_year . '
' . '- Edition: ' . $book_details->preference_edition . '
' . ' | ' . '- Contributor Name: ' . $book_details->proposal_full_name . ', ' . $book_details->proposal_course . ', ' . $book_details->proposal_branch . ', ' . $book_details->proposal_university . '
' . '- College Teacher: ' . $book_details->proposal_faculty . '
' . '- Reviewer: ' . $book_details->proposal_reviewer . '
' . ' |
' . '
';
+ $html_data = '' . 'About the Book | About the Contributor | ' . '
' . '- Author: ' . $book_details->preference_author . '
' . '- Title of the Book: ' . $book_details->preference_book . '
' . '- Publisher: ' . $book_details->preference_publisher . '
' . '- Year: ' . $book_details->preference_year . '
' . '- Edition: ' . $book_details->preference_edition . '
' . ' | ' . '- Contributor Name: ' . $book_details->proposal_full_name . ', ' . $book_details->proposal_course . ', ' . $book_details->proposal_branch . ', ' . $book_details->proposal_university . '
' . '- Reviewer: ' . $book_details->proposal_reviewer . '
' . ' |
' . '
';
} //$book_details
return $html_data;
}
--
cgit