31
0
mirror of https://github.com/joomla-extensions/patchtester.git synced 2024-06-10 01:02:20 +00:00

formatting

This commit is contained in:
Nikolai Plath 2011-10-27 15:23:10 -05:00
parent f3f29162a2
commit 8674af3898
2 changed files with 33 additions and 19 deletions

View File

@ -119,8 +119,8 @@ class PatchtesterModelPulls extends JModelList
continue; continue;
} }
if($searchId && $pull->number != $searchId) { if($searchId && $pull->number != $searchId) {
unset($pulls[$i]); unset($pulls[$i]);
continue; continue;
} }
$matches = array(); $matches = array();
preg_match('#\[\#([0-9]+)\]#', $pull->title, $matches); preg_match('#\[\#([0-9]+)\]#', $pull->title, $matches);

View File

@ -23,27 +23,41 @@ $listDirn = $this->escape($this->state->get('list.direction'));
</script> </script>
<form action="<?php echo JRoute::_('index.php?option=com_patchtester&view=pulls'); ?>" method="post" name="adminForm" id="adminForm"> <form action="<?php echo JRoute::_('index.php?option=com_patchtester&view=pulls'); ?>" method="post" name="adminForm" id="adminForm">
<fieldset id="filter-bar"> <table class="adminlist">
<div class="filter-search fltlft"> <thead>
<strong><?php echo JText::_('JSEARCH_FILTER_LABEL'); ?></strong><br /> <tr>
<label class="filter-search-lbl" for="filter_searchid"><?php echo JText::_('COM_PATCHTESTER_SEARCH_IN_PULL_ID'); ?></label> <th colspan="6" style="text-align: left;"><?php echo JText::_('JSEARCH_FILTER_LABEL'); ?></th>
<input type="text" name="filter_searchid" id="filter_searchid" size="5" </tr>
value="<?php echo $this->escape($this->state->get('filter.searchid')); ?>" <tr>
title="<?php echo JText::_('COM_PATCHTESTER_SEARCH_IN_PULL_ID'); ?>" /> <td>
<label class="filter-search-lbl" for="filter_search"><?php echo JText::_('COM_PATCHTESTER_SEARCH_IN_TITLE'); ?></label>
<input type="text" name="filter_search" id="filter_search"
value="<?php echo $this->escape($this->state->get('filter.search')); ?>"
title="<?php echo JText::_('COM_PATCHTESTER_SEARCH_IN_TITLE'); ?>" />
<button type="submit"><?php echo JText::_('JSEARCH_FILTER_SUBMIT'); ?></button> <button type="submit"><?php echo JText::_('JSEARCH_FILTER_SUBMIT'); ?></button>
<button type="button" onclick="document.id('filter_search').value='';document.id('filter_searchid').value='';this.form.submit();"> <button type="button" onclick="document.id('filter_search').value='';document.id('filter_searchid').value='';this.form.submit();">
<?php echo JText::_('JSEARCH_FILTER_CLEAR'); ?> <?php echo JText::_('JSEARCH_FILTER_CLEAR'); ?>
</button> </button>
</div> </td>
</fieldset> <td>
<div class="clr"> </div> <label class="filter-search-lbl" for="filter_searchid"><?php echo JText::_('COM_PATCHTESTER_SEARCH_IN_PULL_ID'); ?></label>
<input type="text" name="filter_searchid" id="filter_searchid" size="5"
<table class="adminlist"> value="<?php echo $this->escape($this->state->get('filter.searchid')); ?>"
<thead> title="<?php echo JText::_('COM_PATCHTESTER_SEARCH_IN_PULL_ID'); ?>" />
</td>
<td>
<label class="filter-search-lbl" for="filter_search"><?php echo JText::_('COM_PATCHTESTER_SEARCH_IN_TITLE'); ?></label>
<br />
<input type="text" name="filter_search" id="filter_search"
value="<?php echo $this->escape($this->state->get('filter.search')); ?>"
title="<?php echo JText::_('COM_PATCHTESTER_SEARCH_IN_TITLE'); ?>" />
</td>
<td>
</td>
<td>
</td>
<td>
</td>
</tr>
<tr>
<th colspan="6" style="text-align: left;"><?php echo JText::_('COM_PATCHTESTER_SORT'); ?></th>
</tr>
<tr> <tr>
<th width="1%"> <th width="1%">
<input type="checkbox" name="checkall-toggle" value="" title="<?php echo JText::_('JGLOBAL_CHECK_ALL'); ?>" onclick="Joomla.checkAll(this)" /> <input type="checkbox" name="checkall-toggle" value="" title="<?php echo JText::_('JGLOBAL_CHECK_ALL'); ?>" onclick="Joomla.checkAll(this)" />