Skip to content

Instantly share code, notes, and snippets.

@markphi2013
Created July 26, 2013 09:28
Show Gist options
  • Save markphi2013/6087547 to your computer and use it in GitHub Desktop.
Save markphi2013/6087547 to your computer and use it in GitHub Desktop.
hi
<?php
echo $this->Html->tag(
'div',
'<b title = "'.__('Optin / Total participant(s)').'">'.$program['Program']['stats']['active-participant-count'].'/'.
$program['Program']['stats']['participant-count'].'</b> '.__(' participant(s)').'<br/>'.
'<b title = "'.__('Total (total current month) message(s)').'">'.$program['Program']['stats']['history-count'].'('.
$program['Program']['stats']['total-current-month-messages-count'].') </b>'.__(' total message(s)').'<br/>'.
'<b title = "'.__('Total (current month) received - Total(current month) sent').'">'.$program['Program']['stats']['all-received-messages-count'].'('.
$program['Program']['stats']['current-month-received-messages-count'].') </b>'.__('received').
' - <b title = "'.__('Total (current month) received - Total (current month) sent').'">'.$program['Program']['stats']['all-sent-messages-count'].'('.
$program['Program']['stats']['current-month-sent-messages-count'].')</b>'.__(' sent message(s)').'<br/>'.
'<b title = "'.__('Total (today) schedule(s)').'">'.$program['Program']['stats']['schedule-count'].'('.
$program['Program']['stats']['today-schedule-count'].')</b>'.__(' schedule(s)'),
array('class'=>'ttc-program-stats')
);
?>
@overnin
Copy link

overnin commented Jul 26, 2013

echo '<div class="ttc-program-stats">';
echo  $this->Html->tag(
        'b',
        $program['Program']['stats']['active-participant-count']
        array('title' => __('Optin / Total participant(s)'))
echo  $this->Html->tag(...
echo  $this->Html->tag(....
echo  $this->Html->tag(...
echo '</div>';

@markphi2013
Copy link
Author

'; echo $this->Html->tag( 'b', $program['Program']['stats']['active-participant-count'].'/'. $program['Program']['stats']['participant-count'], array('title' => __('Optin / Total participant(s)'))); echo __(' participant(s)').'
'; echo $this->Html->tag( 'b', $program['Program']['stats']['history-count'].'('. $program['Program']['stats']['total-current-month-messages-count'].')', array('title' => __('Total (total current month) message(s)'))); echo __(' total message(s)').'
'; echo $this->Html->tag( 'b', $program['Program']['stats']['all-received-messages-count'].'('. $program['Program']['stats']['current-month-received-messages-count'].')', array('title' => __('Total (current month) received - Total(current month) sent'))); echo __(' received '); echo $this->Html->tag( 'b', $program['Program']['stats']['all-sent-messages-count'].'('. $program['Program']['stats']['current-month-sent-messages-count'].')', array('title' => __('Total (current month) received - Total(current month) sent'))); echo __(' sent message(s)').'
'; echo $this->Html->tag( 'b', $program['Program']['stats']['schedule-count'].'('. $program['Program']['stats']['today-schedule-count'].')', array('title' => __('Total (today) schedule(s)'))); echo __(' schedule(s)'); echo ''; ?>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment