本文整理汇总了PHP中UI::callout方法的典型用法代码示例。如果您正苦于以下问题:PHP UI::callout方法的具体用法?PHP UI::callout怎么用?PHP UI::callout使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UI
的用法示例。
在下文中一共展示了UI::callout方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: validate_track_num
public function validate_track_num($track_num)
{
$this->load->model('file_tracking/file_details', '', TRUE);
$file_id = $this->file_details->get_file_id($track_num);
if ($file_id == false) {
//$this->notification->drawNotification("Enter valid Track Number", "");
//$this->session->set_flashdata('flashError','Enter correct Track Number.'.$track_num);
//redirect('file_tracking/track_file');
$ui = new UI();
$ui->callout()->uiType("error")->title("Enter Correct Track Number.")->desc("")->show();
} else {
$res = $this->file_details->get_file_details($track_num);
foreach ($res->result() as $row) {
$file_id = $row->file_id;
$file_no = $row->file_no;
$file_subject = $row->file_subject;
$start_emp_id = $row->start_emp_id;
$close_emp_id = $row->close_emp_id;
}
$this->load->model('file_tracking/file_move_details');
$result = $this->file_move_details->get_move_details($track_num);
$total_rows = $result->num_rows();
$this->load->model('user_model');
$data_array = array();
$sno = 1;
foreach ($result->result() as $row) {
$data_array[$sno] = array();
$j = 1;
$data_array[$sno][$j++] = $row->file_id;
$data_array[$sno][$j++] = $row->track_num;
$data_array[$sno][$j++] = $this->user_model->getNameById($row->sent_by_emp_id);
$data_array[$sno][$j++] = date('j M Y g:i A', strtotime($row->sent_timestamp));
$data_array[$sno][$j++] = $this->user_model->getNameById($row->rcvd_by_emp_id);
if ($row->rcvd_timestamp) {
$data_array[$sno][$j++] = date('j M Y g:i A', strtotime($row->rcvd_timestamp));
} else {
$data_array[$sno][$j++] = $row->rcvd_timestamp;
}
//$data_array[$sno][$j++] = date('j M Y g:i A', strtotime($row->rcvd_timestamp));
$data_array[$sno][$j++] = $row->forward_status;
$data_array[$sno][$j++] = urldecode($row->remarks);
$sno++;
}
$data = array('file_id' => $file_id, 'file_no' => $file_no, 'track_num' => $track_num, 'file_subject' => $file_subject, 'start_emp_id' => $start_emp_id, 'close_emp_id' => $close_emp_id, 'data_array' => $data_array, 'total_rows' => $total_rows);
$this->load->view('file_tracking/track_file/track_table', $data);
}
}
示例2:
}
}
}
if ($step == -1) {
$step = 1;
}
$tabbox = $ui->tabBox()->tab('profile_pic', $status0 . '<br>Profile Pic', $step == 0)->tab('basic_details', $status1 . '<br>Basic Details', $step == 1)->tab('prev_emp', $status2 . '<br>Employment Details', $step == 2)->tab('emp_fam', $status3 . '<br>Family Member Details', $step == 3)->tab('emp_edu', $status4 . '<br>Educational Qualifications', $step == 4)->tab('last_five', $status5 . '<br>Stay Details', $step == 5)->open();
$profile_pic = $ui->tabPane()->id('profile_pic');
if ($step == 0) {
$profile_pic->active();
}
$profile_pic->open();
if ($emp) {
if ($emp_validation_details) {
if ($emp_validation_details->profile_pic_status == 'pending') {
$ui->callout()->title("Pending")->desc("Profile Picture is not yet validated.")->uiType('info')->show();
} else {
if ($emp_validation_details->profile_pic_status == 'rejected') {
$reject = $this->emp_validation_details_model->getRejectReasonWhere(array('id' => $emp_id, 'step' => 0));
$ui->callout()->title("Rejected")->desc("Please contact the Establishment Section for the same." . ($reject ? "<br>Reason behind rejection : " . $reject->reason : ""))->uiType('danger')->show();
}
}
}
view_profile_pic($photo, $pending_photo, $status0);
} else {
$ui->callout()->title('Not Found')->desc("Your details have not been updated. Please check after some time.")->uiType('warning')->show();
}
validation_form($emp_validation_details, 0);
$profile_pic->close();
$basic = $ui->tabPane()->id('basic_details');
if ($step == 1) {
示例3:
$col1->close();
$column1 = $ui->col()->width(1)->open();
$column1->close();
$column2 = $ui->col()->width(10)->open();
foreach ($details as $disbursement) {
}
$box = $ui->box()->solid()->uiType('primary')->open();
$inputRow2 = $ui->row()->open();
$col1 = $ui->col()->width(6)->open();
$col1->close();
$col2 = $ui->col()->width(6)->open();
$ui->input()->type('text')->label('CONS')->name('consultancy_no')->id('consultancy_no')->disabled()->value($disbursement->consultancy_no)->width(12)->show();
$col2->close();
$consultancy_no = $disbursement->consultancy_no;
$inputRow2->close();
$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();
$A_box = $ui->box()->title('A. Details of Receipt/Payment:')->solid()->uiType('primary')->open();
$table_A = $ui->table()->id('table_a')->bordered()->striped()->sortable()->open();
?>
<tr>
<td width=70%>
Total Charges
</td>
<td><?php
$ui->input()->type('text')->name('a_total_charges')->id('a_total_charges')->value($disbursement->a_total_charge)->width(12)->disabled()->show();
?>
</td>
</tr>
<tr>
<td width=70%>
示例4:
$this->notification->drawNotification('Validation Errors', validation_errors(), 'error');
}
$inputRow1 = $ui->row()->open();
$column1 = $ui->col()->width(1)->open();
$column1->close();
$column2 = $ui->col()->width(10)->open();
$box = $ui->box()->solid()->uiType('primary')->open();
foreach ($details as $disbursement) {
}
$inputRow2 = $ui->row()->open();
$col1 = $ui->col()->width(6)->open();
$col1->close();
$col2 = $ui->col()->width(6)->open();
$ui->input()->type('text')->label('CONS')->name('consultancy_no')->id('consultancy_no')->width(12)->value($consultancy_no)->disabled()->show();
$col2->close();
$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();
$inputRow2->close();
$form = $ui->form()->action('consultant/consultant_disbursement_sheet/resubmit/' . $consultancy_no . '/' . $sr_no)->extras('enctype="multipart/form-data"')->open();
$tabRow1 = $ui->row()->open();
$tabBox1 = $ui->tabBox()->tab("t1", "Details of Receipt", true)->tab("t2", "Credits and Disbursement")->tab("t3", "Net Amount")->tab("t4", "Consultants")->tab("t5", "Supporting Staffs")->open();
$t1 = $ui->tabPane()->id("t1")->active()->open();
$A_box = $ui->box()->title('Details of Receipt/Payment:')->solid()->uiType('primary')->open();
$table_A = $ui->table()->id('table_a')->bordered()->striped()->sortable()->open();
?>
<tr>
<td width=70%>Total Charges</td>
<td><?php
$ui->input()->type('text')->name('a_total_charges')->id('a_total_charges')->value($disbursement->a_total_charge)->width(12)->required()->show();
?>
</td>
示例5: UI
<?php
$ui = new UI();
$tabsRow = $ui->row()->open();
$tabBox = $ui->tabBox()->icon($ui->icon("th"))->title("Details of Posts")->tab("current", $ui->icon("bars") . "Current List", true)->tab("archived", $ui->icon("bars") . "Archived List")->open();
$tab1 = $ui->tabPane()->id("current")->active()->open();
if (count($details_of_posts) == 0) {
$box = $ui->callout()->title("Empty List")->desc("There is no post in the current list.")->uiType("info")->show();
} else {
$table = $ui->table()->id('currentTable')->responsive()->hover()->bordered()->striped()->sortable()->searchable()->paginated()->open();
?>
<thead>
<tr>
<th><center>Post Name</center></th>
<th><center>IP Address of Post</center></th>
<th><center>Shift A</center></th>
<th><center>Shift B</center></th>
<th><center>Shift C</center></th>
<th><center>Total</center></th>
<th><center>Edit</center></th>
<th><center>Remove</center></th>
</tr>
</thead>
<?php
foreach ($details_of_posts as $key => $post) {
$total = $post->number_a + $post->number_b + $post->number_c;
echo '<tr>
<td align="center">' . $post->postname . '</td>
<td align="center"><a href = "http://' . $post->ipaddress . '" target= "_blank" title="' . $post->postname . '">' . $post->ipaddress . '</a></td>
<td align="center">' . $post->number_a . '</td>
<td align="center">' . $post->number_b . '</td>
示例6:
if ($notice->modification_value != 0) {
?>
<br>and</br>
<a href="<?php
echo base_url() . 'index.php/information/view_notice/prev/' . $notice->notice_id;
?>
"><?php
echo $ui->button()->mini()->uiType('primary')->value('Get Prev Version')->show();
echo '</a>';
}
echo '</td>
</tr>';
}
$table->close();
} else {
$ui->callout()->uiType("info")->title("No Current Notice.")->desc("You have not any current notice to view.")->show();
}
$tab1->close();
$flag = 2;
$tab2 = $ui->tabPane()->id("archived")->open();
if ($count_archived_notice != 0) {
$table1 = $ui->table()->hover()->bordered()->sortable()->searchable()->paginated()->open();
?>
<thead>
<tr>
<th>Notice Number</th>
<th >Notice Subject</th>
<th>Posted On/ Edited On</th>
<th >Issued By</th>
<th>Revision Status</th>
<th >Links</th>
示例7: UI
<?php
$ui = new UI();
if ($res->num_rows() == 0) {
$ui->callout()->uiType('info')->title('No Files Pending:)')->show();
return;
}
$outer_row = $ui->row()->open();
$column1 = $ui->col()->width(1)->open();
$column1->close();
$column2 = $ui->col()->width(9)->open();
$box = $ui->box()->title('Pending Files')->solid()->uiType('primary')->open();
//content
$table = $ui->table()->hover()->bordered()->sortable()->searchable()->paginated()->open();
?>
<thead>
<tr>
<th>File No</th>
<th>File Subject</th>
<th>Sent By</th>
<th>File Operations</th>
</tr>
</thead>
<?php
foreach ($res->result() as $row) {
?>
<tr>
<td><?php
if ($row->file_no) {
echo $row->file_no;
} else {
示例8:
?>
</td>
<td>
<center>
<?php
$ui->button()->value('Track File')->id('submit' . $sno)->uiType('primary')->name('submit_track')->show();
?>
</center>
</td>
</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>
示例9: UI
* Author: Vivek Kumar
* Email: vivek0739@users.noreply.github.com
* Date: 19 june 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(1)->open();
$column1->close();
$column2 = $ui->col()->width(10)->open();
$form = $ui->form()->action('consultant/consultant/submit_consult_form')->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()->show();
$innercol1->close();
$innercol2 = $ui->col()->width(6)->open();
$ui->input()->label('Scope of work')->type('file')->name('work_scope')->required()->show();
echo "(Allowed Types: pdf, doc, docx, jpg, jpeg, png, xls, xlsx, csv and Max Size: 1.0 MB)<br/><br/>";
$innercol2->close();
$innercol2 = $ui->col()->width(6)->open();
$ui->input()->label('Letter of request from client/Approval letter from Director')->type('file')->name('scope_path')->required()->show();
echo "(Allowed Types: pdf, doc, docx, jpg, jpeg, png, xls, xlsx, csv and Max Size: 1.0 MB)";
$innercol2->close();
$row1->close();
$value = 1;
示例10: UI
<div id="print">
<?php
$ui = new UI();
$tabsRow = $ui->row()->open();
$tabBox = $ui->tabBox()->icon($ui->icon("th"))->title("Duty Chart")->tab("today", $ui->icon("bars") . "Today Chart", true)->tab("tomorrow", $ui->icon("bars") . "Tomorrow Chart")->tab("complete", $ui->icon("bars") . "Complete Chart")->open();
$tab1 = $ui->tabPane()->id("today")->active()->open();
if (count($details_of_guards_at_a_date_today) == 0) {
$box = $ui->callout()->title("Empty List")->desc("There is no duty for any guard today.")->uiType("info")->show();
} else {
$table = $ui->table()->id('dateDutyChartTable')->responsive()->hover()->bordered()->striped()->sortable()->paginated()->searchable()->open();
?>
<thead>
<tr>
<th class="print-no-display" width="30px">Photo</th>
<th><center>Guard Name</center></th>
<th><center>Post Name</center></th>
<th><center>Shift</center></th>
<th><center>Replace</center></th>
<th><center>Remove</center></th>
</tr>
</thead>
<tfoot>
<tr>
<th class="print-no-display" width="30px">Photo</th>
<th><center>Guard Name</center></th>
<th><center>Post Name</center></th>
<th><center>Shift</center></th>
<th><center>Replace</center></th>
<th><center>Remove</center></th>
</tr>
示例11:
$errorHead = "Password Changed";
$errorMessage = "Your Password has been changed. Please login again to continue.";
$uiType = "info";
} else {
if ($error_code == 5) {
$errorHead = "Account created";
$errorMessage = "Your account has been created. Please enter your username and password to login.";
$uiType = "info";
}
}
}
}
}
$logoImg = '<img class="big-logo" src="' . base_url() . 'assets/images/mis-logo-big.png" height="40" style="padding-right: 5px"/>';
$formBox = $ui->box()->title($logoImg . " Please login to continue")->containerClasses("form-box")->open();
$ui->callout()->uiType($uiType)->desc($errorMessage)->show();
$form = $ui->form()->id("login")->action("login/login_user")->open();
$username = $ui->input()->type("text")->name("username")->placeholder("Username")->required()->label("Username");
$password = $ui->input()->type("password")->name("password")->placeholder("Password")->required()->label("Password");
if ($error_code == 1) {
$password->uiType("error");
}
$username->show();
$password->show();
$ui->button()->type("submit")->value("Login")->icon($ui->icon("sign-in"))->uiType("primary")->id("submit")->block()->show();
?>
<hr />
<center>
<a href="#">Forgot Password</a> •
<a href="#">Online Help</a> •
<a href="#">Wiki</a> •
示例12:
if ($minute->modification_value != 0) {
?>
<br>and</br>
<a href="<?php
echo base_url() . 'index.php/information/view_minute/prev/' . $minute->minutes_id;
?>
"><?php
echo $ui->button()->uiType('primary')->mini()->value('Get Prev Version')->show();
echo '</a>';
}
echo '</td>
</tr>';
}
$table->close();
} else {
$ui->callout()->uiType("info")->title("No Current Minutes.")->desc("You have not any current minutes to view.")->show();
}
?>
<?php
$tab1->close();
$flag = 2;
$tab2 = $ui->tabPane()->id("archived")->open();
if ($count_archived_minutes != 0) {
$table1 = $ui->table()->hover()->bordered()->sortable()->searchable()->paginated()->open();
?>
<thead>
<tr>
<th>Minutes Number</th>
<th >Meeting Type</th>
<th >Meeting Date</th>
示例13:
$buttoncol = $ui->col()->width(1)->t_width(2)->m_width(3)->open();
$ui->button()->value('Go')->icon($ui->icon('arrow-right'))->uiType('primary')->id('rangepostsubmit')->name('rangepostsubmit')->show();
$buttoncol->close();
$selectqueryRow->close();
echo '</div>';
$headingBox->close();
?>
<?php
$headingBox = $ui->box()->id('postDutyChartBox')->uiType('info')->title('Details of Guards at post <div style="float:right; margin-left:10px;" id="post-div"></div>')->solid()->open();
$tabsRow = $ui->row()->open();
$tabsCol = $ui->col()->open();
$tabBox = $ui->tabBox()->icon($ui->icon("th"))->title("Duty Chart")->tab("regularp", $ui->icon("bars") . "Regular List", true)->tab("overtimep", $ui->icon("bars") . "Overtime List")->open();
$tab1 = $ui->tabPane()->id("regularp")->active()->open();
echo '<div id="postmessage-div" style="display:none;">';
$box = $ui->callout()->title("Empty List")->desc("List is empty for the given post.")->uiType("info")->show();
echo '</div>';
$tableRow = $ui->row()->id('postDutyChartTableRow')->open();
$table = $ui->table()->id('postDutyChartTable')->responsive()->hover()->bordered()->striped()->sortable()->paginated()->searchable()->open();
?>
<thead>
<tr>
<th class="print-no-display" width="30px">Photo</th>
<th><center>Guard Name</center></th>
<th><center>Shift</center></th>
<th><center>Duty Date</center></th>
</tr>
</thead>
<tfoot>
<tr>
示例14: UI
<?php
$ui = new UI();
$outer_row = $ui->row()->open();
$column1 = $ui->col()->width(1)->open();
$column1->close();
$column2 = $ui->col()->width(10)->open();
$innercol1 = $ui->col()->width(6)->open();
$ui->input()->required()->label('Group Name<span style= "color:red;"> *</span>')->type('text')->name('groups_name_id')->id("groups_name_id")->value('')->show();
$innercol1->close();
$innercol2 = $ui->col()->width(6)->open();
$ui->callout()->title("You can edit any group from here also, ")->uiType("warning")->desc('just type the name of group you want to edit and click any add button and then remove the member if you do not want')->show();
$innercol2->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>
示例15: UI
<?php
$ui = new UI();
$ui->callout()->uiType("info")->desc('You have no any application to approve/reject.')->show();