Beispiel #1
0
        $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">
						<?php 
    if (!empty($row->name)) {
        $text = '<b>' . JText::_('NAME', true) . ' : </b>' . $row->name;
        $text .= '<br/><b>' . JText::_('USERNAME', true) . ' : </b>' . $row->username;
        $text .= '<br/><b>' . JText::_('EMAIL', true) . ' : </b>' . $row->email;
        $text .= '<br/><b>' . JText::_('ID', true) . ' : </b>' . $row->userid;
        echo acymailing::tooltip($text, $row->name, '', $row->name, 'index.php?option=com_users&task=edit&cid[]=' . $row->userid);
    }
    ?>

					</td>
					<td align="center">
						<span id="<?php 
    echo $publishedid;
    ?>
" class="spanloading"><?php 
    echo $this->toggleClass->toggle($publishedid, (int) $row->published, 'mail');
    ?>
</span>
					</td>
					<td width="1%" align="center">
						<?php 
Beispiel #2
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 (version_compare(JVERSION, '1.6.0', '<')) {
            $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>
				</tr>
			<?php 
    $k = 1 - $k;
    $i++;
}
?>
		</tbody>
Beispiel #3
0
            echo $myListId;
            ?>
"/>
						<label for="acylist_<?php 
            echo $myListId;
            ?>
">
						<?php 
            $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 . '">';
                }
                echo $allLists[$myListId]->name;
                if ($params->get('link', 1) and $allLists[$myListId]->visible) {
                    echo '</a>';
                }
            }
            ?>
						</label>
					</p>
				<?php 
        }
        ?>
Beispiel #4
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){\r\n\t\t\t\t\twindow.document.getElementById(id).className = 'onload';\r\n\t\t\t\t\ttry{\r\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();\r\n\t\t\t\t\t}catch(err){\r\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();\r\n\t\t\t\t\t}\r\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);" ' . $class . ' onclick="joomTogglePicture(\'' . $id . '\',\'' . $newValue . '\',\'' . $table . '\')" title="' . $desc . '">' . $text . '</a>';
     } elseif ($params->mode == 'class') {
         static $classincluded = false;
         if (!$classincluded) {
             $classincluded = true;
             $js = "function joomToggleClass(id,newvalue,table,extra){\r\n\t\t\t\t\tvar mydiv=\$(id); mydiv.innerHTML = ''; mydiv.className = 'onload';\r\n\t\t\t\t\ttry{\r\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();\r\n\t\t\t\t\t}catch(err){\r\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();\r\n\t\t\t\t\t}\r\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 . '\',\'' . urlencode($extra['color']) . '\');" title="' . $desc . '"><div class="' . $params->class[$value] . '" style="background-color:' . $extra['color'] . '">';
         if (!empty($extra['tooltip'])) {
             $return .= acymailing::tooltip($extra['tooltip'], @$extra['tooltiptitle'], '', '&nbsp;&nbsp;&nbsp;&nbsp;');
         }
         $return .= '</div></a>';
         return $return;
     }
 }
