<div class="container-fluid"> <?php echo $this->menu['quick_menu']->render(); ?> <div class="row-fluid"> <div class="span12" id="content"> <div id="system-message-container"></div> <div class="row-fluid"> <?php echo $this->menu['menu']->render(); ?> <div class="span9"> <form action="index.php?view=sources" method="post" name="adminForm" id="adminForm" class="form-validate" > <div class="row-fluid"> <legend><h3><?php echo TextHelper::_('COBALT_EDITING_SOURCE'); ?> </h3></legend> <label><b><?php echo JText::_('COBALT_NAME'); ?> </b></label> <input type="text" class="form-control" name="name" value="<?php echo $this->source['name']; ?> " /> <label><b><?php echo JText::_('COBALT_HEADER_SOURCE_COST'); ?> </b></label> <input type="text" class="form-control" name="cost" value="<?php
<div class="row-fluid"> <div class="span12" id="content"> <div id="system-message-container"></div> <div class="row-fluid"> <?php echo $this->menu['menu']->render(); ?> <div class="span9"> <form action="index.php?view=categories" method="post" name="adminForm" id="adminForm" class="form-validate" > <div class="row-fluid"> <legend><h3><?php echo TextHelper::_('COBALT_EDITING_CATEGORY'); ?> </h3></legend> <label><b><?php echo TextHelper::_('COBALT_NAME'); ?> </b></label> <input type="text" class="form-control" name="name" value="<?php echo $this->category['name']; ?> " /> <div> <?php if ($this->category['id']) { ?> <input type="hidden" name="id" value="<?php echo $this->category['id']; ?> " /> <?php
</span> </a> </li> <li data-theme="c"> <a href="<?php echo RouteHelper::_('index.php?view=companies'); ?> "> <img class='ui-li-icon' src='<?php echo JURI::root(); ?> //media/images/mobile/companies.png' /> <?php echo ucwords(TextHelper::_('COBALT_COMPANIES')); ?> <span class='ui-li-count'><?php echo $this->numCompanies; ?> </span> </a> </li> </ul> <div style="float:right;font-size:8px;"><a href="javascript:void(0);" onclick="window.location='<?php echo RouteHelper::_('index.php?view=dashboard&mobile=no'); ?> ';"><?php echo TextHelper::_('COBALT_TOGGLE_DESKTOP_VIEW'); ?> </a></div> </div>
?> "> <td><a href="<?php echo RouteHelper::_('index.php?view=reports&layout=custom_report&id=' . $report['id']); ?> "><?php echo $report['name']; ?> </a></td> <td><?php echo DateHelper::formatDate($report['modified']); ?> </td> <td><?php echo DateHelper::formatDate($report['created']); ?> </td> <td> <a href="<?php echo RouteHelper::_('index.php?view=reports&layout=edit_custom_report&id=' . $report['id']); ?> "><?php echo TextHelper::_('COBALT_EDIT_BUTTON'); ?> </a> | <a href="javascript:void(0);" class="delete delete_custom_report"><i class="glyphicon glyphicon-trash"></i></a> </td> </tr> <?php }
<td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <?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; }
<div class="col-sm-12" id="content"> <div id="system-message-container"></div> <div class="row-fluid"> <?php echo $this->menu['menu']->render(); ?> <div class="col-md-9"> <form action="index.php?view=templates" method="post" name="adminForm" id="adminForm" class="form-validate" > <div class="row-fluid"> <fieldset class="adminform"> <div class="page-header"> <?php echo $this->toolbar->render(); ?> <h3><?php echo TextHelper::_("COBALT_EDITING_WORKFLOW"); ?> </h3> </div> <div class="form-group"> <label><b><?php echo JText::_('COBALT_NAME'); ?> </b></label> <input type="text" class="form-control" name="name" rel="tooltip" data-original-title="<?php echo JText::_('COBALT_NAME_YOUR_WORKFLOW'); ?> " value="<?php echo $this->template['name']; ?> " />
echo TextHelper::_('COBALT_PRINT'); ?> </a> <?php if (UsersHelper::canExport()) { ?> <a class="btn" href="javascript:void(0)" onclick="exportCsv()"><?php echo TextHelper::_('COBALT_EXPORT_CSV'); ?> </a> <?php } ?> </div> <h1><?php echo ucwords(TextHelper::_('COBALT_DEAL_SOURCE_REPORT')); ?> </h1> </div> <?php echo $this->menu; ?> <script type="text/javascript"> // add to view.html.php order_url = "<?php echo 'index.php?view=reports&layout=source_report_filter&tmpl=component&format=raw'; ?> "; order_dir = "<?php echo $this->state->get('Deal.source_report_filter_order_Dir');
$deal = $person['deals'][$i]; $k = $i % 2; echo '<li><a href="' . RouteHelper::_('index.php?view=deals&layout=deal&id=' . $deal->id) . '">'; echo '<span class="ui-li-count">' . $deal->amount . '</span>'; echo $deal->name; echo '</a></li>'; } ?> </ul> </div> <div data-role="collapsible"> <h3><?php echo TextHelper::_('COBALT_ADD_NOTE'); ?> </h3> <?php echo $this->add_note->render(); ?> </div> <div data-role="collapsible" data-collapsed="false"> <h3><?php echo TextHelper::_('COBALT_CREATE_TASK'); ?> </h3> <?php echo $this->add_task->render(); ?> </div> </div>
<div class="row-fluid"> <div class="span12" id="content"> <div id="system-message-container"></div> <div class="row-fluid"> <?php echo $this->menu['menu']->render(); ?> <div class="span9"> <form action="index.php?view=dealcustom" method="post" name="adminForm" id="adminForm" class="form-validate" > <div class="row-fluid"> <div class="page-header"> <?php echo $this->toolbar->render(); ?> <h3><?php echo TextHelper::_('COBALT_EDITING_CUSTOM_FIELD'); ?> </h3> </div> <label><?php echo JText::_('COBALT_NAME'); ?> </label> <input type="text" class="form-control required" name="name" value="<?php echo $this->custom['name']; ?> " /> <label><b>Type</b></label> <select class="form-control required" name="type"> <option value="">- Select Custom Field Type -</option> <?php
# Cobalt # ------------------------------------------------------------------------ # @author Cobalt # @copyright Copyright (C) 2012 cobaltcrm.org All Rights Reserved. # @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL # Website: http://www.cobaltcrm.org -------------------------------------------------------------------------*/ // no direct access defined('_CEXEC') or die('Restricted access'); $custom = DropdownHelper::generateCustom($this->item_type, $this->item['id']); $count = 0; if (count($custom) > 0) { ?> <h2><?php echo TextHelper::_('COBALT_EDIT_CUSTOM'); ?> </h2> <div class="columncontainer"> <div class="twocolumn"> <table class="com_cobalt_table"> <?php foreach ($custom as $field => $value) { $count++; $k = $count % 3; switch ($value['type']) { case "forecast": $custom_field_filter = array_key_exists('forecast', $this->item) ? $this->item['forecast'] : 0; break;
<input type="text" name="note_autocomplete_deal" placeholder="<?php echo TextHelper::_('COBALT_BEGIN_TYPING_TO_SEARCH_DEAL'); ?> " class="form-control" /> </div> </form> </div> <div class="modal-footer"> <div class="actions"><input class="btn btn-success" type="button" value="<?php echo TextHelper::_('COBALT_SAVE'); ?> " onclick="Cobalt.sumbitModalForm(this);"/> <?php echo TextHelper::_('COBALT_OR'); ?> <a href="javascript:void(0);" data-dismiss="modal" aria-hidden="true"><?php echo TextHelper::_('COBALT_CANCEL'); ?> </a></div> </div> </div> </div> </div> <?php } ?> <div id="note_entries"> </div> <input type="hidden" name="notes_start" id="notes_start" value="0"> <input type="hidden" name="notes_limit" id="notes_limit" value="4"> <script> Notes.init();
</div> <div class="cobaltRow"> <div class="cobaltField"><?php echo TextHelper::_('COBALT_PERSON_SOURCE'); ?> </div> <div class="cobaltValue"> <select data-native-menu="false" data-overlay-theme="a" data-theme="c" name="source_id" tabindex="-1"> <?php $options = DropdownHelper::generateDropdown('source', '', '', true); if (count($options) > 0) { foreach ($options as $option) { echo "<option value='" . $option['id'] . "''>" . $option['name'] . "</option>"; } } ?> </select> </div> </div> <?php if ($app->input->get('lead')) { echo '<input type="hidden" name="type" value="lead" />'; } ?> <input type="submit" name="submit" value="<?php echo TextHelper::_('COBALT_SUBMIT'); ?> " /> </form> </div>
echo '<td>' . $person['phone'] . '</td>'; echo '<td>' . $person['owner_first_name'] . ' ' . $person['owner_last_name'] . '</td>'; echo '<td>' . ucwords($person['type']) . '</td>'; echo '<td>' . DateHelper::formatDate($person['modified']) . '</td>'; echo '</tr>'; } ?> </table> </div> <h2><?php echo TextHelper::_('COBALT_EDIT_CONVERSATIONS'); ?> </h2> <div id="conversation_entries"> <?php $c = count($deal->conversations); for ($i = 0; $i < $c; $i++) { $convo = $deal->conversations[$i]; echo '<div class="conversation">'; echo '<div class="header"><b>' . DateHelper::formatDate($convo['created']) . '</b></div>'; echo '<div class="convo_info"><b>' . TextHelper::_('COBALT_USER') . '</b> ' . TextHelper::_('COBALT_WROTE') . ':</div>'; echo '<div class="convo">' . $convo['conversation'] . '</div>'; echo '</div>'; } ?> </div> </div>
?> </label></li> <?php $i++; } ?> </ul> </div> </div> <?php } } ?> </div> <div class="modal-footer"> <a href="#" class="btn btn-primary" data-dismiss="modal"><?php echo TextHelper::_('COBALT_CLOSE'); ?> </a> </div> </div> </form> </div> </div> </div> <?php echo $this->menu['quick_menu']->render(); ?> </div> </div>
?> <td><?php echo ucwords(TextHelper::_('COBALT_THE_COMPANY')); ?> </td> <?php } ?> <td><?php echo date("n/j/y", strtotime($goal['end_date'])); ?> </td> <td><a href="javascript:void(0);" onclick="Goal.delete(this)" class="delete_goal"><i class="glyphicon glyphicon-trash"></i><?php echo TextHelper::_('COBALT_DELETE'); ?> </a></td> </tr> <?php } ?> </tbody> </table> </div> <div class="modal-footer"> <div class="actions"><a aria-hidden="true" data-dismiss="modal" href="javascript:void(0);"><?php echo TextHelper::_('COBALT_CANCEL_BUTTON'); ?> </a></div> </div>
echo '<input type="hidden" name="event_id" value="' . $event['id'] . '" />'; echo '<input type="hidden" name="parent_id" value="' . $event['parent_id'] . '" />'; if ($event['type'] == "task") { echo '<input type="hidden" name="due_date" value="' . $event['due_date'] . '" />'; } else { echo '<input type="hidden" name="start_time" value="' . $event['start_time'] . '" />'; echo '<input type="hidden" name="end_time" value="' . $event['end_time'] . '" />'; } echo '<input type="hidden" name="event_type" value="' . $event['type'] . '" />'; echo '<input type="hidden" name="repeats" value="' . $event['repeats'] . '" />'; echo '<input type="hidden" name="type" value="single" />'; echo '</div>'; echo '</td>'; $display_date = $event['type'] == "event" ? $event['start_time'] : $event['due_date']; if ($display_date == "") { $display_date = TextHelper::_('COBALT_NA'); } echo '<td class="date"><small>' . DateHelper::formatDateString($display_date) . ' ' . DateHelper::formatTime($time, "(" . UsersHelper::getTimeFormat() . ")") . '</small></td>'; switch ($event['association_type']) { case "company": echo "<td><i class='glyphicon glyphicon-briefcase'></i> <a href='" . RouteHelper::_('index.php?view=companies&layout=company&id=' . $event['company_id']) . "'>" . $event['company_name'] . "</a></td>"; break; case "deal": echo "<td><i class='glyphicon glyphicon-tag'></i> <a href='" . RouteHelper::_('index.php?view=deals&layout=deal&id=' . $event['deal_id']) . "'>" . $event['deal_name'] . "</a></td>"; break; case "person": echo "<td><i class='glyphicon glyphicon-user'></i> <a href='" . RouteHelper::_('index.php?view=people&layout=person&id=' . $event['person_id']) . "'>" . $event['person_first_name'] . " " . $event['person_last_name'] . "</a></td>"; break; default: echo "<td> </td>"; break;
echo TextHelper::_('COBALT_PRINT'); ?> </a> <?php if (UsersHelper::canExport()) { ?> <a class="btn btn-default" href="javascript:void(0)" onclick="exportCsv()"><?php echo TextHelper::_('COBALT_EXPORT_CSV'); ?> </a> <?php } ?> </div> <h1><?php echo TextHelper::_('COBALT_ROI_REPORT'); ?> </h1> </div> <?php echo $this->menu; ?> <script type="text/javascript"> order_url = "<?php echo 'index.php?view=reports&layout=roi_report_filter&tmpl=component&format=raw'; ?> "; order_dir = "<?php echo $this->state->get('Source.filter_order_Dir'); ?>
<?php /*------------------------------------------------------------------------ # Cobalt # ------------------------------------------------------------------------ # @author Cobalt # @copyright Copyright (C) 2012 cobaltcrm.org All Rights Reserved. # @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL # Website: http://www.cobaltcrm.org -------------------------------------------------------------------------*/ // no direct access defined('_CEXEC') or die('Restricted access'); ?> <form action="<?php echo RouteHelper::_('index.php?view=admindocuments&format=raw'); ?> " method="post" name="adminForm" id="adminForm" class="inline-form form-validate" enctype="multipart/form-data" > <input type="file" class="input-file" name="document" /> <input type="submit" class="btn btn-primary" value="<?php echo TextHelper::_('COBALT_UPLOAD'); ?> " /> <?php echo JHtml::_('form.token'); ?> </form>
echo TextHelper::_("COBALT_ASSOCIATE_TO_DEAL"); ?> </h3></div> <div class="modal-body text-center"> <form id="deal"> <div class="input-append"> <input name="deal_name" type="text" placeholder="<?php echo TextHelper::_('COBALT_BEGIN_TYPING_TO_SEARCH'); ?> " /> <input type="hidden" name="company_id" value="<?php echo $company['id']; ?> " /> <a class="btn btn-success" href="" onclick="saveCf('people');"><i class="icon-white glyphicon glyphicon-plus"></i><?php echo TextHelper::_('COBALT_SAVE'); ?> </a> </div> </form> </div> </div> </div> </div> <?php echo CobaltHelper::showShareDialog(); ?> <!-- Edit Person --> <div class="modal fade" id="editPerson" tabindex="-1" role="dialog" aria-labelledby="editPerson" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"></div>
?> </a> </li> <?php } ?> </ul> </li> <li> <?php echo TextHelper::_('COBALT_NAMED'); ?> </li> <li> <input name="deal_name" type="text" placeholder="<?php echo TextHelper::_('COBALT_ANYTHING'); ?> " value="<?php echo $this->deal_filter; ?> " class="form-control datatable-searchbox"> </li> <li> <div class="ajax_loader"></div> </li> </ul> <?php echo TemplateHelper::getListEditActions(); ?>
</div> <hr> <div class="row"> <div class="col-sm-2"> <h2><?php echo TextHelper::_('COBALT_STEP_THREE'); ?> </h2> </div> <div class="col-sm-10"> <h3 class="help-block"><?php echo TextHelper::_('COBALT_UPLOAD_YOUR_FILE'); ?> </h3> <p class="help-block"><?php echo TextHelper::_('COBALT_SELECT_YOUR_CSV'); ?> </p> <form id="upload_form" action="<?php echo RouteHelper::_('index.php?view=import&layout=review'); ?> " method="post" enctype="multipart/form-data"> <div class="btn-group"> <div class="btn btn-default btn-file"> <i class="glyphicon glyphicon-plus"></i> Upload File <input type="file" name="document" id="upload_input_invisible"> </div> </div> <input type="hidden" name="type" value="people" /> <input type="hidden" name="import_type" value="<?php echo $this->import_type;
?> </th> <th class="notes" ><?php echo TextHelper::_('COBALT_PEOPLE_NOTES'); ?> </th> <th class="address" ><?php echo TextHelper::_('COBALT_ADDRESS'); ?> </th> <th class="added" ><?php echo TextHelper::_('COBALT_PEOPLE_ADDED'); ?> </th> <th class="updated" ><?php echo TextHelper::_('COBALT_PEOPLE_UPDATED'); ?> </th> </tr> </thead> <tbody id="list"> <?php $n = count($this->people); $k = 0; for ($i = 0; $i < $n; $i++) { $person = $this->people[$i]; $k = $i % 2; $pView = ViewHelper::getView('people', 'entry', 'phtml'); $pView->person = $person; $pView->k = $k; echo $pView->render();
<thead> <th class="checkbox_column"><input type="checkbox" onclick="Cobalt.selectAll(this);" /></th> <th class="name"><?php echo TextHelper::_('COBALT_COMPANIES_NAME'); ?> </th> <th class="contact"><?php echo ucwords(TextHelper::_('COBALT_CONTACT_DETAILS')); ?> </th> <th class="created" ><?php echo TextHelper::_('COBALT_COMPANIES_ADDED'); ?> </th> <th class="updated" ><?php echo TextHelper::_('COBALT_COMPANIES_UPDATED'); ?> </th> <th class="notes" > </th> </thead> <tbody id="list"> <?php $n = count($this->companies); for ($i = 0; $i < $n; $i++) { $company = $this->companies[$i]; $k = $i % 2; $cView = ViewHelper::getView('companies', 'entry', 'phtml'); $cView->company = $company; $cView->k = $k; echo $cView->render(); }
?> " type="text" value="<?php echo $custom_field_filter; ?> " /></th> <?php break; case "picklist": ?> <th> <select class="span1 filter_input" name="custom_<?php echo $info['id']; ?> "> <?php $all = array('all' => JHTML::_('select.option', 'all', TextHelper::_('COBALT_ALL'))); ?> <?php echo JHtml::_('select.options', $all + json_decode($info['values']), 'value', 'text', $custom_field_filter, true); ?> </select> </th> <?php break; case "number": ?> <th><input class="input input-small filter_input" name="custom_<?php echo $info['id']; ?> " type="text" value="<?php echo $custom_field_filter;
</div> </div> <?php } } ?> </div> <?php if ($this->member_role == 'exec' && count($this->goals->company_goals) > 0) { ?> <div class="pull-right"> <a data-target="#editModal" data-toggle="modal" href="<?php echo RouteHelper::_('index.php?view=goals&goal_type=company&format=raw&tmpl=component&layout=delete'); ?> " class="btn delete_goals" id="goal_type_company"><i class="glyphicon glyphicon-trash"></i><?php echo TextHelper::_("COBALT_DELETE_GOALS"); ?> </a> </div> <?php } ?> </li> </ul> </div> </div> <div id="delete_goals"></div> <!-- Edit Modal --> <div class="modal fade" id="editModal" tabindex="-1" role="dialog" aria-labelledby="editModal" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"></div>
order_col = "<?php echo $this->state->get('Report.' . $report['id'] . '_' . $this->layout . '_filter_order'); ?> "; </script> <div class="page-header"> <div class="btn-group pull-right"> <a class="btn btn-default" href="javascript:void(0)" onclick="printItems(this)"><i class="glyphicon glyphicon-print"></i> <?php echo TextHelper::_('COBALT_PRINT'); ?> </a> <?php if (UsersHelper::canExport()) { ?> <a class="btn btn-default" href="javascript:void(0)" onclick="exportCsv()"><i class="glyphicon glyphicon-share"></i> <?php echo TextHelper::_('COBALT_EXPORT_CSV'); ?> </a> <?php } ?> </div> <h1><?php echo $report['name']; ?> </h1> </div> <?php echo $this->menu; ?> <form id="list_form" class="print_form" method="post" target="_blank" action="<?php
<select class="form-control" name="repeats"> <?php $repeat_intervals = EventHelper::getRepeatIntervals(); echo JHtml::_('select.options', $repeat_intervals, 'value', 'text', $event['repeats'], true); ?> </select> </div> </div> <?php if (array_key_exists('repeats', $event) && $event['repeats'] != "none") { ?> <div class="cobaltRow"> <label class="checkbox"> </label> <div class="cobaltField"><?php echo TextHelper::_('COBALT_UPDATE_FUTURE_EVENTS'); ?> </div> <div class="cobaltValue"><input class="form-control" type="checkbox" name="update_future_events" checked="checked" /></div> </div> <?php } ?> </div> </div> <?php if (array_key_exists('id', $event)) { echo '<input type="hidden" value="' . $event['id'] . '" name="id" />'; } if ($app->input->get('parent_id') > 0) { echo '<input type="hidden" name="parent_id" value="' . $app->input->get('parent_id') . '" />';
?> </a></li> </ul> <!-- </div> --> <div id="edit_menu" class="edit_menu" style="display:none;"> <ul> <li><a href="javascript:void(0);" class="edit_event_button"><?php echo TextHelper::_('COBALT_EDIT'); ?> </a></li> <li><a href="javascript:void(0);" class="remove_event_button"><?php echo TextHelper::_('COBALT_REMOVE_EVENT'); ?> </a></li> <li><a href="javascript:void(0);" class="remove_event_series_button"><?php echo TextHelper::_('COBALT_REMOVE_SERIES'); ?> </a></li> <li><a href="javascript:void(0);" class="complete_event_button"><?php echo TextHelper::_('COBALT_MARK_COMPLETE'); ?> </a></li> <li><a href="javascript:void(0);" style="display:none;" class="show_event_association"></a></li> </ul> </div> <script> jQuery(document).ready(function() { Calendar.initialise(); }); </script>
</li> <?php } ?> </ul> </div> <?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']; ?>
?> </h1> <a href="<?php echo RouteHelper::_('index.php?view=dashboard'); ?> " data-icon="back" class="ui-btn-left"> <?php echo TextHelper::_('COBALT_BACK'); ?> </a> <a href="<?php echo RouteHelper::_('index.php?view=events&layout=edit_task'); ?> " data-icon="plus" class="ui-btn-right"> <?php echo ucwords(TextHelper::_('COBALT_ADD_TASK')); ?> </a> </div> <div data-role="content"> <ul class="ui-listview" data-role="listview" data-filter="true" data-autodividers="true" data-theme="c"> <?php $n = count($this->events); for ($i = 0; $i < $n; $i++) { $event = $this->events[$i]; $event_date = DateHelper::formatDate($event['due_date']); $k = $i % 2; if ($i == 0 || substr_compare($event['due_date'], $this->events[$i - 1]['due_date'], 0)) { echo "<li data-role='list-divider'>" . DateHelper::getRelativeDate($event_date) . " " . $event_date . "</li>"; }