本文整理匯總了PHP中design::settings方法的典型用法代碼示例。如果您正苦於以下問題:PHP design::settings方法的具體用法?PHP design::settings怎麽用?PHP design::settings使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類design
的用法示例。
在下文中一共展示了design::settings方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1:
design::settings_checkbox("Set_Disable_category", True, "Disable categories management");
} else {
design::settings_checkbox("Set_Disable_category", False, "Disable categories management");
}
if (isset($const_defaultaccountname)) {
design::settings_default_account($const_defaultaccountname);
} else {
design::settings_default_account("None");
}
echo "<br />";
//SECTION DESKTOP INTEGRATION
design::section_legened("Desktop integration");
if (isset($const_desktop_guid)) {
design::settings("Guid", $const_desktop_guid, "", "Text", True);
} else {
design::settings("Guid", security::generate_guid(), "", "Text", True);
}
?>
<script type="text/javascript">
function Disable_Authentication()
{
if (document.getElementById("Set_Disable_authentication").checked)
{
document.getElementById("Set_Username").disabled = true;
document.getElementById("Set_Username").value = "";
document.getElementById("Set_Password").disabled = true;
document.getElementById("Set_Password").value = "";
document.getElementById("Set_Confirm_Password").disabled = true;
document.getElementById("Set_Confirm_Password").value = "";
disable_confirm_password_if_empty ();
}