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


PHP button_delete函数代码示例

本文整理汇总了PHP中button_delete函数的典型用法代码示例。如果您正苦于以下问题:PHP button_delete函数的具体用法?PHP button_delete怎么用?PHP button_delete使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: sessions

 public function sessions($sessions)
 {
     $this->title($this('sessions'));
     $active_sessions = $this->load->library('table')->add_columns(array(array('content' => function ($data) {
         return $data['remember_me'] ? '<i class="fa fa-toggle-on text-green" data-toggle="tooltip" title="' . i18n('persistent_connection') . '"></i>' : '<i class="fa fa-toggle-off text-grey" data-toggle="tooltip" title="' . i18n('nonpersistent_connection') . '"></i>';
     }, 'size' => TRUE, 'align' => 'center'), array('content' => function ($data) {
         return user_agent($data['user_agent']);
     }, 'size' => TRUE, 'align' => 'center'), array('title' => $this('ip_address'), 'content' => function ($data) {
         return geolocalisation($data['ip_address']) . '<span data-toggle="tooltip" data-original-title="' . $data['host_name'] . '">' . $data['ip_address'] . '</span>';
     }), array('title' => $this('reference'), 'content' => function ($data, $loader) {
         return $data['referer'] ? urltolink($data['referer']) : $loader->lang('unknown');
     }), array('title' => $this('initial_session_date'), 'content' => function ($data) {
         return '<span data-toggle="tooltip" title="' . timetostr(NeoFrag::loader()->lang('date_time_long'), $data['date']) . '">' . time_span($data['date']) . '</span>';
     }), array('title' => $this('last_activity'), 'content' => function ($data) {
         return '<span data-toggle="tooltip" title="' . timetostr(NeoFrag::loader()->lang('date_time_long'), $data['last_activity']) . '">' . time_span($data['last_activity']) . '</span>';
     }), array('content' => array(function ($data) {
         if ($data['session_id'] != NeoFrag::loader()->session('session_id')) {
             return button_delete('user/sessions/delete/' . $data['session_id'] . '.html');
         }
     }))))->pagination(FALSE)->data($this->user->get_sessions())->save();
     $sessions_history = $this->table->add_columns(array(array('content' => function ($data) {
         return user_agent($data['user_agent']);
     }, 'size' => TRUE, 'align' => 'center'), array('title' => $this('ip_address'), 'content' => function ($data) {
         return geolocalisation($data['ip_address']) . '<span data-toggle="tooltip" data-original-title="' . $data['host_name'] . '">' . $data['ip_address'] . '</span>';
     }), array('title' => $this('reference'), 'content' => function ($data, $loader) {
         return $data['referer'] ? urltolink($data['referer']) : $loader->lang('unknown');
     }), array('title' => $this('initial_session_date'), 'content' => function ($data) {
         return '<span data-toggle="tooltip" title="' . timetostr(NeoFrag::loader()->lang('date_time_long'), $data['date']) . '">' . time_span($data['date']) . '</span>';
     })))->data($sessions)->no_data($this('no_historic_available'));
     return array(new Panel(array('title' => $this('my_active_sessions'), 'icon' => 'fa-shield', 'content' => $active_sessions->display())), new Panel(array('title' => $this('sessions_historic'), 'icon' => 'fa-power-off', 'content' => $sessions_history->display())), new Button_back('user.html'));
 }
开发者ID:nsystem1,项目名称:neofrag-cms,代码行数:31,代码来源:index.php

示例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'))));
 }
开发者ID:nsystem1,项目名称:neofrag-cms,代码行数:14,代码来源:admin.php

示例3: 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'))));
 }
开发者ID:nsystem1,项目名称:neofrag-cms,代码行数:49,代码来源:admin.php

示例4: 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'))));
 }
开发者ID:agreements,项目名称:neofrag-cms,代码行数:21,代码来源:admin.php

示例5: 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'))));
 }
开发者ID:nsystem1,项目名称:neofrag-cms,代码行数:23,代码来源:admin.php