Beispiel #5
0
    ?>

					<td align="center">
						<?php 
    echo acymailing::getDate($row->created);
    ?>

					</td>
					<td align="center">
						<?php 
    if (empty($row->username)) {
        echo $this->joomGroups[(int) $row->gid]->name;
    } else {
        $text = '<b>' . JText::_('USERNAME') . ' : </b>' . $row->username;
        $text .= '<br/><b>' . JText::_('USER_ID') . ' : </b>' . $row->userid;
        echo acymailing::tooltip($text, '', '', $this->joomGroups[(int) $row->gid]->name);
    }
    ?>

					</td>
					<?php 
    if (!empty($this->displayFields['html'])) {
        ?>

					<td align="center">
						<span id="<?php 
        echo $htmlid;
        ?>
" class="loading"><?php 
        echo $this->toggleClass->toggle($htmlid, $row->html, 'subscriber');
        ?>
Beispiel #6
0
				<td class="key" >
					<?php 
echo acymailing::tooltip(JText::_('ALLOWED_FILES_DESC'), JText::_('ALLOWED_FILES'), '', JText::_('ALLOWED_FILES'));
?>
				</td>
				<td>
					<input class="inputbox" type="text" name="config[allowedfiles]" size="60" value="<?php 
echo strtolower(str_replace(' ', '', $this->config->get('allowedfiles')));
?>
" />
				</td>
			</tr>
			<tr>
				<td class="key">
					<?php 
echo acymailing::tooltip(JText::_('UPLOAD_FOLDER_DESC'), JText::_('UPLOAD_FOLDER'), '', JText::_('UPLOAD_FOLDER'));
?>
				</td>
				<td>
					<input class="inputbox" type="text" name="config[uploadfolder]" size="60" value="<?php 
echo $this->config->get('uploadfolder');
?>
" />
				</td>
			</tr>
		</table>
	</fieldset>
<?php 
if (acymailing::level(1)) {
}
?>
Beispiel #7
0
			<table class="adminlist" cellspacing="1" align="center">
				<tbody>
					<?php 
        $k = 0;
        foreach ($this->lists as $row) {
            if ($row->nbsub > 100) {
                $displayWarning = true;
            }
            ?>
					<tr class="<?php 
            echo "row{$k}";
            ?>
">
						<td>
							<?php 
            echo acymailing::tooltip($row->description, $row->name, 'tooltip.png', $row->name);
            echo ' ( ' . $row->nbsub . ' )';
            ?>
						</td>
					</tr>
					<?php 
            $k = 1 - $k;
        }
        ?>
				</tbody>
			</table>
		</fieldset>
		<?php 
        if (!empty($this->values->alreadySent)) {
            acymailing::display(JText::sprintf('ALREADY_SENT', $this->values->alreadySent) . '<br/>' . JText::_('REMOVE_ALREADY_SENT') . '<br/>' . JHTML::_('select.booleanlist', "onlynew", '', 1, JText::_('JOOMEXT_YES'), JText::_('SEND_TO_ALL')), 'warning');
        } elseif ($displayWarning) {
			<tr>
				<td class="key">
				<?php 
echo acymailing::tooltip(JText::_('REDIRECTION_CONFIRM_DESC'), JText::_('REDIRECTION_CONFIRM'), '', JText::_('REDIRECTION_CONFIRM'));
?>

				</td>
				<td>
					<input class="inputbox" type="text" id="confirm_redirect" name="config[confirm_redirect]" size="60" value="<?php 
echo $this->config->get('confirm_redirect');
?>
">
				</td>
			</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]" size="60" value="<?php 
echo $this->config->get('unsub_redirect');
?>
">
				</td>
			</tr>
		</table>
	</fieldset>
</div>
					</td>
					<td align="center">
						<a target="_blank" href="<?php 
    echo strip_tags($row->url);
    ?>
"><?php 
    echo $row->urlname;
    ?>
</a>
					</td>
					<td align="center">
						<?php 
    $text = '<b>' . JText::_('NAME', true) . ' : </b>' . $row->name;
    $text .= '<br/><b>' . JText::_('EMAIL', true) . ' : </b>' . $row->email;
    $text .= '<br/><b>' . JText::_('ID', true) . ' : </b>' . $row->subid;
    echo acymailing::tooltip($text, $row->email, '', $row->email);
    ?>

					</td>
					<td align="center">
						<?php 
    echo $row->click;
    ?>

					</td>
				</tr>
			<?php 
    $k = 1 - $k;
}
?>
Beispiel #10
0
    ?>
					</td>
					<td align="center">
					<?php 
    echo acymailing::getDate($row->senddate);
    ?>
					</td>
					<td align="center">
					<?php 
    $link = ($row->type == 'followup' ? 'followup' : 'newsletter') . '&task=edit&cid[]=' . $row->mailid;
    echo acymailing::tooltip('ID : ' . $row->mailid, $row->subject, 'tooltip.png', $row->subject, acymailing::completeLink($link));
    ?>
					</td>
					<td align="center">
					<?php 
    echo acymailing::tooltip(JText::_('ACY_NAME') . ' : ' . $row->name . '<br/>' . JText::_('ACY_ID') . ' : ' . $row->subid, $row->email, 'tooltip.png', $row->email, acymailing::completeLink('subscriber&task=edit&cid[]=' . $row->subid));
    ?>
					</td>
					<td align="center">
						<?php 
    echo $row->priority;
    ?>
					</td>
					<td align="center">
						<?php 
    echo $row->try;
    ?>
					</td>
					<td align="center">
						<?php 
    echo $this->toggleClass->delete($id, $row->subid . '_' . $row->mailid, 'queue');
Beispiel #11
0
        ?>
">
								<td align="center">
								<?php 
        echo $i + 1;
        ?>
								</td>
								<td align="center">
									<?php 
        echo acymailing::getDate($row->senddate);
        ?>
								</td>
								<td align="center">
									<?php 
        $text = '<b>' . JText::_('ACY_ID') . ' : </b>' . $row->mailid;
        echo acymailing::tooltip($text, $row->subject, '', $row->subject);
        ?>
								</td>
								<td align="center">
									<?php 
        echo $row->priority;
        ?>
								</td>
								<td align="center">
									<?php 
        echo $row->priority;
        ?>
								</td>
								<td align="center">
									<?php 
        echo $this->toggleClass->delete($id, $row->subid . '_' . $row->mailid, 'queue');
Beispiel #12
0
					<td>
						<?php 
    echo $row->name;
    ?>
					</td>
					<td>
						<?php 
    echo $row->email;
    ?>
					</td>
					<td align="center">
						<?php 
    if (!empty($row->userid)) {
        $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);
    }
    ?>
					</td>
					<td align="center">
						<?php 
    echo $row->subid;
    ?>
					</td>
				</tr>
			<?php 
    $k = 1 - $k;
}
?>
		</tbody>
	</table>
