• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP html_checkbox函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中html_checkbox函数的典型用法代码示例。如果您正苦于以下问题:PHP html_checkbox函数的具体用法?PHP html_checkbox怎么用?PHP html_checkbox使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了html_checkbox函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: html_inputbox

html_inputbox("domainname", gettext("Domain name"), $pconfig['domainname'], gettext("A host name alias. This option can appear multiple times, for each domain that has the same IP. Use a space to separate multiple alias names."), true, 40);
?>
					<?php 
html_inputbox("username", gettext("Username"), $pconfig['username'], "", true, 20);
?>
					<?php 
html_passwordbox("password", gettext("Password"), $pconfig['password'], "", true, 20);
?>
					<?php 
html_inputbox("updateperiod", gettext("Update period"), $pconfig['updateperiod'], gettext("How often the IP is checked. The period is in seconds (max. is 10 days)."), false, 20);
?>
					<?php 
html_inputbox("forcedupdateperiod", gettext("Forced update period"), $pconfig['forcedupdateperiod'], gettext("How often the IP is updated even if it is not changed. The period is in seconds (max. is 10 days)."), false, 20);
?>
					<?php 
html_checkbox("wildcard", gettext("Wildcard"), !empty($pconfig['wildcard']) ? true : false, gettext("Enable domain wildcarding."), "", false);
?>
					<?php 
html_textarea("auxparam", gettext("Auxiliary parameters"), !empty($pconfig['auxparam']) ? $pconfig['auxparam'] : "", sprintf(gettext("These parameters will be added to global settings in %s."), "inadyn.conf"), false, 65, 3, false, false);
?>
			  </table>
				<div id="submit">
					<input name="Submit" type="submit" class="formbtn" value="<?php 
echo gettext("Save and Restart");
?>
" onclick="enable_change(true)" />
				</div>
			</td>
		</tr>
	</table>
	<?php 
开发者ID:sdoney,项目名称:nas4free,代码行数:31,代码来源:services_dynamicdns.php


示例2: print_info_box

}
?>
				<?php 
if (!empty($savemsg)) {
    print_info_box($savemsg);
}
?>
				<table width="100%" border="0" cellpadding="6" cellspacing="0">
					<?php 
html_titleline_checkbox("enable", gettext("Network File System"), !empty($pconfig['enable']) ? true : false, gettext("Enable"), "enable_change(false)");
?>
					<?php 
html_inputbox("numproc", gettext("Number of servers"), $pconfig['numproc'], gettext("Specifies how many servers to create.") . " " . gettext("There should be enough to handle the maximum level of concurrency from its clients, typically four to six."), false, 2);
?>
					<?php 
html_checkbox("v4enable", gettext("NFSv4"), !empty($pconfig['v4enable']) ? true : false, gettext("Enable NFSv4 server."), "", false);
?>
				</table>
				<div id="submit">
					<input name="Submit" type="submit" class="formbtn" value="<?php 
echo gettext("Save and Restart");
?>
" onclick="enable_change(true)" />
				</div>
				<?php 
include "formend.inc";
?>
			</form>
		</td>
	</tr>
</table>
开发者ID:sdoney,项目名称:nas4free,代码行数:31,代码来源:services_nfs.php


示例3: gettext

?>
" border="0" alt="<?php 
echo gettext("Add URL");
?>
" /></a>
									</td>
								</tr>
							</table>
							<span class="vexpl"><?php 
echo gettext("Define directories/URL's that require authentication.");
?>
</span>
						</td>
					</tr>
					<?php 
html_checkbox("dirlisting", gettext("Directory listing"), !empty($pconfig['dirlisting']) ? true : false, gettext("Enable directory listing."), gettext("A directory listing is generated if a directory is requested and no index-file (index.php, index.html, index.htm or default.htm) was found in that directory."), false);
?>
					<?php 
html_textarea("auxparam", gettext("Auxiliary parameters"), !empty($pconfig['auxparam']) ? $pconfig['auxparam'] : "", sprintf(gettext("These parameters will be added to %s."), "websrv.conf") . " " . sprintf(gettext("Please check the <a href='%s' target='_blank'>documentation</a>."), "http://redmine.lighttpd.net/projects/lighttpd/wiki"), false, 85, 7, false, false);
?>
			  </table>
				<div id="submit">
					<input name="Submit" type="submit" class="formbtn" value="<?php 
