当前位置: 首页>>代码示例>>PHP>>正文


PHP Html::grid方法代码示例

本文整理汇总了PHP中Html::grid方法的典型用法代码示例。如果您正苦于以下问题:PHP Html::grid方法的具体用法?PHP Html::grid怎么用?PHP Html::grid使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Html的用法示例。


在下文中一共展示了Html::grid方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1:

?>
</th>
				<th scope="col"><?php 
echo Html::grid('sort', 'COM_DEVELOPER_COL_NAME', 'name', @$this->filters['sort_Dir'], @$this->filters['sort']);
?>
</th>
				<th scope="col"><?php 
echo Lang::txt('COM_DEVELOPER_COL_STATE');
?>
</th>
				<th scope="col" class="priority-5"><?php 
echo Html::grid('sort', 'COM_DEVELOPER_COL_CREATED', 'created', @$this->filters['sort_Dir'], @$this->filters['sort']);
?>
</th>
				<th scope="col" class="priority-4"><?php 
echo Html::grid('sort', 'COM_DEVELOPER_COL_CREATED_BY', 'created_by', @$this->filters['sort_Dir'], @$this->filters['sort']);
?>
</th>
				<th scope="col" class="priority-3"><?php 
echo Lang::txt('COM_DEVELOPER_COL_HUB_ACCOUNT');
?>
</th>
			</tr>
		</thead>
		<tfoot>
			<tr>
				<td colspan="7">
					<?php 
// Initiate paging
echo $this->rows->pagination;
?>
开发者ID:kevinwojo,项目名称:hubzero-cms,代码行数:31,代码来源:display.php

示例2:

?>
</th>
				<th scope="col"><?php 
echo Html::grid('sort', 'COM_FORUM_COL_TITLE', 'title', @$this->filters['sort_Dir'], @$this->filters['sort']);
?>
</th>
				<th scope="col" class="priority-2"><?php 
echo Html::grid('sort', 'COM_FORUM_COL_STATE', 'state', @$this->filters['sort_Dir'], @$this->filters['sort']);
?>
</th>
				<th scope="col" class="priority-4"><?php 
echo Html::grid('sort', 'COM_FORUM_COL_ACCESS', 'access', @$this->filters['sort_Dir'], @$this->filters['sort']);
?>
</th>
				<th scope="col" class="priority-3"><?php 
echo Html::grid('sort', 'COM_FORUM_COL_SCOPE', 'scope', @$this->filters['sort_Dir'], @$this->filters['sort']);
?>
</th>
				<th scope="col"><?php 
echo Lang::txt('COM_FORUM_CATEGORIES');
?>
</th>
			</tr>
		</thead>
		<tfoot>
			<tr>
				<td colspan="7"><?php 
// initiate paging
echo $this->rows->pagination;
?>
</td>
开发者ID:kevinwojo,项目名称:hubzero-cms,代码行数:31,代码来源:display.php

示例3: isset

        echo Lang::txt('JGLOBAL_LIST_ALIAS', $this->escape($item->alias));
        ?>
							<?php 
    } else {
        ?>
								<?php 
        echo Lang::txt('JGLOBAL_LIST_ALIAS_NOTE', $this->escape($item->alias), $this->escape($item->note));
        ?>
							<?php 
    }
    ?>
