本文整理汇总了PHP中UI::input方法的典型用法代码示例。如果您正苦于以下问题:PHP UI::input方法的具体用法?PHP UI::input怎么用?PHP UI::input使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UI
的用法示例。
在下文中一共展示了UI::input方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: UI
* Email: vivek0739@users.noreply.github.com
* Date: 2 july 2015
*/
$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(8)->open();
$form = $ui->form()->action('consultant/consultancy_proposal_approve/edit_form3_submit/' . $form2->sr_no . '/' . $form2->payment_no)->extras('enctype="multipart/form-data"')->id('form_submit')->open();
$box = $ui->box()->title('Generate Receipt')->solid()->uiType('primary')->open();
$row1 = $ui->row()->open();
$ui->input()->type('text')->label('Consultancy / Assignment No.')->name('cons')->id('cons')->value($form2->consultancy_no)->width(6)->disabled()->show();
$ui->input()->type('text')->label('ISM Cash Receipt No.')->name('receipt_no')->id('receipt_no')->value($data2->receipt_no)->width(6)->show();
$row1->close();
$row1 = $ui->row()->open();
$ui->datePicker()->name('dated')->label('Dated<span style= "color:red;"> *</span>')->value($data2->timestamp)->dateFormat('yyyy-mm-dd')->width(6)->show();
$ui->input()->type('text')->label('RS.')->name('amount')->id('amount')->value($data2->amount)->width(6)->show();
$row1->close();
$row1 = $ui->row()->open();
$coll = $ui->col()->width(4)->open();
echo '<a href="' . base_url() . 'assets/files/consultant/RECEIPT/' . $data2->filepath . '" title=
"download file" download="' . $data2->filepath . '">' . $data2->filepath . '</a>';
$coll->close();
$colll = $ui->col()->width(2)->open();
$js = 'onclick="javascript:document.getElementById(\'filebox\').style.display=\'block\';"';
$ui->button()->icon($ui->icon('refresh'))->value('Change')->uiType('primary')->extras($js)->mini()->show();
$colll->close();
示例2:
<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();
/* $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();
示例3: date
}
}
}
}
echo ' (' . date('d M Y g:i a', strtotime($action_recent->timestamp) + 19800) . ') </span>';
$col1->close();
$column1 = $ui->col()->width(0)->open();
$column1->close();
$column2 = $ui->col()->width(12)->open();
$box = $ui->box()->solid()->uiType('primary')->open();
$form = $ui->form()->action('consultant/project_account/confirmation/' . $sr_no)->extras('enctype="multipart/form-data"')->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')->value($consultancy_no)->disabled()->show();
$col1 = $ui->col()->width(6)->open();
$ui->input()->type('hidden')->name('sr_no')->id('sr_no')->width(12)->value($sr_no)->show();
$col1->close();
$col2->close();
$col2 = $ui->col()->width(12)->open();
// $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();
$col2->close();
$inputRow2->close();
$tabRow1 = $ui->row()->open();
$innercol2 = $ui->col()->width(12)->open();
$tabBox1 = $ui->tabBox()->tab("t1", "Details of Receipt / Payment", true)->tab("t2", "Credits & Disbursement")->tab("t3", "Net Amount Paylable")->tab("t4", "Calculation Sheet For Course Consultancy/Testing Disbursement")->open();
示例4:
$myTabBox = $ui->tabBox()
->tab("someId1", "String title")
->tab("someId2", $ui->icon("some-icon"))
->tab("someId3", $ui->icon("some-icon") . " string and icon")
...
->open();
</pre>
<?php
$aboutTitleTab->close();
$tab1 = $ui->tabPane()->id("settings")->open();
?>
<p>This tab just has an <code>Icon</code> as its title. You can also have <code>Input</code>s in the content.</p><?php
$ui->input()->type('text')->label("A text field")->show();
$tab1->close();
$tabBox1->close();
$col->close();
$col = $ui->col()->width(4)->open();
$tabBox2 = $ui->tabBox()->tab("t1", "Tab 1")->tab("t2", "Tab 2")->tab("t3", "Tab 3", true)->tab("t4", "Tab 4")->open();
$t1 = $ui->tabPane()->id("t1")->active()->open();
?>
<p>This <code>TabBox</code> does not have a title. Also, the <strong>Tab 3</strong> is active by default. This is done by setting the third argument to <code>true</code> while adding the tab.</p>
<pre>
$myTabBox = $ui->tabBox()
...
->tab("t3", "Tab 3", true)
->open();
</pre>
示例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();
?>
示例6: Number
$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('Circular Details')->solid()->uiType('primary')->open();
$form = $ui->form()->action('information/post_circular/index/' . $auth_id)->extras('enctype="multipart/form-data"')->open();
$star_circular = $ui->row()->open();
//echo" Fields marked with <span style= 'color:red;'>*</span> are mandatory.";
$star_circular->close();
$inputRow1 = $ui->row()->open();
if ($id->circular_id == NULL) {
$ui->input()->label('Circular ID<span style= "color:red;"> *</span>')->type('text')->name('circular_ids')->required()->value('1')->disabled()->width(6)->show();
} else {
$ui->input()->type('text')->label('Circular ID<span style= "color:red;"> *</span>')->name('circular_ids')->required()->width(6)->value($id->circular_id + 1)->disabled()->show();
}
$ui->input()->type('text')->label('Circular Number<span style= "color:red;"> *</span>')->name('circular_no')->required()->width(6)->placeholder('Enter Circular Number (Ex: CSE_CIRC_10185)')->show();
$inputRow1->close();
$inputRow2 = $ui->row()->open();
$ui->select()->label('Viewed By<span style= "color:red;"> *</span>')->name('circular_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();
$ui->textarea()->label('Circular Subject<span style= "color:red;"> *</span>')->placeholder('Enter the circular Subject in not more than 200 characters')->name('circular_sub')->required()->width(8)->show();
$inputRow2->close();
$inputRow3 = $ui->row()->open();
$ui->input()->label('Circular File<span style= "color:red;"> *</span>')->type('file')->name('circular_path')->required()->width(6)->show();
$ui->datePicker()->name('valid_upto')->label('Last Date<span style= "color:red;"> *</span> (Atleast today)')->value(date("yy-mm-dd"))->dateFormat('yy-mm-dd')->width(6)->show();
$inputRow3->close();
echo "(Allowed Types: pdf, doc, docx, jpg, jpeg, png and Max Size: 1.0 MB)";
$value = 1;
示例7: UI
$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();
$inputRow2->close();
$inputRow3 = $ui->row()->open();
示例8: UI
<?php
$ui = new UI();
$headingBox = $ui->box()->uiType('info')->title('Edit the Details of Post')->solid()->open();
$form = $ui->form()->multipart()->action('guard/manage_post/edit')->open();
$postidRow = $ui->row()->id('postidRow')->open();
$guardlabel = $ui->col()->width(4)->t_width(8)->m_width(12)->open();
echo 'Post ID';
$guardlabel->close();
$guardinput = $ui->col()->width(8)->t_width(4)->m_width(12)->open();
$ui->input()->value($details_of_a_postname['post_id'])->disabled()->show();
$guardinput->close();
$postidRow->close();
$postRow = $ui->row()->id('postRow')->open();
$postlabel = $ui->col()->width(4)->t_width(8)->m_width(12)->open();
echo 'Post Name';
$postlabel->close();
$postinput = $ui->col()->width(8)->t_width(4)->m_width(12)->open();
$ui->input()->id('postname')->name('postname')->required()->placeholder('Enter Post Name')->value($details_of_a_postname['postname'])->show();
$postinput->close();
$postRow->close();
$ipRow = $ui->row()->id('ipRow')->open();
$guardlabel = $ui->col()->width(4)->t_width(8)->m_width(12)->open();
echo 'IP Address of Post';
$guardlabel->close();
$guardinput = $ui->col()->width(8)->t_width(4)->m_width(12)->open();
$ui->input()->id('ipaddress')->name('ipaddress')->placeholder('Enter IP Address')->value($details_of_a_postname['ipaddress'])->show();
$guardinput->close();
$ipRow->close();
$shiftRow = $ui->row()->id('shiftRowA')->open();
$shiftlabel = $ui->col()->width(4)->t_width(8)->m_width(12)->open();
示例9:
<th>Practical</th>
<th>Credit Hours</th>
<th>Contact Hours</th>
<th>Elective</th>
<th>Type</th>
<th>Edit</th>
</tr>';
for ($i = 1; $i <= $subjects["count"][$semester]; $i++) {
echo '
<tr>
<td>';
echo $subjects["sequence_no"][$semester][$i];
echo '
</td>
<td>';
$ui->input()->name("subjectid_" . $semester . "_" . $i)->id($subjects["subject_details"][$semester][$i]->id)->value($subjects["subject_details"][$semester][$i]->subject_id)->disabled()->show();
echo '
</td>
<td>';
$ui->input()->name("subjectname_" . $semester . "_" . $i)->value($subjects["subject_details"][$semester][$i]->name)->disabled()->show();
echo '
</td>
<td>';
$ui->input()->name("subjectL_" . $semester . "_" . $i)->value($subjects["subject_details"][$semester][$i]->lecture)->disabled()->show();
echo '
</td>
<td>';
$ui->input()->name("subjectT_" . $semester . "_" . $i)->value($subjects["subject_details"][$semester][$i]->tutorial)->disabled()->show();
echo '
</td>
<td>';
示例10:
$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();
?>
</td>
<td>
<?php
$innercol1 = $ui->col()->width(12)->open();
$ui->select()->name('position_select' . $i)->id("position_select" . $i)->options(array($ui->option()->value('coci')->text('Co-consultant-in-charge'), $ui->option()->value('ftm')->text('Faculty Member')->selected()))->show();
$innercol1->close();
?>
</td>
<td>
<?php
$innercol1 = $ui->col()->width(12)->open();
示例11:
$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(8)->open();
$box = $ui->box()->solid()->uiType('primary')->open();
$form = $ui->form()->extras('enctype="multipart/form-data"')->action('information/edit_circular/edit/' . $circular_row->circular_id . '/' . $auth_id)->open();
$star_circular = $ui->row()->open();
//echo" Fields marked with <span style= 'color:red;'>*</span> are mandatory.";
$star_circular->close();
$compose_box = $ui->box()->icon($ui->icon('edit'))->title('Circular Details')->solid()->uiType('primary')->open();
$inputRow1 = $ui->row()->open();
$ui->input()->type('text')->label('Circular ID<span style= "color:red;"> *</span>')->name('circular_ids')->required()->width(6)->value($circular_row->circular_id)->disabled()->show();
$ui->input()->type('text')->label('Circular Number<span style= "color:red;"> *</span>')->name('circular_no')->value($circular_row->circular_no)->required()->width(6)->show();
$inputRow1->close();
$inputRow2 = $ui->row()->open();
$ui->textarea()->label('Circular Subject<span style= "color:red;"> *</span>')->placeholder('Enter the circular Subject in not more than 200 characters')->name('circular_sub')->value($circular_row->circular_sub)->required()->width(12)->show();
$inputRow2->close();
$inputRow3 = $ui->row()->open();
$ui->datePicker()->name('valid_upto')->label('Last Date<span style= "color:red;"> *</span> (Atleast today)')->value($circular_row->valid_upto)->dateFormat('yyyy-mm-dd')->width(6)->show();
//$inputRow3->close();
$inputRow3 = $ui->col()->width(6)->open();
$coll = $ui->col()->width(6)->open();
echo '<br/><a href="' . base_url() . 'assets/files/information/circular/' . $circular_row->circular_path . '" title="download file" download="' . $circular_row->circular_path . '">' . $circular_row->circular_path . '</a>';
$coll->close();
$colll = $ui->col()->width(6)->open();
$js = 'onclick="javascript:document.getElementById(\'filebox\').style.display=\'block\';"';
echo "<br/> <div align='right'>";
示例12: array
echo '<h3><b><center>Add details to your CV</b></center>';
echo '2. Awards & Achievements</h3>';
$formbox = $ui->box()->id('box_form')->open();
$form = $ui->form()->id("add_course_form")->action("tnpcell/cv/save_achievements")->open();
$table = $ui->table()->responsive()->hover()->bordered()->open();
$category = array("Research Papers Published", "Academic Achievements", "Co-curricular Achievements", "Position of Responsibility", "Skill-Set");
echo '
<tr>
<th>Title</th>
<th>Details</th>
</tr>';
for ($i = 1; $i <= 5; $i++) {
echo '
<tr>
<td width="30%">';
$ui->input()->placeholder($category[$i - 1])->value($category[$i - 1])->id('category' . $i)->name('category' . $i)->show();
echo '
</td>
<td>';
$ui->textarea()->rows(7)->cols(60)->placeholder('Max 2000 characters')->id('information' . $i)->name('information' . $i)->show();
echo '
</td>
</tr> ';
}
$table->close();
echo '<br><center>';
$ui->button()->value('Save')->uiType('primary')->submit()->name('Submit')->show();
$form->close();
$formbox->close();
$column1->close();
$outer_row->close();
示例13: UI
$ui = new UI();
$errors = validation_errors();
if ($errors != '') {
$this->notification->drawNotification('Validation Errors', validation_errors(), 'error');
}
$row = $ui->row()->open();
$column1 = $ui->col()->width(1)->open();
$column1->close();
$column2 = $ui->col()->width(10)->open();
$form = $ui->form()->action('consultant/edit_consultancy_form/submit_edited_consult_form/' . $cons_row->sr_no)->extras('enctype="multipart/form-data"')->id('form_submit')->open();
$row1 = $ui->row()->open();
$ui->callout()->uiType("info")->desc("No deduction will be made from the budget head except applicable income tax.")->show();
$box = $ui->box()->title('ESTIMATE FORM ')->solid()->uiType('primary')->open();
$row1 = $ui->row()->open();
$innercol1 = $ui->col()->width(12)->open();
$ui->input()->label('Title<span style= "color:red;"> *</span>')->type('text')->name('consultant_title')->required()->value($cons_row->consultancy_title)->show();
$innercol1->close();
/*scope file*/
$innercol3 = $ui->col()->width(6)->open();
$coll = $ui->col()->width(8)->open();
echo '<br> <a href="' . base_url() . 'assets/files/consultant/SCOPE_WORK/' . $cons_row->scope_work . '" title=
"download file" download="' . $cons_row->scope_work . '">' . $cons_row->scope_work . '</a>';
$coll->close();
$colll = $ui->col()->width(4)->open();
$js = 'onclick="javascript:document.getElementById(\'filebox1\').style.display=\'block\';"';
echo " <div align='right'>";
$ui->button()->icon($ui->icon('refresh'))->value('Scope Of Work')->uiType('primary')->extras($js)->show();
echo "</div><br/>";
$colll->close();
$innercol2 = $ui->col()->id('filebox1')->extras('style="display:none"')->width(12)->open();
$ui->input()->label('Scope of work<span style= "color:red;"> *</span>')->type('file')->id('work_scope')->name('work_scope')->width(12)->show();
示例14:
</tr>
<?php
$sno++;
}
$table->close();
} else {
$ui->callout()->uiType("info")->title("No File sent by You.")->desc("You have not sent any file, track file by track number.")->show();
}
?>
<br/>
<div id="move_details_of_sent_files">
</div>
<?php
$tab1->close();
$tab2 = $ui->tabPane()->id("track_num_tab")->open();
$ui->input()->placeholder('Enter track number')->type('text')->label('Track Number')->id('track_num')->name('track_num')->show();
?>
<center>
<?php
$ui->button()->value('Track File')->id('submit')->uiType('primary')->submit()->name('submit')->show();
?>
</center>
<br>
<div id="move_details_by_track_num">
</div>
<?php
// $box2 = $ui->box()
// ->id('move_details_by_track_num')
// ->open();
$tab2->close();
$tabBox1->close();
示例15:
$form = $ui->form()->id("add_course_form")->action("tnpcell/cv/save_projects")->open();
$table = $ui->table()->responsive()->hover()->bordered()->open();
echo '
<tr>
<th>Sl.No</th>
<th>Details</th>
</tr>';
for ($counter = 1; $counter <= 5; $counter++) {
echo '
<tr>
<td>';
echo $counter;
echo '
</td>
<td>';
$ui->input()->placeholder('Place')->id('place' . $counter)->name('place' . $counter)->show();
$ui->input()->placeholder('Title')->id('title' . $counter)->name('title' . $counter)->show();
$ui->input()->placeholder('Duration (in weeks)')->id('duration' . $counter)->name('duration' . $counter)->show();
$ui->input()->placeholder('Role')->id('role' . $counter)->name('role' . $counter)->show();
$ui->textarea()->placeholder('Description')->id('description' . $counter)->name('description' . $counter)->show();
echo '
</td>
</tr> ';
}
$table->close();
echo '<br><center>';
$ui->button()->value('Next')->uiType('primary')->submit()->name('Submit')->show();
$form->close();
$formbox->close();
$column1->close();
$outer_row->close();