本文整理汇总了PHP中editorArea函数的典型用法代码示例。如果您正苦于以下问题:PHP editorArea函数的具体用法?PHP editorArea怎么用?PHP editorArea使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了editorArea函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: editTranslation
public function editTranslation()
{
$returnval = array("editor_" . $this->fieldname, "refField_" . $this->fieldname);
// parameters : areaname, content, hidden field, width, height, rows, cols
editorArea("editor_" . $this->fieldname, $this->transparams, "refField_" . $this->fieldname, '100%;', '300', '70', '15');
echo $this->transparams;
return $returnval;
}
示例2: setEditor
/**
* Captures the joomla edior object in a string
* that can be rendered by the template engine.
*
* @param bean Editor configuration
* @return string Representation of the editor as a string
*/
protected function setEditor($conf)
{
// Get the configuration
$name = $conf->getName() != "" ? $conf->getName() : 'editor';
$content = $conf->getContent();
$handle = $conf->getValueField() != "" ? $conf->getValueField() : $name . '_editor';
$width = $conf->getWidth() != null ? $conf->getWidth() : '100%';
$height = $conf->getHeight() != null ? $conf->getHeight() : '250';
$rows = $conf->getRows() != null ? $conf->getRows() : '40';
$cols = $conf->getCols() != null ? $conf->getCols() : '20';
// Store the editor in a string
ob_start();
editorArea($handle, $content, $name, $width, $height, $rows, $cols);
$editor = ob_get_contents();
ob_end_clean();
return $editor;
}
示例3: layout
function layout($mailingEdit, $lists, $show)
{
if (ACA_CMSTYPE) {
$editor =& JFactory::getEditor();
}
if (!empty($_SESSION['skip_subscribers' . $mailingEdit->id])) {
echo 'If you click on the Send button, the process will skip the first ' . $_SESSION['skip_subscribers' . $mailingEdit->id] . ' subscribers';
}
?>
<fieldset class="acajoomcss">
<legend><?php
echo @constant($GLOBALS[ACA . 'listname' . $mailingEdit->list_type]) . ' ' . _ACA_CONTENT;
?>
</legend>
<table class="acajoomtable" cellspacing="1" width="99%">
<tbody>
<tr>
<td valign="top">
<?php
mailingsHTML::subject($mailingEdit, $lists, $show);
if ($show['htmlcontent']) {
if ($mailingEdit->html != 0) {
if (ACA_CMSTYPE) {
echo $editor->display('content', $mailingEdit->htmlcontent, '100%', '400', '80', '30');
} else {
editorArea('editor2', $mailingEdit->htmlcontent, 'content', '100%;', '400', '80', '30');
}
} else {
echo '<textarea name="content" rows="20" cols="75">' . $mailingEdit->htmlcontent . '</textarea>';
}
}
?>
</td>
<td valign="top" width="450px">
<?php
if (ACA_CMSTYPE) {
$config_tabs = new mosTabs15(0);
} else {
$config_tabs = new mosTabs(0);
}
//endif
$config_tabs->startPane('acaMailingOptions');
$config_tabs->startTab(_ACA_LIST_T_GENERAL, 'acaMailingOptions.general');
mailingsHTML::description($mailingEdit, $lists, $show);
$config_tabs->endTab();
$config_tabs->startTab(_ACA_LIST_OPT_TAG, 'acaMailingOptions.options');
echo '<div style"width:280px;"><span class="editlinktip">';
$tip = _ACA_INFO_MAILING_CONTENT;
$title = _ACA_CONTENT;
echo compa::toolTip($tip, '', 280, 'tooltip.png', $title, '', 0);
echo '</span><br /><strong>' . _ACA_USABLE_TAGS . '</strong><br />';
echo _ACA_NAMEREP . '<br />' . _ACA_FIRST_NAME_REP;
if ($mailingEdit->list_type == 7) {
echo '<br />' . _ACA_TAGS_AUTONEWS;
}
if (class_exists('auto')) {
echo '<br />' . _ACA_TAGS_ISSUE_NB . '<br />';
echo '<br />' . _ACA_TAGS_DATE . '<br />';
}
if (class_exists('aca_tags')) {
echo '<br />' . _ACA_TAGS_CB . '<br />';
}
echo '</div>';
$config_tabs->endTab();
if (!ACA_CMSTYPE) {
$config_tabs->startTab(_ACA_LIST_OPT_IMG, 'acaMailingOptions.joom15');
mailingsHTML::images($lists);
$config_tabs->endTab();
}
if ($show['sitecontent']) {
$config_tabs->startTab(_ACA_LIST_OPT_CTT, 'acaMailingOptions.content');
echo _ACA_CONTENT_ITEM_SELECT_T;
//echo _ACA_INSERT_CONTENT.'<br />';
if (ACA_CMSTYPE) {
global $mainframe;
JPluginHelper::importPlugin('acajoom');
$bot_results = $mainframe->triggerEvent('acajoombot_editabs');
} else {
global $_MAMBOTS;
$_MAMBOTS->loadBotGroup('acajoom');
$bot_results = $_MAMBOTS->trigger('acajoombot_editabs');
}
if (!empty($bot_results)) {
foreach ($bot_results as $bot_result) {
echo $bot_result[1];
}
}
$config_tabs->endTab();
}
if ($GLOBALS[ACA . 'show_jcalpro'] and class_exists('pro')) {
$config_tabs->startTab(_ACA_SHOW_JCALPRO, 'acaMailingOptions.jcalpro');
mailingsHTML::jcalpro();
$config_tabs->endTab();
}
if ($show['attachement']) {
$config_tabs->startTab(_ACA_ATTACHMENTS, 'acaMailingOptions.attachement');
mailingsHTML::attachement($mailingEdit, $lists, $show);
$config_tabs->endTab();
}
$config_tabs->endPane();
//.........这里部分代码省略.........
示例4: editBook
//.........这里部分代码省略.........
echo $langlistshow;
?>
</td>
</tr>
<tr>
<td valign="top" align="right"><strong><?php
echo _BOOKLIBRARY_LABEL_CATEGORY;
?>
:</strong></td>
<td align="left"><?php
echo $clist;
?>
</td>
</tr>
<tr>
<td valign="top" align="right"><strong><?php
echo _BOOKLIBRARY_LABEL_FETCH_INFO;
?>
:</strong></td>
<td align="left">
<?php
echo $wslist;
?>
<img src="../components/com_booklibrary/images/amazon/com-logo.gif" alt="amazon.com" border="0"/>
</td>
</tr>
<tr>
<td valign="top" align="right"><strong><?php
echo _BOOKLIBRARY_LABEL_COMMENT;
?>
:</strong></td>
<td align="left">
<?php
editorArea('editor1', $row->comment, 'comment', 500, 250, '70', '10');
?>
</td>
</tr>
<?php
if ($booklibrary_configuration['ebooks']['allow']) {
echo '<tr><td colspan="2"></td></tr>';
echo "<tr > <td valign='top' align='right'>" . _BOOKLIBRARY_LABEL_EBOOK . ":</td>";
if (count($files) > 0) {
for ($i = 0; $i < count($files); $i++) {
echo "<tr><td align='right'>" . _BOOKLIBRARY_LABEL_EBOOK_UPLOAD_URL . ($i + 1) . ":";
echo "</td><td>";
if (isset($files[$i]->location) && substr($files[$i]->location, 0, 4) != "http") {
echo "<input type='text' size='60' value='" . $mosConfig_live_site . $files[$i]->location . "' />";
} elseif (isset($files[$i]->location) && substr($files[$i]->location, 0, 4) == "http") {
echo "<input type='text' size='60' value='" . $files[$i]->location . "' />";
}
echo "</td></tr>";
echo "<tr><td align='right'>" . _BOOKLIBRARY_LABEL_EBOOK_DELETE . ":";
echo "</td><td>";
echo isset($files[$i]->id) ? "<input type=\"checkbox\" name=\"file_option_del" . $files[$i]->id . "\" value=\"" . $files[$i]->id . "\">" : "";
echo "</td></tr>";
}
}
if (count($files) > 0) {
echo "<td>";
}
?>
<td ID="f_items">
<input type="button" name="new_file"
value="<?php
echo "Add new ebook file";
?>
示例5: editModule
//.........这里部分代码省略.........
</td>
</tr>
<tr>
<td colspan="2">
</td>
</tr>
<tr>
<td valign="top">
<?php
echo $adminLanguage->A_COMP_ID;
?>
:
</td>
<td>
<?php
echo $row->id;
?>
</td>
</tr>
<!-- END selectable pages -->
<?php
if ($row->module == "") {
?>
<tr>
<td valign="top" align="left">
<?php
echo $adminLanguage->A_COMP_MOD_CONTENT;
?>
:
</td>
<td>
<?php
// parameters : areaname, content, hidden field, width, height, rows, cols
editorArea('editor1', $row->content, 'content', '500', '350', '70', '15');
?>
</td>
</tr>
<?php
}
?>
</table>
</td>
<td width="40%">
<table width="100%">
<tr>
<td>
<?php
$tabs->startPane("module");
$tabs->startTab($adminLanguage->A_COMP_MOD_TAB_LBL, "location-page");
?>
<table width="100%" class="adminform">
<tr>
<th>
<?php
echo $adminLanguage->A_COMP_MOD_POSITION;
?>
</th>
<tr>
<tr>
<td>
<?php
echo $adminLanguage->A_COMP_MOD_ITEM_LINK;
?>
:
<br /><br />
<?php
示例6: editorArea
function editorArea($areaname, $content, $name, $width, $height, $rows, $cols)
{
editorArea($areaname, $content, $name, $width, $height, $rows, $cols);
}
示例7: editorArea
:</div></td>
<td width="75%">
<textarea class="inputbox" name="parameter_label" cols="60" rows="3" ><?php
$db->sp("parameter_label");
?>
</textarea>
</td>
</tr>
<tr>
<td width="25%" nowrap valign="top"><div align="right"><?php
echo $VM_LANG->_('PHPSHOP_PRODUCT_TYPE_PARAMETER_FORM_DESCRIPTION');
?>
:</div></td>
<td width="75%" valign="top">
<?php
editorArea('editor1', $db->f("parameter_description"), 'parameter_description', '450', '200', '60', '6');
?>
</td>
</tr>
<tr>
<td><div align="right"><?php
echo $VM_LANG->_('PHPSHOP_MODULE_LIST_ORDER');
?>
: </div></td>
<td valign="top"><?php
echo $ps_product_type_parameter->list_order_parameter($db->f("product_type_id"), $db->f("parameter_name"), $db->f("parameter_list_order"));
echo "<input type=\"hidden\" name=\"currentpos\" value=\"" . $db->f("parameter_list_order") . "\" />";
?>
</td>
</tr>
<tr>
示例8: editorArea
<tr class="<?php
echo $zoom->_tabclass[$tabcnt];
?>
">
<td valign="top"><?php
echo _ZOOM_DESCRIPTION;
?>
: </td>
<td valign="top">
<!--<textarea class="inputbox" cols="50" rows="5" name="mult_descr[]"><?php
echo $zoom->_CONFIG['tempDescr'];
?>
</textarea>-->
<?php
// parameters : areaname, content, hidden field, width, height, rows, cols
editorArea('mult_descr[]', $zoom->_CONFIG['tempDescr'], 'mult_descr[]', '100%;', '150', '20', '20');
?>
</td>
</tr>
<tr><td style="border-bottom: 1px dashed #CCCCCC;" colspan="2"> </td></tr>
<?php
if ($tabcnt == 1) {
$tabcnt = 0;
} else {
$tabcnt++;
}
}
?>
<tr><td colspan="2"> </td></tr>
<tr>
<td colspan="2" align="center">
示例9: edit
//.........这里部分代码省略.........
echo $adminLanguage->A_COMP_TITLE;
?>
:
</td>
<td>
<input class="inputbox" type="text" name="title" size="30" maxlength="100" value="<?php
echo $row->title;
?>
" />
</td>
</tr>
<tr>
<td align="left">
<?php
echo $adminLanguage->A_COMP_CONTENT_TITLE_ALIAS;
?>
:
</td>
<td>
<input class="inputbox" type="text" name="title_alias" size="30" maxlength="100" value="<?php
echo $row->title_alias;
?>
" />
</td>
</tr>
<tr>
<td valign="top" align="left" colspan="2">
<?php
echo $adminLanguage->A_COMP_TYPED_TEXT;
?>
<br />
<?php
// parameters : areaname, content, hidden field, width, height, rows, cols
editorArea('editor1', $row->introtext, 'introtext', 500, 400, '65', '50');
?>
</td>
</tr>
</table>
</td>
<td width="40%" valign="top">
<?php
$tabs->startPane("content-pane");
$tabs->startTab($adminLanguage->A_COMP_CONT_PUB_TAB, "publish-page");
?>
<table class="adminform">
<tr>
<th colspan="2">
<?php
echo $adminLanguage->A_COMP_CONT_PUBLISHING;
?>
</th>
<tr>
<tr>
<td valign="top" align="right">
<?php
echo $adminLanguage->A_COMP_STATE;
?>
:
</td>
<td>
<?php
echo $row->state > 0 ? $adminLanguage->A_COMP_PUBLISHED : $adminLanguage->A_COMP_CONTENT_DRAFT_UNPUB;
?>
</td>
</tr>
<tr>
示例10: edit
//.........这里部分代码省略.........
<table class="adminform">
<tr>
<th colspan="3">
Item Details
</th>
</tr>
<tr>
<td align="left">
Title:
</td>
<td>
<input class="inputbox" type="text" name="title" size="30" maxlength="100" value="<?php
echo $row->title;
?>
" />
</td>
</tr>
<tr>
<td align="left">
Title Alias:
</td>
<td>
<input class="inputbox" type="text" name="title_alias" size="30" maxlength="100" value="<?php
echo $row->title_alias;
?>
" />
</td>
</tr>
<tr>
<td valign="top" align="left" colspan="2">
Text: (required)<br />
<?php
// parameters : areaname, content, hidden field, width, height, rows, cols
editorArea('editor1', $row->introtext, 'introtext', '100%;', '500', '75', '50');
?>
</td>
</tr>
</table>
</td>
<td width="40%" valign="top">
<?php
$tabs->startPane("content-pane");
$tabs->startTab("Publishing", "publish-page");
?>
<table class="adminform">
<tr>
<th colspan="2">
Publishing Info
</th>
</tr>
<tr>
<td valign="top" align="right" width="120">
State:
</td>
<td>
<?php
echo $row->state > 0 ? 'Published' : 'Draft Unpublished';
?>
</td>
</tr>
<tr>
<td valign="top" align="right">
Published:
</td>
<td>
<input type="checkbox" name="published" value="1" <?php
示例11: editorArea
echo $db->sf("product_s_desc");
?>
</textarea>
</td>
</tr>
</table>
</td>
</tr>
</table>
<div style="font-weight:bold;"><?php
echo $VM_LANG->_('PHPSHOP_PRODUCT_FORM_DESCRIPTION');
?>
:</div>
<?php
editorArea('editor1', htmlspecialchars($db->sf("product_desc"), ENT_QUOTES), 'product_desc', '100%', '300', '55', '25');
?>
<?php
$tabs->endTab();
$tabs->startTab($display_label, "display-page");
?>
<table class="adminform">
<tr>
<td align="left" colspan="2"><?php
echo "<h2>{$display_label}</h2>";
?>
</td>
</tr>
<tr class="row1">
<td width="21%" style="vertical-align: middle;"><div style="text-align:right;font-weight:bold;"><?php
示例12: edit
//.........这里部分代码省略.........
echo $lists['image_position'];
?>
</td>
</tr>
<tr>
<td>
Nível de Acesso:
</td>
<td>
<?php
echo $lists['access'];
?>
</td>
</tr>
<tr>
<td>
Publicado:
</td>
<td>
<?php
echo $lists['published'];
?>
</td>
</tr>
<tr>
<td valign="top" colspan="2">
Descrição:
</td>
</tr>
<tr>
<td colspan="3">
<?php
// parameters : areaname, content, hidden field, width, height, rows, cols
editorArea('editor1', $row->description, 'description', '100%;', '300', '60', '20');
?>
</td>
</tr>
</table>
</td>
<td valign="top" width="40%">
<?php
if ($row->id > 0) {
?>
<table class="adminform">
<tr>
<th colspan="2">
Link to Menu
</th>
<tr>
<tr>
<td colspan="2">
Este irá criar um novo item de menu no menu que você selecionou <br />
<br /><br />
</td>
<tr>
<tr>
<td valign="top" width="100">
Selecione um Menu
</td>
<td>
<?php
echo $lists['menuselect'];
?>
</td>
<tr>
<tr>
示例13: show
function show()
{
jimport('joomla.methods');
$cfg = $this->getAll();
JToolBarHelper::title(JText::_('SimpleCaddy Configuration'));
JToolBarHelper::custom('saveconfig', 'save.png', 'save_f2.png', 'Save', false, false);
JToolBarHelper::cancel();
JToolBarHelper::custom('control', 'back.png', 'back.png', 'Main', false, false);
?>
<form method="post" name="adminForm" action="index2.php">
<?php
$currentpage = '';
$i = 0;
foreach ($cfg as $conf) {
if ($currentpage != $conf->pagename) {
if ($currentpage) {
echo "</tbody></table></fieldset>\n";
}
echo "<fieldset class='adminform'>";
$currentpage = $conf->pagename;
echo "<legend>" . JText::_($currentpage) . "</legend>";
echo "\n<table class='admintable' cellspacing='1'><tbody>";
$i++;
}
echo "\n<tr><td class='configkey'>" . JText::_($conf->description) . "</td>";
switch ($conf->type) {
case "text":
echo "<td><input type=\"text\" name=\"edt{$conf->keyword}\" value=\"{$conf->setting}\" size=\"{$conf->sh}\">";
echo "</td></tr>\n";
break;
case "textarea":
echo "<td><textarea name=\"edt{$conf->keyword}\" cols=\"{$conf->sh}\" rows=\"{$conf->sv}\">{$conf->setting}</textarea>";
echo "</td></tr>\n";
break;
case "richtext":
echo "<td>";
editorArea('editor1', $conf->setting, "edt{$conf->keyword}", '100%', '350', '75', '20');
echo "</td></tr>\n";
break;
case "yesno":
echo "<td>";
echo "<input type='radio' name='edt{$conf->keyword}' " . ($conf->setting == 0 ? " checked='checked'" : "") . " value='0' />" . JText::_('No');
echo "<input type='radio' name='edt{$conf->keyword}' " . ($conf->setting == 1 ? " checked='checked'" : "") . " value='1' />" . JText::_('Yes');
echo "</td></tr>\n";
break;
case "list":
echo "<td>";
echo "<select name='edt{$conf->keyword}'>";
$txtoptlist = trim($conf->indopts);
$pairoptlist = explode("\r\n", $txtoptlist);
foreach ($pairoptlist as $k => $value) {
$aline = explode(":", trim($value));
echo "<option value='" . $aline[1] . "'" . ($conf->setting == $aline[1] ? " selected" : "") . ">" . $aline[0] . "</option>\n";
}
echo "</select>";
echo "</td></tr>\n";
break;
}
echo "\n";
}
?>
</td></tr>
</table>
<input type="hidden" name="option" value="com_caddy" />
<input type="hidden" name="action" value="configuration" />
<input type="hidden" name="task" value="" />
<input type="hidden" name="boxchecked" value="0" />
<input type="hidden" name="hidemainmenu" value="0" />
</form>
<?php
}
示例14: editorArea
:</td>
<td>
<input type="text" class="inputbox" name="order_status_name" value="<?php
$db->sp("order_status_name");
?>
" size="25" />
</td>
</tr>
<tr>
<td class="labelcell"><?php
echo $VM_LANG->_('PHPSHOP_MANUFACTURER_FORM_DESCRIPTION');
?>
:</td>
<td>
<?php
editorArea('order_status_description', $db->sf("order_status_description"), 'order_status_description', 500, 250, 75, 25);
?>
</td>
</tr>
<tr>
<td class="labelcell"><?php
echo $VM_LANG->_('PHPSHOP_ORDER_STATUS_FORM_LIST_ORDER');
?>
:</td>
<td>
<input type="text" class="inputbox" name="list_order" value="<?php
$db->sp("list_order");
?>
" size="3" maxlength="3" />
</td>
</tr>
示例15: editorArea
?>
:</td>
<td width="62%">
<input type="text" class="inputbox" name="product_type_name" size="60" value="<?php
$db->sp('product_type_name');
?>
" />
</td>
</tr>
<tr>
<td class="labelcell"><?php
echo $VM_LANG->_('PHPSHOP_PRODUCT_TYPE_FORM_DESCRIPTION');
?>
:</td>
<td width="62%" valign="top"><?php
editorArea('editor1', $db->f("product_type_description"), 'product_type_description', '300', '100', '60', '6');
?>
<!--input type="text" class="inputbox" name="product_type_description" size="60" value="<?php
// $db->sp('product_type_description')
?>
" /-->
</td>
</tr>
<tr>
<td class="labelcell"><?php
echo $VM_LANG->_('PHPSHOP_MODULE_LIST_ORDER');
?>
: </td>
<td valign="top"><?php
echo $ps_product_type->list_order($db->f("product_type_id"), $db->f("product_type_list_order"));
echo "<input type=\"hidden\" name=\"currentpos\" value=\"" . $db->f("product_type_list_order") . "\" />";