本文整理汇总了PHP中JPagination::orderDownIcon方法的典型用法代码示例。如果您正苦于以下问题:PHP JPagination::orderDownIcon方法的具体用法?PHP JPagination::orderDownIcon怎么用?PHP JPagination::orderDownIcon使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JPagination
的用法示例。
在下文中一共展示了JPagination::orderDownIcon方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: JPagination
<?php
if (isset($row->ordering)) {
?>
<td class="order nowrap">
<?php
$page = new JPagination($n, 1, $n);
$up = JString::strtolower($this->lists['order_Dir']) == 'asc' ? 'orderup' : 'orderdown';
$down = JString::strtolower($this->lists['order_Dir']) == 'asc' ? 'orderdown' : 'orderup';
$enable = $this->auth('core.edit') && $this->lists['order'] == 'ordering';
?>
<span><?php
echo $page->orderUpIcon($i, $i > 0, 'movehistorylist.' . $up, JText::_('JLIB_HTML_MOVE_UP'), $enable);
?>
</span>
<span><?php
echo $page->orderDownIcon($i, $n, $i < $n, 'movehistorylist.' . $down, JText::_('JLIB_HTML_MOVE_DOWN'), $enable);
?>
</span>
<input type="text" name="order[]" size="5" value="<?php
echo $row->ordering;
?>
" class="text-area-order input-mini" <?php
echo $enable ? '' : 'disabled="true"';
?>
/>
</td>
<?php
}
?>
<?php
if (isset($row->published)) {
示例2: testOrderDownIcon
/**
* Test the html string for the orderDownIcon function.
*
* @param integer $i The row index.
* @param integer $n The number of items in the list.
* @param string $expected The expected html string
* @param boolean $condition True to show the icon.
* @param string $task The task to fire.
* @param string $alt The image alternative text string.
* @param boolean $enabled An optional setting for access control on the action.
* @param string $checkbox An optional prefix for checkboxes.
*
* @return void
*
* @covers JPagination::orderDownIcon
* @dataProvider dataTestOrderDownIcon
* @since 3.2
*/
public function testOrderDownIcon($i, $n, $expected, $condition = true, $task = 'orderdown', $alt = 'JLIB_HTML_MOVE_DOWN', $enabled = true, $checkbox = 'cb')
{
$pagination = new JPagination($n, 50, 20, '', $this->app);
$string = $pagination->orderDownIcon($i, $n, $condition, $task, $alt, $enabled, $checkbox);
$this->assertEquals($string, $expected, 'This is not the expected order up html');
}
示例3: JPagination
?>
</td>
<td nowrap>
<?php
$page = new JPagination($n, 1, $n);
?>
<input type="text" name="order[]" size="5" value="<?php
echo $row->ordering;
?>
" class="text_area" style="text-align: center" />
<span><?php
echo $page->orderUpIcon($i, $i > 0, 'orderup', JText::_('MOVE_UP'), true);
?>
</span>
<span><?php
echo $page->orderDownIcon($i, $n, $i < $n, 'orderdown', JText::_('MOVE_DOWN'), true);
?>
</span>
</td>
<td align="center">
<?php
echo $published;
?>
</td>
<td align="center">
<?php
echo $row->product_id;
?>
</td>
</tr>
<?php
示例4: void
/>
</td>
<td align="center">
<input type="text" name="value_id[]" value="<?php
echo $row->id;
?>
" size="2" readonly="readonly"/>
</td>
<td align="right">
<?php
echo $pageNav->orderUpIcon($index, $index !== 0, "ordvalup", JText::_('Move Up'));
?>
</td>
<td align="left">
<?php
echo $pageNav->orderDownIcon($index, $count, $index != $count, "ordvaldn", JText::_('Move Down'));
?>
</td>
<td align="center">
<input type="text" name="value_order[]" size="5" value="<?php
echo $row->ordering;
?>
" class="text_area" style="text-align: center" />
</td>
<td align="center">
<a href="javascript: void(0);" onclick="if(confirm('<?php
echo JText::_('WARNINGDELVALUE');
?>
')){ return listItemTask('cb<?php
echo $index;
?>
示例5:
echo $published;
?>
</td>
<td>
<span><?php
echo $pageNav->orderUpIcon($i, true, 'orderup', 'Move Up');
?>
</span>
</td>
<td>
<span><?php
echo $pageNav->orderDownIcon($i, $n, true, 'orderdown', 'Move Down');
?>
</span>
</td>
<td align="center" >
<input type="text" name="order[]" size="5" value="<?php
echo $row->ordering;
?>
" class="text_area" style="text-align: center" />
</td>
<td><a href="<?php
示例6: display
//.........这里部分代码省略.........
$checked = JHTML::_('grid.id', $i, $i);
if ($field->mandatory == 1) {
$mandatory = $yes_text;
} else {
$mandatory = $no_text;
}
if ($field->visible == 1) {
$visible = $yes_text;
} else {
$visible = $no_text;
}
$width = '';
$height = '';
$details = '';
switch ($field->field_type) {
case LAFC_FIELD_FROM_ADDRESS:
$width = $field->width;
break;
case LAFC_FIELD_FROM_NAME:
case LAFC_FIELD_TEXT:
case LAFC_FIELD_PASSWORD:
case LAFC_FIELD_TEXT_NUMERIC:
case LAFC_FIELD_FIELDSET_START:
$width = $field->width;
if ($field->default_value != '') {
$details = JText::_('COM_FLEXICONTACT_DEFAULT') . ': ' . $field->default_value;
}
break;
case LAFC_FIELD_SUBJECT:
$width = $field->width;
if ($field->default_value != '') {
$details = JText::_('COM_FLEXICONTACT_DEFAULT') . ': ' . $field->default_value . ', ' . JText::_('COM_FLEXICONTACT_VISIBLE') . ': ' . $visible;
} else {
$details = JText::_('COM_FLEXICONTACT_VISIBLE') . ': ' . $visible;
}
break;
case LAFC_FIELD_TEXTAREA:
$width = $field->width;
$height = $field->height;
break;
case LAFC_FIELD_LIST:
$list_array = FCP_Common::split_list($field->list_list, $field->delimiter);
$field_id = sprintf('field%03d', $i);
$list_html = FCP_Common::make_list($field_id, 0, $list_array['LEFT']);
$details = $list_html;
break;
case LAFC_FIELD_FIXED_TEXT:
$details = $field->default_value;
break;
case LAFC_FIELD_ADVANCED:
$width = $field->width;
$details = $field->regex;
if (!empty($field->sql)) {
if (!empty($details)) {
$details .= '<br />';
}
$details .= $field->sql;
}
if ($field->error_msg != '') {
$details .= ' [' . $field->error_msg . ']';
}
break;
case LAFC_FIELD_RECIPIENT:
$list_array = FCP_Common::split_list($field->list_list, ';', $field->delimiter);
$field_id = sprintf('field%03d', $i);
$list_html = FCP_Common::make_list($field_id, 0, $list_array['LEFT']);
$details = $list_html;
break;
case LAFC_FIELD_RADIO_V:
case LAFC_FIELD_RADIO_H:
$list_array = FCP_Common::split_list($field->list_list, ';', $field->delimiter);
$details = implode(", ", $list_array['RIGHT']);
break;
case LAFC_FIELD_CHECKBOX_M:
$list_array = FCP_Common::split_list($field->list_list, $field->delimiter);
$details = implode(", ", $list_array['LEFT']);
break;
case LAFC_FIELD_DATE:
$details = $validation_types[$field->validation_type];
}
$image = FCP_Admin::get_icon_image($field->field_type);
$link = JRoute::_(LAFC_COMPONENT_LINK . '&controller=field&task=edit&cid[]=' . $i);
$field_id = sprintf('%02d', $i + 1);
echo "\n<tr>";
echo ' <td>' . JHTML::link($link, $field_id) . '</td>';
echo ' <td align="center">' . $checked . '</td>';
echo ' <td>' . $pagination->orderUpIcon($i, true) . '</td>';
echo ' <td>' . $pagination->orderDownIcon($i, true) . '</td>';
echo ' <td><input type="text" name="order[]" size="5" value="' . ($i + 1) . '" class="text_area" style="text-align: center" /></td>';
echo ' <td nowrap="nowrap">' . JHTML::link($link, $field->prompt) . '</td>';
echo ' <td align="center">' . $image . '</td>';
echo ' <td nowrap="nowrap">' . $field_type_name . '</td>';
echo ' <td align="center">' . $mandatory . '</td>';
echo ' <td align="center">' . $width . '</td>';
echo ' <td align="center">' . $height . '</td>';
echo ' <td align="left">' . $details . '</td>';
echo "\n</tr>";
}
echo '</table></form>';
}