static function listMessagesTitle($newsletter, $messages, $linkable) { $base_jinc = JURI::base() . 'components/com_jinc/assets/images/icons/'; $options = array('height' => 16, 'width' => 16, 'title' => JText::_('COM_JINC_ATTACHMENT')); $attach_img = JHTML::image($base_jinc . 'attachment.png', JText::_('COM_JINC_ATTACHMENT'), $options); echo '<table class="tbl_oldmsg" align="center" width="95%">'; echo '<thead><tr>'; echo '<th width="65%" align="left">' . JText::_('COM_JINC_SUBJECT') . '</th>'; echo '<th width="25%" align="center">' . JText::_('COM_JINC_MSGSENT') . '</th>'; echo '<th width="10%" align="center">' . $attach_img . '</th>'; echo '</tr></thead>'; $i = 0; foreach ($messages as $message) { $subject = $message->subject; $body = $message->body . $newsletter->get('disclaimer'); $body = preg_replace('/\\[SENDER\\]/s', $newsletter->get('sendername'), $body); $body = preg_replace('/\\[SENDERMAIL\\]/s', $newsletter->get('senderaddr'), $body); $body = preg_replace('/\\[NEWSLETTER\\]/s', $newsletter->get('name'), $body); $news_id = $newsletter->get('id'); $unsub_link = JURI::root() . 'index.php?option=com_jinc&view=newsletter&layout=unsubscription&news_id=' . $news_id; $body = preg_replace('/\\[UNSUBSCRIPTIONURL\\]/s', $unsub_link, $body); $user = JFactory::getUser(); if (!$user->guest) { $user_mail = $user->get('email'); $userid = $user->get('username'); $username = $user->get('name'); $current = array('usermail' => $user_mail, 'userid' => $userid, 'username' => $username); foreach ($current as $key => $value) { $body = preg_replace('/\\[' . strtoupper($key) . '\\]/s', $value, $body); } } $datasent = $message->datasent; $attachment = str_replace(DIRECTORY_SEPARATOR, '/', $message->attachment); $link_att = JRoute::_('images/' . $attachment); echo '<tr class="row' . $i % 2 . '">'; echo '<td width="50%">'; if ($linkable) { echo '<a href="index.php?option=com_jinc&view=message&id=' . $message->id . '">' . $subject . '</a>'; } else { echo JHTML::tooltip(substr(strip_tags($body), 0, 75) . ' ...', $subject, '', $subject); } echo '</td>'; echo '<td width="20%" align="center">' . $datasent . '</td>'; echo '<td width="8%" align="center">'; if (strlen($message->attachment) > 0) { echo $attach_img; } echo '</td>'; echo '</tr>'; $i++; } echo '</table>'; }
<?php $options = array(); $options[] = JHTML::_('select.option', "1", JText::_('DT_EACH_MEMBER')); $options[] = JHTML::_('select.option', "2", JText::_('DT_BILLING_ONLY')); $options[] = JHTML::_('select.option', "3", JText::_('DT_MEMBERS_BILLING')); echo JHTML::_('select.radiolist', $options, "group_behave", "", "value", "text", $row->group_behave); ?> </td> <td valign="top"><?php echo JHTML::tooltip(JText::_('DT_HELP_FIELD_GROUPOPTIONS'), '', 'tooltip.png', '', ''); ?> </td> </tr> </tbody> </table>
/> </td> </tr> <tr> <td class="key"> <?php echo _JSHOP_VIDEO_HTML5_TYPE; ?> </td> <td> <input type="text" name="video_html5_type" value ="<?php echo $jshopConfig->video_html5_type; ?> " /> <?php echo JHTML::tooltip("video/mp4, video/webm, video/ogg"); ?> </td> </tr> <?php $pkey = "etemplatevar2"; if ($this->{$pkey}) { print $this->{$pkey}; } ?> </table> </fieldset> </div> <div class="clr"></div> <?php
:</td> <td> <?php $options = array(); $options[] = JHTML::_('select.option', '0', JText::_('No')); $options[] = JHTML::_('select.option', '1', JText::_('DT_YES_REQUIRED')); $options[] = JHTML::_('select.option', '2', JText::_('DT_YES_OPTIONAL')); echo JHTML::_('select.genericlist', $options, 'data[event][usercreation]', '', 'value', 'text', $row->usercreation); ?> </td> <td> <?php echo JHTML::tooltip(JText::_('DT_USER_CREATION_HELP'), '', 'tooltip.png', '', ''); ?> </td> </tr> <?php echo $this->loadTemplate('image'); ?> </table> <script type="text/javascript"> DTjQuery(function(){ DTjQuery.validator.messages.required;
?> <tr> <td><?php echo JText::_('DT_EVENT_TYPE'); ?> :</td> <?php $options = array('new' => JText::_('DT_NEW_EVENT'), 'jevent' => JText::_('DT_JEVENT')); ?> <td><?php echo JHTML::_('select.genericlist', DtHtml::options($options), 'eventType', ' ', 'value', 'text', 'new'); ?> </td> <td colspan="2" align="left"> <?php echo JHTML::tooltip(JText::_('DT_EVENT_TYPE_HELP'), '', 'tooltip.png', '', ''); ?> </td> </tr> <?php } ?> <script type="text/javascript"> DTjQuery(function(){ DTjQuery("#eventType").change(function(){ var value = DTjQuery(this).val(); if(navigator.appName.indexOf("Micro") >=0){ display = 'block';
<?php /* * ------------------------------------------------------------------------ * Copyright (C) 2009 - 2013 The YouTech JSC. All Rights Reserved. * @license - GNU/GPL, http://www.gnu.org/licenses/gpl.html * Author: The YouTech JSC * Websites: http://www.smartaddons.com - http://www.cmsportal.net * ------------------------------------------------------------------------ */ // no direct access defined('_JEXEC') or die; $span_tip = JHTML::tooltip('- You can remove SJ Help in Yt Plugin<br/>- Thank for using!', '', '', 'SJ Help'); $html .= "\r\n<script type='text/javascript'>\r\n\tjQuery(document).ready(function(\$){ \r\n\t\tif(\$('#module-menu')!=null){\r\n\t\t\t\$('#menu').append('<li id=\\'li-sjhelp\\' class=\\'dropdown\\'></li>');\r\n\t\t\t\$('#menu li#li-sjhelp').append('<a class=\\'dropdown-toggle\\' data-toggle=\\'dropdown\\' href=\\'#\\' style=\\'background: url(../plugins/system/yt/includes/images/yt.png) no-repeat 5px center; padding-left:25px\\'>SJ Help</a>');\r\n\t\t\t\$('#menu li#li-sjhelp a.dropdown-toggle').append('<span class=\\'caret\\'></span>');\r\n\t\t\t\$('#menu li#li-sjhelp').append('<ul id=\\'ul-sjhelp\\' class=\\'dropdown-menu\\'></ul>');\r\n\t\t\t\$('#menu li#li-sjhelp ul').append('<li class=\\'report-sjhelp\\'></li>');\r\n\t\t\t\$('#menu li#li-sjhelp ul').append('<li class=\\'tut-sjhelp\\'></li>');\r\n\t\t\t\$('#menu li#li-sjhelp ul').append('<li class=\\'info-sjhelp\\'></li>');\r\n\t\t\t\r\n\t\t\t\$('#menu li#li-sjhelp ul li.report-sjhelp').append('<a href=\\'http://www.smartaddons.com/forum/index/7-joomla-templates\\' target=\\'_blank\\'>Report bugs</a>');\r\n\t\t\t\$('#menu li#li-sjhelp ul li.tut-sjhelp').append('<a href=\\'http://www.smartaddons.com/joomla/templates/template-user-guides\\' target=\\'_blank\\'>Template Tutorial</a>');\r\n\t\t\t\$('#menu li#li-sjhelp ul li.info-sjhelp').append('<a href=\\'http://www.smartaddons.com/joomla/templates/yt-framework\\' target=\\'_blank\\'>Framework Tutorials</a>');\r\n\t\t\t\r\n\t\t\t\$('#menu').append('<li class=\\'yt-clearcache dropdown\\'></li>');\r\n\t\t\t\$('.yt-clearcache').append('<a style=\\'background: url(../plugins/system/yt/includes/images/clean-cache.png) no-repeat left center; padding-left:15px;\\' href=\\'javascript:void(0)\\'>Clean cache: CSS, JS</a>');\r\n\t\t\t\$('.yt-clearcache a').click(function(){\r\n\t\t\t\tvar linkurl = '../index.php?action=clearCache&type=plugin';\r\n\t\t\t\t\$.post(linkurl, function() {\r\n\t\t\t\t})\r\n\t\t\t\t.error(function() { alert('Error...'); })\r\n\t\t\t\t.complete(function() { alert('Clear cache successful !') }); \r\n\t\t\t});\r\n\t\t}\r\n\t});\r\n\t\r\n</script>\r\n";
echo JHTML::tooltip(JText::_('COM_SOCIALADS_ZONE_IFHT_ADS_TOOLTIP'), JText::_('COM_SOCIALADS_ZONE_IFHT_ADS'), '', JText::_('COM_SOCIALADS_ZONE_IFHT_ADS')); ?> </td> <td > <div class="input-append"> <input type="text" name="if_ht" id="if_ht" class="inputbox input-mini" placeholder="<?php echo JText::_('COM_SOCIALADS_IF_HT_HOLDER'); ?> " size="10" value="" autocomplete="off" /> <span class="add-on">px</span> </div> </td> </tr> <tr> <td width="25%"><?php echo JHTML::tooltip(JText::_('COM_SOCIALADS_ZONE_IF_SEAMLS_ADS_TOOLTIP'), JText::_('COM_SOCIALADS_ZONE_IF_SEAMLS_ADS'), '', JText::_('COM_SOCIALADS_ZONE_IF_SEAMLS_ADS')); ?> </td> <td > <div class="input-append yes_no_toggle"> <input type="radio" name="if_seam" id="if_seam1" value="1" checked="checked" > <label class="first btn btn-success" type="button" for="if_seam1"><?php echo JText::_('COM_SOCIALADS_YES'); ?> </label> <input type="radio" name="if_seam" id="if_seam2" value="0"> <label class="last btn" type="button" for="if_seam2"><?php echo JText::_('COM_SOCIALADS_NO'); ?> </label> </div>
<?php echo JHTML::_('select.genericlist', $orders->getAllOrderStatus(), 'pm_params[transaction_pending_status]', 'class = "inputbox" size = "1"', 'status_id', 'name', $params['transaction_pending_status']); echo " " . JHTML::tooltip(_JSHOP_PRIVAT24_TRANSACTION_PENDING_DESCRIPTION); ?> </td> </tr> <tr> <td class="key"> <?php echo _JSHOP_TRANSACTION_FAILED; ?> </td> <td> <?php echo JHTML::_('select.genericlist', $orders->getAllOrderStatus(), 'pm_params[transaction_failed_status]', 'class = "inputbox" size = "1"', 'status_id', 'name', $params['transaction_failed_status']); echo " " . JHTML::tooltip(_JSHOP_PRIVAT24_TRANSACTION_FAILED_DESCRIPTION); ?> </td> </tr> <tr> <td class="key"> <?php echo _JSHOP_PRIVAT24_CHECK_DATA_RETURN; ?> </td> <td> <?php print JHTML::_('select.booleanlist', 'pm_params[checkdatareturn]', 'class = "inputbox" size = "1"', $params['checkdatareturn']); ?> </td> </tr>
echo JHTML::tooltip(_JSHOP_THOUSAND_SEPARATOR_DESCRIPTION, _JSHOP_HINT); ?> </td> <td> </td> </tr> <tr> <td class="key" > <?php echo _JSHOP_CURRENCY_FORMAT; ?> </td> <td> <?php echo $lists['format_currency']; echo " " . JHTML::tooltip(_JSHOP_CURRENCY_FORMAT_DESCRIPTION, _JSHOP_HINT); ?> </td> <td> </td> </tr> <?php $pkey = "etemplatevar"; if ($this->{$pkey}) { print $this->{$pkey}; } ?> </table> </fieldset> </div> <div class="clr"></div>
echo $row->coupon_code; ?> " /> </td> </tr> <tr> <td class="key"> <?php echo _JSHOP_TYPE_COUPON; ?> * </td> <td> <?php echo $lists['coupon_type']; echo JHTML::tooltip(_JSHOP_COUPON_VALUE_DESCRIPTION, _JSHOP_HINT); ?> </td> </tr> <tr> <td class="key"> <?php echo _JSHOP_VALUE; ?> * </td> <td> <input type="text" class="inputbox" id="coupon_value" name="coupon_value" value="<?php echo $row->coupon_value; ?> " />
<?php echo JHTML::_('select.genericlist', $orders->getAllOrderStatus(), 'pm_params[transaction_pending_status]', 'class = "inputbox" size = "1"', 'status_id', 'name', $params['transaction_pending_status']); echo " " . JHTML::tooltip(_JSHOP_PAGSEGURO_TRANSACTION_PENDING_DESCRIPTION); ?> </td> </tr> <tr> <td class="key"> <?php echo _JSHOP_TRANSACTION_FAILED; ?> </td> <td> <?php echo JHTML::_('select.genericlist', $orders->getAllOrderStatus(), 'pm_params[transaction_failed_status]', 'class = "inputbox" size = "1"', 'status_id', 'name', $params['transaction_failed_status']); echo " " . JHTML::tooltip(_JSHOP_PAGSEGURO_TRANSACTION_FAILED_DESCRIPTION); ?> </td> </tr> <tr> <td class="key"> <?php echo _JSHOP_CHECK_DATA_RETURN; ?> </td> <td> <?php print JHTML::_('select.booleanlist', 'pm_params[checkdatareturn]', 'class = "inputbox"', $params['checkdatareturn']); ?> </td> </tr>
echo '<td width="20"><input type="checkbox" onclick="isChecked(this.checked);" value="' . $row['id'] . '" name="cid[]" id="cb' . $i . '"/></td>'; echo '<td><span> <a href="' . $hlink . '">' . $row['matricule'] . '</a> </span></td>'; } else { $checkuser =& JFactory::getUser($row['checked_out']); echo '<td align="center">' . JHTML::tooltip("L'utilisateur " . $checkuser->name . " 9a3ed ichouf fih mil " . $row['checked_out_time'], 'Locked', '../../../administrator/images/checked_out.png', '', '') . '</td>'; echo '<td><span> <a>' . $row['matricule'] . '</a> </span></td>'; } //<span class="editlinktip hasTip" title="Houni il tooltip texte za3ma"><a><img border="0" alt="Locked" src="administrator/images/checked_out.png"/></a></span></td>'; echo '<td align="center"><span>' . $row['lastname'] . '</span></td>'; echo '<td align="center"><span>' . $row['firstname'] . '</span></td>'; echo '<td align="center"><span>' . $row['department'] . '</span></td>'; echo '<td align="center"><span>' . $row['branch'] . '</span></td>'; echo '<td align="center"><span>' . $row['position'] . '</span></td>'; // echo '<td align="center">'.JHTML::tooltip('Click to contact the user', 'Contact','', '$row['email']', '').'</td>'; $row['email']; if ($row['email']) { echo '<td align="center"><span>' . JHTML::tooltip('Click to contact the user', 'Contact', '', $row['email'], '') . '</span></td>'; } else { echo '<td align="center"><span>' . '</span></td>'; } $hlink = 'index.php?option=com_jaderp&func=Workers&task=present&cid=' . $row["id"]; if ($row['presence']) { echo '<td align="center"><span><a title="Marquer comme absent" onclick="return listItemTask(\'cb' . $i . '\',\'unpublish\')" href="javascript:void(0);"><img border="0" alt="Présent" src="images/tick.png"/></a></span></td>'; } else { //$hlink = 'index.php?option=com_jaderp&func=Workers&task=present&cid='.$row["id"]; echo '<td align="center"><span><a title="Marquer comme absent" onclick="return listItemTask(\'cb' . $i . '\',\'publish\')" href="javascript:void(0);"><img border="0" alt="Présent" src="images/publish_x.png"/></a></span></td>'; } echo '<td align="center"><span>' . $row['access'] . '</span></td>'; echo '</tr>'; $k = 1 - $k; $i++; }
?> </td> <td><input class="text_area" type="text" name="name" id="name" size="50" maxlength="250" value="<?php echo htmlentities($row->name, ENT_QUOTES, "UTF-8"); ?> " /> <input type="hidden" name="tempName" value="<?php echo htmlentities($row->name, ENT_QUOTES, "UTF-8"); ?> " /> </td> </tr> <tr> <td width="100" align="right" class="key"><?php echo JHTML::tooltip(JTEXT::_('TOOLTIP_LOCATION_DESC'), JTEXT::_('TOOLTIP_LOCATION_DESC_TITLE'), '', JTEXT::_('DESC')); ?> </td> <td><textarea style="width: auto" type="text" name="description" id="description" maxlength="250" cols="36" rows="3"><?php echo $row->description; ?> </textarea> </td> </tr> <tr> <td width="100" align="right" class="key"><span><?php echo JText::_('PUBLISHED'); ?> </span></td> <td><?php
<span class="add-on"><?php echo $socialads_config['currency']; ?> </span> </div> </div> </div> </div> </div> <div class="control-group"> <?php ?> <label class="control-label" for=""><?php echo JHTML::tooltip(JText::_('SELECT_METHOD_TOOLTIP'), JText::_('SELECT_METHOD'), '', JText::_('SELECT_METHOD')); ?> </label> <div class="controls"> <?php echo JHTML::_('select.genericlist', $singleselect, "pricing_opt", 'class="chzn-done" onchange=getzone_price()', "value", "text", $this->addata_for_adsumary_edit->ad_payment_type); ?> </div> <div class="controls"> <div id="click" style="display:none"><p class="text-info"><span id="click_span"></span></p></div> <div id="imps" style="display:none" ><p class="text-info"><span id="imps_span"></div> </div> </div> <?php /* if($socialads_config['bidding']==1) { ?>
$calendar_catShow_opts = array(); $calendar_catShow_opts[] = JHTML::_('select.option', '0', JText::_('NO')); $calendar_catShow_opts[] = JHTML::_('select.option', '1', JText::_('YES')); echo JHTML::_('select.genericlist', $calendar_catShow_opts, 'config[calendar_show_location]', ' ', 'value', 'text', $config->getGlobal('calendar_show_location', 0)); ?> </td> <td align="left"><?php echo JHTML::tooltip(JText::_('DT_CAL_SHOW_LOCATION_HELP'), '', 'tooltip.png', '', ''); ?> </td> </tr> <tr> <td><strong><?php echo JText::_('DT_SHOW_MODERATOR'); ?> :</strong></td> <td> <?php $calendar_catShow_opts = array(); $calendar_catShow_opts[] = JHTML::_('select.option', '0', JText::_('NO')); $calendar_catShow_opts[] = JHTML::_('select.option', '1', JText::_('YES')); echo JHTML::_('select.genericlist', $calendar_catShow_opts, 'config[calendar_show_moderator]', ' ', 'value', 'text', $config->getGlobal('calendar_show_moderator', 0)); ?> </td> <td align="left"><?php echo JHTML::tooltip(JText::_('DT_CAL_SHOW_MODERATOR_HELP'), '', 'tooltip.png', '', ''); ?> </td> </tr> </table>
/** * * @author Sören, Max Milbers * @param object A param tag node * @param string The control name * @return array Any array of the label, the form element and the tooltip */ function renderParam(&$param, $control_name = 'params') { $result = array(); $name = $param->attributes('name'); $type = $param->attributes('type'); if ($param->attributes('label') != '') { $label = JText::_($param->attributes('label')); } else { $label = ''; } if ($param->attributes('description')) { $description = JText::_($param->attributes('description')); } else { //$description = JText::_('COM_VIRTUEMART_NO_DESCRIPTION_FOUND'); } $result[0] = $label ? $label : $name; if ($type == 'spacer' || $type == 'checkbox') { $result[0] = ' '; } else { // $result[0] = JHTML::tooltip( addslashes( $description ), addslashes( $result[0] ), '', '', $result[0], '#', 0 ); //$result[0] = $description; } if (in_array('_form_' . $type, $this->_methods)) { $control_name = ''; $value = $this->get($name); // $value = $this->get($param->attributes('name'), $param->attributes('default')); $result[1] = call_user_func(array($this, '_form_' . $type), $name, $value, $param, $control_name, $label); } else { $result[1] = _HANDLER . ' = ' . $type; } if ($description) { $result[2] = JHTML::tooltip($description, $result[0], '', $result[0]); //$result[2] = JHTML::tooltip( $description); // $result[2] = $description; } else { $result[2] = ''; } return $result; }
?> </td> <td> <input size="55" type="text" class="inputbox" name="pdf_parameters[pdf_footer_width]" value="<?php echo $jshopConfig->pdf_footer_width; ?> " /> </td> </tr> <tr> <td class="key"> <?php echo _JSHOP_IMAGE_HEIGHT; ?> <?php echo JHTML::tooltip(_JSHOP_PDF_INMM); ?> </td> <td> <input size="55" type="text" class="inputbox" name="pdf_parameters[pdf_footer_height]" value="<?php echo $jshopConfig->pdf_footer_height; ?> " /> </td> </tr> <tr> <td></td> <td > <?php print _JSHOP_PDF_PREVIEW_INFO1; ?>
<td><?php echo JHTML::tooltip(JText::_('DT_CANCEL_FEE_TYPE_HELP'), '', 'tooltip.png', '', ''); ?> </td> </tr> <tr> <td><?php echo JText::_('DT_CANCEL_FEE'); ?> :</td> <td> <input type="text" size="10" value="<?php echo $row->cancelfee; ?> " name="data[event][cancelfee]"/> </td> <td><?php echo JHTML::tooltip(JText::_('DT_CANCEL_FEE_HELP'), '', 'tooltip.png', '', ''); ?> </td> </tr> </table>
<td align="center"><?php echo JHTML::tooltip(JText::_('DT_REGISTRANT_PROFILE_LINK_HELP'), '', 'tooltip.png', '', ''); ?> </td> </tr> <tr align="center" valign="middle"> <td align="left" valign="top"><?php echo JText::_('DT_REGISTRANTS_SHOW_GROUP_MEMBERS'); ?> :</td> <td align="left" valign="top"> <?php $options = array(); $options[] = JHTML::_('select.option', '0', JText::_('NO')); $options[] = JHTML::_('select.option', '1', JText::_('YES')); echo JHTML::_('select.radiolist', $options, 'config[show_group_members]', '', 'value', 'text', $config->getGlobal('show_group_members', 0)); ?> </td> <td align="center"><?php echo JHTML::tooltip(JText::_('DT_REGISTRANTS_SHOW_GROUP_MEMBERS_HELP'), '', 'tooltip.png', '', ''); ?> </td> </tr> </table>
<h2 class="contentheading"><?php echo $this->key->id ? JText::_('COM_JM_EDIT_KEY_PAGE_TITLE') : JText::_('COM_JM_NEW_KEY_PAGE_TITLE'); ?> </h2> <form action="index.php" method="post" name="adminForm" class="jm_key_form"> <p> <label class="jm_form_label" for="domain"><?php echo JText::_('COM_JM_DOMAIN'); ?> :</label> <input type="text" class="inputbox jm_form_input" name="domain" size="55" value="<?php echo $this->key->domain; ?> " /> <?php echo JHTML::tooltip(JText::_('COM_JM_DOMAIN_TOOLTIP'), JText::_('COM_JM_DOMAIN')); ?> </p> <?php if ($this->key->hash) { ?> <p> <label class="jm_form_label"><?php echo JText::_('COM_JM_KEY'); ?> :</label> <span class="jm_form_key"><?php echo $this->key->hash; ?> </span> </p>
?> : </label> </td> <td> <?php $editor = JFactory::getEditor(); echo $editor->display('highlight', $row->highlight, '600', '300', 3, 50); ?> </td> </tr> <tr> <td align="right" class="key"> <label for="terms"> <?php echo JHTML::tooltip(JTEXT::_('TOOLTIP_DEAL_CONDITION'), JTEXT::_('TOOLTIP_DEAL_CONDITION_TITLE'), '', JTEXT::_('DEAL_TERMS_CONDITIONS')); ?> : </label> </td> <td> <?php $editor = JFactory::getEditor(); echo $editor->display('terms', $row->terms, '600', '300', 3, 50); ?> </td> </tr> <?php if (!empty($row->id)) { ?> <tr>
<td width="100" align="right" class="key"> <label for="name"> <?php echo JText::_('COM_REDSHOP_TAGS_NAME'); ?> : </label> </td> <td> <input class="text_area" type="text" name="tags_name" id="tags_name" size="32" maxlength="250" value="<?php echo $this->detail->tags_name; ?> "/> <?php echo JHTML::tooltip(JText::_('COM_REDSHOP_TOOLTIP_TAGS_NAME'), JText::_('COM_REDSHOP_TAGS_NAME'), 'tooltip.png', '', '', false); ?> </td> </tr> <tr> <td valign="top" align="right" class="key"> <?php echo JText::_('COM_REDSHOP_PUBLISHED'); ?> : </td> <td> <?php echo $this->lists['published']; ?> </td>
</td> <td> <?php echo $this->lists['newsletters']; ?> </td> </tr> <tr> <td valign="top" align="right" class="key"> <label for="deliverytime"> <?php echo JText::_('COM_REDSHOP_NEWSLETTER_SUBSCR_EMAIL_IMPORT'); ?> : </label> </td> <td> <input type="file" name="file" size="53"/> <?php echo JHTML::tooltip(JText::_('COM_REDSHOP_TOOLTIP_NEWSLETTER_BROWSE'), JText::_('COM_REDSHOP_NEWSLETTER_BROWSE'), 'tooltip.png', '', '', false); ?> </td> </tr> </table> </fieldset> </div> <div class="clr"></div> <input type="hidden" name="task" value=""/> <input type="hidden" name="view" value="newslettersubscr"/> </form>
<td> </td> <td> </td> </tr> <tr> <td class="key"> <?php echo _JSHOP_LICENSEKEY; ?> </td> <td> <input type="text" name="licensekod" size="50" value="<?php print $jshopConfig->licensekod; ?> " /> <a href="http://www.webdesigner-profi.de/joomla-webdesign/joomla-shop/forum/posts/22/373.html" target="_blank"><?php echo JHTML::tooltip(_JSHOP_INFO_LICENSEKEY); ?> </a> </td> </tr> <?php $pkey = "etemplatevar"; if ($this->{$pkey}) { print $this->{$pkey}; } ?> </table> </fieldset> </div> <div class="clr"></div>
public function mod_redProductfilter($Itemid) { $db = JFactory::getDbo(); $query = "SELECT t.*, f.formname AS form_name FROM #__redproductfinder_types t\r\n\t\tLEFT JOIN #__redproductfinder_forms f\r\n\t\tON t.form_id = f.id\r\n\t\tORDER BY ordering"; $types = $this->_getList($query); $session = JSession::getInstance('none', array()); $getredfilter = $session->get('redfilter'); $redfilterproduct = $session->get('redfilterproduct'); $redproducttotal = count($redfilterproduct); foreach ($types as $key => $type) { if (@(!array_key_exists($type->id, $getredfilter))) { $str = htmlentities($type->type_name, ENT_COMPAT, "UTF-8"); $str = preg_replace('/&([a-zA-Z])(uml|acute|grave|circ|tilde|elig|slash|ring);/', '$1', $str); $str = str_replace(' ', '', $str); $types[$key]->type_name_css = html_entity_decode($str); $id = $type->id; $all = 1; $productids = ""; if (count($getredfilter) > 0 && $all == 1) { $type_id = array(); $tag_id = array(); $k = 0; foreach ($getredfilter as $typeid => $tags) { $type_id[] = $typeid; $tags = explode(".", $tags); $tag_id[] = $tags[0]; if (count($getredfilter) - 1 == $k) { $lasttypeid = $typeid; $lasttagid = $tags[0]; } $k++; } $typeids = implode(",", $type_id); $tagids = implode(",", $tag_id); $query = "SELECT ra.product_id FROM `#__redproductfinder_association_tag` as rat\r\n\t\t\t\t\tLEFT JOIN #__redproductfinder_associations as ra ON rat.`association_id` = ra.id\r\n\t\t\t\t\tWHERE rat.`type_id` = " . $db->quote($lasttypeid) . " "; $query .= "AND rat.`tag_id` = " . $db->quote($lasttagid) . " "; $product = $this->_getList($query); $products = array(); for ($i = 0; $i < count($product); $i++) { $products[] = $product[$i]->product_id; } JArrayHelper::toInteger($products); $productids = implode(",", $products); } $q = "SELECT DISTINCT j.tag_id as tagid ,ra.product_id,count(ra.product_id) as ptotal ,CONCAT(j.tag_id,'.',j.type_id) AS tag_id, t.tag_name\r\n\t\t\tFROM ((#__redproductfinder_tag_type j, #__redproductfinder_tags t )\r\n\t\t\tLEFT JOIN #__redproductfinder_association_tag as rat ON t.`id` = rat.`tag_id`)\r\n\t\t\tLEFT JOIN #__redproductfinder_associations as ra ON ra.id = rat.association_id\r\n\t\t\tWHERE j.tag_id = t.id\r\n\t\t\tAND j.type_id = " . (int) $id . " "; if ($productids != "") { // Sanitize ids $productIds = explode(',', $productids); JArrayHelper::toInteger($productIds); $q .= " AND ra.product_id IN ( " . implode(',', $productIds) . " ) "; } $q .= " GROUP BY t.id ORDER BY t.ordering "; $tags = $this->_getList($q); $tagname = ""; // Only show if the type has tags if (count($tags) > 0) { // Create the selection boxes for ($t = 0; $t < count($tags); $t++) { $type_id = explode('.', $tags[$t]->tag_id); $query = "SELECT count(*) as count FROM #__redproductfinder_association_tag as ra\r\n\t\t\t\t\t\t\tleft join #__redproductfinder_associations as a on ra.association_id = a.id\r\n\t\t\t\t\t\t\tleft join #__redshop_product as rp on rp.product_id = a.product_id\r\n\t\t\t\t\t\t\tWHERE type_id = " . $db->quote($type_id[1]) . " AND tag_id = " . $db->quote($type_id[0]) . " AND rp.published = 1"; $published = $this->_getList($query); if ($published[0]->count > $redproducttotal && $redproducttotal > 0) { $finalcount = $redproducttotal; } else { $finalcount = $published[0]->count; } if ($finalcount > 0) { $tagname .= " <a href='" . JRoute::_('index.php?option=com_redshop&view=search&layout=redfilter&typeid=' . $type->id . '&tagid=' . $tags[$t]->tag_id . '&Itemid=' . $Itemid) . "' title='" . $tags[$t]->tag_name . "' >" . $tags[$t]->tag_name . "</a> ( " . $finalcount . " )<br/>"; } } if ($tagname != "") { $lists['type' . $key] = $tagname; } } else { unset($types[$key]); } } } if (count($getredfilter) != 0) { foreach ($getredfilter as $typeid => $tag_id) { foreach ($types as $key => $type) { if ($typeid == $type->id) { $str = htmlentities($type->type_name, ENT_COMPAT, "UTF-8"); $str = preg_replace('/&([a-zA-Z])(uml|acute|grave|circ|tilde|elig|slash|ring);/', '$1', $str); $str = str_replace(' ', '', $str); $types[$key]->type_name_css = html_entity_decode($str); $tags = $this->getTagsDetail($type->id, 0); $tagname = ""; // Only show if the type has tags if (count($tags) > 0) { // Create the selection boxes for ($t = 0; $t < count($tags); $t++) { if ($tags[$t]->tagid == $tag_id) { $tagname .= "<span style='float:left;'> " . $tags[$t]->tag_name . "</span><span style='float:right;'><a href='javascript:deleteTag(\"{$type->id}\",\"{$Itemid}\");' title='" . JText::_('COM_REDSHOP_DELETE') . "' >" . JText::_('COM_REDSHOP_DELETE') . "</a></span><br/>"; } } if ($tagname != "") { $filteredlists['type' . $key] = $tagname; } } else { unset($types[$key]); } } } } } if (count($getredfilter) != 0) { ?> <div id="pfsearchheader"><?php echo JText::_('COM_REDSHOP_SEARCH_RESULT'); ?> </div> <div class="hrdivider"></div> <?php foreach ($getredfilter as $typeid => $tag_id) { foreach ($types as $key => $type) { if ($typeid == $type->id) { ?> <div id="typename_<?php echo $type->id; ?> " class="typename <?php echo $type->type_name_css; ?> "> <?php echo $type->type_name; ?> <?php if (strlen($type->tooltip) > 0) { echo ' ' . JHTML::tooltip($type->tooltip, $type->type_name, 'tooltip.png', '', '', false); } ?> </div> <div id="typevalue_<?php echo $type->id; ?> " class="typevalue <?php echo $type->type_name_css; ?> "> <?php echo $filteredlists['type' . $key]; ?> </div> <div class="hrdivider <?php echo $type->type_name_css; ?> "></div> <?php } } } ?> <div> <a href="<?php echo JRoute::_('index.php?option=com_redshop&view=search&layout=redfilter&remove=1&Itemid=' . $Itemid); ?> " title="<?php echo JText::_('COM_REDSHOP_CLEAR_ALL'); ?> "> <?php echo JText::_('COM_REDSHOP_CLEAR_ALL'); ?> </a> </div> <div id="spacer"> _________________________</div> <?php } if (count($types) > 0) { ?> <div id="pfsearchheader"><?php echo JText::_('COM_REDSHOP_SEARCH_CRITERIA'); ?> </div> <div class="hrdivider"></div> <?php foreach ($types as $key => $type) { if (@(!array_key_exists($type->id, $getredfilter)) && @array_key_exists('type' . $key, $lists)) { ?> <div id="<?php echo $type->id; ?> " class="typename <?php echo $type->type_name_css; ?> "> <?php echo $type->type_name; ?> <?php if (strlen($type->tooltip) > 0) { echo ' ' . JHTML::tooltip($type->tooltip, $type->type_name, 'tooltip.png', '', '', false); } ?> </div> <div class="typevalue <?php echo $type->type_name_css; ?> "> <?php echo $lists['type' . $key]; ?> </div> <div class="hrdivider <?php echo $type->type_name_css; ?> "></div> <?php } } } }
function addtocart($product) { if (!VmConfig::get('use_as_catalog', 0)) { $stockhandle = VmConfig::get('stockhandle', 'none'); if (($stockhandle == 'disableit' or $stockhandle == 'disableadd') and $product->product_in_stock - $product->product_ordered < 1) { $button_lbl = JText::_('COM_VIRTUEMART_CART_NOTIFY'); $button_cls = 'notify-button'; $button_name = 'notifycustomer'; ?> <div style="display:inline-block;"> <a href="<?php echo JRoute::_('index.php?option=com_virtuemart&view=productdetails&layout=notify&virtuemart_product_id=' . $product->virtuemart_product_id); ?> " class="notify"><?php echo JText::_('COM_VIRTUEMART_CART_NOTIFY'); ?> </a> </div> <?php } else { ?> <div class="addtocart-area"> <form method="post" class="product" action="index.php"> <?php // Product custom_fields if (!empty($product->customfieldsCart)) { ?> <div class="product-fields"> <?php foreach ($product->customfieldsCart as $field) { ?> <div style="display:inline-block;" class="product-field product-field-type-<?php echo $field->field_type; ?> "> <span class="product-fields-title"><b><?php echo $field->custom_title; ?> </b></span> <?php echo JHTML::tooltip($field->custom_tip, $field->custom_title, 'tooltip.png'); ?> <span class="product-field-display"><?php echo $field->display; ?> </span> <span class="product-field-desc"><?php echo $field->custom_field_desc; ?> </span> </div> <?php } ?> </div> <?php } ?> <div class="addtocart-bar"> <?php // Display the quantity box ?> <!-- <label for="quantity<?php echo $product->virtuemart_product_id; ?> " class="quantity_box"><?php echo JText::_('COM_VIRTUEMART_CART_QUANTITY'); ?> : </label> --> <span class="quantity-box"> <input type="text" class="quantity-input" name="quantity[]" value="1"/> </span> <span class="quantity-controls"> <input type="button" class="quantity-controls quantity-plus"/> <input type="button" class="quantity-controls quantity-minus"/> </span> <?php // Add the button $button_lbl = JText::_('COM_VIRTUEMART_CART_ADD_TO'); $button_cls = ''; //$button_cls = 'addtocart_button'; ?> <?php // Display the add to cart button ?> <span class="addtocart-button"> <?php echo shopFunctionsF::getAddToCartButton($product->orderable); ?> </span> <div class="clear"></div> </div> <input type="hidden" class="pname" value="<?php echo $product->product_name; ?> "/> <input type="hidden" name="option" value="com_virtuemart"/> <input type="hidden" name="view" value="cart"/> <noscript><input type="hidden" name="task" value="add"/></noscript> <input type="hidden" name="virtuemart_product_id[]" value="<?php echo $product->virtuemart_product_id; ?> "/> <input type="hidden" name="virtuemart_category_id[]" value="<?php echo $product->virtuemart_category_id; ?> "/> </form> <div class="clear"></div> </div> <?php } } }
</td> </tr> <tr> <td class="key"> <?php echo _JSHOP_VALUE; ?> * </td> <td> <input type="text" class="inputbox" id="tax_value" name="tax_value" value="<?php echo $row->tax_value; ?> " /> % <?php echo JHTML::tooltip(_JSHOP_VALUE_TAX_INFO); ?> </td> </tr> <?php $pkey = "etemplatevar"; if ($this->{$pkey}) { print $this->{$pkey}; } ?> </table> </fieldset> </div> <div class="clr"></div> <input type="hidden" name="task" value="<?php
<?php $c = $this->customs[intval(substr($col, 6))]; ?> <th id="el_custom_<?php echo $c->id; ?> " class="sectiontableheader re_custom"> <?php echo isset($colnames[$k]) ? $colnames[$k] : $this->escape($c->name); ?> <?php if ($c->tips && $this->params->get('lists_show_custom_tip', 1)) { ?> <?php echo JHTML::tooltip(str_replace("\n", "<br/>", $c->tips), '', 'tooltip.png', '', '', false); ?> <?php } ?> </th> <?php } else { ?> <th id="el_custom_<?php echo $c->id; ?> " class="sectiontableheader re_custom"> <?php echo $col;
?> <div class="product-field product-field-type-<?php echo $field->field_type; ?> "> <?php if ($field->show_title) { ?> <span class="product-fields-title-wrapper"><span class="product-fields-title"><strong><?php echo vmText::_($field->custom_title); ?> </strong></span> <?php } if ($field->custom_tip) { echo JHTML::tooltip(vmText::_($field->custom_tip), vmText::_($field->custom_title), 'tooltip.png'); } ?> </span> <span class="product-field-display"><?php echo $field->display; ?> </span> <span class="product-field-desc"><?php echo vmText::_($field->custom_field_desc); ?> </span> </div><br/> <?php } ?>
if (!empty($this->product->customfieldsCart)) { ?> <div class="product-fields"> <?php foreach ($this->product->customfieldsCart as $field) { ?> <div style="display:inline-block;" class="product-field product-field-type-<?php echo $field->field_type; ?> "> <span class="product-fields-title" ><strong><?php echo $field->custom_title; ?> </strong></span> <?php echo JHTML::tooltip($field->custom_tip, $field->custom_title, 'tooltip.png'); ?> <span class="product-field-display"><?php echo $field->display; ?> </span> <span class="product-field-desc"><?php echo $field->custom_field_desc; ?> </span> </div><br/ > <?php } ?> </div>