当前位置: 首页>>代码示例>>PHP>>正文


PHP html_checkbox函数代码示例

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


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


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