echo gettext("Save and Restart");
?>
" onclick="enable_change(true)" />
				</div>
				<?php 
include "formend.inc";
?>
			</form>
开发者ID:sdoney,项目名称:nas4free,代码行数:31,代码来源:services_websrv.php


示例4: foreach

    ?>
</label><?php 
}
?>

<div class="input-users-list">

    <ul>
        <?php 
foreach ($value as $user) {
    ?>

            <li class="profile">
                <div class="checkbox">
                    <?php 
    echo html_checkbox($field->element_name . '[]', false, $user['id'], array('id' => "cb-user-{$user['id']}"));
    ?>
                </div>
                <div class="item">
                    <label for="cb-user-<?php 
    echo $user['id'];
    ?>
">
                        <div class="avatar">
                            <?php 
    echo html_avatar_image($user['avatar'], 'micro', $user['nickname']);
    ?>
                        </div>
                        <div class="name">
                            <?php 
    html($user['nickname']);
开发者ID:asphix,项目名称:icms2,代码行数:31,代码来源:users.tpl.php


示例5: html_select_multiple

/**
 * Генерирует список опций с множественным выбором
 *
 * @param string $name Имя списка
 * @param array $items Массив элементов списка (значение => заголовок)
 * @param string $selected Массив значений выбранных элементов
 * @param array $attributes Массив аттрибутов тега
 * @return html
 */
function html_select_multiple($name, $items, $selected = array(), $attributes = array(), $is_tree = false)
{
    $attr_str = html_attr_str($attributes);
    $html = '<div class="input_checkbox_list" ' . $attr_str . '>' . "\n";
    $start_level = false;
    foreach ($items as $value => $title) {
        $checked = is_array($selected) && in_array($value, $selected);
        if ($is_tree) {
            $level = mb_strlen(str_replace(' ', '', $title)) - mb_strlen(ltrim(str_replace(' ', '', $title), '-'));
            if ($start_level === false) {
                $start_level = $level;
            }
            $level = $level - $start_level;
            $title = ltrim($title, '- ');
            $html .= "\t" . '<label ' . ($level > 0 ? 'style="margin-left:' . $level * 20 . 'px"' : '') . '>' . html_checkbox($name . '[]', $checked, $value) . ' ' . htmlspecialchars($title) . '</label><br>' . "\n";
        } else {
            $html .= "\t" . '<label>' . html_checkbox($name . '[]', $checked, $value) . ' ' . htmlspecialchars($title) . '</label>' . "\n";
        }
    }
    $html .= '</div>' . "\n";
    return $html;
}
开发者ID:selimoves,项目名称:icms2,代码行数:31,代码来源:html.helper.php


示例6: htmlspecialchars

        continue;
    }
    $a_device[$vdevicev['name']] = htmlspecialchars("{$vdevicev['name']} ({$vdevicev['type']}" . (!empty($vdevicev['desc']) ? ", {$vdevicev['desc']})" : ")"));
}
?>
					<?php 
html_listbox("vdevice", gettext("Virtual devices"), !empty($pconfig['vdevice']) ? $pconfig['vdevice'] : array(), $a_device, "", true);
?>
					<?php 
html_inputbox("root", gettext("Root"), $pconfig['root'], gettext("Creates the pool with an alternate root."), false, 40);
?>
					<?php 
html_inputbox("mountpoint", gettext("Mount point"), $pconfig['mountpoint'], gettext("Sets an alternate mount point for the root dataset. Default is /mnt."), false, 40);
?>
					<?php 
html_checkbox("force", gettext("Force use"), !empty($pconfig['force']) ? true : false, gettext("Forces use of vdevs, even if they appear in use or specify different size. (This is not recommended.)"), "", false);
?>
					<?php 
html_inputbox("desc", gettext("Description"), $pconfig['desc'], gettext("You may enter a description here for your reference."), false, 40);
?>
				</table>
				<div id="submit">
					<input name="Submit" type="submit" class="formbtn" value="<?php 
echo isset($uuid) && FALSE !== $cnid ? gettext("Save") : gettext("Add");
?>
" onclick="enable_change(true)" />
					<input name="Cancel" type="submit" class="formbtn" value="<?php 
