<?
draw_TitleBar_GrayBlue('This One is Gray-Blue (default 75%)');
draw_TitleBar_GrayBlue('This another Gray-Blue (500 pixeles)','500px');
/* Genera un Titular en GRAY-BLUE */
function insert_TitleBar_GrayBlue($title, $witdh='75%', $center=true){
$ret=insert_TitleBar($title,'grayblue',$witdh,$center);
return $ret;
}
/* Muestra un Titular en GRAY-BLUE */
function draw_TitleBar_GrayBlue($title, $witdh='75%', $center=true){
$content=insert_TitleBar_GrayBlue($title,$witdh,$center);
echo $content;
}
/* Muestra un TitleBar */
function draw_TitleBar($title, $subclass, $witdh='75%', $center=true){
$content=insert_TitleBar($title,$subclass,$witdh,$center);
echo $content;
}
/* Genera un TitleBar */
function insert_TitleBar($title, $subclass, $witdh='75%', $center=true){
$ret='';
if($center){
$ret.='
<div>
<center>
';
}
$localWidth='';
if($witdh!=''){
$localWidth='width="'.$witdh.'"';
}
$tableclass='titlebartable'.$subclass;
$tabletdlclass='titlebartdl'.$subclass;
$tabletdcclass='titlebartdc'.$subclass;
$tabletdrclass='titlebartdr'.$subclass;
$ret.='
<table class="'.$tableclass.'" '.$localWidth.'>
<tr>
<td class="'.$tabletdlclass.'" ></td>
<td class="'.$tabletdcclass.'" >'.$title.'</td>
<td class="'.$tabletdrclass.'" ></td>
</tr>
</table>
';
if($center){
$ret.='
</center>
</div>
';
}
return $ret;
}
?>