Пример #1
0
 function toggle($id, $value, $table, $extra = null)
 {
     $column = substr($id, 0, strpos($id, '_'));
     $params = $this->_getToggle($column, $table);
     $newValue = $params->values[$value];
     if ($params->mode == 'pictures') {
         static $pictureincluded = false;
         if (!$pictureincluded) {
             $pictureincluded = true;
             $js = "function joomTogglePicture(id,newvalue,table){\n\t\t\t\t\twindow.document.getElementById(id).className = 'onload';\n\t\t\t\t\ttry{\n\t\t\t\t\t\tnew Ajax('index.php?option=com_acymailing&tmpl=component&ctrl=toggle&task='+id+'&value='+newvalue+'&table='+table,{ method: 'get', update: \$(id), onComplete: function() {\twindow.document.getElementById(id).className = 'loading'; }}).request();\n\t\t\t\t\t}catch(err){\n\t\t\t\t\t\tnew Request({url:'index.php?option=com_acymailing&tmpl=component&ctrl=toggle&task='+id+'&value='+newvalue+'&table='+table,method: 'get', onComplete: function(response) { \$(id).innerHTML = response; window.document.getElementById(id).className = 'loading'; }}).send();\n\t\t\t\t\t}\n\t\t\t\t}";
             $doc = JFactory::getDocument();
             $doc->addScriptDeclaration($js);
         }
         $desc = empty($params->description[$value]) ? '' : $params->description[$value];
         if (empty($params->pictures)) {
             $text = ' ';
             $class = 'class="' . $params->aclass[$value] . '"';
         } else {
             $text = '<img src="' . $params->pictures[$value] . '"/>';
             $class = '';
         }
         return '<a href="javascript:void(0);" style="font-style: normal;" ' . $class . ' onclick="joomTogglePicture(\'' . $id . '\',\'' . $newValue . '\',\'' . $table . '\')" title="' . str_replace('"', '\\"', $desc) . '">' . $text . '</a>';
     } elseif ($params->mode == 'class') {
         static $classincluded = false;
         if (!$classincluded) {
             $classincluded = true;
             $js = "function joomToggleClass(id,newvalue,table,extra){\n\t\t\t\t\tvar mydiv=\$(id); mydiv.innerHTML = ''; mydiv.className = 'onload';\n\t\t\t\t\ttry{\n\t\t\t\t\t\tnew Ajax('index.php?option=com_acymailing&tmpl=component&ctrl=toggle&task='+id+'&value='+newvalue+'&table='+table+'&extra[color]='+extra,{ method: 'get', update: \$(id), onComplete: function() {\twindow.document.getElementById(id).className = 'loading'; }}).request();\n\t\t\t\t\t}catch(err){\n\t\t\t\t\t\tnew Request({url:'index.php?option=com_acymailing&tmpl=component&ctrl=toggle&task='+id+'&value='+newvalue+'&table='+table+'&extra[color]='+extra,method: 'get', onComplete: function(response) { \$(id).innerHTML = response; window.document.getElementById(id).className = 'loading'; }}).send();\n\t\t\t\t\t}\n\t\t\t\t\t}";
             $doc = JFactory::getDocument();
             $doc->addScriptDeclaration($js);
         }
         $desc = empty($params->description[$value]) ? '' : $params->description[$value];
         $return = '<a href="javascript:void(0);" onclick="joomToggleClass(\'' . $id . '\',\'' . $newValue . '\',\'' . $table . '\',\'' . htmlspecialchars(urlencode($extra['color']), ENT_COMPAT, 'UTF-8') . '\');" title="' . str_replace('"', '\\"', $desc) . '"><div class="' . $params->class[$value] . '" style="background-color:' . htmlspecialchars($extra['color'], ENT_COMPAT, 'UTF-8') . ';border-color:' . htmlspecialchars($extra['color'], ENT_COMPAT, 'UTF-8') . '">';
         if (!empty($extra['tooltip'])) {
             $return .= acymailing_tooltip($extra['tooltip'], @$extra['tooltiptitle'], '', '&nbsp;&nbsp;&nbsp;&nbsp;');
         }
         $return .= '</div></a>';
         return $return;
     }
 }
Пример #2
0
echo $this->elements->indexFollow;
?>
				</td>
			</tr>
		</table>
	</div>
	<div class="onelineblockoptions">
		<span class="acyblocktitle"><?php 
echo JText::_('UNSUB_PAGE');
?>
</span>
		<table class="acymailing_table" cellspacing="1">
			<tr>
				<td class="acykey">
					<?php 
echo acymailing_tooltip(str_replace('UNSUB_INTRO', JText::_('UNSUB_INTRO'), $this->config->get('unsub_intro', 'UNSUB_INTRO')), JText::_('UNSUB_INTRODUCTION'), '', JText::_('UNSUB_INTRODUCTION'));
?>
				</td>
				<td>
					<textarea style="width:300px;" rows="5" name="config[unsub_intro]"><?php 
echo $this->config->get('unsub_intro', 'UNSUB_INTRO');
?>
</textarea>
				</td>
			</tr>
			<tr>
				<td class="acykey">
					<?php 
echo JText::_('UNSUB_DISP_CHOICE');
?>
				</td>
Пример #3
0
    if (!empty($this->lists)) {
        $k = 0;
        $listids = array();
        foreach ($this->lists as $row) {
            $listids[] = $row->listid;
            ?>
						<tr class="<?php 
            echo "row{$k}";
            ?>
">
							<td>
								<?php 
            if (!$row->published) {
                echo '<a href="index.php?option=com_acymailing&ctrl=list&task=edit&listid=' . $row->listid . '" title="' . JText::_('LIST_PUBLISH', true) . '"><img style="margin:0px;" src="' . ACYMAILING_IMAGES . 'warning.png" alt="Warning" /></a> ';
            }
            echo acymailing_tooltip($row->description, $row->name, '', $row->name);
            echo ' ( ' . JText::sprintf('SELECTED_USERS', $row->nbsub) . ' )';
            echo '<div class="roundsubscrib rounddisp" style="background-color:' . $row->color . '"></div>';
            ?>
							</td>
						</tr>
						<?php 
            $k = 1 - $k;
        }
    } else {
        ?>
					<tr>
						<td>
							<?php 
        echo JText::_('EMAIL_AFFECT');
        ?>
Пример #4
0
				<?php 
    $k = 0;
    foreach ($this->filters as $row) {
        $publishedid = 'published_' . $row->filid;
        $id = 'filter_' . $row->filid;
        ?>
					<tr class="<?php 
        echo "row{$k}";
        ?>
" id="<?php 
        echo $id;
        ?>
">
						<td>
							<?php 
        echo acymailing_tooltip($row->description, $row->name, '', $row->name, acymailing_completeLink('filter&task=edit&filid=' . $row->filid));
        ?>
						</td>
						<td align="center" style="text-align:center">
							<span id="<?php 
        echo $publishedid;
        ?>
" class="loading"><?php 
        echo $this->toggleClass->toggle($publishedid, (int) $row->published, 'filter');
        ?>
</span>
						</td>
						<td align="center" style="text-align:center">
							<?php 
        echo $this->toggleClass->delete($id, $row->filid . '_' . $row->filid, 'filter', true);
        ?>
Пример #5
0
				<tr>
					<td class="acykey">
						<?php 
    echo acymailing_tooltip(JText::_('DATABASE_MAINTENANCE_DESC') . '<br />' . JText::_('DATABASE_MAINTENANCE_DESC2'), JText::_('DELETE_DETAILED_STATS'), '', JText::_('DELETE_DETAILED_STATS'));
    ?>
					</td>
					<td>
						<?php 
    echo $this->elements->delete_stats;
    ?>
					</td>
				</tr>
				<tr>
					<td class="acykey">
						<?php 
    echo acymailing_tooltip(JText::_('DATABASE_MAINTENANCE_DESC') . '<br />' . JText::_('DATABASE_MAINTENANCE_DESC2'), JText::_('DELETE_HISTORY'), '', JText::_('DELETE_HISTORY'));
    ?>
					</td>
					<td>
						<?php 
    echo $this->elements->delete_history;
    ?>
					</td>
				</tr>
			<?php 
}
?>
			<tr>
				<td class="acykey">
					<?php 
echo JText::_('DATABASE_INTEGRITY');
Пример #6
0
        ?>
">
								<td align="center" style="text-align:center">
								<?php 
        echo $i + 1;
        ?>
								</td>
								<td>
									<?php 
        echo acymailing_getDate($row->senddate);
        ?>
								</td>
								<td>
									<?php 
        $text = '<b>' . JText::_('ACY_ID') . ' : </b>' . $row->mailid;
        echo acymailing_tooltip($text, $row->subject, '', $row->subject);
        ?>
								</td>
								<td align="center" style="text-align:center" >
									<?php 
        echo $row->priority;
        ?>
								</td>
								<td align="center" style="text-align:center" >
									<?php 
        echo $row->try;
        ?>
								</td>
								<td align="center" style="text-align:center" >
									<?php 
        echo $this->toggleClass->delete($id, $row->subid . '_' . $row->mailid, 'queue');
Пример #7
0
			</tr>
			<tr>
				<td class="key">
				<?php 
echo acymailing_tooltip(JText::_('REDIRECTION_UNSUB_DESC'), JText::_('REDIRECTION_UNSUB'), '', JText::_('REDIRECTION_UNSUB'));
?>
				</td>
				<td>
					<input class="inputbox" type="text" id="unsub_redirect" name="config[unsub_redirect]" style="width:250px" value="<?php 
echo $this->escape($this->config->get('unsub_redirect'));
?>
">
				</td>
			</tr>
			<tr>
				<td class="key">
				<?php 
echo acymailing_tooltip(JText::_('REDIRECTION_MODULE_DESC'), JText::_('REDIRECTION_MODULE'), '', JText::_('REDIRECTION_MODULE'));
?>
				</td>
				<td>
					<input class="inputbox" type="text" id="module_redirect" name="config[module_redirect]" style="width:250px" value="<?php 
echo $this->escape($this->config->get('module_redirect'));
?>
">
				</td>
			</tr>
		</table>
	</fieldset>
</div>
Пример #8
0
    ?>
" onclick="applyZoo(<?php 
    echo $row->id . ",'row{$k}'";
    ?>
);" style="cursor: pointer;">
			<td><?php 
    $text = '<b>' . JText::_('ALIAS', true) . ': </b>' . $row->alias;
    echo acymailing_tooltip($text, $row->name, '', $row->name);
    ?>
</td>
			<td><?php 
    if (!empty($row->name)) {
        $text = '<b>' . JText::_('PLG_ZLFRAMEWORK_NAME', true) . ' : </b>' . $row->author;
        $text .= '<br/><b>' . JText::_('USERNAME', true) . ' : </b>' . $row->username;
        $text .= '<br/><b>' . JText::_('ID', true) . ' : </b>' . $row->created_by;
        echo acymailing_tooltip($text, $row->author, '', $row->author);
    }
    ?>
</td>
			<td align="center">
				<?php 
    echo $row->id;
    ?>
				<input type="hidden" name="itemlayout<?php 
    echo $row->id;
    ?>
" id="itemlayout<?php 
    echo $row->id;
    ?>
" value=""/>
				<input type="hidden" name="itemonlinelayout<?php 
Пример #9
0
				<td class="key">
				<?php 
    echo acymailing_tooltip(JText::_('NEWS_PRIORITY_DESC'), JText::_('NEWS_PRIORITY'), '', JText::_('NEWS_PRIORITY'));
    ?>
				</td>
				<td>
					<input class="inputbox" type="text" name="config[priority_newsletter]" style="width:50px" value="<?php 
    echo intval($this->config->get('priority_newsletter', 3));
    ?>
">
				</td>
			</tr>
			<tr>
				<td class="key">
				<?php 
    echo acymailing_tooltip(JText::_('FOLLOW_PRIORITY_DESC'), JText::_('FOLLOW_PRIORITY'), '', JText::_('FOLLOW_PRIORITY'));
    ?>
				</td>
				<td>
					<input class="inputbox" type="text" name="config[priority_followup]" style="width:50px" value="<?php 
    echo intval($this->config->get('priority_followup', 2));
    ?>
">
				</td>
			</tr>
		</table>
	</fieldset>
	<?php 
}
?>
</div>
Пример #10
0
    echo acymailing_getDate($row->senddate);
    ?>
						</td>
						<td>
							<a class="modal" href="<?php 
    echo acymailing_completeLink('queue&task=preview&mailid=' . $row->mailid . '&subid=' . $row->subid, true);
    ?>