</p>
					</td>
					<td class="priority-2 center">
						<?php 
    echo Html::grid('published', $item->published, $i, 'categories.', $canChange);
    ?>
					</td>
					<td class="priority-2 order">
						<?php 
    if ($canChange) {
        ?>
							<?php 
        if ($saveOrder) {
            ?>
								<span><?php 
            echo $this->pagination->orderUpIcon($i, isset($this->ordering[$item->parent_id][$orderkey - 1]), 'categories.orderup', 'JLIB_HTML_MOVE_UP', $ordering);
            ?>
</span>
								<span><?php 
            echo $this->pagination->orderDownIcon($i, $this->pagination->total, isset($this->ordering[$item->parent_id][$orderkey + 1]), 'categories.orderdown', 'JLIB_HTML_MOVE_DOWN', $ordering);
开发者ID:kevinwojo,项目名称:hubzero-cms,代码行数:31,代码来源:default.php

示例4:

}
?>
				<th scope="col"><?php 
echo Html::grid('sort', 'COM_TAGS_COL_TBL', 'tbl', @$this->filters['sort_Dir'], @$this->filters['sort']);
?>
</th>
				<th scope="col"><?php 
echo Html::grid('sort', 'COM_TAGS_COL_OBJECTID', 'objectid', @$this->filters['sort_Dir'], @$this->filters['sort']);
?>
</th>
				<th scope="col" class="priority-3"><?php 
echo Html::grid('sort', 'COM_TAGS_COL_CREATED', 'taggedon', @$this->filters['sort_Dir'], @$this->filters['sort']);
?>
</th>
				<th scope="col" class="priority-4"><?php 
echo Html::grid('sort', 'COM_TAGS_COL_CREATED_BY', 'taggerid', @$this->filters['sort_Dir'], @$this->filters['sort']);
?>
</th>
			</tr>
		</thead>
		<tfoot>
			<tr>
				<td colspan="<?php 
echo !$this->filters['tagid'] ? 7 : 6;
?>
"><?php 
// Initiate paging
echo $this->rows->pagination;
?>
</td>
			</tr>
开发者ID:kevinwojo,项目名称:hubzero-cms,代码行数:31,代码来源:display.php

示例5:

    $info .= Lang::txt('COM_PUBLICATIONS_FIELD_CREATOR') . ': ' . $this->escape($row->created_by) . '<br />';
    // Get the published status
    $now = Date::toSql();
    // See if it's checked out or not
    $checked = '';
    $checkedInfo = '';
    if ($row->checked_out || $row->checked_out_time != '0000-00-00 00:00:00') {
        $date = Date::of($row->checked_out_time)->toLocal(Lang::txt('DATE_FORMAT_LC1'));
        $time = Date::of($row->checked_out_time)->toLocal('H:i');
        $checked = '<span class="editlinktip hasTip" title="' . Lang::txt('JLIB_HTML_CHECKED_OUT') . '::' . $this->escape($row->checked_out) . '<br />' . $date . '<br />' . $time . '">';
        $checked .= Html::asset('image', 'admin/checked_out.png', null, null, true) . '</span>';
        $info .= $row->checked_out_time != '0000-00-00 00:00:00' ? Lang::txt('COM_PUBLICATIONS_FIELD_CHECKED_OUT') . ': ' . $date . '<br />' : '';
        $info .= $row->checked_out ? Lang::txt('COM_PUBLICATIONS_FIELD_CHECKED_OUT_BY') . ': ' . $row->checked_out . '<br />' : '';
        $checkedInfo = ' [' . Lang::txt('COM_PUBLICATIONS_FIELD_CHECKED_OUT') . ']';
    } else {
        $checked = Html::grid('id', $i, $row->id, false, 'id');
    }
    // What's the publication status?
    $status = $this->model->getStatusName($row->state);
    $class = $this->model->getStatusCss($row->state);
    $date = $row->modified() ? $row->modified('datetime') : $row->created('datetime');
    ?>
			<tr class="<?php 
    echo "row{$k}";
    ?>
 <?php 
    echo $row->isPending() ? 'attention' : '';
    ?>
">
				<td>
					<?php 
开发者ID:sumudinie,项目名称:hubzero-cms,代码行数:31,代码来源:display.php

示例6:

				<td class="order">
					<?php 
    if ($canDo->get('core.edit')) {
        ?>
						<span><?php 
        if ($i > 0) {
            echo Html::grid('orderUp', $i, 'orderup', '', 'JLIB_HTML_MOVE_UP', true, 'cb');
        } else {
            echo '&#160;';
        }
        //echo $pageNav->orderUpIcon($i, $row->ordering, 'orderup', 'JLIB_HTML_MOVE_UP', $row->ordering);
        ?>
</span>
						<span><?php 
        if ($i < $n - 1) {
            echo Html::grid('orderDown', $i, 'orderdown', '', 'JLIB_HTML_MOVE_DOWN', true, 'cb');
        } else {
            echo '&#160;';
        }
        //echo $pageNav->orderDownIcon($i, $n, $row->ordering, 'orderdown', 'JLIB_HTML_MOVE_DOWN', $row->ordering);
        ?>
</span>
						<?php 
        $disabled = $row->get('ordering') ? '' : 'disabled="disabled"';
        ?>
						<input type="text" name="order[]" size="5" value="<?php 
        echo $row->get('ordering');
        ?>
" <?php 
        echo $disabled;
        ?>
开发者ID:kevinwojo,项目名称:hubzero-cms,代码行数:31,代码来源:display.php

示例7: elseif

    ?>
">
						<?php 
    echo $this->escape($item->item_type);
    ?>
					</span>
				</td>
				<td class="center priority-2">
					<?php 
    if ($item->type == 'component') {
        ?>
						<?php 
        if ($item->language == '*' || $item->home == '0') {
            ?>
							<?php 
            echo Html::grid('isdefault', $item->home, $i, 'items.', ($item->language != '*' || !$item->home) && $canChange);
            ?>
						<?php 
        } elseif ($canChange) {
            ?>
							<a href="<?php 
            echo Route::url('index.php?option=com_menus&task=items.unsetDefault&cid[]=' . $item->id . '&' . Session::getFormToken() . '=1');
            ?>
">
								<?php 
            echo Html::asset('image', 'mod_languages/' . $item->image . '.gif', $item->language_title, array('title' => Lang::txt('COM_MENUS_GRID_UNSET_LANGUAGE', $item->language_title)), true);
            ?>
							</a>
						<?php 
        } else {
            ?>
开发者ID:mined-gatech,项目名称:hubzero-cms,代码行数:31,代码来源:default.php

示例8:

    echo $this->escape($item->lang_code);
    ?>
				</td>
				<td class="priority-6">
					<?php 
    echo $this->escape($item->sef);
    ?>
				</td>
				<td class="priority-6">
					<?php 
    echo $this->escape($item->image);
    ?>
				</td>
				<td>
					<?php 
    echo Html::grid('published', $item->published, $i, 'languages.', $canChange);
    ?>
				</td>
				<td class="order">
					<?php 
    if ($canChange) {
        ?>
						<?php 
        if ($saveOrder) {
            ?>
							<?php 
            if ($listDirn == 'asc') {
                ?>
								<span><?php 
                echo $this->pagination->orderUpIcon($i, true, 'languages.orderup', 'JLIB_HTML_MOVE_UP', $ordering);
                ?>
开发者ID:mined-gatech,项目名称:hubzero-cms,代码行数:31,代码来源:default.php

示例9:

        ?>
						<?php 
        echo $this->escape($item->title);
        ?>
					<?php 
    }
    ?>
					<p class="smallsub">
						<?php 
    echo Lang::txt('JGLOBAL_LIST_ALIAS', $this->escape($item->alias));
    ?>
</p>
				</td>
				<td class="center">
					<?php 
    echo Html::grid('published', $item->state, $i, 'articles.', $canChange, 'cb', $item->publish_up, $item->publish_down);
    ?>
				</td>
				<?php 
    /*<td class="priority-4 center">
    			<?php echo Html::contentadministrator('featured', $item->featured, $i, $canChange); ?>
    		</td>*/
    ?>
				<td class="priority-2 center">
					<?php 
    echo $this->escape($item->category_title);
    ?>
				</td>
				<td class="priority-3 order">
					<?php 
    if ($canChange) {
开发者ID:mined-gatech,项目名称:hubzero-cms,代码行数:31,代码来源:default.php

示例10: displayTask

 /**
  * Display a list of polls
  *
  * @return  void
  */
 public function displayTask()
 {
     $db = \App::get('db');
     $filter_order = Request::getState($this->_option . '.' . $this->_controller . '.filter_order', 'filter_order', 'm.id', 'cmd');
     $filter_order_Dir = Request::getState($this->_option . '.' . $this->_controller . '.filter_order_Dir', 'filter_order_Dir', '', 'word');
     $filter_state = Request::getState($this->_option . '.' . $this->_controller . '.filter_state', 'filter_state', '', 'word');
     $search = Request::getState($this->_option . '.' . $this->_controller . '.search', 'search', '', 'string');
     if (strpos($search, '"') !== false) {
         $search = str_replace(array('=', '<'), '', $search);
     }
     $search = \JString::strtolower($search);
     $limit = Request::getState('global.list.limit', 'limit', Config::get('list_limit'), 'int');
     $limitstart = Request::getState($this->_option . '.' . $this->_controller . '.limitstart', 'limitstart', 0, 'int');
     $where = array();
     if ($filter_state) {
         if ($filter_state == 'P') {
             $where[] = 'm.published = 1';
         } else {
             if ($filter_state == 'U') {
                 $where[] = 'm.published = 0';
             }
         }
     }
     if ($search) {
         $where[] = 'LOWER(m.title) LIKE ' . $db->Quote('%' . $search . '%');
     }
     $where = count($where) ? ' WHERE ' . implode(' AND ', $where) : '';
     // sanitize $filter_order
     if (!in_array($filter_order, array('m.title', 'm.published', 'a.ordering', 'catname', 'm.voters', 'numoptions', 'm.lag', 'm.id'))) {
         $filter_order = 'm.id';
     }
     if (!in_array(strtoupper($filter_order_Dir), array('ASC', 'DESC'))) {
         $filter_order_Dir = '';
     }
     $orderby = ' ORDER BY ' . $filter_order . ' ' . $filter_order_Dir;
     $db->setQuery('SELECT COUNT(m.id) FROM `#__polls` AS m' . $where);
     $total = $db->loadResult();
     $query = 'SELECT m.*, u.name AS editor, COUNT(d.id) AS numoptions' . ' FROM `#__polls` AS m' . ' LEFT JOIN `#__users` AS u ON u.id = m.checked_out' . ' LEFT JOIN `#__poll_data` AS d ON d.pollid = m.id AND d.text <> ""' . $where . ' GROUP BY m.id' . $orderby;
     $db->setQuery($query, $limitstart, $limit);
     $rows = $db->loadObjectList();
     if ($db->getErrorNum()) {
         throw new Exception($db->stderr(), 500);
     }
     $lists = array();
     // State filter
     $lists['state'] = \Html::grid('states', $filter_state);
     // Table ordering
     $lists['order_Dir'] = $filter_order_Dir;
     $lists['order'] = $filter_order;
     // Dearch filter
     $lists['search'] = $search;
     $this->view->set('user', User::getRoot())->set('lists', $lists)->set('items', $rows)->set('limit', $limit)->set('limitstart', $limitstart)->set('total', $total)->display();
 }
开发者ID:sumudinie,项目名称:hubzero-cms,代码行数:58,代码来源:polls.php

示例11: state

 /**
  * Returns a published state on a grid
  *
  * @param   integer       $value			The state value.
  * @param   integer       $i				The row index
  * @param   boolean       $enabled			An optional setting for access control on the action.
  * @param   string        $checkbox			An optional prefix for checkboxes.
  *
  * @return  string        The Html code
  *
  * @see JHtmlJGrid::state
  *
  * @since   1.7.1
  */
 public static function state($value, $i, $enabled = true, $checkbox = 'cb')
 {
     $states = array(1 => array('unpublish', 'COM_MODULES_EXTENSION_PUBLISHED_ENABLED', 'COM_MODULES_HTML_UNPUBLISH_ENABLED', 'COM_MODULES_EXTENSION_PUBLISHED_ENABLED', true, 'publish', 'publish'), 0 => array('publish', 'COM_MODULES_EXTENSION_UNPUBLISHED_ENABLED', 'COM_MODULES_HTML_PUBLISH_ENABLED', 'COM_MODULES_EXTENSION_UNPUBLISHED_ENABLED', true, 'unpublish', 'unpublish'), -1 => array('unpublish', 'COM_MODULES_EXTENSION_PUBLISHED_DISABLED', 'COM_MODULES_HTML_UNPUBLISH_DISABLED', 'COM_MODULES_EXTENSION_PUBLISHED_DISABLED', true, 'warning', 'warning'), -2 => array('publish', 'COM_MODULES_EXTENSION_UNPUBLISHED_DISABLED', 'COM_MODULES_HTML_PUBLISH_DISABLED', 'COM_MODULES_EXTENSION_UNPUBLISHED_DISABLED', true, 'unpublish', 'unpublish'));
     return Html::grid('state', $states, $value, $i, 'modules.', $enabled, true, $checkbox);
 }
开发者ID:mined-gatech,项目名称:hubzero-cms,代码行数:19,代码来源:modules.php

示例12:

?>
</th>
				<th scope="col" class="priority-4"><?php 
echo Html::grid('sort', 'COM_TOOLS_COL_STARTED', 'start', @$this->filters['sort_Dir'], @$this->filters['sort']);
?>
</th>
				<th scope="col" class="priority-3"><?php 
echo Html::grid('sort', 'COM_TOOLS_COL_LAST_ACCESSED', 'accesstime', @$this->filters['sort_Dir'], @$this->filters['sort']);
?>
</th>
				<th scope="col" class="priority-3"><?php 
echo Html::grid('sort', 'COM_TOOLS_COL_TOOL', 'appname', @$this->filters['sort_Dir'], @$this->filters['sort']);
?>
</th>
				<th scope="col" class="priority-4"><?php 
echo Html::grid('sort', 'COM_TOOLS_COL_EXEC_HOST', 'exechost', @$this->filters['sort_Dir'], @$this->filters['sort']);
?>
</th>
				<th scope="col"><?php 
echo Lang::txt('COM_TOOLS_COL_STOP');
?>
</th>
			</tr>
		</thead>
		<tfoot>
			<tr>
				<td colspan="9">
					<?php 
// Initiate paging
echo $this->pagination($this->total, $this->filters['start'], $this->filters['limit']);
?>
开发者ID:kevinwojo,项目名称:hubzero-cms,代码行数:31,代码来源:display.php

示例13:

        ?>
							<?php 
        echo $this->escape($item->name);
        ?>
					<?php 
    }
    ?>
					<p class="smallsub">
						<?php 
    echo Lang::txt('JGLOBAL_LIST_ALIAS', $this->escape($item->alias));
    ?>
</p>
				</td>
				<td class="center">
					<?php 
    echo Html::grid('published', $item->published, $i, 'newsfeeds.', $canChange, 'cb', $item->publish_up, $item->publish_down);
    ?>
				</td>
				<td class="center">
					<?php 
    echo $this->escape($item->category_title);
    ?>
				</td>
				<td class="order">
					<?php 
    if ($canChange) {
        ?>
						<?php 
        if ($saveOrder) {
            ?>
							<?php 
开发者ID:mined-gatech,项目名称:hubzero-cms,代码行数:31,代码来源:default.php

示例14:

?>
);" /></th>
				<th scope="col"><?php 
echo Html::grid('sort', 'COM_KB_TITLE', 'title', @$this->filters['sort_Dir'], @$this->filters['sort']);
?>
</th>
				<th scope="col" class="priority-2"><?php 
echo Html::grid('sort', 'COM_KB_PUBLISHED', 'state', @$this->filters['sort_Dir'], @$this->filters['sort']);
?>
</th>
				<th scope="col" class="priority-4"><?php 
echo Html::grid('sort', 'COM_KB_ACCESS', 'a.access', @$this->filters['sort_Dir'], @$this->filters['sort']);
?>
</th>
				<th scope="col" class="priority-3"><?php 
echo Html::grid('sort', 'COM_KB_CATEGORY', 'section', @$this->filters['sort_Dir'], @$this->filters['sort']);
?>
</th>
				<th scope="col" class="priority-5"><?php 
echo Lang::txt('COM_KB_VOTES');
?>
</th>
			</tr>
		</thead>
		<tfoot>
			<tr>
				<td colspan="6"><?php 
echo $this->rows->pagination;
?>
</td>
			</tr>
开发者ID:mined-gatech,项目名称:hubzero-cms,代码行数:31,代码来源:display.php

示例15:

?>
);" /></th>
				<th scope="col" class="priority-4"><?php 
echo Html::grid('sort', 'COM_GROUPS_USERID', 'uidNumber', @$this->filters['sort_Dir'], @$this->filters['sort']);
?>
</th>
				<th scope="col"><?php 
echo Html::grid('sort', 'COM_GROUPS_NAME', 'name', @$this->filters['sort_Dir'], @$this->filters['sort']);
?>
</th>
				<th scope="col" class="priority-3"><?php 
echo Html::grid('sort', 'COM_GROUPS_USERNAME', 'username', @$this->filters['sort_Dir'], @$this->filters['sort']);
?>
</th>
				<th scope="col" class="priority-5"><?php 
echo Html::grid('sort', 'COM_GROUPS_EMAIL', 'email', @$this->filters['sort_Dir'], @$this->filters['sort']);
?>
</th>
				<th scope="col"><?php 
echo Lang::txt('COM_GROUPS_MEMBER_STATUS');
?>
</th>
				<th scope="col" colspan="2"><?php 
echo Lang::txt('COM_GROUPS_MEMBER_ACTION');
?>
</th>
			</tr>
		</thead>
		<tfoot>
			<tr>
				<td colspan="8"><?php 
开发者ID:mined-gatech,项目名称:hubzero-cms,代码行数:31,代码来源:display.php


注:本文中的Html::grid方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。