help to better help you:
Please: add always Joomla / JEM version and details to your posts, so we can try to reproduce your issue!
J3+Styling - Backend - Attendees view
Re: J3+Styling - Backend - Attendees view
9 years 3 weeks ago
whoops, seems the code for export needs to be addressed a bit more as it will give problems.
Please Log in or Create an account to join the conversation.
Re: J3+Styling - Backend - Attendees view
9 years 3 weeks ago
More code for Export to Toolbar
File .../administrator/components/com_jem/views/attendees/tmpl/default.php
Add this in the top of the file
so it will look like
The thing here was that the task value wasn't blanked when we are pressing the export button and doing so it had problems.
For example: when the above code wasn't inserted. Press export and go to next page of results. It will trigger the export again.
The code above will blank the task value when the export button is pressed and doing so it should be working ok.
File .../administrator/components/com_jem/views/attendees/tmpl/default.php
Add this in the top of the file
Code:
JFactory::getDocument()->addScriptDeclaration('
Joomla.submitbutton = function(task)
{
document.adminForm.task.value=task;
if (task == "attendees.export") {
Joomla.submitform(task, document.getElementById("adminForm"));
document.adminForm.task.value="";
} else {
Joomla.submitform(task, document.getElementById("adminForm"));
}
};
');
so it will look like
Code:
defined('_JEXEC') or die;
JHtml::_('behavior.tooltip');
$colspan = ($this->event->waitinglist ? 10 : 9);
JFactory::getDocument()->addScriptDeclaration('
Joomla.submitbutton = function(task)
{
document.adminForm.task.value=task;
if (task == "attendees.export") {
Joomla.submitform(task, document.getElementById("adminForm"));
document.adminForm.task.value="";
} else {
Joomla.submitform(task, document.getElementById("adminForm"));
}
};
');
?>
<form action="<?php echo JRoute::_('index.php?option=com_jem&view=attendees'); ?>" method="post" name="adminForm" id="adminForm">
<table class="adminlist">
The thing here was that the task value wasn't blanked when we are pressing the export button and doing so it had problems.
For example: when the above code wasn't inserted. Press export and go to next page of results. It will trigger the export again.
The code above will blank the task value when the export button is pressed and doing so it should be working ok.
Please Log in or Create an account to join the conversation.
Re: J3+Styling - Backend - Attendees view
9 years 3 weeks ago - 9 years 3 weeks ago
Print layout
when printing you probably did notice the text "print" in the right corner.
It would be nice to have a icon there so let's change things.
File: ..../administrator/components/com_jem/views/attendees/tmpl/print.php
Change
To
Be aware that when printing it will show the print icon and to hide that you need to tweak the css a bit.
when printing you probably did notice the text "print" in the right corner.
It would be nice to have a icon there so let's change things.
File: ..../administrator/components/com_jem/views/attendees/tmpl/print.php
Change
Code:
<table style="width:100%" class="adminlist">
<tr>
<td class="sectionname" width="100%"><font style="color: #C24733; font-size : 18px; font-weight: bold;"><?php echo JText::_('COM_JEM_REGISTERED_USER'); ?></font></td>
<td><div class="button2-left"><div class="blank"><a href="#" onclick="window.print();return false;"><?php echo JText::_('COM_JEM_PRINT'); ?></a></div></div></td>
</tr>
</table>
To
Code:
<div class="clearfix">
<div class="pull-left">
<font style="color: #C24733; font-size : 18px; font-weight: bold;"><?php echo JText::_('COM_JEM_REGISTERED_USER'); ?></font>
</div>
<div class="pull-right">
<button type="button" class="btn" onclick="window.print();return false;"><span class="icon-print"></span> <?php echo JText::_('COM_JEM_PRINT'); ?></button>
</div>
</div>
Be aware that when printing it will show the print icon and to hide that you need to tweak the css a bit.
Last edit: 9 years 3 weeks ago by Bluefox.
Please Log in or Create an account to join the conversation.
Time to create page: 0.553 seconds