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


PHP UI::option方法代码示例

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


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

示例1: queryByDesignation

 public function queryByDesignation()
 {
     $this->addJS('employee/queries_script.js');
     $data['query_by'] = "Designation";
     $this->load->model('designations_model', '', TRUE);
     $designations = $this->designations_model->get_designations();
     $ui = new UI();
     $options = array($ui->option()->value("none")->text("Select Designation")->disabled()->selected());
     foreach ($designations as $des) {
         array_push($options, $ui->option()->value($des->id)->text($des->name));
     }
     $data['options'] = $options;
     $this->drawHeader('Query By Designation');
     $this->load->view('employee/queries/query', $data);
     $this->drawFooter();
 }
开发者ID:pkdism,项目名称:ISM-MIS,代码行数:16,代码来源:queries.php

示例2: 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

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

示例4:

$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

示例5: 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')->open();
$form = $ui->form()->id("form_file_upload")->action("course_structure/upload_syllabus/upload")->multipart()->open();
$array_options = array();
$array_options[0] = $ui->option()->value("")->text("Select Department")->disabled();
foreach ($result_dept as $row) {
    array_push($array_options, $ui->option()->value($row->id)->text($row->name));
}
$ui->select()->label('Select Department')->name('dept')->id("dept_selection")->required()->options($array_options)->show();
$ui->select()->label('Select Course')->name('course')->id("course_selection")->required()->containerId('cont_course_selection')->show();
$ui->select()->label('Select Branch')->name('branch')->id("branch_selection")->required()->containerId('cont_branch_selection')->show();
$ui->select()->label('Valid From')->name('session')->id("session_selection")->required()->containerId('cont_session_selection')->show();
$ui->input()->label("Upload Syllabus")->type("file")->id("file_upload")->name("file_upload")->containerId("cont_file_upload")->show();
$ui->button()->value('Upload Syllabus')->uiType('primary')->submit()->name('submit')->show();
$form->close();
$formbox->close();
$column1->close();
$outer_row->close();
?>
		 
开发者ID:pkdism,项目名称:ISM-MIS,代码行数:23,代码来源:upload_syllabus.php

示例6:

$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();
$inputRow2->close();
$inputRow3 = $ui->row()->open();
$ui->textarea()->label('Notice Subject<span style= "color:red;"> *</span>')->placeholder('Enter the notice Subject in not more than 200 characters')->name('notice_sub')->value($notice_row->notice_sub)->required()->width(8)->show();
$inputRow3->close();
$inputRow4 = $ui->row()->open();
$coll = $ui->col()->width(3)->open();
echo '<a href="' . base_url() . 'assets/files/information/notice/' . $notice_row->notice_path . '" title="download file" download="' . $notice_row->notice_path . '">' . $notice_row->notice_path . '</a>';
开发者ID:pkdism,项目名称:ISM-MIS,代码行数:31,代码来源:edit_notice.php

示例7: 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

示例8: UI

<?php

$ui = new UI();
$headingBox = $ui->box()->uiType('info')->title('Assign Overtime Duty to a Guard')->solid()->open();
$form = $ui->form()->multipart()->action('guard/duties/assign_overtime')->open();
$postRow = $ui->row()->id('searchRow')->open();
$postlabel = $ui->col()->width(4)->t_width(8)->m_width(12)->open();
echo 'Select Post Name';
$postlabel->close();
$postinput = $ui->col()->width(8)->t_width(4)->m_width(12)->open();
$postname_array = array();
if ($posts === False) {
    $postname_array[] = $ui->option()->value('')->text('No Postname');
} else {
    $postname_array[] = $ui->option()->value('')->text('Select Postname')->disabled();
    foreach ($posts as $row) {
        $postname_array = array_values($postname_array);
        $postname_array[] = $ui->option()->value($row['post_id'])->text($row['postname']);
    }
}
$ui->select()->name('post_id')->id('post_id')->addonLeft($ui->icon("building"))->options($postname_array)->required()->show();
$postinput->close();
$postRow->close();
$dateRow = $ui->row()->id('dateRow')->open();
$datelabel = $ui->col()->width(4)->t_width(8)->m_width(12)->open();
echo 'Select a date';
$datelabel->close();
$dateinput = $ui->col()->width(4)->t_width(4)->m_width(12)->open();
$ui->datePicker()->name('date')->id('date')->placeholder("Enter the date")->addonLeft($ui->icon("calendar"))->dateFormat('yyyy-mm-dd')->required()->extras("min='date('yyyy-mm-dd')'")->show();
$dateinput->close();
$dateRow->close();
开发者ID:pkdism,项目名称:ISM-MIS,代码行数:31,代码来源:assign_overtime.php

示例9: Amount

					                  
					                  <th width=20%>Select Position</th>
					                  <th width=20%>Gross Amount(Rs)</th>


					                </thead>
					                
					                  </tr><?php 
for ($i = 1; $i <= $member; $i++) {
    ?>
<tr>
					                  <td>

					                    <?php 
    $innercol1 = $ui->col()->width(12)->open();
    $ui->select()->name('emp_dept' . $i)->id('emp_dept' . $i)->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('employee_select' . $i)->id('employee_select' . $i)->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('emp_no' . $i)->id('emp_no' . $i)->value('')->width(12)->show();
    $innercol1->close();
开发者ID:vivek0739,项目名称:consultancy,代码行数:30,代码来源:disbursement_member_without_ci.php

示例10: 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

示例11: 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

示例12: 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

示例13: UI

<?php

$ui = new UI();
//pay_options
$pay_options = array($ui->option()->value("")->text("Choose One")->disabled()->selected());
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 . ')'));
    }
}
//states options
$state_options = array($ui->option()->value("")->text("Choose One")->disabled()->selected());
foreach ($states as $row) {
    array_push($state_options, $ui->option()->value($row->state_name)->text(ucwords($row->state_name)));
}
if ($error != "") {
    $ui->alert()->uiType('danger')->title('ERROR')->desc($error)->show();
}
$form = $ui->form()->id('basic_details')->multipart()->action('employee/add/insert_basic_details')->open();
echo '<h2 class="page-header" id="emp_id_display"></h2>';
$row = $ui->row()->open();
$col = $ui->col()->id('hide_emp')->width(4)->open();
$emp_sel_box = $ui->box()->uiType('primary')->title('Select Employee ID')->open();
$ui->input()->name('emp_id')->id('emp_id')->required()->addonRight($ui->button()->value('Go')->id('fetch_id_btn')->uiType('primary'))->label('Employee Id<span style= "color:red;"> *</span>')->show();
$emp_sel_box->close();
$col->close();
echo '<div class="hideit">';
$col = $ui->col()->width(12)->open();
echo '<i class="loading" id="empIdIcon" ></i>';
开发者ID:pkdism,项目名称:ISM-MIS,代码行数:31,代码来源:basic_details.php

示例14: 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

示例15: 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


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