$df1 = OutputField($flexi_fields_css, $flexifield1, $ft1); } if ($checkf2 !== false) { $df2 = OutputField($flexi_fields_css, $flexifield2, $ft2); } if ($checkf3 !== false) { $df3 = OutputField($flexi_fields_css, $flexifield3, $ft3); } if ($checkf4 !== false) { $df4 = OutputField($flexi_fields_css, $flexifield4, $ft4); } if ($checkf5 !== false) { $df5 = OutputField($flexi_fields_css, $flexifield5, $ft5); } if ($checkf6 !== false) { $df6 = OutputField($flexi_fields_css, $flexifield6, $ft6); } $sharefb = '<a name="fb_share" type="button" href="http://www.facebook.com/sharer.php?u=' . $link . '&t=' . $row->title . '">' . $fbshare . '</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>'; $turl = get_tiny_url($link); $tweetthis = '<a target="_blank" href="http://twitter.com/home?status=' . $titolo . ' (' . $turl . ')"><img src="modules/mod_aidanews/twitter.gif"/></a>'; //No default image if ($params->get('hide_default_image') && $image == $image_default) { $dimage = ""; } $patterns = array('/\\[title\\]/', '/\\[date\\]/', '/\\[author\\]/', '/\\[category\\]/', '/\\[comments\\]/', '/\\[hits\\]/', '/\\[rating\\]/', '/\\[readmore\\]/', '/\\[image\\]/', '/\\[clear\\]/', '/\\[empty\\]/', '/\\[addcomments\\]/', '/\\[flexif1\\]/', '/\\[flexif2\\]/', '/\\[flexif3\\]/', '/\\[flexif4\\]/', '/\\[flexif5\\]/', '/\\[flexif6\\]/', '/\\[fb\\]/', '/\\[tweet\\]/', '/\\[id\\]/'); $replace = array($dtitle, $ddate, $dauthor, $dcat, $dcomm, $dhits, $drating, $drm, $dimage, $dclear, $dempty, $daddcomm, $df1, $df2, $df3, $df4, $df5, $df6, $sharefb, $tweetthis, $row->id); if ($top1) { if ($divcheck == 0) { $top1 = '<div> ' . $top1 . ' </div>'; } echo preg_replace($patterns, $replace, $top1);
function ShowTotals($report, &$totals, $heading) { $max_row = 1; ?> <?php for ($rowno = 1; $rowno <= 1; $rowno++) { ?> <tr class="row<?php echo $rowno; ?> "> <?php foreach ($report->field as $field) { ?> <?php if (!isset($field->row)) { $field->row = 1; } $field->row = (int) $field->row; if ($field->row > $max_row) { $max_row = $field->row; } if ($field->row > 0 && $field->row != $rowno) { continue; } ?> <?php $name = $field->name; ?> <th <?php if (isset($field->span)) { echo " colspan='" . (int) $field->span . "' "; } ?> > <?php if (isset($field->totalheader)) { echo $heading; } else { if (isset($field->sum)) { echo OutputField($field, $totals[$field->name]); } } ?> </th> <?php } ?> </tr> <?php } foreach ($totals as $offset => $value) { $totals[$offset] = 0; } }