public function validate_track_num($track_num) { $this->load->model('file_tracking/file_details', '', TRUE); $file_id = $this->file_details->get_file_id($track_num); if ($file_id == false) { //$this->notification->drawNotification("Enter valid Track Number", ""); //$this->session->set_flashdata('flashError','Enter correct Track Number.'.$track_num); //redirect('file_tracking/track_file'); $ui = new UI(); $ui->callout()->uiType("error")->title("Enter Correct Track Number.")->desc("")->show(); } else { $res = $this->file_details->get_file_details($track_num); foreach ($res->result() as $row) { $file_id = $row->file_id; $file_no = $row->file_no; $file_subject = $row->file_subject; $start_emp_id = $row->start_emp_id; $close_emp_id = $row->close_emp_id; } $this->load->model('file_tracking/file_move_details'); $result = $this->file_move_details->get_move_details($track_num); $total_rows = $result->num_rows(); $this->load->model('user_model'); $data_array = array(); $sno = 1; foreach ($result->result() as $row) { $data_array[$sno] = array(); $j = 1; $data_array[$sno][$j++] = $row->file_id; $data_array[$sno][$j++] = $row->track_num; $data_array[$sno][$j++] = $this->user_model->getNameById($row->sent_by_emp_id); $data_array[$sno][$j++] = date('j M Y g:i A', strtotime($row->sent_timestamp)); $data_array[$sno][$j++] = $this->user_model->getNameById($row->rcvd_by_emp_id); if ($row->rcvd_timestamp) { $data_array[$sno][$j++] = date('j M Y g:i A', strtotime($row->rcvd_timestamp)); } else { $data_array[$sno][$j++] = $row->rcvd_timestamp; } //$data_array[$sno][$j++] = date('j M Y g:i A', strtotime($row->rcvd_timestamp)); $data_array[$sno][$j++] = $row->forward_status; $data_array[$sno][$j++] = urldecode($row->remarks); $sno++; } $data = array('file_id' => $file_id, 'file_no' => $file_no, 'track_num' => $track_num, 'file_subject' => $file_subject, 'start_emp_id' => $start_emp_id, 'close_emp_id' => $close_emp_id, 'data_array' => $data_array, 'total_rows' => $total_rows); $this->load->view('file_tracking/track_file/track_table', $data); } }
} } } if ($step == -1) { $step = 1; } $tabbox = $ui->tabBox()->tab('profile_pic', $status0 . '<br>Profile Pic', $step == 0)->tab('basic_details', $status1 . '<br>Basic Details', $step == 1)->tab('prev_emp', $status2 . '<br>Employment Details', $step == 2)->tab('emp_fam', $status3 . '<br>Family Member Details', $step == 3)->tab('emp_edu', $status4 . '<br>Educational Qualifications', $step == 4)->tab('last_five', $status5 . '<br>Stay Details', $step == 5)->open(); $profile_pic = $ui->tabPane()->id('profile_pic'); if ($step == 0) { $profile_pic->active(); } $profile_pic->open(); if ($emp) { if ($emp_validation_details) { if ($emp_validation_details->profile_pic_status == 'pending') { $ui->callout()->title("Pending")->desc("Profile Picture is not yet validated.")->uiType('info')->show(); } else { if ($emp_validation_details->profile_pic_status == 'rejected') { $reject = $this->emp_validation_details_model->getRejectReasonWhere(array('id' => $emp_id, 'step' => 0)); $ui->callout()->title("Rejected")->desc("Please contact the Establishment Section for the same." . ($reject ? "<br>Reason behind rejection : " . $reject->reason : ""))->uiType('danger')->show(); } } } view_profile_pic($photo, $pending_photo, $status0); } else { $ui->callout()->title('Not Found')->desc("Your details have not been updated. Please check after some time.")->uiType('warning')->show(); } validation_form($emp_validation_details, 0); $profile_pic->close(); $basic = $ui->tabPane()->id('basic_details'); if ($step == 1) {
$col1->close(); $column1 = $ui->col()->width(1)->open(); $column1->close(); $column2 = $ui->col()->width(10)->open(); foreach ($details as $disbursement) { } $box = $ui->box()->solid()->uiType('primary')->open(); $inputRow2 = $ui->row()->open(); $col1 = $ui->col()->width(6)->open(); $col1->close(); $col2 = $ui->col()->width(6)->open(); $ui->input()->type('text')->label('CONS')->name('consultancy_no')->id('consultancy_no')->disabled()->value($disbursement->consultancy_no)->width(12)->show(); $col2->close(); $consultancy_no = $disbursement->consultancy_no; $inputRow2->close(); $ui->callout()->uiType("info")->desc('Enlc : Photocopies of money receipts. Disbursement sheet, Statement of expenditure, Distribution list of Honoraria to faculty and supporting staff of ISM. ')->show(); $A_box = $ui->box()->title('A. Details of Receipt/Payment:')->solid()->uiType('primary')->open(); $table_A = $ui->table()->id('table_a')->bordered()->striped()->sortable()->open(); ?> <tr> <td width=70%> Total Charges </td> <td><?php $ui->input()->type('text')->name('a_total_charges')->id('a_total_charges')->value($disbursement->a_total_charge)->width(12)->disabled()->show(); ?> </td> </tr> <tr> <td width=70%>
$this->notification->drawNotification('Validation Errors', validation_errors(), 'error'); } $inputRow1 = $ui->row()->open(); $column1 = $ui->col()->width(1)->open(); $column1->close(); $column2 = $ui->col()->width(10)->open(); $box = $ui->box()->solid()->uiType('primary')->open(); foreach ($details as $disbursement) { } $inputRow2 = $ui->row()->open(); $col1 = $ui->col()->width(6)->open(); $col1->close(); $col2 = $ui->col()->width(6)->open(); $ui->input()->type('text')->label('CONS')->name('consultancy_no')->id('consultancy_no')->width(12)->value($consultancy_no)->disabled()->show(); $col2->close(); $ui->callout()->uiType("info")->desc('Enlc : Photocopies of money receipts. Disbursement sheet, Statement of expenditure, Distribution list of Honoraria to faculty and supporting staff of ISM. ')->show(); $inputRow2->close(); $form = $ui->form()->action('consultant/consultant_disbursement_sheet/resubmit/' . $consultancy_no . '/' . $sr_no)->extras('enctype="multipart/form-data"')->open(); $tabRow1 = $ui->row()->open(); $tabBox1 = $ui->tabBox()->tab("t1", "Details of Receipt", true)->tab("t2", "Credits and Disbursement")->tab("t3", "Net Amount")->tab("t4", "Consultants")->tab("t5", "Supporting Staffs")->open(); $t1 = $ui->tabPane()->id("t1")->active()->open(); $A_box = $ui->box()->title('Details of Receipt/Payment:')->solid()->uiType('primary')->open(); $table_A = $ui->table()->id('table_a')->bordered()->striped()->sortable()->open(); ?> <tr> <td width=70%>Total Charges</td> <td><?php $ui->input()->type('text')->name('a_total_charges')->id('a_total_charges')->value($disbursement->a_total_charge)->width(12)->required()->show(); ?> </td>
<?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>
if ($notice->modification_value != 0) { ?> <br>and</br> <a href="<?php echo base_url() . 'index.php/information/view_notice/prev/' . $notice->notice_id; ?> "><?php echo $ui->button()->mini()->uiType('primary')->value('Get Prev Version')->show(); echo '</a>'; } echo '</td> </tr>'; } $table->close(); } else { $ui->callout()->uiType("info")->title("No Current Notice.")->desc("You have not any current notice to view.")->show(); } $tab1->close(); $flag = 2; $tab2 = $ui->tabPane()->id("archived")->open(); if ($count_archived_notice != 0) { $table1 = $ui->table()->hover()->bordered()->sortable()->searchable()->paginated()->open(); ?> <thead> <tr> <th>Notice Number</th> <th >Notice Subject</th> <th>Posted On/ Edited On</th> <th >Issued By</th> <th>Revision Status</th> <th >Links</th>
<?php $ui = new UI(); if ($res->num_rows() == 0) { $ui->callout()->uiType('info')->title('No Files Pending:)')->show(); return; } $outer_row = $ui->row()->open(); $column1 = $ui->col()->width(1)->open(); $column1->close(); $column2 = $ui->col()->width(9)->open(); $box = $ui->box()->title('Pending Files')->solid()->uiType('primary')->open(); //content $table = $ui->table()->hover()->bordered()->sortable()->searchable()->paginated()->open(); ?> <thead> <tr> <th>File No</th> <th>File Subject</th> <th>Sent By</th> <th>File Operations</th> </tr> </thead> <?php foreach ($res->result() as $row) { ?> <tr> <td><?php if ($row->file_no) { echo $row->file_no; } else {
?> </td> <td> <center> <?php $ui->button()->value('Track File')->id('submit' . $sno)->uiType('primary')->name('submit_track')->show(); ?> </center> </td> </tr> <?php $sno++; } $table->close(); } else { $ui->callout()->uiType("info")->title("No File sent by You.")->desc("You have not sent any file, track file by track number.")->show(); } ?> <br/> <div id="move_details_of_sent_files"> </div> <?php $tab1->close(); $tab2 = $ui->tabPane()->id("track_num_tab")->open(); $ui->input()->placeholder('Enter track number')->type('text')->label('Track Number')->id('track_num')->name('track_num')->show(); ?> <center> <?php $ui->button()->value('Track File')->id('submit')->uiType('primary')->submit()->name('submit')->show(); ?> </center>
* Author: Vivek Kumar * Email: vivek0739@users.noreply.github.com * Date: 19 june 2015 */ $ui = new UI(); $errors = validation_errors(); if ($errors != '') { $this->notification->drawNotification('Validation Errors', validation_errors(), 'error'); } $row = $ui->row()->open(); $column1 = $ui->col()->width(1)->open(); $column1->close(); $column2 = $ui->col()->width(10)->open(); $form = $ui->form()->action('consultant/consultant/submit_consult_form')->extras('enctype="multipart/form-data"')->id('form_submit')->open(); $row1 = $ui->row()->open(); $ui->callout()->uiType("info")->desc("No deduction will be made from the budget head except applicable income tax.")->show(); $box = $ui->box()->title('ESTIMATE FORM ')->solid()->uiType('primary')->open(); $row1 = $ui->row()->open(); $innercol1 = $ui->col()->width(12)->open(); $ui->input()->label('Title<span style= "color:red;"> *</span>')->type('text')->name('consultant_title')->required()->show(); $innercol1->close(); $innercol2 = $ui->col()->width(6)->open(); $ui->input()->label('Scope of work')->type('file')->name('work_scope')->required()->show(); echo "(Allowed Types: pdf, doc, docx, jpg, jpeg, png, xls, xlsx, csv and Max Size: 1.0 MB)<br/><br/>"; $innercol2->close(); $innercol2 = $ui->col()->width(6)->open(); $ui->input()->label('Letter of request from client/Approval letter from Director')->type('file')->name('scope_path')->required()->show(); echo "(Allowed Types: pdf, doc, docx, jpg, jpeg, png, xls, xlsx, csv and Max Size: 1.0 MB)"; $innercol2->close(); $row1->close(); $value = 1;
<div id="print"> <?php $ui = new UI(); $tabsRow = $ui->row()->open(); $tabBox = $ui->tabBox()->icon($ui->icon("th"))->title("Duty Chart")->tab("today", $ui->icon("bars") . "Today Chart", true)->tab("tomorrow", $ui->icon("bars") . "Tomorrow Chart")->tab("complete", $ui->icon("bars") . "Complete Chart")->open(); $tab1 = $ui->tabPane()->id("today")->active()->open(); if (count($details_of_guards_at_a_date_today) == 0) { $box = $ui->callout()->title("Empty List")->desc("There is no duty for any guard today.")->uiType("info")->show(); } else { $table = $ui->table()->id('dateDutyChartTable')->responsive()->hover()->bordered()->striped()->sortable()->paginated()->searchable()->open(); ?> <thead> <tr> <th class="print-no-display" width="30px">Photo</th> <th><center>Guard Name</center></th> <th><center>Post Name</center></th> <th><center>Shift</center></th> <th><center>Replace</center></th> <th><center>Remove</center></th> </tr> </thead> <tfoot> <tr> <th class="print-no-display" width="30px">Photo</th> <th><center>Guard Name</center></th> <th><center>Post Name</center></th> <th><center>Shift</center></th> <th><center>Replace</center></th> <th><center>Remove</center></th> </tr>
$errorHead = "Password Changed"; $errorMessage = "Your Password has been changed. Please login again to continue."; $uiType = "info"; } else { if ($error_code == 5) { $errorHead = "Account created"; $errorMessage = "Your account has been created. Please enter your username and password to login."; $uiType = "info"; } } } } } $logoImg = '<img class="big-logo" src="' . base_url() . 'assets/images/mis-logo-big.png" height="40" style="padding-right: 5px"/>'; $formBox = $ui->box()->title($logoImg . " Please login to continue")->containerClasses("form-box")->open(); $ui->callout()->uiType($uiType)->desc($errorMessage)->show(); $form = $ui->form()->id("login")->action("login/login_user")->open(); $username = $ui->input()->type("text")->name("username")->placeholder("Username")->required()->label("Username"); $password = $ui->input()->type("password")->name("password")->placeholder("Password")->required()->label("Password"); if ($error_code == 1) { $password->uiType("error"); } $username->show(); $password->show(); $ui->button()->type("submit")->value("Login")->icon($ui->icon("sign-in"))->uiType("primary")->id("submit")->block()->show(); ?> <hr /> <center> <a href="#">Forgot Password</a> • <a href="#">Online Help</a> • <a href="#">Wiki</a> •
if ($minute->modification_value != 0) { ?> <br>and</br> <a href="<?php echo base_url() . 'index.php/information/view_minute/prev/' . $minute->minutes_id; ?> "><?php echo $ui->button()->uiType('primary')->mini()->value('Get Prev Version')->show(); echo '</a>'; } echo '</td> </tr>'; } $table->close(); } else { $ui->callout()->uiType("info")->title("No Current Minutes.")->desc("You have not any current minutes to view.")->show(); } ?> <?php $tab1->close(); $flag = 2; $tab2 = $ui->tabPane()->id("archived")->open(); if ($count_archived_minutes != 0) { $table1 = $ui->table()->hover()->bordered()->sortable()->searchable()->paginated()->open(); ?> <thead> <tr> <th>Minutes Number</th> <th >Meeting Type</th> <th >Meeting Date</th>
$buttoncol = $ui->col()->width(1)->t_width(2)->m_width(3)->open(); $ui->button()->value('Go')->icon($ui->icon('arrow-right'))->uiType('primary')->id('rangepostsubmit')->name('rangepostsubmit')->show(); $buttoncol->close(); $selectqueryRow->close(); echo '</div>'; $headingBox->close(); ?> <?php $headingBox = $ui->box()->id('postDutyChartBox')->uiType('info')->title('Details of Guards at post <div style="float:right; margin-left:10px;" id="post-div"></div>')->solid()->open(); $tabsRow = $ui->row()->open(); $tabsCol = $ui->col()->open(); $tabBox = $ui->tabBox()->icon($ui->icon("th"))->title("Duty Chart")->tab("regularp", $ui->icon("bars") . "Regular List", true)->tab("overtimep", $ui->icon("bars") . "Overtime List")->open(); $tab1 = $ui->tabPane()->id("regularp")->active()->open(); echo '<div id="postmessage-div" style="display:none;">'; $box = $ui->callout()->title("Empty List")->desc("List is empty for the given post.")->uiType("info")->show(); echo '</div>'; $tableRow = $ui->row()->id('postDutyChartTableRow')->open(); $table = $ui->table()->id('postDutyChartTable')->responsive()->hover()->bordered()->striped()->sortable()->paginated()->searchable()->open(); ?> <thead> <tr> <th class="print-no-display" width="30px">Photo</th> <th><center>Guard Name</center></th> <th><center>Shift</center></th> <th><center>Duty Date</center></th> </tr> </thead> <tfoot> <tr>
<?php $ui = new UI(); $outer_row = $ui->row()->open(); $column1 = $ui->col()->width(1)->open(); $column1->close(); $column2 = $ui->col()->width(10)->open(); $innercol1 = $ui->col()->width(6)->open(); $ui->input()->required()->label('Group Name<span style= "color:red;"> *</span>')->type('text')->name('groups_name_id')->id("groups_name_id")->value('')->show(); $innercol1->close(); $innercol2 = $ui->col()->width(6)->open(); $ui->callout()->title("You can edit any group from here also, ")->uiType("warning")->desc('just type the name of group you want to edit and click any add button and then remove the member if you do not want')->show(); $innercol2->close(); $column2 = $ui->col()->width(12)->open(); ?> <br/> <div id="move_details_of_sent_files" name='move_details_of_sent_files'> </div> <br/><br/> <?php $column2->close(); $innercol2 = $ui->col()->width(12)->open(); $box = $ui->box()->title('Add Member')->solid()->uiType('primary')->open(); if ($total_rows != 0) { $table = $ui->table()->hover()->bordered()->sortable()->searchable()->paginated()->open(); ?> <thead> <tr> <th>Member</th> <th >Department</th>
<?php $ui = new UI(); $ui->callout()->uiType("info")->desc('You have no any application to approve/reject.')->show();
<?php $ui = new UI(); $containerRow = $ui->row()->open(); $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();
<?php $ui = new UI(); if (!$res || $res->num_rows() == 0) { $ui->callout()->uiType("info")->title("No more notifications")->desc("You don't have any unread notifications.")->show(); } else { // echo "<h2>Unread Notifications</h2>"; foreach ($res->result() as $row) { $ui->callout()->uiType("info")->title($row->title)->desc("<b>" . date("d M Y", strtotime($row->send_date)) . "</b>: " . $row->description . " <a href=\"" . site_url($row->path) . "\">Know more »</a>")->show(); } }
<td>' . strtoupper($row->exam) . '</td> <td>' . strtoupper($row->branch) . '</td> <td>' . strtoupper($row->institute) . '</td> <td>' . $row->year . '</td> <td>' . strtoupper($row->grade) . '</td> <td>' . ucwords($row->division) . '</td> <td>'; $ui->button()->flat()->id('edit' . $i)->name("edit[]")->uiType("primary")->value("Edit")->icon($ui->icon("pencil"))->extras('onClick="onclick_edit(' . $i . ')"')->show(); $ui->button()->flat()->id('delete4' . $i)->name("delete4[]")->uiType("danger")->value("Delete")->icon($ui->icon("trash-o"))->extras('onClick="onclick_delete(' . $i . ');"')->show(); echo '</td></tr>'; $i++; } echo '</tbody>'; $table->close(); } else { $ui->callout()->title('Empty')->desc('No Educational Qualifications Found.')->uiType('danger')->show(); } $box->close(); if (count($pending_emp_education_details)) { $box = $ui->box()->id('original_details')->title('Educational Qualifications')->uiType('success')->open(); if (count($emp_education_details)) { $table = $ui->table()->id('tbl')->responsive()->bordered()->striped()->open(); echo '<thead><tr align="center"> <td style="vertical-align:middle" ><b>S no.</b></td> <td style="vertical-align:middle" ><b>Examination</b></td> <td style="vertical-align:middle" ><b>Course(Specialization)</b></td> <td style="vertical-align:middle" ><b>College/University/Institute</b></td> <td style="vertical-align:middle" ><b>Year</b></td> <td style="vertical-align:middle" ><b>Percentage/Grade</b></td> <td style="vertical-align:middle" ><b>Class/Division</b></td> </tr>
* Author: Vivek Kumar * Email: vivek0739@users.noreply.github.com * Date: 19 june 2015 */ $ui = new UI(); $errors = validation_errors(); if ($errors != '') { $this->notification->drawNotification('Validation Errors', validation_errors(), 'error'); } $row = $ui->row()->open(); $column1 = $ui->col()->width(1)->open(); $column1->close(); $column2 = $ui->col()->width(10)->open(); $form = $ui->form()->action('consultant/edit_consultancy_form/submit_edited_consult_form/' . $cons_row->sr_no)->extras('enctype="multipart/form-data"')->id('form_submit')->open(); $row1 = $ui->row()->open(); $ui->callout()->uiType("info")->desc("No deduction will be made from the budget head except applicable income tax.")->show(); $box = $ui->box()->title('ESTIMATE FORM ')->solid()->uiType('primary')->open(); $row1 = $ui->row()->open(); $innercol1 = $ui->col()->width(12)->open(); $ui->input()->label('Title<span style= "color:red;"> *</span>')->type('text')->name('consultant_title')->required()->value($cons_row->consultancy_title)->show(); $innercol1->close(); /*scope file*/ $innercol3 = $ui->col()->width(6)->open(); $coll = $ui->col()->width(8)->open(); echo '<br> <a href="' . base_url() . 'assets/files/consultant/SCOPE_WORK/' . $cons_row->scope_work . '" title= "download file" download="' . $cons_row->scope_work . '">' . $cons_row->scope_work . '</a>'; $coll->close(); $colll = $ui->col()->width(4)->open(); $js = 'onclick="javascript:document.getElementById(\'filebox1\').style.display=\'block\';"'; echo " <div align='right'>"; $ui->button()->icon($ui->icon('refresh'))->value('Scope Of Work')->uiType('primary')->extras($js)->show();
} $inputRow1 = $ui->row()->open(); $column1 = $ui->col()->width(1)->open(); $column1->close(); foreach ($details as $disbursement) { } $column2 = $ui->col()->width(10)->open(); $box = $ui->box()->solid()->uiType('primary')->open(); //print_r($consultancy_no); $inputRow2 = $ui->row()->open(); $col1 = $ui->col()->width(6)->open(); $col1->close(); $col2 = $ui->col()->width(6)->open(); $ui->input()->type('text')->label('CONS')->name('consultancy_no')->id('consultancy_no')->width(12)->value($consultancy_no)->disabled()->show(); $col2->close(); $ui->callout()->uiType("info")->desc('Enlc : Photocopies of money receipts. Disbursement sheet, Statement of expenditure, Distribution list of Honoraria to faculty and supporting staff of ISM.')->show(); $inputRow2->close(); $form = $ui->form()->action('consultant/consultant_disbursement_sheet/reconfirmation/' . $consultancy_no . '/' . $sr_no)->extras('enctype="multipart/form-data"')->open(); $tabRow1 = $ui->row()->open(); $tabBox1 = $ui->tabBox()->tab("t1", "Details of Receipt", true)->tab("t2", "Credits and Disbursement")->tab("t3", "Net Amount")->tab("t4", "Consultants")->tab("t5", "Supporting Staffs")->open(); $t1 = $ui->tabPane()->id("t1")->active()->open(); $A_box = $ui->box()->title('Details of Receipt/Payment:')->solid()->uiType('primary')->open(); $table_A = $ui->table()->id('table_a')->open(); ?> <tr> <td width=70%>Total Charges</td> <td><?php
$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(); } $column2->close(); $ui->callout()->uiType("info")->desc('AGREEMENT BETWEEN CLIENT AND CONSULTANT:(To be filled in only on the request of client):This agreement is subject to the Standard Term and Conditions for undertaking/Testing/Project at ISM Dhanbad unless specially agreed to otherwise, the details mentioned above have been read and are acceptable.')->show(); $form = $ui->form()->action('consultant/consultancy_proposal_form/index/' . $cons_row->sr_no)->extras('enctype="multipart/form-data"')->id('form_submit')->open(); $CI_box = $ui->box()->title('Consultancy Incharge')->solid()->uiType('primary')->open(); $inputRow1 = $ui->row()->open(); $ui->input()->type('text')->label('Name<span style= "color:red;"> *</span>')->name('name')->disabled()->value($detail->salutation . ' ' . $detail->first_name . ' ' . $detail->middle_name . ' ' . $detail->last_name)->width(12)->show(); $inputRow1->close(); $inputRow2 = $ui->row()->open(); $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();
<?php $ui = new UI(); $ui->callout()->uiType("warning")->desc('<strong>Sorry!</strong> your application is in pending so you are not allowed to fill another application')->show();
} $inputRow1 = $ui->row()->open(); $column1 = $ui->col()->width(1)->open(); $column1->close(); $column2 = $ui->col()->width(10)->open(); foreach ($details as $disbursement) { } $box = $ui->box()->solid()->uiType('primary')->open(); $inputRow2 = $ui->row()->open(); $col1 = $ui->col()->width(6)->open(); $col1->close(); $col2 = $ui->col()->width(6)->open(); $ui->input()->type('text')->label('Consultancy No')->name('consultancy_no')->id('consultancy_no')->disabled()->value($disbursement->consultancy_no)->width(12)->show(); $col2->close(); $consultancy_no = $disbursement->consultancy_no; $ui->callout()->uiType("info")->desc('Enlc : Photocopies of money receipts. Disbursement sheet, Statement of expenditure, Distribution list of Honoraria to faculty and supporting staff of ISM. ')->show(); $inputRow2->close(); $form = $ui->form()->action('consultant/consultant_disbursement_sheet/disbursement_approve/' . $consultancy_no . '/' . $sr_no . '/' . $auth_id)->extras('enctype="multipart/form-data"')->open(); $tabRow1 = $ui->row()->open(); $tabcol1 = $ui->col()->width(12)->open(); $tabBox1 = $ui->tabBox()->tab("t1", "Details of Receipt", true)->tab("t2", "Credits and Disbursement")->tab("t3", "Net Amount")->tab("t4", "Consultants")->tab("t5", "Supporting Staffs")->open(); /*********************************TAB 1**************************************************************/ $t1 = $ui->tabPane()->id("t1")->active()->open(); $A_box = $ui->box()->title('Details of Receipt/Payment:')->solid()->uiType('primary')->open(); $table_A = $ui->table()->id('table_a')->bordered()->open(); ?> <tr> <td width=70%>Total Charges</td> <td><?php $ui->input()->type('text')->name('a_total_charges')->id('a_total_charges')->value($disbursement->a_total_charge)->width(12)->disabled()->show();
<?php $ui = new UI(); // $box = $ui->box()->uiType('primary')->open(); $tabBox1 = $ui->tabBox()->icon($ui->icon("list"))->title("Complaint List")->tab("registered_complaints", "Registerd Complaints", true)->tab("closed_complaints", "Closed Complaints")->tab("rejected_complaints", "Rejected Complaints")->tab("all_complaints", "All Complaints")->open(); $tab1 = $ui->tabPane()->id("registered_complaints")->active()->open(); if ($total_rows_under_processing == 0) { $ui->callout()->uiType("info")->title("No Complaints Registered.")->desc("")->show(); } else { $table = $ui->table()->hover()->bordered()->sortable()->searchable()->paginated()->open(); ?> <thead> <tr> <th>Complaint ID</th> <th>Registered By</th> <th>Registered On</th> <th>Location</th> <!-- <th>Location Details</th> <th>Problem Details</th> <th>Remarks</th> --> </tr> </thead> <?php $sno = 1; while ($sno <= $total_rows_under_processing) { ?> <tr> <td><a href="<?php echo site_url("complaint/complaint_details/details/" . $data_array_under_processing[$sno][1] . "/UnderProcessing"); ?> "><?php
} $tabbox = $ui->tabBox()->tab('all', '<br>' . $ui->icon('user') . 'All Details', $step == 5)->tab('basic_details', $status1 . '<br>Basic Details', $step == 0)->tab('prev_emp', $status2 . '<br>Employment Details', $step == 1)->tab('emp_fam', $status3 . '<br>Family Member Details', $step == 2)->tab('emp_edu', $status4 . '<br>Educational Qualifications', $step == 3)->tab('last_five', $status5 . '<br>Stay Details', $step == 4)->open(); $basic = $ui->tabPane()->id('basic_details'); if ($step == 0) { $basic->active(); } $basic->open(); if ($emp) { $data['name'] = $emp->salutation . '. ' . ucwords(trim($emp->first_name)) . ' ' . trim(ucwords(trim($emp->middle_name)) . ' ' . ucwords(trim($emp->last_name))); $data['department'] = $this->departments_model->getDepartmentById($emp->dept_id)->name; $data['designation'] = $this->designations_model->getDesignationById($emp->designation)->name; $data['permanent_pretty'] = $permanent_address->line1 . ',<br>' . (trim($permanent_address->line2) == '' ? '' : $permanent_address->line2 . ',<br>') . ucwords($permanent_address->city) . ', ' . ucwords($permanent_address->state) . ' - ' . $permanent_address->pincode . '<br>' . ucwords($permanent_address->country) . '<br>Contact no. ' . $permanent_address->contact_no; $data['present_pretty'] = $present_address->line1 . ',<br>' . (trim($present_address->line2) == '' ? '' : $present_address->line2 . ',<br>') . ucwords($present_address->city) . ', ' . ucwords($present_address->state) . ' - ' . $present_address->pincode . '<br>' . ucwords($present_address->country) . '<br>Contact no. ' . $present_address->contact_no; if ($emp_validation_details) { if ($emp_validation_details->profile_pic_status == 'pending') { $ui->callout()->title("Pending" . $ui->label()->uiType('info')->id('pending_pic')->classes('pull-right')->text('Show'))->desc('Profile Picture is not yet validated.<br><img id="pending_photo" src="' . base_url() . 'assets/images/' . $pending_photo . '" height="150" />')->uiType('info')->show(); } else { if ($emp_validation_details->profile_pic_status == 'rejected') { $reject = $this->emp_validation_details_model->getRejectReasonWhere(array('id' => $emp_id, 'step' => 0)); $ui->callout()->title("Rejected" . $ui->label()->uiType('danger')->id('pending_pic')->classes('pull-right')->text('Show'))->desc('Please contact the Establishment Section for the same.' . ($reject ? '<br>Reason behind rejection : ' . $reject->reason : '') . '<br><img id="pending_photo" src="' . base_url() . 'assets/images/' . $pending_photo . '" height="150" />')->uiType('danger')->show(); } } } view_profile_pic($emp->photopath); $basic_details_status = $pending_data = false; //initializing if ($emp_validation_details) { if ($emp_validation_details->basic_details_status == 'pending') { $ui->callout()->title("Pending" . $ui->label()->uiType('info')->id('pending_basic')->classes('pull-right')->text('Show'))->desc("Basic Details are not yet validated.")->uiType('info')->show(); } else { if ($emp_validation_details->basic_details_status == 'rejected') {
} ?> "><?php echo $unreadCount; ?> </small> <?php echo '<div class="notification-drawer closed">'; echo '<div class="unread">'; if ($unreadCount > 0) { echo '<h3>Unread Notifications »</h3>'; foreach ($notifications[$key]["unread"] as $row) { $dateTime = new DateTime(); $dateTime->setTimestamp(strtotime($row->send_date)); $dateTime->setTimeZone($dateTimeZone); $ui->callout()->title(ucwords($row->title))->desc($row->description . ' <span class="label label-info pull-right" onclick="window.location=\'' . site_url($row->path) . '\'">Know More »</span>')->uiType("info")->show(); } } echo '</div>'; $readCol = $ui->col()->width(12)->classes("read")->open(); if ($readCount > 0) { echo '<hr />'; foreach ($notifications[$key]["read"] as $row) { $dateTime = new DateTime(); $dateTime->setTimestamp(strtotime($row->send_date)); $dateTime->setTimeZone($dateTimeZone); echo "<div class='margin'>"; echo '<b>' . ucwords($row->title) . '</b>'; echo '<p>' . $row->description . ' <span class="label label-info pull-right" onclick="window.location=\'' . site_url($row->path) . '\'">Know More » </span> </p>'; echo '<hr />'; echo "</div>";
<?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><?</code>). Instead of converting all short tags to <code><?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(); ?>
<?php /** * Author: Majeed Siddiqui (samsidx) */ if (!isset($msg)) { $msg = "You haven't performed any action yet."; } $ui = new UI(); $row = $ui->row()->open(); $margin_col = $ui->col()->width(2)->open(); $margin_col->close(); $container_col = $ui->col()->width(8)->open(); $container_box = $ui->box()->uiType('primary')->solid()->open(); $ui->callout()->uiType('info')->title('Confirmation')->desc($msg)->show(); $container_box->close(); $container_col->close(); $row->close();
echo '<tr name=row[] align="center"> <td>' . $i . '</td> <td>' . date('d M Y', strtotime($row->from)) . '</td> <td>' . date('d M Y', strtotime($row->to)) . '</td> <td>' . $row->res_addr . '</td> <td>' . ucwords($row->dist_hq_name) . '</td> <td>'; $ui->button()->flat()->id('edit' . $i)->name("edit[]")->uiType("primary")->value("Edit")->icon($ui->icon("pencil"))->extras('onClick="onclick_edit(' . $i . ')"')->show(); $ui->button()->flat()->id('delete5' . $i)->name("delete5[]")->uiType("danger")->value("Delete")->icon($ui->icon("trash-o"))->extras('onClick="onclick_delete(' . $i . ');"')->show(); echo '</td></tr>'; $i++; } echo '</tbody>'; $table->close(); } else { $ui->callout()->title('Empty')->desc('No Stay Details Found.')->uiType('danger')->show(); } $box->close(); if (count($pending_emp_last5yrstay_details)) { $box = $ui->box()->id('original_details')->title('Last 5 Year Stay Details')->uiType('success')->open(); if (count($emp_last5yrstay_details)) { $table = $ui->table()->id('tbl')->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> </tr> <tr align="center"> <td style="vertical-align:middle" ><b>From</b></td> <td style="vertical-align:middle" ><b>To</b></td>
<?php $ui = new UI(); $ui->callout()->title("No of group has been exceeded the limit")->uiType("warning")->id('grp_exceed')->desc('delete any group')->show(); $innercol2 = $ui->col()->width(12)->open(); ?> <div align="left"> <a href=<?php echo site_url('information/information_ajax/delete_notice_group/' . strval($id_user) . '/' . strval($auth_id)); ?> > <?php $ui->button()->value('Delete Group')->uiType('danger')->submit()->id('dmanage')->name('dmanage')->show(); ?> </a> <br/><br/> </div> <?php $innercol2->close(); ?>