isMobile() ? 'mobile' : 'desktop'); setcookie("device", $layout, time() + 604800, "/"); // if layout mobile - workout mobile layout if($layout=='mobile'){$device = MobileLayout($detect->isMobile());} }else{ $isMobile = ($_COOKIE['device']=='mobile' ? true : false); if($isMobile==true){$device = MobileLayout($isMobile);} } $content = "

Cover Letter

What is a cover letter?
A cover letter is a brief one page letter sent along with the resume to potential employers. The purpose of the cover letter is to present yourself to potential employers and to let them know what position you are interested in and why you'd be a good fit for their company.

Cover Letter Format
The cover letter format should be almost identical to the regular business letter format.

Cover Letter Writing
Generally the cover letter will consist of three paragraphs. The first paragraph is an introductory one which introduces yourself. You want to include information on the position you are looking for and how you heard about and why you are interested in the position and/or company.

The second paragraph should provide information on your skill, strengths, education, qualifications and/or experience. This paragraph should be concise and give specific examples of why you are the ideal candidate and not simply restate your resume.

The final paragraph should close up the letter by requesting an interview and possibly suggestion times that are convenient for you or stating that you can come in at a time that's convenient for the employer. Also you should let the recipient know what the best way and/or time to contact you is (you should let them know both your contact email and phone number so that they can contact you in their preferred method). Or you can let them that you'll follow up on this letter with a phone call in several days. You should thank them for their time to close up the letter.

Each cover letter that you send out should be unique and tailored to the specific company and position you are applying to. Using one cookie cutter cover letter will lessen your chances for landing an interview. Also be sure to check for grammar and spelling and keep the letter to one page in length. "; $title = "Cover Letter"; $desc = "Cover letters are attached with a resume to potential employers. Its format is written in a business format consisting of three paragraphs."; $tplbody= file_get_contents($index_tpl); $header= file_get_contents($header_tpl); $footer= file_get_contents($footer_tpl); $guide= file_get_contents("../guide_writing.html"); $tplbody = str_replace("{header}", $header, $tplbody); $tplbody = str_replace("{footer}", $footer, $tplbody); $tplbody = str_replace("{ft_year}", date('Y'), $tplbody); $tplbody = str_replace("{guide_writing}", $guide, $tplbody); $tplbody = str_replace("{content}", $content, $tplbody); $tplbody = str_replace("{title}", $title, $tplbody); $tplbody = str_replace("{desc}", $desc, $tplbody); echo $tplbody; /* ########### MOBILE FUNCTIONS --- START ############ */ /* *************************************************** */ // function to manage the template layouts for either desktop or mobile function MobileLayout($isMobile, $test = ""){ // assign global variables, retrieve detection class global $index_tpl;global $header_tpl;global $footer_tpl;global $mob_index_tpl;global $mob_header_tpl;global $mob_footer_tpl;global $device_switch;global $request_uri; $request_uri = ($request_uri ? $request_uri : $_SERVER['REQUEST_URI']); $layouts_arr=array('desktop', 'mobile'); // determining layout if(isset($_GET['layout'])){$layout = $_GET['layout'];}else{if(empty($_COOKIE['layout'])){$layout=($isMobile ? 'mobile' : 'desktop');}else{$layout=$_COOKIE['layout'];$dont_set_cookie = true;}} // if fails choose desktop as default if (!in_array($layout, $layouts_arr)){$layout='desktop';} // setting layout COOKIE if needed if($dont_set_cookie!=true){setcookie("layout", $layout, time() + 604800, "/");} // determine which layout depending on COOKIE $cssSelected="font-weight:bold;text-decoration:none!important;"; if($layout=='mobile' || $test=="test"){$index_tpl=$mob_index_tpl;$header_tpl=$mob_header_tpl;$footer_tpl=$mob_footer_tpl;$mobClass=$cssSelected;$deskClass='';}else{$mobClass='';$deskClass=$cssSelected;} // show device switch if mobile only if($isMobile){$qs = $request_uri;$device_switch = '
mobile site | desktop site
';} return array("type"=>$layout,"mobile"=>$isMobile); } // function to add query string or replace value if exists function addQueryString($url, $key, $value) {$urlarray = explode('?',$url);$query = '';if(isset($urlarray[1])) {$query = $urlarray[1];}parse_str($query,$queryarray);$queryarray[$key]=$value;$queryarray = http_build_query($queryarray);return $urlarray[0].'?'.$queryarray;} /* *************************************************** */ /* ########### MOBILE FUNCTIONS --- END ############## */ ?>