本文整理汇总了PHP中display_html函数的典型用法代码示例。如果您正苦于以下问题:PHP display_html函数的具体用法?PHP display_html怎么用?PHP display_html使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了display_html函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: display_html
echo "</tr>\n<tr>\n";
echo "<td valign='top' width='100' class='tbl'>" . $locale['547'] . "</td>\n";
echo "<td width='80%' class='tbl'><textarea name='article_snippet' cols='60' rows='5' class='textbox' style='width:300px;'>" . $article_snippet . "</textarea></td>\n";
echo "</tr>\n";
if ($settings['tinymce_enabled'] != 1) {
echo "<tr>\n<td class='tbl'></td>\n<td class='tbl'>\n";
echo display_html("publish", "article_body", TRUE, TRUE, TRUE);
echo "</td>\n</tr>\n";
}
echo "<tr>\n";
echo "<td valign='top' width='100' class='tbl'>" . $locale['548'] . "</td>\n";
echo "<td width='80%' class='tbl'><textarea name='article_body' cols='60' rows='10' class='textbox' style='width:300px;'>" . $article_body . "</textarea></td>\n";
echo "</tr>\n";
if ($settings['tinymce_enabled'] != 1) {
echo "<tr>\n<td class='tbl'></td>\n<td class='tbl'>\n";
echo display_html("publish", "article_body", TRUE, TRUE, TRUE);
echo "</td>\n</tr>\n";
}
echo "<tr>\n";
echo "<td align='center' colspan='2' class='tbl1'><br />\n";
echo $locale['541'] . profile_link($data['user_id'], $data['user_name'], $data['user_status']) . "<br /><br />\n";
echo $locale['542'] . "<br />\n";
echo "<input type='hidden' name='article_breaks' value='" . $article_breaks . "' />\n";
echo "<input type='submit' name='preview' value='" . $locale['549'] . "' class='button' />\n";
echo "<input type='submit' name='publish' value='" . $locale['543'] . "' class='button' />\n";
echo "<input type='submit' name='delete' value='" . $locale['544'] . "' class='button' />\n";
echo "</td>\n</tr>\n</table>\n</form>\n";
closetable();
} else {
redirect(FUSION_SELF . $aidlink);
}
示例2: opentable
$cat_opts .= "<option value='" . $data2['faq_cat_id'] . "'{$sel}>" . $data2['faq_cat_name'] . "</option>\n";
}
opentable($faq_title);
echo "<form name='inputform' method='post' action='" . $faq_action . "'>\n";
echo "<table cellpadding='0' cellspacing='0' class='center'>\n<tr>\n";
echo "<td class='tbl'>" . $locale['520'] . "</td>\n";
echo "<td class='tbl'><select name='faq_cat' class='textbox' style='width:250px;'>\n" . $cat_opts . "</select></td>\n";
echo "</tr>\n<tr>\n";
echo "<td class='tbl'>" . $locale['521'] . "</td>\n";
echo "<td class='tbl'><input type='text' name='faq_question' value='" . $faq_question . "' class='textbox' style='width:330px' /></td>\n";
echo "</tr>\n<tr>\n";
echo "<td valign='top' class='tbl'>" . $locale['522'] . "</td>\n";
echo "<td class='tbl'><textarea name='faq_answer' cols='60' rows='5' class='textbox' style='width:330px;'>" . phpentities(stripslashes($faq_answer)) . "</textarea></td>\n";
echo "</tr>\n<tr>\n";
echo "<td class='tbl'></td><td class='tbl'>\n";
echo display_html("inputform", "faq_answer") . "</td>\n";
echo "</tr>\n<tr>\n";
echo "<td align='center' colspan='2' class='tbl'><br />\n";
echo "<input type='submit' name='save_faq' value='" . $locale['523'] . "' class='button' /></td>\n";
echo "</tr>\n</table>\n</form>\n";
closetable();
}
}
opentable($locale['502']);
$result = dbquery("SELECT faq_cat_id, faq_cat_name FROM " . DB_FAQ_CATS . " ORDER BY faq_cat_name");
if (dbrows($result) != 0) {
echo "<table cellpadding='0' cellspacing='0' width='400' class='center'>\n<tr>\n";
echo "<td class='tbl2'>" . $locale['540'] . "</td>\n";
echo "<td align='right' class='tbl2'>" . $locale['541'] . "</td>\n";
echo "</tr>\n<tr>\n";
echo "<td colspan='2' height='1'></td>\n";
示例3: form_textarea
//.........这里部分代码省略.........
}
$tinymce_list = json_encode($tinymce_list);
$tinymce_smiley_vars = "";
if (!defined('tinymce')) {
add_to_head("<style type='text/css'>.mceIframeContainer iframe{width:100%!important; height:30px;}</style>");
add_to_footer("<script type='text/javascript' src='" . INCLUDES . "jscripts/tinymce/tinymce.min.js'></script>");
define('tinymce', TRUE);
// PHP-Fusion Parse Cache Smileys
$smileys = cache_smileys();
$tinymce_smiley_vars = "";
if (!empty($smileys)) {
$tinymce_smiley_vars = "var shortcuts = {\n";
foreach ($smileys as $params) {
$tinymce_smiley_vars .= "'" . strtolower($params['smiley_code']) . "' : '<img alt=\"" . $params['smiley_text'] . "\" src=\"" . IMAGES . "smiley/" . $params['smiley_image'] . "\"/>',\n";
}
$tinymce_smiley_vars .= "};\n";
$tinymce_smiley_vars .= "\n\t\t\t\ted.on('keyup load', function(e){\n\t\t\t\t\tvar marker = tinymce.activeEditor.selection.getBookmark();\n\t\t\t\t\t// Store editor contents\n\t\t\t\t\tvar content = tinymce.activeEditor.getContent({'format':'raw'});\n\t\t\t\t\t// Loop through all shortcuts\n\t\t\t\t\tfor(var key in shortcuts){\n\t\t\t\t\t\t// Check if the editor html contains the looped shortcut\n\t\t\t\t\t\tif(content.toLowerCase().indexOf(key) != -1) {\n\t\t\t\t\t\t\t// Escaping special characters to be able to use the shortcuts in regular expression\n\t\t\t\t\t\t\tvar k = key.replace(/[<>*()?']/ig, \"\\\$&\");\n\t\t\t\t\t\t\ttinymce.activeEditor.setContent(content.replace(k, shortcuts[key]));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t// Now put cursor back where it was\n\t\t\t\t\ttinymce.activeEditor.selection.moveToBookmark(marker);\n\t\t\t\t});\n\t\t\t\t";
}
}
// Mode switching for TinyMCE
switch ($options['tinymce']) {
case 'advanced':
add_to_jquery("\n tinymce.init({\n selector: '#" . $options['input_id'] . "',\n theme: 'modern',\n entity_encoding : 'raw',\n width: '100%',\n height: 300,\n plugins: [\n 'advlist autolink autoresize link image lists charmap print preview hr anchor pagebreak spellchecker',\n 'searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking',\n 'save table contextmenu directionality template paste textcolor'\n ],\n image_list: {$tinymce_list},\n content_css: '" . THEMES . "admin_templates/" . fusion_get_settings("admin_theme") . "/acp_styles.css',\n toolbar1: 'insertfile undo redo | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | newdocument fullscreen preview cut copy paste pastetext spellchecker searchreplace code',\n toolbar2: 'styleselect formatselect removeformat | fontselect fontsizeselect bold italic underline strikethrough subscript superscript blockquote | forecolor backcolor',\n toolbar3: 'hr pagebreak insertdatetime | link unlink anchor | image media | table charmap visualchars visualblocks emoticons',\n image_advtab: true,\n style_formats: [\n {title: 'Bold text', inline: 'b'},\n {title: 'Red text', inline: 'span', styles: {color: '#ff0000'}},\n {title: 'Red header', block: 'h1', styles: {color: '#ff0000'}},\n {title: 'Example 1', inline: 'span', classes: 'example1'},\n {title: 'Example 2', inline: 'span', classes: 'example2'},\n {title: 'Table styles'},\n {title: 'Table row 1', selector: 'tr', classes: 'tablerow1'}\n ],\n setup: function(ed) {\n \t\t\t\t\t// add tabkey listener\n \t\t\t\t\ted.on('keydown', function(event) {\n \t\t\t\t\tif (event.keyCode == 9) { // tab pressed\n \t\t\t\t\t\tif (event.shiftKey) { ed.execCommand('Outdent'); } else { ed.execCommand('Indent'); }\n \t\t\t\t\t\tevent.preventDefault();\n \t\t\t\t\t\treturn false;\n \t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t\t// auto smileys parsing\n\t\t\t\t\t\t" . $tinymce_smiley_vars . "\n\t\t\t\t}\n });\n ");
break;
case 'simple':
add_to_jquery("\n tinymce.init({\n selector: '#" . $options['input_id'] . "',\n theme: 'modern',\n menubar: false,\n statusbar: false,\n content_css: '" . THEMES . "/templates/tinymce.css',\n image_list: {$tinymce_list},\n plugins: [\n 'advlist autolink autoresize link lists charmap print preview hr anchor pagebreak spellchecker',\n 'searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking',\n 'contextmenu directionality template paste bbcode autoresize'\n ],\n height: 30,\n image_advtab: true,\n toolbar1: 'undo redo | bold italic underline | bullist numlist blockquote | hr media | fullscreen',\n entity_encoding : 'raw',\n language: '" . $locale['tinymce'] . "',\n object_resizing: false,\n resize: false,\n relative_urls: false,\n setup: function(ed) {\n \t\t\t\t\t// add tabkey listener\n \t\t\t\t\ted.on('keydown', function(event) {\n \t\t\t\t\tif (event.keyCode == 9) { // tab pressed\n \t\t\t\t\t\tif (event.shiftKey) { ed.execCommand('Outdent'); } else { ed.execCommand('Indent'); }\n \t\t\t\t\t\tevent.preventDefault();\n \t\t\t\t\t\treturn false;\n \t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t\t// auto smileys parsing\n\t\t\t\t\t\t" . $tinymce_smiley_vars . "\n\t\t\t\t}\n });\n ");
add_to_jquery("\n\t\t\t\t\$('#inject').bind('click', function() {\n\t\t\t\t\ttinyMCE.activeEditor.execCommand(\"mceInsertContent\", true, '[b]I am injecting in stuff..[/b]');\n\t\t\t\t\t});\n\t\t\t\t");
break;
case 'default':
add_to_jquery("\n tinymce.init({\n selector: '#" . $options['input_id'] . "',\n theme: 'modern',\n entity_encoding : 'raw',\n language:'" . $locale['tinymce'] . "',\n setup: function(ed) {\n \t\t\t\t\t// add tabkey listener\n \t\t\t\t\ted.on('keydown', function(event) {\n \t\t\t\t\tif (event.keyCode == 9) { // tab pressed\n \t\t\t\t\t\tif (event.shiftKey) { ed.execCommand('Outdent'); } else { ed.execCommand('Indent'); }\n \t\t\t\t\t\tevent.preventDefault();\n \t\t\t\t\t\treturn false;\n \t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t\t// auto smileys parsing\n\t\t\t\t\t\t" . $tinymce_smiley_vars . "\n\t\t\t\t}\n });\n ");
break;
}
} else {
if (!defined('autogrow') && $options['autosize']) {
define('autogrow', TRUE);
add_to_footer("<script src='" . DYNAMICS . "assets/autosize/jquery.autosize.min.js'></script>");
}
if ($options['autosize']) {
add_to_jquery("\n\t\t \$('#" . $options['input_id'] . "').autosize();\n\t\t ");
}
}
if ($input_value !== '') {
$input_value = html_entity_decode(stripslashes($input_value), ENT_QUOTES, $locale['charset']);
$input_value = str_replace("<br />", "", $input_value);
}
$error_class = "";
if ($defender->inputHasError($input_name)) {
$error_class = "has-error ";
if (!empty($options['error_text'])) {
$new_error_text = $defender->getErrorText($input_name);
if (!empty($new_error_text)) {
$options['error_text'] = $new_error_text;
}
addNotice("danger", "<strong>{$title}</strong> - " . $options['error_text']);
}
}
$html = "<div id='" . $options['input_id'] . "-field' class='form-group " . $error_class . $options['class'] . "' " . ($options['inline'] && $options['width'] && !$label ? "style='width: " . $options['width'] . " !important;'" : '') . ">\n";
$html .= $label ? "<label class='control-label " . ($options['inline'] ? "col-xs-12 col-sm-3 col-md-3 col-lg-3 p-l-0" : '') . "' for='" . $options['input_id'] . "'>{$label} " . ($options['required'] == 1 ? "<span class='required'>*</span>" : '') . " " . ($options['tip'] ? "<i class='pointer fa fa-question-circle' title='" . $options['tip'] . "'></i>" : '') . "</label>\n" : '';
$html .= $options['inline'] ? "<div class='col-xs-12 " . ($label ? "col-sm-9 col-md-9 col-lg-9 p-r-0" : "col-sm-12 p-l-0") . "'>\n" : "";
$tab_active = 0;
$tab_title = array();
if ($options['preview'] && ($options['type'] == "html" || $options['type'] == "bbcode")) {
$tab_title['title'][] = $locale['preview'];
$tab_title['id'][] = "prw-" . $options['input_id'];
$tab_title['icon'][] = '';
$tab_title['title'][] = $locale['texts'];
$tab_title['id'][] = "txt-" . $options['input_id'];
$tab_title['icon'][] = '';
$tab_active = tab_active($tab_title, 1);
$html .= opentab($tab_title, $tab_active, $options['input_id'] . "-link", "", "editor-wrapper");
$html .= opentabbody($tab_title['title'][1], "txt-" . $options['input_id'], $tab_active);
}
$html .= $options['type'] == "html" || $options['type'] == "bbcode" ? "<div class='panel panel-default panel-txtarea m-b-0' " . ($options['preview'] ? "style='border-top:0 !important; border-radius:0 !important;'" : '') . ">\n<div class='panel-heading clearfix' style='padding-bottom:0 !important;'>\n" : '';
if ($options['type'] == "bbcode" && $options['form_name']) {
$html .= display_bbcodes('90%', $input_name, $options['form_name']);
} elseif ($options['type'] == "html" && $options['form_name']) {
$html .= display_html($options['form_name'], $input_name, TRUE, TRUE, TRUE, $options['path']);
}
$html .= $options['type'] == "html" || $options['type'] == "bbcode" ? "</div>\n<div class='panel-body p-0'>\n" : '';
$html .= "<textarea name='{$input_name}' style='width:100%; height:" . $options['height'] . "; " . ($options['no_resize'] ? 'resize: none;' : '') . "' class='form-control p-15 m-0 " . $options['class'] . " " . ($options['autosize'] ? 'animated-height' : '') . " " . ($options['type'] == "html" || $options['type'] == "bbcode" ? "no-shadow no-border" : '') . " textbox ' placeholder='" . $options['placeholder'] . "' id='" . $options['input_id'] . "' " . ($options['deactivate'] ? 'readonly' : '') . ($options['maxlength'] ? "maxlength='" . $options['maxlength'] . "'" : '') . ">" . $input_value . "</textarea>\n";
if ($options['type'] == "html" || $options['type'] == "bbcode") {
$html .= "</div>\n<div class='panel-footer clearfix'>\n";
$html .= "<div class='overflow-hide'><small>" . $locale['word_count'] . ": <span id='" . $options['input_id'] . "-wordcount'></span></small></div>";
add_to_jquery("\n\t\tvar init_str = \$('#" . $options['input_id'] . "').val().replace(/<[^>]+>/ig, '').replace(/\\n/g,'').replace(/ /g, '').length;\n\t\t\$('#" . $options['input_id'] . "-wordcount').text(init_str);\n\t\t\$('#" . $options['input_id'] . "').on('input propertychange paste', function() {\n\t\tvar str = \$(this).val().replace(/<[^>]+>/ig, '').replace(/\\n/g,'').replace(/ /g, '').length;\n\t\t\$('#" . $options['input_id'] . "-wordcount').text(str);\n\t\t});\n\t\t");
$html .= "</div>\n</div>\n";
}
if ($options['preview'] && ($options['type'] == "bbcode" || $options['type'] == "html")) {
$html .= closetabbody();
$html .= opentabbody($tab_title['title'][0], "prw-" . $options['input_id'] . "", $tab_active);
$html .= "No Result";
$html .= closetabbody();
$html .= closetab();
add_to_jquery("\n\t\t// preview syntax\n\t\tvar form = \$('#" . $options['form_name'] . "');\n\t\t\$('#tab-prw-" . $options['input_id'] . "').bind('click',function(){\n\t\tvar text = \$('#" . $options['input_id'] . "').val();\n\t\tvar format = '" . ($options['type'] == "bbcode" ? 'bbcode' : 'html') . "';\n\t\tvar data = {\n\t\t\t" . (defined('ADMIN_PANEL') ? "'mode': 'admin', " : "") . "\n\t\t\t'text' : text,\n\t\t\t'editor' : format,\n\t\t\t'url' : '" . $_SERVER['REQUEST_URI'] . "',\n\t\t};\n\t\tvar sendData = form.serialize() + '&' + \$.param(data);\n\t\t\$.ajax({\n\t\t\turl: '" . INCLUDES . "dynamics/assets/preview/preview.ajax.php',\n\t\t\ttype: 'POST',\n\t\t\tdataType: 'html',\n\t\t\tdata : sendData,\n\t\t\tsuccess: function(result){\n\t\t\t//console.log(result);\n\t\t\t\$('#prw-" . $options['input_id'] . "').html(result);\n\t\t\t},\n\t\t\terror: function(result) {\n\t\t\t\tnew PNotify({\n\t\t\t\t\ttitle: '" . $locale['error_preview'] . "',\n\t\t\t\t\ttext: '" . $locale['error_preview_text'] . "',\n\t\t\t\t\ticon: 'notify_icon n-attention',\n\t\t\t\t\tanimation: 'fade',\n\t\t\t\t\twidth: 'auto',\n\t\t\t\t\tdelay: '3000'\n\t\t\t\t});\n\t\t\t}\n\t\t\t});\n\t\t});\n\t\t");
}
$html .= $options['required'] == 1 && $defender->inputHasError($input_name) || $defender->inputHasError($input_name) ? "<div id='" . $options['input_id'] . "-help' class='label label-danger p-5 display-inline-block'>" . $options['error_text'] . "</div>" : "";
$html .= $options['inline'] ? "</div>\n" : '';
$html .= "</div>\n";
$defender->add_field_session(array('input_name' => $input_name, 'type' => 'textarea', 'title' => $label, 'id' => $options['input_id'], 'required' => $options['required'], 'safemode' => $options['safemode'], 'error_text' => $options['error_text']));
return $html;
}
示例4: form_select
echo "<td width='50%' class='tbl'>\n";
echo form_select('', 'email_verification', 'email_verification', $opts, $settings2['email_verification']);
echo "</td>\n</tr>\n<tr>\n";
echo "<td width='50%' class='tbl'><label for='admin_activation'>" . $locale['557'] . "</td>\n";
echo "<td width='50%' class='tbl'>\n";
echo form_select('', 'admin_activation', 'admin_activation', $opts, $settings2['admin_activation']);
echo "</td>\n</tr>\n<tr>\n";
echo "<td width='50%' class='tbl'><label for='display_validation'>" . $locale['553'] . "</td>\n";
echo "<td width='50%' class='tbl'>\n";
echo form_select('', 'display_validation', 'display_validation', $opts, $settings2['display_validation']);
echo "</td>\n</tr>\n<tr>\n";
echo "<td width='50%' class='tbl'><label for='enable_terms'>" . $locale['558'] . "</td>\n";
echo "<td width='50%' class='tbl'>\n";
echo form_select('', 'enable_terms', 'enable_terms', $opts, $settings2['enable_terms']);
echo "</td>\n</tr>\n<tr>\n";
echo "<td class='tbl' colspan='2'><label for='email_license_agreement'>" . $locale['559'] . "</td>\n";
echo "</td>\n</tr>\n<tr>\n";
echo "<td class='tbl' colspan='2'>\n";
echo form_textarea('', 'license_agreement', 'enable_license_agreement', $settings2['license_agreement']);
echo "</td>\n</tr>\n";
if (!$settings['tinymce_enabled']) {
echo "<tr>\n<td class='tbl' colspan='2'>\n";
echo display_html("settingsform", "license_agreement", TRUE, TRUE, TRUE);
echo "</td>\n</tr>\n";
}
echo "<tr>\n";
echo "<td align='center' colspan='2' class='tbl'><br />\n";
echo form_button($locale['750'], 'savesettings', 'savesettings', $locale['750'], array('class' => 'btn-primary'));
echo "</td>\n</tr>\n</tbody>\n</table>\n</form>\n";
closetable();
require_once THEMES . "templates/footer.php";
示例5: display_html
if (isset($_GET['action']) && $_GET['action'] == "edit") {
$sel = $data['download_cat'] == $data2['download_cat_id'] ? " selected='selected'='selected'" : "";
}
$editlist .= "<option value='" . $data2['download_cat_id'] . "'{$sel}>" . $data2['download_cat_name'] . "</option>\n";
}
}
echo "<form id='inputform' method='post' action='" . $formaction . "'>\n";
echo "<table cellpadding='0' cellspacing='0' width='460' class='center'>\n<tr>\n";
echo "<td width='80' class='tbl'>" . $locale['420'] . "</td>\n";
echo "<td class='tbl'><input type='text' name='download_title' value='" . $download_title . "' class='textbox' style='width:380px;' /></td>\n";
echo "</tr>\n<tr>\n";
echo "<td valign='top' width='80' class='tbl'>" . $locale['421'] . "</td>\n";
echo "<td class='tbl'><textarea name='download_description' cols='60' rows='5' class='textbox' style='width:380px;'>" . $download_description . "</textarea></td>\n";
echo "</tr>\n<tr>\n";
echo "<td class='tbl'></td><td class='tbl'>\n";
echo display_html("inputform", "download_description", true) . "</td>\n";
echo "</tr>\n<tr>\n";
echo "<td width='80' class='tbl'>" . $locale['422'] . "</td>\n";
echo "<td class='tbl'><input type='text' name='download_url' value='" . $download_url . "' class='textbox' style='width:380px;' /></td>\n";
echo "</tr>\n<tr>\n";
echo "<td width='80' class='tbl'>" . $locale['423'] . "</td>\n";
echo "<td class='tbl'><select name='download_cat' class='textbox'>\n" . $editlist . "</select></td>\n";
echo "</tr>\n<tr>\n";
echo "<td width='80' class='tbl'>" . $locale['424'] . "</td>\n";
echo "<td class='tbl'><input type='text' name='download_license' value='" . $download_license . "' class='textbox' style='width:150px;' /></td>\n";
echo "</tr>\n<tr>\n";
echo "<td width='80' class='tbl'>" . $locale['425'] . "</td>\n";
echo "<td class='tbl'><input type='text' name='download_os' value='" . $download_os . "' class='textbox' style='width:150px;' /></td>\n";
echo "</tr>\n<tr>\n";
echo "<td width='80' class='tbl'>" . $locale['426'] . "</td>\n";
echo "<td class='tbl'><input type='text' name='download_version' value='" . $download_version . "' class='textbox' style='width:150px;' /></td>\n";
示例6: display_html
echo "<td class='tbl1' style='width:15%;'></td>\n";
echo "<td class='tbl1'>\n";
echo "<input type='button' class='button' value='[SUBJECT]' onclick=\"insertText('template_content', '[SUBJECT]', 'emailtemplateform');\" />\n";
echo "<input type='button' class='button' value='[MESSAGE]' onclick=\"insertText('template_content', '[MESSAGE]', 'emailtemplateform');\" />\n";
echo "<input type='button' class='button' value='[SENDER]' onclick=\"insertText('template_content', '[SENDER]', 'emailtemplateform');\" />\n";
echo "<input type='button' class='button' value='[RECEIVER]' onclick=\"insertText('template_content', '[RECEIVER]', 'emailtemplateform');\" />\n";
echo "<input type='button' class='button' value='[USER]' onclick=\"insertText('template_content', '[USER]', 'emailtemplateform');\" />\n";
echo "<input type='button' class='button' value='[SITENAME]' onclick=\"insertText('template_content', '[SITENAME]', 'emailtemplateform');\" />\n";
echo "<input type='button' class='button' value='[SITEURL]' onclick=\"insertText('template_content', '[SITEURL]', 'emailtemplateform');\" />\n";
echo "<input type='button' class='button' value='[THREAD_URL]' onclick=\"insertText('template_content', '[THREAD_URL]', 'emailtemplateform');\" />\n";
echo "<br />\n";
echo "<div id='html_buttons' style='margin-top:5px;" . $html_buttons . "'>\n";
echo "<input type='button' value='" . $locale['436'] . "' class='button' onMousedown=\"javascript:this.form.template_content.focus();this.form.template_content.select();\" onmouseup=\"addText('template_content', '<body style=\\'background-color:#D7F9D7;\\'>', '</body>', 'emailtemplateform');\" />\n";
echo "<input type='button' value='DIV' class='button' style='text-decoration:underline;' onclick=\"addText('template_content', '<div>', '</div>', 'emailtemplateform');\" />\n";
echo "<input type='button' value='SPAN' class='button' onclick=\"addText('template_content', '<span>', '</span>', 'emailtemplateform');\" />\n";
echo display_html("emailtemplateform", "template_content", true, true);
$folder = BASEDIR . "images/";
$image_files = makefilelist($folder, ".|..|index.php", true);
$image_list = makefileopts($image_files);
echo "<select name='insertimage' class='textbox' style='margin-top:5px' onchange=\"insertText('template_content', '<img src=\\'" . $settings['siteurl'] . "images/' + this.options[this.selectedIndex].value + '\\' alt=\\'\\' style=\\'margin:5px;\\' align=\\'left\\' />', 'emailtemplateform');this.selectedIndex=0;\">\n";
echo "<option value=''>" . $locale['html401'] . "</option>\n" . $image_list . "</select>\n";
echo "</div>\n";
echo "</td>\n";
echo "</tr>\n<tr>\n";
echo "<td class='tbl2' colspan='2' style='text-align:center;'>\n";
echo "<input type='hidden' name='template_id' value='" . $template_id . "' />\n";
echo "<input type='hidden' name='template_key' value='" . $template_key . "' />\n";
echo "<input type='submit' class='button' name='test_template' value='" . $locale['437'] . "' onclick=\"return confirm('" . sprintf($locale['438'], $userdata['user_email']) . "');\" />\n";
echo "<input type='submit' class='button' name='save_template' value='" . $locale['439'] . "' />\n";
echo "<input type='reset' class='button' value='" . $locale['440'] . "' />\n";
echo "</td>\n";
示例7: display_html
echo display_html("settingsform", "sitebanner1", TRUE) . "</td>\n";
echo "</tr>\n<tr>\n";
if (isset($_POST['preview_banners']) && $sitebanner1) {
if (check_admin_pass(isset($_POST['admin_password']) ? stripinput($_POST['admin_password']) : "")) {
eval("?><td class='tbl'>" . $sitebanner1 . "</td><?php ");
echo "</tr>\n<tr>\n";
}
}
echo "<td class='tbl'>\n";
echo form_textarea($locale['852'], 'sitebanner2', 'sitebanner2', $sitebanner2);
//".$locale['852']."<br />\n";
//echo "<textarea name='sitebanner2' cols='50' rows='5' class='textbox' style='width:450px'>".phpentities($sitebanner2)."</textarea></td>\n";
echo "</td>\n</tr>\n<tr>\n";
echo "<td class='tbl'>\n";
echo "<input type='button' value='<?php?>' class='button' style='width:60px;' onclick=\"addText('sitebanner2', '<?php\\n', '\\n?>', 'settingsform');\" />\n";
echo display_html("settingsform", "sitebanner2", TRUE) . "</td>\n";
echo "</tr>\n<tr>\n";
if (isset($_POST['preview_banners']) && $sitebanner2) {
if (check_admin_pass(isset($_POST['admin_password']) ? stripinput($_POST['admin_password']) : "")) {
eval("?><td class='tbl'>" . $sitebanner2 . "</td><?php ");
echo "</tr>\n<tr>\n";
}
}
if (!check_admin_pass(isset($_POST['admin_password']) ? stripinput($_POST['admin_password']) : "")) {
echo "<td class='tbl'>\n";
echo form_text($locale['853'], 'admin_password', 'admin_password', isset($_POST['admin_password']) ? stripinput($_POST['admin_password']) : "", array('password' => 1, 'inline' => 1, 'width' => '250px'));
//".$locale['853']." <input type='password' name='admin_password' value='".(isset($_POST['admin_password']) ? stripinput($_POST['admin_password']) : "")."' class='textbox' style='width:150px;' autocomplete='off' /></td>\n";
echo "</td>\n</tr>\n<tr>\n";
}
echo "<td align='center' class='tbl'><br />";
echo form_button($locale['855'], 'preview_banners', 'preview_banners', $locale['855'], array('class' => 'btn-primary m-r-10'));
示例8: display_html
echo "<td width='80%' class='tbl'><input type='button' id='wysiwyg_switch' name='wysiwyg_switch' value='" . (!isset($_COOKIE['custompages_wysiwyg_editor']) || $_COOKIE['custompages_wysiwyg_editor'] == 0 ? $locale['globad_wy101'] : $locale['globad_wy102']) . "' class='button' style='width:75px;' onclick=\"SetWYSIWYG(" . (!isset($_COOKIE['custompages_wysiwyg_editor']) || $_COOKIE['custompages_wysiwyg_editor'] == 0 ? 1 : 0) . ");\"/>\n</td>\n";
echo "</tr>\n<tr>\n";
}
echo "<td width='100' class='tbl'>" . $locale['422'] . "</td>\n";
echo "<td width='80%' class='tbl'><input type='text' name='page_title' value='" . $page_title . "' class='textbox' style='width:250px;' />\n";
echo " " . $locale['423'] . "<select name='page_access' class='textbox' style='width:150px;'>\n" . $access_opts . "</select></td>\n";
echo "</tr>\n<tr>\n";
echo "<td valign='top' width='100' class='tbl'>" . $locale['424'] . "</td>\n";
echo "<td width='80%' class='tbl'><textarea name='page_content' cols='100' rows='25' class='textbox' style='width:98%'>" . $page_content . "</textarea></td>\n";
echo "</tr>\n<tr>\n";
if (!isset($_COOKIE['custompages_wysiwyg_editor']) || !$_COOKIE['custompages_wysiwyg_editor'] || !$settings['wysiwyg_enabled']) {
echo "<td class='tbl'></td><td class='tbl'>\n";
echo "<input type='button' value='<?php?>' class='button' style='width:60px;' onclick=\"addText('page_content', '<?php\\n', '\\n?>');\" />\n";
echo "<input type='button' value='<p>' class='button' style='width:35px;' onclick=\"addText('page_content', '<p>', '</p>');\" />\n";
echo "<input type='button' value='<br />' class='button' style='width:40px;' onclick=\"insertText('page_content', '<br />');\" />\n";
echo display_html("inputform", "page_content", true) . "</td>\n";
echo "</tr>\n";
}
if ($settings['enable_tags']) {
if ($request_edit && $request_page_id) {
echo edit_tags($request_page_id, "C");
// Pimped: tag
} else {
echo add_tags("C");
// Pimped: tag
}
}
echo "<tr>\n";
echo "<td width='100' class='tbl'>" . $locale['431'] . "</td>\n";
// meta
echo "<td class='tbl'><input type='text' name='page_keywords' value='" . $page_keywords . "' class='textbox' style='width:250px;' /></td>\n";
示例9: form_textarea
echo form_textarea('', 'template_content', 'template_content', $template_content, array('required' => 1, 'error_text' => $locale['471']));
echo "<div class='btn-group'>\n";
echo "<button type='button' class='btn btn-sm btn-default button' value='[SUBJECT]' onclick=\"insertText('template_content', '[SUBJECT]', 'emailtemplateform');\">SUBJECT</button>\n";
echo "<button type='button' class='btn btn-sm btn-default button' value='[MESSAGE]' onclick=\"insertText('template_content', '[MESSAGE]', 'emailtemplateform');\">MESSAGE</button>\n";
echo "<button type='button' class='btn btn-sm btn-default button' value='[SENDER]' onclick=\"insertText('template_content', '[SENDER]', 'emailtemplateform');\">SENDER</button>\n";
echo "<button type='button' class='btn btn-sm btn-default button' value='[RECEIVER]' onclick=\"insertText('template_content', '[RECEIVER]', 'emailtemplateform');\">RECEIVER</button>\n";
echo "<button type='button' class='btn btn-sm btn-default button' value='[USER]' onclick=\"insertText('template_content', '[USER]', 'emailtemplateform');\">USER</button>\n";
echo "<button type='button' class='btn btn-sm btn-default button' value='[SITENAME]' onclick=\"insertText('template_content', '[SITENAME]', 'emailtemplateform');\">SITENAME</button>\n";
echo "<button type='button' class='btn btn-sm btn-default button' value='[SITEURL]' onclick=\"insertText('template_content', '[SITEURL]', 'emailtemplateform');\">SITEURL</button>\n";
echo "<button type='button' class='btn btn-sm btn-default button' value='[THREAD_URL]' onclick=\"insertText('template_content', '[THREAD_URL]', 'emailtemplateform');\">THREAD URL</button>\n";
echo "</div>\n";
echo "<div id='html_buttons' class='m-t-5 " . $html_buttons . "'>\n";
echo "<button type='button' class='btn btn-sm btn-default button' value='" . $locale['436'] . "' onMousedown=\"javascript:this.form.template_content.focus();this.form.template_content.select();\" onmouseup=\"addText('template_content', '<body style=\\'background-color:#D7F9D7;\\'>', '</body>', 'emailtemplateform');\">\n" . $locale['436'] . "</button>\n";
echo "<button type='button' class='btn btn-sm btn-default button' value='DIV' style='text-decoration:underline;' onclick=\"addText('template_content', '<div>', '</div>', 'emailtemplateform');\">DIV</button>\n";
echo "<button type='button' class='btn btn-sm btn-default button' value='SPAN' onclick=\"addText('template_content', '<span>', '</span>', 'emailtemplateform');\">SPAN</button>\n";
echo display_html("emailtemplateform", "template_content", TRUE, TRUE);
$folder = BASEDIR . "images/";
$image_files = makefilelist($folder, ".|..|index.php", TRUE);
$opts = array();
foreach ($image_files as $image) {
$opts[$image] = $image;
}
echo form_select('', 'insertimage', 'insertimage', $opts, '', array('placeholder' => $locale['469'], 'allowclear' => 1));
echo "</div>\n";
echo "</td>\n";
echo "</tr>\n<tr>\n";
echo "<td colspan='2' style='text-align:center;'>\n";
echo form_hidden('', 'template_id', 'template_id', $template_id);
echo form_hidden('', 'template_key', 'template_key', $template_key);
echo form_button($locale['437'], 'test_template', 'test_template', $locale['437'], array('class' => 'btn-primary m-r-10'));
echo form_button($locale['439'], 'save_template', 'save_template', $locale['439'], array('class' => 'btn-primary m-r-10'));
示例10: dt_generate_option_html
function dt_generate_option_html($this_options)
{
foreach ($this_options as $value) {
switch ($value['type']) {
case "section_start":
display_section_start($value);
break;
case "options_group_start":
display_options_group_start($value);
break;
case "home_html":
display_home_html();
break;
case "text":
display_text($value);
break;
case "multitext":
display_multitext($value);
break;
case "textarea":
display_textarea($value);
break;
case "image":
display_image($value);
break;
case "checkbox":
display_checkbox($value);
break;
case "radio":
display_radio($value);
break;
case "radio_img":
display_radio_img($value);
break;
case "color_picker":
display_color_picker($value);
break;
case "select":
display_select($value);
break;
case "checkbox_array_values":
display_checkbox_array_values($value);
break;
case "html":
display_html($value);
break;
case "options_group_end":
display_options_group_end($value);
break;
case "section_end":
display_section_end($value);
break;
}
}
}
示例11: phpentities
if (function_exists("gd_info")) {
echo "<td width='50%' class='tbl'>" . $locale['554'] . "</td>\n";
echo "<td width='50%' class='tbl'><select name='validation_method' class='textbox'>\n";
echo "<option value='image'" . ($settings2['validation_method'] == "image" ? " selected='selected'" : "") . ">" . $locale['555'] . "</option>\n";
echo "<option value='text'" . ($settings2['validation_method'] == "text" ? " selected='selected'" : "") . ">" . $locale['556'] . "</option>\n";
echo "</select></td>\n";
} else {
echo "<td class='tbl' colspan='2'><input type='hidden' name='validation_method' value='text' /></td>\n";
}
echo "</tr>\n<tr>\n";
echo "<td width='50%' class='tbl'>" . $locale['558'] . "</td>\n";
echo "<td width='50%' class='tbl'><select name='enable_terms' class='textbox'>\n";
echo "<option value='1'" . ($settings2['enable_terms'] == "1" ? " selected='selected'" : "") . ">" . $locale['518'] . "</option>\n";
echo "<option value='0'" . ($settings2['enable_terms'] == "0" ? " selected='selected'" : "") . ">" . $locale['519'] . "</option>\n";
echo "</select></td>\n";
echo "</tr>\n<tr>\n";
echo "<td class='tbl' colspan='2'>" . $locale['559'] . "</td>\n";
echo "</tr>\n<tr>\n";
echo "<td class='tbl' colspan='2'><textarea name='license_agreement' cols='50' rows='10' class='textbox' style='width:320px'>" . phpentities(stripslashes($settings2['license_agreement'])) . "</textarea></td>\n";
echo "</tr>\n";
if (!$settings['tinymce_enabled']) {
echo "<tr>\n<td class='tbl' colspan='2'>\n";
echo display_html("settingsform", "license_agreement", true, true, true);
echo "</td>\n</tr>\n";
}
echo "<tr>\n";
echo "<td align='center' colspan='2' class='tbl'><br />\n";
echo "<input type='submit' name='savesettings' value='" . $locale['750'] . "' class='button' /></td>\n";
echo "</tr>\n</table>\n</form>\n";
closetable();
require_once THEMES . "templates/footer.php";
示例12: form_textarea
echo "<td width='80%' class='tbl'>\n";
echo form_textarea('', 'body', 'body', $body);
echo "</td>\n</tr>\n";
if (!$settings['tinymce_enabled']) {
echo "<tr>\n<td class='tbl'></td>\n<td class='tbl'>\n";
echo display_html("inputform", "body", TRUE, TRUE, TRUE, IMAGES_N);
echo "</td>\n</tr>\n";
}
echo "<tr>\n<td valign='top' width='100' class='tbl'><label for='body2'>" . $locale['426'] . "</label></td>\n";
echo "<td class='tbl'>\n";
echo form_textarea('', 'body2', 'body2', $body2);
echo "</td>\n</tr>\n";
if ($settings['tinymce_enabled'] != 1) {
echo "<tr>\n<td class='tbl'></td>\n<td class='tbl'>\n";
echo "<input type='button' value='" . $locale['441'] . "' class='button' onclick=\"insertText('body2', '<!--PAGEBREAK-->');\" />\n";
echo display_html("inputform", "body2", TRUE, TRUE, TRUE, IMAGES_N);
echo "</td>\n</tr>\n";
}
echo "<tr>\n";
echo "<td class='tbl'><label for='news_start'>" . $locale['427'] . "</label></td>\n";
echo "<td class='tbl'>\n";
echo form_datepicker('', 'news_start', 'news_start', $news_start);
echo "</td>\n</tr>\n<tr>\n";
echo "<td class='tbl'><label for='news_end'>" . $locale['428'] . "</label></td><td class='tbl'>\n";
echo form_datepicker('', 'news_end', 'news_end', $news_end, array('class' => 'm-r-10 pull-left'));
echo "" . $locale['429'] . "</td>\n";
echo "</tr>\n<tr>\n";
echo "<td class='tbl'><label for='news_visibility'>" . $locale['430'] . "</label></td>\n";
echo "<td class='tbl'>\n";
echo form_select('', 'news_visibility', 'news_visibility', $visibility_opts, $news_visibility, array('placeholder' => $locale['choose']));
echo "</td>\n</tr>\n<tr>\n";
示例13: display
function display($item, $display_type)
{
// We might be able to redirect
if ($display_type == DISPLAY_REDIRECT) {
$can_redirect = false;
// DOI
if (isset($item->doi)) {
$can_redirect = true;
header("Location: " . "http://dx.doi.org/" . $item->doi);
exit(0);
}
if (!$can_redirect) {
// Can't redirect
$display_type = DISPLAY_HTML;
}
}
switch ($display_type) {
case DISPLAY_JSON:
display_json($item);
break;
case DISPLAY_BIBJSON:
display_bibjson($item);
break;
case DISPLAY_RDF:
display_rdf($item);
break;
case DISPLAY_CITE:
display_cite($item);
break;
case DISPLAY_ITAXON:
display_publication_itaxon($item);
break;
case DISPLAY_RIS:
header("Content-type: text/plain; charset=utf-8\n\n");
$ris = '';
$ris .= "TY - JOUR\n";
$ris .= "TI - " . $item->atitle . "\n";
if (isset($item->title)) {
$ris .= "JF - " . $item->title . "\n";
}
if (isset($item->issn)) {
$ris .= "SN - " . $item->issn . "\n";
}
if (isset($item->volume)) {
$ris .= "VL - " . $item->volume . "\n";
}
if (isset($item->issue)) {
$ris .= "IS - " . $item->issue . "\n";
}
if (isset($item->spage)) {
$ris .= "SP - " . $item->spage . "\n";
}
if (isset($item->epage)) {
$ris .= "EP - " . $item->epage . "\n";
}
if (isset($item->year)) {
$ris .= "Y1 - " . $item->year . "///\n";
}
if (isset($item->doi)) {
$ris .= "DO - " . $item->doi . "\n";
}
if (isset($item->url)) {
$ris .= "UR - " . $item->url . "\n";
}
if (isset($item->pmid)) {
$ris .= "UR - http://www.ncbi.nlm.nih.gov/pubmed/" . $item->pmid . "\n";
}
if (isset($item->hdl)) {
$ris .= "UR - http://hdl.handle.net/" . $item->hdl . "\n";
}
if (isset($item->pdf)) {
$ris .= "L1 - " . $item->pdf . "\n";
}
if (isset($item->abstract)) {
$ris .= "N2 - " . $item->abstract . "\n";
}
$ris .= "ER - \n\n";
echo $ris;
break;
case DISPLAY_HTML:
default:
display_html($item);
break;
}
}
示例14: display_html
if (isset($_GET['action']) && $_GET['action'] == "edit") {
$sel = $weblink_cat == $data2['weblink_cat_id'] ? " selected='selected'" : "";
}
$editlist .= "<option value='" . $data2['weblink_cat_id'] . "'{$sel}>" . $data2['weblink_cat_name'] . "</option>\n";
}
}
echo "<form name='inputform' method='post' action='" . $formaction . "'>\n";
echo "<table width='460' cellspacing='0' cellpadding='0' class='center'>\n<tr>\n";
echo "<td width='80' class='tbl'>" . $locale['520'] . "</td>\n";
echo "<td class='tbl'><input type='text' name='weblink_name' value='" . $weblink_name . "' class='textbox' style='width:380px;' /></td>\n";
echo "</tr>\n<tr>\n";
echo "<td valign='top' width='80' class='tbl'>" . $locale['521'] . "</td>\n";
echo "<td class='tbl'><textarea name='weblink_description' cols='60' rows='5' class='textbox' style='width:380px;'>" . $weblink_description . "</textarea></td>\n";
echo "</tr>\n<tr>\n";
echo "<td class='tbl'></td><td class='tbl'>\n";
echo display_html("inputform", "weblink_description", true) . "</td>\n";
echo "</tr>\n<tr>\n";
echo "<td width='80' class='tbl'>" . $locale['522'] . "</td>\n";
echo "<td class='tbl'><input type='text' name='weblink_url' value='" . $weblink_url . "' class='textbox' style='width:380px;' /></td>\n";
echo "</tr>\n<tr>\n";
echo "<td width='80' class='tbl'>" . $locale['523'] . "</td>\n";
echo "<td class='tbl'><select name='weblink_cat' class='textbox' style='width:150px;'>\n" . $editlist . "</select></td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td align='center' colspan='2' class='tbl'>";
if (isset($_GET['action']) && $_GET['action'] == "edit") {
echo "<input type='checkbox' name='update_datestamp' value='1'> " . $locale['524'] . "<br /><br />\n";
}
echo "<input type='submit' name='save_link' value='" . $locale['525'] . "' class='button' /></td>\n";
echo "</tr>\n</table>\n</form>\n";
closetable();
示例15: display_html
echo "</tr>\n<tr>\n";
echo "<td valign='top' width='100' class='tbl'>" . $locale['547'] . "</td>\n";
echo "<td width='80%' class='tbl'><textarea name='article_snippet' cols='60' rows='5' class='textbox' style='width:300px;'>" . $article_snippet . "</textarea></td>\n";
echo "</tr>\n";
if ($settings['tinymce_enabled'] != 1) {
echo "<tr>\n<td class='tbl'></td>\n<td class='tbl'>\n";
echo display_html("publish", "article_body", true, true, true);
echo "</td>\n</tr>\n";
}
echo "<tr>\n";
echo "<td valign='top' width='100' class='tbl'>" . $locale['548'] . "</td>\n";
echo "<td width='80%' class='tbl'><textarea name='article_body' cols='60' rows='10' class='textbox' style='width:300px;'>" . $article_body . "</textarea></td>\n";
echo "</tr>\n";
if ($settings['tinymce_enabled'] != 1) {
echo "<tr>\n<td class='tbl'></td>\n<td class='tbl'>\n";
echo display_html("publish", "article_body", true, true, true);
echo "</td>\n</tr>\n";
}
echo "<tr>\n";
echo "<td align='center' colspan='2' class='tbl1'><br />\n";
echo $locale['541'] . profile_link($data['user_id'], $data['user_name'], $data['user_status']) . "<br /><br />\n";
echo $locale['542'] . "<br />\n";
echo "<input type='hidden' name='article_breaks' value='" . $article_breaks . "' />\n";
echo "<input type='submit' name='preview' value='" . $locale['549'] . "' class='button' />\n";
echo "<input type='submit' name='publish' value='" . $locale['543'] . "' class='button' />\n";
echo "<input type='submit' name='delete' value='" . $locale['544'] . "' class='button' />\n";
echo "</td>\n</tr>\n</table>\n</form>\n";
closetable();
} else {
redirect(FUSION_SELF . $aidlink);
}