echo gettext("Cancel");
?>
" />
					<input name="uuid" type="hidden" value="<?php 
开发者ID:rterbush,项目名称:nas4free,代码行数:31,代码来源:disks_zfs_zpool_edit.php


示例7: html_checkbox

    html_checkbox("disablefirmwarecheck", gettext("Firmware version check"), $pconfig['disablefirmwarecheck'] ? true : false, gettext("Disable firmware version check"), sprintf(gettext("This will cause %s not to check for newer firmware versions when the <a href='%s'>%s</a> page is viewed."), get_product_name(), "system_firmware.php", gettext("System") . ": " . gettext("Firmware")));
    ?>
					<?php 
}
?>
					<?php 
html_checkbox("disablebeep", gettext("System Beep"), $pconfig['disablebeep'] ? true : false, gettext("Disable speaker beep on startup and shutdown"));
?>
					<?php 
html_checkbox("tune_enable", gettext("Tuning"), $pconfig['tune_enable'] ? true : false, gettext("Enable tuning of some kernel variables"));
?>
					<?php 
html_checkbox("powerd", gettext("Power Daemon"), $pconfig['powerd'] ? true : false, gettext("Enable the system power control utility"), gettext("The powerd utility monitors the system state and sets various power control options accordingly."));
?>
					<?php 
html_checkbox("zeroconf", gettext("Zeroconf/Bonjour"), $pconfig['zeroconf'] ? true : false, gettext("Enable Zeroconf/Bonjour to advertise services of this device"));
?>
					<?php 
html_textarea("motd", gettext("MOTD"), $pconfig['motd'], gettext("Message of the day."), false, 65, 7, false, false);
?>
				</table>
				<div id="submit">
					<input name="Submit" type="submit" class="formbtn" value="<?php 
echo gettext("Save");
?>
" />
				</div>
				<?php 
include "formend.inc";
?>
			</form>
开发者ID:ZenaVault,项目名称:FreeNAS-Source,代码行数:31,代码来源:system_advanced.php


示例8: date

// Quotes submitted via Control Panel have no Quote Date initially
$value = date("Y-m-d", $r->incept);
html_dateselect("Date", "incept", $value);
customer_select("Customer", "custid", $r->custid, 0, 'required');
custcontact_select("External Contact", "contactsid", $r->contactsid, $r->custid);
staff_select("Internal Contact", "staffid", $r->staffid);
html_textarea("Quote Description *", "content", $r->content, "body", 'required');
html_text("Price *", "price", $r->price, 'required');
html_textarea("Notes", "notes", $r->notes, "notes");
?>
Making a Quote as Live means it can be seen by customer in the
			Customer Control Panel

<?php 
$chkd = $r->live ? 1 : 0;
html_checkbox('Make it Live?', 'live', 1, $chkd);
?>

</fieldset>

	<fieldset class="buttons"><?php 
html_button("Save changes");
?>
 or <a href="/quotes/" class="cancel" title="Cancel">Cancel</a>

	</fieldset>

</form>

<script type="text/javascript">
<!--
开发者ID:athenasystems,项目名称:athena,代码行数:31,代码来源:edit.php


示例9: html_combobox

html_combobox("type", gettext("Type"), $pconfig['type'], $type, '', true, false, 'toggle_type($(this).val())');
?>
				<?php 
html_inputbox("ldaphostname", gettext("URI"), $pconfig['ldaphostname'], gettext("The space-separated list of URIs for the LDAP server."), true, 60);
?>
				<?php 
html_inputbox("ldapbase", gettext("Base DN"), $pconfig['ldapbase'], sprintf(gettext("The default base distinguished name (DN) to use for searches, e.g. %s"), "dc=test,dc=org"), true, 40);
?>
				<?php 
html_textarea("ldapauxparam", gettext("Ldap auxiliary parameters"), $pconfig['ldapauxparam'], sprintf(gettext("These parameters are added to %s."), "ldap.conf"), false, 65, 5, false, false);
?>
				<?php 
html_textarea("sssdauxparam", gettext("Sss auxiliary parameters"), $pconfig['sssdauxparam'], sprintf(gettext("These parameters are added to %s."), "sssd.conf"), false, 65, 5, false, false);
?>
				<?php 
