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


PHP UI::checkbox方法代码示例

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


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

示例1:

									</th>
									<th>
										Credit Hours
									</th>
									<th>
										Contact Hours
									</th>
								</tr>';
        //echo $subject[$val]['count'];
        for ($i = 0; $i < $subject[$val]['count']; $i++) {
            echo '
								<tr>
									<td>';
            //if it is already selected elective.
            if (isset($subject[$subject[$val]['id'][$i]]['selected']) && $subject[$subject[$val]['id'][$i]]['selected']) {
                $ui->checkbox()->name('checkbox[]')->checked()->value($subject[$val]['id'][$i])->show();
            } else {
                $ui->checkbox()->name('checkbox[]')->value($subject[$val]['id'][$i])->show();
            }
            echo '
									</td>
									<td>';
            echo $subject[$val]['subject_id'][$i];
            echo '	
									</td>
									<td>';
            echo $subject[$val]['subject_name'][$i];
            echo '
									</td>
									<td>';
            echo $subject[$val]['lecture'][$i];
开发者ID:pkdism,项目名称:ISM-MIS,代码行数:31,代码来源:LoadOfferedElective.php

示例2: array

$col->close();
$dataTablesRow->close();
?>
<h2 class="page-header">Form Elements</h2><?php 
$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();
开发者ID:pkdism,项目名称:ISM-MIS,代码行数:31,代码来源:example.php

示例3: RemoveAllotedDate

                if ($row->status == "Pending") {
                    $ui->label()->uiType("warning")->text($row->status)->show();
                }
            }
        }
    }
    echo '
									</td>
									<td>';
    $ui->datePicker()->required()->dateformat("yyyy-mm-dd")->id("date_reschedulefrom_" . $row->company_id)->name("date_reschedulefrom_" . $row->company_id)->placeholder("Select Date")->show();
    echo '</td>
									 <td>';
    $ui->datePicker()->required()->dateformat("yyyy-mm-dd")->id("date_rescheduleto_" . $row->company_id)->name("date_rescheduleto_" . $row->company_id)->placeholder("Select Date")->show();
    echo '</td>
									<td>';
    $ui->checkbox()->id("stu_visibility_" . $row->company_id)->name("stu_visibility_" . $row->company_id)->checked($row->stu_visibility ? true : false)->show();
    echo '
									</td>
									<td>';
    $ui->button()->value('Check Slot')->uiType('primary')->extras('onclick = checkslot_in_reschedule(' . "'" . $row->company_id . "'" . ')')->id("btn_checkslot_reschedule")->name('btn_checkslot_reschedule')->show();
    //$ui->input()->type('hidden')->value($row->company_id)->name("hidden_company_id")->show();
    echo '
									</td>
									<td>';
    $ui->button()->value('Save')->uiType('primary')->extras("onclick = helper_reschedule_in_reschedule('" . $row->company_id . "')")->id("btn_reschedule")->name('submit')->show();
    echo '
									</td>
									<td>';
    $ui->button()->value('Remove')->uiType('danger')->extras("onclick = RemoveAllotedDate('" . $row->company_id . "')")->icon($ui->icon("trash"))->id("btn_reschedule_remove")->name('submit')->show();
    echo '
									</td>';
开发者ID:pkdism,项目名称:ISM-MIS,代码行数:31,代码来源:allot_date.php


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