Пример #1
0
     $option = 'indexnotexpanded';
 }
 //print $option;
 print '<li class="directory collapsed">';
 // Show tree graph pictos
 $cpt = 1;
 while ($cpt < $sqltree[$key]['level']) {
     print ' &nbsp; &nbsp;';
     $cpt++;
 }
 $resarray = tree_showpad($sqltree, $key, 1);
 $a = $resarray[0];
 $nbofsubdir = $resarray[1];
 $nboffilesinsubdir = $resarray[2];
 // Show link
 print $ecmdirstatic->getNomUrl(0, $option, 32, 'class="fmdirlia jqft ecmjqft"');
 print '<div class="ecmjqft">';
 // Nb of docs
 print '<table class="nobordernopadding"><tr><td>';
 print $val['cachenbofdoc'];
 print '</td>';
 print '<td align="left">';
 if ($nbofsubdir && $nboffilesinsubdir) {
     print '<font color="#AAAAAA">+' . $nboffilesinsubdir . '</font> ';
 }
 print '</td>';
 // Info
 print '<td align="center">';
 $userstatic->id = $val['fk_user_c'];
 $userstatic->lastname = $val['login_c'];
 $htmltooltip = '<b>' . $langs->trans("ECMSection") . '</b>: ' . $val['label'] . '<br>';
Пример #2
0
    print '<input type="hidden" name="action" value="update">';
}
print '<table class="border" width="100%">';
print '<tr><td width="30%">' . $langs->trans("Ref") . '</td><td>';
$s = '';
$tmpecmdir = new EcmDirectory($db);
// Need to create a new one
$tmpecmdir->fetch($ecmdir->id);
$result = 1;
$i = 0;
while ($tmpecmdir && $result > 0) {
    $tmpecmdir->ref = $tmpecmdir->label;
    if ($i == 0 && $_GET["action"] == 'edit') {
        $s = '<input type="text" name="label" size="40" maxlength="32" value="' . $tmpecmdir->label . '">';
    } else {
        $s = $tmpecmdir->getNomUrl(1) . $s;
    }
    if ($tmpecmdir->fk_parent) {
        $s = ' -> ' . $s;
        $result = $tmpecmdir->fetch($tmpecmdir->fk_parent);
    } else {
        $tmpecmdir = 0;
    }
    $i++;
}
print img_picto('', 'object_dir') . ' <a href="' . DOL_URL_ROOT . '/ecm/index.php">' . $langs->trans("ECMRoot") . '</a> -> ';
print $s;
print '</td></tr>';
print '<tr><td valign="top">' . $langs->trans("Description") . '</td><td>';
if ($_GET["action"] == 'edit') {
    print '<textarea class="flat" name="description" cols="80">';