diff options
author | prashant | 2015-10-23 15:13:34 +0530 |
---|---|---|
committer | prashant | 2015-10-23 15:13:34 +0530 |
commit | f0bb83fe2c52a1fe25e1ed0068eca96037bed785 (patch) | |
tree | 95b28e492c17de19cbbb3f1b1106dd1d25113b2c /run.inc | |
parent | 19451c99f9eddd6fcc4b5ad108cce1dd5ab5080e (diff) | |
download | DWSIM_lab_migration_module-f0bb83fe2c52a1fe25e1ed0068eca96037bed785.tar.gz DWSIM_lab_migration_module-f0bb83fe2c52a1fe25e1ed0068eca96037bed785.tar.bz2 DWSIM_lab_migration_module-f0bb83fe2c52a1fe25e1ed0068eca96037bed785.zip |
done minor changes
Diffstat (limited to 'run.inc')
-rwxr-xr-x | run.inc | 24 |
1 files changed, 12 insertions, 12 deletions
@@ -31,9 +31,9 @@ '#type' => 'item', '#markup' => '<div id="ajax_selected_lab"></div>', ); - $form['selected_lab_freeeda'] = array( + $form['selected_lab_dwsim'] = array( '#type' => 'item', - '#markup' => '<div id="ajax_selected_lab_freeeda"></div>', + '#markup' => '<div id="ajax_selected_lab_dwsim"></div>', ); $form['selected_lab_pdf'] = array( '#type' => 'item', @@ -93,17 +93,17 @@ '#markup' => '<div id="ajax_selected_lab">'.l('Download Lab Solutions', 'lab-migration/download/lab/' . $lab_default_value).'</div>', ); - $form['selected_lab_pdf'] = array( + /* $form['selected_lab_pdf'] = array( '#type' => 'item', '#markup' => '<div id="ajax_selected_lab_pdf">'. l('Download PDF of Lab Solutions', 'lab-migration/generate-lab/' . $lab_default_value . '/1') .'</div>', - - ); + + );*/ if($lab_default_value=='2'){ -$form['selected_lab_freeeda'] = array( +$form['selected_lab_dwsim'] = array( '#type' => 'item', - '#markup' => '<div id="ajax_selected_lab_freeeda">'.l('Download Lab Solutions (FreeEDA Version)', 'lab-migration-uploads/Open_Source_EDA_Lab_FreeEDA_Version.zip').'</div>', - + '#markup' => '<div id="ajax_selected_lab_dwsim">'.l('Download Lab Solutions (dwsim Version)', 'lab-migration-uploads/dwsim_Version.zip').'</div>', + ); } $form['lab_details'] = array( @@ -185,13 +185,13 @@ function ajax_experiment_list_callback($form, $form_state) { if ($lab_details->solution_provider_uid > 0) { $commands[] = ajax_command_html('#ajax_selected_lab', l('Download Lab Solutions', 'lab-migration/download/lab/' . $lab_default_value)); if($lab_default_value=='2'){ - $commands[] = ajax_command_html('#ajax_selected_lab_freeeda', l('Download Lab Solutions (FreeEDA Version)', 'lab-migration_uploads/Open_Source_EDA_Lab_FreeEDA_Version.zip'));} - $commands[] = ajax_command_html('#ajax_selected_lab_pdf', l('Download PDF of Lab Solutions', 'lab-migration/generate-lab/' . $lab_default_value . '/1')); + $commands[] = ajax_command_html('#ajax_selected_lab_dwsim', l('Download Lab Solutions (dwsim Version)', 'lab-migration_uploads/dwsim_Version.zip'));} + /* $commands[] = ajax_command_html('#ajax_selected_lab_pdf', l('Download PDF of Lab Solutions', 'lab-migration/generate-lab/' . $lab_default_value . '/1'));*/ }else{ $commands[] = ajax_command_html('#ajax_selected_lab', ''); $commands[] = ajax_command_html('#ajax_selected_lab_pdf', ''); - $commands[] = ajax_command_html('#ajax_selected_lab_freeeda', ''); + $commands[] = ajax_command_html('#ajax_selected_lab_dwsim', ''); } $commands[] = ajax_command_html('#ajax_lab_details', _lab_details($lab_default_value)); @@ -209,7 +209,7 @@ function ajax_experiment_list_callback($form, $form_state) { $commands[] = ajax_command_html('#ajax_lab_details', ''); $commands[] = ajax_command_html('#ajax_selected_lab', ''); - $commands[] = ajax_command_html('#ajax_selected_lab_freeeda', ''); + $commands[] = ajax_command_html('#ajax_selected_lab_dwsim', ''); $commands[] = ajax_command_html('#ajax_selected_lab_pdf', ''); $commands[] = ajax_command_data('#ajax_selected_lab', 'form_state_value_select', $form_state['values']['lab']); $commands[] = ajax_command_html('#ajax_selected_experiment',''); |