Пример #1
0
    case 'let':
        $def = 7;
        break;
    case 'bal':
        $def = 5;
        break;
    case 'balag':
        $def = 6;
        break;
    default:
        $def = 1;
        $ss_action = 'dc';
}
$f = new Fiche($cn, $_REQUEST['f_id']);
echo '<div class="content">';
echo $f->get_gestion_title();
$menu = array(array('href' => $root . "&sc=dc", 'label' => _('Fiche'), 'alt' => _('Détail de la fiche')), array('href' => $root . '&sc=sv', 'label' => _('Suivi'), 'alt' => _('Suivi Fournisseur, client, banque, devis, bon de commande, courrier')), array('href' => $root . '&sc=cn', 'label' => _('Contact'), 'alt' => _('Liste de contacts')), array('href' => $root . '&sc=op', 'label' => _('Opérations'), 'alt' => _('Toutes les opérations')), array('href' => $root . '&sc=bal', 'label' => _('Balance'), 'alt' => _('Balance du tiers')), array('href' => $root . '&sc=balag', 'label' => _('Balance âgée'), 'alt' => _('Balance âgée du tiers')), array('href' => $root . '&sc=let', 'label' => _('Lettrage'), 'alt' => _('Opérations & Lettrages')));
echo '<ul class="tabs">';
for ($i = 0; $i < count($menu); $i++) {
    $style = $def == $i + 1 ? "tabs_selected" : "tabs";
    echo '<li class="' . $style . '">';
    echo '<a href="' . $menu[$i]['href'] . '" title="' . $menu[$i]['alt'] . '">';
    echo h($menu[$i]['label']);
    echo '</a>';
    echo '</li>';
}
echo '</ul>';
echo '</div>';
echo '<div>';
echo '<div class="myfieldset">';
//---------------------------------------------------------------------------