" rel="{handler: 'iframe', size: {x: 800, y: 590}}">
								<?php 
    echo acymailing_dispSearch($row->subject, $this->pageInfo->search);
    ?>
							</a>
						</td>
						<td>
							<?php 
    echo acymailing_tooltip(JText::_('ACY_NAME') . ' : ' . $row->name . '<br />' . JText::_('ACY_ID') . ' : ' . $row->subid, $row->email, 'tooltip.png', $row->name . ' ( ' . $row->email . ' )', acymailing_completeLink('subscriber&task=edit&subid=' . $row->subid));
    ?>
						</td>
						<td align="center" style="text-align:center">
							<?php 
    echo $row->priority;
    ?>
						</td>
						<td align="center" style="text-align:center">
							<?php 
    echo $row->try;
    ?>
						</td>
						<td align="center" style="text-align:center">
							<?php 
    echo $this->toggleClass->delete($id, $row->subid . '_' . $row->mailid, 'queue');
Пример #11
0
			</table>
		</td>
		</tr></table>
	</fieldset>
	<?php 
if (acymailing_level(3)) {
    include dirname(__FILE__) . DS . 'interface_enterprise.php';
}
?>
	<fieldset class="adminform">
		<legend><?php 
echo JText::_('FOOTER');
?>
</legend>
		<table class="admintable" cellspacing="1">
			<tr>
				<td class="key" >
				<?php 
echo acymailing_tooltip(JText::_('SHOW_FOOTER_DESC'), JText::_('SHOW_FOOTER'), '', JText::_('SHOW_FOOTER'));
?>
				</td>
				<td>
					<?php 
echo $this->elements->show_footer;
?>
				</td>
			</tr>
		</table>
	</fieldset>
