本文整理汇总了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();
}