Example #1
0
$form = $ui->form()->id('basic_details')->action('employee/edit/update_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();
if ($status == 'pending') {
    $type = 'warning';
} else {
    if ($status == 'rejected') {
        $type = 'error';
    } else {
        $status = '';
    }
}
echo 'Fields marked with <span style= "color:red;">*</span> are mandatory.<br><br> ';
$row3 = $ui->row()->open();
$ui->select()->width(2)->name('salutation')->help($pending_user_details->salutation == $user_details->salutation ? '' : 'Above detail is ' . $status . '.<br>Previously accepted : ' . $user_details->salutation)->uiType($pending_user_details->salutation == $user_details->salutation ? '' : $type)->label('Salutation<span style= "color:red;"> *</span> ')->options(array($ui->option()->value('Dr')->text('Dr')->selected($pending_user_details->salutation == 'Dr'), $ui->option()->value('Prof')->text('Prof')->selected($pending_user_details->salutation == 'Prof'), $ui->option()->value('Mr')->text('Mr')->selected($pending_user_details->salutation == 'Mr'), $ui->option()->value('Mrs')->text('Mrs')->selected($pending_user_details->salutation == 'Mrs'), $ui->option()->value('Ms')->text('Ms')->selected($pending_user_details->salutation == 'Ms')))->show();
$ui->input()->width(3)->name('firstname')->required()->help($pending_user_details->first_name == $user_details->first_name ? '' : 'Above detail is ' . $status . '.<br>Previously accepted : ' . $user_details->first_name)->uiType($pending_user_details->first_name == $user_details->first_name ? '' : $type)->placeholder("First Name")->value($pending_user_details->first_name)->label('First Name<span style= "color:red;"> *</span>')->show();
$ui->input()->width(3)->name('middlename')->label('Middle Name')->help($pending_user_details->middle_name == $user_details->middle_name ? '' : 'Above detail is ' . $status . '.<br>Previously accepted : ' . $user_details->middle_name)->uiType($pending_user_details->middle_name == $user_details->middle_name ? '' : $type)->value($pending_user_details->middle_name)->placeholder("Middle Name")->show();
$ui->input()->width(3)->name('lastname')->value($pending_user_details->last_name)->help($pending_user_details->last_name == $user_details->last_name ? '' : 'Above detail is ' . $status . '.<br>Previously accepted : ' . $user_details->last_name)->uiType($pending_user_details->last_name == $user_details->last_name ? '' : $type)->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>')->help($pending_user_details->marital_status == $user_details->marital_status ? '' : 'Above detail is ' . $status . '.<br>Previously accepted : ' . ucwords($user_details->marital_status))->uiType($pending_user_details->marital_status == $user_details->marital_status ? '' : $type)->options(array($ui->option()->value('married')->text('Married')->selected($pending_user_details->marital_status == 'married'), $ui->option()->value('unmarried')->text('Unmarried')->selected($pending_user_details->marital_status == 'unmarried'), $ui->option()->value('widow')->text('Widow')->selected($pending_user_details->marital_status == 'widow'), $ui->option()->value('widower')->text('Widower')->selected($pending_user_details->marital_status == 'widower'), $ui->option()->value('separated')->text('Separated')->selected($pending_user_details->marital_status == 'separated'), $ui->option()->value('divorced')->text('Divorced')->selected($pending_user_details->marital_status == 'divorced')))->show();
$ui->datePicker()->label('DOB<span style= "color:red;"> *</span>')->id('dob')->name('dob')->required()->help($pending_user_details->dob == $user_details->dob ? '' : 'Above detail is ' . $status . '.<br>Previously accepted : ' . date("d-m-Y", strtotime($user_details->dob)))->uiType($pending_user_details->dob == $user_details->dob ? '' : $type)->dateFormat('dd-mm-yyyy')->width(3)->addonRight($ui->icon("calendar"))->value(date("d-m-Y", strtotime($pending_user_details->dob)))->extras('max="' . date("d-m-Y") . '"')->show();
$ui->input()->width(3)->name('pob')->required()->help($pending_user_other_details->birth_place == $user_other_details->birth_place ? '' : 'Above detail is ' . $status . '.<br>Previously accepted : ' . ucwords($user_other_details->birth_place))->uiType($pending_user_other_details->birth_place == $user_other_details->birth_place ? '' : $type)->value($pending_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();
if ($pending_user_details->sex != $user_details->sex) {
    echo '<div class = "form-group has-' . $type . '"><label>';
    if ($type == 'warning') {
        echo '<i class = "fa fa-warning"></i>';
$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();

                        $middlename_column = $ui->col()
                                                ->width(3)
                                                ->open();

*/
$ui->input()->placeholder('Middle Name')->id('middlename')->width(3)->value($user_details->middle_name)->name('middlename')->show();
Example #3
0
$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/>

<br/>
<?php 
$column2->close();
$innercol2 = $ui->col()->width(12)->open();
</td><?php 
        echo '<td>';
        $btn_string = 'onclick=' . '"OnEvent(\'' . $member->emp_no . '\')"';
        $ui->button()->icon($ui->icon("edit"))->id('edit')->extras($btn_string)->width(4)->uiType('primary')->name('edit')->value('Edit')->show();
        echo '</td>';
    }
    ?>
                  </tr><?php 
}
?>
<tr>
                  <td>

                    <?php 
$innercol1 = $ui->col()->width(12)->open();
$ui->select()->name('deptartmets')->id('deptartmets')->options(array($ui->option()->value('0')->text('Select Employee Department')->disabled()->selected()))->show();
$innercol1->close();
?>
</td>
                     <td>
                        <?php 
$r3col1 = $ui->col()->id('employee')->open();
$ui->select()->name('select_name')->id('select_name')->options(array($ui->option()->value('0')->text('Select Employee')->disabled()->selected()))->show();
$r3col1->close();
?>
</td>
                            <td>
                                <?php 
$innercol1 = $ui->col()->width(12)->open();
$ui->input()->type('text')->name('select_no')->id('select_no')->value('')->width(12)->show();
$innercol1->close();
Example #5
0
$formRow = $ui->row()->open();
$col = $ui->col()->width(8)->open();
$box = $ui->box()->title("General Elements")->open();
$ui->callout()->uiType("info")->desc("See wiki for a detailed explanation of creating each type of element.")->show();
$ui->input()->type("text")->label("Text")->placeholder("Text")->show();
$ui->input()->type("text")->label("A textbox with help")->placeholder("Text")->help("Some help text goes here")->show();
$ui->input()->type("text")->label("Text Disabled")->placeholder("Text Disabled")->disabled()->show();
$ui->textarea()->label("Textarea")->placeholder("Textarea")->show();
$ui->input()->type("text")->label("Input with success")->placeholder("Enter text")->uiType("success")->show();
$ui->input()->type("text")->label("Input with warning")->placeholder("Enter text")->uiType("warning")->show();
$ui->input()->type("text")->label("Input with error")->placeholder("Enter text")->uiType("error")->show();
$ui->checkbox()->label("Checkbox")->show();
$ui->checkbox()->label("Disabled Checkbox")->disabled()->show();
$ui->radio()->label("Radio button")->name("sampleRadio")->checked()->show();
$ui->radio()->label("Another Radio Button")->name("sampleRadio")->show();
$ui->select()->label('Select Box')->name('select_box')->options(array($ui->option()->value('0')->text('Select')->disabled(), $ui->option()->value('1')->text('One'), $ui->option()->value('2')->text('Two'), $ui->option()->value('3')->text('Three'), $ui->option()->value('4')->text('Four')->selected(), $ui->option()->value('5')->text('Five')))->show();
$sampleOptions = array($ui->option()->value('0')->text('Select')->disabled(), $ui->option()->value('1')->text('One'), $ui->option()->value('2')->text('Two'), $ui->option()->value('3')->text('Three'), $ui->option()->value('4')->text('Four')->selected(), $ui->option()->value('5')->text('Five'));
$ui->select()->label('Multiple Select Box')->name('multiple_select_box')->multiple()->options($sampleOptions)->show();
$ui->imagePicker()->label("An image picker")->show();
$ui->datePicker()->label("A date picker")->show();
$ui->timePicker()->label("A time picker")->show();
$ui->slider()->id('slider2')->min('0')->label('A slider')->max('100')->step('1')->grid()->value("15")->show();
$ui->slider()->id('slider1')->label('A ranged slider')->min('0')->max('50000')->step('100')->rangeType()->dataFrom('9000')->dataTo('20000')->prefix('$')->show();
?>
<p>To create input elements with smaller widths, create a <code>Row</code> and place the inputs inside it with their <code>width()</code> property:</p>
<pre>
$inputsRow = $ui->row()->open();
    $ui->input()->type("text")->...->width(2)->show();
    $ui->select()->...->width(4)->show();
    $ui->input()->...->width(6)->show();
$inputsRow->close();
Example #6
0
$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();
$box1 = $ui->box()->title('Please Select Approving Employee')->solid()->id('approving_emp')->uiType('primary')->open();
$inputRow4 = $ui->row()->open();
$ui->select()->label('Department Type')->name('type')->id('type')->required()->options(array($ui->option()->value('""')->text('Select')->selected(), $ui->option()->value('academic')->text('Academic'), $ui->option()->value('nonacademic')->text('Non Academic')))->width(6)->show();
$ui->select()->label('Select Department')->name('department_name')->id('department_name')->required()->options(array($ui->option()->value('""')->text('Select')))->width(6)->show();
$inputRow4->close();
$inputRow5 = $ui->row()->open();
$ui->select()->label('Designation')->name('designation')->id('designation')->required()->options(array($ui->option()->value('""')->text('Select')))->width(6)->show();
$ui->select()->label('Employee Name')->name('emp_name')->id('emp_name')->required()->options(array($ui->option()->value('""')->text('Select')->selected()))->width(6)->show();
$inputRow5->close();
$box1->close();
?>
<center>
    <?php 
$ui->button()->value('Submit Station Leave request')->name('submit')->id('application_submit')->submit(true)->extras('onclick="incrementClick()"')->uiType('primary')->show();
?>
</center>
<?php 
$form->close();
Example #7
0
$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();
$innerColumn4 = $ui->col()->id("date_picker_two")->width(6)->open();
$ui->datePicker()->label('End date')->name('end_date')->placeholder("dd-mm-yyyy")->dateFormat('dd-mm-yyyy')->show();
$ui->input()->type('text')->name('contigency')->id('contigency')->placeholder('not exceeding 20% of (D)')->value($cons_row->contigency)->width(12)->show();
$innercol1->close();
?>
                              </td>     
                         </tr>
                         
                          <tr class='expense_row' >
                              <td> </td>
                              <td>
                                <?php 
$innercol1 = $ui->col()->width(6)->open();
echo 'EDC Development Fund';
$innercol1->close();
$innercol1 = $ui->col()->width(6)->open();
if ($cons_row->type_edc_fund == 'pdp') {
    $ui->select()->name('edc_fund')->id('edc_fund')->options(array($ui->option()->value('pdp')->text('In-house Executive Development')->selected(), $ui->option()->value('other_consult')->text('Other Consultancy')))->required()->show();
} else {
    if ($cons_row->type_edc_fund == 'other_consult') {
        $ui->select()->name('edc_fund')->id('edc_fund')->options(array($ui->option()->value('pdp')->text('In-house Executive Development'), $ui->option()->value('other_consult')->text('Other Consultancy')->selected()))->required()->show();
    } else {
        $ui->select()->name('edc_fund')->id('edc_fund')->options(array($ui->option()->value('0')->text('Select Option')->selected()->disabled(), $ui->option()->value('pdp')->text('In-house Executive Development'), $ui->option()->value('other_consult')->text('Other Consultancy')))->required()->show();
    }
}
?>
                                </td>
                              <td>
                                   <?php 
$innercol1 = $ui->col()->id('edc_fund_pdp')->width(12)->open();
$ui->input()->type('text')->name('in_house_exp')->id('in_house_exp')->placeholder('10% of (A)')->value($cons_row->in_house)->width(12)->show();
$innercol1->close();
?>
Example #9
0
<?php

$ui = new UI();
$outer_row = $ui->row()->id('or')->open();
$column1 = $ui->col()->width(12)->t_width(12)->m_width(12)->open();
$formbox = $ui->box()->id('box_form')->open();
$form = $ui->form()->id("add_course_form")->action("course_structure/AddCS_Common/EnterNumberOfSubjects")->multipart()->open();
$array_option = array();
$array_option[0] = $ui->option()->value('""')->text("Select Semester")->disabled();
$array_option[1] = $ui->option()->value("1")->text("Semester 1");
$array_option[2] = $ui->option()->value("2")->text("Semester 2");
$ui->select()->label('Select Semester')->required()->name('semester')->id("semester")->options($array_option)->containerId('cont_semester')->show();
$array_option = array();
$array_option[0] = $ui->option()->value('""')->text("Select Group")->disabled();
$array_option[1] = $ui->option()->value("1")->text("Group 1(Physics)");
$array_option[2] = $ui->option()->value("2")->text("Group 2(Chemistry)");
$ui->select()->label('Select Group')->required()->name('group')->id("group")->options($array_option)->containerId('cont_group')->show();
$array_option = array();
array_push($array_option, $ui->option()->text("Starting From")->value('""')->disabled());
$year = date("Y");
//base_str = "<option selected = 'selected' disabled>Valid From</option>";
for ($d = $year - 5; $d <= $year + 5; $d++) {
    $session = $d . "_" . ($d + 1);
    array_push($array_option, $ui->option()->text($d . "-" . ($d + 1))->value($session));
}
$ui->select()->label('Valid From')->name('session')->id("session")->options($array_option)->containerId('cont_session')->show();
$ui->button()->value('Add course Structure')->uiType('primary')->submit()->name('submit')->show();
$form->close();
$formbox->close();
$column1->close();
$outer_row->close();
Example #10
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_outter = $ui->box()->id("box_outter")->open();
$table = $ui->table()->id('table')->open();
echo "<tr><th width='50%'>Delete Course</th><th width='50%'>Delete Branch</th></tr>";
echo "<tr><td id = 'td_course'>";
$array_options = array();
$array_options[0] = $ui->option()->value("0")->text("Select Course")->disabled()->selected();
foreach ($result_course as $row) {
    array_push($array_options, $ui->option()->value($row->id)->text($row->name));
}
$ui->select()->label('Select Course')->name('course')->id("course_selection")->containerId("cont_course_selection")->options($array_options)->show();
$ui->button()->value('Delete Course')->uiType('primary')->submit()->id("btn_course")->name('btn_course')->show();
echo "</td>";
echo "<td id = 'td_branch'>";
$array_options = array();
$array_options[0] = $ui->option()->value("0")->text("Select Branch")->disabled()->selected();
foreach ($result_branch as $row) {
    array_push($array_options, $ui->option()->value($row->id)->text($row->name));
}
$ui->select()->label('Select Branch')->name('branch')->id("branch_selection")->containerId("cont_branch_selection")->options($array_options)->show();
$ui->button()->value('Delete Branch')->uiType('primary')->submit()->id("btn_branch")->name('btn_branch')->show();
echo "</td></tr>";
$table->close();
$box_outter->close();
$column1->close();
$outer_row->close();
Example #11
0
$table->close();
echo '</div>';
?>
<center><button value = "PRINT" class = " btn btn-primary "onclick="printContent('print_book_chap')" >PRINT</button></center><?php 
$book_chapter->close();
$search = $ui->tabPane()->id("search")->open();
$box = $ui->box()->uiType('primary')->solid()->title('Search Publications')->open();
$form_attrinutes = array("id" => "search_publication_form", "method" => "post");
$form = $ui->form()->action('publication/publication/search_result', $form_attrinutes)->open();
$table = $ui->table()->hover()->bordered()->open();
?>
					<tr>
						<th>Department</th>
						<th>
							<?php 
$ui->select()->name('department_name')->id('department_name')->options(array($ui->option()->value('""')->text('Select')))->show();
?>
						</th>
					</tr>
					<tr>
						<th>Faculty</th>
						<th>
							<?php 
$ui->select()->name('faculty_name')->id('faculty_name')->options(array($ui->option()->value('""')->text('Select')))->show();
?>
						</th>
					</tr>
					<tr>
						<th>Type of Publication</th>
						<th>
							<?php 
Example #12
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('form_box')->open();
$form = $ui->form()->id("add_course_form")->action("course_structure/elective_offered")->multipart()->open();
$array_options = array();
$array_options[0] = $ui->option()->value("0")->text("Select Course")->selected();
foreach ($result_course as $row) {
    array_push($array_options, $ui->option()->extras('data-duration="' . $row->duration . '"')->value($row->id)->text($row->name));
}
$ui->select()->label('Select Course')->name('course')->id("course_selection")->containerId('cont_course_selection')->options($array_options)->show();
$ui->select()->label('Select Branch')->name('branch')->id("branch_selection")->containerId('cont_branch_selection')->show();
$ui->select()->label('Batch')->name('session')->id("session_selection")->containerId('cont_session_selection')->show();
$ui->select()->label('Select Semester')->name('sem')->id("semester")->containerId('cont_semester')->show();
$ui->button()->value('Show Elective')->uiType('primary')->submit()->name('submit')->show();
$form->close();
$formbox->close();
$column1->close();
$outer_row->close();
?>
		 
Example #13
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')->title("Select Company to view JNF")->open();
$form = $ui->form()->id("add_course_form")->action("tnpcell/view_jnf/ViewJNF")->multipart()->open();
$array_options = array();
foreach ($company_basic_info as $row) {
    array_push($array_options, $ui->option()->value($row->company_id)->text($row->company_name . " (" . $row->session . ")"));
}
$ui->select()->id("ddl_company")->name("ddl_company")->options($array_options)->show();
$ui->button()->value('View JNF')->uiType('primary')->submit()->name('submit')->show();
$form->close();
$formbox->close();
$column1->close();
$outer_row->close();
Example #14
0
$form = $ui->form()->action('information/post_minute/index/' . $auth_id)->extras('enctype="multipart/form-data"')->open();
$star_notice = $ui->row()->open();
//echo" Fields marked with <span style= 'color:red;'>*</span> are mandatory.";
$star_notice->close();
$compose_box = $ui->box()->icon($ui->icon('edit'))->title('Compose Minute')->solid()->uiType('primary')->open();
$inputRow1 = $ui->row()->open();
if ($id->minutes_id == NULL) {
    $ui->input()->label('Minutes ID<span style= "color:red;"> *</span>')->type('text')->name('minutes_ids')->required()->value('1')->disabled()->width(6)->show();
} else {
    $ui->input()->type('text')->label('Minutes ID<span style= "color:red;"> *</span>')->name('minutes_ids')->required()->width(6)->value($id->minutes_id + 1)->disabled()->show();
}
$ui->input()->type('text')->label('Minutes Number<span style= "color:red;"> *</span>')->name('minutes_no')->required()->width(6)->placeholder('Enter Minutes Number  
		    	(Ex: CSE_MINUTE_10185)')->show();
$inputRow1->close();
$inputRow2 = $ui->row()->open();
$ui->select()->label('Meeting Type<span style= "color:red;"> *</span>')->name('meeting_type')->options(array($ui->option()->value('Dean\'s Meeting')->text('Dean\'s Meeting')->selected(), $ui->option()->value('HOD\'s Meeting')->text('HOD\'s Meeting'), $ui->option()->value('GC Meeting')->text('GC Meeting'), $ui->option()->value('DAC Meeting')->text('DAC Meeting'), $ui->option()->value('others')->text('others')))->extras('onchange="javascript: 
						if(this.value ' . "== 'others') \n\t\t\t\t\t\t\tdocument.getElementById('others').removeAttribute('disabled'); else document.getElementById('others').setAttribute('disabled','disabled');" . '" "')->width(6)->show();
$ui->input()->type('text')->name('meeting_others')->id('others')->label('Other Type')->width(6)->placeholder('Only if Meeting Type other is selected')->disabled()->show();
$inputRow2->close();
$inputRow3 = $ui->row()->open();
$ui->datePicker()->name('date_of_meeting')->label('Date of Meeting<span style= "color:red;"> *</span>')->value(date("Y-mm-dd"))->width(6)->dateFormat('yyyy-mm-dd')->show();
$ui->datePicker()->name('valid_upto')->label('Last Date<span style= "color:red;"> *</span> (Atleast today)')->value(date("Y-mm-dd"))->dateFormat('yyyy-mm-dd')->width(6)->show();
$inputRow3->close();
$inputRow4 = $ui->row()->open();
$ui->input()->label('Minutes File<span style= "color:red;"> *</span>')->type('file')->name('minutes_path')->required()->width(6)->show();
$ui->input()->type('text')->name('place_of_meeting')->width(6)->required()->placeholder('CSE Department')->label('Place of Meeting<span style= "color:red;"> *</span>')->show();
$inputRow4->close();
echo "(Allowed Types: pdf, doc, docx, jpg, jpeg, png, xls, xlsx, csv and Max Size: 1.0 MB)";
$value = 1;
if ($id->minutes_id != NULL) {
    $value = $id->minutes_id + 1;
Example #15
0
<?php

$ui = new UI();
$row1 = $ui->row()->open();
$innercol7 = $ui->col()->id('semester_col')->width(12)->open();
//print_r($course);
$array_options = array();
foreach ($course as $key => $cor) {
    # code...
    $array_options[0] = $ui->option()->value('all')->text("All");
    for ($i = 1; $i <= $cor->duration * 2; $i++) {
        array_push($array_options, $ui->option()->value(strval($i))->text($i . " sem"));
    }
}
$ui->select()->label('Select Semester')->name('sem_selection')->id("sem_selection")->options($array_options)->show();
$innercol7->close();
$row1->close();
?>
<script type="text/javascript" language="javascript">
$(document).ready(function(){

$('#sem_selection').val('<?php 
echo $sem;
?>
')


});

</script>
					                  
					                  <th width=20%>Select Position</th>
					                  <th width=20%>Gross Amount(Rs)</th>


					                </thead>
					                
					                  </tr><?php 
for ($i = 1; $i <= $member; $i++) {
    ?>
<tr>
					                  <td>

					                    <?php 
    $innercol1 = $ui->col()->width(12)->open();
    $ui->select()->name('emp_dept' . $i)->id('emp_dept' . $i)->options(array($ui->option()->value('0')->text('Select Employee Department')->disabled()->selected()))->show();
    $innercol1->close();
    ?>
</td>
					                  <td>
					                    <?php 
    $r3col1 = $ui->col()->id('employee')->open();
    $ui->select()->name('employee_select' . $i)->id('employee_select' . $i)->options(array($ui->option()->value('0')->text('Select Employee')->disabled()->selected()))->show();
    $r3col1->close();
    ?>
</td>
					                  <td>
					                    <?php 
    $innercol1 = $ui->col()->width(12)->open();
    $ui->input()->type('text')->name('emp_no' . $i)->id('emp_no' . $i)->value('')->width(12)->show();
    $innercol1->close();
Example #17
0
<?php

$ui = new UI();
$row1 = $ui->row()->open();
$innercol7 = $ui->col()->id('course_col')->width(12)->open();
//print_r($course);
$array_options = array();
$array_options[0] = $ui->option()->value('all')->text("All Courses")->selected();
if ($course != NULL) {
    foreach ($course as $key => $cor) {
        array_push($array_options, $ui->option()->value($cor->id)->text($cor->name));
    }
}
$ui->select()->label('Select Courses')->name('course_selection1')->id("course_selection1")->options($array_options)->show();
$innercol7->close();
$row1->close();
?>
<script type="text/javascript">

$("#course_selection1").val('<?php 
echo $courses;
?>
');
$("#course_selection1").on('change' , function()
						{
							if(this.value!='all')
							{
								$('#sem').show();
								semester(this.value);
							}
							
Example #18
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();
    $cbuttonCol->close();
    $buttonRow->close();
}
Example #19
0
$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();
$fromRow = $ui->row()->id('fromRow')->open();
$fromlabel = $ui->col()->width(4)->t_width(8)->m_width(12)->open();
echo 'From Time';
$fromlabel->close();
$frominput = $ui->col()->width(2)->t_width(4)->m_width(6)->open();
Example #20
0
$inputRow5 = $ui->row()->id('filebox')->extras('style="display:none"')->open();
$ui->input()->label('Circular File<span style= "color:red;"> *</span>')->type('file')->id('circular_path')->name('circular_path')->width(12)->show();
$colll = $ui->col()->width(12)->open();
echo "(Allowed Types: pdf, doc, docx, jpg, jpeg, png, xls, xlsx, csv and Max Size: 1.0 MB)";
$colll->close();
$inputRow5->close();
$ui->input()->type('hidden')->name('circular_id')->required()->value($circular_row->circular_id)->show();
$ui->input()->type('hidden')->name('prev_circular_cat')->value($circular_row->circular_cat)->show();
$ui->input()->type('hidden')->name('modification_value')->required()->value($circular_row->modification_value)->show();
$compose_box->close();
/***************************************************************************/
$post_box = $ui->box()->id("post_box")->title('Post Circular')->icon($ui->icon("bullhorn"))->tooltip("Reload when something is not working.")->solid()->uiType('primary')->open();
$inputRow4 = $ui->row()->open();
//notice_col select the type of posting i.e single , group or general
$col1 = $ui->col()->id('circular_col')->width(12)->open();
$ui->select()->name('circular_cat')->id("circular_cat")->options(array($ui->option()->value('""')->text(' --------Whom to send------')->selected()->disabled(), $ui->option()->value('all')->text('All'), $ui->option()->value('emp')->text('All Employees'), $ui->option()->value('ft')->text('All faculty'), $ui->option()->value('stu')->text('All Students'), $ui->option()->value('ind')->text('Individual'), $ui->option()->value('grp')->text('Group(Customised)'), $ui->option()->value('gen')->text('Group(General)')))->required()->show();
$col1->close();
// innercol1 will be visible when individual opetion in notice_cat has been selected
$inputRow4->close();
$inputRow4 = $ui->row()->open();
$innercol1 = $ui->col()->id('individual_col')->width(6)->open();
$col1 = $ui->col()->width(12)->open();
$ui->input()->label('No. of person<span style= "color:red;"> *</span>')->type('text')->name('no_of_individuals')->id("no_of_individuals")->show();
$col1->close();
$r1col2 = $ui->col()->id('cant_rem_emp_id')->width(12)->m_width(6)->t_width(6)->open();
?>
<a onClick="onclick_emp_id();" >
						<div align="right">
  							<?php 
$ui->button()->value('Generate Emplyoee Id.')->id('emanage')->name('emanage')->show();
?>
Example #21
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());
}
Example #22
0
                array_push($array_option, $ui->option()->value("Sessional")->text("Sessional"));
                array_push($array_option, $ui->option()->value("Non-Contact")->text("Non-Contact"));
            }
            if ($subjects["subject_details"][$semester][$i]->type == "Sessional") {
                array_push($array_option, $ui->option()->value("Theory")->text("Theory"));
                array_push($array_option, $ui->option()->value("Practical")->text("Practical"));
                array_push($array_option, $ui->option()->value("Sessional")->text("Sessional")->selected());
                array_push($array_option, $ui->option()->value("Non-Contact")->text("Non-Contact"));
            }
            if ($subjects["subject_details"][$semester][$i]->type == "Non-Contact") {
                array_push($array_option, $ui->option()->value("Theory")->text("Theory"));
                array_push($array_option, $ui->option()->value("Practical")->text("Practical"));
                array_push($array_option, $ui->option()->value("Sessional")->text("Sessional"));
                array_push($array_option, $ui->option()->value("Non-Contact")->text("Non-Contact")->selected());
            }
            $ui->select()->options($array_option)->id("type_" . $semester . "_" . $i)->name("type_" . $semester . "_" . $i)->width(20)->disabled()->show();
            echo '
						</td>	
						<td>';
            $ui->button()->value('Edit')->uiType('primary')->id("editbutton_" . $semester . "_" . $i)->icon($ui->icon("edit"))->extras(' onclick = EditSubject(\'' . $semester . '\',\'' . $i . '\') ')->name('edit')->show();
            $ui->button()->value('Save')->uiType('success')->id("savebutton_" . $semester . "_" . $i)->icon($ui->icon("save"))->extras(' onclick = SaveSubject(\'' . $semester . '\',\'' . $i . '\') ')->name('save')->classes("savebutton")->show();
            echo '
						</td>		
					</tr>';
        }
        //inner for loop
        $aggr_id = $CS_session['aggr_id'];
        echo '
							<tr>
								<td colspan = "11">';
        $ui->button()->value('Delete')->uiType('danger')->id("btndelete")->icon($ui->icon("remove"))->extras(' onclick = DeleteSemester(\'' . $semester . '\',\'' . $aggr_id . '\') ')->name('edit')->show();
Example #23
0
$row = $ui->row()->open();
$column1 = $ui->col()->width(2)->open();
$column1->close();
$column2 = $ui->col()->width(9)->open();
$box = $ui->box()->title('Notice Details')->solid()->uiType('primary')->open();
$form = $ui->form()->extras('enctype="multipart/form-data"')->action('information/edit_notice/edit/' . $notice_row->notice_id)->open();
$star_notice = $ui->row()->open();
//echo" Fields marked with <span style= 'color:red;'>*</span> are mandatory.";
$star_notice->close();
$inputRow1 = $ui->row()->open();
$ui->input()->type('text')->label('Notice ID<span style= "color:red;"> *</span>')->name('notice_ids')->required()->width(6)->value($notice_row->notice_id)->disabled()->show();
$ui->input()->type('text')->label('Notice Number<span style= "color:red;"> *</span>')->name('notice_no')->value($notice_row->notice_no)->required()->width(6)->show();
$inputRow1->close();
$inputRow2 = $ui->row()->open();
if ($notice_row->notice_cat == 'emp') {
    $ui->select()->label('Viewed By<span style= "color:red;"> *</span>')->name('notice_cat')->options(array($ui->option()->value('emp')->text('Employee')->selected(), $ui->option()->value('stu')->text('Student'), $ui->option()->value('all')->text('All')))->width(6)->show();
} else {
    if ($notice_row->notice_cat == 'stu') {
        $ui->select()->label('Viewed By<span style= "color:red;"> *</span>')->name('notice_cat')->options(array($ui->option()->value('emp')->text('Employee'), $ui->option()->value('stu')->text('Student')->selected(), $ui->option()->value('all')->text('All')))->width(6)->show();
    } else {
        $ui->select()->label('Viewed By<span style= "color:red;"> *</span>')->name('notice_cat')->options(array($ui->option()->value('emp')->text('Employee'), $ui->option()->value('stu')->text('Student'), $ui->option()->value('all')->text('All')->selected()))->width(6)->show();
    }
}
$ui->datePicker()->name('last_date')->label('Last Date<span style= "color:red;"> *</span> (Atleast today)')->dateFormat('yyyy-mm-dd')->value($notice_row->last_date)->width(6)->show();
$inputRow2->close();
$inputRow3 = $ui->row()->open();
$ui->textarea()->label('Notice Subject<span style= "color:red;"> *</span>')->placeholder('Enter the notice Subject in not more than 200 characters')->name('notice_sub')->value($notice_row->notice_sub)->required()->width(8)->show();
$inputRow3->close();
$inputRow4 = $ui->row()->open();
$coll = $ui->col()->width(3)->open();
echo '<a href="' . base_url() . 'assets/files/information/notice/' . $notice_row->notice_path . '" title="download file" download="' . $notice_row->notice_path . '">' . $notice_row->notice_path . '</a>';
$ui->input()->type('text')->label('Designation<span style= "color:red;"> *</span>')->name('designation')->value($detail->designation)->disabled()->width(6)->show();
$ui->input()->type('text')->label('Department/Centre<span style= "color:red;"> *</span>')->name('department/centre')->disabled()->value($detail->dept_name)->width(6)->show();
$inputRow2->close();
$inputRow3 = $ui->row()->open();
$ui->input()->type('text')->label('Telephone: Direct<span style= "color:red;"> *</span>')->name('telephone')->disabled()->value($detail->contact_no)->width(6)->show();
$ui->input()->type('text')->label('E-mail<span style= "color:red;"> *</span>')->name('email')->disabled()->value($detail->email)->width(6)->show();
$inputRow3->close();
$CI_box->close();
$ETS_box = $ui->box()->title('Expected Time Schedule')->solid()->uiType('primary')->open();
$inputRow3 = $ui->row()->open();
$array1 = array();
array_push($array1, $ui->option()->value(0)->text(0)->selected());
for ($i = 1; $i < 100; $i++) {
    array_push($array1, $ui->option()->value($i)->text($i));
}
$ui->select()->label('Year<span style= "color:red;"> *</span>')->name('year')->id('year')->options($array1)->width(3)->show();
$array_month = array();
array_push($array_month, $ui->option()->value(0)->text(0)->selected());
for ($i = 1; $i < 13; $i++) {
    array_push($array_month, $ui->option()->value($i)->text($i));
}
$ui->select()->label('Month<span style= "color:red;"> *</span>')->name('month')->id('month')->options($array_month)->width(3)->show();
$array_weeks = array();
array_push($array_weeks, $ui->option()->value(0)->text(0)->selected());
for ($i = 1; $i < 6; $i++) {
    array_push($array_weeks, $ui->option()->value($i)->text($i));
}
$ui->select()->label('Weeks<span style= "color:red;"> *</span>')->name('weeks')->id('weeks')->options($array_weeks)->width(3)->show();
$array_days = array();
$array_days[0] = $ui->option()->value(0)->text(0)->selected();
for ($i = 1; $i < 32; $i++) {
Example #25
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();
?>
		 
?>
</span></p><?php 
$c2->close();
$c3 = $ui->col()->width(4)->open();
//				$ui->textarea()->label('Action Taken')->name("action_taken")->value($remarks)->disabled()->show();
?>
<p><strong> Action Taken </strong><br/>
			  <sapn><?php 
echo $remarks;
?>
</span></p><?php 
$c3->close();
$inputRow3->close();
$inputRow4 = $ui->row()->open();
$c1 = $ui->col()->width(6)->open();
$ui->textarea()->label('Fresh Action')->name("fresh_action")->placeholder('Fresh Action')->required()->show();
$c1->close();
$c2 = $ui->col()->width(4)->open();
$ui->select()->label('Status')->name('status')->required()->options(array($ui->option()->value("Under Processing")->text('Under Processing'), $ui->option()->value("Rejected")->text('Rejected'), $ui->option()->value("Closed")->text('Closed')))->show();
$c2->close();
$inputRow4->close();
?>
<center>
<?php 
$ui->button()->value('Submit')->submit(true)->id('complaint')->uiType('primary')->show();
$form->close();
$box->close();
$column2->close();
$row->close();
?>
</center>
Example #27
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();
Example #28
0
        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>';
$ui->radio()->name('sex')->value('m')->label('Male')->disabled()->checked($user_details->sex == 'm')->show();
$ui->radio()->name('sex')->value('f')->label('Female')->disabled()->checked($user_details->sex == 'f')->show();
$ui->radio()->name('sex')->value('k')->label('Others')->disabled()->checked($user_details->sex == 'k')->show();
Example #29
0
         $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();
         $box = $ui->box()->uiType('primary')->style('margin-bottom:0')->open();
         $ui->input()->name('edit_name' . $sno)->id('edit_name' . $sno)->label('Name')->value($emp_family_details->name)->disabled()->show();
         $ui->select()->name('edit_relationship' . $sno)->id('edit_relationship' . $sno)->label('Relationship')->disabled()->options(array($ui->option()->value("")->text("Choose One")->disabled(), $ui->option()->value("Father")->text("Father")->selected($emp_family_details->relationship == "Father"), $ui->option()->value("Mother")->text("Mother")->selected($emp_family_details->relationship == "Mother"), $ui->option()->value("Spouse")->text("Spouse")->selected($emp_family_details->relationship == "Spouse"), $ui->option()->value("Son")->text("Son")->selected($emp_family_details->relationship == "Son"), $ui->option()->value("Daughter")->text("Daughter")->selected($emp_family_details->relationship == "Daughter")))->show();
         $inrow = $ui->row()->open();
         $ui->datePicker()->name('edit_dob' . $sno)->id('edit_dob' . $sno)->dateFormat('dd-mm-yyyy')->width(4)->t_width(4)->addonRight($ui->icon("calendar"))->value(date('d-m-Y', strtotime($emp_family_details->dob)))->label('DOB')->show();
         $ui->input()->name("edit_profession" . $sno)->id("edit_profession" . $sno)->width(4)->t_width(4)->label('Profession')->value($emp_family_details->profession)->show();
         $status = $ui->input()->name('edit_active' . $sno)->id('edit_active' . $sno)->width(4)->t_width(4)->label('Active/Inactive')->value($emp_family_details->active_inactive);
         if ($emp_family_details->active_inactive == 'Active') {
             $status->addonRight($ui->button()->icon($ui->icon('check')->id('icon'))->id('edit_status_toggle')->uiType('success'));
         } else {
             $status->addonRight($ui->button()->icon($ui->icon('times')->id('icon'))->id('edit_status_toggle')->uiType('danger'));
         }
         $status->extras('readonly')->width(3)->t_width(3)->show();
         $inrow->close();
         $ui->input()->name("edit_address" . $sno)->id("edit_address" . $sno)->value($emp_family_details->present_post_addr)->label('Present Postal Address')->show();
         $ui->imagePicker()->label("Photograph")->containerId('edit_photo_container' . $sno)->id('edit_photo' . $sno)->name('edit_photo' . $sno)->show();
         echo '<center>';
         $ui->button()->uiType('primary')->flat()->submit()->name('save')->value('Save')->icon($ui->icon('floppy-o'))->show();
Example #30
0
$stubCol = $ui->col()->width(1)->open();
$stubCol->close();
$containerCol = $ui->col()->width(10)->open();
$form = $ui->form()->action('student/student_add/insert_basic_details/' . $stu_id)->multipart()->id('form_submit')->open();
$student_admn_no = $ui->row()->open();
?>
<h1 class="page-header"><img src="<?php 
echo base_url();
?>
assets/images/mis-logo-big.png" width="50"/> Welcome to the Management Information System</h1><?php 
$ui->callout()->uiType("info")->title("Admission No. {$stu_id}")->desc("Please fill this form to register yourself to the Management Information System.")->show();
$student_admn_no->close();
$student_details_row = $ui->row()->open();
$student_details_box = $ui->box()->uiType('primary')->solid()->title('Personal Details')->open();
$student_name = $ui->row()->open();
$ui->select()->name('salutation')->width(3)->options(array($ui->option()->value('mr')->text('Mr'), $ui->option()->value('mrs')->text('Mrs'), $ui->option()->value('ms')->text('Ms'), $ui->option()->value('dr')->text('Dr')))->show();
$ui->input()->placeholder('First Name')->id('firstname')->required()->width(3)->name('firstname')->show();
$ui->input()->placeholder('Middle Name')->id('middlename')->width(3)->name('middlename')->show();
$ui->input()->placeholder('Last Name')->width(3)->id('lastname')->name('lastname')->show();
$student_name->close();
$student_personal_details_row_1 = $ui->row()->open();
$ui->input()->label('पूरा नाम हिन्दी में')->id('stud_name_hindi')->name('stud_name_hindi')->width(3)->show();
$column_gender = $ui->col()->width(3)->open();
echo '<label>Gender</label>';
$ui->radio()->name('sex')->label('Male')->value('male')->checked()->show();
$ui->radio()->name('sex')->label('Female')->value('female')->show();
$ui->radio()->name('sex')->label('Others')->value('others')->show();
$column_gender->close();
$ui->datePicker()->label('Date of Birth')->width(3)->name('dob')->value(date("d-m-Y", time() + 19800))->dateFormat('dd-mm-yyyy')->show();
$ui->input()->label('Place of Birth')->name('pob')->required()->width(3)->show();
$student_personal_details_row_1->close();