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


PHP UI::icon方法代码示例

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


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

示例1: fetch_headline_value

 public function fetch_headline_value($value, $document_id)
 {
     if (!empty($value)) {
         return UI::icon('tag fa-lg', array('style' => 'color: ' . $value));
     }
     return parent::fetch_headline_value($value, $document_id);
 }
开发者ID:ZerGabriel,项目名称:cms-1,代码行数:7,代码来源:color.php

示例2: icon

 /**
  * 
  * @param string $icon_name
  * @return Bootstrap_Element_Button
  */
 public function icon($icon_name)
 {
     if (!empty($icon_name)) {
         $title = $this->get('title');
         $this->set('title', UI::icon($icon_name) . ' ' . $title);
     }
     return $this;
 }
开发者ID:helpse,项目名称:kohana-twitter-bootstrap-ui,代码行数:13,代码来源:Button.php

示例3: before

 public function before()
 {
     $currentPage = Navigation::getCurrentPage();
     $this->breadcrumbs->add(\UI::icon('home'), route('backend.dashboard'));
     if (!is_null($currentPage)) {
         $this->setTitle($currentPage->getName(), $currentPage->getUrl());
     }
     \View::share('currentPage', $currentPage);
     parent::before();
 }
开发者ID:BlueCatTAT,项目名称:kodicms-laravel,代码行数:10,代码来源:BackendController.php

示例4: before

 /**
  * Loads the template [View] object.
  */
 public function before()
 {
     parent::before();
     if ($this->auto_render === TRUE) {
         if ($this->request->is_ajax() === TRUE) {
             // Load the template
             $this->template = View::factory('system/ajax');
         } else {
             $this->template = View::factory($this->template);
         }
         // Initialize empty values
         $this->template->title = NULL;
         $this->template->content = NULL;
         $this->breadcrumbs = Breadcrumbs::factory();
         $routes = Route::all();
         if (isset($routes['backend'])) {
             $this->breadcrumbs->add(UI::icon('home'), Route::get('backend')->uri());
         }
         $this->init_media();
     }
 }
开发者ID:kodicms,项目名称:core,代码行数:24,代码来源:Template.php

示例5:

									<td>
										
										<?php 
        echo $data_array[$sno][2] . " " . $data_array[$sno][3] . " " . $data_array[$sno][4] . " (" . $data_array[$sno][1] . " )";
        ?>
									</td>
									<td>
											<?php 
        echo $data_array[$sno][5];
        ?>
									</td>
									<td>
										&nbsp;&nbsp;&nbsp;
											<center>	
										<?php 
        $ui->button()->icon($ui->icon("plus"))->value('ADD')->id('submit' . $sno)->uiType('primary')->name('submit_track')->show();
        ?>
										</center>
													 
									</td>
							</tr>
										
<?php 
        $sno++;
    }
    $table->close();
}
$box->close();
$innercol2->close();
$column2->close();
$outer_row->close();
开发者ID:vivek0739,项目名称:information,代码行数:31,代码来源:edit_group.php

示例6: __

		<span class="panel-title" data-icon="bar-chart"><?php 
echo __('Profiler');
?>
</span>
		<div class="panel-heading-controls">
			<button type="button" class="btn btn-default btn-xs remove_widget"><?php 
echo UI::icon('times');
?>
</button>
		</div>
	</div>
	<div class="stat-panel">
		<div class="stat-row">
			<div class="stat-cell bg-dark-gray padding-sm text-xs text-semibold">
				<?php 
echo UI::icon('dot-circle-o');
?>
&nbsp;&nbsp;<?php 
echo __('Application Execution') . ' (' . $stats['count'] . ')';
?>
			</div>
		</div>
		<div class="stat-row">
			<div class="stat-counters">
				<?php 
