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


PHP HTML::edit_button方法代码示例

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


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

示例1:

    ?>
	<tr>
		<td><?php 
    echo $s->id;
    ?>
</td>
		<td><?php 
    echo $s->payment_name;
    ?>
</td>
		<td><?php 
    echo $s->position;
    ?>
</td>
		<td><?php 
    echo $s->status == 'Y' ? '<i class="icon-ok"></i>' : "";
    ?>
</td>
		<td><?php 
    echo HTML::edit_button($s->id, 'admin/payment/main');
    ?>
</td>
	</tr>
		<?php 
}
?>
	</tbody>

</table>

开发者ID:Alexander711,项目名称:naav1,代码行数:29,代码来源:all.php

示例2: 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>
开发者ID:Alexander711,项目名称:naav1,代码行数:31,代码来源:all.php

示例3:

            break;
    }
    echo "<span class=\"label " . $class . "\">" . $statuses[$s->status] . "</span>";
    ?>
</td>
		<td><?php 
    echo $s->entrance_fee == 'Y' ? '<i class="icon-ok"></i>' : "";
    ?>
</td>
		<td>
			<?php 
    if ($s->status == 'N') {
        echo '<a class="btn" title="Провести" href="/admin/payment/invoice/process/' . $s->id . '">Провести платеж <i class="icon-play"></i></a>';
    }
    ?>

		</td><td>

			<?php 
    echo HTML::edit_button($s->id, 'admin/payment/invoice');
    ?>
		</td>
	</tr>
		<?php 
}
?>
	</tbody>

</table>

开发者ID:Alexander711,项目名称:naav1,代码行数:29,代码来源:all.php

示例4: foreach

        </tr>
    </thead>

    <tbody>
    <?php 
foreach ($news->order_by('date', 'DESC')->find_all() as $c) {
    ?>
        <tr>
            <td><?php 
    echo $c->title;
    ?>
</td>
            <td><?php 
    echo MyDate::show($c->date, TRUE);
    ?>
</td>
            <td><?php 
    echo HTML::activate_checker($c->id, $c->active, 'admin/news/world');
    ?>
</td>
            <td><?php 
    echo HTML::edit_button($c->id, 'admin/news/world') . ' ' . HTML::delete_button($c->id, 'admin/news/world');
    ?>
</td>
        </tr>
    <?php 
}
?>
    </tbody>

</table>
开发者ID:Alexander711,项目名称:naav1,代码行数:31,代码来源:all.php

示例5: 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;
?>
开发者ID:Alexander711,项目名称:naav1,代码行数:31,代码来源:all.php

示例6: 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>
开发者ID:Alexander711,项目名称:naav1,代码行数:31,代码来源:all.php

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

示例8: 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>
开发者ID:Alexander711,项目名称:naav1,代码行数:31,代码来源:all.php

示例9: foreach

            <table>
                <tbody>
                <?php 
foreach ($stock->find_all() as $s) {
    ?>
                    <tr>
                        <td><?php 
    echo $s->service->orgtype->name . ' &laquo;' . $s->service->name . '&raquo;';
    ?>
</td>
                        <td><?php 
    echo MyDate::show($s->date, TRUE);
    ?>
</td>
                        <td style="width: 85px;"><?php 
    echo HTML::view('stocks/' . $s->id) . ' ' . HTML::edit_button($s->id, 'admin/service/stock');
    ?>
</td>
                    </tr>
                <?php 
}
?>
                <?php 
unset($s);
?>
                </tbody>
            </table>
        </div>
        <div class="span8">
            <h5>Последние новости компаний</h5>
            <table>
开发者ID:Alexander711,项目名称:naav1,代码行数:31,代码来源:main.php

示例10: 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>
开发者ID:Alexander711,项目名称:naav1,代码行数:31,代码来源:services_table.php

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

示例12: __

            <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>
开发者ID:Alexander711,项目名称:naav1,代码行数:31,代码来源:all.php

示例13:

    }
    ?>
        <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>
开发者ID:Alexander711,项目名称:naav1,代码行数:31,代码来源:all.php

示例14: 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>
开发者ID:Alexander711,项目名称:naav1,代码行数:31,代码来源:service_all.php

示例15: foreach

<table class="table table-bordered table-striped">
    <thead>
        <tr>
            <th style="width: 350px;">Описание уведомления (не меняется)</th>
            <th>Текст</th>
            <th style="width: 36px;"></th>
        </tr>
    </thead>
    <tbody>
    <?php 
foreach ($notice->order_by('date', 'DESC')->find_all() as $c) {
    ?>
        <tr>
            <td><?php 
    echo $c->description;
    ?>
</td>
            <td><?php 
    echo Text::limit_words(strip_tags($c->text), 120);
    ?>
</td>
            <td><?php 
    echo HTML::edit_button($c->id, 'admin/notice/edit_system', TRUE);
    ?>
</td>
        </tr>
    <?php 
}
?>
    </tbody>
</table>
开发者ID:Alexander711,项目名称:naav1,代码行数:31,代码来源:system_all.php


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