Exemplo n.º 1
0
<?php

echo '<dt class="visibility-' . $param->getVisibility() . '">' . ServiceRenderHtml::$longNames[$param->getName()] . ($guest ? '' : showDropDown($param)) . '</dt><dd class="btn-update-parameter" data-id="' . $param->getName() . '"><span>' . $param->getValue(true) . '</span></dd>';
Exemplo n.º 2
0
    echo '</ul>';
    if (!$guest) {
        echo '<form  style="margin-top:10px" action="/parameter/skill/add" method="post" class="form-search"><div class="input-append"><input type="text" name="value" value="" class="btn-small search-query" placeholder="Ajouter une compétence" required="required" style="line-height:100%" /><input type="submit" value="Valider" class="btn btn-small" /></div></form>';
    }
    ?>
</dd>
<?php 
}
if (!$guest || ServiceAuth::getInstance()->getUser()->isAllowedToSee($user, 'photos')) {
    ?>
			<dt class="visibility-<?php 
    echo $user->getProfile()->getParameter('photos')->getVisibility();
    ?>
">Liste de photos<?php 
    if (!$guest) {
        echo showDropDown($user->getProfile()->getParameter('photos'));
    }
    ?>
</dt>
			<dd class="update-photo"><?php 
    echo '<ul>';
    if ($a = $user->getPhotos()) {
        foreach ($a as $v) {
            echo '<li><a href="/uploads/' . $v->getId() . '" target="_blank">Image #' . $v->getId() . '</a><a href="/parameter/photo/del/' . $v->getId() . '" class="btn btn-danger btn-small delete">Supprimer</a></li>';
        }
    } else {
        echo '<li class="empty">Pas de photo</li>';
    }
    echo '</ul>';
    if (!$guest) {
        echo '<form style="margin-top:10px" action="/parameter/photo/add" enctype="multipart/form-data" method="post" class="form-search"><input type="file" name="value" class="btn btn-small" title="Ajouter une photo" required="required" /><input type="submit" value="Valider" class="btn btn-small" /></form>';