// DISPLAY OF ALL USERS... $loopname = "user_loop"; $returncontent = $common->show_Username($db_object, $returncontent, $loopname); // DISPLAY OF ALL EMPLOYMENT TYPES... $mysql = "select id , type_{$default} as type from employment_type"; $emp_type_arr = $db_object->get_rsltset($mysql); $values['emptype_loop'] = $emp_type_arr; // DISPLAY ALL TECHNICAL SKILLS... $mysql = "select skill_id,skill_name from {$skills} where skill_type = 't'"; $skill_tech_arr = $db_object->get_rsltset($mysql); $values['skilltech_loop'] = $skill_tech_arr; // DISPLAY OF INTERPERSONAL SKILLS... $mysql = "select skill_id,skill_name from {$skills} where skill_type = 'i'"; $skill_inter_arr = $db_object->get_rsltset($mysql); $values['skillinter_loop'] = $skill_inter_arr; // CHECK OF LEARNING MODULE (IF PURCHASED)... $returncontent = $common->is_module_purchased($db_object, $xPath, $returncontent, $common->lfvar); // CHECK OF PERFORMANCE MODULE (IF PURCHASED)... $returncontent = $common->is_module_purchased($db_object, $xPath, $returncontent, $common->pfvar); // DISPLAY OF EEO CLASSES... $mysql = "select eeo_id , tag from {$opportunity_status}"; $eeo_arr = $db_object->get_rsltset($mysql); $values['eeomain_loop'] = $eeo_arr; $returncontent = $common->multipleloop_replace($db_object, $returncontent, $values, $sel_arr); $returncontent = $common->direct_replace($db_object, $returncontent, $values); echo $returncontent; } } $obj = new position_model(); $obj->select_components($db_object, $common, $default, $user_id, $post_var); include_once "footer.php";
} if (ereg("^weight_", $kk)) { list($un, $skill_id) = split("_", $kk); $weight_arr[$skill_id] = $vv; } if (ereg("^recommended_", $kk)) { list($un, $skill_id) = split("_", $kk); $recommended_arr[$skill_id] = $vv; } } $model_skills = $common->prefix_table('model_skills'); while (list($kk, $vv) = @each($level_arr)) { $level_chosen = $level_arr[$kk]; $weight_chosen = $weight_arr[$kk]; $recommended_chosen = $recommended_arr[$kk]; $mysql = "insert into {$model_skills} set model_id = '{$model_id}' , skill_id = {$kk} , level_chosen = '{$level_chosen}' , weight = '{$weight_chosen}' , recommended_level = '{$recommended_chosen}'"; //echo "$mysql<br>"; $db_object->insert($mysql); } } } $obj = new position_model(); if ($fSave) { $obj->save_data($db_object, $common, $post_var, $default, $user_id); $message = $error_msg['cModelSaved']; echo $message; } else { $obj->save_model_data($db_object, $common, $post_var, $default, $user_id); $obj->show_full_details($db_object, $common, $post_var, $default); } include_once 'footer.php';
$percent_val = $fWhatdone_val; } $mysql = "insert into {$model_components_1} set model_id = '{$model_id}' , differentiator_type = '{$diff}' , top_bottom = '{$value_t_b}' , percent_each = '{$percent_val}'"; $db_object->insert($mysql); //print_r($label_arr); for ($i = 0; $i < count($label_arr[i]); $i++) { $ival = $label_arr[i][$i]; $mysql = "insert into {$model_components_2} set model_id = '{$model_id}' , i_rated_as = '{$ival}'"; $db_object->insert($mysql); } for ($i = 0; $i < count($label_arr[t]); $i++) { $tval = $label_arr[t][$i]; $mysql = "insert into {$model_components_3} set model_id = '{$model_id}' , t_rated_as = '{$tval}'"; $db_object->insert($mysql); } if ($fdir_rep == 'sel_direct') { $model_sel_users = "dirrep"; } elseif ($fdir_rep == 'all') { $model_sel_users = "all"; } $mysql = "insert into {$model_components_4} set model_id = '{$model_id}' , sel_users = '{$model_sel_users}'"; $db_object->insert($mysql); //print_r($post_var); //exit; } } //END OF CLASS $obj = new position_model(); $obj->save_data($db_object, $common, $post_var, $user_id, $default, $error_msg); $obj->show_models($db_object, $common, $post_var, $user_id, $default, $error_msg, $gbl_files); include_once "footer.php";