<?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(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();
 <?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;
Exemple #3
0
<?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/>
<?php

if ($correspondence_address) {
    $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();
*/
Exemple #5
0
     $tbgroup = "O-";
 } elseif ($tbgroup == 'abpos') {
     $tbgroup = "AB+";
 } elseif ($tbgroup == 'abneg') {
     $tbgroup = "AB-";
 }
 //--------------middle name-----
 $mname = $user_details->middle_name;
 if ($mname == "Na") {
     $mname = "";
 } else {
     $mname = $user_details->middle_name;
 }
 //-------------------------------
 $ui = new UI();
 $stuRowpdetails = $ui->row()->open();
 $col1 = $ui->col()->width(12)->open();
 $box = $ui->box()->title('Personal Details')->solid()->uiType('primary')->open();
 $stuRow2 = $ui->row()->open();
 $col1 = $ui->col()->width(3)->open();
 echo "<label>Name</label>";
 $col1->close();
 $col2 = $ui->col()->width(3)->open();
 echo ucwords(trim($user_details->first_name)) . ' ' . ucwords($mname) . ' ' . ucwords(trim($user_details->last_name));
 $col2->close();
 $col3 = $ui->col()->width(3)->open();
 echo "<label>Name in Hindi</label>";
 $col3->close();
 $col4 = $ui->col()->width(3)->open();
 echo $student_details->name_in_hindi;
 $col4->close();
Exemple #6
0
<?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('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();
Exemple #7
0
<?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();
?>
		 
<?php

$ui = new UI();
$form = $ui->form()->action('student/student_editable_by_student/update_my_details')->multipart()->id('form_submit')->open();
$studenteditable_details = $ui->row()->open();
$student_editable_details_box = $ui->box()->uiType('primary')->solid()->title('Editable Details')->open();
$editable_details_row_1 = $ui->row()->open();
$ui->input()->label('Email')->name('email')->type('email')->required()->value($user_detail->email)->required()->width(3)->show();
$ui->input()->label('Alternate Email')->name('alternate_email_id')->id('alternate_email_id')->type('email')->value($stu_detail->alternate_email_id)->width(3)->show();
$ui->input()->label('Mobile No.')->name('mobile')->id('mobile')->required()->value($user_other_detail->mobile_no)->required()->width(3)->show();
$ui->input()->label('Alternate Mobile No.')->name('alternate_mobile')->id('alternate_mobile')->value($stu_detail->alternate_mobile_no)->width(3)->show();
$editable_details_row_1->close();
$editable_details_row_2 = $ui->row()->open();
$ui->input()->label('Hobbies')->name('hobbies')->width(3)->id('hobbies')->value($user_other_detail->hobbies)->show();
$ui->input()->label('Favourite Pass Time')->name('favpast')->id('favpast')->value($user_other_detail->fav_past_time)->width(3)->show();
$ui->input()->label('Extra-Curricular Activities ( if any):')->name('extra_activity')->id('extra_activity')->value($stu_other_detail->extra_curricular_activity)->width(3)->show();
$ui->input()->label('Any other relevant information')->name('any_other_information')->id('any_other_information')->value($stu_other_detail->other_relevant_info)->width(3)->show();
$editable_details_row_2->close();
$editable_details_row_3 = $ui->row()->open();
$editable_col_3_1 = $ui->col()->width(5)->open();
$editable_col_3_1->close();
$ui->button()->submit(true)->value('Update')->uiType('primary')->width(2)->show();
$editable_details_row_3->close();
$editable_details_row_4 = $ui->row()->open();
$editable_col_4_1 = $ui->col()->width(11)->open();
$editable_col_4_1->close();
?>

                        <a href= <?php 
echo site_url();
?>
<?php

/* 
 * Author :- Nishant Raj
 */
$ui = new UI();
if ($notification == true) {
    $ui->alert()->uiType($type)->desc($string)->show();
}
$row = $ui->row()->open();
$alertRow = $ui->row()->open();
$marginCol = $ui->col()->width(3)->open();
$marginCol->close();
$alertRow->close();
$margin = $ui->col()->width(2)->open();
$margin->close();
$column = $ui->col()->width(8)->open();
$box = $ui->box()->title('Station Leave Details')->solid()->uiType('primary')->open();
$form = $ui->form()->action('leave/leave_station/applyStationLeave')->open();
$inputRow1 = $ui->row()->open();
$ui->datePicker()->required()->label('Proposed Date Of Leaving Station ')->name('leave_st_date')->id('leave_st_date')->placeholder("Enter the date")->dateFormat('dd-mm-yyyy')->value("")->width(6)->show();
$ui->datePicker()->required()->id('return_st_date')->label('Proposed Date Of Reurning Station')->name('return_st_date')->placeholder(" Select Returning Date")->dateFormat('dd-mm-yyyy')->width(6)->value("")->show();
$inputRow1->close();
$inputRow2 = $ui->row()->id('st_time')->open();
$ui->timePicker()->label('Leaving Time')->name('st_leaving_time')->addonLeft($ui->icon("clock-o"))->uiType('primary')->id('st_leaving_time')->showMeridian('false')->required()->showSeconds('true')->width(6)->show();
$ui->timePicker()->label('Arrival Time')->name('st_arrival_time')->addonLeft($ui->icon("clock-o"))->uiType('primary')->id('st_arrival_time')->showMeridian('false')->required()->showSeconds('true')->width(6)->show();
$inputRow2->close();
$inputRow3 = $ui->row()->open();
$ui->textarea()->required()->placeholder('Purpose Of Leaving station')->type('text')->value("")->label('Purpose Of Leaving station')->name('purpose')->width(6)->show();
$ui->textarea()->required()->placeholder(' Address During Absence From Station')->type('text')->value("")->label('Address During Absence From Station')->id('st_address')->name('address')->width(6)->show();
$inputRow3->close();
<?php

if ($correspondence_address) {
    $coress_recv = true;
} else {
    $coress_recv = false;
}
$ui = new UI();
$form = $ui->form()->action('student/student_edit/update_all_details/' . $stu_id . '/' . $coress_recv)->multipart()->id('form_submit')->open();
$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();

*/
<?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) {
    ?>
Exemple #12
0
$pay_options = array($ui->option()->value("")->text("Choose One")->disabled());
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 . ')')->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();
	
	

}

});

