本文整理汇总了PHP中HTML::delete_button方法的典型用法代码示例。如果您正苦于以下问题:PHP HTML::delete_button方法的具体用法?PHP HTML::delete_button怎么用?PHP HTML::delete_button使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HTML
的用法示例。
在下文中一共展示了HTML::delete_button方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
echo $s->in_list == 'Y' ? '<i class="icon-ok"></i>' : "";
?>
</td>
<td><?php
echo $s->status == 'Y' ? '<i class="icon-ok"></i>' : "";
?>
</td>
<td><?php
echo $s->sort;
?>
</td>
<td><?php
echo $s->system == 'Y' ? '<i class="icon-ok"></i>' : "";
?>
</td>
<td><?php
echo HTML::edit_button($s->id, 'admin/payment/settings');
?>
<?php
echo $s->system == 'Y' ? "" : HTML::delete_button($s->id, 'admin/payment/settings');
?>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
示例2: foreach
?>
</p>
<table class="table table-bordered table-striped">
<thead>
<th>Название</th>
<th>Кол-во услуг в категории</th>
<th></th>
</thead>
<tbody>
<?php
foreach ($category->find_all() as $c) {
?>
<tr>
<td><?php
echo $c->name;
?>
</td>
<td><?php
echo count($c->works->find_all());
?>
</td>
<td><?php
echo HTML::edit_button($c->id, 'admin/item/workcategory') . ' ' . HTML::delete_button($c->id, 'admin/item/workcategory');
?>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
示例3: foreach
<?php
foreach ($news->order_by('date_create', 'DESC')->find_all() as $c) {
?>
<tr>
<td><?php
echo $c->service->name;
?>
</td>
<td><?php
echo $c->title;
?>
</td>
<td><?php
echo MyDate::show($c->date_create, TRUE);
?>
</td>
<td><?php
echo HTML::activate_checker($c->id, $c->active, 'admin/news/service');
?>
</td>
<td><?php
echo HTML::edit_button($c->id, 'admin/news/service') . ' ' . HTML::delete_button($c->id, 'admin/news/service');
?>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
示例4: date
</td>
<td><?php
echo MyDate::show_small($u->date_create);
?>
/ <?php
echo $u->last_login != NULL ? date('d.m.Y H:i', $u->last_login) : 'ни разу';
?>
</td>
<td><?php
echo $u->expires != NULL ? Date::formatted_time($u->expires, 'd.m.Y') : '';
?>
</td>
<td>
<div class="btn-group">
<?php
echo HTML::edit_button($u->id, 'admin/users/edit_info', TRUE) . HTML::delete_button($u->id, 'admin/users');
?>
</div>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
<?php
echo $pagination;
?>
示例5: count
/ <?php
echo HTML::anchor('admin/services/reviews/' . $s->id, count($s->reviews->find_all()), array('style' => 'color: #009900;'));
?>
</td>
<td><?php
echo $s->date_create == '0000-00-00 00:00:00' ? 'Неизвестно' : MyDate::show_small($s->date_create);
?>
/
<?php
echo $s->date_edited == '0000-00-00 00:00:00' ? 'Ни разу' : MyDate::show_small($s->date_edited);
?>
/
<?php
echo $s->user->last_login != NULL ? date('d.m.Y', $s->user->last_login) : 'ни разу';
?>
</td>
<td><?php
echo HTML::activate_checker($s->id, $s->active, 'admin/services');
?>
</td>
<td>
<?php
echo HTML::edit_button($s->id, 'admin/services') . ' ' . HTML::delete_button($s->id, 'admin/services') . ' ' . HTML::add_notice($s->id);
?>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
示例6:
}
?>
<tr>
<td><?php
echo $a->title;
?>
</td>
<td><?php
echo MyDate::show($a->date_create, TRUE) . ' / ' . $a->date_edited;
?>
</td>
<td><?php
echo HTML::activate_checker($a->id, $a->active, 'admin/content/article');
?>
</td>
<td>
<div class="btn-group">
<?php
echo HTML::edit_button($a->id, 'admin/content/article');
?>
<?php
echo HTML::delete_button($a->id, 'admin/content/article');
?>
</div>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
示例7: count
<?php
echo $task->text;
?>
</div>
</div>
<div class="row-fluid">
<h5>Дополнений: <?php
echo count($task->disputes->find_all());
?>
</h5>
<?php
foreach ($task->disputes->find_all() as $d) {
?>
<div class="row-fluid">
<div style="text-align: right;"><?php
echo MyDate::show($d->date_create, TRUE) . ' ' . HTML::delete_button($d->id, 'admin/development/dispute');
?>
</div>
<div><?php
echo $d->text;
?>
</div>
</div>
<hr />
<?php
}
?>
<?php
echo FORM::open(NULL, array('class' => 'well'));
?>
示例8: foreach
<tbody>
<?php
foreach ($content->find_all() as $c) {
?>
<tr>
<td><?php
echo mb_strlen($c->title) > 0 ? $c->title : 'Заголовок отсутствует';
?>
</td>
<td><?php
echo HTML::anchor($c->url, $c->url, array('target' => '_blank'));
?>
</td>
<td><?php
echo MyDate::show($c->date, TRUE);
?>
</td>
<td><?php
echo HTML::activate_checker($c->id, $c->active, 'admin/content/portal');
?>
</td>
<td><?php
echo HTML::edit_button($c->id, 'admin/content/portal') . ' ' . HTML::delete_button($c->id, 'admin/content/portal');
?>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
示例9: __
<td><?php
echo __('task_priority_' . $t->priority);
?>
</td>
<td><span class="<?php
echo $statuses[$t->status]['css'];
?>
"><?php
echo __($statuses[$t->status]['i18n']);
?>
</span></td>
<td>
<div class="btn-group">
<?php
echo HTML::view('admin/development/task/view/' . $t->id) . HTML::edit_button($t->id, 'admin/development/task') . ' ' . HTML::delete_button($t->id, 'admin/development/task');
?>
<a href="#" class="btn btn-small dropdown-toggle" data-toggle="dropdown">Статус<span class="caret"></span></a>
<ul class="dropdown-menu">
<?php
foreach ($choose_statuses as $key => $value) {
?>
<li>
<?php
echo HTML::anchor('admin/development/task/choose_status/' . $t->id . '?status=' . $key, __($value['i18n']));
?>
</li>
<?php
}
?>
</ul>
示例10: foreach
<thead>
<tr>
<th style="width: 450px;">Текст</th>
<th>Дата</th>
<th style="width: 72px;"></th>
</tr>
</thead>
<tbody>
<?php
foreach ($notice->find_all() as $c) {
?>
<tr>
<td style="font-weight: bold;"><?php
echo Text::limit_words(strip_tags($c->text), 120);
?>
</td>
<td><?php
echo MyDate::show($c->date, TRUE);
?>
</td>
<td><?php
echo HTML::edit_button($c->id, 'admin/notice/edit_service', TRUE) . ' ' . HTML::delete_button($c->id, 'admin/notice');
?>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
示例11: nl2br
echo '<div id="service-' . $q->id . '" class="collapse">' . nl2br($service_name) . '</div>';
}
?>
</td>
<td><?php
echo $q->carbrand->name . ' ' . $q->model->name;
?>
</td>
<td><?php
echo $q->contact . ' / ' . HTML::mailto($q->email);
?>
</td>
<td><?php
echo MyDate::show($q->date, TRUE);
?>
</td>
<td><?php
echo HTML::activate_checker($q->id, $q->active, 'admin/service/qa');
?>
</td>
<td><?php
echo HTML::edit_button($q->id, 'admin/service/qa') . HTML::delete_button($q->id, 'admin/service/qa');
?>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
示例12: foreach
<th>Кол-во компаний <acronym title="">что это</acronym></th>
<th></th>
</tr>
</thead>
<tbody>
<?php
foreach ($metro->order_by('city_id', 'ASC')->order_by('name', 'ASC')->find_all() as $m) {
?>
<tr>
<td><?php
echo $m->name;
?>
</td>
<td><?php
echo $m->city->name;
?>
</td>
<td><?php
echo count($m->services->find_all());
?>
</td>
<td><?php
echo HTML::edit_button($m->id, 'admin/item/metro') . ' ' . HTML::anchor('admin/content/metro/edit/' . $m->content->id, 'Редактировать страницу', array('class' => 'btn')) . ' ' . HTML::delete_button($m->id, 'admin/item/metro');
?>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
示例13: foreach
<tbody>
<?php
foreach ($vacancy->order_by('date', 'DESC')->find_all() as $v) {
?>
<tr>
<td><?php
echo $v->service->name;
?>
</td>
<td><?php
echo $v->title;
?>
</td>
<td><?php
echo MyDate::show($v->date, TRUE);
?>
</td>
<td><?php
echo HTML::activate_checker($v->id, $v->active, 'admin/service/vacancy');
?>
</td>
<td><?php
echo HTML::edit_button($v->id, 'admin/service/vacancy') . HTML::delete_button($v->id, 'admin/service/vacancy');
?>
</td>
</tr>
<?php
}
?>
</tbody>
</table>
示例14: count
/ <?php
echo HTML::anchor('admin/services/reviews/' . $s->id, count($s->reviews->find_all()), array('style' => 'color: #009900;'));
?>
</td>
<td><?php
echo $s->date_create == '0000-00-00 00:00:00' ? 'Неизвестно' : MyDate::show_small($s->date_create);
?>
/
<?php
echo $s->date_edited == '0000-00-00 00:00:00' ? 'Ни разу' : MyDate::show_small($s->date_edited);
?>
/
<?php
echo $s->user->last_login != NULL ? date('d.m.Y', $s->user->last_login) : 'ни разу';
?>
</td>
<td><?php
echo HTML::activate_checker($s->id, $s->active, 'admin/services');
?>
</td>
<td>
<?php
echo HTML::edit_button($s->id, 'admin/services') . HTML::delete_button($s->id, 'admin/services');
?>
</td>
</tr>
<?php
}
?>
</tbody>
</table>