本文整理汇总了PHP中html_textarea函数的典型用法代码示例。如果您正苦于以下问题:PHP html_textarea函数的具体用法?PHP html_textarea怎么用?PHP html_textarea使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了html_textarea函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: testFaqmod
function testFaqmod()
{
global $sess, $t, $bx;
$db_config = new mock_db_configure(1);
$d = $this->_generate_records(array('question', 'answer', 'faqid'), 1);
$db_config->add_query('fubar', 0);
$db_config->add_record($d[0], 0);
$db = new DB_SourceAgency();
$db->query('fubar');
$db->next_record();
$bx = $this->_create_default_box();
$this->capture_call('faqmod', 2356 + strlen($sess->self_url()), array(&$db));
$this->_checkFor_a_box('Modify a Frequently Asked Question');
$this->_checkFor_a_form('PHP_SELF');
$this->_checkFor_columns(2);
$v = array('Question' => html_textarea('question', 40, 4, 'virtual', 255, $d[0]['question']), 'Answer' => html_textarea('answer', 40, 7, 'virtual', 255, $d[0]['answer']));
while (list($key, $val) = each($v)) {
$this->push_msg("Test {$key}");
$this->_checkFor_column_titles(array($key), 'right', '30%', '', "<b>%s</b> (*): ");
$this->_checkFor_column_values(array($val));
$this->pop_msg();
}
$this->_testFor_html_form_hidden('modify', 2);
$this->_testFor_html_form_hidden('faqid', $d[0]['faqid']);
$this->_testFor_html_form_submit($t->translate('Modify'));
$this->_check_db($db_config);
}
示例2: displayEditor
public function displayEditor($field_id, $content = '')
{
$lang = cmsConfig::get('language');
$user = cmsUser::getInstance();
cmsTemplate::getInstance()->addJS('wysiwyg/tinymce/tinymce.min.js');
$dom_id = str_replace(array('[', ']'), array('_', ''), $field_id);
echo html_textarea($field_id, $content, array('id' => $dom_id));
?>
<script type="text/javascript" >
$(document).ready(function(){
tinymce.init({mode : "exact",
elements : "<?php
echo $field_id;
?>
",
language : "ru",
plugins: [
"link image lists media responsivefilemanager "
],
relative_urls: false,
filemanager_title:"Responsive Filemanager",
external_filemanager_path:"/filemanager/",
external_plugins: { "filemanager" : "/filemanager/plugin.min.js"},
image_advtab: true,
toolbar1: "undo redo | bold italic underline | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | styleselect",
toolbar2: "| responsivefilemanager | image | media | link unlink anchor | "
});
});
</script>
<?php
}
示例3: testSponsoring_form
function testSponsoring_form()
{
global $sponsoring_text, $budget, $valid_day, $valid_month, $valid_year, $begin_day, $begin_month, $begin_year, $finish_day, $finish_month, $finish_year, $sess, $bx, $t;
$sponsoring_text = "this is the sponsoring text";
$budget = "this is the budget";
$valid_day = 3;
$begin_day = 4;
$finish_day = 5;
$valid_month = 4;
$begin_month = 5;
$finish_month = 6;
$valid_year = 2001;
$begin_year = 2002;
$finish_year = 2003;
$proid = 'proid';
$bx = $this->_create_default_box();
$this->capture_call('sponsoring_form', 8389 + strlen($sess->self_url()), array(&$proid));
$this->set_msg('test 1');
$this->_checkFor_a_box('Sponsoring involvement');
$this->_checkFor_a_form('PHP_SELF', array('proid' => $proid));
$this->_checkFor_columns(2);
$this->_checkFor_column_titles(array("Valid until", "Begin", "Finish", "Budget (in euro)", "Sponsoring Comment"));
foreach (array(select_date('valid', $valid_day, $valid_month, $valid_year), select_date('begin', $begin_day, $begin_month, $begin_year), select_date('finish', $finish_day, $finish_month, $finish_year), html_input_text('budget', 12, 12, $budget), html_textarea('sponsoring_text', 40, 7, 'virtual', 255, $sponsoring_text), html_form_submit($t->translate('Preview'), 'preview') . html_form_submit($t->translate('Submit'), 'submit')) as $val) {
$this->_testFor_box_column('left', '70%', '', $val);
}
}
示例4: displayEditor
public function displayEditor($field_id, $content = '')
{
$lang = cmsConfig::get('language');
$user = cmsUser::getInstance();
cmsTemplate::getInstance()->addCSS('wysiwyg/ckeditor/samples/sample.css');
cmsTemplate::getInstance()->addJS('wysiwyg/ckeditor/ckeditor.js');
$dom_id = str_replace(array('[', ']'), array('_', ''), $field_id);
echo html_textarea($field_id, $content, array('id' => $dom_id));
?>
<script type="text/javascript" >
<?php
if ($user->is_admin) {
?>
$(document).ready(function(){
CKEDITOR.replace('<?php
echo $dom_id;
?>
',{
});
});
<?php
}
?>
</script>
<?php
}
示例5: displayEditor
public function displayEditor($field_id, $content = '')
{
$lang = cmsConfig::get('language');
$user = cmsUser::getInstance();
$template = cmsTemplate::getInstance();
$template->addCSSFromContext('wysiwyg/redactor/css/redactor.css');
$template->addJSFromContext('wysiwyg/redactor/js/redactor.js');
$template->addJSFromContext('wysiwyg/redactor/js/video.js');
$template->addJSFromContext('wysiwyg/redactor/js/fullscreen.js');
$template->addJSFromContext('wysiwyg/redactor/js/fontsize.js');
$template->addJSFromContext('wysiwyg/redactor/js/fontfamily.js');
$template->addJSFromContext('wysiwyg/redactor/js/fontcolor.js');
$template->addJSFromContext("wysiwyg/redactor/lang/{$lang}.js");
$dom_id = str_replace(array('[', ']'), array('_', ''), $field_id);
echo html_textarea($field_id, $content, array('id' => $dom_id));
?>
<script type="text/javascript">
$(document).ready(function(){
$('#<?php
echo $dom_id;
?>
').redactor({
lang: '<?php
echo $lang;
?>
',
plugins: ['video', 'fontfamily', 'fontsize', 'fontcolor', 'fullscreen'],
imageUpload: '<?php
echo href_to('redactor/upload');
?>
',
minHeight: 250,
<?php
if ($user->is_admin) {
?>
buttonSource: true
<?php
}
?>
});
});
</script>
<?php
}
示例6: testNews_modify_form
function testNews_modify_form()
{
global $text, $subject, $creation, $sess, $bx, $t;
$text = "this is the text";
$subject = "this is the subject";
$creation = "asdasd";
$proid = 'proid';
$bx = $this->_create_default_box();
capture_reset_and_start();
news_modify_form($proid);
$this->set_text(capture_stop_and_get());
$this->_checkFor_a_box('Modifying News');
$this->_checkFor_a_form('PHP_SELF', array('proid' => $proid));
$this->_testFor_html_form_hidden('creation', $creation);
$this->_checkFor_columns(2);
$this->_checkFor_column_titles(array('Subject', 'Body'));
$this->_checkFor_column_values(array(html_textarea('text', 40, 7, 'virtual', 255, $text), html_input_text('subject', 40, 128, $subject)));
$this->_checkFor_submit_preview_buttons();
$this->_testFor_string_length(2366 + strlen($sess->self_url()));
}
示例7: view_customer
private function view_customer()
{
$id = $_GET['id'];
if ($_POST) {
$update = $this->customer->update_blocked_status_customer($id);
if ($update) {
redirect($this->base_link);
} else {
parent::alert('error', 'Gagal !', 'Gagal merubah status pelanggan !');
}
}
$customer = $this->customer->get_customer('', $id);
$detail = $this->customer->get_customer('detail', $id);
if ($customer['blocked'] == 'N') {
$status = $this->radio_config('blocked', 'checked', '');
} else {
$status = $this->radio_config('blocked', '', 'checked');
}
$customer_data = array(array('label' => '<img src="' . $this->img_dir . 'no_image.jpg" />', 'input' => ''), array('label' => 'Tgl registrasi', 'input' => html_input('text', array('value="' . $customer['reg_date'] . '"', 'class="span3"', 'disabled'))), array('label' => 'Nama lengkap', 'input' => html_input('text', array('value="' . $detail['fullname'] . '"', 'class="span3"', 'disabled'))), array('label' => 'Status', 'input' => $status), array('label' => 'Jenis kelamin', 'input' => html_input('text', array('value="' . $detail['sex'] . '"', 'class="span3"', 'disabled'))), array('label' => 'Alamat', 'input' => html_textarea(array('class="span6"', 'disabled'), $detail['address'])), array('label' => 'Provinsi', 'input' => html_input('text', array('value="' . $detail['state'] . '"', 'class="span3"', 'disabled'))), array('label' => 'Kota', 'input' => html_input('text', array('value="' . $detail['city'] . '"', 'class="span3"', 'disabled'))), array('label' => 'Kode pos', 'input' => html_input('text', array('value="' . $detail['postal_code'] . '"', 'class="span3"', 'disabled'))), array('label' => 'No.Telp', 'input' => html_input('text', array('value="' . $detail['phone_number'] . '"', 'class="span3"', 'disabled'))), array('label' => 'Email', 'input' => html_input('text', array('value="' . $detail['email'] . '"', 'class="span3"', 'disabled'))));
$button = array(html_input('submit', array('value="Simpan"', 'class="btn btn-success"')), html_input('button', array('value="Kirim Pesan"', 'onClick="window.location.go(-1)"', 'class="btn btn-success"')));
parent::form_config('', '', $customer_data, 'Data pelanggan', $button);
}
示例8: testDoco_mod
function testDoco_mod()
{
global $sess, $t, $bx;
$d = $this->_generate_records(array('page', 'header', 'doco', 'docoid'), 1);
$db_config = new mock_db_configure(1);
$db_config->add_query('fubar', 0);
$db_config->add_record($d[0], 0);
$db = new DB_SourceAgency();
$db->query('fubar');
$db->next_record();
$bx = $this->_create_default_box();
$this->capture_call('doco_mod', 2811 + strlen($sess->self_url()), array(&$db));
$v = array('Page (without extension)' => html_input_text('page', 40, 64, $d[0]['page']), 'Header' => html_input_text('header', 40, 64, $d[0]['header']), 'doco' => html_textarea('doco', 40, 7, 'virtual', 255, $d[0]['doco']));
while (list($key, $val) = each($v)) {
$this->push_msg("Test {$key}");
$this->_checkFor_column_titles(array($key));
$this->_checkFor_column_values(array($val));
$this->pop_msg();
}
$this->_testFor_html_form_hidden('docoid', $d[0]['docoid']);
$this->_testFor_html_form_hidden('modify', 2);
$this->_testFor_html_form_submit($t->translate('Modify'));
$this->_check_db($db_config);
}
示例9: html_separator
<?php
html_separator();
?>
<?php
html_titleline(gettext("Advanced settings"));
?>
<?php
html_checkbox("alertemail", gettext("Alert email"), isset($pconfig['alertemail']) ? true : false, gettext("Send email if error"));
?>
<?php
html_inputbox("alertemailto", gettext("Email to"), $pconfig['alertemailto'], gettext("Where email alert will be send."), true, 40);
?>
<?php
html_textarea("auxparam", gettext("Auxiliary parameters"), $pconfig['auxparam'], sprintf(gettext("These parameters are added to %s."), "hast.conf") . " " . sprintf(gettext("Please check the <a href='%s' target='_blank'>documentation</a>."), "http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/disks-hast.html"), false, 65, 5, false, false);
?>
</table>
<div id="submit">
<input name="Submit" type="submit" class="formbtn" value="<?php
echo gettext("Save and Restart");
?>
" />
</div>
<div id="remarks">
<?php
html_remark("note", gettext("Note"), sprintf("<div id='enumeration'><ul><li>%s</li><li>%s</li><li>%s</li></ul></div>", gettext("When HAST is enabled, the local devices, the local services and the additional packages which do not support HAST volume cannot be used."), gettext("The HAST volumes can not be accessed until HAST node becomes Primary."), gettext("Dynamic IP (DHCP) can not be used for HAST resources.")));
?>
</div>
<?php
include "formend.inc";
示例10: html_textarea
<?php
if ($field->title) {
?>
<label for="<?php
echo $field->id;
?>
"><?php
echo $field->title;
?>
</label><?php
}
echo html_textarea($field->element_name, $value, array('rows' => $field->getOption('size'), 'id' => $field->id, 'required' => array_search(array('required'), $field->getRules()) !== false));
if ($field->getOption('show_symbol_count')) {
?>
<script type="text/javascript">
$(function(){
icms.forms.initSymbolCount('<?php
echo $field->id;
?>
', <?php
echo $field->getOption('max_length') ? (int) $field->getOption('max_length') : 0;
?>
, <?php
echo $field->getOption('min_length') ? (int) $field->getOption('min_length') : 0;
?>
);
});
</script>
<?php
}
示例11: gettext
?>
/>
<?php
echo gettext("Enable compression.");
?>
<br />
<span class="vexpl"><?php
echo gettext("Compression is worth using if your connection is slow. The efficiency of the compression depends on the type of the file, and varies widely. Useful for internet transfer only.");
?>
</span></td>
</tr>
<?php
html_textarea("key", gettext("Private Key"), $pconfig['key'], gettext("Paste a DSA PRIVATE KEY in PEM format here."), false, 65, 7, false, false);
?>
<?php
html_textarea("auxparam", gettext("Extra options"), $pconfig['auxparam'], gettext("Extra options to /etc/ssh/sshd_config (usually empty). Note, incorrect entered options prevent SSH service to be started.") . " " . sprintf(gettext("Please check the <a href='%s' target='_blank'>documentation</a>."), "http://www.freebsd.org/cgi/man.cgi?query=sshd_config&apropos=0&sektion=0&manpath=FreeBSD+{$os_release}-RELEASE&format=html"), false, 65, 5, 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
include "formend.inc";
?>
</form>
示例12: gettext
<td width="22%" valign="top" class="vncell"><?php
echo gettext("Volume Size Limit");
?>
</td>
<td width="78%" class="vtable">
<input name='volsizelimit' type='text' class='formfld' id='volsizelimit' size='10' value="<?php
echo htmlspecialchars($pconfig['volsizelimit']);
?>
" /> <?php
echo gettext("MiB");
?>
</td>
</tr>
<tr>
<?php
html_textarea("auxparam", gettext("Auxiliary parameters"), $pconfig['auxparam'], sprintf(gettext("add any supplemental parameters")) . " " . sprintf(gettext("Please check the <a href='%s' target='_blank'>documentation</a>."), "http://netatalk.sourceforge.net/3.1/htmldocs/afp.conf.5.html"), false, 65, 5, false, false);
?>
</tr>
</table>
<div id="submit">
<input name="Submit" type="submit" class="formbtn" value="<?php
echo isset($uuid) && FALSE !== $cnid ? gettext("Save") : gettext("Add");
?>
" />
<input name="Cancel" type="submit" class="formbtn" value="<?php
echo gettext("Cancel");
?>
" />
<input name="uuid" type="hidden" value="<?php
echo $pconfig['uuid'];
?>
示例13: html_combobox
</td>
</tr>
<?php
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
示例14: gettext
?>
" /></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>
</td>
</tr>
</table>
示例15: html_text
?>
<h3>Company Details</h3>
<?php
html_text("Company Name", "co_name", $_POST['co_name']);
if (!isset($_POST['custid'])) {
$_POST['custid'] = $_GET['custid'];
}
customer_select("Or", "custid", $_POST['custid']);
if (!isset($_POST['suppid'])) {
$_POST['suppid'] = $_GET['suppid'];
}
supplier_select("Or", "suppid", $_POST['suppid']);
html_text("Role", "role", $_POST['role']);
include "/srv/athenace/lib/shared/adds.add.form.php";
html_textarea("Notes", "notes", $_POST['notes'], "body");
?>
</fieldset>
<fieldset class="buttons">
<?php
html_button("Save changes");
?>
or <a href="/contacts/" class="cancel" title="Cancel">Cancel</a>
</fieldset>
</form>