Beispiel #13
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">
							<span id="<?php 
        echo $publishedid;
        ?>
" class="loading"><?php 
        echo $this->toggleClass->toggle($publishedid, (int) $row->published, 'filter');
        ?>
</span>
					</td>
					<td align="center">
						<?php 
        echo $this->toggleClass->delete($id, $row->filid . '_' . $row->filid, 'filter', true);
        ?>
Beispiel #14
0
    $i = 0;
    $selectedLists = explode(',', JRequest::getString('listids'));
    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;
        $text .= '<br/>' . $row->description;
        echo acymailing::tooltip($text, $row->name, 'tooltip.png', $row->name);
        ?>
					</td>
					<td align="center" nowrap="nowrap">
						<?php 
        echo JHTML::_('select.booleanlist', "data[listmail][" . $row->listid . "]", '', (bool) ($row->mailid or empty($row->mailid) and empty($this->mail->mailid) and $filter_list == $row->listid or empty($this->mail->mailid) and count($this->lists) == 1 or in_array($row->listid, $selectedLists)), JText::_('JOOMEXT_YES'), JText::_('JOOMEXT_NO'));
        ?>
					</td>
				</tr>
		<?php 
        $k = 1 - $k;
        $i++;
    }
    if (count($this->lists) > 3) {
        ?>
			<tr><td></td><td align="center" nowrap="nowrap">
		</tr>
		<tr>
			<td class="key" >
			<?php 
echo acymailing::tooltip(JText::_('FE_MODIFICATION_DESC'), JText::_('FE_MODIFICATION'), '', JText::_('FE_MODIFICATION'));
?>

			</td>
			<td>
				<?php 
echo JHTML::_('select.booleanlist', "config[frontend_modif]", '', $this->config->get('frontend_modif', 1));
?>

			</td>
		</tr>
		<tr>
			<td class="key" >
			<?php 
echo acymailing::tooltip(JText::_('FE_MODIFICATION_SENT_DESC'), JText::_('FE_MODIFICATION_SENT'), '', JText::_('FE_MODIFICATION_SENT'));
?>

			</td>
			<td>
				<?php 
echo JHTML::_('select.booleanlist', "config[frontend_modif_sent]", '', $this->config->get('frontend_modif_sent', 1));
?>

			</td>
		</tr>
	</table>
</fieldset>
Beispiel #16
0
    function acymailingtagcontent_show()
    {
        $app =& JFactory::getApplication();
        $pageInfo = null;
        $my = JFactory::getUser();
        $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');
        $pageInfo->search = $app->getUserStateFromRequest($paramBase . ".search", 'search', '', 'string');
        $pageInfo->search = JString::strtolower($pageInfo->search);
        $pageInfo->filter_cat = $app->getUserStateFromRequest($paramBase . ".filter_cat", 'filter_cat', '', 'int');
        $pageInfo->contenttype = $app->getUserStateFromRequest($paramBase . ".contenttype", 'contenttype', '|type:intro', 'string');
        $pageInfo->author = $app->getUserStateFromRequest($paramBase . ".author", 'author', '', 'string');
        $pageInfo->titlelink = $app->getUserStateFromRequest($paramBase . ".titlelink", 'titlelink', '|link', 'string');
        $pageInfo->lang = $app->getUserStateFromRequest($paramBase . ".lang", 'lang', '', 'string');
        $pageInfo->pict = $app->getUserStateFromRequest($paramBase . ".pict", 'pict', '1', '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'));
        $db =& JFactory::getDBO();
        $searchFields = array('a.id', 'a.title', 'a.alias', 'a.created_by', 'b.name', 'b.username');
        if (!empty($pageInfo->search)) {
            $searchVal = '\'%' . $db->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 (version_compare(JVERSION, '1.6.0', '<')) {
            $filters[] = 'a.`access` <= ' . (int) $my->get('aid');
        } else {
            $groups = implode(',', $my->authorisedLevels());
            $filters[] = 'a.`access` IN (' . $groups . ')';
        }
        if ($this->params->get('frontendaccess') == 'author' and !$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.id,a.created,a.title,a.alias,a.catid,a.sectionid,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;
        }
        $db->setQuery($query, $pageInfo->limit->start, $pageInfo->limit->value);
        $rows = $db->loadObjectList();
        if (!empty($pageInfo->search)) {
            $rows = acymailing::search($pageInfo->search, $rows);
        }
        $db->setQuery('SELECT FOUND_ROWS()');
        $pageInfo->elements->total = $db->loadResult();
        $pageInfo->elements->page = count($rows);
        if (version_compare(JVERSION, '1.6.0', '<')) {
            $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';
            $db->setQuery($query);
            $categories = $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";
            $db->setQuery($query);
            $categories = $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);
        jimport('joomla.html.pane');
        $tabs =& JPane::getInstance('tabs');
        echo $tabs->startPane('joomlacontent_tab');
        echo $tabs->startPanel(JText::_('JOOMLA_CONTENT'), 'joomlacontent_content');
        ?>
		<br style="font-size:1px"/>
		<script language="javascript" type="text/javascript">
		<!--
			var selectedContents = new Array();
			function applyContent(contentid,rowClass){
				if(selectedContents[contentid]){
					window.document.getElementById('content'+contentid).className = rowClass;
					delete selectedContents[contentid];
				}else{
					window.document.getElementById('content'+contentid).className = 'selectedrow';
					selectedContents[contentid] = 'content';
				}
				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 += document.adminForm.contenttype[i].value; }
				}
				for(var i=0; i < document.adminForm.titlelink.length; i++){
				   if (document.adminForm.titlelink[i].checked){ otherinfo += document.adminForm.titlelink[i].value; }
				}
				if(selectedtype != '|type:title'){
					for(var i=0; i < document.adminForm.author.length; i++){
					   if (document.adminForm.author[i].checked){ 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(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] == 'content'){
						tag = tag + '{joomlacontent:'+i+otherinfo+'}<br/>';
					}
				}
				setTag(tag);
			}
		//-->
		</script>
		<table width="100%" class="adminform">
			<tr>
				<td>
					<?php 
        echo JText::_('DISPLAY');
        ?>
				</td>
				<td colspan="2">
				<?php 
        $contentType = acymailing::get('type.content');
        echo $contentType->display('contenttype', $pageInfo->contenttype);
        ?>
				</td>
				<td>
				<?php 
        $jflanguages = acymailing::get('type.jflanguages');
        $jflanguages->onclick = 'onchange="updateTag();"';
        echo $jflanguages->display('lang', $pageInfo->lang);
        ?>
				</td>
			</tr>
			<tr>
				<td>
				<?php 
        echo JText::_('CLICKABLE_TITLE');
        ?>
				 </td>
				 <td>
				 	<?php 
        $titlelinkType = acymailing::get('type.titlelink');
        echo $titlelinkType->display('titlelink', $pageInfo->titlelink);
        ?>
				</td>
				<td>
				<?php 
        echo JText::_('AUTHOR_NAME');
        ?>
				 </td>
				 <td>
				 	<?php 
        $authorname = acymailing::get('type.authorname');
        echo $authorname->display('author', $pageInfo->author);
        ?>
				</td>
			</tr>
			<tr>
				<td><?php 
        echo JText::_('DISPLAY_PICTURES');
        ?>
</td>
				<td><?php 
        echo JHTML::_('select.radiolist', $picts, 'pict', 'size="1" onclick="updateTag();"', 'value', 'text', $pageInfo->pict);
        ?>
</td>
				<td></td>
				<td></td>
			</tr>
		</table>
		<table>
			<tr>
				<td width="100%">
					<?php 
        echo JText::_('JOOMEXT_FILTER');
        ?>
:
					<input type="text" name="search" id="acymailingsearch" value="<?php 
        echo $pageInfo->search;
        ?>
" class="text_area" onchange="document.adminForm.submit();" />
					<button onclick="this.form.submit();"><?php 
        echo JText::_('JOOMEXT_GO');
        ?>
</button>
					<button onclick="document.getElementById('acymailingsearch').value='';this.form.submit();"><?php 
        echo JText::_('JOOMEXT_RESET');
        ?>
</button>
				</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="adminlist" cellpadding="1" width="100%">
			<thead>
				<tr>
					<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::_('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="4">
						<?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>
						<?php 
            $text = '<b>' . JText::_('ALIAS', true) . ': </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', $row->created, JText::_('DATE_FORMAT_LC4'));
            ?>
						</td>
						<td align="center">
							<?php 
            echo $row->id;
            ?>
						</td>
					</tr>
				<?php 
            $k = 1 - $k;
        }
        ?>
			</tbody>
		</table>
		<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');
        ?>
		<br style="font-size:1px"/>
		<script language="javascript" type="text/javascript">
		<!--
			var selectedCategories = new Array();
		<?php 
        if (version_compare(JVERSION, '1.6.0', '<')) {
            ?>
			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 (version_compare(JVERSION, '1.6.0', '<')) {
            ?>
				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 += document.adminForm.contentorder.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 += document.adminForm.contenttypeauto[i].value; }
				}
				for(var i=0; i < document.adminForm.titlelinkauto.length; i++){
				   if (document.adminForm.titlelinkauto[i].checked){ tag += document.adminForm.titlelinkauto[i].value; }
				}
				if(selectedtype != '|type:title'){
					for(var i=0; i < document.adminForm.authorauto.length; i++){
					   if (document.adminForm.authorauto[i].checked){ 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(window.document.getElementById('jflangauto')  && window.document.getElementById('jflangauto').value != ''){
					tag += '|lang:';
					tag += window.document.getElementById('jflangauto').value;
				}
				tag += '}';
				setTag(tag);
			}
		//-->
		</script>
		<table width="100%" class="adminform">
			<tr>
				<td>
					<?php 
        echo JText::_('DISPLAY');
        ?>
				</td>
				<td colspan="2">
				<?php 
        $contentType = acymailing::get('type.content');
        $contentType->onclick = "updateAutoTag();";
        echo $contentType->display('contenttypeauto', '|type:intro');
        ?>
				</td>
				<td>
					<?php 
        $jflanguages = acymailing::get('type.jflanguages');
        $jflanguages->onclick = 'onchange="updateAutoTag();"';
        $jflanguages->id = 'jflangauto';
        echo $jflanguages->display('langauto');
        ?>
				</td>
			</tr>
			<tr>
				<td>
				<?php 
        echo JText::_('CLICKABLE_TITLE');
        ?>
				 </td>
				 <td>
				 	<?php 
        $titlelinkType = acymailing::get('type.titlelink');
        $titlelinkType->onclick = "updateAutoTag();";
        echo $titlelinkType->display('titlelinkauto', '|link');
        ?>
				</td>
				<td>
				<?php 
        echo JText::_('AUTHOR_NAME');
        ?>
				 </td>
				 <td>
				 	<?php 
        $authorname = acymailing::get('type.authorname');
        $authorname->onclick = "updateAutoTag();";
        echo $authorname->display('authorauto', '');
        ?>
				</td>
			</tr>
			<tr>
				<td><?php 
        echo JText::_('DISPLAY_PICTURES');
        ?>
</td>
				<td><?php 
        echo JHTML::_('select.radiolist', $picts, 'pictauto', 'size="1" onclick="updateAutoTag();"', 'value', 'text', "1");
        ?>
</td>
				<td></td>
				<td></td>
			</tr>
			<tr>
				<td>
				<?php 
        echo JText::_('MAX_ARTICLE');
        ?>
				 </td>
				 <td>
				 	<input name="max_article" size="10" value="20" onchange="updateAutoTag();"/>
				</td>
				<td>
				<?php 
        echo JText::_('ACY_ORDER');
        ?>
				 </td>
				 <td>
				 	<?php 
        $ordertype = acymailing::get('type.contentorder');
        $ordertype->onclick = "updateAutoTag();";
        echo $ordertype->display('contentorder', '|order:id');
        ?>
				</td>
			</tr>
			<?php 
        if ($this->params->get('metaselect')) {
            ?>
				<tr>
					<td>
					<?php 
            echo JText::_('META_KEYWORDS');
            ?>
					 </td>
					 <td colspan="3">
					 	<input name="meta_article" size="50" value="" onchange="updateAutoTag();"/>
					</td>
				</tr>
			<?php 
        }
        ?>
			<?php 
        if ($type == 'autonews') {
            ?>
			<tr>
				<td>
				<?php 
            echo JText::_('MIN_ARTICLE');
            ?>
				 </td>
				 <td>
				 <input name="min_article" size="10" 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>
		<table class="adminlist" cellpadding="1" width="100%">
			<thead>
				<tr>
				<?php 
        if (version_compare(JVERSION, '1.6.0', '<')) {
            ?>
					<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 (version_compare(JVERSION, '1.6.0', '<')) {
            ?>
					<tr id="content_sec0_cat0" class="<?php 
            echo "row{$k}";
            ?>
" onclick="applyAutoContent(0,0,'<?php 
            echo "row{$k}";
            ?>
');" style="cursor:pointer;">
						<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 (version_compare(JVERSION, '1.6.0', '<') and $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 style="font-weight: bold;">
							<?php 
                echo $row->section;
                ?>
							</td>
							<td style="text-align:center;font-weight: bold;">
							<?php 
                echo JText::_('ALL');
                ?>
							</td>
						</tr>
						<?php 
                $k = 1 - $k;
                $currentSection = $row->section;
            }
            if (version_compare(JVERSION, '1.6.0', '<')) {
                ?>
					<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>
						</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>
						<?php 
                echo $row->title;
                ?>
						</td>
					</tr>
					<?php 
            }
            $k = 1 - $k;
        }
        ?>
			</tbody>
		</table>
	<?php 
        echo $tabs->endPanel();
        echo $tabs->endPane();
    }
Beispiel #17
0
				<?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]" size="10" value="<?php 
    echo $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]" size="10" value="<?php 
    echo $this->config->get('priority_followup', 2);
    ?>
">
				</td>
			</tr>
		</table>
	</fieldset>
	<?php 
}
?>
    function acymailingtagvmproduct_show()
    {
        $app =& JFactory::getApplication();
        $contentType = array();
        $contentType[] = JHTML::_('select.option', "|type:title", JText::_('TITLE_ONLY'));
        $contentType[] = JHTML::_('select.option', "|type:intro", JText::_('INTRO_ONLY'));
        $contentType[] = JHTML::_('select.option', "|type:full", JText::_('FULL_TEXT'));
        $pageInfo = null;
        $paramBase = ACYMAILING_COMPONENT . '.tagvmproduct';
        $pageInfo->filter->order->value = $app->getUserStateFromRequest($paramBase . ".filter_order", 'filter_order', 'a.product_id', 'cmd');
        $pageInfo->filter->order->dir = $app->getUserStateFromRequest($paramBase . ".filter_order_Dir", 'filter_order_Dir', 'desc', 'word');
        $pageInfo->search = $app->getUserStateFromRequest($paramBase . ".search", 'search', '', 'string');
        $pageInfo->search = JString::strtolower($pageInfo->search);
        $pageInfo->lang = $app->getUserStateFromRequest($paramBase . ".lang", 'lang', '', 'string');
        $pageInfo->contenttype = $app->getUserStateFromRequest($paramBase . ".contenttype", 'contenttype', '|type:full', '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');
        $db =& JFactory::getDBO();
        if (!empty($pageInfo->search)) {
            $searchVal = '\'%' . $db->getEscaped($pageInfo->search) . '%\'';
            $filters[] = "a.product_id LIKE {$searchVal} OR a.product_s_desc LIKE {$searchVal} OR a.product_name LIKE {$searchVal} OR a.product_sku LIKE {$searchVal}";
        }
        $whereQuery = '';
        if (!empty($filters)) {
            $whereQuery = ' WHERE (' . implode(') AND (', $filters) . ')';
        }
        $query = 'SELECT SQL_CALC_FOUND_ROWS a.product_id,a.product_s_desc,a.product_sku,a.product_name FROM ' . acymailing::table('vm_product', false) . ' as a';
        if (!empty($whereQuery)) {
            $query .= $whereQuery;
        }
        if (!empty($pageInfo->filter->order->value)) {
            $query .= ' ORDER BY ' . $pageInfo->filter->order->value . ' ' . $pageInfo->filter->order->dir;
        }
        $db->setQuery($query, $pageInfo->limit->start, $pageInfo->limit->value);
        $rows = $db->loadObjectList();
        if (!empty($pageInfo->search)) {
            $rows = acymailing::search($pageInfo->search, $rows);
        }
        $db->setQuery('SELECT FOUND_ROWS()');
        $pageInfo->elements->total = $db->loadResult();
        $pageInfo->elements->page = count($rows);
        jimport('joomla.html.pagination');
        $pagination = new JPagination($pageInfo->elements->total, $pageInfo->limit->start, $pageInfo->limit->value);
        jimport('joomla.html.pane');
        $tabs =& JPane::getInstance('tabs');
        echo $tabs->startPane('vmproduct_tab');
        echo $tabs->startPanel(JText::_('VM_PRODUCT'), 'vm_product');
        ?>

			<script language="javascript" type="text/javascript">
		<!--
			function updateTag(productid){
				tag = '{vmproduct:'+productid;
				for(var i=0; i < document.adminForm.contenttype.length; i++){
				   if (document.adminForm.contenttype[i].checked){ tag += document.adminForm.contenttype[i].value; }
				}
				if(window.document.getElementById('jflang')  && window.document.getElementById('jflang').value != ''){
					tag += '|lang:';
					tag += window.document.getElementById('jflang').value;
				}
				tag += '}';
				setTag(tag);
				insertTag();
			}
		//-->
		</script>
		<table>
			<tr>
				<td width="100%">
					<?php 
        echo JText::_('JOOMEXT_FILTER');
        ?>
:
					<input type="text" name="search" id="acymailingsearch" value="<?php 
        echo $pageInfo->search;
        ?>
" class="text_area" onchange="document.adminForm.submit();" />
					<button onclick="this.form.submit();"><?php 
        echo JText::_('JOOMEXT_GO');
        ?>
</button>
					<button onclick="document.getElementById('acymailingsearch').value='';this.form.submit();"><?php 
        echo JText::_('JOOMEXT_RESET');
        ?>
</button>
				</td>
			</tr>
		</table>
		<table width="100%" class="adminform">
			<tr>
				<td>
					<?php 
        echo JText::_('DISPLAY');
        ?>

				</td>
				<td colspan="2">
				<?php 
        echo JHTML::_('select.radiolist', $contentType, 'contenttype', 'size="1"', 'value', 'text', $pageInfo->contenttype);
        ?>

				</td>
				<td>
					<?php 
        $jflanguages = acymailing::get('type.jflanguages');
        echo $jflanguages->display('lang', $pageInfo->lang);
        ?>

				</td>
			</tr>
		</table>
		<table class="adminlist" cellpadding="1" width="100%">
			<thead>
				<tr>
					<th class="title">
						<?php 
        echo JHTML::_('grid.sort', JText::_('NAME'), 'a.product_name', $pageInfo->filter->order->dir, $pageInfo->filter->order->value);
        ?>

					</th>
					<th class="title">
						<?php 
        echo JHTML::_('grid.sort', JText::_('DESCRIPTION'), 'a.product_s_desc', $pageInfo->filter->order->dir, $pageInfo->filter->order->value);
        ?>

					</th>
					<th class="title titleid">
						<?php 
        echo JHTML::_('grid.sort', JText::_('ID'), 'a.product_id', $pageInfo->filter->order->dir, $pageInfo->filter->order->value);
        ?>

					</th>
				</tr>
			</thead>
			<tfoot>
				<tr>
					<td colspan="3">
						<?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->product_id;
            ?>
" class="<?php 
            echo "row{$k}";
            ?>
" onclick="updateTag(<?php 
            echo $row->product_id;
            ?>
);" style="cursor:pointer;">
						<td>
						<?php 
            echo acymailing::tooltip('SKU : ' . $row->product_sku, $row->product_name, '', $row->product_name);
            ?>

						</td>
						<td>
						<?php 
            echo $row->product_s_desc;
            ?>

						</td>
						<td align="center">
							<?php 
            echo $row->product_id;
            ?>

						</td>
					</tr>
				<?php 
            $k = 1 - $k;
        }
        ?>

			</tbody>
		</table>
		<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'), 'vm_auto');
        $type = JRequest::getString('type');
        $db->setQuery('SELECT a.*,b.* FROM `#__vm_category` as a LEFT JOIN `#__vm_category_xref` as b ON a.category_id = b.category_child_id ORDER BY `list_order`');
        $categories = $db->loadObjectList('category_id');
        $this->cats = array();
        foreach ($categories as $oneCat) {
            $this->cats[$oneCat->category_parent_id][] = $oneCat;
        }
        $ordering = array();
        $ordering[] = JHTML::_('select.option', "|order:product_id,DESC", JText::_('ID'));
        $ordering[] = JHTML::_('select.option', "|order:cdate,DESC", JText::_('CREATED_DATE'));
        $ordering[] = JHTML::_('select.option', "|order:mdate,DESC", JText::_('MODIFIED_DATE'));
        $ordering[] = JHTML::_('select.option', "|order:product_name,ASC", JText::_('TITLE'));
        ?>

	<script language="javascript" type="text/javascript">
		<!--
			var selectedCat = new Array();
			function applyAutoProduct(catid,rowClass){
				if(selectedCat[catid]){
					window.document.getElementById('product_cat'+catid).className = rowClass;
					delete selectedCat[catid];
				}else{
					window.document.getElementById('product_cat'+catid).className = 'selectedrow';
					selectedCat[catid] = 'product';
				}
				updateTagAuto();
			}
			function updateTagAuto(){
				tag = '{autovmproduct:';
				for(var icat in selectedCat){
					if(selectedCat[icat] == 'product'){
						tag += icat+'-';
					}
				}
				for(var i=0; i < document.adminForm.contenttypeauto.length; i++){
				   if (document.adminForm.contenttypeauto[i].checked){ tag += document.adminForm.contenttypeauto[i].value; }
				}
				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 += document.adminForm.contentorder.value; }
				if(document.adminForm.contentfilter && document.adminForm.contentfilter.value){ tag += document.adminForm.contentfilter.value; }
				if(window.document.getElementById('jflangvm')  && window.document.getElementById('jflangvm').value != ''){
					tag += '|lang:';
					tag += window.document.getElementById('jflangvm').value;
				}
				tag += '}';
				setTag(tag);
			}
		//-->
	</script>
	<table width="100%" class="adminform">
		<tr>
			<td>
				<?php 
        echo JText::_('DISPLAY');
        ?>

			</td>
			<td colspan="2">
			<?php 
        echo JHTML::_('select.radiolist', $contentType, 'contenttypeauto', 'size="1" onclick="updateTagAuto();"', 'value', 'text', '|type:full');
        ?>

			</td>
			<td>
				<?php 
        $jflanguages = acymailing::get('type.jflanguages');
        if (!empty($jflanguages->values)) {
            $jflanguages->id = 'jflangvm';
            $jflanguages->onclick = 'onchange="updateTagAuto();"';
            echo $jflanguages->display('language');
        }
        ?>

			</td>
		</tr>
		<tr>
			<td>
			<?php 
        echo JText::_('MAX_ARTICLE');
        ?>

			 </td>
			 <td>
			 	<input name="max_article" size="10" value="" onchange="updateTagAuto();"/>
			</td>
			<td>
				<?php 
        echo JText::_('ORDER BY');
        ?>

			 </td>
			 <td>
			 	<?php 
        echo JHTML::_('select.genericlist', $ordering, 'contentorder', 'size="1" onchange="updateTagAuto();"');
        ?>

			</td>
		</tr>
		<?php 
        if ($type == 'autonews') {
            ?>

		<tr>
			<td>
			<?php 
            echo JText::_('MIN_ARTICLE');
            ?>

			 </td>
			 <td>
			 <input name="min_article" size="10" value="1" onchange="updateTagAuto();"/>
			 </td>
			<td>
			<?php 
            echo JText::_('FILTER');
            ?>

			 </td>
			 <td>
			 	<?php 
            $filter = acymailing::get('type.contentfilter');
            $filter->onclick = 'updateTagAuto();';
            echo $filter->display('contentfilter', '|filter:created');
            ?>

			</td>
		</tr>
		<?php 
        }
        ?>

	</table>
	<table class="adminlist" cellpadding="1" width="100%">
	<?php 
        $k = 0;
        echo $this->displayChildren(0, $k);
        ?>

	</table>
	<?php 
        echo $tabs->endPanel();
        echo $tabs->endPane();
    }
