本文整理汇总了PHP中FormHandler::CheckBox方法的典型用法代码示例。如果您正苦于以下问题:PHP FormHandler::CheckBox方法的具体用法?PHP FormHandler::CheckBox怎么用?PHP FormHandler::CheckBox使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FormHandler
的用法示例。
在下文中一共展示了FormHandler::CheckBox方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: add
function add()
{
if (isset($_GET['id'])) {
echo "<span class=\"pageHeading\">Wijzigen distributie</span><BR><BR>";
} else {
echo "<span class=\"pageHeading\">Invoeren nieuwe distributie</span><BR><BR>";
}
$form = new FormHandler();
$form->PermitEdit();
$form->TableSettings('100%', 0, 1, 2, 'font-family:Verdana;font-size:10px;border: 1px solid grey');
//$form->AddHTML($myhtml);
// set the database data (data from another file or so ? )
$form->UseDatabase(MYRIAD_DATABASE_NAME, "customers");
$form->textfield("Naam", "name", "", "50");
$form->HiddenField("srcHost", TRANSCODER_HOSTNAME);
$form->HiddenField("srcUsername", TRANSCODER_USERNAME);
$form->HiddenField("srcPassword", TRANSCODER_PASSWORD);
$form->HiddenField("srcFolder", TRANSCODER_SRC_FOLDER);
$form->HiddenField("destHost", MEDIASERVER_HOSTNAME);
$form->HiddenField("destUsername", MEDIASERVER_USERNAME);
$form->HiddenField("destPassword", MEDIASERVER_PASSWORD);
$form->textfield("Doelmap", "destFolder", "", "50");
$query = "SELECT * FROM OUTPUTFORMAT";
$exec = mysql_query($query);
$teller = 0;
while ($row = mysql_fetch_array($exec)) {
$valueArray[$row['id']] = $row['naam'];
}
$form->SelectField("Output Formaat", "outputFormatId", $valueArray, true);
$form->HiddenField("conversionProgramId", "0");
$form->HiddenField("pause", "10");
$form->textfield("Aantal Screenshots", "numberOfStills", "", "50");
$form->CheckBox("DRM Beveiliging", "drmProtection");
$form->textfield("URL Gelukt", "successURL", "", "50");
$form->textfield("URL Mislukt", "failureURL", "", "50");
if ($this->parent->module_exists("brandmerk")) {
// $brandmerks = $GLOBALS["brandmerk"]->contents();
$conn_id = ftp_connect(TRANSCODER_HOSTNAME);
// login with username and password
$login_result = ftp_login($conn_id, TRANSCODER_USERNAME, TRANSCODER_PASSWORD);
$valueArray = array();
$valueArray[] = "Geen brandmerk";
$img_array = ftp_nlist($conn_id, TRANS_IMAGES_DIR);
for ($x = 0; $x < count($img_array); $x++) {
$valueArray[$img_array[$x]] = $img_array[$x];
}
ftp_close($conn_id);
$form->SelectField("Brandmerk", "companyLogo", $valueArray, true);
}
if ($this->parent->module_exists("betalingen")) {
$form->SelectField("Betaal categorie", "paymentCategoryId", $paymentarray, true);
}
$valueArray = array();
$valueArray[1] = "Ja";
$valueArray[0] = "Nee";
$form->SelectField("Bron opschonen", "clean", $valueArray, true);
$form->SubmitBtn("Opslaan", false, "Annuleren");
$form->OnSaved("doRun");
// flush the form
$form->FlushForm();
}