hi,
i am doing a report.in that report, i have used merged columns dynamically.and in that columns i want to separate that records with single border.
here is my code of my reportview.php
in which i want single border.
for($sub=0;$sub<count($subject);$sub++)
{
if($subject[$sub]!=0)
{
if($cols[$sub]>1)
{
$count=$comb_subject[$sub];
$cols_sub=$cols[$sub];
print "<th colspan=".$cols_sub."><table border='1'><tr>";
for($c=0;$c<$count;$c++)
{
[b]print '<th style="border-right:thin solid #74B9F0 ;border-left:thin solid #74B9F0" width='.(100/$count).'%>'.SubjectMaster::model()->findByPk($subject[$sub])->subject_master_name."</th>";
$sub++;[/b]
}
print "</tr></table></th>";
$sub--;
}
else
{
print '<th>'.SubjectMaster::model()->findByPk($subject[$sub])->subject_master_name.' </th>';
}
}
else
print '<th >-</th>';
}
pls suggest solution
thanks