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


PHP UI::select方法代码示例

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


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

示例1: ucwords

$form = $ui->form()->id('basic_details')->action('employee/edit/update_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();
if ($status == 'pending') {
    $type = 'warning';
} else {
    if ($status == 'rejected') {
        $type = 'error';
    } else {
        $status = '';
    }
}
echo 'Fields marked with <span style= "color:red;">*</span> are mandatory.<br><br> ';
$row3 = $ui->row()->open();
$ui->select()->width(2)->name('salutation')->help($pending_user_details->salutation == $user_details->salutation ? '' : 'Above detail is ' . $status . '.<br>Previously accepted : ' . $user_details->salutation)->uiType($pending_user_details->salutation == $user_details->salutation ? '' : $type)->label('Salutation<span style= "color:red;"> *</span> ')->options(array($ui->option()->value('Dr')->text('Dr')->selected($pending_user_details->salutation == 'Dr'), $ui->option()->value('Prof')->text('Prof')->selected($pending_user_details->salutation == 'Prof'), $ui->option()->value('Mr')->text('Mr')->selected($pending_user_details->salutation == 'Mr'), $ui->option()->value('Mrs')->text('Mrs')->selected($pending_user_details->salutation == 'Mrs'), $ui->option()->value('Ms')->text('Ms')->selected($pending_user_details->salutation == 'Ms')))->show();
$ui->input()->width(3)->name('firstname')->required()->help($pending_user_details->first_name == $user_details->first_name ? '' : 'Above detail is ' . $status . '.<br>Previously accepted : ' . $user_details->first_name)->uiType($pending_user_details->first_name == $user_details->first_name ? '' : $type)->placeholder("First Name")->value($pending_user_details->first_name)->label('First Name<span style= "color:red;"> *</span>')->show();
$ui->input()->width(3)->name('middlename')->label('Middle Name')->help($pending_user_details->middle_name == $user_details->middle_name ? '' : 'Above detail is ' . $status . '.<br>Previously accepted : ' . $user_details->middle_name)->uiType($pending_user_details->middle_name == $user_details->middle_name ? '' : $type)->value($pending_user_details->middle_name)->placeholder("Middle Name")->show();
$ui->input()->width(3)->name('lastname')->value($pending_user_details->last_name)->help($pending_user_details->last_name == $user_details->last_name ? '' : 'Above detail is ' . $status . '.<br>Previously accepted : ' . $user_details->last_name)->uiType($pending_user_details->last_name == $user_details->last_name ? '' : $type)->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>')->help($pending_user_details->marital_status == $user_details->marital_status ? '' : 'Above detail is ' . $status . '.<br>Previously accepted : ' . ucwords($user_details->marital_status))->uiType($pending_user_details->marital_status == $user_details->marital_status ? '' : $type)->options(array($ui->option()->value('married')->text('Married')->selected($pending_user_details->marital_status == 'married'), $ui->option()->value('unmarried')->text('Unmarried')->selected($pending_user_details->marital_status == 'unmarried'), $ui->option()->value('widow')->text('Widow')->selected($pending_user_details->marital_status == 'widow'), $ui->option()->value('widower')->text('Widower')->selected($pending_user_details->marital_status == 'widower'), $ui->option()->value('separated')->text('Separated')->selected($pending_user_details->marital_status == 'separated'), $ui->option()->value('divorced')->text('Divorced')->selected($pending_user_details->marital_status == 'divorced')))->show();
$ui->datePicker()->label('DOB<span style= "color:red;"> *</span>')->id('dob')->name('dob')->required()->help($pending_user_details->dob == $user_details->dob ? '' : 'Above detail is ' . $status . '.<br>Previously accepted : ' . date("d-m-Y", strtotime($user_details->dob)))->uiType($pending_user_details->dob == $user_details->dob ? '' : $type)->dateFormat('dd-mm-yyyy')->width(3)->addonRight($ui->icon("calendar"))->value(date("d-m-Y", strtotime($pending_user_details->dob)))->extras('max="' . date("d-m-Y") . '"')->show();
$ui->input()->width(3)->name('pob')->required()->help($pending_user_other_details->birth_place == $user_other_details->birth_place ? '' : 'Above detail is ' . $status . '.<br>Previously accepted : ' . ucwords($user_other_details->birth_place))->uiType($pending_user_other_details->birth_place == $user_other_details->birth_place ? '' : $type)->value($pending_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();
if ($pending_user_details->sex != $user_details->sex) {
    echo '<div class = "form-group has-' . $type . '"><label>';
    if ($type == 'warning') {
        echo '<i class = "fa fa-warning"></i>';
开发者ID:pkdism,项目名称:ISM-MIS,代码行数:31,代码来源:basic_details.php

示例2:

$student_admn_no = $ui->row()->open();
$column1 = $ui->col()->width(10)->open();
echo '<label>Admission No. : </label>';
echo $stu_id;
$column1->close();
$student_admn_no->close();
?>
<div id="stu_details_hidden"><?php 
$student_details_row = $ui->row()->open();
$student_details_box = $ui->box()->uiType('primary')->solid()->title('Personal Details')->open();
$student_name = $ui->row()->open();
/*                        $salutation_column = $ui->col()
                                                ->width(3)
                                                ->open();
*/
$ui->select()->name('salutation')->width(3)->options(array($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"), $ui->option()->value('dr')->text('Dr')->selected($user_details->salutation == "dr")))->show();
/*$salutation_column->close();

                        $firstname_column = $ui->col()
                                               ->width(3)
                                               ->open();
*/
$ui->input()->placeholder('First Name')->id('firstname')->required()->value($user_details->first_name)->width(3)->name('firstname')->show();
/*                        $firstname_column->close();

                        $middlename_column = $ui->col()
                                                ->width(3)
                                                ->open();

*/
$ui->input()->placeholder('Middle Name')->id('middlename')->width(3)->value($user_details->middle_name)->name('middlename')->show();
开发者ID:pkdism,项目名称:ISM-MIS,代码行数:31,代码来源:student_edit_basic_details.php

示例3: array

$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/>

<br/>
<?php 
$column2->close();
$innercol2 = $ui->col()->width(12)->open();
开发者ID:vivek0739,项目名称:information,代码行数:31,代码来源:edit_group.php

示例4:

</td><?php 
        echo '<td>';
        $btn_string = 'onclick=' . '"OnEvent(\'' . $member->emp_no . '\')"';
        $ui->button()->icon($ui->icon("edit"))->id('edit')->extras($btn_string)->width(4)->uiType('primary')->name('edit')->value('Edit')->show();
        echo '</td>';
    }
    ?>
                  </tr><?php 
}
?>
<tr>
                  <td>

                    <?php 
$innercol1 = $ui->col()->width(12)->open();
$ui->select()->name('deptartmets')->id('deptartmets')->options(array($ui->option()->value('0')->text('Select Employee Department')->disabled()->selected()))->show();
$innercol1->close();
?>
</td>
                     <td>
                        <?php 
$r3col1 = $ui->col()->id('employee')->open();
$ui->select()->name('select_name')->id('select_name')->options(array($ui->option()->value('0')->text('Select Employee')->disabled()->selected()))->show();
$r3col1->close();
?>
</td>
                            <td>
                                <?php 
$innercol1 = $ui->col()->width(12)->open();
$ui->input()->type('text')->name('select_no')->id('select_no')->value('')->width(12)->show();
$innercol1->close();
开发者ID:vivek0739,项目名称:consultancy,代码行数:31,代码来源:consultant_member.php

示例5: array

$formRow = $ui->row()->open();
$col = $ui->col()->width(8)->open();
$box = $ui->box()->title("General Elements")->open();
$ui->callout()->uiType("info")->desc("See wiki for a detailed explanation of creating each type of element.")->show();
$ui->input()->type("text")->label("Text")->placeholder("Text")->show();
$ui->input()->type("text")->label("A textbox with help")->placeholder("Text")->help("Some help text goes here")->show();
$ui->input()->type("text")->label("Text Disabled")->placeholder("Text Disabled")->disabled()->show();
$ui->textarea()->label("Textarea")->placeholder("Textarea")->show();
$ui->input()->type("text")->label("Input with success")->placeholder("Enter text")->uiType("success")->show();
$ui->input()->type("text")->label("Input with warning")->placeholder("Enter text")->uiType("warning")->show();
$ui->input()->type("text")->label("Input with error")->placeholder("Enter text")->uiType("error")->show();
$ui->checkbox()->label("Checkbox")->show();
$ui->checkbox()->label("Disabled Checkbox")->disabled()->show();
$ui->radio()->label("Radio button")->name("sampleRadio")->checked()->show();
$ui->radio()->label("Another Radio Button")->name("sampleRadio")->show();
$ui->select()->label('Select Box')->name('select_box')->options(array($ui->option()->value('0')->text('Select')->disabled(), $ui->option()->value('1')->text('One'), $ui->option()->value('2')->text('Two'), $ui->option()->value('3')->text('Three'), $ui->option()->value('4')->text('Four')->selected(), $ui->option()->value('5')->text('Five')))->show();
$sampleOptions = array($ui->option()->value('0')->text('Select')->disabled(), $ui->option()->value('1')->text('One'), $ui->option()->value('2')->text('Two'), $ui->option()->value('3')->text('Three'), $ui->option()->value('4')->text('Four')->selected(), $ui->option()->value('5')->text('Five'));
$ui->select()->label('Multiple Select Box')->name('multiple_select_box')->multiple()->options($sampleOptions)->show();
$ui->imagePicker()->label("An image picker")->show();
$ui->datePicker()->label("A date picker")->show();
$ui->timePicker()->label("A time picker")->show();
$ui->slider()->id('slider2')->min('0')->label('A slider')->max('100')->step('1')->grid()->value("15")->show();
$ui->slider()->id('slider1')->label('A ranged slider')->min('0')->max('50000')->step('100')->rangeType()->dataFrom('9000')->dataTo('20000')->prefix('$')->show();
?>
<p>To create input elements with smaller widths, create a <code>Row</code> and place the inputs inside it with their <code>width()</code> property:</p>
<pre>
$inputsRow = $ui->row()->open();
    $ui->input()->type("text")->...->width(2)->show();
    $ui->select()->...->width(4)->show();
    $ui->input()->...->width(6)->show();
$inputsRow->close();
开发者ID:pkdism,项目名称:ISM-MIS,代码行数:31,代码来源:example.php

示例6:

$form = $ui->form()->action('leave/leave_station/applyStationLeave')->open();
$inputRow1 = $ui->row()->open();
$ui->datePicker()->required()->label('Proposed Date Of Leaving Station ')->name('leave_st_date')->id('leave_st_date')->placeholder("Enter the date")->dateFormat('dd-mm-yyyy')->value("")->width(6)->show();
$ui->datePicker()->required()->id('return_st_date')->label('Proposed Date Of Reurning Station')->name('return_st_date')->placeholder(" Select Returning Date")->dateFormat('dd-mm-yyyy')->width(6)->value("")->show();
$inputRow1->close();
$inputRow2 = $ui->row()->id('st_time')->open();
$ui->timePicker()->label('Leaving Time')->name('st_leaving_time')->addonLeft($ui->icon("clock-o"))->uiType('primary')->id('st_leaving_time')->showMeridian('false')->required()->showSeconds('true')->width(6)->show();
$ui->timePicker()->label('Arrival Time')->name('st_arrival_time')->addonLeft($ui->icon("clock-o"))->uiType('primary')->id('st_arrival_time')->showMeridian('false')->required()->showSeconds('true')->width(6)->show();
$inputRow2->close();
$inputRow3 = $ui->row()->open();
$ui->textarea()->required()->placeholder('Purpose Of Leaving station')->type('text')->value("")->label('Purpose Of Leaving station')->name('purpose')->width(6)->show();
$ui->textarea()->required()->placeholder(' Address During Absence From Station')->type('text')->value("")->label('Address During Absence From Station')->id('st_address')->name('address')->width(6)->show();
$inputRow3->close();
$box1 = $ui->box()->title('Please Select Approving Employee')->solid()->id('approving_emp')->uiType('primary')->open();
$inputRow4 = $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();
$inputRow4->close();
$inputRow5 = $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();
$inputRow5->close();
$box1->close();
?>
<center>
    <?php 
$ui->button()->value('Submit Station Leave request')->name('submit')->id('application_submit')->submit(true)->extras('onclick="incrementClick()"')->uiType('primary')->show();
?>
</center>
<?php 
$form->close();
开发者ID:pkdism,项目名称:ISM-MIS,代码行数:31,代码来源:leave_station_view.php

示例7: UI

$ui = new UI();
$outRow = $ui->row()->open();
$column = $ui->col()->width(2)->open();
$column->close();
$column1 = $ui->col()->width(8)->open();
$row = $ui->row()->open();
$leftMargin = $ui->col()->width(1)->open();
$leftMargin->close();
$box = $ui->box()->id('publication_wrapper')->title('Add new Publication')->solid()->uiType('primary')->open();
$form = $ui->form()->action('publication/publication/addPublication')->open();
$inputRow1 = $ui->row()->open();
$Col1 = $ui->col()->width(6)->open();
$ui->input()->label('Title')->name('title')->required()->show();
$Col1->close();
$Col2 = $ui->col()->width(6)->open();
$ui->select()->label('Type of Publcation')->id('publication_type')->name('publication_type')->required()->options(array($ui->option()->value()->text("Select"), $ui->option()->value(1)->text("National Journal"), $ui->option()->value(2)->text("International Journal"), $ui->option()->value(3)->text("National Conference"), $ui->option()->value(4)->text("International Conference"), $ui->option()->value(5)->text("Book"), $ui->option()->value(6)->text("Book Chapter")))->show();
$Col2->close();
$innerCol1 = $ui->col()->id("publication_name_one")->width(6)->open();
$ui->input()->label('Name of Jorunal<sub>*</sub>')->name('publication_name')->show();
$innerCol1->close();
$innerColumn3 = $ui->col()->id("date_picker_one")->width(6)->open();
$ui->datePicker()->label('Date')->id('date')->name('begin_date')->placeholder("dd-mm-yyyy")->dateFormat('dd-mm-yyyy')->show();
$innerColumn3->close();
$innerColumn4 = $ui->col()->id("isbn_first")->width(6)->open();
$ui->input()->label('ISBN No.')->name('isbn_no')->show();
$innerColumn4->close();
$innerColumn3 = $ui->col()->id("date_picker_the")->width(6)->open();
$ui->datePicker()->label('Begin date')->name('begin_date')->placeholder("dd-mm-yyyy")->dateFormat('dd-mm-yyyy')->show();
$innerColumn3->close();
$innerColumn4 = $ui->col()->id("date_picker_two")->width(6)->open();
$ui->datePicker()->label('End date')->name('end_date')->placeholder("dd-mm-yyyy")->dateFormat('dd-mm-yyyy')->show();
开发者ID:pkdism,项目名称:ISM-MIS,代码行数:31,代码来源:add.php

示例8: of

$ui->input()->type('text')->name('contigency')->id('contigency')->placeholder('not exceeding 20% of (D)')->value($cons_row->contigency)->width(12)->show();
$innercol1->close();
?>
                              </td>     
                         </tr>
                         
                          <tr class='expense_row' >
                              <td> </td>
                              <td>
                                <?php 
$innercol1 = $ui->col()->width(6)->open();
echo 'EDC Development Fund';
$innercol1->close();
$innercol1 = $ui->col()->width(6)->open();
if ($cons_row->type_edc_fund == 'pdp') {
    $ui->select()->name('edc_fund')->id('edc_fund')->options(array($ui->option()->value('pdp')->text('In-house Executive Development')->selected(), $ui->option()->value('other_consult')->text('Other Consultancy')))->required()->show();
} else {
    if ($cons_row->type_edc_fund == 'other_consult') {
        $ui->select()->name('edc_fund')->id('edc_fund')->options(array($ui->option()->value('pdp')->text('In-house Executive Development'), $ui->option()->value('other_consult')->text('Other Consultancy')->selected()))->required()->show();
    } else {
        $ui->select()->name('edc_fund')->id('edc_fund')->options(array($ui->option()->value('0')->text('Select Option')->selected()->disabled(), $ui->option()->value('pdp')->text('In-house Executive Development'), $ui->option()->value('other_consult')->text('Other Consultancy')))->required()->show();
    }
}
?>
                                </td>
                              <td>
                                   <?php 
$innercol1 = $ui->col()->id('edc_fund_pdp')->width(12)->open();
$ui->input()->type('text')->name('in_house_exp')->id('in_house_exp')->placeholder('10% of (A)')->value($cons_row->in_house)->width(12)->show();
$innercol1->close();
?>
开发者ID:vivek0739,项目名称:consultancy,代码行数:31,代码来源:edit_consultancy_detail.php

示例9: UI

<?php

$ui = new UI();
$outer_row = $ui->row()->id('or')->open();
$column1 = $ui->col()->width(12)->t_width(12)->m_width(12)->open();
$formbox = $ui->box()->id('box_form')->open();
$form = $ui->form()->id("add_course_form")->action("course_structure/AddCS_Common/EnterNumberOfSubjects")->multipart()->open();
$array_option = array();
$array_option[0] = $ui->option()->value('""')->text("Select Semester")->disabled();
$array_option[1] = $ui->option()->value("1")->text("Semester 1");
$array_option[2] = $ui->option()->value("2")->text("Semester 2");
$ui->select()->label('Select Semester')->required()->name('semester')->id("semester")->options($array_option)->containerId('cont_semester')->show();
$array_option = array();
$array_option[0] = $ui->option()->value('""')->text("Select Group")->disabled();
$array_option[1] = $ui->option()->value("1")->text("Group 1(Physics)");
$array_option[2] = $ui->option()->value("2")->text("Group 2(Chemistry)");
$ui->select()->label('Select Group')->required()->name('group')->id("group")->options($array_option)->containerId('cont_group')->show();
$array_option = array();
array_push($array_option, $ui->option()->text("Starting From")->value('""')->disabled());
$year = date("Y");
//base_str = "<option selected = 'selected' disabled>Valid From</option>";
for ($d = $year - 5; $d <= $year + 5; $d++) {
    $session = $d . "_" . ($d + 1);
    array_push($array_option, $ui->option()->text($d . "-" . ($d + 1))->value($session));
}
$ui->select()->label('Valid From')->name('session')->id("session")->options($array_option)->containerId('cont_session')->show();
$ui->button()->value('Add course Structure')->uiType('primary')->submit()->name('submit')->show();
$form->close();
$formbox->close();
$column1->close();
$outer_row->close();
开发者ID:pkdism,项目名称:ISM-MIS,代码行数:31,代码来源:addCS_Common.php

示例10: UI

<?php

$ui = new UI();
$outer_row = $ui->row()->id('or')->open();
$column1 = $ui->col()->width(12)->t_width(6)->m_width(12)->open();
$box_outter = $ui->box()->id("box_outter")->open();
$table = $ui->table()->id('table')->open();
echo "<tr><th width='50%'>Delete Course</th><th width='50%'>Delete Branch</th></tr>";
echo "<tr><td id = 'td_course'>";
$array_options = array();
$array_options[0] = $ui->option()->value("0")->text("Select Course")->disabled()->selected();
foreach ($result_course as $row) {
    array_push($array_options, $ui->option()->value($row->id)->text($row->name));
}
$ui->select()->label('Select Course')->name('course')->id("course_selection")->containerId("cont_course_selection")->options($array_options)->show();
$ui->button()->value('Delete Course')->uiType('primary')->submit()->id("btn_course")->name('btn_course')->show();
echo "</td>";
echo "<td id = 'td_branch'>";
$array_options = array();
$array_options[0] = $ui->option()->value("0")->text("Select Branch")->disabled()->selected();
foreach ($result_branch as $row) {
    array_push($array_options, $ui->option()->value($row->id)->text($row->name));
}
$ui->select()->label('Select Branch')->name('branch')->id("branch_selection")->containerId("cont_branch_selection")->options($array_options)->show();
$ui->button()->value('Delete Branch')->uiType('primary')->submit()->id("btn_branch")->name('btn_branch')->show();
echo "</td></tr>";
$table->close();
$box_outter->close();
$column1->close();
$outer_row->close();
开发者ID:pkdism,项目名称:ISM-MIS,代码行数:30,代码来源:delete.php

示例11: array

$table->close();
echo '</div>';
?>
<center><button value = "PRINT" class = " btn btn-primary "onclick="printContent('print_book_chap')" >PRINT</button></center><?php 
$book_chapter->close();
$search = $ui->tabPane()->id("search")->open();
$box = $ui->box()->uiType('primary')->solid()->title('Search Publications')->open();
$form_attrinutes = array("id" => "search_publication_form", "method" => "post");
$form = $ui->form()->action('publication/publication/search_result', $form_attrinutes)->open();
$table = $ui->table()->hover()->bordered()->open();
?>
					<tr>
						<th>Department</th>
						<th>
							<?php 
$ui->select()->name('department_name')->id('department_name')->options(array($ui->option()->value('""')->text('Select')))->show();
?>
						</th>
					</tr>
					<tr>
						<th>Faculty</th>
						<th>
							<?php 
$ui->select()->name('faculty_name')->id('faculty_name')->options(array($ui->option()->value('""')->text('Select')))->show();
?>
						</th>
					</tr>
					<tr>
						<th>Type of Publication</th>
						<th>
							<?php 
开发者ID:pkdism,项目名称:ISM-MIS,代码行数:31,代码来源:view_own_publications.php

示例12: UI

<?php

$ui = new UI();
$outer_row = $ui->row()->id('or')->open();
$column1 = $ui->col()->width(12)->t_width(6)->m_width(12)->open();
$formbox = $ui->box()->id('form_box')->open();
$form = $ui->form()->id("add_course_form")->action("course_structure/elective_offered")->multipart()->open();
$array_options = array();
$array_options[0] = $ui->option()->value("0")->text("Select Course")->selected();
foreach ($result_course as $row) {
    array_push($array_options, $ui->option()->extras('data-duration="' . $row->duration . '"')->value($row->id)->text($row->name));
}
$ui->select()->label('Select Course')->name('course')->id("course_selection")->containerId('cont_course_selection')->options($array_options)->show();
$ui->select()->label('Select Branch')->name('branch')->id("branch_selection")->containerId('cont_branch_selection')->show();
$ui->select()->label('Batch')->name('session')->id("session_selection")->containerId('cont_session_selection')->show();
$ui->select()->label('Select Semester')->name('sem')->id("semester")->containerId('cont_semester')->show();
$ui->button()->value('Show Elective')->uiType('primary')->submit()->name('submit')->show();
$form->close();
$formbox->close();
$column1->close();
$outer_row->close();
?>
		 
开发者ID:pkdism,项目名称:ISM-MIS,代码行数:22,代码来源:elective_offered_home.php

示例13: UI

<?php

$ui = new UI();
$outer_row = $ui->row()->id('or')->open();
$column1 = $ui->col()->width(12)->t_width(6)->m_width(12)->open();
$formbox = $ui->box()->id('box_form')->title("Select Company to view JNF")->open();
$form = $ui->form()->id("add_course_form")->action("tnpcell/view_jnf/ViewJNF")->multipart()->open();
$array_options = array();
foreach ($company_basic_info as $row) {
    array_push($array_options, $ui->option()->value($row->company_id)->text($row->company_name . " (" . $row->session . ")"));
}
$ui->select()->id("ddl_company")->name("ddl_company")->options($array_options)->show();
$ui->button()->value('View JNF')->uiType('primary')->submit()->name('submit')->show();
$form->close();
$formbox->close();
$column1->close();
$outer_row->close();
开发者ID:pkdism,项目名称:ISM-MIS,代码行数:17,代码来源:select_company.php

示例14:

$form = $ui->form()->action('information/post_minute/index/' . $auth_id)->extras('enctype="multipart/form-data"')->open();
$star_notice = $ui->row()->open();
//echo" Fields marked with <span style= 'color:red;'>*</span> are mandatory.";
$star_notice->close();
$compose_box = $ui->box()->icon($ui->icon('edit'))->title('Compose Minute')->solid()->uiType('primary')->open();
$inputRow1 = $ui->row()->open();
if ($id->minutes_id == NULL) {
    $ui->input()->label('Minutes ID<span style= "color:red;"> *</span>')->type('text')->name('minutes_ids')->required()->value('1')->disabled()->width(6)->show();
} else {
    $ui->input()->type('text')->label('Minutes ID<span style= "color:red;"> *</span>')->name('minutes_ids')->required()->width(6)->value($id->minutes_id + 1)->disabled()->show();
}
$ui->input()->type('text')->label('Minutes Number<span style= "color:red;"> *</span>')->name('minutes_no')->required()->width(6)->placeholder('Enter Minutes Number  
		    	(Ex: CSE_MINUTE_10185)')->show();
$inputRow1->close();
$inputRow2 = $ui->row()->open();
$ui->select()->label('Meeting Type<span style= "color:red;"> *</span>')->name('meeting_type')->options(array($ui->option()->value('Dean\'s Meeting')->text('Dean\'s Meeting')->selected(), $ui->option()->value('HOD\'s Meeting')->text('HOD\'s Meeting'), $ui->option()->value('GC Meeting')->text('GC Meeting'), $ui->option()->value('DAC Meeting')->text('DAC Meeting'), $ui->option()->value('others')->text('others')))->extras('onchange="javascript: 
						if(this.value ' . "== 'others') \n\t\t\t\t\t\t\tdocument.getElementById('others').removeAttribute('disabled'); else document.getElementById('others').setAttribute('disabled','disabled');" . '" "')->width(6)->show();
$ui->input()->type('text')->name('meeting_others')->id('others')->label('Other Type')->width(6)->placeholder('Only if Meeting Type other is selected')->disabled()->show();
$inputRow2->close();
$inputRow3 = $ui->row()->open();
$ui->datePicker()->name('date_of_meeting')->label('Date of Meeting<span style= "color:red;"> *</span>')->value(date("Y-mm-dd"))->width(6)->dateFormat('yyyy-mm-dd')->show();
$ui->datePicker()->name('valid_upto')->label('Last Date<span style= "color:red;"> *</span> (Atleast today)')->value(date("Y-mm-dd"))->dateFormat('yyyy-mm-dd')->width(6)->show();
$inputRow3->close();
$inputRow4 = $ui->row()->open();
$ui->input()->label('Minutes File<span style= "color:red;"> *</span>')->type('file')->name('minutes_path')->required()->width(6)->show();
$ui->input()->type('text')->name('place_of_meeting')->width(6)->required()->placeholder('CSE Department')->label('Place of Meeting<span style= "color:red;"> *</span>')->show();
$inputRow4->close();
echo "(Allowed Types: pdf, doc, docx, jpg, jpeg, png, xls, xlsx, csv and Max Size: 1.0 MB)";
$value = 1;
if ($id->minutes_id != NULL) {
    $value = $id->minutes_id + 1;
开发者ID:vivek0739,项目名称:information,代码行数:31,代码来源:post_minute.php

示例15: 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>
开发者ID:vivek0739,项目名称:information,代码行数:30,代码来源:semester.php


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