html_checkbox("sssclearcache", gettext("Clear sss cache"), !empty($pconfig['sssclearcache']) ? true : false, gettext("Clear sss cache on each restart"));
?>
				</table>
				<div id="submit">
					<input name="Submit" type="submit" class="formbtn" value="<?php 
echo gettext("Save");
?>
" onclick="enable_change(true)" />
				</div>
			</td>
		</tr>
	</table>
	<?php 
include "formend.inc";
?>
</form>
开发者ID:BillTheBest,项目名称:OpenNAS,代码行数:31,代码来源:access_kerberos.php


示例10: html_ipv6addrbox

    ?>
											<?php 
    html_ipv6addrbox("ipv6addr", "ipv6subnet", gettext("IP address"), !empty($pconfig['ipv6addr']) ? $pconfig['ipv6addr'] : "", !empty($pconfig['ipv6subnet']) ? $pconfig['ipv6subnet'] : "", "", true);
    ?>
											<?php 
    html_separator();
    ?>
											<?php 
    html_titleline(gettext("Advanced Configuration"));
    ?>
											<?php 
    html_inputbox("mtu", gettext("MTU"), $pconfig['mtu'], gettext("Set the maximum transmission unit of the interface to n, default is interface specific. The MTU is used to limit the size of packets that are transmitted on an interface. Not all interfaces support setting the MTU, and some interfaces have range restrictions."), false, 5);
    ?>
<!--
											<?php 
    html_checkbox("polling", gettext("Device polling"), $pconfig['polling'] ? true : false, gettext("Enable device polling"), gettext("Device polling is a technique that lets the system periodically poll network devices for new data instead of relying on interrupts. This can reduce CPU load and therefore increase throughput, at the expense of a slightly higher forwarding delay (the devices are polled 1000 times per second). Not all NICs support polling."), false);
    ?>
