本文整理汇总了PHP中NewsletterControls::hidden方法的典型用法代码示例。如果您正苦于以下问题:PHP NewsletterControls::hidden方法的具体用法?PHP NewsletterControls::hidden怎么用?PHP NewsletterControls::hidden使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类NewsletterControls
的用法示例。
在下文中一共展示了NewsletterControls::hidden方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
?>
"
});
</script>
<div class="wrap">
<h2>Email Composer</h2>
<form method="post" action="admin.php?page=newsletter/emails-edit.php">
<?php
$nc->init();
?>
<?php
$nc->hidden('id');
?>
<?php
$nc->hidden('status');
?>
<table class="form-table">
<tr valign="top">
<th>Theme</th>
<td>
<?php
$nc->select_grouped('theme', array(array_merge(array('' => 'Custom themes'), newsletter_get_themes()), $themes, $themes_panel));
?>
<?php
$nc->button('compose', 'Change');
示例2:
<div class="newsletter-separator"></div>
<?php
$controls->show();
?>
<form method="post" id="newsletter-form" action="<?php
echo $module->get_admin_page_url('new');
?>
">
<?php
$controls->init();
?>
<?php
$controls->hidden('theme');
?>
<?php
foreach ($themes as $key => &$data) {
?>
<div class="tnp-theme-preview">
<p><?php
echo $data['name'];
?>
</p>
<a href="#" onclick="var f = document.getElementById('newsletter-form');
f.act.value = 'theme';
f.elements['options[theme]'].value = '<?php
echo $data['name'];
?>
';
示例3:
$nc->save($wpdb->prefix . 'newsletter');
}
}
$nc->errors($errors);
$nc->messages($messages);
$options_profile = get_option('newsletter_profile');
?>
<div class="wrap">
<h2>Newsletter Subscriber Editing</h2>
<p><a href="admin.php?page=newsletter/users.php">Back to the list</a></p>
<form method="post" action="admin.php?page=newsletter/users-edit.php">
<?php
$nc->init();
?>
<?php
$nc->hidden('id');
?>
<?php
$nc->hidden('token');
?>
<table class="form-table">
<tr valign="top">
<th> </th>
<td>
id: <?php
$nc->value('id');
?>
created: <?php
$nc->value('created');
?>