?
Path : /home/admin/public_html/old/administrator/components/com_xijc/views/blacklist/tmpl/ |
Current File : /home/admin/public_html/old/administrator/components/com_xijc/views/blacklist/tmpl/default.php |
<?php // Disallow direct access to this file defined('_JEXEC') or die('Restricted access'); ?> <script type="text/javascript" language="javascript"> /** * This function needs to be here because, Joomla toolbar calls it **/ function submitbutton( action ) { switch( action ) { case 'remove': if( !confirm( '<?php echo JText::_('ARE YOU SURE YOU WANT TO DELETE THIS BLACKLIST?'); ?>' ) ) { break; } case 'publish': case 'unpublish': default: submitform( action ); } } </script> <div style="background-color: #F9F9F9; border: 1px solid #D5D5D5; margin-bottom: 10px; padding: 5px;font-weight: bold;"> <?php echo JText::_('FOLLOWING LIST WILL ALWAYS SHOW CAPTCHA');?> </div> <form action="<?php echo JURI::base();?>index.php?option=com_xijc&view=blacklist" method="post" name="adminForm"> <table class="adminlist" cellspacing="1" style="width:58%; float:left;"> <thead> <tr class="title"> <th width="1%"> <?php echo JText::_( 'Num' ); ?> </th> <th width="1%"> <input type="checkbox" name="toggle" value="" onclick="checkAll(<?php echo count( $this->blacklist ); ?>);" /> </th> <th width="20%"> <?php echo JText::_( 'RULE NAME' ); ?> </th> <th> <?php echo JText::_( 'COMPONENT' ); ?> </th> <th width="20%"> <?php echo JText::_( 'OPTION' ); ?> </th> <th width="10%"> <?php echo JText::_( 'PARAMS' ); ?> </th> <th width="20%"> <?php echo JText::_( 'ENABLE' ); ?> </th> </tr> </thead> <?php $count = 0; $i = 0; if(!empty($this->blacklist)) foreach($this->blacklist as $b) { $input = JHTML::_('grid.id', $count, $b->id); // Process publish / unpublish images ++$i; ?> <tr class="row<?php echo $i%2;?>" id="rowid<?php echo $b->id;?>"> <td><?php echo $i;?></td> <td> <?php echo $input; ?> </td> <td> <span class="editlinktip" title="<?php echo $b->rulename; ?>" id="name<?php echo $b->id;?>"> <?php $link = JRoute::_('index.php?option=com_xijc&view=blacklist&task=edit&editId='.$b->id, false); if($this->comeditable[$b->option] ==1){ ?><a href="<?php echo $link;?>"><?php } echo $b->rulename; ?></a> </span> </td> <td> <?php echo $this->comname[$b->option]; ?> </td> <td> <?php echo $b->option; ?> </td> <td> <?php echo $b->params ; ?> </td> <td align="center" id="enable<?php echo $b->id;?>"> <a href="javascript:void(0);" onclick="return listItemTask('cb<?php echo $i-1;?>','<?php echo $b->enable ? 'unpublish' : 'publish' ?>')"> <?php if($b->enable) { ?> <img src="images/tick.png" width="16" height="16" border="0" alt="Enabled" /> <?php } else { ?> <img src="images/publish_x.png" width="16" height="16" border="0" alt="Disabled" /> <?php } ?> </a> </td> </tr> <?php $count++; } ?> <tfoot> <tr> <td colspan="15"> <?php echo $this->pagination->getListFooter(); ?> </td> </tr> </tfoot> </table> <div style="float:inherit; margin-left:60%; "> <?php echo $this->pane->startPane( 'stat-pane' ); require_once("helpPanel.php"); echo $this->pane->endPane(); ?> </div> <input type="hidden" name="view" value="blacklist" /> <input type="hidden" name="task" value="" /> <input type="hidden" name="option" value="com_xijc" /> <input type="hidden" name="boxchecked" value="0" /> <?php echo JHTML::_( 'form.token' ); ?> </form>