</script>
<?php 
$ui = new UI();
$errors = validation_errors();
if ($errors != '') {
    $this->notification->drawNotification('Validation Errors', validation_errors(), 'error');
}
foreach ($details as $detail) {
    $row1 = $ui->row()->open();
}
$row1->close();
$row = $ui->row()->open();
$column1 = $ui->col()->width(1)->open();
$column1->close();
$column2 = $ui->col()->width(10)->open();
$box = $ui->box()->title('<u>Title</u> - ' . $cons_row->consultancy_title)->uiType('primary')->open();
$column1 = $ui->col()->width(6)->open();
$column1->close();
$column2 = $ui->col()->width(6)->open();
$ui->input()->type('text')->label('Linkup No')->name('link')->value($result->link_up_no)->disabled()->width(6)->show();
$ui->input()->type('text')->label('Page No')->name('page')->value($result->page_no)->width(6)->disabled()->show();
if ($payment_no->payment_no) {
    $ui->input()->type('text')->label('CONS/')->name('cons')->value($id->consultancy_no)->disabled()->width(10)->show();
}
Exemple #14
0
<?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();
Exemple #15
0
<?php

$ui = new UI();
$head = $ui->row()->open();
$h_col = $ui->col()->width(12)->open();
$box = $ui->box()->title('Validation Requests')->uiType('primary')->open();
if (!$emp_validation_details) {
    $this->callout()->title("No Pending Requests")->desc("There are no pending requests.")->show();
} else {
    $table = $ui->table()->bordered()->condensed()->responsive()->open();
    echo "<thead><tr align='center'>\n\t\t\t\t\t<td rowspan='2' style='vertical-align:middle' ><b>Employee Id</b></td>\n\t\t\t\t\t<td rowspan='2' style='vertical-align:middle' ><b>Employee Name</b></td>\n\t\t\t\t\t<td colspan='6' style='vertical-align:middle' ><b>Status</b></td>\n\t\t\t\t</tr>\n\t\t\t\t<tr align='center'>\n\t\t\t\t\t<td style='vertical-align:middle'><b>Profile Pic</b></td>\n\t\t\t\t\t<td style='vertical-align:middle'><b>Basic Details</b></td>\n\t\t\t\t\t<td style='vertical-align:middle'><b>Previous Employment Details</b></td>\n\t\t\t\t\t<td style='vertical-align:middle'><b>Dependent Family Member Details</b></td>\n\t\t\t\t\t<td style='vertical-align:middle'><b>Educational Qualifications</b></td>\n\t\t\t\t\t<td style='vertical-align:middle'><b>Last 5 Year Stay Details</b></td>\n\t\t\t\t</tr></thead><tbody>";
    $i = 0;
    foreach ($emp_validation_details as $v_row) {
        $i++;
        $user = $this->user_details_model->getUserById($v_row->id);
        $emp_name = ucwords($user->salutation . '. ' . $user->first_name . ($user->middle_name != '' ? ' ' . $user->middle_name : '') . ($user->last_name != '' ? ' ' . $user->last_name : ''));
        echo "<tr>\n\t\t\t\t\t<td align=\"center\" >" . $v_row->id . "</td>\n\t\t\t\t\t<td align=\"center\">" . $emp_name . "</td>";
        //profile picture step
        $label = $ui->label()->text(ucwords($v_row->profile_pic_status));
        if ($v_row->profile_pic_status == 'pending') {
            echo "<td align=\"center\"  >";
            if ($this->authorization->is_auth('est_ar')) {
                echo "<a href='" . site_url("employee/validation/validate_step/" . $v_row->id . "/0") . "'>";
            }
            $label->uiType('info')->show();
            if ($this->authorization->is_auth('est_ar')) {
                echo '</a>';
            }
            echo '</td>';
        } else {
            if ($v_row->profile_pic_status == 'rejected') {
       
      } 

</script>
<?php 
/**
 * 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();
$string = '<i class="fa fa-search"  style="cursor:pointer; color:#fff; align:right;"' . " onclick='myFunction(" . $cons_row->sr_no . ',' . $cons_row->modification_value . ")'" . '></i>';
$column2 = $ui->col()->width(10)->open();
$form = $ui->form()->action('consultant/consultant/approve_consult_form/' . $cons_row->sr_no . '/' . $auth_id)->extras('enctype="multipart/form-data"')->open();
$row1 = $ui->row()->open();
$box = $ui->box()->title($string . " " . 'ESTIMATE FORM ')->solid()->uiType('primary')->open();
$row1 = $ui->row()->open();
$ui->input()->label('Title<span style= "color:red;"> *</span>')->type('text')->name('consultant_title')->value($cons_row->consultancy_title)->width(12)->disabled()->show();
$row1->close();
$row1 = $ui->row()->open();
$innercol2 = $ui->col()->width(6)->open();
echo '<b> Scope of Work </b><br/>';
echo '<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>';
Exemple #17
0
<?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();
Exemple #18
0
<?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();
Exemple #19
0
<?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();
?>
Exemple #20
0
<?php

$ui = new UI();
$outRow = $ui->row()->open();
$column = $ui->col()->width(2)->open();
$column->close();
$column1 = $ui->col()->width(8)->open();
$row = $ui->row()->open();
$leftMargin = $ui->col()->width(1)->open();
$leftMargin->close();
$box = $ui->box()->id('publication_wrapper')->title('Add new Publication')->solid()->uiType('primary')->open();
$form = $ui->form()->action('publication/publication/addPublication')->open();
$inputRow1 = $ui->row()->open();
$Col1 = $ui->col()->width(6)->open();
$ui->input()->label('Title')->name('title')->required()->show();
$Col1->close();
$Col2 = $ui->col()->width(6)->open();
$ui->select()->label('Type of Publcation')->id('publication_type')->name('publication_type')->required()->options(array($ui->option()->value()->text("Select"), $ui->option()->value(1)->text("National Journal"), $ui->option()->value(2)->text("International Journal"), $ui->option()->value(3)->text("National Conference"), $ui->option()->value(4)->text("International Conference"), $ui->option()->value(5)->text("Book"), $ui->option()->value(6)->text("Book Chapter")))->show();
$Col2->close();
$innerCol1 = $ui->col()->id("publication_name_one")->width(6)->open();
$ui->input()->label('Name of Jorunal<sub>*</sub>')->name('publication_name')->show();
$innerCol1->close();
$innerColumn3 = $ui->col()->id("date_picker_one")->width(6)->open();
$ui->datePicker()->label('Date')->id('date')->name('begin_date')->placeholder("dd-mm-yyyy")->dateFormat('dd-mm-yyyy')->show();
$innerColumn3->close();
$innerColumn4 = $ui->col()->id("isbn_first")->width(6)->open();
$ui->input()->label('ISBN No.')->name('isbn_no')->show();
$innerColumn4->close();
$innerColumn3 = $ui->col()->id("date_picker_the")->width(6)->open();
$ui->datePicker()->label('Begin date')->name('begin_date')->placeholder("dd-mm-yyyy")->dateFormat('dd-mm-yyyy')->show();
$innerColumn3->close();
<?php

$ui = new UI();
$form = $ui->form()->action('student/student_validate/fetch_stu_details')->multipart()->id('form_submit')->open();
$select_details_to_edit_box = $ui->box()->uiType('primary')->solid()->title('Enter the Student Id')->open();
$student_admn_no = $ui->row()->open();
$student_details_1_1 = $ui->col()->width(3)->open();
$student_details_1_1->close();
$ui->input()->label('Admission No.')->uiType('primary')->id('stu_id')->width(6)->name('stu_id')->show();
/*$ui->select()
  ->label('Select Form')
  ->name('select_form')
  ->options(array($ui->option()->value('0')->text('Change Profile Picture'),
                  $ui->option()->value('1')->text('Edit Basic Details'),
                  $ui->option()->value('2')->text('Edit Education Details')))
  ->width(6)
  ->show();*/
$student_admn_no->close();
$student_details_row_2 = $ui->row()->open();
$student_details_2_1 = $ui->col()->width(6)->open();
$student_details_2_1->close();
$ui->button()->submit(true)->value('Submit')->uiType('primary')->id('submit_button_id')->width(2)->show();
$student_details_row_2->close();
$select_details_to_edit_box->close();
$form->close();
$rejected_students_list_box = $ui->box()->uiType('primary')->id('UsersToValidateBox')->solid()->title('List of Rejected Students')->open();
$table = $ui->table()->hover()->id('UsersToValidate')->bordered()->striped()->responsive()->paginated()->searchable()->sortable()->condensed()->open();
?>
				    <thead>
			            <tr>
			                <th>User ID</th>
Exemple #22
0
<?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>
Exemple #23
0
<?php

$ui = new UI();
$row = $ui->row()->open();
$row1 = $ui->row()->open();
$col_left = $ui->col()->width(6)->id('depart')->open();
$ui->select()->label('Select Department')->name('department_name' . $author_no)->id('department_name' . $author_no)->required()->extras(' onchange="find_faculty(this.value,' . $author_no . ')" ')->options(array($ui->option()->value('""')->text('Select')))->show();
$col_left->close();
$col_right = $ui->col()->width(6)->open();
$ui->select()->label('Faculty Name')->name('author_' . $author_no . '_emp_id')->id('author_' . $author_no . '_emp_id')->required()->options(array($ui->option()->value('""')->text('Select')))->show();
$col_right->close();
$row->close();
Exemple #24
0
<?php

$ui = new UI();
$outer_row = $ui->row()->id('or')->open();
$column1 = $ui->col()->width(12)->t_width(6)->m_width(12)->open();
$box_basic_details = $ui->box()->id('box_form')->title("Basic Information")->open();
$table = $ui->table()->responsive()->hover()->bordered()->open();
//var_dump( $auth_type);
foreach ($company_basic_info as $row) {
    echo '
					<thead>
						<tr>
							<th>Company Name</th>
							<td>' . $row->company_name . '</td>
						</tr>';
    if (!in_array('stu', $auth_type)) {
        echo '
						<tr>
							<th>Contact Person</th>
							<td>' . $row->name . '</td>
						</tr>
						<tr>
							<th>Designation</th>
							<td>' . $row->designation . '</td>
						</tr>
						<tr>
							<th>Email ID</th>
							<td>' . $row->user_id . '</td>
						</tr>
						<tr>
							<th>Address</th>
Exemple #25
0
</div>
<?php 
$ui = new UI();
$stuRow = $ui->row()->open();
$col1 = $ui->col()->width(12)->open();
?>
							<center><button class="btn btn-success" onclick="printContent('print')" >PRINT</button></center>
							<?php 
$col1->close();
$stuRow->close();
?>


Exemple #26
0
function view_basic_details($data, $emp, $ft, $pending_data = false, $pending_emp = false, $pending_ft = false, $status = false)
{
    $ui = new UI();
    $uiType = $status == 'pending' ? 'info' : 'danger';
    $row = $ui->row()->open();
    $col = $ui->col()->open();
    echo '<h3 class="page-header" align="center">Employee Details</h3>';
    $row1 = $ui->row()->open();
    $col1 = $ui->col()->width(3)->t_width(3)->m_width(6)->open();
    echo '<label>Name</label><br>' . $data['name'];
    if ($pending_data && $data['name'] != $pending_data['name']) {
        echo '<br><span class="' . $status . '">' . $pending_data['name'] . $ui->label()->uiType($uiType)->text(ucwords($status)) . '</span>';
    }
    $col1->close();
    $col2 = $ui->col()->width(2)->t_width(2)->m_width(6)->open();
    echo '<label>Gender</label><br>' . ($emp->sex == 'm' ? 'Male' : ($emp->sex == 'f' ? 'Female' : 'Others'));
    if ($pending_emp && $emp->sex != $pending_emp->sex) {
        $sex_val = $pending_emp->sex == 'm' ? 'Male' : ($pending_emp->sex == 'f' ? 'Female' : 'Others');
        echo '<br><span class="' . $status . '">' . $sex_val . $ui->label()->uiType($uiType)->text(ucwords($status)) . '</span>';
    }
    $col2->close();
    $col3 = $ui->col()->width(2)->t_width(2)->m_width(6)->open();
    echo '<label>DOB</label><br>' . date('d M Y', strtotime($emp->dob));
    if ($pending_emp && $emp->dob != $pending_emp->dob) {
        echo '<br><span class="' . $status . '">' . date('d M Y', strtotime($pending_emp->dob)) . $ui->label()->uiType($uiType)->text(ucwords($status)) . '</span>';
    }
    $col3->close();
    $col4 = $ui->col()->width(2)->t_width(2)->m_width(6)->open();
    echo '<label>Category</label><br>' . ucwords($emp->category);
    if ($pending_emp && $emp->category != $pending_emp->category) {
        echo '<br><span class="' . $status . '">' . ucwords($pending_emp->category) . $ui->label()->uiType($uiType)->text(ucwords($status)) . '</span>';
    }
    $col4->close();
    $col5 = $ui->col()->width(3)->t_width(3)->m_width(6)->open();
    echo '<label>Physically Challenged</label><br>' . ucwords($emp->physically_challenged);
    if ($pending_emp && $emp->physically_challenged != $pending_emp->physically_challenged) {
        echo '<br><span class="' . $status . '">' . ucwords($pending_emp->physically_challenged) . $ui->label()->uiType($uiType)->text(ucwords($status)) . '</span>';
    }
    $col5->close();
    $row1->close();
    echo '<br>';
    $row2 = $ui->row()->open();
    $col1 = $ui->col()->width(3)->t_width(3)->m_width(6)->open();
    echo '<label>Department</label><br>' . $data['department'];
    if ($pending_data && $data['department'] != $pending_data['department']) {
        echo '<br><span class="' . $status . '">' . $pending_data['department'] . $ui->label()->uiType($uiType)->text(ucwords($status)) . '</span>';
    }
    $col1->close();
    $col2 = $ui->col()->width(2)->t_width(2)->m_width(6)->open();
    echo '<label>Designation</label><br>' . ucwords($data['designation']);
    if ($pending_data && $data['designation'] != $pending_data['designation']) {
        echo '<br><span class="' . $status . '">' . $pending_data['designation'] . $ui->label()->uiType($uiType)->text(ucwords($status)) . '</span>';
    }
    $col2->close();
    $col3 = $ui->col()->width(2)->t_width(2)->m_width(6)->open();
    echo '<label>Marital Status</label><br>' . ucwords($emp->marital_status);
    if ($pending_emp && $emp->marital_status != $pending_emp->marital_status) {
        echo '<br><span class="' . $status . '">' . ucwords($pending_emp->marital_status) . $ui->label()->uiType($uiType)->text(ucwords($status)) . '</span>';
    }
    $col3->close();
    $col4 = $ui->col()->width(2)->t_width(2)->m_width(6)->open();
    echo '<label>Place of Birth</label><br>' . ucwords($emp->birth_place);
    if ($pending_emp && $emp->birth_place != $pending_emp->birth_place) {
        echo '<br><span class="' . $status . '">' . ucwords($pending_emp->birth_place) . $ui->label()->uiType($uiType)->text(ucwords($status)) . '</span>';
    }
    $col4->close();
    $col5 = $ui->col()->width(3)->t_width(3)->m_width(6)->open();
    echo '<label>Kashmiri Immigrant</label><br>' . ucwords($emp->kashmiri_immigrant);
    if ($pending_emp && $emp->kashmiri_immigrant != $pending_emp->kashmiri_immigrant) {
        echo '<br><span class="' . $status . '">' . ucwords($pending_emp->kashmiri_immigrant) . $ui->label()->uiType($uiType)->text(ucwords($status)) . '</span>';
    }
    $col5->close();
    $row2->close();
    echo '<br>';
    $dt = DateTime::createFromFormat("Y-m-d", $emp->retirement_date);
    if ($pending_emp) {
        $pending_dt = DateTime::createFromFormat("Y-m-d", $pending_emp->retirement_date);
    }
    $row3 = $ui->row()->open();
    $col1 = $ui->col()->width(3)->t_width(3)->m_width(6)->open();
    echo '<label>Father\'s Name</label><br>' . ucwords($emp->father_name);
    if ($pending_emp && $emp->father_name != $pending_emp->father_name) {
        echo '<br><span class="' . $status . '">' . ucwords($pending_emp->father_name) . $ui->label()->uiType($uiType)->text(ucwords($status)) . '</span>';
    }
    $col1->close();
    $col2 = $ui->col()->width(2)->t_width(2)->m_width(6)->open();
    echo '<label>Mother\'s Name</label><br>' . ucwords($emp->mother_name);
    if ($pending_emp && $emp->mother_name != $pending_emp->mother_name) {
        echo '<br><span class="' . $status . '">' . ucwords($pending_emp->mother_name) . $ui->label()->uiType($uiType)->text(ucwords($status)) . '</span>';
    }
    $col2->close();
    $col3 = $ui->col()->width(2)->t_width(2)->m_width(6)->open();
    echo '<label>Date of Joining</label><br>' . date('d M Y', strtotime($emp->joining_date));
    if ($pending_emp && $emp->joining_date != $pending_emp->joining_date) {
        echo '<br><span class="' . $status . '">' . date('d M Y', strtotime($pending_emp->joining_date)) . $ui->label()->uiType($uiType)->text(ucwords($status)) . '</span>';
    }
    $col3->close();
    $col4 = $ui->col()->width(2)->t_width(2)->m_width(6)->open();
    echo '<label>Employment Nature</label><br>' . ucwords($emp->employment_nature);
    if ($pending_emp && $emp->employment_nature != $pending_emp->employment_nature) {
        echo '<br><span class="' . $status . '">' . ucwords($pending_emp->employment_nature) . $ui->label()->uiType($uiType)->text(ucwords($status)) . '</span>';
    }
    $col4->close();
    $col5 = $ui->col()->width(3)->t_width(3)->m_width(6)->open();
    echo '<label>Date of Retirement</label><br>' . $dt->format("d M Y");
    if ($pending_emp && $emp->retirement_date != $pending_emp->retirement_date) {
        echo '<br><span class="' . $status . '">' . $pending_dt->format("d M Y") . $ui->label()->uiType($uiType)->text(ucwords($status)) . '</span>';
    }
    $col5->close();
    $row3->close();
    echo '<br>';
    $row4 = $ui->row()->open();
    $col1 = $ui->col()->width(3)->t_width(3)->m_width(6)->open();
    echo '<label>Email</label><br>' . $emp->email;
    if ($pending_emp && $emp->email != $pending_emp->email) {
        echo '<br><span class="' . $status . '">' . $pending_emp->email . $ui->label()->uiType($uiType)->text(ucwords($status)) . '</span>';
    }
    $col1->close();
    $col2 = $ui->col()->width(2)->t_width(2)->m_width(6)->open();
    echo '<label>Mobile no.</label><br>' . $emp->mobile_no;
    if ($pending_emp && $emp->mobile_no != $pending_emp->mobile_no) {
        echo '<br><span class="' . $status . '">' . $pending_emp->mobile_no . $ui->label()->uiType($uiType)->text(ucwords($status)) . '</span>';
    }
    $col2->close();
    $row4->close();
    echo '<br>';
    $row5 = $ui->row()->open();
    $col1 = $ui->col()->width(6)->t_width(6)->m_width(6)->open();
    echo '<label>Present Address</label><br>' . $data['present_pretty'];
    if ($pending_data && $data['present_pretty'] != $pending_data['present_pretty']) {
        echo '<br><span class="' . $status . '">' . $pending_data['present_pretty'] . $ui->label()->uiType($uiType)->text(ucwords($status)) . '</span>';
    }
    $col1->close();
    $col2 = $ui->col()->width(6)->t_width(6)->m_width(6)->open();
    echo '<label>Permanent Address</label><br>' . $data['permanent_pretty'];
    if ($pending_data && $data['permanent_pretty'] != $pending_data['permanent_pretty']) {
        echo '<br><span class="' . $status . '">' . $pending_data['permanent_pretty'] . $ui->label()->uiType($uiType)->text(ucwords($status)) . '</span>';
    }
    $col2->close();
    $row5->close();
    $emp_type = '';
    if (in_array('ft', $emp->auth_id)) {
        $emp_type = 'Faculty';
    }
    if (in_array('nfta', $emp->auth_id)) {
        $emp_type = 'Non Faculty Academic';
    }
    if (in_array('nftn', $emp->auth_id)) {
        $emp_type = 'Non Faculty Non Academic';
    }
    if ($pending_emp) {
        $pending_emp_type = '';
        if (in_array('ft', $pending_emp->auth_id)) {
            $pending_emp_type = 'Faculty';
        }
        if (in_array('nfta', $pending_emp->auth_id)) {
            $pending_emp_type = 'Non Faculty Academic';
        }
        if (in_array('nftn', $pending_emp->auth_id)) {
            $pending_emp_type = 'Non Faculty Non Academic';
        }
    }
    echo '<br>';
    $row6 = $ui->row()->open();
    $col1 = $ui->col()->width(3)->t_width(3)->m_width(6)->open();
    echo '<label>Employee Type</label><br>' . $emp_type;
    if ($pending_emp && $emp_type != $pending_emp_type) {
        echo '<br><span class="' . $status . '">' . $pending_emp_type . $ui->label()->uiType($uiType)->text(ucwords($status)) . '</span>';
    }
    $col1->close();
    $col2 = $ui->col()->width(3)->t_width(3)->m_width(6)->open();
    echo '<label>Research Interest</label><br>' . (!in_array('ft', $emp->auth_id) ? 'NA' : ucwords($ft->research_interest));
    if ($pending_emp) {
        if (in_array('ft', $emp->auth_id) && in_array('ft', $pending_emp->auth_id)) {
            $res_is_equal = $ft->research_interest == $pending_ft->research_interest ? true : false;
        } else {
            if (!in_array('ft', $emp->auth_id) && !in_array('ft', $pending_emp->auth_id)) {
                $res_is_equal = true;
            } else {
                $res_is_equal = false;
            }
        }
        if (!$res_is_equal) {
            echo '<br><span class="' . $status . '">' . (!in_array('ft', $pending_emp->auth_id) ? 'NA' : ucwords($pending_ft->research_interest)) . $ui->label()->uiType($uiType)->text(ucwords($status)) . '</span>';
        }
    }
    $col2->close();
    $col3 = $ui->col()->width(2)->t_width(2)->m_width(6)->open();
    echo '<label>Religion</label><br>' . ucwords($emp->religion);
    if ($pending_emp && $emp->religion != $pending_emp->religion) {
        echo '<br><span class="' . $status . '">' . ucwords($pending_emp->religion) . $ui->label()->uiType($uiType)->text(ucwords($status)) . '</span>';
    }
    $col3->close();
    $col4 = $ui->col()->width(2)->t_width(2)->m_width(6)->open();
    echo '<label>Nationality</label><br>' . ucwords($emp->nationality);
    if ($pending_emp && $emp->nationality != $pending_emp->nationality) {
        echo '<br><span class="' . $status . '">' . ucwords($pending_emp->nationality) . $ui->label()->uiType($uiType)->text(ucwords($status)) . '</span>';
    }
    $col4->close();
    $row6->close();
    echo '<br>';
    $row7 = $ui->row()->open();
    $col1 = $ui->col()->width(3)->t_width(3)->m_width(6)->open();
    echo '<label>Pay Scale</label><br><u>Pay Band</u> =>' . strtoupper($emp->pay_band) . ' (' . $emp->pay_band_description . ')<br>
                    <u>Grade Pay</u> =>' . $emp->grade_pay . '<br>
                    <u>Basic Pay</u> =>' . $emp->basic_pay;
    if ($pending_emp && !($emp->pay_band == $pending_emp->pay_band && $emp->grade_pay == $pending_emp->grade_pay && $emp->basic_pay == $pending_emp->basic_pay)) {
        echo '<br><span class="' . $status . '"><u>Pay Band</u> =>' . strtoupper($pending_emp->pay_band) . ' (' . $pending_emp->pay_band_description . ')<br>
                    													<u>Grade Pay</u> =>' . $pending_emp->grade_pay . '<br>
                    													<u>Basic Pay</u> =>' . $pending_emp->basic_pay . $ui->label()->uiType($uiType)->text(ucwords($status)) . '</span>';
    }
    $col1->close();
    $col2 = $ui->col()->width(2)->t_width(2)->m_width(6)->open();
    echo '<label>Office no.</label><br>' . $emp->office_no;
    if ($pending_emp && $emp->office_no != $pending_emp->office_no) {
        echo '<br><span class="' . $status . '">' . $pending_emp->office_no . $ui->label()->uiType($uiType)->text(ucwords($status)) . '</span>';
    }
    $col2->close();
    $col3 = $ui->col()->width(2)->t_width(2)->m_width(6)->open();
    echo '<label>Fax</label><br>' . $emp->fax;
    if ($pending_emp && $emp->fax != $pending_emp->fax) {
        echo '<br><span class="' . $status . '">' . $pending_emp->fax . $ui->label()->uiType($uiType)->text(ucwords($status)) . '</span>';
    }
    $col3->close();
    $col4 = $ui->col()->width(2)->t_width(2)->m_width(6)->open();
    echo '<label>Hobbies</label><br>' . (trim(ucfirst($emp->hobbies)) == '' ? 'NA' : ucfirst($emp->hobbies));
    if ($pending_emp && $emp->hobbies != $pending_emp->hobbies) {
        echo '<br><span class="' . $status . '">' . (trim(ucfirst($pending_emp->hobbies)) == '' ? 'NA' : ucfirst($pending_emp->hobbies)) . $ui->label()->uiType($uiType)->text(ucwords($status)) . '</span>';
    }
    $col4->close();
    $col5 = $ui->col()->width(3)->t_width(3)->m_width(6)->open();
    echo '<label>Favourite Past Time</label><br>' . (trim(ucfirst($emp->fav_past_time)) == '' ? 'NA' : ucfirst($emp->fav_past_time));
    if ($pending_emp && $emp->fav_past_time != $pending_emp->fav_past_time) {
        echo '<br><span class="' . $status . '">' . (trim(ucfirst($pending_emp->fav_past_time)) == '' ? 'NA' : ucfirst($pending_emp->fav_past_time)) . $ui->label()->uiType($uiType)->text(ucwords($status)) . '</span>';
    }
    $col5->close();
    $row7->close();
    $col->close();
    $row->close();
}
<?php

$ui = new UI();
$errors = validation_errors();
?>
<div id='data_row'>
        
   </div>
	<?php 
if ($errors != '') {
    $this->notification->drawNotification('Validation Errors', validation_errors(), 'error');
}
foreach ($details as $disbursement) {
}
//print_r($details);
$inputRow1 = $ui->row()->open();
$col1 = $ui->col()->width(12)->open();
$action = $action_recent;
echo '<span style="color:red"> Last Activity : ';
if ($action->status == 0) {
    echo 'Pending estimate form';
} else {
    if ($action->status == 1 || $action->status == 98) {
        echo 'Canceled by Consultancy-in-charge';
    } else {
        if ($action->status == 2) {
            echo 'Estimated Form Rejeced by ' . $action->auth . '';
        } else {
            if ($action->status == 3) {
                echo 'Estimated Form Forwarded by ' . $action->auth . '';
            } else {
Exemple #28
0
<?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());
}
Exemple #29
0
<?php

$ui = new UI();
switch ($form) {
    case 2:
        if ($emp_prev_exp_details) {
            $form = $ui->form()->id('edit_prev_emp_details')->action('employee/edit/update_old_prev_emp_details/' . $sno)->extras('onSubmit="return onclick_save(' . $sno . ');"')->open();
            $row = $ui->row()->open();
            $col = $ui->col()->open();
            $box = $ui->box()->uiType('primary')->style('margin-bottom:0')->open();
            $ui->textarea()->label('Full address of Employer')->name('edit_addr' . $sno)->id('edit_addr' . $sno)->value($emp_prev_exp_details->address)->show();
            $ui->input()->label('Position Held')->name('edit_designation' . $sno)->id('edit_designation' . $sno)->value($emp_prev_exp_details->designation)->show();
            $ui->datePicker()->name('edit_from' . $sno)->id('edit_from' . $sno)->dateFormat('dd-mm-yyyy')->addonRight($ui->icon("calendar"))->label('From')->extras('max="' . date('d-m-Y', strtotime($joining_date)) . '"')->value(date('d-m-Y', strtotime($emp_prev_exp_details->from)))->show();
            $ui->datePicker()->name('edit_to' . $sno)->id('edit_to' . $sno)->dateFormat('dd-mm-yyyy')->addonRight($ui->icon("calendar"))->label('To')->extras('max="' . date('d-m-Y', strtotime($joining_date)) . '"')->value(date('d-m-Y', strtotime($emp_prev_exp_details->to)))->show();
            $ui->input()->name("edit_payscale" . $sno)->id("edit_payscale" . $sno)->label('Pay Scale')->value($emp_prev_exp_details->pay_scale)->show();
            $ui->input()->name('edit_reason' . $sno)->id('edit_reason' . $sno)->value($emp_prev_exp_details->remarks)->label('Remarks')->show();
            echo '<center>';
            $ui->button()->uiType('primary')->flat()->submit()->name('save')->value('Save')->icon($ui->icon('floppy-o'))->show();
            $ui->button()->uiType('danger')->flat()->name('cancel')->value('Cancel')->extras('onClick="closeframe();"')->icon($ui->icon('times'))->show();
            echo '</center>';
            $box->close();
            $col->close();
            $row->close();
            $form->close();
        }
        break;
    case 3:
        if ($emp_family_details) {
            $form = $ui->form()->id('edit_emp_family_details')->multipart()->action('employee/edit/update_old_fam_details/' . $sno)->extras('onSubmit="return onclick_save(' . $sno . ');"')->open();
            $row = $ui->row()->open();
            $col = $ui->col()->open();
Exemple #30
0
<?php

if (count($available_guards) == 0) {
    echo '<font color="red">There is no free Guard to assign this duty.</font>';
} else {
    $ui = new UI();
    $guardRow = $ui->row()->id('searchRow')->open();
    $guardlabel = $ui->col()->width(4)->t_width(8)->m_width(12)->open();
    echo 'Select Guard Name';
    $guardlabel->close();
    $guardinput = $ui->col()->width(8)->t_width(4)->m_width(12)->open();
    $guardname_array = array();
    if ($available_guards === False) {
        $guardname_array[] = $ui->option()->value('')->text('No Guardname');
    } else {
        $guardname_array[] = $ui->option()->value('')->text('Select Guardname')->disabled();
        foreach ($available_guards as $row) {
            $guardname_array = array_values($guardname_array);
            $guardname_array[] = $ui->option()->value($row['Regno'])->text($row['firstname'] . ' ' . $row['lastname']);
        }
    }
    $ui->select()->name('Regno')->addonLeft($ui->icon("user"))->options($guardname_array)->required()->show();
    $guardinput->close();
    $guardRow->close();
    $buttonRow = $ui->row()->open();
    $abuttonCol = $ui->col()->width(5)->t_width(2)->m_width(2)->open();
    $abuttonCol->close();
    $bbuttonCol = $ui->col()->width(2)->t_width(8)->m_width(8)->open();
    $ui->button()->value('Assign')->uiType('primary')->submit()->name('assign_overtime')->id('assign_overtime')->show();
    $bbuttonCol->close();
    $cbuttonCol = $ui->col()->width(5)->t_width(2)->m_width(2)->open();