示例6: render

 /**
  * render the manage_files action
  *
  */
 function render(&$event, $param)
 {
     global $ID;
     $perm = auth_quickaclcheck($ID);
     if ($event->data != 'manage_files') {
         return;
     }
     $event->preventDefault();
     if ($perm < AUTH_READ) {
         echo '<h1>Error</h1><p>You do not have permission to view this page</p>';
         return;
     }
     $project = Project::project();
     if ($project == NULL) {
         echo '<h1>Error</h1>';
         $project = getNS($ID);
         $path = explode(":", $project);
         if (!$project || $path[0] != PROJECTS_NAMESPACE) {
             echo "<p>Projects wiki has to work under the " . PROJECTS_NAMESPACE . " namespace</p>";
             return;
         }
         $parent = getNS($project);
         if (!$parent) {
             echo "<p>The namespace " . PROJECTS_NAMESPACE . " has not been created yet!</p>";
             return;
         }
         echo "<p>This project does not exist!</p>";
         $name = noNS($parent);
         $link = DOKU_URL . "/doku.php?id={$parent}:{$name}&do=manage_files";
         echo "<p>Go back to <a href=\"{$link}\">{$parent}</a>";
         return;
     }
     echo '<h1>Manage Project ' . $project->name() . '</h1>';
     $files = $project->files();
     ksort($files);
     echo "<h1>Manage Files</h1>";
     echo "<table>";
     foreach (array(SOURCE, TARGET, CROSSLINK) as $type) {
         $count = 0;
         $utype = ucfirst($type);
         echo "<tr><td></td><td></td><td><h2>{$utype} Files</h2></td></tr>";
         foreach ($files as $file) {
             if ($file->type() != $type) {
                 continue;
             }
             echo "<tr>";
             $name = $file->name();
             echo "<td>";
             if ($file->is_target() && $perm > AUTH_READ) {
                 echo button_remake($project->id($name));
             }
             echo "</td>";
             echo "<td>";
             if ($perm >= AUTH_DELETE) {
                 echo button_delete($project->id($name));
             }
             echo "</td>";
             echo "<td>";
             echo html_wikilink($project->id($name));
             if ($project->error($name) != NULL) {
                 echo "<img src=\"" . DOKU_URL . "/lib/images/error.png\"></img>";
             }
             echo "</td>";
             echo "</tr>";
             $count++;
         }
         if ($count == 0) {
             echo "<tr><td></td><td></td><td>No {$type} files in this project</td></tr>";
         }
     }
     $files = $project->subprojects();
     if ($files) {
         sort($files);
         echo "<tr><td></td><td></td><td><h2>Subprojects</h2></td></tr>";
         foreach ($files as $file) {
             $id = $project->name() . ":{$file}";
             $link = DOKU_URL . "/doku.php?id={$id}:{$file}&do=manage_files";
             echo "<tr><td></td><td></td><td>";
             echo "<a href=\"{$link}\">{$file}</a>";
             echo "</td>";
             echo "</tr>";
         }
     }
     echo "</table>";
     $parent = $project->parent();
     if ($parent != NULL) {
         echo "<h1>Parent project</h1>";
         $name = $parent->name();
         $file = end(explode(":", $name));
         $link = DOKU_URL . "/doku.php?id={$name}:{$file}&do=manage_files";
         echo "<a href=\"{$link}\">{$name}</a>";
     }
     if ($perm <= AUTH_READ) {
         return;
     }
     echo "<p/><h1>Create Files</h1>";
//.........这里部分代码省略.........
开发者ID:omusico,项目名称:isle-web-framework,代码行数:101,代码来源:action.php

示例7: button_edit

                        </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 
custom_script();
?>
<script type="text/javascript">
开发者ID:singgihsap,项目名称:elearning,代码行数:31,代码来源:index.php

示例8: site_url

        ?>
</td>
				  				<td><?php 
        echo $media->status_format;
        ?>
</td>
				  				<td><?php 
        echo $media->created_at->format('d-m-Y H:i:s');
        ?>
</td>
				  				<td><a href="<?php 
        echo site_url('elibrary/edit/' . $media->id);
        ?>
" class="label label-primary">Review</a></td>
				  				<td><?php 
        echo button_delete('elibrary/delete/' . $media->id . '?status=' . $media->status);
        ?>
</td>
				  			</tr>
		  				<?php 
    }
    ?>
		  			<?php 
} else {
    ?>
		  				<tr class="warning">
		  					<td colspan="5">Tidak ada media</td>
		  				</tr>
		  			<?php 
}
?>
开发者ID:fajarekos,项目名称:elearning,代码行数:31,代码来源:show.php

示例9: 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>
开发者ID:singgihsap,项目名称:elearning,代码行数:31,代码来源:view_user.php

示例10: button_delete

</td>
                                    <td> <?php 
            echo button_delete('konsultasi/deletePengampu/' . $category->id);
            ?>
</td>
                                </tr>
                            <?php 
        } else {
            ?>
                                <tr>
                                    <td><?php 
            echo $category->name;
            ?>
</td>
                                    <td> <?php 
            echo button_delete('konsultasi/deletePengampu/' . $category->id);
            ?>
</td>
                                </tr>
                            <?php 
        }
        ?>


                            <?php 
        $i++;
    }
    ?>
                    <?php 
}
?>
开发者ID:singgihsap,项目名称:elearning,代码行数:31,代码来源:pengampu.php

