<span id="offices.span"> <table width="100%" border="0" class="type-one" id="offices.table"> <tr class="type-one-header"> <th width="10%" bgcolor="#D6D6D6"><strong>Employee No.</strong></th> <th width="28%" bgcolor="#D6D6D6"><strong>Employee Name</strong></th> <th width="20%" bgcolor="#D6D6D6">Balance </th> <th width="29%" bgcolor="#D6D6D6">As of (yyyy-mm-dd)</th> </tr> <?php $i = 0; ?> <?php foreach ($rows as $row) { ?> <?php $c = CompensatoryTimeoff::getId($row['employee_id']); $onclick0 = "onClick=\"dg_editCell(offices,'" . $c->id . "','days','offices.0.{$i}', 'cto_balance')\""; $onclick1 = "onClick=\"dg_editCell(offices,'" . $c->id . "','dates','offices.1.{$i}', 'cto_balance')\""; ?> <?php $bg = $this->Helps->set_line_colors(); ?> <tr bgcolor="<?php echo $bg; ?> " onmouseover="this.bgColor = '<?php echo $this->config->item('mouseover_linecolor'); ?> ';" onmouseout ="this.bgColor = '<?php echo $bg;