Beispiel #19
0
        $title = JText::sprintf('PERCENT_OPEN', $pourcent);
        echo acymailing::tooltip($text, $title, '', $row->openunique . ' (' . $pourcent . ')', acymailing::completeLink('stats&task=detaillisting&filter_status=open&filter_mail=' . $row->mailid));
    }
    ?>
					</td>
					<?php 
    if (acymailing::level(1)) {
        ?>
					<td align="center">
						<?php 
        if (!empty($row->senthtml)) {
            $text = '<b>' . JText::_('UNIQUE_HITS') . ' : </b>' . $row->clickunique;
            $text .= '<br/><b>' . JText::_('TOTAL_HITS') . ' : </b>' . $row->clicktotal;
            $pourcent = substr($row->clickunique / $row->senthtml * 100, 0, 5) . '%';
            $title = JText::sprintf('PERCENT_CLICK', $pourcent);
            echo acymailing::tooltip($text, $title, '', $row->clickunique . ' (' . $pourcent . ')', acymailing::completeLink('statsurl&filter_mail=' . $row->mailid));
        }
        ?>
					</td>
					<?php 
    }
    if (acymailing::level(2)) {
        ?>
						<td align="center">
							<?php 
        $pourcent = (empty($row->senthtml) and empty($row->senttext)) ? '0%' : substr($row->unsub / ($row->senthtml + $row->senttext) * 100, 0, 5) . '%';
        echo $row->unsub . ' (' . $pourcent . ')';
        ?>
						</td>
						<td align="center">
							<?php 
Beispiel #20
0
		</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>
Beispiel #21
0
			<tr>
				<td class="key" >
					<?php 
echo acymailing::tooltip(JText::_('CRON_TRIGGERED_IP_DESC'), JText::_('CRON_TRIGGERED_IP'), '', JText::_('CRON_TRIGGERED_IP'));
?>

				</td>
				<td>
					<?php 
echo $this->config->get('cron_fromip');
?>

				</td>
			</tr>
			<tr>
				<td class="key" >
				<?php 
echo acymailing::tooltip(JText::_('REPORT_DESC'), JText::_('REPORT'), '', JText::_('REPORT'));
?>

				</td>
				<td>
					<?php 
echo $this->config->get('cron_report');
?>

				</td>
			</tr>
		</table>
	</fieldset>
</div>
Beispiel #22
0
							<?php 
echo acymailing::tooltip(JText::_('USERNAME_DESC'), JText::_('USERNAME'), '', JText::_('USERNAME'));
?>

						</td>
						<td>
							<input class="inputbox" type="text" name="config[smtp_username]" size="40" 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" type="password" name="config[smtp_password]" size="40" value="<?php 
echo $this->escape($this->config->get('smtp_password'));
?>
">
						</td>
					</tr>
				</table>
			</fieldset>
		</td>
		</tr>
		</table>
Beispiel #23
0
					<td align="center">
					<?php 
    $text = '<b>' . JText::_('ACY_ID') . ' : </b>' . $row->mailid;
    if ($row->type == 'followup') {
        $ctrl = 'followup';
    } else {
        $ctrl = 'newsletter';
    }
    echo acymailing::tooltip($text, $row->subject, '', $row->subject, acymailing::completeLink($ctrl . '&task=preview&mailid=' . $row->mailid));
    ?>
					</td>
					<td 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, acymailing::completeLink('subscriber&task=edit&subid=' . $row->subid));
    ?>
					</td>
					<td align="center">
						<?php 
    echo $row->html ? JText::_('HTML') : JText::_('JOOMEXT_TEXT');
    ?>
					</td>
					<td align="center">
						<?php 
    echo $row->open;
    ?>
					</td>
					<td align="center">
						<?php 
    if (!empty($row->opendate)) {
Beispiel #24
0
    echo acymailing::completeLink('subscriber&filter_status=-1&filter_lists=' . $row->listid);
    ?>
">
						<?php 
    echo $row->nbunsub;
    ?>
						</a>
					</td>
					<td 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>
					<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>
						<input type="text" name="order[]" size="5" <?php 
    if (!$this->order->ordering) {
        echo 'disabled="disabled"';
Beispiel #25
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="spanloading"><?php 
    echo $this->toggleClass->toggle($publishedid, (int) $row->published, 'mail');
    ?>
</span>
					</td>
					<td  align="center" style="text-align:center">
						<?php