-->
											<?php 
    html_combobox("media", gettext("Media"), $pconfig['media'], array("autoselect" => gettext("Autoselect"), "10baseT/UTP" => "10baseT/UTP", "100baseTX" => "100baseTX", "1000baseTX" => "1000baseTX", "1000baseSX" => "1000baseSX"), "", false, false, "media_change()");
    ?>
											<?php 
    html_combobox("mediaopt", gettext("Duplex"), $pconfig['mediaopt'], array("half-duplex" => "half-duplex", "full-duplex" => "full-duplex"), "", false);
    ?>
											<?php 
    if (!empty($ifinfo['wolevents'])) {
        ?>
											<?php 
        $wakeonoptions = array("off" => gettext("Off"), "wol" => gettext("On"));
        foreach ($ifinfo['wolevents'] as $woleventv) {
            $wakeonoptions[$woleventv] = $woleventv;
开发者ID:sdoney,项目名称:nas4free,代码行数:31,代码来源:interfaces_opt.php


示例11: getFilterInput

 public function getFilterInput($value = false)
 {
     return html_checkbox($this->name, (bool) $value);
 }
开发者ID:rookees,项目名称:icms2,代码行数:4,代码来源:images.php


示例12: array

?>
				<table width="100%" border="0" cellpadding="6" cellspacing="0">
					<?php 
$a_pathlist = array();
foreach ($a_path as $pathv) {
    $a_pathlist[$pathv['path']] = htmlspecialchars($pathv['path']);
}
?>
					<?php 
html_combobox("path", gettext("Path"), $pconfig['path'], $a_pathlist, "", true);
?>
					<?php 
html_inputbox("name", gettext("Name"), $pconfig['name'], "", true, 20);
?>
					<?php 
html_checkbox("recursive", gettext("Recursive"), !empty($pconfig['recursive']) ? true : false, gettext("Creates the recursive snapshot."), "", false);
?>
				</table>
				<div id="submit">
					<input name="Submit" type="submit" class="formbtn" value="<?php 
echo gettext("Add");
?>
" onclick="enable_change(true)" />
					<input name="Cancel" type="submit" class="formbtn" value="<?php 
echo gettext("Cancel");
?>
" />
					<input name="uuid" type="hidden" value="<?php 
echo $pconfig['uuid'];
?>
" />
开发者ID:rterbush,项目名称:nas4free,代码行数:31,代码来源:disks_zfs_snapshot_add.php


示例13: gettext

}
?>
 /> <?php 
echo gettext("Suppress non-error messages.");
?>
<br />
						</td>
					</tr>
					<?php 
html_checkbox("perms", gettext("Preserve permissions"), !empty($pconfig['perms']) ? true : false, gettext("This option causes the receiving rsync to set the destination permissions to be the same as the source permissions."), "", false);
?>
					<?php 
html_checkbox("xattrs", gettext("Preserve extended attributes"), !empty($pconfig['xattrs']) ? true : false, gettext("This option causes rsync to update the remote extended attributes to be the same as the local ones."), "", false);
?>
					<?php 
html_checkbox("reversedirection", gettext("Reverse direction"), !empty($pconfig['reversedirection']) ? true : false, gettext("This option causes rsync to copy the local data to the remote server."), "", false);
?>
					<?php 
html_inputbox("extraoptions", gettext("Extra options"), !empty($pconfig['extraoptions']) ? $pconfig['extraoptions'] : "", gettext("Extra options to rsync (usually empty).") . " " . sprintf(gettext("Please check the <a href='%s' target='_blank'>documentation</a>."), "http://rsync.samba.org/ftp/rsync/rsync.html"), false, 40);
?>
	      </table>
				<div id="submit">
					<input name="Submit" type="submit" class="formbtn" value="<?php 
echo isset($uuid) && FALSE !== $cnid ? gettext("Save") : gettext("Add");
?>
" />
					<input name="uuid" type="hidden" value="<?php 
echo $pconfig['uuid'];
?>
" />
					<?php 
开发者ID:sdoney,项目名称:nas4free,代码行数:31,代码来源:services_rsyncd_client_edit.php


示例14: html_combobox

for ($n = 1; $n <= 9; $n++) {
    $mode = "gzip-{$n}";
    $a_compressionmode[$mode] = $mode;
}
?>
					<?php 
html_combobox("compression", gettext("Compression"), $pconfig['compression'], $a_compressionmode, gettext("Controls the compression algorithm used for this dataset. The 'lzjb' compression algorithm is optimized for performance while providing decent data compression. Setting compression to 'On' uses the 'lzjb' compression algorithm. You can specify the 'gzip' level by using the value 'gzip-N', where N is an integer from 1 (fastest) to 9 (best compression ratio). Currently, 'gzip' is equivalent to 'gzip-6'."), true);
?>
					<?php 
html_checkbox("canmount", gettext("Canmount"), $pconfig['canmount'] ? true : false, gettext("If this property is disabled, the file system cannot be mounted."), "", false);
?>
					<?php 
html_checkbox("readonly", gettext("Readonly"), $pconfig['readonly'] ? true : false, gettext("Controls whether this dataset can be modified."), "", false);
?>
					<?php 
html_checkbox("xattr", gettext("Extended attributes"), $pconfig['xattr'] ? true : false, gettext("Enable extended attributes for this file system."), "", false);
?>
					<?php 
html_inputbox("quota", gettext("Quota"), $pconfig['quota'], gettext("Limits the amount of space a dataset and its descendants can consume. This property enforces a hard limit on the amount of space used. This includes all space consumed by descendants, including file systems and snapshots. To specify the size use the following human-readable suffixes (for example, 'k', 'KB', 'M', 'Gb', etc.)."), false, 10);
?>
					<?php 
html_inputbox("desc", gettext("Description"), $pconfig['desc'], gettext("You may enter a description here for your reference."), false, 40);
?>
				</table>
				<div id="submit">
					<input name="Submit" type="submit" class="formbtn" value="<?php 
echo isset($uuid) && FALSE !== $cnid ? gettext("Save") : gettext("Add");
?>
" onclick="enable_change(true)" />
					<input name="Cancel" type="submit" class="formbtn" value="<?php 
echo gettext("Cancel");
开发者ID:ZenaVault,项目名称:FreeNAS-Source,代码行数:31,代码来源:disks_zfs_dataset_edit.php


示例15: gettext

							<input name="quiet" id="quiet" type="checkbox" value="yes" <?php 
if ($pconfig['quiet']) {
    echo "checked=\"checked\"";
}
?>
 /> <?php 
echo gettext("Suppress non-error messages.");
?>
<br />
						</td>
					</tr>
					<?php 
html_checkbox("perms", gettext("Preserve permissions"), $pconfig['perms'] ? true : false, gettext("This option causes the receiving rsync to set the destination permissions to be the same as the source permissions."), "", false);
?>
					<?php 
html_checkbox("xattrs", gettext("Preserve extended attributes"), $pconfig['xattrs'] ? true : false, gettext("This option causes rsync to update the remote extended attributes to be the same as the local ones."), "", false);
?>
					<?php 
html_inputbox("extraoptions", gettext("Extra options"), $pconfig['extraoptions'], gettext("Extra options to rsync (usually empty).") . " " . sprintf(gettext("Please check the <a href='%s' target='_blank'>documentation</a>."), "http://rsync.samba.org/ftp/rsync/rsync.html"), false, 40);
?>
	      </table>
				<div id="submit">
					<input name="Submit" type="submit" class="formbtn" value="<?php 
echo isset($uuid) && FALSE !== $cnid ? gettext("Save") : gettext("Add");
?>
" />
					<input name="uuid" type="hidden" value="<?php 
echo $pconfig['uuid'];
?>
" />
					<?php 
开发者ID:ZenaVault,项目名称:FreeNAS-Source,代码行数:31,代码来源:services_rsyncd_client_edit.php


示例16: htmlspecialchars

        if (strcmp($tmp, $dev) != 0) {
            $a_device[strip_dev($dev)] = htmlspecialchars(sprintf("%s (%s)", strip_dev($dev), strip_dev($tmp)));
        } else {
            $tmp = strip_partition($dev);
            if (strcmp($tmp, $dev) != 0) {
                $a_device[strip_dev($dev)] = htmlspecialchars(sprintf("%s (%s)", strip_dev($dev), strip_dev($tmp)));
            }
        }
    }
}
?>
					<?php 
