certificate_text; preg_match_all("/\[(.*?)\]/", $text, $matches); for ($i = 0; $i < count($matches[0]); $i++) { if ($matches[0][$i] == '[name]') { $text = str_replace($matches[0][$i], $name, $text); } if ($matches[0][$i] == '[dob]') { $text = str_replace($matches[0][$i], $dob, $text); } if ($matches[0][$i] == '[present_address]') { $text = str_replace($matches[0][$i], $address, $text); } if ($matches[0][$i] == '[guardian]') { $text = str_replace($matches[0][$i], $guardian_name, $text); } if ($matches[0][$i] == '[created_at]') { $text = str_replace($matches[0][$i], $admission_date, $text); } if ($matches[0][$i] == '[admission_no]') { $text = str_replace($matches[0][$i], $admission_no, $text); } if ($matches[0][$i] == '[roll_no]') { $text = str_replace($matches[0][$i], $roll_no, $text); } if ($matches[0][$i] == '[class]') { $text = str_replace($matches[0][$i], $class, $text); } if ($matches[0][$i] == '[section]') { $text = str_replace($matches[0][$i], $section, $text); } if ($matches[0][$i] == '[gender]') { $text = str_replace($matches[0][$i], $gender, $text); } if ($matches[0][$i] == '[admission_date]') { $text = str_replace($matches[0][$i], $admission_date, $text); } if ($matches[0][$i] == '[category]') { $text = str_replace($matches[0][$i], $category, $text); } if ($matches[0][$i] == '[cast]') { $text = str_replace($matches[0][$i], $cast, $text); } if ($matches[0][$i] == '[father_name]') { $text = str_replace($matches[0][$i], $father_name, $text); } if ($matches[0][$i] == '[mother_name]') { $text = str_replace($matches[0][$i], $mother_name, $text); } if ($matches[0][$i] == '[religion]') { $text = str_replace($matches[0][$i], $religion, $text); } if ($matches[0][$i] == '[email]') { $text = str_replace($matches[0][$i], $email, $text); } if ($matches[0][$i] == '[phone]') { $text = str_replace($matches[0][$i], $phone, $text); } } ?>
|
enable_student_image == 1) {?>
|
||
| left_header; ?> | center_header; ?> | right_header; ?> |
| left_footer; ?> | center_footer; ?> | right_footer; ?> |