EOF; $colleges = array(); $colleges[] = newCollege("Rochester Institute of Technology", "Software Engineering", "2015-2019", "images/rit.gif"); $colleges[] = newCollege("Vermont Technical College", "Computer Engineering", "2014-2015", "images/vtc.png"); $jobs = array(); $jobs[] = newEmployment("Rochester Institute of Technology", "Software Developer", "2015-2016", "images/rit.gif", '9 Bug fixes<br /> 2 Feature Improvements<br /> 1 Major Improvement<br/>Overhauled <a class="show" href="http://start.rit.edu/">start.rit.edu</a> and added a mobile interface'); $jobs[] = newEmployment("Vermont Agency of Transportation", "Technical Apprentice I", "2015", "images/vtran.png", "Improved efficiency of the on-campus lab, with new logging and reports for samples."); $jobs[] = newEmployment("Vermont Technical College", "IT Helpdesk", "2014-2015", "images/vtc.png", "Took inventory of computers, repaired and setup computers, and on call support."); $jobs[] = newEmployment("Vermont Technical College", "CIS-2261 Teacher Assistant", "2015-2015", "images/vtc.png", "Helped students with Java Programming."); $jobs[] = newEmployment("Vermont Technical College", "Teacher Assistant", "2014-2014", "images/vtc.png", "Helped students with Website Development."); $languages = array(); $languages[] = newLanguage("Java", 3); $languages[] = newLanguage("C#", 2); $languages[] = newLanguage("PHP", 2); $languages[] = newLanguage("SQL", 1); $languages[] = newLanguage("Regex", 1); foreach ($colleges as $college) { $content .= ' <div class="subsection"><div><div class="text"> <h4>' . $college["NAME"] . '</h4><br/> ' . $college["DEGREE"] . '<br/> ' . $college["YEARS"] . '</div> <img src="' . $college["IMG"] . '"></div> </div> '; } $content .= <<<EOF </div> <div class="group"> <h2>Employment</h2> EOF;
function saveLanguage($smarty, $module_name, $local_templates_dir, $arrLang, $arrLangModule, $oForm) { $oPalo = new paloSantoLanguageAdmin(); $option = $_POST['option']; if (isset($option) && $option == 'select_language') { $newLang = getParameter("language_new"); $bandera = $oPalo->saveNewLanguage($newLang); if (!$bandera) { $smarty->assign("mb_title", $oPalo->errMsg['head'] . ":"); $smarty->assign("mb_message", $oPalo->errMsg['body']); } else { $smarty->assign("mb_title", $arrLangModule["Message"]); $smarty->assign("mb_message", $arrLangModule["Language saved succetiful"]); } } else { $module_name_L = getParameter("select_module"); $lang_name_L = getParameter("select_lang"); $lang_english_L = getParameter("lang_english"); $lang_traslate_L = getParameter("lang_traslate"); $bandera = $oPalo->saveTraslate($module_name_L, $lang_name_L, $lang_english_L, $lang_traslate_L); if (!$bandera) { $smarty->assign("mb_title", $oPalo->errMsg['head'] . ":"); $smarty->assign("mb_message", $oPalo->errMsg['body']); } else { $smarty->assign("mb_title", $arrLangModule["Message"]); $smarty->assign("mb_message", $arrLangModule["Traslate saved succetiful"]); } } return newLanguage($smarty, $module_name, $local_templates_dir, $arrLang, $arrLangModule); }