</div>
Пример #12
0
            $ctrl = 'followup';
        } else {
            $ctrl = 'newsletter';
        }
        echo acymailing_tooltip($text, $row->subject, '', $row->subject, acymailing_completeLink($ctrl . '&task=preview&mailid=' . $row->mailid));
        ?>
					</td>
					<?php 
    }
    ?>
					<td>
					<?php 
    $text = '<b>' . JText::_('ACY_NAME') . ' : </b>' . $row->name;
    $text .= '<br /><b>' . JText::_('ACY_ID') . ' : </b>' . $row->subid;
    $link = $tmpl ? '' : acymailing_completeLink('subscriber&task=edit&subid=' . $row->subid);
    echo acymailing_tooltip($text, $row->email, '', $row->name . ' ( ' . $row->email . ' )', $link);
    ?>
					</td>
					<td align="center" style="text-align:center" >
						<?php 
    echo $row->html ? JText::_('HTML') : JText::_('JOOMEXT_TEXT');
    ?>
					</td>
					<td align="center" style="text-align:center" >
						<?php 
    echo $row->open;
    ?>
					</td>
					<td align="center" style="text-align:center" >
						<?php 
    if (!empty($row->opendate)) {
Пример #13
0
    function getFormatOption($plugin, $default = 'TOP_LEFT', $singleElement = true, $function = 'updateTag')
    {
        $contentformat = array('TOP_LEFT' => '-208', 'TOP_RIGHT' => '-260', 'TITLE_IMG' => '0', 'TITLE_IMG_RIGHT' => '-52', 'CENTER_IMG' => '-104', 'TOP_IMG' => '-156', 'COL_LEFT' => '-312', 'COL_RIGHT' => '-364');
        $name = $singleElement ? 'contentformat' : 'contentformatauto';
        $result = '<input type="hidden" name="' . $name . '" id="' . $name . '" value="' . $default . '" size="1"/>';
        $result .= '<span id="' . $name . 'button" class="btn acybuttonformat" style="margin: 0px 10px 0px 0px; background-position: ' . $contentformat[$default] . 'px -6px;height:34px;" onclick="togglediv' . $name . '();"></span>';
        $result .= '<div id="' . $name . 'div" class="formatbox" style="display:none;">';
        $reset = '';
        if (file_exists(ACYMAILING_MEDIA . 'plugins')) {
            jimport('joomla.filesystem.folder');
            $files = JFolder::files(ACYMAILING_MEDIA . 'plugins', '^' . $plugin);
            foreach ($files as $oneFile) {
                $reset .= "document.getElementById('" . $name . $oneFile . "').style.backgroundPosition = '-480px -5px';document.getElementById('" . $name . $oneFile . "').style.boxShadow = 'inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05)';";
                $result .= '<span id="' . $name . $oneFile . '" class="btn acybuttonformat" style="background-position: -480px -5px;height:34px;" onclick="selectFormat' . $name . '(\'' . $oneFile . '\',\'' . $oneFile . '\',true);"></span>' . substr($oneFile, 0, strlen($oneFile) - 4) . '<br/>';
            }
            $result .= '<br />';
        }
        foreach ($contentformat as $value => $position) {
            $reset .= "document.getElementById('" . $name . $value . "').style.backgroundPosition = '" . $position . "px -10px';document.getElementById('" . $name . $value . "').style.boxShadow = 'inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05)';";
            $result .= '<span id="' . $name . $value . '" class="btn acybuttonformat" style="background-position: ' . $position . 'px ' . ($value == $default ? -64 : -10) . 'px;" onclick="selectFormat' . $name . '(\'' . $value . '\',\'' . $position . '\',false);"></span>';
        }
        $result .= '<br />';
        if (!$singleElement) {
            $result .= '<br /><input type="hidden" id="' . $name . 'invert" value="0"/>';
            $result .= '<span id="' . $name . 'invertbutton" class="btn acybuttonformat" style="background-position:-415px -8px;width:58px;height:30px;" onclick="toggleInvert' . $name . '();"></span>' . acymailing_tooltip('Alternatively display the image on the left and right', 'Alternate', '', 'Alternate');
        }
        $result .= '<span class="btn acyokbutton acybuttonformat" onclick="togglediv' . $name . '();">' . JText::_('ACY_CLOSE') . '</span>';
        $result .= '</div>';
        ob_start();
        ?>
		<script type="text/javascript">
		<!--
			function togglediv<?php 
        echo $name;
        ?>
(){
				var divelement = document.getElementById('<?php 
        echo $name;
        ?>
div');
				if(divelement.style.display == 'none') divelement.style.display = '';
				else divelement.style.display = 'none';
			}
<?php 
        if (!$singleElement) {
            ?>
			function toggleInvert<?php 
            echo $name;
            ?>
() {
				var invertElement = document.getElementById('<?php 
            echo $name;
            ?>
invert');
				var posy = '8';
				var shadow = 'inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05)';
				if(invertElement.value == 0){
					posy = '60';
					shadow = 'inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05)';
				}
				invertElement.value = 1-invertElement.value;
				document.getElementById('<?php 
            echo $name;
            ?>
invertbutton').style.backgroundPosition = '-415px -'+posy+'px';
				document.getElementById('<?php 
            echo $name;
            ?>
invertbutton').style.boxShadow = shadow;
				<?php 
            echo $function;
            ?>
();
			}
<?php 
        }
        ?>

			function selectFormat<?php 
        echo $name;
        ?>
(format, position, custom){
				<?php 
        echo $reset;
        ?>
				var prosy = '64';
				var newVal = format;
				if(custom){
					position = '-480';
					prosy = '58';
					newVal = '<?php 
        echo $default;
        ?>
| template:'+format;
				}
				document.getElementById('<?php 
        echo $name;
        ?>
').value = newVal;
				document.getElementById('<?php 
        echo $name;
        ?>
button').style.backgroundPosition = position+'px -5px';
				document.getElementById('<?php 
        echo $name;
        ?>
'+format).style.backgroundPosition = position+'px -'+prosy+'px';
				document.getElementById('<?php 
        echo $name;
        ?>
'+format).style.boxShadow = 'inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05)';
				<?php 
        echo $function;
        ?>
();
			}
		-->
		</script>
<?php 
        $result .= ob_get_clean();
        return $result;
    }
Пример #14
0
        ?>
</span>
					</td>
					<td align="center">
						<?php 
        if (!empty($row->userid)) {
            if (file_exists(ACYMAILING_ROOT . 'components' . DS . 'com_comprofiler' . DS . 'comprofiler.php')) {
                $editLink = 'index.php?option=com_comprofiler&task=edit&cid[]=';
            } elseif (!ACYMAILING_J16) {
                $editLink = 'index.php?option=com_users&task=edit&cid[]=';
            } else {
                $editLink = 'index.php?option=com_users&task=user.edit&id=';
            }
            $text = JText::_('ACY_USERNAME') . ' : <b>' . $row->username;
            $text .= '</b><br/>' . JText::_('USER_ID') . ' : <b>' . $row->userid . '</b>';
            echo acymailing_tooltip($text, $row->username, '', $row->userid, $editLink . $row->userid);
        }
        ?>
					</td>
					<td align="center">
						<?php 
        echo $row->subid;
        ?>
					</td>
					<?php 
    }
    ?>
				</tr>
			<?php 
    $k = 1 - $k;
    $i++;
Пример #15
0
?>
		</td>
		<td>
			<?php 
$lists = array();
$lists[] = JHTML::_('select.option', 'Leads', 'Leads');
$lists[] = JHTML::_('select.option', 'Contacts', 'Contacts');
$lists[] = JHTML::_('select.option', 'Vendors', 'Vendors');
echo JHTML::_('select.genericlist', $lists, "zoho_list", 'class="inputbox" size="1"', 'value', 'text', $value['zoho_list']);
?>
		</td>
	</tr>
	<tr id="trzohocv">
		<td class="key" >
			<?php 
echo acymailing_tooltip(JText::_('CUSTOM_VIEW_DESC'), JText::_('CUSTOM_VIEW'), '', JText::_('CUSTOM_VIEW'));
?>
		</td>
		<td>
			<input class="inputbox" type="text" name="zoho_cv" size="35" value="<?php 
echo $this->escape($this->config->get('zoho_cv'));
?>
">
		</td>
	</tr>
</table>
</fieldset>

<fieldset class="adminform">
	<legend><?php 
echo JText::_('FIELD');
Пример #16
0
    public function acymailingtagcontent_show()
    {
        $app = JFactory::getApplication();
        $pageInfo = new stdClass();
        $pageInfo->filter = new stdClass();
        $pageInfo->filter->order = new stdClass();
        $pageInfo->limit = new stdClass();
        $pageInfo->elements = new stdClass();
        $my = JFactory::getUser();
        $lang = JFactory::getLanguage();
        $lang->load('com_content', JPATH_SITE);
        $paramBase = ACYMAILING_COMPONENT . '.tagcontent';
        $pageInfo->filter->order->value = $app->getUserStateFromRequest($paramBase . ".filter_order", 'filter_order', 'a.id', 'cmd');
        $pageInfo->filter->order->dir = $app->getUserStateFromRequest($paramBase . ".filter_order_Dir", 'filter_order_Dir', 'desc', 'word');
        if (strtolower($pageInfo->filter->order->dir) !== 'desc') {
            $pageInfo->filter->order->dir = 'asc';
        }
        $pageInfo->search = $app->getUserStateFromRequest($paramBase . ".search", 'search', '', 'string');
        $pageInfo->search = JString::strtolower(trim($pageInfo->search));
        $pageInfo->filter_cat = $app->getUserStateFromRequest($paramBase . ".filter_cat", 'filter_cat', '', 'int');
        $pageInfo->contenttype = $app->getUserStateFromRequest($paramBase . ".contenttype", 'contenttype', $this->params->get('default_type', 'intro'), 'string');
        $pageInfo->author = $app->getUserStateFromRequest($paramBase . ".author", 'author', $this->params->get('default_author', '0'), 'string');
        $pageInfo->titlelink = $app->getUserStateFromRequest($paramBase . ".titlelink", 'titlelink', $this->params->get('default_titlelink', 'link'), 'string');
        $pageInfo->lang = $app->getUserStateFromRequest($paramBase . ".lang", 'lang', '', 'string');
        $pageInfo->pict = $app->getUserStateFromRequest($paramBase . ".pict", 'pict', $this->params->get('default_pict', 1), 'string');
        $pageInfo->pictheight = $app->getUserStateFromRequest($paramBase . ".pictheight", 'pictheight', $this->params->get('maxheight', 150), 'string');
        $pageInfo->pictwidth = $app->getUserStateFromRequest($paramBase . ".pictwidth", 'pictwidth', $this->params->get('maxwidth', 150), 'string');
        $pageInfo->limit->value = $app->getUserStateFromRequest($paramBase . '.list_limit', 'limit', $app->getCfg('list_limit'), 'int');
        $pageInfo->limit->start = $app->getUserStateFromRequest($paramBase . '.limitstart', 'limitstart', 0, 'int');
        $picts = array();
        $picts[] = JHTML::_('select.option', "1", JText::_('JOOMEXT_YES'));
        $pictureHelper = acymailing_get('helper.acypict');
        if ($pictureHelper->available()) {
            $picts[] = JHTML::_('select.option', "resized", JText::_('RESIZED'));
        }
        $picts[] = JHTML::_('select.option', "0", JText::_('JOOMEXT_NO'));
        $contenttype = array();
        $contenttype[] = JHTML::_('select.option', "title", JText::_('TITLE_ONLY'));
        $contenttype[] = JHTML::_('select.option', "intro", JText::_('INTRO_ONLY'));
        $contenttype[] = JHTML::_('select.option', "text", JText::_('FIELD_TEXT'));
        $contenttype[] = JHTML::_('select.option', "full", JText::_('FULL_TEXT'));
        $titlelink = array();
        $titlelink[] = JHTML::_('select.option', "link", JText::_('JOOMEXT_YES'));
        $titlelink[] = JHTML::_('select.option', "0", JText::_('JOOMEXT_NO'));
        $authorname = array();
        $authorname[] = JHTML::_('select.option', "author", JText::_('JOOMEXT_YES'));
        $authorname[] = JHTML::_('select.option', "0", JText::_('JOOMEXT_NO'));
        $searchFields = array('a.id', 'a.title', 'a.alias', 'a.created_by', 'b.name', 'b.username');
        if (!empty($pageInfo->search)) {
            $searchVal = '\'%' . acymailing_getEscaped($pageInfo->search, true) . '%\'';
            $filters[] = implode(" LIKE {$searchVal} OR ", $searchFields) . " LIKE {$searchVal}";
        }
        if (!empty($pageInfo->filter_cat)) {
            $filters[] = "a.catid = " . $pageInfo->filter_cat;
        }
        if ($this->params->get('displayart', 'all') == 'onlypub') {
            $filters[] = "a.state = 1";
        } else {
            $filters[] = "a.state != -2";
        }
        if (!$app->isAdmin()) {
            if (!ACYMAILING_J16) {
                $filters[] = 'a.`access` <= ' . (int) $my->get('aid');
            } else {
                $groups = implode(',', $my->getAuthorisedViewLevels());
                $filters[] = 'a.`access` IN (' . $groups . ')';
            }
        }
        if ($this->params->get('frontendaccess') == 'author' && !$app->isAdmin()) {
            $filters[] = "a.created_by = " . intval($my->id);
        }
        $whereQuery = '';
        if (!empty($filters)) {
            $whereQuery = ' WHERE (' . implode(') AND (', $filters) . ')';
        }
        $query = 'SELECT SQL_CALC_FOUND_ROWS a.*,b.name,b.username,a.created_by FROM ' . acymailing_table('content', false) . ' as a';
        $query .= ' LEFT JOIN `#__users` AS b ON b.id = a.created_by';
        if (!empty($whereQuery)) {
            $query .= $whereQuery;
        }
        if (!empty($pageInfo->filter->order->value)) {
            $query .= ' ORDER BY ' . $pageInfo->filter->order->value . ' ' . $pageInfo->filter->order->dir;
        }
        $this->db->setQuery($query, $pageInfo->limit->start, $pageInfo->limit->value);
        $rows = $this->db->loadObjectList();
        if (!empty($pageInfo->search)) {
            $rows = acymailing_search($pageInfo->search, $rows);
        }
        $this->db->setQuery('SELECT FOUND_ROWS()');
        $pageInfo->elements->total = $this->db->loadResult();
        $pageInfo->elements->page = count($rows);
        if (!ACYMAILING_J16) {
            $query = 'SELECT a.id, a.id as catid, a.title as category, b.title as section, b.id as secid from #__categories as a ';
            $query .= 'INNER JOIN #__sections as b on a.section = b.id ORDER BY b.ordering,a.ordering';
            $this->db->setQuery($query);
            $categories = $this->db->loadObjectList('id');
            $categoriesValues = array();
            $categoriesValues[] = JHTML::_('select.option', '', JText::_('ACY_ALL'));
            $currentSec = '';
            foreach ($categories as $catid => $oneCategorie) {
                if ($currentSec != $oneCategorie->section) {
                    if (!empty($currentSec)) {
                        $this->values[] = JHTML::_('select.option', '</OPTGROUP>');
                    }
                    $categoriesValues[] = JHTML::_('select.option', '<OPTGROUP>', $oneCategorie->section);
                    $currentSec = $oneCategorie->section;
                }
                $categoriesValues[] = JHTML::_('select.option', $catid, $oneCategorie->category);
            }
        } else {
            $query = "SELECT * from #__categories WHERE `extension` = 'com_content' ORDER BY lft ASC";
            $this->db->setQuery($query);
            $categories = $this->db->loadObjectList('id');
            $categoriesValues = array();
            $categoriesValues[] = JHTML::_('select.option', '', JText::_('ACY_ALL'));
            foreach ($categories as $catid => $oneCategorie) {
                $categories[$catid]->title = str_repeat('- - ', $categories[$catid]->level) . $categories[$catid]->title;
                $categoriesValues[] = JHTML::_('select.option', $catid, $categories[$catid]->title);
            }
        }
        jimport('joomla.html.pagination');
        $pagination = new JPagination($pageInfo->elements->total, $pageInfo->limit->start, $pageInfo->limit->value);
        $tabs = acymailing_get('helper.acytabs');
        echo $tabs->startPane('joomlacontent_tab');
        echo $tabs->startPanel(JText::_('JOOMLA_CONTENT'), 'joomlacontent_content');
        ?>
		<script language="javascript" type="text/javascript">
			<!--
			var selectedContents = new Array();
			function applyContent(contentid, rowClass){
				var tmp = selectedContents.indexOf(contentid)
				if(tmp != -1){
					window.document.getElementById('content' + contentid).className = rowClass;
					delete selectedContents[tmp];
				}else{
					window.document.getElementById('content' + contentid).className = 'selectedrow';
					selectedContents.push(contentid);
				}
				updateTag();
			}

			function updateTag(){
				var tag = '';
				var otherinfo = '';
				for(var i = 0; i < document.adminForm.contenttype.length; i++){
					if(document.adminForm.contenttype[i].checked){
						selectedtype = document.adminForm.contenttype[i].value;
						otherinfo += '| type:' + document.adminForm.contenttype[i].value;
					}
				}
				for(var i = 0; i < document.adminForm.titlelink.length; i++){
					if(document.adminForm.titlelink[i].checked && document.adminForm.titlelink[i].value.length > 1){
						otherinfo += '| ' + document.adminForm.titlelink[i].value;
					}
				}
				if(selectedtype != 'title'){
					for(var i = 0; i < document.adminForm.author.length; i++){
						if(document.adminForm.author[i].checked && document.adminForm.author[i].value.length > 1){
							otherinfo += '| ' + document.adminForm.author[i].value;
						}
					}
					for(var i = 0; i < document.adminForm.pict.length; i++){
						if(document.adminForm.pict[i].checked){
							otherinfo += '| pict:' + document.adminForm.pict[i].value;
							if(document.adminForm.pict[i].value == 'resized'){
								document.getElementById('pictsize').style.display = '';
								if(document.adminForm.pictwidth.value) otherinfo += '| maxwidth:' + document.adminForm.pictwidth.value;
								if(document.adminForm.pictheight.value) otherinfo += '| maxheight:' + document.adminForm.pictheight.value;
							}else{
								document.getElementById('pictsize').style.display = 'none';
							}
						}
					}
					document.getElementById('format').style.display = '';
				}else{
					document.getElementById('format').style.display = 'none';
				}

				if(document.adminForm.contentformat && document.adminForm.contentformat.value){
					otherinfo += '| format:' + document.adminForm.contentformat.value;
				}

				if(window.document.getElementById('jflang') && window.document.getElementById('jflang').value != ''){
					otherinfo += '|lang:';
					otherinfo += window.document.getElementById('jflang').value;
				}

				for(var i in selectedContents){
					if(selectedContents[i] && !isNaN(i)){
						tag = tag + '{joomlacontent:' + selectedContents[i] + otherinfo + '}<br />';
					}
				}
				setTag(tag);
			}
			//-->
		</script>
		<div class="onelineblockoptions">
			<table width="100%" class="acymailing_table">
				<tr>
					<td>
						<?php 
        echo JText::_('DISPLAY');
        ?>
					</td>
					<td colspan="2">
						<?php 
        echo JHTML::_('acyselect.radiolist', $contenttype, 'contenttype', 'size="1" onclick="updateTag();"', 'value', 'text', $pageInfo->contenttype);
        ?>
					</td>
					<td>
						<?php 
        $jflanguages = acymailing_get('type.jflanguages');
        $jflanguages->onclick = 'onchange="updateTag();"';
        echo $jflanguages->display('lang', $pageInfo->lang);
        ?>
					</td>
				</tr>
				<tr id="format" class="acyplugformat">
					<td valign="top">
						<?php 
        echo JText::_('FORMAT');
        ?>
					</td>
					<td valign="top">
						<?php 
        echo $this->acypluginsHelper->getFormatOption('tagcontent');
        ?>
					</td>
					<td valign="top"><?php 
        echo JText::_('DISPLAY_PICTURES');
        ?>
</td>
					<td valign="top"><?php 
        echo JHTML::_('acyselect.radiolist', $picts, 'pict', 'size="1" onclick="updateTag();"', 'value', 'text', $pageInfo->pict);
        ?>
						<span id="pictsize" <?php 
        if ($pageInfo->pict != 'resized') {
            echo 'style="display:none;"';
        }
        ?>
><br/><?php 
        echo JText::_('CAPTCHA_WIDTH');
        ?>
							<input name="pictwidth" type="text" onchange="updateTag();" value="<?php 
        echo $pageInfo->pictwidth;
        ?>
" style="width:30px;"/>
							x <?php 
        echo JText::_('CAPTCHA_HEIGHT');
        ?>
							<input name="pictheight" type="text" onchange="updateTag();" value="<?php 
        echo $pageInfo->pictheight;
        ?>
" style="width:30px;"/>
						</span>
					</td>
				</tr>
				<tr>
					<td>
						<?php 
        echo JText::_('CLICKABLE_TITLE');
        ?>
					</td>
					<td>
						<?php 
        echo JHTML::_('acyselect.radiolist', $titlelink, 'titlelink', 'size="1" onclick="updateTag();"', 'value', 'text', $pageInfo->titlelink);
        ?>
					</td>
					<td>
						<?php 
        echo JText::_('AUTHOR_NAME');
        ?>
					</td>
					<td>
						<?php 
        echo JHTML::_('acyselect.radiolist', $authorname, 'author', 'size="1" onclick="updateTag();"', 'value', 'text', (string) $pageInfo->author);
        ?>
					</td>
				</tr>
			</table>
		</div>
		<div class="onelineblockoptions">
			<table>
				<tr>
					<td width="100%">
						<?php 
        acymailing_listingsearch($pageInfo->search);
        ?>
					</td>
					<td nowrap="nowrap">
						<?php 
        echo JHTML::_('select.genericlist', $categoriesValues, 'filter_cat', 'class="inputbox" size="1" onchange="document.adminForm.submit( );"', 'value', 'text', (int) $pageInfo->filter_cat);
        ?>
					</td>
				</tr>
			</table>

			<table class="acymailing_table" cellpadding="1" width="100%">
				<thead>
				<tr>
					<th class="title">
					</th>
					<th class="title">
						<?php 
        echo JHTML::_('grid.sort', JText::_('FIELD_TITLE'), 'a.title', $pageInfo->filter->order->dir, $pageInfo->filter->order->value);
        ?>
					</th>
					<th class="title">
						<?php 
        echo JHTML::_('grid.sort', JText::_('ACY_AUTHOR'), 'b.name', $pageInfo->filter->order->dir, $pageInfo->filter->order->value);
        ?>
					</th>
					<th class="title">
						<?php 
        echo JHTML::_('grid.sort', JText::_(ACYMAILING_J16 ? 'COM_CONTENT_PUBLISHED_DATE' : 'START PUBLISHING'), 'a.publish_up', $pageInfo->filter->order->dir, $pageInfo->filter->order->value);
        ?>
					</th>
					<th class="title">
						<?php 
        echo JHTML::_('grid.sort', JText::_('ACY_CREATED'), 'a.created', $pageInfo->filter->order->dir, $pageInfo->filter->order->value);
        ?>
					</th>
					<th class="title titleid">
						<?php 
        echo JHTML::_('grid.sort', JText::_('ACY_ID'), 'a.id', $pageInfo->filter->order->dir, $pageInfo->filter->order->value);
        ?>
					</th>
				</tr>
				</thead>
				<tfoot>
				<tr>
					<td colspan="6">
						<?php 
        echo $pagination->getListFooter();
        ?>
						<?php 
        echo $pagination->getResultsCounter();
        ?>
					</td>
				</tr>
				</tfoot>
				<tbody>
				<?php 
        $k = 0;
        for ($i = 0, $a = count($rows); $i < $a; $i++) {
            $row =& $rows[$i];
            ?>
					<tr id="content<?php 
            echo $row->id;
            ?>
" class="<?php 
            echo "row{$k}";
            ?>
" onclick="applyContent(<?php 
            echo $row->id . ",'row{$k}'";
            ?>
);" style="cursor:pointer;">
						<td class="acytdcheckbox"></td>
						<td>
							<?php 
            $text = '<b>' . JText::_('JOOMEXT_ALIAS') . ': </b>' . $row->alias;
            echo acymailing_tooltip($text, $row->title, '', $row->title);
            ?>
						</td>
						<td>
							<?php 
            if (!empty($row->name)) {
                $text = '<b>' . JText::_('JOOMEXT_NAME') . ' : </b>' . $row->name;
                $text .= '<br /><b>' . JText::_('ACY_USERNAME') . ' : </b>' . $row->username;
                $text .= '<br /><b>' . JText::_('ACY_ID') . ' : </b>' . $row->created_by;
                echo acymailing_tooltip($text, $row->name, '', $row->name);
            }
            ?>
						</td>
						<td align="center">
							<?php 
            echo JHTML::_('date', strip_tags($row->publish_up), JText::_('DATE_FORMAT_LC4'));
            ?>
						</td>
						<td align="center">
							<?php 
            echo JHTML::_('date', strip_tags($row->created), JText::_('DATE_FORMAT_LC4'));
            ?>
						</td>
						<td align="center">
							<?php 
            echo $row->id;
            ?>
						</td>
					</tr>
					<?php 
            $k = 1 - $k;
        }
        ?>
				</tbody>
			</table>
		</div>
		<input type="hidden" name="boxchecked" value="0"/>
		<input type="hidden" name="filter_order" value="<?php 
        echo $pageInfo->filter->order->value;
        ?>
"/>
		<input type="hidden" name="filter_order_Dir" value="<?php 
        echo $pageInfo->filter->order->dir;
        ?>
"/>
		<?php 
        echo $tabs->endPanel();
        echo $tabs->startPanel(JText::_('TAG_CATEGORIES'), 'joomlacontent_auto');
        $type = JRequest::getString('type');
        ?>
		<script language="javascript" type="text/javascript">
			<!--
			window.onload = function(){
				if(window.document.getElementById('tagsauto')){
					window.document.getElementById('tagsauto').onchange = updateAutoTag;
				}
			}
			var selectedCategories = new Array();
			<?php 
        if (!ACYMAILING_J16) {
            ?>
			function applyAutoContent(secid, catid, rowClass){
				if(selectedCategories[secid] && selectedCategories[secid][catid]){
					window.document.getElementById('content_sec' + secid + '_cat' + catid).className = rowClass;
					delete selectedCategories[secid][catid];
				}else{
					if(!selectedCategories[secid]) selectedCategories[secid] = new Array();
					if(secid == 0){
						for(var isec in selectedCategories){
							for(var icat in selectedCategories[isec]){
								if(selectedCategories[isec][icat] == 'content'){
									window.document.getElementById('content_sec' + isec + '_cat' + icat).className = 'row0';
									delete selectedCategories[isec][icat];
								}
							}
						}
					}else{
						if(selectedCategories[0] && selectedCategories[0][0]){
							window.document.getElementById('content_sec0_cat0').className = 'row0';
							delete selectedCategories[0][0];
						}

						if(catid == 0){
							for(var icat in selectedCategories[secid]){
								if(selectedCategories[secid][icat] == 'content'){
									window.document.getElementById('content_sec' + secid + '_cat' + icat).className = 'row0';
									delete selectedCategories[secid][icat];
								}
							}
						}else{
							if(selectedCategories[secid][0]){
								window.document.getElementById('content_sec' + secid + '_cat0').className = 'row0';
								delete selectedCategories[secid][0];
							}
						}
					}

					window.document.getElementById('content_sec' + secid + '_cat' + catid).className = 'selectedrow';
					selectedCategories[secid][catid] = 'content';
				}

				updateAutoTag();
			}
			<?php 
        } else {
            ?>
			function applyAutoContent(catid, rowClass){
				if(selectedCategories[catid]){
					window.document.getElementById('content_cat' + catid).className = rowClass;
					delete selectedCategories[catid];
				}else{
					window.document.getElementById('content_cat' + catid).className = 'selectedrow';
					selectedCategories[catid] = 'content';
				}

				updateAutoTag();
			}
			<?php 
        }
        ?>

			function updateAutoTag(){
				tag = '{autocontent:';
				<?php 
        if (!ACYMAILING_J16) {
            ?>
				for(var isec in selectedCategories){
					for(var icat in selectedCategories[isec]){
						if(selectedCategories[isec][icat] == 'content'){
							if(icat != 0){
								tag += 'cat' + icat + '-';
							}else{
								tag += 'sec' + isec + '-';
							}
						}
					}
				}
				<?php 
        } else {
            ?>
				for(var icat in selectedCategories){
					if(selectedCategories[icat] == 'content'){
						tag += icat + '-';
					}
				}
				<?php 
        }
        ?>

				if(document.adminForm.min_article && document.adminForm.min_article.value && document.adminForm.min_article.value != 0){
					tag += '| min:' + document.adminForm.min_article.value;
				}
				if(document.adminForm.max_article.value && document.adminForm.max_article.value != 0){
					tag += '| max:' + document.adminForm.max_article.value;
				}
				if(document.adminForm.contentorder.value){
					tag += "| order:" + document.adminForm.contentorder.value + "," + document.adminForm.contentorderdir.value;
				}
				if(document.adminForm.contentfilter && document.adminForm.contentfilter.value){
					tag += document.adminForm.contentfilter.value;
				}
				if(document.adminForm.meta_article && document.adminForm.meta_article.value){
					tag += '| meta:' + document.adminForm.meta_article.value;
				}

				for(var i = 0; i < document.adminForm.contenttypeauto.length; i++){
					if(document.adminForm.contenttypeauto[i].checked){
						selectedtype = document.adminForm.contenttypeauto[i].value;
						tag += '| type:' + document.adminForm.contenttypeauto[i].value;
					}
				}

				for(var i = 0; i < document.adminForm.titlelinkauto.length; i++){
					if(document.adminForm.titlelinkauto[i].checked && document.adminForm.titlelinkauto[i].value.length > 1){
						tag += '|' + document.adminForm.titlelinkauto[i].value;
					}
				}
				if(selectedtype != 'title'){
					for(var i = 0; i < document.adminForm.authorauto.length; i++){
						if(document.adminForm.authorauto[i].checked && document.adminForm.authorauto[i].value.length > 1){
							tag += '|' + document.adminForm.authorauto[i].value;
						}
					}
					for(var i = 0; i < document.adminForm.pictauto.length; i++){
						if(document.adminForm.pictauto[i].checked){
							tag += '| pict:' + document.adminForm.pictauto[i].value;
							if(document.adminForm.pictauto[i].value == 'resized'){
								document.getElementById('pictsizeauto').style.display = '';
								if(document.adminForm.pictwidthauto.value) tag += '| maxwidth:' + document.adminForm.pictwidthauto.value;
								if(document.adminForm.pictheightauto.value) tag += '| maxheight:' + document.adminForm.pictheightauto.value;
							}else{
								document.getElementById('pictsizeauto').style.display = 'none';
							}
						}
					}
					document.getElementById('formatauto').style.display = '';
				}else{
					document.getElementById('formatauto').style.display = 'none';
				}

				if(document.getElementById('contentformatautoinvert').value == 1) tag += '| invert';
				if(document.adminForm.contentformatauto && document.adminForm.contentformatauto.value){
					tag += '| format:' + document.adminForm.contentformatauto.value;
				}

				if(document.adminForm.cols && document.adminForm.cols.value > 1){
					tag += '| cols:' + document.adminForm.cols.value;
				}
				if(window.document.getElementById('jflangauto') && window.document.getElementById('jflangauto').value != ''){
					tag += '| lang:' + window.document.getElementById('jflangauto').value;
				}
				if(window.document.getElementById('jlang') && window.document.getElementById('jlang').value != ''){
					tag += '| language:';
					tag += window.document.getElementById('jlang').value;
				}

				if(window.document.getElementById('tagsauto')){
					var tmp = 0;
					for(var i = 0; i < window.document.getElementById('tagsauto').length; i++){
						if(window.document.getElementById('tagsauto')[i].selected){
							if(tmp == 0){
								tag += '| tags:' + window.document.getElementById('tagsauto')[i].value;
								tmp = 1;
							}else{
								tag += ',' + window.document.getElementById('tagsauto')[i].value;
							}
						}
					}
				}

				tag += '}';

				setTag(tag);
			}
			//-->
		</script>
		<div class="onelineblockoptions">
			<table width="100%" class="acymailing_table">
				<tr>
					<td>
						<?php 
        echo JText::_('DISPLAY');
        ?>
					</td>
					<td colspan="2">
						<?php 
        echo JHTML::_('acyselect.radiolist', $contenttype, 'contenttypeauto', 'size="1" onclick="updateAutoTag();"', 'value', 'text', $this->params->get('default_type', 'intro'));
        ?>
					</td>
					<td id="languagesauto">
						<?php 
        $jflanguages = acymailing_get('type.jflanguages');
        $jflanguages->onclick = 'onchange="updateAutoTag();"';
        $jflanguages->id = 'jflangauto';
        echo $jflanguages->display('langauto');
        if (empty($jflanguages->found)) {
            echo $jflanguages->displayJLanguages('jlangauto');
        }
        ?>
					</td>
				</tr>
				<tr id="formatauto" class="acyplugformat">
					<td valign="top">
						<?php 
        echo JText::_('FORMAT');
        ?>
					</td>
					<td valign="top">
						<?php 
        echo $this->acypluginsHelper->getFormatOption('tagcontent', 'TOP_LEFT', false, 'updateAutoTag');
        ?>
					</td>
					<td valign="top"><?php 
        echo JText::_('DISPLAY_PICTURES');
        ?>
</td>
					<td valign="top"><?php 
        echo JHTML::_('acyselect.radiolist', $picts, 'pictauto', 'size="1" onclick="updateAutoTag();"', 'value', 'text', $this->params->get('default_pict', '1'));
        ?>
						<span id="pictsizeauto" <?php 
        if ($this->params->get('default_pict', '1') != 'resized') {
            echo 'style="display:none;"';
        }
        ?>
 ><br/><?php 
        echo JText::_('CAPTCHA_WIDTH');
        ?>
							<input name="pictwidthauto" type="text" onchange="updateAutoTag();" value="<?php 
        echo $this->params->get('maxwidth', '150');
        ?>
" style="width:30px;"/>
							x <?php 
        echo JText::_('CAPTCHA_HEIGHT');
        ?>
							<input name="pictheightauto" type="text" onchange="updateAutoTag();" value="<?php 
        echo $this->params->get('maxheight', '150');
        ?>
" style="width:30px;"/>
						</span>
					</td>
				</tr>
				<tr>
					<td>
						<?php 
        echo JText::_('CLICKABLE_TITLE');
        ?>
					</td>
					<td>
						<?php 
        echo JHTML::_('acyselect.radiolist', $titlelink, 'titlelinkauto', 'size="1" onclick="updateAutoTag();"', 'value', 'text', $this->params->get('default_titlelink', 'link'));
        ?>
					</td>
					<td>
						<?php 
        echo JText::_('AUTHOR_NAME');
        ?>
					</td>
					<td>
						<?php 
        echo JHTML::_('acyselect.radiolist', $authorname, 'authorauto', 'size="1" onclick="updateAutoTag();"', 'value', 'text', (string) $this->params->get('default_author', '0'));
        ?>
					</td>
				</tr>
				<tr>
					<?php 
        if (version_compare(JVERSION, '3.1.0', '>=')) {
            ?>
						<td valign="top">
							<?php 
            echo JText::_('TAGS');
            ?>
						</td>
						<td>
							<?php 
            $form = JForm::getInstance('acytagcontenttags', JPATH_SITE . DS . 'components' . DS . 'com_acymailing' . DS . 'params' . DS . 'tagcontenttags.xml');
            foreach ($form->getFieldset('tagcontenttagfield') as $field) {
                echo $field->input;
            }
            ?>
						</td>
					<?php 
        } else {
            ?>
						<td colspan="2"></td>
					<?php 
        }
        ?>
					<td valign="top"><?php 
        echo JText::_('FIELD_COLUMNS');
        ?>
</td>
					<td valign="top">
						<select name="cols" style="width:150px" onchange="updateAutoTag();" size="1">
							<?php 
        for ($o = 1; $o < 11; $o++) {
            echo '<option value="' . $o . '">' . $o . '</option>';
        }
        ?>
						</select>
					</td>
				</tr>
				<tr>
					<td>
						<?php 
        echo JText::_('MAX_ARTICLE');
        ?>
					</td>
					<td>
						<input type="text" name="max_article" style="width:50px" value="20" onchange="updateAutoTag();"/>
					</td>
					<td>
						<?php 
        echo JText::_('ACY_ORDER');
        ?>
					</td>
					<td>
						<?php 
        $values = array('id' => 'ACY_ID', 'ordering' => 'ACY_ORDERING', 'created' => 'CREATED_DATE', 'modified' => 'MODIFIED_DATE', 'title' => 'FIELD_TITLE');
        echo $this->acypluginsHelper->getOrderingField($values, 'id', 'DESC', 'updateAutoTag');
        ?>
					</td>
				</tr>
				<?php 
        if ($this->params->get('metaselect')) {
            ?>
					<tr>
						<td>
							<?php 
            echo JText::_('META_KEYWORDS');
            ?>
						</td>
						<td colspan="3">
							<input type="text" name="meta_article" style="width:200px" value="" onchange="updateAutoTag();"/>
						</td>
					</tr>
				<?php 
        }
        ?>
				<?php 
        if ($type == 'autonews') {
            ?>
					<tr>
						<td>
							<?php 
            echo JText::_('MIN_ARTICLE');
            ?>
						</td>
						<td>
							<input type="text" name="min_article" style="width:50px" value="1" onchange="updateAutoTag();"/>
						</td>
						<td>
							<?php 
            echo JText::_('JOOMEXT_FILTER');
            ?>
						</td>
						<td>
							<?php 
            $filter = acymailing_get('type.contentfilter');
            $filter->onclick = "updateAutoTag();";
            echo $filter->display('contentfilter', '|filter:created');
            ?>
						</td>
					</tr>
				<?php 
        }
        ?>
			</table>
		</div>

		<div class="onelineblockoptions">
			<table class="acymailing_table" cellpadding="1" width="100%">
				<thead>
				<tr>
					<th class="title"></th>
					<?php 
        if (!ACYMAILING_J16) {
            ?>
						<th class="title">
							<?php 
            echo JText::_('SECTION');
            ?>
						</th>
					<?php 
        }
        ?>
					<th class="title">
						<?php 
        echo JText::_('TAG_CATEGORIES');
        ?>
					</th>
				</tr>
				</thead>
				<tbody>
				<?php 
        $k = 0;
        if (!ACYMAILING_J16) {
            ?>
					<tr id="content_sec0_cat0" class="<?php 
            echo "row{$k}";
            ?>
" onclick="applyAutoContent(0,0,'<?php 
            echo "row{$k}";
            ?>
');" style="cursor:pointer;">
						<td class="acytdcheckbox"></td>
						<td style="font-weight: bold;">
							<?php 
            echo JText::_('ACY_ALL');
            ?>
						</td>
						<td style="text-align:center;font-weight: bold;">
							<?php 
            echo JText::_('ACY_ALL');
            ?>
						</td>
					</tr>

				<?php 
        }
        $k = 1 - $k;
        $currentSection = '';
        foreach ($categories as $row) {
            if (!ACYMAILING_J16 && $currentSection != $row->section) {
                ?>
						<tr id="content_sec<?php 
                echo $row->secid;
                ?>
_cat0" class="<?php 
                echo "row{$k}";
                ?>
" onclick="applyAutoContent(<?php 
                echo $row->secid;
                ?>
,0,'<?php 
                echo "row{$k}";
                ?>
');" style="cursor:pointer;">
							<td class="acytdcheckbox"></td>
							<td style="font-weight: bold;">
								<?php 
                echo $row->section;
                ?>
							</td>
							<td style="text-align:center;font-weight: bold;">
								<?php 
                echo JText::_('ACY_ALL');
                ?>
							</td>
						</tr>
						<?php 
                $k = 1 - $k;
                $currentSection = $row->section;
            }
            if (!ACYMAILING_J16) {
                ?>
						<tr id="content_sec<?php 
                echo $row->secid;
                ?>
_cat<?php 
                echo $row->catid;
                ?>
" class="<?php 
                echo "row{$k}";
                ?>
" onclick="applyAutoContent(<?php 
                echo $row->secid;
                ?>
,<?php 
                echo $row->catid;
                ?>
,'<?php 
                echo "row{$k}";
                ?>
');" style="cursor:pointer;">
							<td class="acytdcheckbox"></td>
							<td>
							</td>
							<td>
								<?php 
                echo $row->category;
                ?>
							</td>
						</tr>
					<?php 
            } else {
                ?>
						<tr id="content_cat<?php 
                echo $row->id;
                ?>
" class="<?php 
                echo "row{$k}";
                ?>
" onclick="applyAutoContent(<?php 
                echo $row->id;
                ?>
,'<?php 
                echo "row{$k}";
                ?>
');" style="cursor:pointer;">
							<td class="acytdcheckbox"></td>
							<td>
								<?php 
                echo $row->title;
                ?>
							</td>
						</tr>
					<?php 
            }
            $k = 1 - $k;
        }
        ?>
				</tbody>
			</table>
		</div>
		<?php 
        echo $tabs->endPanel();
        echo $tabs->endPane();
    }
Пример #17
0
								<label for="acylist_<?php 
            echo $myListId;
            ?>
">
								<?php 
            $joomItem = $params->get('itemid', 0);
            if (empty($joomItem)) {
                $joomItem = $config->get('itemid', 0);
            }
            $addItem = empty($joomItem) ? '' : '&Itemid=' . $joomItem;
            $archivelink = acymailing_completeLink('archive&listid=' . $allLists[$myListId]->listid . '-' . $allLists[$myListId]->alias . $addItem);
            if ($params->get('overlay', 0)) {
                if (!$params->get('link', 1) or !$allLists[$myListId]->visible) {
                    $archivelink = '';
                }
                echo acymailing_tooltip($allLists[$myListId]->description, $allLists[$myListId]->name, '', $allLists[$myListId]->name, $archivelink);
            } else {
                if ($params->get('link', 1) and $allLists[$myListId]->visible) {
                    echo '<a href="' . $archivelink . '" alt="' . $allLists[$myListId]->alias . '"' . (JRequest::getCmd('tmpl') == 'component' ? 'target="_blank"' : '') . ' >';
                }
                echo $allLists[$myListId]->name;
                if ($params->get('link', 1) and $allLists[$myListId]->visible) {
                    echo '</a>';
                }
            }
            ?>

								</label>
								</td>
							</tr>
						<?php 
Пример #18
0
 static function tooltip($desc, $title = ' ', $image = 'tooltip.png', $name = '', $href = '', $link = 1)
 {
     return acymailing_tooltip($desc, $title, $image, $name, $href, $link);
 }
Пример #19
0
    $text = '<b>' . JText::_('HTML') . ' : </b>' . $row->senthtml;
    $text .= '<br /><b>' . JText::_('JOOMEXT_TEXT') . ' : </b>' . $row->senttext;
    $title = JText::_('ACY_SENT');
    echo acymailing_tooltip($text, $title, '', $row->senthtml + $row->senttext, acymailing_completeLink('stats&task=detaillisting&filter_status=0&filter_mail=' . $row->mailid));
    ?>
					</td>
					<?php 
    if (acymailing_level(3)) {
        ?>
					<td align="center" style="text-align:center" nowrap="nowrap" >
						<?php 
        echo '<a class="modal" href="' . acymailing_completeLink('bounces&task=chart&mailid=' . $row->mailid, true) . '" rel="{handler: \'iframe\', size: {x: 800, y: 590}}"><img src="' . ACYMAILING_IMAGES . 'icons/icon-16-stats.png" /></a> ';
        $text = $row->bounceunique . ' / ' . ($row->senthtml + $row->senttext);
        $title = JText::_('BOUNCES');
        $pourcent = (empty($row->senthtml) and empty($row->senttext)) ? '0%' : substr($row->bounceunique / ($row->senthtml + $row->senttext) * 100, 0, 5) . '%';
        echo acymailing_tooltip($text, $title, '', $pourcent, acymailing_completeLink('stats&task=detaillisting&filter_status=bounce&filter_mail=' . $row->mailid));
        ?>
					</td>
					<?php 
    }
    ?>
					<td align="center" style="text-align:center" >
						<a href="<?php 
    echo acymailing_completeLink('stats&task=detaillisting&filter_status=failed&filter_mail=' . $row->mailid);
    ?>
">
						<?php 
    echo $row->fail;
    ?>
						</a>
					</td>
Пример #20
0
    echo acymailing_completeLink('subscriber&filter_status=0&filter_statuslist=-1&filter_lists=' . $row->listid);
    ?>
">
							<?php 
    echo $row->nbunsub;
    ?>
						</a>
					</td>
					<td align="center" style="text-align:center">
						<?php 
    if (!empty($row->userid)) {
        $text = '<b>' . JText::_('JOOMEXT_NAME') . ' : </b>' . $row->creatorname;
        $text .= '<br /><b>' . JText::_('ACY_USERNAME') . ' : </b>' . $row->username;
        $text .= '<br /><b>' . JText::_('JOOMEXT_EMAIL') . ' : </b>' . $row->email;
        $text .= '<br /><b>' . JText::_('ACY_ID') . ' : </b>' . $row->userid;
        echo acymailing_tooltip($text, $row->creatorname, 'tooltip.png', $row->creatorname, 'index.php?option=com_users&task=edit&eid[]=' . $row->userid);
    }
    ?>
					</td>
					<?php 
    if (!ACYMAILING_J30) {
        ?>
						<td class="order">
							<span><?php 
        echo $this->pagination->orderUpIcon($i, $this->order->reverse xor $row->ordering >= @$this->rows[$i - 1]->ordering, $this->order->orderUp, 'Move Up', $this->order->ordering);
        ?>
</span>
							<span><?php 
        echo $this->pagination->orderDownIcon($i, $a, $this->order->reverse xor $row->ordering <= @$this->rows[$i + 1]->ordering, $this->order->orderDown, 'Move Down', $this->order->ordering);
        ?>
</span>
Пример #21
0
        $text = '<b>' . JText::_('FROM_NAME') . ' : </b>' . $row->fromname;
        $text .= '<br /><b>' . JText::_('FROM_ADDRESS') . ' : </b>' . $row->fromemail;
        $text .= '<br /><br /><b>' . JText::_('REPLYTO_NAME') . ' : </b>' . $row->replyname;
        $text .= '<br /><b>' . JText::_('REPLYTO_ADDRESS') . ' : </b>' . $row->replyemail;
        echo acymailing_tooltip($text, ' ', '', $row->fromname);
    }
    ?>
					</td>
					<td align="center" style="text-align:center">
						<?php 
    if (!empty($row->name)) {
        $text = '<b>' . JText::_('JOOMEXT_NAME') . ' : </b>' . $row->name;
        $text .= '<br /><b>' . JText::_('ACY_USERNAME') . ' : </b>' . $row->username;
        $text .= '<br /><b>' . JText::_('JOOMEXT_EMAIL') . ' : </b>' . $row->email;
        $text .= '<br /><b>' . JText::_('ACY_ID') . ' : </b>' . $row->userid;
        echo acymailing_tooltip($text, $row->name, '', $row->name, 'index.php?option=com_users&task=edit&cid[]=' . $row->userid);
    }
    ?>
					</td>
					<?php 
    if ($this->app->isAdmin()) {
        ?>
						<td align="center" style="text-align:center">
							<span id="<?php 
        echo $visibleid;
        ?>
" class="loading"><?php 
        echo $this->toggleClass->toggle($visibleid, (int) $row->visible, 'mail');
        ?>
</span>
						</td>
Пример #22
0
    }
    if (empty($row->fromemail)) {
        $row->fromemail = $this->config->get('from_email');
    }
    if (empty($row->replyname)) {
        $row->replyname = $this->config->get('reply_name');
    }
    if (empty($row->replyemail)) {
        $row->replyemail = $this->config->get('reply_email');
    }
    if (!empty($row->fromname)) {
        $text = '<b>' . JText::_('FROM_NAME') . ' : </b>' . $row->fromname;
        $text .= '<br /><b>' . JText::_('FROM_ADDRESS') . ' : </b>' . $row->fromemail;
        $text .= '<br /><br /><b>' . JText::_('REPLYTO_NAME') . ' : </b>' . $row->replyname;
        $text .= '<br /><b>' . JText::_('REPLYTO_ADDRESS') . ' : </b>' . $row->replyemail;
        echo acymailing_tooltip($text, ' ', '', $row->fromname);
    }
    ?>
					</td>
					<td align="center" style="text-align:center">
						<span id="<?php 
    echo $publishedid;
    ?>
" class="loading"><?php 
    echo $this->toggleClass->toggle($publishedid, (int) $row->published, 'mail');
    ?>
</span>
					</td>
					<td width="1%" align="center">
						<?php 
    echo $row->mailid;
Пример #23
0
" >
				<td align="center" valign="top">
				<?php 
    echo $i + 1;
    ?>
				</td>
				<td align="center" valign="top">
					<?php 
    echo acymailing_getDate($row->date);
    ?>
				</td>
				<td align="center" style="text-align:center" >
					<?php 
    $text = '<b>' . JText::_('ACY_NAME') . ' : </b>' . $row->name;
    $text .= '<br /><b>' . JText::_('ACY_ID') . ' : </b>' . $row->subid;
    echo acymailing_tooltip($text, $row->email, '', $row->email);
    ?>
				</td>
				<td valign="top">
					<?php 
    $data = explode("\n", $row->data);
    foreach ($data as $value) {
        if (!strpos($value, '::')) {
            echo $value;
            continue;
        }
        list($part1, $part2) = explode("::", $value);
        if (empty($part2)) {
            continue;
        }
        if (preg_match('#^[A-Z_]*$#', $part2)) {
Пример #24
0
$currentValues = JRequest::getVar('importlists');
$listid = JRequest::getInt('listid');
$k = 0;
foreach ($this->lists as $row) {
    ?>
		<tr class="<?php 
    echo "row{$k}";
    ?>
">
			<td>
				<?php 
    echo '<div class="roundsubscrib rounddisp" style="background-color:' . $row->color . '"></div>';
    ?>
				<?php 
    $text = '<b>' . JText::_('ACY_ID') . ' : </b>' . $row->listid . '<br/>' . $row->description;
    echo acymailing_tooltip($text, $row->name, 'tooltip.png', $row->name);
    ?>
			</td>
			<td align="center">
				<?php 
    echo JHTML::_('acyselect.booleanlist', "importlists[" . $row->listid . "]", '', !empty($currentValues[$row->listid]) || $listid == $row->listid, JText::_('JOOMEXT_YES'), JTEXT::_('JOOMEXT_NO'));
    ?>
			</td>
		</tr>
		<?php 
    $k = 1 - $k;
}
?>
	</table>
</fieldset>
	<input type="hidden" name="option" value="<?php 
Пример #25
0
						<td class="key">
							<?php 
echo acymailing_tooltip(JText::_('USERNAME_DESC'), JText::_('ACY_USERNAME'), '', JText::_('ACY_USERNAME'));
?>
						</td>
						<td>
							<input class="inputbox" autocomplete="off" type="text" name="config[smtp_username]" style="width:200px" value="<?php 
echo $this->escape($this->config->get('smtp_username'));
?>
" />
						</td>
					</tr>
					<tr>
						<td class="key">
							<?php 
echo acymailing_tooltip(JText::_('SMTP_PASSWORD_DESC'), JText::_('SMTP_PASSWORD'), '', JText::_('SMTP_PASSWORD'));
?>
						</td>
						<td>
							<input class="inputbox" autocomplete="off" type="text" name="config[smtp_password]" style="width:200px" value="<?php 
echo str_repeat('*', strlen($this->config->get('smtp_password')));
?>
" />
						</td>
					</tr>
				</table>
				<?php 
echo $this->toggleClass->toggleText('guessport', '', 'config', JText::_('ACY_GUESSPORT'));
?>
			</fieldset>
			<fieldset class="adminform" id="elasticemail_config" style="display:none">
Пример #26
0
        $createField->disable = true;
        $createField->text .= ' (' . JText::_('ONLY_FROM_ENTERPRISE') . ')';
    }
    $fieldAssignment[] = $createField;
}
$separator = JHTML::_('select.option', "3", '-------------------------------------');
$separator->disable = true;
$fieldAssignment[] = $separator;
$fields = array_keys(acymailing_getColumns('#__acymailing_subscriber'));
$fields[] = 'listids';
$fields[] = 'listname';
foreach ($fields as $oneField) {
    $fieldAssignment[] = JHTML::_('select.option', $oneField, $oneField);
}
$fields[] = '1';
echo '<tr class="row0"><td align="center" valign="top"><strong>' . acymailing_tooltip(JText::_('ACY_ASSIGN_COLUMNS_DESC'), null, null, JText::_('ACY_ASSIGN_COLUMNS')) . '</strong>' . ($nbColumns > 5 ? '<br/><a style="text-decoration:none;" href="#" onclick="ignoreAllOthers();">' . JText::_('ACY_IGNORE_UNASSIGNED') . '</a>' : '') . '</td>';
$alreadyFound = array();
foreach ($columnNames as $key => &$oneColumn) {
    $oneColumn = strtolower(trim($oneColumn, '\'" '));
    $customValue = '';
    $default = JRequest::getCmd('fieldAssignment' . $key);
    if (empty($default) && $default !== 0) {
        $default = in_array($oneColumn, $fields) ? $oneColumn : '0';
        if (!$default && !empty($firstValueLine)) {
            if (isset($firstValueLine[$key]) && strpos($firstValueLine[$key], '@')) {
                $default = 'email';
            } elseif ($nbColumns == 2) {
                $default = 'name';
            }
        }
        if (in_array($default, $alreadyFound)) {
echo acymailing_tooltip(JText::_('GEOLOCATION_TYPE_DESC'), JText::_('GEOLOCATION_TYPE'), '', JText::_('GEOLOCATION_TYPE'));
?>
				</td>
				<td>
					<?php 
echo $this->elements->geolocation;
?>
				</td>
			</tr>
			<?php 
if ($this->elements->geoloc_api_key) {
    ?>
				<tr>
					<td class="acykey">
						<a href="http://ipinfodb.com/register.php" target="_blank"><?php 
    echo acymailing_tooltip(JText::_('GEOLOCATION_API_KEY_DESC'), 'IPInfoDB API key', '', 'IPInfoDB API key');
    ?>
</a>
					</td>
					<td>
						<?php 
    echo $this->elements->geoloc_api_key;
    ?>
					</td>
				</tr>
				<tr>
					<td colspan="2">

						<span id="testApiKey" class="acymailing_button_grey">
							<i class="acyicon-location"></i>
							<a style="color:#666;text-decoration:none;" href="javascript:void(0);" onclick="testAPI('testApiKey',window.document.getElementById('geoloc_api_key').value)"><?php 
Пример #28
0
						<?php 
    if (!empty($row->opendate)) {
        echo acymailing_getDate($row->opendate);
    }
    ?>
					</td>
					<?php 
    if (acymailing_level(3)) {
        ?>
					<td align="center" style="text-align:center" >
						<?php 
        if ($row->bounce == 0) {
            echo $row->bounce;
        } else {
            $text = empty($row->bouncerule) ? JText::_('NO_RULE_SAVED') : $row->bouncerule;
            echo acymailing_tooltip($text, JText::_('ACY_RULE'), '', $row->bounce);
        }
        ?>
					</td>
					<?php 
    }
    ?>
					<td align="center" style="text-align:center" title="<?php 
    echo JText::_('ACY_SENT') . ': ' . $row->sent . ' - ' . JText::_('FAILED') . ': ' . $row->fail;
    ?>
">
						<?php 
    echo $this->toggleClass->display('visible', empty($row->fail) ? true : false);
    ?>
					</td>
				</tr>
Пример #29
0
        $listContent .= '
					<tr>
						<td>
						<label for="acylist_' . $myListId . '">
						<input type="checkbox" class="acymailing_checkbox" name="subscription[]" id="acylist_' . $myListId . '" ' . $check . ' value="' . $myListId . '"/>';
        $joomItem = $params->get('itemid', 0);
        if (empty($joomItem)) {
            $joomItem = $config->get('itemid', 0);
        }
        $addItem = empty($joomItem) ? '' : '&Itemid=' . $joomItem;
        $archivelink = acymailing_completeLink('archive&listid=' . $allLists[$myListId]->listid . '-' . $allLists[$myListId]->alias . $addItem);
        if ($params->get('overlay', 0)) {
            if (!$params->get('link', 1) or !$allLists[$myListId]->visible) {
                $archivelink = '';
            }
            $listContent .= ' ' . acymailing_tooltip($allLists[$myListId]->description, $allLists[$myListId]->name, '', $allLists[$myListId]->name, $archivelink);
        } else {
            if ($params->get('link', 1) and $allLists[$myListId]->visible) {
                $listContent .= ' <a href="' . $archivelink . '" alt="' . $allLists[$myListId]->alias . '"' . (JRequest::getCmd('tmpl') == 'component' ? 'target="_blank"' : '') . ' >';
            }
            $listContent .= $allLists[$myListId]->name;
            if ($params->get('link', 1) and $allLists[$myListId]->visible) {
                $listContent .= '</a>';
            }
        }
        $listContent .= '</label>
						</td>
					</tr>';
    }
    $listContent .= '</table>';
}
Пример #30
0
					<td>
						<?php 
    echo acymailing_dispSearch($row->name, $this->pageInfo->search);
    ?>
					</td>
					<td>
						<?php 
    echo acymailing_dispSearch($row->email, $this->pageInfo->search);
    ?>
					</td>
					<td align="center" style="text-align:center" >
						<?php 
    if (!empty($row->userid)) {
        $text = JText::_('ACY_USERNAME') . ' : <b>' . acymailing_dispSearch($row->username, $this->pageInfo->search);
        $text .= '</b><br />' . JText::_('USER_ID') . ' : <b>' . acymailing_dispSearch($row->userid, $this->pageInfo->search) . '</b>';
        echo acymailing_tooltip($text, acymailing_dispSearch($row->username, $this->pageInfo->search), '', acymailing_dispSearch($row->userid, $this->pageInfo->search));
    }
    ?>
					</td>
					<td align="center" style="text-align:center" >
						<?php 
    echo acymailing_dispSearch($row->subid, $this->pageInfo->search);
    ?>
					</td>
				</tr>
			<?php 
    $k = 1 - $k;
}
?>
		</tbody>
	</table>