本文整理汇总了PHP中PermissionsManager::printUI方法的典型用法代码示例。如果您正苦于以下问题:PHP PermissionsManager::printUI方法的具体用法?PHP PermissionsManager::printUI怎么用?PHP PermissionsManager::printUI使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PermissionsManager
的用法示例。
在下文中一共展示了PermissionsManager::printUI方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: writeFormKey
</h1>
<TABLE BORDER=0 CELLPADDING=2 CELLSPACING=2 ALIGN=CENTER STYLE="border: 0px; width: 95%">
<TR><TD COLSPAN=2>Last login: <?php
echo "{$userlastlogin}";
?>
</TD></TR>
<FORM NAME="edituser" METHOD="POST" ACTION="?function=edituser">
<?php
writeFormKey();
echo "<INPUT NAME=\"userid\" TYPE=\"HIDDEN\" VALUE=\"{$userid}\">\n";
echo "<TR><TD STYLE=\"width: 130px\"><B>Name:</B></TD><TD><INPUT NAME=\"username\" TYPE=\"TEXT\" VALUE=\"{$username}\" SIZE=30 MAXLENGTH=100></TD></TR>\n";
echo "<TR><TD><B>E-Mail:</B></TD><TD><INPUT NAME=\"useremail\" TYPE=\"TEXT\" VALUE=\"{$useremail}\" SIZE=30 MAXLENGTH=100></TD></TR>\n";
echo "<TR><TD><B>Website:</B></TD><TD><INPUT NAME=\"userwebsite\" TYPE=\"TEXT\" VALUE=\"{$userwebsite}\" SIZE=30 MAXLENGTH=100></TD></TR>\n";
echo "<TR><TD><B>Password:</B></TD><TD><FONT STYLE=\"font-size:10pt; font-weight: bold\"><A HREF=\"?function=changepassword&userid={$userid}\">Change Password</A></FONT></TD></TR>\n";
echo "<TR><TD><B>Permissions:</B></TD><TD>";
$perms->printUI();
echo "</TD></TR>\n";
echo "<TR><TD><B>E-Mail Public:<B></TD><TD>";
if ($useremailhide === "1") {
echo "Hidden: <INPUT NAME=\"useremailhide\" TYPE=\"RADIO\" VALUE=\"1\" CHECKED> Visible: <INPUT NAME=\"useremailhide\" TYPE=\"RADIO\" VALUE=\"0\">";
} else {
if ($useremailhide === "0") {
echo "Hidden: <INPUT NAME=\"useremailhide\" TYPE=\"RADIO\" VALUE=\"1\"> Visible: <INPUT NAME=\"useremailhide\" TYPE=\"RADIO\" VALUE=\"0\" CHECKED>";
} else {
echo "Hidden: <INPUT NAME=\"useremailhide\" TYPE=\"RADIO\" VALUE=\"1\"> Visible: <INPUT NAME=\"useremailhide\" TYPE=\"RADIO\" VALUE=\"0\">";
}
}
echo "</TD></TR>\n";
?>
<TR><TD COLSPAN="2"><strong>Warning:</strong> Setting E-Mail Public to Visible will show your e-mail address in plaintext on your profile. Do not enable this if you wish to keep your e-mail address hidden.</TD></TR>
<TR><TD COLSPAN="2" ALIGN="CENTER"><INPUT NAME="submit" TYPE="SUBMIT" VALUE="Update"> <INPUT NAME="reset" TYPE="RESET" VALUE="Reset Form"> <INPUT NAME="submit" TYPE="SUBMIT" VALUE="Delete User" ONCLICK="return confirm('Are you sure you want to delete the profile for <?php