function vmn_doMySubscriptionsRow(&$evencount, $title, $id, $i, $checked, $description, $checkedsms, $showcount = true) { echo '<table width="100%" cellspacing="0">'; vmn_doCountingTableRow($evencount); if ($showcount) { echo '<td width="30" align="center">' . ($i + 1) . '</td>'; } echo '<td width="30"><input type="checkbox" id="cb' . $i . '" name="cid[]" value="' . $id . '"'; if (count($checked)) { echo in_array($id, $checked) ? 'checked' : ''; } echo '></td>'; ?> <td width="49%"><?php echo $title; ?> </td> <td width="49%"><?php echo $description; ?> </td> <td width="20"><?php if (count($checkedsms)) { echo in_array($id, $checkedsms) ? '<img src="components/com_vemod_news_mailer/sms.gif" />' : ' '; } echo '</td></tr></table>'; }
} echo '</td></tr></table>'; } } else { vmn_doMySubscriptionsRow($evencount, $sresults[$i]->title, -$sresults[$i]->id, $i, $checked, $sfdescription[-$sresults[$i]->id], $scheckedsms); } } if (@$frontendtree) { $j = 0; $i = 0; if ($nccatcount) { foreach ($ncsecs as $ncsec) { $i1 = 0; $secid = array_search($ncsec, $ncsecs, true); echo '<table width="100%" cellspacing="0">'; vmn_doCountingTableRow($evencount); echo '<td><div style="padding-left:10px;"><img id="ncsection' . $secid . '_collapse' . '" src="components/com_vemod_news_mailer/expandall.png" onclick="javascript:collapseSection(\'ncsection' . $secid . '\');" /></div></td> <td width="30"><input type="checkbox" id="cb' . (count($results) + $seccount + $j) . '" name="togglesection' . $secid . '" value="" onclick="javascript:checkSection(\'ncsection' . $secid . '\',' . ($seccount + $i) . ',' . count($ncsec) . ',this);" '; if (in_array($secid, $ncsecchecked)) { echo 'checked '; } echo '/> </td> <td width="49%">' . vmn_getCatTitle(-$secid) . '</td> <td width="49%">' . @$sfdescription[-$secid] . '</td><td width="20"> </td></tr></table>'; echo '<table width="100%" id="ncsection' . $secid . '" style="display:none;" cellpadding="0"><tr width="100%"><td width="30"><div style="padding-left:28px;"> </div></td><td width="99%" style="border:1px solid #AAAAAA;">'; foreach ($ncsec as $nccat) { $evencount--; vmn_doMySubscriptionsRow($evencount, $nccat->title, $nccat->id, $i + $seccount, $checked, $fdescription[$nccat->id], $checkedsms, false); $i++; $i1++;