5) { $set_height="height:130px"; } if($rowcount>0) { $resume_cont.='
"; $resume_cont.='
Positions Available
'; $resume_cont.="
"; while(list($Job_Id,$Job_Code,$Job_Title) = mysql_fetch_array($result)) { $Job_Id=wordwrap($Job_Id,"25","
",1); $Job_Code=wordwrap($Job_Code,"25","
",1); $Job_Title=wordwrap($Job_Title,"25","
",1); if($rowcount%2 == 0) { $resume_cont.=" "; } else { $resume_cont.=" "; } $rowcount =$rowcount+1; } $resume_cont.="
$Job_Title ($Job_Code)
$Job_Title ($Job_Code)


'; $result = mysql($db,"select Job_Id,Job_Code,Job_Title,Field1_Caption,Field1_Content,Field2_Caption,Field2_Content,Field3_Caption,Field3_Content,Field4_Caption,Field4_Content,Field5_Caption,Field5_Content,Field6_Caption,Field6_Content,Field7_Caption,Field7_Content,Status from ".Job." where Status = 'A' order by Job_Title"); while(list($Job_Id,$Job_Code,$Job_Title,$field1_caption,$field1_content,$field2_caption,$field2_content,$field3_caption,$field3_content,$field4_caption,$field4_content,$field5_caption,$field5_content,$field6_caption,$field6_content,$field7_caption,$field7_content,$active) = mysql_fetch_array($result)) { $resume_cont.=''; for($i=1;$i<=7;$i++) { $field = "field".$i."_caption"; $cont = "field".$i."_content"; if($$field != "" && $$cont != "") { $resume_cont.=''; } } $resume_cont.="
'.$Job_Code.' - '.$Job_Title.' top
'.$$field.'
'.$$cont.'
Click here to post resume

"; } $resume_cont.='
'; $immeopen="Micromax has immediate openings in the following technologies:"; } else { $resume_cont='
There are no current job openings. Please check back soon.
'; } // To read the template and write the contents //============================================ $temp=fopen("../templates/user_template.html","r"); $template_content=fread($temp,filesize("../templates/user_template.html")); fclose($temp); $template_content = ereg_replace('',$resume_cont,$template_content); $template_content = ereg_replace('',$immeopen,$template_content); echo $template_content; ?>