本文整理汇总了PHP中UI::col方法的典型用法代码示例。如果您正苦于以下问题:PHP UI::col方法的具体用法?PHP UI::col怎么用?PHP UI::col使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UI
的用法示例。
在下文中一共展示了UI::col方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
if ($pay_bands === FALSE) {
array_push($pay_options, $ui->option()->value("")->text("No pay band found")->disabled());
} else {
foreach ($pay_bands as $row) {
array_push($pay_options, $ui->option()->value($row->pay_band)->text(strtoupper($row->pay_band) . ' (' . $row->pay_band_description . ')')->selected($row->pay_band == $emp_pay_details->pay_band));
}
}
//gradepay options
$grade_options = array();
$gradepay = $this->pay_scales_model->get_grade_pay($emp_pay_details->pay_band);
foreach ($gradepay as $row) {
array_push($grade_options, $ui->option()->value($row->pay_code)->text($row->grade_pay)->selected($row->grade_pay == $emp_pay_details->grade_pay));
}
$form = $ui->form()->id('basic_details')->action('employee/edit/update_own_basic_details/' . $emp_id)->open();
$row = $ui->row()->open();
$col = $ui->col()->width(12)->open();
$basic_box = $ui->box()->uiType('primary')->solid()->title('Personal Details')->open();
echo 'Fields marked with <span style= "color:red;">*</span> are mandatory.<br><br> ';
$row3 = $ui->row()->open();
$ui->select()->width(2)->name('salutation')->label('Salutation<span style= "color:red;"> *</span>')->options(array($ui->option()->value('Dr')->text('Dr')->selected($user_details->salutation == 'Dr'), $ui->option()->value('Prof')->text('Prof')->selected($user_details->salutation == 'Prof'), $ui->option()->value('Mr')->text('Mr')->selected($user_details->salutation == 'Mr'), $ui->option()->value('Mrs')->text('Mrs')->selected($user_details->salutation == 'Mrs'), $ui->option()->value('Ms')->text('Ms')->selected($user_details->salutation == 'Ms')))->show();
$ui->input()->width(3)->name('firstname')->required()->disabled()->placeholder("First Name")->value($user_details->first_name)->label('First Name<span style= "color:red;"> *</span>')->show();
$ui->input()->width(3)->name('middlename')->disabled()->label('Middle Name')->value($user_details->middle_name)->placeholder("Middle Name")->show();
$ui->input()->width(3)->name('lastname')->disabled()->value($user_details->last_name)->placeholder("Last Name")->label('Last Name')->show();
$row3->close();
$row4 = $ui->row()->open();
$ui->select()->width(3)->name('mstatus')->label('Marital Status<span style= "color:red;"> *</span>')->options(array($ui->option()->value('married')->text('Married')->selected($user_details->marital_status == 'married'), $ui->option()->value('unmarried')->text('Unmarried')->selected($user_details->marital_status == 'unmarried'), $ui->option()->value('widow')->text('Widow')->selected($user_details->marital_status == 'widow'), $ui->option()->value('widower')->text('Widower')->selected($user_details->marital_status == 'widower'), $ui->option()->value('separated')->text('Separated')->selected($user_details->marital_status == 'separated'), $ui->option()->value('divorced')->text('Divorced')->selected($user_details->marital_status == 'divorced')))->show();
$ui->datePicker()->label('DOB<span style= "color:red;"> *</span>')->id('dob')->disabled()->name('dob')->required()->dateFormat('dd-mm-yyyy')->width(3)->addonRight($ui->icon("calendar"))->value(date("d-m-Y", strtotime($user_details->dob)))->extras('max="' . date("d-m-Y") . '"')->show();
$ui->input()->width(3)->name('pob')->required()->disabled()->value($user_other_details->birth_place)->label('Place of Birth<span style= "color:red;"> *</span>')->show();
$row4->close();
$row2 = $ui->row()->open();
$col1 = $ui->col()->width(3)->open();
示例2: UI
<?php
$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('Last 5 Year Stay Details ' . $ui->label()->uiType($status['ui_type'])->text($status['text']))->uiType($status['ui_type'])->open();
$details = count($pending_emp_last5yrstay_details) ? $pending_emp_last5yrstay_details : $emp_last5yrstay_details;
if (count($details)) {
$table = $ui->table()->id('tbl5')->responsive()->bordered()->striped()->open();
echo '<thead><tr align="center">
<td rowspan=2 style="vertical-align:middle" ><b>S no.</b></td>
<td colspan=2 style="vertical-align:middle" ><b>Duration</b></td>
<td rowspan=2 style="vertical-align:middle" ><b>Residential Address</b></td>
<td rowspan=2 style="vertical-align:middle" ><b>Name of District Headquarters</b></td>
<td rowspan=2 style="vertical-align:middle" ><b>Edit/Delete</b></td>
</tr>
<tr align="center">
<td style="vertical-align:middle" ><b>From</b></td>
<td style="vertical-align:middle" ><b>To</b></td>
</tr></thead><tbody>';
$i = 1;
示例3: UI
<?php
$ui = new UI();
$outer_row = $ui->row()->open();
$column1 = $ui->col()->width(1)->open();
$column1->close();
$column2 = $ui->col()->width(10)->open();
$innercol4 = $ui->col()->id('add_grp_col')->width(12)->open();
$row1 = $ui->col()->width(12)->open();
$array_options = array();
$array_options[0] = $ui->option()->value('""')->text("Select Group")->disabled()->selected();
$filter = array();
foreach ($group_notice as $filter_result) {
array_push($filter, $filter_result->group_id);
}
$filter = array_unique($filter);
foreach ($filter as $grp) {
array_push($array_options, $ui->option()->value($grp)->text($grp));
}
$ui->select()->label('Group Name<span style= "color:red;"> *</span>')->required()->name('groups_name_id')->id("groups_name_id")->containerId("cont_groups_name_id")->options($array_options)->show();
$row1->close();
$innercol4->close();
$column2 = $ui->col()->width(12)->open();
?>
<br/>
<div id="move_details_of_sent_files" name='move_details_of_sent_files'>
</div>
<br/>
示例4: UI
<?php
$ui = new UI();
$form = $ui->form()->action('student/student_validate/fetch_stu_details')->multipart()->id('form_submit')->open();
$select_details_to_edit_box = $ui->box()->uiType('primary')->solid()->title('Enter the Student Id')->open();
$student_admn_no = $ui->row()->open();
$student_details_1_1 = $ui->col()->width(3)->open();
$student_details_1_1->close();
$ui->input()->label('Admission No.')->uiType('primary')->id('stu_id')->width(6)->name('stu_id')->show();
/*$ui->select()
->label('Select Form')
->name('select_form')
->options(array($ui->option()->value('0')->text('Change Profile Picture'),
$ui->option()->value('1')->text('Edit Basic Details'),
$ui->option()->value('2')->text('Edit Education Details')))
->width(6)
->show();*/
$student_admn_no->close();
$student_details_row_2 = $ui->row()->open();
$student_details_2_1 = $ui->col()->width(6)->open();
$student_details_2_1->close();
$ui->button()->submit(true)->value('Submit')->uiType('primary')->id('submit_button_id')->width(2)->show();
$student_details_row_2->close();
$select_details_to_edit_box->close();
$form->close();
$rejected_students_list_box = $ui->box()->uiType('primary')->id('UsersToValidateBox')->solid()->title('List of Rejected Students')->open();
$table = $ui->table()->hover()->id('UsersToValidate')->bordered()->striped()->responsive()->paginated()->searchable()->sortable()->condensed()->open();
?>
<thead>
<tr>
<th>User ID</th>
示例5: UI
<?php
$ui = new UI();
$row = $ui->row()->open();
$row1 = $ui->row()->open();
$col_left = $ui->col()->width(6)->id('depart')->open();
$ui->select()->label('Select Department')->name('department_name' . $author_no)->id('department_name' . $author_no)->required()->extras(' onchange="find_faculty(this.value,' . $author_no . ')" ')->options(array($ui->option()->value('""')->text('Select')))->show();
$col_left->close();
$col_right = $ui->col()->width(6)->open();
$ui->select()->label('Faculty Name')->name('author_' . $author_no . '_emp_id')->id('author_' . $author_no . '_emp_id')->required()->options(array($ui->option()->value('""')->text('Select')))->show();
$col_right->close();
$row->close();
示例6: UI
<?php
$ui = new UI();
$errors = validation_errors();
if ($errors != '') {
$this->notification->drawNotification('Validation Errors', validation_errors(), 'error');
}
$row = $ui->row()->open();
$column1 = $ui->col()->width(2)->open();
$column1->close();
$column2 = $ui->col()->width(9)->open();
$box = $ui->box()->title('Notice Details')->solid()->uiType('primary')->open();
$form = $ui->form()->extras('enctype="multipart/form-data"')->action('information/edit_notice/edit/' . $notice_row->notice_id)->open();
$star_notice = $ui->row()->open();
//echo" Fields marked with <span style= 'color:red;'>*</span> are mandatory.";
$star_notice->close();
$inputRow1 = $ui->row()->open();
$ui->input()->type('text')->label('Notice ID<span style= "color:red;"> *</span>')->name('notice_ids')->required()->width(6)->value($notice_row->notice_id)->disabled()->show();
$ui->input()->type('text')->label('Notice Number<span style= "color:red;"> *</span>')->name('notice_no')->value($notice_row->notice_no)->required()->width(6)->show();
$inputRow1->close();
$inputRow2 = $ui->row()->open();
if ($notice_row->notice_cat == 'emp') {
$ui->select()->label('Viewed By<span style= "color:red;"> *</span>')->name('notice_cat')->options(array($ui->option()->value('emp')->text('Employee')->selected(), $ui->option()->value('stu')->text('Student'), $ui->option()->value('all')->text('All')))->width(6)->show();
} else {
if ($notice_row->notice_cat == 'stu') {
$ui->select()->label('Viewed By<span style= "color:red;"> *</span>')->name('notice_cat')->options(array($ui->option()->value('emp')->text('Employee'), $ui->option()->value('stu')->text('Student')->selected(), $ui->option()->value('all')->text('All')))->width(6)->show();
} else {
$ui->select()->label('Viewed By<span style= "color:red;"> *</span>')->name('notice_cat')->options(array($ui->option()->value('emp')->text('Employee'), $ui->option()->value('stu')->text('Student'), $ui->option()->value('all')->text('All')->selected()))->width(6)->show();
}
}
$ui->datePicker()->name('last_date')->label('Last Date<span style= "color:red;"> *</span> (Atleast today)')->dateFormat('yyyy-mm-dd')->value($notice_row->last_date)->width(6)->show();
示例7: 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><?</code>). Instead of converting all short tags to <code><?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();
?>
示例8: site_url
$studenteditable_details = $ui->row()->open();
$student_editable_details_box = $ui->box()->uiType('primary')->solid()->title('Editable Details')->open();
$editable_details_row_1 = $ui->row()->open();
$ui->input()->label('Email')->name('email')->type('email')->required()->value($user_detail->email)->required()->width(3)->show();
$ui->input()->label('Alternate Email')->name('alternate_email_id')->id('alternate_email_id')->type('email')->value($stu_detail->alternate_email_id)->width(3)->show();
$ui->input()->label('Mobile No.')->name('mobile')->id('mobile')->required()->value($user_other_detail->mobile_no)->required()->width(3)->show();
$ui->input()->label('Alternate Mobile No.')->name('alternate_mobile')->id('alternate_mobile')->value($stu_detail->alternate_mobile_no)->width(3)->show();
$editable_details_row_1->close();
$editable_details_row_2 = $ui->row()->open();
$ui->input()->label('Hobbies')->name('hobbies')->width(3)->id('hobbies')->value($user_other_detail->hobbies)->show();
$ui->input()->label('Favourite Pass Time')->name('favpast')->id('favpast')->value($user_other_detail->fav_past_time)->width(3)->show();
$ui->input()->label('Extra-Curricular Activities ( if any):')->name('extra_activity')->id('extra_activity')->value($stu_other_detail->extra_curricular_activity)->width(3)->show();
$ui->input()->label('Any other relevant information')->name('any_other_information')->id('any_other_information')->value($stu_other_detail->other_relevant_info)->width(3)->show();
$editable_details_row_2->close();
$editable_details_row_3 = $ui->row()->open();
$editable_col_3_1 = $ui->col()->width(5)->open();
$editable_col_3_1->close();
$ui->button()->submit(true)->value('Update')->uiType('primary')->width(2)->show();
$editable_details_row_3->close();
$editable_details_row_4 = $ui->row()->open();
$editable_col_4_1 = $ui->col()->width(11)->open();
$editable_col_4_1->close();
?>
<a href= <?php
echo site_url();
?>
><?php
$ui->button()->value('Back')->width(1)->show();
?>
</a><?php
示例9: UI
<?php
$ui = new UI();
$errors = validation_errors();
?>
<div id='data_row'>
</div>
<?php
if ($errors != '') {
$this->notification->drawNotification('Validation Errors', validation_errors(), 'error');
}
$inputRow1 = $ui->row()->open();
$column1 = $ui->col()->width(1)->open();
$column1->close();
$column2 = $ui->col()->width(10)->open();
foreach ($details as $disbursement) {
}
$box = $ui->box()->solid()->uiType('primary')->open();
$inputRow2 = $ui->row()->open();
$col1 = $ui->col()->width(6)->open();
$col1->close();
$col2 = $ui->col()->width(6)->open();
$ui->input()->type('text')->label('Consultancy No')->name('consultancy_no')->id('consultancy_no')->disabled()->value($disbursement->consultancy_no)->width(12)->show();
$col2->close();
$consultancy_no = $disbursement->consultancy_no;
$ui->callout()->uiType("info")->desc('Enlc : Photocopies of money receipts. Disbursement sheet, Statement of expenditure, Distribution list of Honoraria to faculty and supporting staff of ISM.
')->show();
$inputRow2->close();
$form = $ui->form()->action('consultant/consultant_disbursement_sheet/disbursement_approve/' . $consultancy_no . '/' . $sr_no . '/' . $auth_id)->extras('enctype="multipart/form-data"')->open();
$tabRow1 = $ui->row()->open();
示例10: strtotime
/* $middlename_column->close();
$lastname_column = $ui->col()
->width(3)
->open();
*/
$ui->input()->placeholder('Last Name')->width(3)->id('lastname')->name('lastname')->value($user_details->last_name)->show();
// $lastname_column->close();
$student_name->close();
$student_personal_details_row_1 = $ui->row()->open();
/*$column3 = $ui->col()
->width(3)
->open();*/
$ui->input()->label('पूरा नाम हिन्दी में')->id('stud_name_hindi')->name('stud_name_hindi')->value($stu_basic_details->name_in_hindi)->width(3)->show();
// $column3->close();
$column_gender = $ui->col()->width(3)->open();
echo '<label>Gender</label>';
$ui->radio()->name('sex')->label('Male')->value('m')->checked($user_details->sex == "m")->show();
$ui->radio()->name('sex')->label('Female')->value('f')->checked($user_details->sex == "f")->show();
$ui->radio()->name('sex')->label('Others')->value('o')->checked($user_details->sex == "o")->show();
$column_gender->close();
/*$column5 = $ui->col()
->width(3)
->open();*/
$ui->datePicker()->label('Date of Birth')->width(3)->name('dob')->value(date('d-m-Y', strtotime($user_details->dob)))->dateFormat('dd-mm-yyyy')->show();
/*$column5->close();
$column6 = $ui->col()
->width(3)
->open();
示例11: 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
示例12: UI
<?php
$ui = new UI();
$row = $ui->row()->open();
$column1 = $ui->col()->width(2)->open();
$column1->close();
$column2 = $ui->col()->width(8)->open();
$box = $ui->box()->title('File Details')->solid()->uiType('primary')->open();
$form = $ui->form()->action('file_tracking/send_new_file/insert_file_details')->open();
$inputRow1 = $ui->row()->open();
$ui->input()->placeholder('Enter file number')->type('text')->label('File Number')->name('file_no')->width(6)->show();
$ui->input()->placeholder('Enter file subject')->type('text')->label('File Subject')->name('file_sub')->required()->width(6)->show();
$inputRow1->close();
$inputRow2 = $ui->row()->open();
$ui->select()->label('Department Type')->name('type')->id('type')->required()->options(array($ui->option()->value('""')->text('Select')->selected(), $ui->option()->value('academic')->text('Academic'), $ui->option()->value('nonacademic')->text('Non Academic')))->width(6)->show();
$ui->select()->label('Select Department')->name('department_name')->id('department_name')->required()->options(array($ui->option()->value('""')->text('Select')))->width(6)->show();
$inputRow2->close();
$inputRow3 = $ui->row()->open();
$ui->select()->label('Designation')->name('designation')->id('designation')->required()->options(array($ui->option()->value('""')->text('Select')))->width(6)->show();
$ui->select()->label('Employee Name')->name('emp_name')->id('emp_name')->required()->options(array($ui->option()->value('""')->text('Select')->selected()))->width(6)->show();
$inputRow3->close();
$ui->textarea()->label('Remarks')->name('remarks')->placeholder('Remarks')->show();
?>
<center>
<?php
$ui->button()->value('Send File')->submit(true)->uiType('primary')->show();
$form->close();
$box->close();
$column2->close();
$row->close();
?>
示例13: UI
<?php
$ui = new UI();
$row1 = $ui->row()->open();
$innercol7 = $ui->col()->id('course_col')->width(12)->open();
//print_r($course);
$array_options = array();
$array_options[0] = $ui->option()->value('all')->text("All Courses")->selected();
if ($course != NULL) {
foreach ($course as $key => $cor) {
array_push($array_options, $ui->option()->value($cor->id)->text($cor->name));
}
}
$ui->select()->label('Select Courses')->name('course_selection1')->id("course_selection1")->options($array_options)->show();
$innercol7->close();
$row1->close();
?>
<script type="text/javascript">
$("#course_selection1").val('<?php
echo $courses;
?>
');
$("#course_selection1").on('change' , function()
{
if(this.value!='all')
{
$('#sem').show();
semester(this.value);
}
示例14: UI
<?php
$ui = new UI();
$row1 = $ui->row()->open();
$innercol7 = $ui->col()->id('semester_col')->width(12)->open();
//print_r($course);
$array_options = array();
foreach ($course as $key => $cor) {
# code...
$array_options[0] = $ui->option()->value('all')->text("All");
for ($i = 1; $i <= $cor->duration * 2; $i++) {
array_push($array_options, $ui->option()->value(strval($i))->text($i . " sem"));
}
}
$ui->select()->label('Select Semester')->name('sem_selection')->id("sem_selection")->options($array_options)->show();
$innercol7->close();
$row1->close();
?>
<script type="text/javascript" language="javascript">
$(document).ready(function(){
$('#sem_selection').val('<?php
echo $sem;
?>
')
});
</script>
示例15: 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());
}