Exemple #1
0
:</div>
                <div class="crmeryValue">
                    <?php 
$person_type = array_key_exists('type', $person) && $person['type'] != "" ? $person['type'] : TextHelper::_('COBALT_NOT_SET');
?>
                    <div class="dropdown" data-item="people" data-field="type" data-item-id="<?php 
echo $person['id'];
?>
" id="person_type">
                        <a href="#" class='dropdown-toggle' data-toggle="dropdown" id="person_type_link"><?php 
echo ucwords($person_type);
?>
</a>
                        <ul class="dropdown-menu pull-right">
                            <?php 
$types = PeopleHelper::getPeopleTypes(false);
if (count($types)) {
    foreach ($types as $key => $type) {
        echo '<li><a href="javascript:void(0);" class="dropdown_item" data-value="' . $key . '">' . ucwords($type) . '</a></li>';
    }
}
?>
                        </ul>
                    </div>
                </div>
                <div class="clear"></div>
            </div>
        </div>

        <div class="col-md-4">
            <div class="well well-small text-center">
Exemple #2
0
?>
            <div class='dropdown'>
            <a href='javascript:void(0);' class='dropdown-toggle update-toggle-html' role='button' data-toggle='dropdown' id="peron_type_<?php 
echo $person['id'];
?>
_link">
                <?php 
echo ucwords($person['type']);
?>
            </a>
                <ul class="dropdown-menu" aria-labelledby="person_type_<?php 
echo $person['id'];
?>
" role="menu">
                     <?php 
$types = PeopleHelper::getPeopleTypes(FALSE);
if (count($types)) {
    foreach ($types as $id => $name) {
        ?>
                            <li><a href="javascript:void(0)" class="person_type_select dropdown_item" data-field="type" data-item="people" data-item-id="<?php 
        echo $person['id'];
        ?>
" data-value="<?php 
        echo ucwords($id);
        ?>
">
                                    <?php 
        echo ucwords($name);
        ?>
                                </a>
                            </li>