Latest date format (British) or (General)

`

//For Insert in date base--
$valid_from = ($_REQUEST['valid_from'] == '') ? '' : StringUtility::setFormatedDateBritish($_REQUEST['valid_from']);

//For view in textfield--
value="<?php ?echo ($valid_from == '') ? '' : StringUtility::getFormatedDateBritish($valid_from); ?>"

//if date format is simple then use?getFormatedDate instead of?getFormatedDateBritish

`

after a time period function calling

$(document).ready(function(){
fadeInFadeOut();
var a = 0;
function fadeInFadeOut(){
setTimeout(function(){
if(a == 0){
$(‘#fade’).html(“0121 348 7690”).fadeIn(“slow”);
a=1;
fadeInFadeOut();
}else{
$(‘#fade’).html(“CALL US FREE”).fadeIn(“slow”);
a=0;
fadeInFadeOut();
}
},3000
);
}
})

odd even tr color

$j = 0;
foreach ($student_notes as $i => $value) {
$j = ($j == 0) ? 1 : 0;
$bg_color = ($j == 0) ? “” : “bgcolor=’#f5f5f5′”;
$updatedBy = Admin::getAdminUserById($value[‘updated_by’]);
?>
<tr <?php echo $bg_color; ?>>