本文整理匯總了PHP中boostrap_form::set_checkboxYN方法的典型用法代碼示例。如果您正苦於以下問題:PHP boostrap_form::set_checkboxYN方法的具體用法?PHP boostrap_form::set_checkboxYN怎麽用?PHP boostrap_form::set_checkboxYN使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類boostrap_form
的用法示例。
在下文中一共展示了boostrap_form::set_checkboxYN方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: policy3
function policy3()
{
$page = CurrentPageName();
$tpl = new templates();
$boot = new boostrap_form();
$t = time();
$q = new amavisdb();
$users = new usersMenus();
$policy_id = $_GET["policy-id"];
$btname = "{apply}";
$sql = "SELECT * FROM policy WHERE id='{$policy_id}'";
$ligne = mysql_fetch_array($q->QUERY_SQL($sql));
if (!$q->ok) {
$error = "<p class='text-error'>{$q->mysql_error}.</p>";
}
$boot->set_hidden("policy_id", $policy_id);
$boot->set_spacertitle("{warnrecip}");
$boot->set_checkboxYN("warnvirusrecip", "{warnvirusrecip}", $ligne["warnvirusrecip"]);
$boot->set_checkboxYN("warnbannedrecip", "{warnbannedrecip}", $ligne["warnbannedrecip"]);
$boot->set_checkboxYN("warnbadhrecip", "{warnbadhrecip}", $ligne["warnbadhrecip"]);
$boot->set_spacertitle("{sendreportto}");
$boot->set_field("newvirus_admin", "{virus_detected}", $ligne["newvirus_admin"]);
$boot->set_field("banned_admin", "{banned_files}", $ligne["banned_admin"]);
$boot->set_field("bad_header_admin", "{bad_headers}", $ligne["bad_header_admin"]);
$boot->set_field("spam_admin", "{spam_messages}", $ligne["spam_admin"]);
$boot->set_spacertitle("{subjects_tags}");
$boot->set_field("spam_subject_tag", "{non_spam_messages}", $ligne["spam_subject_tag"]);
$boot->set_field("spam_subject_tag2", "{spam_messages}", $ligne["spam_subject_tag2"]);
$boot->set_field("spam_subject_tag3", "{blatant_spam}", $ligne["spam_subject_tag3"]);
$boot->set_RefreshSearchs();
echo $boot->Compile();
}