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


PHP UI::box方法代码示例

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


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

示例1:

                        } else {
                            if ($publications[$i]['edition'] % 10 == 3) {
                                $str[$type] .= $publications[$i]['edition'] . "rd edition.";
                            } else {
                                $str[$type] .= $publications[$i]['edition'] . "th edition.";
                            }
                        }
                    }
                }
            }
        }
    }
    $str[$type] .= "</td></tr>";
}
$column1 = $ui->col()->width(12)->open();
$box = $ui->box()->uiType('primary')->solid()->title('Search Publications')->open();
echo '<div id="all" >';
$table = $ui->table()->hover()->bordered()->open();
for ($i = 1; $i <= 10; $i++) {
    if ($str[$i] != "") {
        if ($i == 1) {
            ?>
<th colspan="4">National Journal</th><?php 
        } else {
            if ($i == 2) {
                ?>
<th colspan="4">International Journal</th><?php 
            } else {
                if ($i == 3) {
                    ?>
<th colspan="4">National Conference</th><?php 
开发者ID:pkdism,项目名称:ISM-MIS,代码行数:31,代码来源:search_result.php

示例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;
开发者ID:pkdism,项目名称:ISM-MIS,代码行数:31,代码来源:last_five_year_stay_details.php

示例3: while

$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();
$box = $ui->box()->title('Add Member')->solid()->uiType('primary')->open();
if ($total_rows != 0) {
    $table = $ui->table()->hover()->bordered()->sortable()->searchable()->paginated()->open();
    ?>
						<thead>
							<tr>							
								<th>Member</th>
								<th >Department</th>
								<th> Add</th>							
							</tr>
						</thead>			
<?php 
    $sno = 1;
    while ($sno <= $total_rows) {
        ?>
开发者ID:vivek0739,项目名称:information,代码行数:30,代码来源:edit_group.php

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

示例5: UI

    $coress_recv = true;
} else {
    $coress_recv = false;
}
$ui = new UI();
$form = $ui->form()->action('student/student_edit/update_basic_details/' . $stu_id . '/' . $coress_recv)->multipart()->id('form_submit')->open();
$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();
开发者ID:pkdism,项目名称:ISM-MIS,代码行数:30,代码来源:student_edit_basic_details.php

示例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('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();
开发者ID:pkdism,项目名称:ISM-MIS,代码行数:31,代码来源:post_circular.php

示例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>&lt;?</code>). Instead of converting all short tags to <code>&lt;?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();
?>
开发者ID:pkdism,项目名称:ISM-MIS,代码行数:31,代码来源:example.php

示例8: UI

<?php

$ui = new UI();
$outer_row = $ui->row()->open();
$column1 = $ui->col()->width()->open();
$column1->close();
$column2 = $ui->col()->width(12)->open();
$new_payment = $payment;
$data_row = $ui->row()->id('data_row')->open();
$data_row->close();
$column2->close();
$column2 = $ui->col()->width(12)->open();
$tabBox1 = $ui->box()->icon($ui->icon("file-o"))->title("Your Consultancy Form")->solid()->uiType('primary')->open();
$new_payment = $payment;
//$tab1 = $ui->tabPane()->id("current")->active()->open();
$table = $ui->table()->hover()->bordered()->sortable()->searchable()->paginated()->open();
?>
						<thead>
							<tr>
														
								<th> Title</th>
								<th>Posted On/ Edited On</th>
								<th>Revision Status</th>
								<th >link</th>
								<th >Request file</th>
							    
							</tr>
						</thead>
<?php 
foreach ($cons_row as $key => $cons_row) {
    ?>
开发者ID:vivek0739,项目名称:consultancy,代码行数:31,代码来源:edit_consultancy_form.php

示例9: 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 
开发者ID:pkdism,项目名称:ISM-MIS,代码行数:31,代码来源:editMinute.php

示例10: UI

$course_name = $CS_session['course_name'];
$course_duration = $CS_session['duration'];
$branch_name = $CS_session['branch_name'];
$aggr_id = $CS_session['aggr_id'];
$session = $CS_session['session'];
$start_semester = $CS_session['start_semester'];
$end_semester = $CS_session['end_semester'];
$ui = new UI();
for ($counter = $start_semester; $counter <= $end_semester; $counter++) {
    $total_credit_hours = 0;
    $total_contact_hours = 0;
    //if it is a common semester then show that also.
    if (isset($CS_session['group'])) {
        $semester = $counter . "_" . $CS_session['group'];
        $box_form = $ui->box()->id("box_form_" . $counter)->title("Semester " . $counter . "(group " . $CS_session['group'] . ") (" . $course_name . ", " . $branch_name . ")")->open();
        $table = $ui->table()->responsive()->hover()->bordered()->open();
        echo '
					<tr>
					  <th>Sl. No</th>
					  <th>Subject ID</th>
					  <th>Subject Name</th>
					  <th>Lecture</th>
					  <th>Tutorial</th>
					  <th>Practical</th>
					  <th>Credit Hours</th>
					  <th>Contact Hours</th>
					  <th>Elective</th>
					  <th>Type</th>
					</tr>';
        for ($i = 1; $i <= $subjects["count"][$semester]; $i++) {
开发者ID:pkdism,项目名称:ISM-MIS,代码行数:30,代码来源:print_cs.php

示例11: UI

<?php

$ui = new UI();
$form = $ui->form()->multipart()->action('employee/edit/update_profile_pic/' . $emp_id)->open();
$row = $ui->row()->open();
$col = $ui->col()->width(6)->open();
$profile_box = $ui->box()->uiType('primary')->solid()->title('Change Profile Picture')->open();
$row1 = $ui->row()->open();
echo '<center><div class="form-group"  >';
if ($pending_photopath) {
    $col1 = $ui->col()->width(6)->open();
} else {
    $col1 = $ui->col()->open();
}
if ($photopath == FALSE || $photopath == "") {
    echo '<img src="' . base_url() . 'assets/images/employee/noProfileImage.png" id="view_photo" width="145" height="150"/>';
} else {
    echo '<img id="view_photo" src="' . base_url() . 'assets/images/' . $photopath . '"  height="150" />';
}
$col1->close();
if ($pending_photopath) {
    $col2 = $ui->col()->width(6)->open();
    if ($pending_photopath == FALSE || $pending_photopath == "") {
        echo '<img src="' . base_url() . 'assets/images/employee/noProfileImage.png" id="pending_photo" width="145" height="150"/>';
    } else {
        echo '<img id="pending_photo" src="' . base_url() . 'assets/images/' . $pending_photopath . '"  height="150" />';
    }
    if ($status == 'pending') {
        echo '<br>' . $ui->label()->uiType('info')->text('Pending');
    } else {
        if ($status == 'rejected') {
开发者ID:pkdism,项目名称:ISM-MIS,代码行数:31,代码来源:profile_pic.php

示例12: foreach

    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();
echo '<label>Gender<span style= "color:red;"> *</span></label>';
开发者ID:pkdism,项目名称:ISM-MIS,代码行数:31,代码来源:own_basic_details.php

示例13: date

                            </ul> -->
<?php 
$circularsTab->close();
$minutesTab = $ui->tabPane()->id("minutes")->open();
$minutesTab->close();
$eventsTabBox->close();
?>





<?php 
$eventsCol->close();
$calendarCol = $ui->col()->width(4)->open();
$calendar = $ui->box()->solid()->containerClasses("bg-blue-gradient")->title("Calendar")->icon($ui->icon("calendar"))->open();
?>
<div id="calendar"></div><?php 
$calendar->close();
$calendarCol->close();
$row->close();
?>
<script type="text/javascript">

    $(document).ready(function() {
        $("#calendar").datepicker("setDate", moment("<?php 
echo date('d-m-Y', time() + 19800);
?>
", "DD-MM-YYYY").toDate());
        $("#calendar").datepicker().on('changeDate',function(e) {
            getNotices(e.format('yyyy-mm-dd'));
开发者ID:pkdism,项目名称:ISM-MIS,代码行数:31,代码来源:home.php

示例14: UI

<?php

$ui = new UI();
//echo form_open('complaint/register_complaint/insert');
$row = $ui->row()->open();
$column1 = $ui->col()->width(2)->open();
$column1->close();
$column2 = $ui->col()->width(8)->open();
$box = $ui->box()->solid()->title("Complaint ID: " . $complaint_id)->uiType('primary')->open();
$form = $ui->form()->action('complaint/supervisor/update_complaint_details/' . $complaint_id . '/' . $type)->open();
$inputRow1 = $ui->row()->open();
$c1 = $ui->col()->width(4)->open();
?>
<p><strong><?php 
$ui->icon("user")->show();
?>
 Complaint By</strong><br/>
			  <sapn><?php 
echo $complaint_by;
?>
</span></p><?php 
$c1->close();
$c2 = $ui->col()->width(4)->open();
?>
<p><strong><?php 
$ui->icon("mobile")->show();
?>
 Mobile No</strong><br/>
			  <span><?php 
echo $mobile;
?>
开发者ID:pkdism,项目名称:ISM-MIS,代码行数:31,代码来源:complaint_details_editable.php

示例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());
}
开发者ID:pkdism,项目名称:ISM-MIS,代码行数:31,代码来源:index.php


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