html_listbox("device", gettext("Devices"), !empty($pconfig['device']) ? $pconfig['device'] : array(), $a_device, "", true, isset($uuid) && false !== $cnid);
?>
					<?php 
html_checkbox("aft4k", gettext("4KB wrapper"), !empty($pconfig['aft4k']) ? true : false, gettext("Create 4KB wrapper (nop device)."), "", false, "");
?>
					<?php 
html_inputbox("desc", gettext("Description"), $pconfig['desc'], gettext("You may enter a description here for your reference."), false, 40);
?>
				</table>
				<div id="submit">
					<input name="Submit" type="submit" class="formbtn" value="<?php 
echo isset($uuid) && FALSE !== $cnid ? gettext("Save") : gettext("Add");
?>
" onclick="enable_change(true)" />
					<input name="Cancel" type="submit" class="formbtn" value="<?php 
echo gettext("Cancel");
?>
" />
					<input name="uuid" type="hidden" value="<?php 
开发者ID:BillTheBest,项目名称:OpenNAS,代码行数:31,代码来源:disks_zfs_zpool_vdevice_edit.php


示例17: array

$options = array("AES" => "AES-XTS", "AES-CBC" => "AES-CBC", "Blowfish" => "Blowfish", "Camellia" => "Camellia", "3DES" => "3DES");
?>
					<?php 
html_combobox("ealgo", gettext("Encryption algorithm"), $pconfig['ealgo'], $options, gettext("Encryption algorithm to use."), true, false, "ealgo_change()");
?>
					<?php 
$options = array("" => gettext("Default"), 128 => "128", 192 => "192", 256 => "256", 448 => "448");
?>
					<?php 
html_combobox("keylen", gettext("Key length"), $pconfig['keylen'], $options, gettext("Key length to use with the given cryptographic algorithm.") . " " . gettext("The default key lengths are: 128 for AES, 128 for Blowfish, 128 for Camellia and 192 for 3DES."), false);
?>
					<?php 
html_passwordconfbox("passphrase", "passphraseconf", gettext("Passphrase"), "", "", "", true);
?>
					<?php 
html_checkbox("init", gettext("Initialize"), $pconfig['init'] ? true : false, gettext("Initialize and encrypt disk."), gettext("This will erase ALL data on your disk! Do not use this option if you want to add an existing encrypted disk."));
?>
			  </table>
				<div id="submit">
					<input name="Submit" type="submit" class="formbtn" value="<?php 
echo gettext("Add");
?>
" />
					<input name="Cancel" type="submit" class="formbtn" value="<?php 
