Révision 9ef4289c
Ajouté par Colin Fleming il y a presque 10 ans
usr/local/www/system_usermanager.php | ||
---|---|---|
346 | 346 |
} |
347 | 347 |
} |
348 | 348 |
|
349 |
$closehead = false; |
|
349 | 350 |
include("head.inc"); |
350 | 351 |
?> |
351 | 352 |
|
... | ... | |
353 | 354 |
<link rel="stylesheet" type="text/css" href="/javascript/jquery/jquery-ui.custom.css" /> |
354 | 355 |
|
355 | 356 |
<script type="text/javascript"> |
357 |
//<![CDATA[ |
|
356 | 358 |
jQuery(function() { |
357 | 359 |
jQuery( "#expires" ).datepicker( { dateFormat: 'mm/dd/yy', changeYear: true, yearRange: "+0:+100" } ); |
358 | 360 |
}); |
361 |
//]]> |
|
359 | 362 |
</script> |
363 |
</head> |
|
360 | 364 |
|
361 | 365 |
<body link="#000000" vlink="#000000" alink="#000000" onload="<?= $jsevents["body"]["onload"] ?>"> |
362 | 366 |
<?php include("fbegin.inc"); ?> |
... | ... | |
600 | 604 |
</td> |
601 | 605 |
<td valign="middle" class="list nowrap"> |
602 | 606 |
<?php if (!$group): ?> |
603 |
<a href="system_usermanager.php?act=delpriv&id=<?=$id?>&privid=<?=$i;?>" onclick="return confirm('<?=gettext("Do you really want to delete this privilege?");?>')"> |
|
607 |
<a href="system_usermanager.php?act=delpriv&id=<?=$id?>&privid=<?=$i;?>" onclick="return confirm('<?=gettext("Do you really want to delete this privilege?");?>')">
|
|
604 | 608 |
<img src="/themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" border="0" alt="delete" /> |
605 | 609 |
</a> |
606 | 610 |
<?php endif; ?> |
... | ... | |
653 | 657 |
<?=htmlspecialchars($ca['descr']);?> |
654 | 658 |
</td> |
655 | 659 |
<td valign="middle" class="list nowrap"> |
656 |
<a href="system_usermanager.php?act=expckey&id=<?=$id;?>&certid=<?=$i;?>"> |
|
660 |
<a href="system_usermanager.php?act=expckey&id=<?=$id;?>&certid=<?=$i;?>">
|
|
657 | 661 |
<img src="/themes/<?= $g['theme'];?>/images/icons/icon_down.gif" title="<?=gettext("export private key"); ?>" alt="<?=gettext("export private key"); ?>" width="17" height="17" border="0" /> |
658 | 662 |
</a> |
659 |
<a href="system_usermanager.php?act=expcert&id=<?=$id;?>&certid=<?=$i;?>"> |
|
663 |
<a href="system_usermanager.php?act=expcert&id=<?=$id;?>&certid=<?=$i;?>">
|
|
660 | 664 |
<img src="/themes/<?= $g['theme'];?>/images/icons/icon_down.gif" title="<?=gettext("export cert"); ?>" alt="<?=gettext("export cert"); ?>" width="17" height="17" border="0" /> |
661 | 665 |
</a> |
662 |
<a href="system_usermanager.php?act=delcert&id=<?=$id?>&certid=<?=$i;?>" onclick="return confirm('<?=gettext("Do you really want to remove this certificate association?") .'\n'. gettext("(Certificate will not be deleted)");?>')"> |
|
666 |
<a href="system_usermanager.php?act=delcert&id=<?=$id?>&certid=<?=$i;?>" onclick="return confirm('<?=gettext("Do you really want to remove this certificate association?") .'\n'. gettext("(Certificate will not be deleted)");?>')">
|
|
663 | 667 |
<img src="/themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" border="0" alt="<?=gettext("delete cert");?>" /> |
664 | 668 |
</a> |
665 | 669 |
</td> |
... | ... | |
699 | 703 |
|
700 | 704 |
<?php if ($i > 0): ?> |
701 | 705 |
|
702 |
<tr id="usercert" name="usercert" style="display:none">
|
|
706 |
<tr id="usercert" style="display:none"> |
|
703 | 707 |
<td width="22%" valign="top" class="vncell"><?=gettext("Certificate");?></td> |
704 | 708 |
<td width="78%" class="vtable"> |
705 | 709 |
<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="certificate"> |
... | ... | |
759 | 763 |
<tr id="sshkey" <?php if(empty($pconfig['authorizedkeys'])) echo 'style="display:none"'; ?>> |
760 | 764 |
<td width="22%" valign="top" class="vncell"><?=gettext("Authorized keys");?></td> |
761 | 765 |
<td width="78%" class="vtable"> |
762 |
<textarea name="authorizedkeys" cols="65" rows="7" id="authorizedkeys" class="formfld_cert" wrap="off"><?=htmlspecialchars($pconfig['authorizedkeys']);?></textarea> |
|
766 |
<script type="text/javascript"> |
|
767 |
//<![CDATA[ |
|
768 |
window.onload=function(){ |
|
769 |
document.getElementById("authorizedkeys").wrap='off'; |
|
770 |
} |
|
771 |
//]]> |
|
772 |
</script> |
|
773 |
<textarea name="authorizedkeys" cols="65" rows="7" id="authorizedkeys" class="formfld_cert"><?=htmlspecialchars($pconfig['authorizedkeys']);?></textarea> |
|
763 | 774 |
<br /> |
764 | 775 |
<?=gettext("Paste an authorized keys file here.");?> |
765 | 776 |
</td> |
... | ... | |
875 | 886 |
<?php include("fend.inc");?> |
876 | 887 |
</body> |
877 | 888 |
</html> |
878 |
|
Formats disponibles : Unified diff
Tidy up "system_usermanager.php" XHTML
Add CLOSEHEAD varialbe and manually close HEAD
Add CDATA sections to SCRIPTS
Deprecate Ampersand in Anchor tags
Remove NAME from TR tag, not valid in XHTML
Remove WRAP from TEXTAREA and Javascript to take wrap off