Exemple #1
0
        ?>
" data-toggle="modal" data-target="#editModal"><?php 
        echo $goal['name'];
        ?>
</a></span>
                                        <span class="goal_info_due_date pull-right"><?php 
        echo TextHelper::_('COBALT_BY');
        ?>
 <?php 
        echo DateHelper::formatDate($goal['end_date']);
        ?>
</span>
                                    </div>
                                    <div class="goal_info_progress progress progress-success clearfix">
                                        <?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'];
            ?>
Exemple #2
0
?>
" />
                    <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>
    </div>
</div>
<script>
    //clear modal data when close
    $('#editPerson').on('hidden.bs.modal', function (e) {
        $('#editPerson').removeData('bs.modal');
    })
</script>
Exemple #3
0
" onclick="Task.add('task');" href="javascript:void(0);"><i class="glyphicon glyphicon-tasks"></i></a>
                <a rel="tooltip" class="btn btn-xs btn-default" title="<?php 
    echo TextHelper::_('COBALT_ADD_EVENT');
    ?>
" onclick="Task.add('event');" href="javascript:void(0);"><i class="glyphicon glyphicon-calendar"></i></a>
                <a rel="tooltip" class="btn btn-xs btn-default" title="<?php 
    echo TextHelper::_('COBALT_PRINT');
    ?>
" onclick="printItems(this)" href="javascript:void(0);"><i class="glyphicon glyphicon-print"></i></a>
                <a rel="tooltip" class="btn btn-xs btn-default dropdown-toggle" title="<?php 
    echo TextHelper::_('COBALT_APPLY_A_WORKFLOW');
    ?>
" data-toggle="dropdown" id="templates_link" href="javascript:void(0);"><i class="glyphicon glyphicon-list"></i></a>
                <ul class="dropdown-menu padding">
                    <?php 
    $templates = CobaltHelper::getTaskTemplates($app->input->get('layout'));
    if (count($templates) > 0) {
        foreach ($templates as $template) {
            ?>
                            <li><a href="javascript:void(0)" onclick="createTemplate(<?php 
            echo $template['id'];
            ?>
)"><?php 
            echo $template['name'];
            ?>
</a>
                        <?php 
        }
    } else {
        ?>
                            <li><?php 
Exemple #4
0
    <div <?php 
            echo $style;
            ?>
 id="import_entry_<?php 
            echo $key;
            ?>
" class="imported_row">
            <?php 
            $memoryFlag = false;
            ?>
            <?php 
            foreach ($data as $field => $value) {
                ?>
                <?php 
                $scriptMemory = memory_get_peak_usage(true);
                $serverMemory = CobaltHelper::getBytes(ini_get('memory_limit'));
                if ($scriptMemory >= $serverMemory) {
                    $memoryFlag = true;
                    ?>
                        <p><?php 
                    echo TextHelper::_('COBALT_REVIEW_IMPORT_MESSAGE_FILE_TOO_LARGE');
                    ?>
</p>
                        <?php 
                    return;
                }
                ?>
                <?php 
                $header = ($array_key = array_search($field, $this->headers)) ? $this->headers[$array_key] : $field;
                ?>
                <div class="form-group">
Exemple #5
0
 if ($this->leaderboard[0]['goal_type'] == 'move_deals') {
     $width = $member['deals_moved'] / $this->leaderboard[0]['amount'] * 100;
 }
 //complete_tasks
 if ($this->leaderboard[0]['goal_type'] == 'complete_tasks') {
     $width = $member['tasks_completed'] / $this->leaderboard[0]['amount'] * 100;
 }
 //write_notes
 if ($this->leaderboard[0]['goal_type'] == 'write_notes') {
     $width = $member['notes_written'] / $this->leaderboard[0]['amount'] * 100;
 }
 //create_deals
 if ($this->leaderboard[0]['goal_type'] == 'create_deals') {
     $width = $member['deals_created'] / $this->leaderboard[0]['amount'] * 100;
 }
 echo '<div class="bar" style="background:#' . CobaltHelper::percent2color($width) . ';width:' . $width . '%;"></div>';
 echo '</div>';
 //output info
 //win_cash
 echo '<span class="pull-right">';
 if ($this->leaderboard[0]['goal_type'] == 'win_cash') {
     echo '$' . (int) $member['cash_won'] . ' cash won.';
 }
 //win_deals
 if ($this->leaderboard[0]['goal_type'] == 'win_deals') {
     echo (int) $member['deals_won'] . ' deals won.';
 }
 //move_deals
 if ($this->leaderboard[0]['goal_type'] == 'move_deals') {
     echo (int) $member['deals_moved'] . ' deals moved.';
 }