<?php $bgcolor = CobaltHelper::percent2Color($goal['goal_info'] / $goal['amount'] * 100); ?> <div class="goal_info_progress_total bar" style="background-color:#<?php echo $bgcolor; ?> ;width:<?php echo number_format($goal['goal_info'] / $goal['amount'] * 100); ?> %;"></div> </div> <div class="clearfix"> <span class="goal_info_out_of"> <?php if ($goal['goal_type'] == 'win_cash') { echo ConfigHelper::getCurrency() . (int) $goal['goal_info']; ?> <?php echo TextHelper::_("COBALT_OUT_OF"); ?> <?php echo ConfigHelper::getConfigValue('currency'); echo $goal['amount'] . " " . TextHelper::_('COBALT_WON'); } if ($goal['goal_type'] == 'win_deals') { echo (int) $goal['goal_info']; ?> <?php echo TextHelper::_("COBALT_OUT_OF"); ?> <?php
} ?> <?php if ($event['deal_name'] != "") { ?> <div data-role="collapsible"> <h3><?php echo ucwords(TextHelper::_('COBALT_ASSOCIATED_DEALS')); ?> </h3> <ul data-inset='true' data-role='listview' data-theme="c"> <li> <a href="<?php echo RouteHelper::_('index.php?view=deals&layout=deal&id=' . $event['association_id']); ?> "> <h3><?php echo $event['deal_name']; ?> </h3> <div class="ui-li-count"><?php echo ConfigHelper::getCurrency() . $event['deal_amount']; ?> </div> </a> </li> </ul> </div> <?php }
<?php } ?> <td><a href="<?php echo RouteHelper::_("index.php?view=deals&layout=deal&id=" . $report['id']); ?> "><?php echo $report['name']; ?> </a></td> <td><?php echo $report['owner_first_name'] . " " . $report['owner_last_name']; ?> </td> <td><?php echo ConfigHelper::getCurrency() . $report['amount']; ?> </td> <td><?php echo $report['source_name']; ?> </td> <td><?php echo $report['stage_name']; ?> </td> <td><?php echo $report['percent']; ?> %</td> <td><div class="deal-status-<?php
<?php if ($app->input->get('view') != "print") { ?> <td> </td> <?php } ?> <td><?php echo TextHelper::_('COBALT_SALES_PIPELINE'); ?> </td> <td> </td> <td> </td> <td> <?php echo ConfigHelper::getCurrency(); ?> <span id="total_amount"> <?php if (count($this->reports) > 0) { $total = 0; foreach ($this->reports as $key => $report) { $total += $report->amount; } echo $total; } ?> </span> </td> <td> </td> <td> </td>
$custom_field_filter = array_key_exists('selected', $value) && $value['selected'] != 0 && $value['selected'] != "0000-00-00 00:00:00" ? DateHelper::formatDate($value['selected']) : ""; break; case "picklist": $custom_field_filter = is_array($value) && array_key_exists('values', $value) && is_array($value['values']) && array_key_exists('selected', $value) && array_key_exists($value['selected'], $value['values']) ? $value['values'][$value['selected']] : ""; break; } echo '<tr>'; echo '<th class="customFieldHead">' . $value['name'] . '</th>'; echo '<td>'; //determine type of input switch ($value['type']) { case "text": case "number": case "currency": case "picklist": case "date": echo '<span>' . $custom_field_filter . '</span>'; break; case "forecast": echo '<span class="forecast">'; echo ConfigHelper::getCurrency() . $custom_field_filter; echo '</span>'; break; } echo '</td>'; echo '</tr>'; } echo '</div>'; echo '</table>'; echo '</div>'; }
echo RouteHelper::_("index.php?view=deals&layout=deal&id=" . $report->id); ?> "><?php echo $report->name; ?> </a></td> <td><?php echo $report->owner_first_name . " " . $report->owner_last_name; ?> </td> <td><?php echo $report->summary; ?> </td> <td><?php echo ConfigHelper::getCurrency() . $report->amount; ?> </td> <td><?php echo $report->stage_name; ?> </td> <td><?php echo $report->percent; ?> %</td> <td><div class="deal-status-<?php echo strtolower($report->status_name); ?> "></div></td> <td><?php
defined('_CEXEC') or die('Restricted access'); for ($i = 0; $i < count($this->deals); $i++) { $deal = $this->deals[$i]; ?> <div class="widget"> <h2><a href="<?php echo RouteHelper::_('index.php?view=deals&layout=deal&id=' . $deal->id); ?> "><?php echo $deal->name; ?> </a></h2> <div class="details"> <div class="row-fluid"> <span class="well well-small col-md-4"><?php echo TextHelper::_('COBALT_AMOUNT') . ": " . ConfigHelper::getCurrency() . $deal->amount; ?> </span> <span class="well well-small col-md-4"><?php echo TextHelper::_('COBALT_DEAL_STAGE') . ": " . $deal->stage_name; ?> </span> <span class="well well-small col-md-4"><?php echo TextHelper::_('COBALT_OWNER') . ": " . $deal->owner_first_name . " " . $deal->owner_last_name; ?> </span> </div> </div> <div class="events"> <table class="table table-bordered table-striped table-hover"> <thead>
<td><?php echo $source['name']; ?> </td> <td><?php echo $source['number_of_deals']; ?> </td> <td><?php echo $source['revenue']; ?> </td> <td> <?php if ($source['type'] != 'per') { echo ConfigHelper::getCurrency() . $source['cost']; } else { $cost = $source['cost'] * $source['number_of_deals']; echo ConfigHelper::getCurrency() . $cost; } ?> </td> <td> <?php echo (int) $source['roi'] . "%"; ?> </td> </tr> <?php } //}
echo $deal->name; ?> </a> </div> </td> <td class="company"> <a href="<?php echo RouteHelper::_('index.php?view=companies&layout=company&id=' . $deal->company_id); ?> "><?php echo $deal->company_name; ?> </a><br> </td> <td class="amount"><?php echo ConfigHelper::getCurrency() . $deal->amount; ?> </td> <td class='status' > <div class='dropdown'> <a href='javascript:void(0);' class='dropdown-toggle update-toggle-html' role='button' data-toggle='dropdown' id="deal_status_<?php echo $deal->id; ?> _link"> <span class="deal-status-<?php echo $deal->status_name; ?> "></span> </a> <ul class="dropdown-menu" aria-labelledby="deal_stage_<?php echo $deal->id;