コード例 #1
0
ファイル: person.php プロジェクト: houzhenggang/cobalt
echo $person['id'];
?>
" id="person_source_<?php 
echo $person['id'];
?>
">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" id="person_source_<?php 
echo $person['id'];
?>
_link"><?php 
echo $person['source_name'];
?>
</a>
                        <ul class="dropdown-menu pull-right">
                            <?php 
$sources = DealHelper::getSources();
if (count($sources)) {
    foreach ($sources as $id => $name) {
        echo '<li><a href="javascript:void(0)" class="source_select dropdown_item" data-value="' . $id . '">' . $name . '</a></li>';
    }
}
?>
                        </ul>
                    </div>
                </div>
                <div class="clear"></div>
            </div>
        </div>
    </div>

    <?php 
コード例 #2
0
ファイル: list.php プロジェクト: houzhenggang/cobalt
        <th class="expected_close" ><?php 
echo ucwords(TextHelper::_('COBALT_DEALS_EXPECTED_CLOSE'));
?>
</th>
        <th class="actual_close" ><?php 
echo ucwords(TextHelper::_('COBALT_DEALS_ACTUAL_CLOSE'));
?>
</th>
        <th class="contacts" >&nbsp;</th>
    </tr>
</thead>
<tbody id="list">
<?php 
$stages = DealHelper::getStages(null, TRUE, FALSE);
$statuses = DealHelper::getStatuses(null, true);
$sources = DealHelper::getSources(null);
$users = UsersHelper::getUsers(null, TRUE);
$n = count($this->dealList);
$k = 0;
for ($i = 0; $i < $n; $i++) {
    $deal = $this->dealList[$i];
    $k = $i % 2;
    $entryView = ViewHelper::getView('deals', 'entry', 'phtml');
    $entryView->deal = $deal;
    $entryView->stages = $stages;
    $entryView->statuses = $statuses;
    $entryView->sources = $sources;
    $entryView->users = $users;
    $entryView->k = $k;
    echo $entryView->render();
}