foreach ($application_cols as $key) {
    ?>
				<div class="stat-cell bg-dark-gray padding-sm text-xs text-semibold">
					<?php 
    echo __(ucfirst($key));
    ?>
开发者ID:ortodesign,项目名称:cms,代码行数:31,代码来源:profiler.php

示例7: array

			<div class="actions col-xs-1 text-right">
				<div class="btn-group">
					<?php 
        if (Acl::check('page.add')) {
            ?>
					<?php 
            echo UI::button(NULL, array('href' => Route::get('backend')->uri(array('controller' => 'page', 'action' => 'add', 'id' => $child->id)), 'icon' => UI::icon('plus'), 'class' => 'btn-default btn-xs'));
            ?>
					<?php 
        }
        ?>
					<?php 
        if (Acl::check('page.delete')) {
            ?>
					<?php 
            echo UI::button(NULL, array('href' => Route::get('backend')->uri(array('controller' => 'page', 'action' => 'delete', 'id' => $child->id)), 'icon' => UI::icon('times fa-inverse'), 'class' => 'btn-xs btn-confirm btn-danger'));
            ?>
					<?php 
        }
        ?>
				</div>
			</div>
			
			<div class="clearfix"></div>
		</div>
		
		<?php 
        if ($child->is_expanded) {
            echo $child->children_rows;
        }
        ?>
开发者ID:ZerGabriel,项目名称:cms-1,代码行数:31,代码来源:children.php

示例8: UI

<?php

$ui = new UI();
// This row will not be printed because of the noPrint() property
$topRow = $ui->row()->noPrint()->open();
$alertCol = $ui->col()->width(6)->open();
$ui->callout()->title("This is just a small example")->uiType("warning")->desc('This example shows only a handful of the UI options. ' . 'See the <a href="http://172.16.8.5/wiki/index.php/UI_Library">UI Library wiki</a> for a detailed list of options. ' . 'Help us build this page by adding more example codes.')->show();
$ui->alert()->title("Is this example working for you?")->uiType("info")->desc('If the example is not working for you, the error is probably because of php short tags (<code>&lt;?</code>). Instead of converting all short tags to <code>&lt;?php</code>, you can enable the <code>short_open_tag</code> property in the php.ini file. <a href="http://stackoverflow.com/q/2185320/1492578" target="_blank">Here\'s how!</a>')->show();
$alertCol->close();
$printCol = $ui->col()->width(6)->open();
$printBox = $ui->box()->icon($ui->icon("print"))->title("Print this page")->tooltip("Printing this page wouldn't print this row. How awesome is that!")->open();
?>
<p>Everything in the view will be printed by default. To ignore something that shouldn't be printed, use the <code>noPrint()</code> property on that <code>Element</code>.</p>
<pre>
$ui->someElem()
   ...
   ->noPrint()
</pre>
<p>To make a Print button, use <code>$ui->printButton()->show()</code>. All other properties of <code>Button</code>s are still valid on the print button. For instance, you can set its id, name, UI type or value.</p>

<?php 
$ui->printButton()->show();
$printBox->close();
$printCol->close();
$topRow->close();
?>
<h2 class="page-header">Different box types</h2><?php 
$boxTypesRow = $ui->row()->open();
$col = $ui->col()->width(4)->open();
$box = $ui->box()->title("Default Box")->open();
?>
开发者ID:pkdism,项目名称:ISM-MIS,代码行数:31,代码来源:example.php

示例9: UI

<?php

$ui = new UI();
$view_row = $ui->row()->open();
$col = $ui->col()->width(6)->t_width(6)->open();
$view_box = $ui->box()->uiType('primary')->title('Choose Employee to View')->open();
$form = $ui->form()->action('employee/view/view_form')->open();
$options = array();
if ($employees) {
    foreach ($employees as $row) {
        array_push($options, $ui->option()->value($row->id)->text($row->id));
    }
} else {
    array_push($options, $ui->option()->value("")->text("No Employees")->disabled());
}
$ui->select()->label('Employee Id')->name('emp_id')->id('emp_id')->options($options)->addonRight($ui->button()->id('search_btn')->value('Search')->uiType('primary')->icon($ui->icon('search')))->show();
$ui->button()->value('Submit')->uiType('primary')->submit()->name('submit')->show();
$form->close();
$view_box->close();
$col->close();
$col = $ui->col()->width(6)->t_width(6)->open();
echo '<div id="search_eid" style="display:none">';
$sel_box = $ui->box()->title('Search by Department')->open();
$options = array($ui->option()->text('Select Employee Department')->disabled()->selected());
if ($departments) {
    foreach ($departments as $row) {
        array_push($options, $ui->option()->value($row->id)->text($row->name));
    }
} else {
    array_push($options, $ui->option()->value("")->text("No Departments")->disabled());
}
开发者ID:pkdism,项目名称:ISM-MIS,代码行数:31,代码来源:index.php

示例10: ucwords

    if ($emp_validation_details->educational_status == 'pending') {
        $status4 = $pending_status;
    } else {
        if ($emp_validation_details->educational_status == 'rejected') {
            $status4 = $rejected_status;
        }
    }
    if ($emp_validation_details->stay_status == 'pending') {
        $status5 = $pending_status;
    } else {
        if ($emp_validation_details->stay_status == 'rejected') {
            $status5 = $rejected_status;
        }
    }
}
$tabbox = $ui->tabBox()->tab('all', '<br>' . $ui->icon('user') . 'All Details', $step == 5)->tab('basic_details', $status1 . '<br>Basic Details', $step == 0)->tab('prev_emp', $status2 . '<br>Employment Details', $step == 1)->tab('emp_fam', $status3 . '<br>Family Member Details', $step == 2)->tab('emp_edu', $status4 . '<br>Educational Qualifications', $step == 3)->tab('last_five', $status5 . '<br>Stay Details', $step == 4)->open();
$basic = $ui->tabPane()->id('basic_details');
if ($step == 0) {
    $basic->active();
}
$basic->open();
if ($emp) {
    $data['name'] = $emp->salutation . '. ' . ucwords(trim($emp->first_name)) . ' ' . trim(ucwords(trim($emp->middle_name)) . ' ' . ucwords(trim($emp->last_name)));
    $data['department'] = $this->departments_model->getDepartmentById($emp->dept_id)->name;
    $data['designation'] = $this->designations_model->getDesignationById($emp->designation)->name;
    $data['permanent_pretty'] = $permanent_address->line1 . ',<br>' . (trim($permanent_address->line2) == '' ? '' : $permanent_address->line2 . ',<br>') . ucwords($permanent_address->city) . ', ' . ucwords($permanent_address->state) . ' - ' . $permanent_address->pincode . '<br>' . ucwords($permanent_address->country) . '<br>Contact no. ' . $permanent_address->contact_no;
    $data['present_pretty'] = $present_address->line1 . ',<br>' . (trim($present_address->line2) == '' ? '' : $present_address->line2 . ',<br>') . ucwords($present_address->city) . ', ' . ucwords($present_address->state) . ' - ' . $present_address->pincode . '<br>' . ucwords($present_address->country) . '<br>Contact no. ' . $present_address->contact_no;
    if ($emp_validation_details) {
        if ($emp_validation_details->profile_pic_status == 'pending') {
            $ui->callout()->title("Pending" . $ui->label()->uiType('info')->id('pending_pic')->classes('pull-right')->text('Show'))->desc('Profile Picture is not yet validated.<br><img id="pending_photo" src="' . base_url() . 'assets/images/' . $pending_photo . '"  height="150" />')->uiType('info')->show();
        } else {
开发者ID:pkdism,项目名称:ISM-MIS,代码行数:31,代码来源:view.php

示例11: date

$table->close();
$E_box->close();
$t5->close();
/************************************************************************************************/
$tabBox1->close();
$tabRow1->close();
$tabcol1->close();
$col1 = $ui->col()->width(12)->open();
echo '<span style="color:red"> Last Activity : ' . $action_recent->remark . ' (' . date('d M Y g:i a', strtotime($action_recent->timestamp) + 19800) . ') </span>';
$col1->close();
$innerRow1 = $ui->row()->open();
$col1 = $ui->col()->width(6)->open();
?>
<center><br/>
          <?php 
$ui->button()->icon($ui->icon('check'))->name('action_taken')->id('action_taken1')->value('Forward')->uiType('success')->extras('onclick=showapprove()')->show();
?>
          </center><br/><?php 
$col1->close();
$col2 = $ui->col()->width(6)->open();
?>
<center><br/>
          <?php 
$ui->button()->icon($ui->icon('check'))->name('action_taken')->id('action_taken2')->value('Reject')->uiType('danger')->extras('onclick=showreject()')->show();
?>
          </center><br/><?php 
$col2->close();
$innerRow1->close();
$innerRow2 = $ui->row()->open();
$col1 = $ui->col()->width(6)->open();
?>
开发者ID:vivek0739,项目名称:consultancy,代码行数:31,代码来源:consultant_disbursement_sheetview_hod.php

示例12: __

        echo __($type);
        ?>
</span>
	</div>
	<div class="panel-body padding-sm">
		<?php 
        foreach ($_widgets as $id => $widget) {
            ?>
			<?php 
            if ($widget->code()->is_handler()) {
                continue;
            }
            ?>
		
			<?php 
            echo UI::button($widget->name, array('icon' => UI::icon('tag'), 'data-id' => $id, 'class' => 'popup-widget-item btn-default'));
            ?>
		<?php 
        }
        ?>
	</div>
	<?php 
    }
    ?>
	<?php 
} else {
    ?>
	<div class="panel-body">
		<h2><?php 
    echo __('All widgets set to page');
    ?>
开发者ID:ZerGabriel,项目名称:cms-1,代码行数:31,代码来源:list.php

示例13: function

<div class="panel dashboard-widget panel-body-colorful panel-info fullcalendar-widget">
	<button type="button" class="close remove_widget"><?php 
echo UI::icon('times');
?>
</button>
	<div id="calendar" class="panel-body" style="height: 100%"></div>
</div>
<link type="text/css" href="/cms/media/libs/fullcalendar-2.1.0/fullcalendar.min.css" rel="stylesheet" media="all" />
<script type="text/javascript" src="/cms/media/libs/fullcalendar-2.1.0/fullcalendar.min.js"></script>
<script type="text/javascript" src="/cms/media/libs/fullcalendar-2.1.0/lang/ru.js"></script>
<script type="text/javascript">
$('.fullcalendar-widget')
	.on('widget_init', function(e, w ,h) {
		$('#calendar').fullCalendar({
			header: {
				left: 'prev,next,today',
				center: 'title',
				right: 'month,agendaWeek,agendaDay'
			},
			contentHeight: h - 100,
			editable: true,
			eventRender: function(event, element) {
				var content = element.find('.fc-content');
				if (event.icon) {
					content.prepend("<i class='fa-icon fa fa-" + event.icon + "'></i>");
				}

				$("<span class='btn-close'><i class='fa fa-times'></i></span>")
					.appendTo(content)
					.on('click', function() {
						if(event.id)
开发者ID:ZerGabriel,项目名称:cms-1,代码行数:31,代码来源:fullcalendar.php

示例14: UI

<?php

$ui = new UI();
$outer_row = $ui->row()->open();
$column2 = $ui->col()->width(12)->open();
$tabBox1 = $ui->box()->uiType('primary')->solid()->icon($ui->icon("file"))->title("Minutes Posted By You")->open();
//$tab1 = $ui->tabPane()->id("current")->active()->open();
$table = $ui->table()->hover()->bordered()->sortable()->searchable()->paginated()->open();
?>
						<thead>
							<tr>							
								<th>Minutes Number</th>
								<th >Meeting Type</th>
								<th >Meeting Date</th>	
								<th >Meeting Type</th>						
								<th>Posted On/ Edited On</th>
								<th >Issued By</th>
								<th>Revision Status</th>
								<th >Links</th>
							</tr>
						</thead>
<?php 
foreach ($minutes as $key => $minute) {
    ?>
						<tr>
									
									<td align="center"><?php 
    echo $minute->minutes_no;
    ?>
</td>
									<td align="center"><?php 
开发者ID:pkdism,项目名称:ISM-MIS,代码行数:31,代码来源:editMinute.php

示例15: UI

<?php

$ui = new UI();
$outer_row = $ui->row()->open();
$column1 = $ui->col()->width()->open();
$column1->close();
$column2 = $ui->col()->width(12)->open();
$new_payment = $payment;
$data_row = $ui->row()->id('data_row')->open();
$data_row->close();
$column2->close();
$column2 = $ui->col()->width(12)->open();
$tabBox1 = $ui->box()->icon($ui->icon("file-o"))->title("Your Consultancy Form")->solid()->uiType('primary')->open();
$new_payment = $payment;
//$tab1 = $ui->tabPane()->id("current")->active()->open();
$table = $ui->table()->hover()->bordered()->sortable()->searchable()->paginated()->open();
?>
						<thead>
							<tr>
														
								<th> Title</th>
								<th>Posted On/ Edited On</th>
								<th>Revision Status</th>
								<th >link</th>
								<th >Request file</th>
							    
							</tr>
						</thead>
<?php 
foreach ($cons_row as $key => $cons_row) {
    ?>
开发者ID:vivek0739,项目名称:consultancy,代码行数:31,代码来源:edit_consultancy_form.php


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