| [ Index ] |
PHP Cross Reference of Joomla 1.5.26 DE |
[Summary view] [Print] [Text view]
1 <?php defined('_JEXEC') or die('Restricted access'); ?> 2 3 <?php JHTML::_('behavior.tooltip'); ?> 4 5 <?php 6 JToolBarHelper::title( JText::_( 'Poll Manager' ) ); 7 JToolBarHelper::publishList(); 8 JToolBarHelper::unpublishList(); 9 JToolBarHelper::deleteList(); 10 JToolBarHelper::editListX(); 11 JToolBarHelper::addNewX(); 12 JToolBarHelper::help( 'screen.polls' ); 13 ?> 14 15 <form action="index.php?option=com_poll" method="post" name="adminForm"> 16 <table> 17 <tr> 18 <td align="left" width="100%"> 19 <?php echo JText::_( 'Filter' ); ?>: 20 <input type="text" name="search" id="search" value="<?php echo htmlspecialchars($this->lists['search']);?>" class="text_area" onchange="document.adminForm.submit();" /> 21 <button onclick="this.form.submit();"><?php echo JText::_( 'Go' ); ?></button> 22 <button onclick="document.getElementById('search').value='';this.form.getElementById('filter_state').value='';this.form.submit();"><?php echo JText::_( 'Reset' ); ?></button> 23 </td> 24 <td nowrap="nowrap"> 25 <?php echo $this->lists['state']; ?> 26 </td> 27 </tr> 28 </table> 29 <div id="tablecell"> 30 <table class="adminlist"> 31 <thead> 32 <tr> 33 <th width="5"> 34 <?php echo JText::_( 'NUM' ); ?> 35 </th> 36 <th width="20"> 37 <input type="checkbox" name="toggle" value="" onclick="checkAll(<?php echo count( $this->items ); ?>);" /> 38 </th> 39 <th class="title"> 40 <?php echo JHTML::_('grid.sort', 'Poll Title', 'm.title', @$this->lists['order_Dir'], @$this->lists['order'] ); ?> 41 </th> 42 <th width="5%" align="center"> 43 <?php echo JHTML::_('grid.sort', 'Published', 'm.published', @$this->lists['order_Dir'], @$this->lists['order'] ); ?> 44 </th> 45 <th width="5%" align="center"> 46 <?php echo JHTML::_('grid.sort', 'Votes', 'm.voters', @$this->lists['order_Dir'], @$this->lists['order'] ); ?> 47 </th> 48 <th width="5%" align="center"> 49 <?php echo JHTML::_('grid.sort', 'Options', 'numoptions', @$this->lists['order_Dir'], @$this->lists['order'] ); ?> 50 </th> 51 <th width="5%" align="center"> 52 <?php echo JHTML::_('grid.sort', 'Lag', 'm.lag', @$this->lists['order_Dir'], @$this->lists['order'] ); ?> 53 </th> 54 <th width="1%" nowrap="nowrap"> 55 <?php echo JHTML::_('grid.sort', 'ID', 'm.id', @$this->lists['order_Dir'], @$this->lists['order'] ); ?> 56 </th> 57 </tr> 58 </thead> 59 <tfoot> 60 <tr> 61 <td colspan="9"> 62 <?php echo $this->pagination->getListFooter(); ?> 63 </td> 64 </tr> 65 </tfoot> 66 <tbody> 67 <?php 68 $k = 0; 69 for ($i=0, $n=count( $this->items ); $i < $n; $i++) 70 { 71 $row = &$this->items[$i]; 72 73 $link = JRoute::_( 'index.php?option=com_poll&view=poll&task=edit&cid[]='. $row->id ); 74 75 $checked = JHTML::_('grid.checkedout', $row, $i ); 76 $published = JHTML::_('grid.published', $row, $i ); 77 ?> 78 <tr class="<?php echo "row$k"; ?>"> 79 <td> 80 <?php echo $this->pagination->getRowOffset( $i ); ?> 81 </td> 82 <td> 83 <?php echo $checked; ?> 84 </td> 85 <td> 86 <?php if ( JTable::isCheckedOut($this->user->get ('id'), $row->checked_out ) ) { 87 echo $row->title; 88 } else { 89 ?> 90 <span class="editlinktip hasTip" title="<?php echo JText::_( 'Edit Poll' );?>::<?php echo htmlspecialchars($row->title); ?>"> 91 <a href="<?php echo $link ?>"> 92 <?php echo htmlspecialchars($row->title); ?></a></span> 93 <?php 94 } 95 ?> 96 </td> 97 <td align="center"> 98 <?php echo $published;?> 99 </td> 100 <td align="center"> 101 <?php echo $row->voters; ?> 102 </td> 103 <td align="center"> 104 <?php echo $row->numoptions; ?> 105 </td> 106 <td align="center"> 107 <?php echo $row->lag; ?> 108 </td> 109 <td align="center"> 110 <?php echo $row->id; ?> 111 </td> 112 </tr> 113 <?php 114 $k = 1 - $k; 115 } 116 ?> 117 </tbody> 118 </table> 119 </div> 120 121 <input type="hidden" name="option" value="com_poll" /> 122 <input type="hidden" name="task" value="" /> 123 <input type="hidden" name="boxchecked" value="0" /> 124 <input type="hidden" name="filter_order" value="<?php echo $this->lists['order']; ?>" /> 125 <input type="hidden" name="filter_order_Dir" value="<?php echo $this->lists['order_Dir']; ?>" /> 126 <?php echo JHTML::_( 'form.token' ); ?> 127 </form>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed Mar 28 15:54:07 2012 | Cross-referenced by PHPXref 0.7.1 |