本文整理汇总了PHP中UI::label方法的典型用法代码示例。如果您正苦于以下问题:PHP UI::label方法的具体用法?PHP UI::label怎么用?PHP UI::label使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UI
的用法示例。
在下文中一共展示了UI::label方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getIndex
/**
* @param WidgetFilters $filters
* @param WidgetManager $widgetManager
* @param WidgetRepository $repository
* @param string $type
*/
public function getIndex(WidgetFilters $filters, WidgetManager $widgetManager, WidgetRepository $repository, $type = null)
{
Meta::loadPackage('editable');
$this->request->offsetSet('type', $type);
$widgetTypeLinks = [link_to_route('backend.widget.list', \UI::label('All', is_null($type) ? 'primary' : 'default'), [])];
$widgetManager->getAvailableTypes()->each(function (WidgetType $widgetType) use($type, &$widgetTypeLinks) {
if ($widgetType->getType() == $type) {
$this->breadcrumbs->add($widgetType->getTitle());
}
$widgetTypeLinks[] = link_to_route('backend.widget.list.by_type', \UI::label($widgetType->getTitle(), $widgetType->getType() == $type ? 'primary' : 'default'), [$widgetType->getType()]);
});
$widgets = $repository->query()->filter($filters)->paginate();
$this->setContent('widgets.list', compact('widgets', 'type', 'widgetTypeLinks'));
}
示例2: __
echo __('Widget template');
?>
</span>
</div>
<div class="note note-info no-margin-b">
<div class="row">
<div class="col-sm-offset-2 col-sm-10">
<strong><?php
echo __('Widget variables');
?>
: </strong>
<?php
foreach ($params as $param) {
?>
<?php
echo UI::label($param);
?>
<?php
}
?>
</div>
</div>
</div>
<?php
echo View::factory('helper/snippet_select', array('template' => $widget->template, 'default' => $widget->default_template() ? UI::button(UI::hidden(__('Default template'), array('sm', 'xs')), array('href' => Route::get('backend')->uri(array('controller' => 'widgets', 'action' => 'template', 'id' => $widget->id)), 'icon' => UI::icon('desktop'), 'id' => 'defaultTemplateButton', 'class' => 'popup fancybox.iframe btn-default')) : NULL));
?>
<?php
}
?>
示例3: array
<?php
if ($action != 'add' and $page->loaded()) {
?>
<?php
if (isset($page->updated_on)) {
?>
<?php
echo UI::label(__('Last updated by :anchor on :date', array(':anchor' => HTML::anchor(Route::get('backend')->uri(array('controller' => 'users', 'action' => 'edit', 'id' => $page->updator->id)), $page->updator->username), ':date' => Date::format($page->updated_on, 'D, j F Y'))), 'important');
?>
<?php
}
?>
<?php
echo HTML::anchor($page->get_frontend_url(), UI::label(UI::icon('globe') . ' ' . __('View page')), array('class' => 'item-preview', 'target' => '_blank'));
?>
<?php
}
?>
</div>
</div>
<div class="tab-pane fade" id="page-meta-panel">
<?php
echo View::factory('page/blocks/meta', array('page' => $page, 'action' => $action));
?>
</div>
<div class="tab-pane fade" id="page-options-panel">
<?php
示例4: array
<?php
}
?>
<?php
if (!empty($child->behavior_id)) {
?>
<?php
echo UI::label(__(ucfirst(Inflector::humanize($child->behavior_id))), 'default');
}
?>
<?php
if (!empty($child->use_redirect)) {
?>
<?php
echo UI::label(__('Redirect: :url', array(':url' => $child->redirect_url)));
}
?>
<?php
echo $child->get_public_anchor();
?>
</div>
<div class="date col-xs-2 text-right text-muted">
<?php
echo Date::format($child->published_on);
?>
</div>
<div class="status col-xs-2 text-right">
<?php
echo $child->get_status();
示例5: foreach
$head = $ui->row()->open();
$h_col = $ui->col()->width(12)->open();
$box = $ui->box()->title('Validation Requests')->uiType('primary')->open();
if (!$emp_validation_details) {
$this->callout()->title("No Pending Requests")->desc("There are no pending requests.")->show();
} else {
$table = $ui->table()->bordered()->condensed()->responsive()->open();
echo "<thead><tr align='center'>\n\t\t\t\t\t<td rowspan='2' style='vertical-align:middle' ><b>Employee Id</b></td>\n\t\t\t\t\t<td rowspan='2' style='vertical-align:middle' ><b>Employee Name</b></td>\n\t\t\t\t\t<td colspan='6' style='vertical-align:middle' ><b>Status</b></td>\n\t\t\t\t</tr>\n\t\t\t\t<tr align='center'>\n\t\t\t\t\t<td style='vertical-align:middle'><b>Profile Pic</b></td>\n\t\t\t\t\t<td style='vertical-align:middle'><b>Basic Details</b></td>\n\t\t\t\t\t<td style='vertical-align:middle'><b>Previous Employment Details</b></td>\n\t\t\t\t\t<td style='vertical-align:middle'><b>Dependent Family Member Details</b></td>\n\t\t\t\t\t<td style='vertical-align:middle'><b>Educational Qualifications</b></td>\n\t\t\t\t\t<td style='vertical-align:middle'><b>Last 5 Year Stay Details</b></td>\n\t\t\t\t</tr></thead><tbody>";
$i = 0;
foreach ($emp_validation_details as $v_row) {
$i++;
$user = $this->user_details_model->getUserById($v_row->id);
$emp_name = ucwords($user->salutation . '. ' . $user->first_name . ($user->middle_name != '' ? ' ' . $user->middle_name : '') . ($user->last_name != '' ? ' ' . $user->last_name : ''));
echo "<tr>\n\t\t\t\t\t<td align=\"center\" >" . $v_row->id . "</td>\n\t\t\t\t\t<td align=\"center\">" . $emp_name . "</td>";
//profile picture step
$label = $ui->label()->text(ucwords($v_row->profile_pic_status));
if ($v_row->profile_pic_status == 'pending') {
echo "<td align=\"center\" >";
if ($this->authorization->is_auth('est_ar')) {
echo "<a href='" . site_url("employee/validation/validate_step/" . $v_row->id . "/0") . "'>";
}
$label->uiType('info')->show();
if ($this->authorization->is_auth('est_ar')) {
echo '</a>';
}
echo '</td>';
} else {
if ($v_row->profile_pic_status == 'rejected') {
echo "<td align=\"center\" ><a onclick=\"reject_reason('0" . $i . "')\" >";
$label->uiType('danger')->show();
echo "</a></td>";
示例6: array
echo $page->field('layout_file', array('prefix' => 'page'));
?>
</div>
<div class="col-md-3">
<?php
if (!empty($layout_name)) {
?>
<?php
echo UI::label(__('Current layout: :name', array(':name' => $layout_link)));
?>
<?php
} else {
?>
<?php
echo UI::label(__('Layout not set'), 'danger');
?>
<?php
}
?>
</div>
</div>
<hr class="panel-wide" />
<div class="form-group">
<?php
echo $page->label('behavior_id', array('class' => 'control-label col-md-3'));
?>
<div class="col-md-6">
示例7:
}
if ($photopath == FALSE || $photopath == "") {
echo '<img src="' . base_url() . 'assets/images/employee/noProfileImage.png" id="view_photo" width="145" height="150"/>';
} else {
echo '<img id="view_photo" src="' . base_url() . 'assets/images/' . $photopath . '" height="150" />';
}
$col1->close();
if ($pending_photopath) {
$col2 = $ui->col()->width(6)->open();
if ($pending_photopath == FALSE || $pending_photopath == "") {
echo '<img src="' . base_url() . 'assets/images/employee/noProfileImage.png" id="pending_photo" width="145" height="150"/>';
} else {
echo '<img id="pending_photo" src="' . base_url() . 'assets/images/' . $pending_photopath . '" height="150" />';
}
if ($status == 'pending') {
echo '<br>' . $ui->label()->uiType('info')->text('Pending');
} else {
if ($status == 'rejected') {
echo '<br>' . $ui->label()->uiType('danger')->text('Rejected');
}
}
$col2->close();
}
echo '</div></center>';
$row1->close();
$row2 = $ui->row()->open();
$ui->imagePicker()->width(12)->label("Select New Picture<span style= \"color:red;\"> *</span>")->required()->id('photo')->name('photo')->show();
$row2->close();
echo '<a href="' . site_url('employee/edit') . '">';
$ui->button()->value("Back")->large()->uiType('primary')->icon($ui->icon("arrow-left"))->show();
echo '</a>';
示例8: array
echo HTML::anchor(Route::get('datasources')->uri(array('controller' => 'field', 'directory' => 'hybrid', 'action' => 'edit', 'id' => $field->id)), $field->header);
?>
<?php
} else {
?>
<strong><?php
echo $field->header;
?>
</strong>
<?php
}
?>
</td>
<td>
<?php
echo UI::label($field->type);
?>
</td>
<td>
<?php
$attrs = array();
if (!$ds->has_access('field.edit')) {
$attrs['disabled'] = 'disabled';
}
echo Form::checkbox('in_headline[' . $field->id . ']', 1, (bool) $field->in_headline, $attrs);
?>
</td>
<td>
<?php
if ($field->is_indexable()) {
$attrs = array();
示例9: ip
/**
*
* @return string
*/
public function ip()
{
$ip = Arr::get($this->additional, ':ip');
return empty($ip) ? NULL : UI::label($ip, 'default');
}
示例10: array
}
?>
</th>
<td class="modified hidden-xs">
<?php
echo Date::format($layout->modified());
?>
</td>
<td class="size">
<?php
echo Text::bytes($layout->size());
?>
</td>
<td class="direction hidden-xs">
<?php
echo UI::label($layout->get_relative_path());
?>
</td>
<td class="actions text-right">
<?php
if (ACL::check('layout.delete')) {
?>
<?php
echo UI::button(NULL, array('icon' => UI::icon('times fa-inverse'), 'href' => Route::get('backend')->uri(array('controller' => 'layout', 'action' => 'delete', 'id' => $layout->name)), 'class' => 'btn-danger btn-xs btn-confirm'));
?>
<?php
}
?>
</td>
</tr>
<?php
示例11: UI
$ui = new UI();
$upRow = $ui->row()->open();
$col = $ui->col()->open();
switch ($validation_status) {
case "approved":
$status = array("ui_type" => "success", "text" => "");
break;
case "pending":
$status = array("ui_type" => "warning", "text" => "Pending for Approval");
break;
case "rejected":
$status = array("ui_type" => "danger", "text" => "Rejected");
break;
}
$box = $ui->box()->id('show_details')->title('Educational Qualifications ' . $ui->label()->uiType($status['ui_type'])->text($status['text']))->uiType($status['ui_type'])->open();
$details = count($pending_emp_education_details) ? $pending_emp_education_details : $emp_education_details;
if (count($details)) {
$table = $ui->table()->id('tbl4')->responsive()->bordered()->striped()->open();
echo '<thead><tr align="center">
<td style="vertical-align:middle" ><b>S no.</b></td>
<td style="vertical-align:middle" ><b>Examination</b></td>
<td style="vertical-align:middle" ><b>Course(Specialization)</b></td>
<td style="vertical-align:middle" ><b>College/University/Institute</b></td>
<td style="vertical-align:middle" ><b>Year</b></td>
<td style="vertical-align:middle" ><b>Percentage/Grade</b></td>
<td style="vertical-align:middle" ><b>Class/Division</b></td>
<td style="vertical-align:middle" ><b>Edit/Delete</b></td>
</tr>
</thead><tbody>';
$i = 1;
示例12: UI
$ui = new UI();
$upRow = $ui->row()->open();
$col = $ui->col()->open();
switch ($validation_status) {
case "approved":
$status = array("ui_type" => "success", "text" => "");
break;
case "pending":
$status = array("ui_type" => "warning", "text" => "Pending for Approval");
break;
case "rejected":
$status = array("ui_type" => "danger", "text" => "Rejected");
break;
}
$box = $ui->box()->id('show_details')->title('Dependent Family Members Details ' . $ui->label()->uiType($status['ui_type'])->text($status['text']))->uiType($status['ui_type'])->open();
$details = count($pending_emp_family_details) ? $pending_emp_family_details : $emp_family_details;
if (count($details)) {
$table = $ui->table()->id('tbl3')->responsive()->condensed()->bordered()->striped()->open();
echo '<thead><tr align="center">
<td style="vertical-align:middle" ><b>S no.</b></td>
<td style="vertical-align:middle" ><b>Name</b></td>
<td style="vertical-align:middle" ><b>Relationship</b></td>
<td style="vertical-align:middle" ><b>Date of Birtd</b></td>
<td style="vertical-align:middle" ><b>Profession</b></td>
<td style="vertical-align:middle" ><b>Present Postal Address</b></td>
<td style="vertical-align:middle" ><b>Active/Inactive</b></td>
<td style="vertical-align:middle" ><b>Photograph</b></td>
<td style="vertical-align:middle" ><b>Edit</b></td>
</tr>
</thead><tbody>';
示例13: array
</tr>
</thead>
';
$i = 1;
$array_options = array();
foreach ($alloted_company_basic_info as $row) {
$date_from = date("d-M-Y", strtotime($row->date_from));
$date_to = date("d-M-Y", strtotime($row->date_to));
echo '
<tr>
<td>' . $i++ . '</td>
<td>' . $row->company_name . '</td>
<td>' . $date_from . " to " . $date_to . '</td>
<td>';
if ($row->status == "Proposed") {
$ui->label()->uiType("info")->text($row->status)->show();
} else {
if ($row->status == "Confirmed") {
$ui->label()->uiType("success")->text($row->status)->show();
} else {
if ($row->status == "Rejected") {
$ui->label()->uiType("danger")->text($row->status)->show();
} else {
if ($row->status == "Pending") {
$ui->label()->uiType("warning")->text($row->status)->show();
}
}
}
}
echo '
</td>
示例14: get_public_anchor
/**
* Получение ссылки на страницу
*
* @return string
*/
public function get_public_anchor()
{
return HTML::anchor($this->get_frontend_url(), UI::label(UI::icon('globe') . ' ' . __('View page')), array('class' => 'item-preview', 'target' => '_blank'));
}
示例15: date
<tr>
<th>S.No</th>
<th>Date</th>
<th>Company Name</th>
<th>Salary(CTC,Gross,Take Home)</th>
<th>Status</th>
</tr>
</thead>
';
foreach ($company_basic_info as $row) {
$date_from = date("d-M-Y", strtotime($row->date_from));
$date_to = date("d-M-Y", strtotime($row->date_to));
echo '
<tr>
<td>' . $sno++ . '</td>
<td>' . (isset($row->date_from) && isset($row->date_to) ? $date_from . " to " . $date_to : "No Date Proposed") . '</td>
<td>' . $row->company_name . "(" . $row->job_posting . ")<br>(<a href = " . $row->website . ">" . $row->website . "</a>)" . '</td>
<td>' . $row->ctc . "<br>" . $row->gross . "<br>" . $row->take_home . '</td>
<td>';
if (isset($row->status)) {
$ui->label()->uiType("info")->text($row->status)->show();
} else {
$ui->label()->uiType("warning")->text("Pending")->show();
}
echo '</td>
</tr>';
}
$table->close();
$box_basic_details->close();
$column1->close();
$outer_row->close();