From aa8aed476ffde8142af219779a26c790efc422ee Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Mon, 22 Aug 2016 12:33:46 +0530 Subject: formated book preferences for ease of reading --- manage_proposal.inc | 56 +++++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 52 insertions(+), 4 deletions(-) (limited to 'manage_proposal.inc') diff --git a/manage_proposal.inc b/manage_proposal.inc index 119676b..e0c4719 100755 --- a/manage_proposal.inc +++ b/manage_proposal.inc @@ -1,5 +1,14 @@ category); foreach ($category_data as $cat) { - $preference_rows[$preference_data->id] = $preference_data->book . ' (Written by ' . $preference_data->author . ')
[Category: ' . $cat . ']
'; + $preference_rows[$preference_data->id] = ' + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Book'. $preference_data->book .'
Author'. $preference_data->author .'
Edition'. $preference_data->edition .'
Publisher'. $preference_data->publisher .'
Year'. $preference_data->year .'
ISBN'. $preference_data->isbn .'
Category'. $cat .'


+ '; } //$category_data as $cat } //$preference_data = $preference_q->fetchObject() if ($row->proposal_type == 1) @@ -393,11 +433,19 @@ function proposal_approval_form($form, &$form_state) } //$row->samplefilepath != "None" $form['disapprove'] = array( '#type' => 'checkbox', - '#title' => t('Disapprove all the above book preferences') + '#title' => t('Disapprove all the above book preferences'), ); $form['message'] = array( '#type' => 'textarea', - '#title' => t('Reason for disapproval') + '#title' => t('Reason for disapproval'), + '#states' => array( + 'visible' => array( + ':input[name="disapprove"]' => array('checked' => TRUE), + ), + 'required' => array( + ':input[name="disapprove"]' => array('checked' => TRUE) + ), + ), ); $form['proposal_type'] = array( '#type' => 'hidden', -- cgit