本文整理汇总了PHP中button_edit函数的典型用法代码示例。如果您正苦于以下问题:PHP button_edit函数的具体用法?PHP button_edit怎么用?PHP button_edit使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了button_edit函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: index
public function index()
{
$this->subtitle($this('list_teams'))->load->library('table');
$teams = $this->table->add_columns(array(array('content' => function ($data) {
return button_sort($data['team_id'], 'admin/ajax/teams/sort.html');
}, 'size' => TRUE), array('title' => $this('teams'), 'content' => function ($data) {
return '<a href="' . url('teams/' . $data['team_id'] . '/' . $data['name'] . '.html') . '"><img src="' . path($data['icon_id']) . '" alt="" /> ' . $data['title'] . '</a>';
}), array('title' => $this('game'), 'content' => function ($data) {
return '<a href="' . url('admin/games/' . $data['team_id'] . '/' . $data['game'] . '.html') . '"><img src="' . path($data['game_icon']) . '" alt="" /> ' . $data['game_title'] . '</a>';
}), array('title' => '<i class="fa fa-users" data-toggle="tooltip" title="' . $this('players') . '"></i>', 'content' => function ($data) {
return $data['users'];
}, 'size' => TRUE), array('content' => array(function ($data) {
return button_edit('admin/teams/' . $data['team_id'] . '/' . $data['name'] . '.html');
}, function ($data) {
return button_delete('admin/teams/delete/' . $data['team_id'] . '/' . $data['name'] . '.html');
}), 'size' => TRUE)))->data($this->model()->get_teams())->no_data($this('no_team'))->display();
$roles = $this->table->add_columns(array(array('content' => function ($data) {
return button_sort($data['role_id'], 'admin/ajax/teams/roles/sort.html');
}, 'size' => TRUE), array('content' => function ($data) {
return '<a href="' . url('admin/teams/roles/' . $data['role_id'] . '/' . url_title($data['title']) . '.html') . '">' . $data['title'] . '</a>';
}), array('content' => array(function ($data) {
return button_edit('admin/teams/roles/' . $data['role_id'] . '/' . url_title($data['title']) . '.html');
}, function ($data) {
return button_delete('admin/teams/roles/delete/' . $data['role_id'] . '/' . url_title($data['title']) . '.html');
}), 'size' => TRUE)))->pagination(FALSE)->data($this->model('roles')->get_roles())->no_data($this('no_role'))->display();
return new Row(new Col(new Panel(array('title' => $this('roles'), 'icon' => 'fa-sitemap', 'content' => $roles, 'footer' => button_add('admin/teams/roles/add.html', $this('add_role')), 'size' => 'col-md-12 col-lg-4'))), new Col(new Panel(array('title' => $this('list_teams'), 'icon' => 'fa-gamepad', 'content' => $teams, 'footer' => button_add('admin/teams/add.html', $this('add_team')), 'size' => 'col-md-12 col-lg-8'))));
}
示例2: index
public function index($maps)
{
$games = $this->load->library('table')->add_columns(array(array('content' => function ($data) {
$output = '<img src="' . path($data['icon_id']) . '" alt="" /> ' . $data['title'];
return $data['parent_id'] ? '<span style="padding-left: 35px;">' . $output . '</span>' : $output;
}, 'search' => function ($data) {
return $data['title'];
}), array('content' => array(function ($data) {
return button_edit('admin/games/' . $data['game_id'] . '/' . $data['name'] . '.html');
}, function ($data) {
return button_delete('admin/games/delete/' . $data['game_id'] . '/' . $data['name'] . '.html');
}), 'size' => TRUE)))->data($this->model()->get_games())->no_data($this('no_games'))->pagination(FALSE)->display();
return new Row(new Col(new Panel(array('title' => $this('game_list'), 'icon' => 'fa-gamepad', 'content' => $games, 'footer' => button_add('admin/games/add.html', $this('add_game')), 'size' => 'col-md-12 col-lg-4'))), new Col(new Panel(array('title' => $this('maps_list_title'), 'icon' => 'fa-picture-o', 'content' => $this('unavailable_feature'), 'style' => 'panel-info', 'size' => 'col-md-12 col-lg-8'))));
}
示例3: index
public function index($members)
{
$table_groups = $this->load->library('table')->add_columns(array(array('content' => function ($data) {
return NeoFrag::loader()->groups->display($data['data_id']);
}, 'search' => function ($data) {
return NeoFrag::loader()->groups->display($data['data_id'], FALSE, FALSE);
}, 'sort' => function ($data) {
return NeoFrag::loader()->groups->display($data['data_id'], FALSE, FALSE);
}), array('content' => array(function ($data) {
return button_edit('admin/members/groups/edit/' . $data['url'] . '.html');
}, function ($data) {
if (!$data['auto']) {
return button_delete('admin/members/groups/delete/' . $data['url'] . '.html');
}
}))))->data($this->groups())->pagination(FALSE)->save();
$table_users = $this->table->add_columns(array(array('title' => $this('member'), 'content' => function ($data) {
return NeoFrag::loader()->user->link($data['user_id'], $data['username']);
}, 'sort' => function ($data) {
return $data['username'];
}, 'search' => function ($data) {
return $data['username'];
}), array('title' => $this('email'), 'content' => function ($data) {
return '<a href="mailto:' . $data['email'] . '">' . $data['email'] . '</a>';
}, 'sort' => function ($data) {
return $data['email'];
}, 'search' => function ($data) {
return $data['email'];
}), array('title' => $this('groups'), 'content' => function ($data) {
return NeoFrag::loader()->groups->user_groups($data['user_id']);
}, 'sort' => function ($data) {
return NeoFrag::loader()->groups->user_groups($data['user_id'], FALSE);
}, 'search' => function ($data) {
return NeoFrag::loader()->groups->user_groups($data['user_id'], FALSE);
}), array('title' => $this('registration_date'), 'content' => function ($data) {
return '<span data-toggle="tooltip" title="' . timetostr(NeoFrag::loader()->lang('date_time_long'), $data['registration_date']) . '">' . time_span($data['registration_date']) . '</span>';
}, 'sort' => function ($data) {
return $data['registration_date'];
}), array('title' => $this('last_activity'), 'content' => function ($data) {
return '<span data-toggle="tooltip" title="' . timetostr(NeoFrag::loader()->lang('date_time_long'), $data['last_activity_date']) . '">' . time_span($data['last_activity_date']) . '</span>';
}, 'sort' => function ($data) {
return $data['last_activity_date'];
}), array('content' => array(function ($data, $loader) {
return button('admin/members/ban/' . $data['user_id'] . '/' . url_title($data['username']) . '.html', 'fa-ban', $loader->lang('ban'), 'warning');
}, function ($data) {
return button_edit('admin/members/' . $data['user_id'] . '/' . url_title($data['username']) . '.html');
}, function ($data) {
return button_delete('admin/members/delete/' . $data['user_id'] . '/' . url_title($data['username']) . '.html');
}))))->data($members)->save();
return new Row(new Col(new Panel(array('title' => $this('groups'), 'icon' => 'fa-users', 'content' => $table_groups->display(), 'footer' => button_add('admin/members/groups/add.html', $this('add_group')), 'size' => 'col-md-12 col-lg-3'))), new Col(new Panel(array('title' => $this('members'), 'icon' => 'fa-users', 'content' => $table_users->display(), 'size' => 'col-md-12 col-lg-9'))));
}
示例4: index
public function index($news)
{
$this->title($this('news'))->load->library('table');
$news = $this->table->add_columns(array(array('content' => function ($data, $loader) {
return $data['published'] ? '<i class="fa fa-circle" data-toggle="tooltip" title="' . $loader->lang('published') . '" style="color: #7bbb17;"></i>' : '<i class="fa fa-circle-o" data-toggle="tooltip" title="' . $loader->lang('awaiting_publication') . '" style="color: #535353;"></i>';
}, 'sort' => function ($data) {
return $data['published'];
}, 'size' => TRUE), array('title' => $this('title'), 'content' => function ($data) {
return '<a href="' . url('news/' . $data['news_id'] . '/' . url_title($data['title']) . '.html') . '">' . $data['title'] . '</a>';
}, 'sort' => function ($data) {
return $data['title'];
}, 'search' => function ($data) {
return $data['title'];
}), array('title' => $this('category'), 'content' => function ($data) {
return '<a href="' . url('admin/news/categories/' . $data['category_id'] . '/' . $data['category_name'] . '.html') . '"><img src="' . path($data['category_icon']) . '" alt="" /> ' . $data['category_title'] . '</a>';
}, 'sort' => function ($data) {
return $data['category_title'];
}, 'search' => function ($data) {
return $data['category_title'];
}), array('title' => $this('author'), 'content' => function ($data) {
return NeoFrag::loader()->user->link($data['user_id'], $data['username']);
}, 'sort' => function ($data) {
return $data['username'];
}, 'search' => function ($data) {
return $data['username'];
}), array('title' => $this('date'), 'content' => function ($data) {
return '<span data-toggle="tooltip" title="' . timetostr(NeoFrag::loader()->lang('date_time_long'), $data['date']) . '">' . time_span($data['date']) . '</span>';
}, 'sort' => function ($data) {
return $data['date'];
}), array('title' => '<i class="fa fa-comments-o" data-toggle="tooltip" title="' . i18n('comments') . '"></i>', 'content' => function ($data) {
return NeoFrag::loader()->library('comments')->admin_comments('news', $data['news_id']);
}, 'size' => TRUE), array('content' => array(function ($data) {
return button_edit('admin/news/' . $data['news_id'] . '/' . url_title($data['title']) . '.html');
}, function ($data) {
return button_delete('admin/news/delete/' . $data['news_id'] . '/' . url_title($data['title']) . '.html');
}), 'size' => TRUE)))->sort_by(5, SORT_DESC, SORT_NUMERIC)->data($news)->no_data($this('no_news'))->display();
$categories = $this->table->add_columns(array(array('content' => function ($data) {
return '<a href="' . url('admin/news/categories/' . $data['category_id'] . '/' . $data['name'] . '.html') . '"><img src="' . path($data['icon_id']) . '" alt="" /> ' . $data['title'] . '</a>';
}, 'search' => function ($data) {
return $data['title'];
}, 'sort' => function ($data) {
return $data['title'];
}), array('content' => array(function ($data) {
return button_edit('admin/news/categories/' . $data['category_id'] . '/' . $data['name'] . '.html');
}, function ($data) {
return button_delete('admin/news/categories/delete/' . $data['category_id'] . '/' . $data['name'] . '.html');
}), 'size' => TRUE)))->pagination(FALSE)->data($this->model('categories')->get_categories())->no_data($this('no_category'))->display();
return new Row(new Col(new Panel(array('title' => $this('categories'), 'icon' => 'fa-align-left', 'content' => $categories, 'footer' => button_add('admin/news/categories/add.html', $this('create_category')), 'size' => 'col-md-12 col-lg-3'))), new Col(new Panel(array('title' => $this('list_news'), 'icon' => 'fa-file-text-o', 'content' => $news, 'footer' => button_add('admin/news/add.html', $this('add_news')), 'size' => 'col-md-12 col-lg-9'))));
}
示例5: index
public function index($pages)
{
$this->load->library('table')->add_columns(array(array('content' => function ($data, $loader) {
return $data['published'] ? '<i class="fa fa-circle" data-toggle="tooltip" title="' . $loader->lang('published') . '" style="color: #7bbb17;"></i>' : '<i class="fa fa-circle-o" data-toggle="tooltip" title="' . $loader->lang('awaiting_publication') . '" style="color: #535353;"></i>';
}, 'sort' => function ($data) {
return $data['published'];
}, 'size' => TRUE), array('title' => $this('page_title'), 'content' => function ($data) {
return $data['published'] ? '<a href="' . url($data['name'] . '.html') . '">' . $data['title'] . '</a> <small class="text-muted">' . $data['subtitle'] . '</small>' : $data['title'];
}, 'sort' => function ($data) {
return $data['title'];
}, 'search' => function ($data) {
return $data['title'];
}), array('content' => array(function ($data, $loader) {
return $data['published'] ? button($data['name'] . '.html', 'fa-eye', $loader->lang('view_page')) : '';
}, function ($data) {
return button_edit('admin/pages/' . $data['page_id'] . '/' . url_title($data['title']) . '.html');
}, function ($data) {
return button_delete('admin/pages/delete/' . $data['page_id'] . '/' . url_title($data['title']) . '.html');
}), 'size' => TRUE)))->data($pages)->no_data($this('no_pages'));
return new Panel(array('title' => $this('list_pages'), 'icon' => 'fa-align-left', 'content' => $this->table->display(), 'footer' => button_add('admin/pages/add.html', $this('create_page'))));
}
示例6: index
public function index($talks)
{
$this->load->library('table')->add_columns(array(array('title' => $this('talks'), 'content' => function ($data) {
return $data['name'];
}, 'sort' => function ($data) {
return $data['name'];
}, 'search' => function ($data) {
return $data['name'];
}), array('content' => array(function ($data) {
if ($data['talk_id'] > 1) {
return button_access($data['talk_id'], 'talk');
}
}, function ($data) {
if ($data['talk_id'] > 1) {
return button_edit('admin/talks/' . $data['talk_id'] . '/' . url_title($data['name']) . '.html');
}
}, function ($data) {
if ($data['talk_id'] > 1) {
return button_delete('admin/talks/delete/' . $data['talk_id'] . '/' . url_title($data['name']) . '.html');
}
}), 'size' => TRUE)))->data($talks)->no_data($this('no_talks'));
return new Panel(array('title' => $this('talks_list'), 'icon' => 'fa-comment-o', 'content' => $this->table->display(), 'footer' => button_add('admin/talks/add.html', $this('create_talk'))));
}
示例7: button_edit
</td>
<td><?php
echo $prof->gender;
?>
</td>
<td><?php
echo $prof->email;
?>
</td>
<td><?php
echo $prof->address;
?>
</td>
<td>
<?php
echo button_edit('user/updateProfile/' . $prof->user_id);
?>
<?php
echo button_delete('user/delete/' . $prof->user_id);
?>
</td>
</tr>
<?php
$no++;
}
?>
</tbody>
</table>
</div>
</div>
示例8: button_edit
echo $category->name;
?>
</td>
<td><?php
echo $tenagaahli->full_name;
?>
<br>
<small><?php
echo $tenagaahli->email;
?>
</small></td>
<td rowspan="<?php
echo $category->users->count();
?>
"><?php
echo button_edit('forum/category/edit/' . $category->id);
?>
<?php
echo button_delete('forum/category/delete/' . $category->id);
?>
</td>
<?php
} else {
?>
<td><?php
echo $tenagaahli->full_name;
?>
<br>
<small><?php
echo $tenagaahli->email;
?>
示例9: foreach
</tr>
</thead>
<tbody>
<?php
foreach ($categories as $category) {
?>
<tr>
<td><?php
echo anchor('elibrary/category/edit/' . $category->id, $category->name);
?>
</td>
<td><?php
echo $category->getMediaCount();
?>
</td>
<td><?php
echo button_edit('elibrary/category/edit/' . $category->id);
?>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>
示例10: button_edit
?>
</td>
<td><a href="<?php
echo $row->url;
?>
"><?php
echo $row->name;
?>
</a></td>
<td><?php
echo $row->description;
?>
</td>
<td>
<?php
echo button_edit('link/update/' . $row->id);
?>
<?php
echo button_delete('link/delete/' . $row->id);
?>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
</div>
</div>
示例11: button_edit
?>
<span class="switch-label" data-on="Yes" data-off="No"></span>
<span class="switch-handle"></span>
</label>
</td>
<td><?php
echo $row->getStatusLabel();
?>
</td>
<td><?php
echo $row->date;
?>
</td>
<td>
<?php
echo button_edit('article/edit/' . $row->id);
?>
<?php
echo button_delete('article/delete/' . $row->id);
?>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
</div>
<?php
示例12: button_edit
<tr>
<td><?php
echo $no;
?>
</td>
<td><?php
echo $row->name;
?>
</td>
<td><?php
echo $row->description;
?>
</td>
<td>
<?php
echo button_edit('konsultasi/updateKategori/' . $row->id);
?>
<a class="btn btn-danger btn-delete" href="<?php
echo site_url('konsultasi/deleteKategori/' . $row->id);
?>
" onClick="return doconfirm();">Hapus
</a>
</td>
</tr>
<?php
$no++;
}
?>
</tbody>
</table>
</div>
示例13: i18n
} else {
?>
<?php
echo i18n('no_message');
?>
<?php
}
}
?>
</td>
<?php
if ($NeoFrag->config->admin_url) {
?>
<td class="col-md-1 text-right">
<?php
echo button_edit('admin/forum/' . $forum['forum_id'] . '/' . url_title($forum['title']) . '.html');
?>
<?php
echo button_delete('admin/forum/delete/' . $forum['forum_id'] . '/' . url_title($forum['title']) . '.html');
?>
</td>
<?php
}
?>
</tr>
<?php
}
?>
<?php
if (empty($data['forums'])) {
?>
示例14: button_edit
<tr>
<td><?php
echo $row->id;
?>
</td>
<td><?php
echo $row->title;
?>
</td>
<td><?php
echo $row->date;
?>
</td>
<td>
<?php
echo button_edit('pages/edit/' . $row->id);
?>
<?php
echo button_delete('pages/delete/' . $row->id);
?>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
</div>
</div>
示例15: button_edit
<tr>
<td><?php
echo $row->title;
?>
</td>
<td><?php
echo $row->question;
?>
</td>
<td><?php
echo $row->answer;
?>
</td>
<td>
<?php
echo button_edit('faq/update/' . $row->id);
?>
<?php
echo button_delete('faq/delete/' . $row->id);
?>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
</div>
</div>