echo gettext("Cancel");
?>
" />
				</div>
				<?php 
if ($pconfig['do_action']) {
    echo sprintf("<div id='cmdoutput'>%s</div>", gettext("Command output:"));
开发者ID:rterbush,项目名称:nas4free,代码行数:31,代码来源:disks_crypt_edit.php


示例18: html_titleline





				<table width="100%" border="0" cellpadding="5" cellspacing="0">
					<?php 
html_titleline(gettext('Options'));
?>
					<?php 
html_checkbox("leave_autosnapshots", gettext("Leave auto snapshot configuration"), true, gettext("Leave already configured auto snapshots."), "", false);
?>
					<?php 
html_checkbox("import_disks", gettext("Import disks"), true, gettext("Import disks used in configuration."), "", false);
?>
					<?php 
html_checkbox("import_disks_overwrite", gettext("Overwrite disks configuration"), false, gettext("Overwrite already configured disks (only affects filesystem value)."), "", false);
?>
				</table>
				<br />
				<div id="submit">
					<input type="submit" name="import_config" value="<?php 
echo gettext('Synchronize');
?>
" />
				</div>
				<?php 
include "formend.inc";
?>
			</form>
		</td>
	</tr>
开发者ID:rterbush,项目名称:nas4free,代码行数:27,代码来源:disks_zfs_config_sync.php


示例19: isset

</div>
                                    <?php 
            }
            ?>
                                </td>

                                <?php 
            $default = isset($values[$rule['id']][$group['id']]) ? $values[$rule['id']][$group['id']] : null;
            ?>

                                <td class="center">
                                    <?php 
            if ($rule['type'] == 'flag') {
                ?>
                                        <?php 
                echo html_checkbox("value[{$rule['id']}][{$subject['name']}]", $default);
                ?>
                                    <?php 
            }
            ?>
                                    <?php 
            if ($rule['type'] == 'list') {
                ?>
                                        <?php 
                echo html_select("value[{$rule['id']}][{$subject['name']}]", $rule['options'], $default);
                ?>
                                    <?php 
            }
            ?>
                                    <?php 
            if ($rule['type'] == 'number') {
开发者ID:Val-Git,项目名称:icms2,代码行数:31,代码来源:users_group_perms.tpl.php


示例20: html_text

html_text("installation_directory", gettext("Installation directory"), sprintf(gettext("The extension is installed in %s"), $config['onebuttoninstaller']['rootfolder']));
?>
			<?php 
html_filechooser("storage_path", gettext("Common directory"), $pconfig['storage_path'], gettext("Common directory for all extensions (a persistant place where all extensions are/should be - a directory below <b>/mnt/</b>)."), $pconfig['storage_path'], true, 60);
?>
            <?php 
html_checkbox("path_check", gettext("Path check"), $pconfig['path_check'], gettext("If this option is selected no examination of the common directory path will be carried out (whether it was set to a directory below /mnt/)."), "<b><font color='red'>" . gettext("Please use this option only if you know what you are doing!") . "</font></b>", false);
?>
            <?php 
html_checkbox("re_install", gettext("Re-install"), $pconfig['re_install'], gettext("If enabled it is possible to install extensions even if they are already installed."), "<b><font color='red'>" . gettext("Please use this option only if you know what you are doing!") . "</font></b>", false);
?>
            <?php 
html_checkbox("auto_update", gettext("Update"), $pconfig['auto_update'], gettext("Update extensions list automatically."), "", false);
?>
            <?php 
html_checkbox("show_beta", gettext("Beta releases"), $pconfig['show_beta'], gettext("If enabled, extensions in beta state will be shown in the extensions list."), "", false);
?>
        </table>
        <div id="submit">
			<input id="save" name="save" type="submit" class="formbtn" value="<?php 
echo gettext("Save");
?>
"/>
        </div>
	</td></tr>
	</table>
	<?php 
include "formend.inc";
?>
</form>
<script type="text/javascript">
开发者ID:crestAT,项目名称:nas4free-onebuttoninstaller,代码行数:31,代码来源:onebuttoninstaller-config.php



注:本文中的html_checkbox函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP html_checkbox_field函数代码示例发布时间:2022-05-15
下一篇:
PHP html_calendar_field函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap