diff options
author | prashantsinalkar | 2018-07-11 15:17:06 +0530 |
---|---|---|
committer | prashantsinalkar | 2018-07-11 15:17:06 +0530 |
commit | d65633e5b4542e0cc04ece13c3e7325e24e655be (patch) | |
tree | fd9e963a8944fb2e6849f28429ef156ba9cd4ab9 | |
parent | b16fbaeb5f3ded0298780a655f330947301289f8 (diff) | |
download | scilab_in_migration_certificates-d65633e5b4542e0cc04ece13c3e7325e24e655be.tar.gz scilab_in_migration_certificates-d65633e5b4542e0cc04ece13c3e7325e24e655be.tar.bz2 scilab_in_migration_certificates-d65633e5b4542e0cc04ece13c3e7325e24e655be.zip |
removed 1 file
-rwxr-xr-x | pdf/1 | 51 |
1 files changed, 0 insertions, 51 deletions
@@ -1,51 +0,0 @@ -<?php - function _list_all_certificates() - { - global $user; - $uid1 = $user->uid; - - $query2 = db_query("SELECT * FROM {textbook_companion_proposal} WHERE proposal_status=3 AND uid=".$user->uid); - $data2 = db_fetch_object($query2); - if($data2->id) - { - $search_rows = array(); - global $output; - $output = ''; - $query3 = db_query("SELECT * FROM textbook_companion_preference WHERE approval_status=1 AND proposal_id=".$data2->id); - - while ($search_data3 = db_fetch_object($query3)) - { - $search_rows[] = array($search_data3->isbn,$search_data3->book,$search_data3->author,l('Download Certificate', 'certificate/generate_pdf/'.$search_data3->id)); - } - if ($search_rows) - { - $search_header = array('ISBN', 'Book Name', 'Author', 'Download Certificates'); - $output = theme_table($search_header, $search_rows); - return $output; - } - else - { - echo("Error"); - return ''; - } - } - else - { - $query3 = db_query("SELECT * FROM {textbook_companion_proposal} WHERE uid=".$user->uid); - $data3 = db_fetch_object($query2); - var_dump($query3); - die; - if($data3) - { - drupal_set_message('<strong>Your book is still under Review!</strong>', 'status'); - return ''; - } - else - { - drupal_set_message('<strong>You need to propose a book <a href="/proposal">Book Proposal</a></strong>', 'status'); - return ''; - } - } - -} -?> |