$pos = "select position_name from {$position_table} where pos_id='{$title}'"; $posarr = $db_object->get_a_line($pos); $title = $posarr["position_name"]; } if ($interbasic_id == "14") { $foremail = "select email from {$user_table} where user_id='{$url}'"; $foremailarr = $db_object->get_a_line($foremail); $url = $foremailarr["email"]; } $s .= preg_replace("/<{(.*?)}>/e", "\$\$1", $mytext); } $inner = preg_replace("/<{text_loopstart}>(.*?)<{text_loopend}>/s", $s, $inner); $inner = preg_replace("/<{(.*?)}>/e", "\$\$1", $inner); $str .= $inner; } $outer = preg_replace("/<{ways1_loopstart}>(.*?)<{ways1_loopend}>/s", $str, $outer); $hidib_id = $hidib_id + $i; $outer = preg_replace("/<{(.*?)}>/e", "\$\$1", $outer); $string .= $outer; } $returncontent = preg_replace("/<{solution_loopstart}>(.*?)<{solution_loopend}>/s", $string, $returncontent); $array["skill_id"] = $skills; $array["nooftext"] = $nooftext; $returncontent = $common->direct_replace($db_object, $returncontent, $array); echo $returncontent; } } $obj = new solution(); $obj->show_form($db_object, $common, $default, $_POST, $user_id, $error_msg); $obj->save_finish_later($db_object, $common, $default, $_POST, $user_id, $error_msg); include "footer.php";
<?php include "../session.php"; include "header.php"; class solution { function insert($db_object, $common) { $xFile = "../templates/admin/dev_solution.html"; $xTemplate = $common->return_file_content($db_object, $xFile); echo $xTemplate; } } $obj = new solution(); $obj->insert($ob_object, $common);
$message = preg_replace("/\\[(.*?)\\]/e", "\$\$1", $message); $common->send_mail($to, $subject, $message, $from); $sql = "update {$assign_solution_builder} set status='a' where user_id='{$user_id}' and skill_id='{$skill_id}'"; $db_object->insert($sql); } } function approval_form($db_object, $common, $_POST) { $path = $common->path; $xFile = $path . "/templates/learning/approval_form.html"; $returncontent = $common->return_file_content($db_object, $xFile); $returncontent = $common->direct_replace($db_object, $returncontent, $array); echo $returncontent; } } $obj = new solution(); if ($submit1) { $action = "submit"; } else { if ($save) { $action = "save"; } else { if ($back) { $action = "back"; } else { if ($back1) { $action = ""; } else { if ($show) { $action = "show"; }
$textbox = $db_object->get_a_line($confi); $nooftext = $textbox["dev_textbox"]; for ($k = 0; $k < $nooftext; $k++) { $text = $k; $mysql = "select title,description,url,build_id from {$approved_devbuilder} \n\t\t\t\t\twhere skill_id='{$skills}' and user_id='{$user_id}'and basic_id='5' \n\t\t\t\t\tand interbasic_id='{$interbasic_id}'and key_id='{$text}'"; $arr = $db_object->get_a_line($mysql); $buildid = $arr["build_id"]; $title = $arr["title"]; $desc = $arr["description"]; $url = $arr["url"]; if ($interbasic_id == "14") { $foremail = "select email from {$user_table} where user_id='{$url}'"; $foremailarr = $db_object->get_a_line($foremail); $url = $foremailarr["email"]; } $s .= preg_replace("/<{(.*?)}>/e", "\$\$1", $mytext); } $inner = preg_replace("/<{text_loopstart}>(.*?)<{text_loopend}>/s", $s, $myvar); $inner = preg_replace("/<{(.*?)}>/e", "\$\$1", $inner); $str .= $inner; } $returncontent = preg_replace("/<{ways1_loopstart}>(.*?)<{ways1_loopend}>/s", $str, $returncontent); $array["skill_id"] = $skills; $array["nooftext"] = $nooftext; $returncontent = $common->direct_replace($db_object, $returncontent, $array); echo $returncontent; } } $obj = new solution(); $obj->show_form($db_object, $common, $default, $_GET, $user_id, $error_msg); include "footer.php";