示例11: _edit

 public function _edit($team_id, $name, $title, $image_id, $icon_id, $description, $game_id)
 {
     $users = $this->db->select('u.user_id', 'u.username', 'tu.user_id IS NOT NULL AS in_team')->from('nf_users u')->join('nf_teams_users tu', 'tu.user_id = u.user_id AND tu.team_id = ' . $team_id)->join('nf_teams_roles r', 'r.role_id  = tu.role_id')->where('u.deleted', FALSE)->order_by('r.order', 'r.role_id', 'u.username')->get();
     $roles = $this->model('roles')->get_roles();
     $form_team = $this->title($this('edit_team'))->subtitle($title)->load->library('form')->add_rules('teams', array('title' => $title, 'game_id' => $game_id, 'games' => $this->model()->get_games_list(), 'image_id' => $image_id, 'icon_id' => $icon_id, 'description' => $description))->add_submit($this('edit'))->add_back('admin/teams.html')->save();
     $form_users = $this->form->add_rules(array('user_id' => array('type' => 'select', 'values' => array_filter(array_map(function ($a) {
         return !$a['in_team'] ? $a['user_id'] : NULL;
     }, $users)), 'rules' => 'required'), 'role_id' => array('type' => 'select', 'values' => array_map(function ($a) {
         return $a['role_id'];
     }, $roles), 'rules' => 'required')))->save();
     if ($form_team->is_valid($post)) {
         $this->model()->edit_team($team_id, $post['title'], $post['game'], $post['image'], $post['icon'], $post['description']);
         //add_alert('success', $this('edit_team_success_message'));
         redirect_back('admin/teams.html');
     } else {
         if ($form_users->is_valid($post)) {
             $this->db->insert('nf_teams_users', array('team_id' => $team_id, 'user_id' => $post['user_id'], 'role_id' => $post['role_id']));
             refresh();
         }
     }
     $this->load->library('table')->add_columns(array(array('content' => function ($data) {
         return NeoFrag::loader()->user->link($data['user_id'], $data['username']);
     }), array('content' => function ($data) {
         return $data['title'];
     }), array('content' => array(function ($data) use($team_id, $name) {
         return button_delete('admin/teams/players/delete/' . $team_id . '/' . $name . '/' . $data['user_id'] . '.html');
     }), 'size' => TRUE)))->pagination(FALSE)->data($this->db->select('tu.user_id', 'u.username', 'r.title')->from('nf_teams_users tu')->join('nf_users u', 'u.user_id = tu.user_id')->join('nf_teams_roles r', 'r.role_id = tu.role_id')->where('tu.team_id', $team_id)->order_by('r.title', 'u.username')->get())->no_data($this('no_players_on_team'));
     return new Row(new Col(new Panel(array('title' => $this('edit_team'), 'icon' => 'fa-gamepad', 'content' => $form_team->display(), 'size' => 'col-md-12 col-lg-7'))), new Col(new Panel(array('title' => $this('players'), 'icon' => 'fa-users', 'content' => $this->table->display(), 'footer' => $this->load->view('users', array('users' => $users, 'roles' => $roles, 'form_id' => $form_users->id)), 'size' => 'col-md-12 col-lg-5'))));
 }
开发者ID:nsystem1,项目名称:neofrag-cms,代码行数:29,代码来源:admin.php

示例12: button_delete

        ?>
</td>
                            <td><?php 
        echo $media->file_type;
        ?>
</td>
                            <td><?php 
        echo $media->file_size_format;
        ?>
</td>
                            <td><?php 
        echo $media->status_format;
        ?>
</td>
                            <td><?php 
        echo button_delete('media/delete/' . $media->id);
        ?>
</td>
                        </tr>
                    <?php 
    }
    ?>
                <?php 
} else {
    ?>
                    <tr class="warning">
                        <td colspan="5">Tidak ada media.</td>
                    </tr>
                <?php 
}
?>
开发者ID:ruly1992,项目名称:elearning,代码行数:31,代码来源:show.php

示例13: site_url

        ?>
                                <a href="<?php 
        echo site_url('comment/edit/' . $row->id);
        ?>
" class="label label-info"><i class="fa fa-edit"></i> Moderasi</a>
                                <?php 
        echo button_delete('comment/delete/' . $row->id);
        ?>
                            <?php 
    } else {
        ?>
                                <?php 
        echo button_edit('comment/edit/' . $row->id, 'sm');
        ?>
                                <?php 
        echo button_delete('comment/delete/' . $row->id);
        ?>
                            <?php 
    }
    ?>
                        </td>
                    </tr>
                <?php 
}
?>
                </tbody>
            </table>
        </div>
    </div>
</div>
开发者ID:fajarekos,项目名称:elearning,代码行数:30,代码来源:index.php

示例14: button_edit

    ?>
</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>

<script type="text/javascript">
    $(document).ready(function() {
        $('#faq').DataTable();
开发者ID:fajarekos,项目名称:elearning,代码行数:31,代码来源:index.php

示例15: button_delete

</td>
                                                <td> <?php 
                echo button_delete('elibrary/deletePengampu/' . $category->id);
                ?>
</td>
                                            </tr>
                                        <?php 
            } else {
                ?>
                                            <tr>
                                                <td><?php 
                echo $category->name;
                ?>
</td>
                                                <td> <?php 
                echo button_delete('elibrary/deletePengampu/' . $category->id);
                ?>
</td>
                                            </tr>
                                        <?php 
            }
            ?>
                                <?php 
            $i++;
        }
        ?>
                            <?php 
    }
    ?>
                        </tbody>
                    </table>
开发者ID:fajarekos,项目名称:elearning,代码行数:31,代码来源:pengampu.php


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