Пример #1
0
function invoiceShow($d, $o = array())
{
    $r = getRenderer();
    if ($d->invoice->getData('type') == 'dated') {
        $invoice_date = $d->invoice->getEndDate();
    } else {
        $invoice_date = $d->invoice->getDate();
    }
    $invoice_period = $d->invoice->getStartDate() . " through " . $d->invoice->getEndDate();
    $banner = array('Invoice Date' => $invoice_date, 'Invoice Number' => "#" . $d->invoice->getData('id'));
    $client = $d->company->getDisplayName();
    $billing_contact_emails = $d->company->getBillingEmailAddress();
    $additional_recipients = $d->invoice->getAdditionalRecipients();
    $send_button = UI::button(array('controller' => 'Invoice', 'action' => 'email', 'id' => $d->invoice->getData('id')));
    if ($d->invoice->getData('type') == 'dated') {
        $items = array('Items for Period' => $invoice_period, 'Previous Balance' => "\$ " . number_format($d->invoice->getPreviousBalance(), 2), 'New Payments in Period' => "\$ " . number_format($d->invoice->getNewPaymentsTotal(), 2), 'New Charges in Period' => "\$ " . number_format($d->invoice->getNewCosts(), 2), 'Total Due' => "\$ " . number_format($d->invoice->getAmountDue(), 2), 'Net 30 Terms' => ' ');
    } else {
        $items = array('Total Due' => "\$ " . number_format($d->invoice->getAmountDue(), 2), 'Net 30 Terms' => ' ');
    }
    $summary = '
    <div id="banner">' . $r->view('basicList', $banner) . '</div>
    <h2 id="invoice-client">' . $client . '</h2>
    <div id="billing-contact">Billing Contact Email: ' . $billing_contact_emails . $additional_recipients . '<br>
    </div>
    <div id="billing-send-invoice">' . $send_button . '</div>
    <div id="invoice-summary">';
    if ($d->invoice->getData('details')) {
        $summary .= '<div id="details"><strong>Details</strong>: ' . nl2br($d->invoice->getData('details')) . '</div>';
    }
    $summary .= $r->view('basicList', $items) . '
    </div>';
    $history = $r->view('companyLineItems', array('company' => $d->company, 'months' => Util::month_range($d->invoice->getStartDate(), $d->invoice->getEndDate())));
    return array('template' => 'invoice', 'title' => 'Show Invoice', 'body' => $summary, 'history' => $history);
}
Пример #2
0
function hourTable($hours, $o = array())
{
    $r = getRenderer();
    $table['headers'] = array('Date', 'Client', 'Description', 'Staff', 'Hours', 'Billable', 'Type', 'Edit', 'Delete');
    $table['rows'] = array();
    $total_hours = 0;
    $billable_hours = 0;
    $hours_to_skip = array();
    foreach ($hours as $h) {
        if (!empty($hours_to_skip[$h->id])) {
            continue;
        }
        $total_hours += $h->getHours();
        $billable_hours += $h->getBillableHours();
        if ($h->is_project_hour()) {
            $description = UI::link(array('controller' => 'Hour', 'action' => 'show', 'id' => $h->id, 'text' => $h->getName()));
            $edit_button = UI::button(array('controller' => 'Hour', 'action' => 'show', 'id' => $h->id));
        } else {
            $description = UI::link(array('controller' => 'SupportHour', 'action' => 'show', 'id' => $h->id, 'text' => $h->getName()));
            $edit_button = UI::button(array('controller' => 'SupportHour', 'action' => 'show', 'id' => $h->id));
        }
        $company_link = UI::link(array('text' => $h->getCompanyName(), 'controller' => 'Company', 'action' => 'show', 'id' => $h->getCompany()->id));
        $name = $h->getStaffName();
        if ($h->getPairName()) {
            $name . ' and ' . $h->getPairName();
        }
        $logged = $h->getHours();
        $billable = $h->getBillableHours();
        $type = $h->getType();
        if ($h->is_pair()) {
            $name = $h->getPairName();
            $logged = $logged * 2;
            $billable = $billable * 2;
            $hours_to_skip[$h->get('pair_hour_id')] = true;
        }
        $table['rows'][] = array($h->getData('date'), $company_link, $description, $name, $logged, $billable, $type, $edit_button, UI::button(array('controller' => 'Hour', 'action' => 'destroy', 'id' => $h->id)));
    }
    $o['title'] = 'Hours';
    $o['id'] = 'hour-table';
    $o['pager'] = true;
    $hours_table = $r->view('basicTable', $table, $o);
    $totals = '
    <div class="bs-docs-example" id="Hours">
    <div class="hours-month">
    Total Project Hours: <span class="unbillable">' . $total_hours . '</span>
    </div>
    <div class="hours-week">
    Billable Project Hours: <span class="billable">' . $billable_hours . '</span>
    </div>
    <div class="clear-both"></div></div>
    ';
    return $totals . $hours_table;
}
Пример #3
0
function staffTable($staffers, $o = array())
{
    $r = getRenderer();
    $staff_table = array('current' => array('headers' => array('Name', 'Team', 'Email', 'Edit'), 'rows' => array()), 'former' => array('headers' => array('Name', 'Team', 'Email', 'Edit'), 'rows' => array()));
    foreach ($staffers as $s) {
        $rows_var = 'current';
        if ($s->getData('active') == 0) {
            $rows_var = 'former';
        }
        $staff_table[$rows_var]['rows'][] = array($r->link('Staff', array('action' => 'show', 'id' => $s->id), $s->getName()), $s->getData('team'), '<a href="mailto:' . $s->getData('email') . '">' . $s->getData('email') . '</a>', UI::button(array('controller' => 'Staff', 'action' => 'edit', 'id' => $s->getData('id'))));
    }
    $html = $r->view('basicTable', $staff_table['current'], array('title' => 'Staff', 'pager' => true), $o);
    $html .= $r->view('basicTable', $staff_table['former'], array('title' => 'Former Staff', 'pager' => true), $o);
    return $html;
}
Пример #4
0
function paymentTable($payments, $o = array())
{
    $r = getRenderer();
    $table = array();
    $table['headers'] = array('Date', 'Invoice ID', 'Client', 'Amount', 'Type', 'Edit', 'Delete');
    $table['rows'] = array();
    $total_payments = 0;
    $r = getRenderer();
    foreach ($payments as $p) {
        $total_payments += $p->getAmount();
        $table['rows'][] = array(UI::link(array('controller' => 'Payment', 'action' => 'show', 'id' => $p->id, 'text' => $p->getData('date'))), UI::link(array('text' => $p->getInvoiceId(), 'controller' => 'Invoice', 'action' => 'show', 'id' => $p->getInvoiceId())), UI::link(array('controller' => 'Company', 'action' => 'show', 'id' => $p->getCompany()->id, 'text' => $p->getCompanyName())), '$ ' . number_format($p->getAmount(), 2), $p->getType(), $p->getPurpose(), UI::button(array('controller' => 'Payment', 'action' => 'show', 'id' => $p->id)), UI::button(array('controller' => 'Payment', 'action' => 'destroy', 'id' => $p->id)));
    }
    $payment_table = $r->view('basicTable', $table, array_merge(array('title' => 'Payments', 'pager' => true), $o));
    $total_payments = $r->view('basicMessage', 'Total payments: $ ' . number_format($total_payments, 2));
    return '<div id="payments-table">' . $total_payments . $payment_table . '</div>';
}
Пример #5
0
function chargeTable($charges, $o = array())
{
    $r = getRenderer();
    $table = array();
    $table['headers'] = array('Date', 'Name', 'Type', 'Company', 'Amount', 'Edit', 'Delete');
    $table['rows'] = array();
    $total_charges = 0;
    foreach ($charges as $m) {
        $total_charges += $m->getData('amount');
        $company = $m->getCompany();
        $edit_button = UI::button(array('controller' => 'Charge', 'action' => 'edit', 'id' => $m->id));
        $delete_button = UI::button(array('controller' => 'Charge', 'action' => 'destroy', 'id' => $m->id));
        $table['rows'][] = array($m->get('date'), $m->getName(), $m->getType(), $r->link('Company', array('action' => 'show', 'id' => $company->id), $company->getName()), '$ ' . number_format($m->get('amount'), 2), $edit_button, $delete_button);
    }
    $charges_table = $r->view('basicTable', $table, array_merge(array('title' => 'Charges', 'id' => 'charges-table', 'pager' => true), $o));
    $total = $r->view('basicMessage', 'Total charges: $ ' . number_format($total_charges, 2));
    return $total . $charges_table;
}
Пример #6
0
/**
  contactTable
  
  View that displays a list of all Contacts
   
   $get options array:
  -<b>contact_id</b> id of the contact that we want to see details for
        
  @return html
  @package controller
*/
function contactTable($contacts, $o = array())
{
    if (!$contacts) {
        return '';
    }
    $r = getRenderer();
    $table = array();
    $table['headers'] = array('Name', 'Client', 'Email', 'Type', 'Edit', 'Delete');
    $table['rows'] = array();
    foreach ($contacts as $contact) {
        $company = $contact->getCompany();
        $edit_button = UI::button(array('controller' => 'Contact', 'action' => 'show', 'id' => $contact->id));
        $delete_button = UI::button(array('controller' => 'Contact', 'action' => 'destroy', 'id' => $contact->id));
        $table['rows'][] = array($r->link('Contact', array('action' => 'show', 'id' => $contact->id), $contact->getName()), $r->link('Company', array('action' => 'show', 'id' => $company->id), $company->getName()), '<a href="' . $contact->getData('email') . '"/>' . $contact->getData('email') . '</a>', $contact->getContactType(), $edit_button, $delete_button);
    }
    $html = $r->view('basicTable', $table, array('title' => 'Contacts', 'pager' => true));
    return $html;
}
Пример #7
0
/**
  noteTable  
  
  View that displays a list of all Notes 
        
  @return html
  @package controller
*/
function noteTable($notes, $o = array())
{
    if (!$notes) {
        return '';
    }
    $r = getRenderer();
    $table = array();
    $table['headers'] = array('Date', 'Name', 'Details', 'Company', 'Staff', 'Edit', 'Delete');
    $table['rows'] = array();
    foreach ($notes as $note) {
        $company = $note->getCompany();
        $edit_button = UI::button(array('controller' => 'Note', 'action' => 'show', 'id' => $note->id));
        $delete_button = UI::button(array('controller' => 'Note', 'action' => 'destroy', 'id' => $note->id));
        $table['rows'][] = array($note->getData('date'), $r->link('Note', array('action' => 'show', 'id' => $note->id), $note->getName()), $r->link('Note', array('action' => 'show', 'id' => $note->id), $note->getDescription()), $r->link('Company', array('action' => 'show', 'id' => $company->id), $company->getName()), $note->getStaff()->getName(), $edit_button, $delete_button);
    }
    $html = $r->view('basicTable', $table, array('title' => 'Notes  <a class="btn ui-state-default ui-corner-all"><span class="ui-icon ui-icon-triangle-1-s"></span></a>', 'id' => 'note-table', 'pager' => true));
    return $html;
}
Пример #8
0
function invoiceTable($invoices, $o = array())
{
    $r = getRenderer();
    // CREATE SEARCH FORM
    $search_form = '';
    $table = array();
    $table['headers'] = array('ID', 'Add', 'Client', 'Start Date', 'End Date', 'Batch', 'Send', 'Sent Date', 'Amount', 'Status', 'Edit', 'Delete');
    $table['rows'] = array();
    $total_invoices = 0;
    foreach ($invoices as $i) {
        $total_invoices += $i->getAmountDue();
        $url = $i->getData('url');
        $c = $i->getCompany();
        if ($batch = $i->getBatch()) {
            $batch_link = $r->link('InvoiceBatch', array('action' => 'show', 'id' => $batch->id), $batch->getName());
        } else {
            $batch_link = '';
        }
        if ($i->getData('type') == 'dated') {
            $invoice_date = $i->getData('start_date');
        } else {
            $invoice_date = $i->getData('date');
        }
        if ($batch = $i->getStatus()) {
            $status = $i->getStatus();
        } else {
            $status = $i->getData('payment_status');
        }
        $edit_button = UI::button(array('controller' => 'Invoice', 'action' => 'edit', 'id' => $i->id));
        $delete_button = UI::button(array('controller' => 'Invoice', 'action' => 'destroy', 'id' => $i->id));
        $email_button = UI::button(array('controller' => 'Invoice', 'action' => 'email', 'id' => $i->id));
        $table['rows'][] = array($i->id, "<input class=\"check-row\" type=\"checkbox\" id=\"row-" . $i->id . "\" name=\"table-rows[" . $i->id . "]\" value=\"" . $i->id . "\">", $r->link('Invoice', array('action' => 'show', 'id' => $i->id), $c->getName()), $r->link('Invoice', array('action' => 'show', 'id' => $i->id), $invoice_date), $i->getData('end_date'), $batch_link, $email_button, "<a href='{$url}' target='_blank'>" . $i->getData('sent_date') . "</a>", "<span>\$</span>" . $i->getAmountDue(), $status, $edit_button, $delete_button);
    }
    $total_invoices = $r->view('basicMessage', '<br>Total Invoices: $ ' . number_format($total_invoices, 2));
    $bulk_email_btn = '<input type="submit" value="Send Bulk Email" class="btn" style="display:inline; margin-left: 10px;" /> ';
    $select_all_box = '<input class="check-all" name="check-all" type="checkbox"/> Select All ' . $bulk_email_btn . '<br />';
    $table = $r->view('basicTable', $table, array('title' => 'Invoices', 'search' => $select_all_box . $search_form, 'pager' => true));
    $form = new Form(array('controller' => 'Invoice', 'action' => 'batch_email', 'disable_submit_btn' => true));
    $form->content = $table;
    return $total_invoices . $form->html;
}
Пример #9
0
									<td>
										
										<?php 
        echo $data_array[$sno][2] . " " . $data_array[$sno][3] . " " . $data_array[$sno][4] . " (" . $data_array[$sno][1] . " )";
        ?>
									</td>
									<td>
											<?php 
        echo $data_array[$sno][5];
        ?>
									</td>
									<td>
										&nbsp;&nbsp;&nbsp;
											<center>	
										<?php 
        $ui->button()->icon($ui->icon("plus"))->value('ADD')->id('submit' . $sno)->uiType('primary')->name('submit_track')->show();
        ?>
										</center>
													 
									</td>
							</tr>
										
<?php 
        $sno++;
    }
    $table->close();
}
$box->close();
$innercol2->close();
$column2->close();
$outer_row->close();
Пример #10
0
								<td rowspan=2 style="vertical-align:middle" ><b>Edit/Delete</b></td>
	                    	</tr>
	                    	<tr align="center">
	                        	<td style="vertical-align:middle" ><b>From</b></td>
	                        	<td style="vertical-align:middle" ><b>To</b></td>
	                    	</tr></thead><tbody>';
    $i = 1;
    foreach ($details as $row) {
        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">
Пример #11
0
    echo ucwords($user_other_details->hobbies);
    $col2->close();
    $col3 = $ui->col()->width(3)->open();
    echo "<label>Favourite Pass Time</label>";
    $col3->close();
    $col4 = $ui->col()->width(3)->open();
    echo ucwords($user_other_details->fav_past_time);
    $col4->close();
    $stuRowHobbies->close();
    $stuRowExtraActivity = $ui->row()->open();
    $col1 = $ui->col()->width(3)->open();
    echo "<label>Extra-Curricular Activities</label>";
    $col1->close();
    $col2 = $ui->col()->width(3)->open();
    echo ucwords($stu_other_details->extra_curricular_activity);
    $col2->close();
    $col3 = $ui->col()->width(3)->open();
    echo "<label>Any Other Relevant Information</label>";
    $col3->close();
    $col4 = $ui->col()->width(3)->open();
    echo ucwords($stu_other_details->other_relevant_info);
    $col4->close();
    $stuRowExtraActivity->close();
    $boxotherdetail->close();
    echo '<center>';
    $ui->button()->uiType('primary')->id('print_btn')->value('PRINT')->show();
    echo '</center>';
} else {
    echo '<center><h2>Student Basic Details</h2>';
    $this->notification->drawNotification("Not Found", "Your details have not been updated. Please check after some time.", "error");
}
Пример #12
0
			<div class="actions col-xs-1 text-right">
				<div class="btn-group">
					<?php 
        if (Acl::check('page.add')) {
            ?>
					<?php 
            echo UI::button(NULL, array('href' => Route::get('backend')->uri(array('controller' => 'page', 'action' => 'add', 'id' => $child->id)), 'icon' => UI::icon('plus'), 'class' => 'btn-default btn-xs'));
            ?>
					<?php 
        }
        ?>
					<?php 
        if (Acl::check('page.delete')) {
            ?>
					<?php 
            echo UI::button(NULL, array('href' => Route::get('backend')->uri(array('controller' => 'page', 'action' => 'delete', 'id' => $child->id)), 'icon' => UI::icon('times fa-inverse'), 'class' => 'btn-xs btn-confirm btn-danger'));
            ?>
					<?php 
        }
        ?>
				</div>
			</div>
			
			<div class="clearfix"></div>
		</div>
		
		<?php 
        if ($child->is_expanded) {
            echo $child->children_rows;
        }
        ?>
              	  <td><?php 
    echo $row->total_current_fy;
    ?>
</td>
              </tr>

            <?php 
    $i++;
}
$table->close();
$E_box->close();
$form = $ui->form()->action('consultant/consultant_disbursement_sheet/disbursement_cancel/' . $disbursement->sr_no)->open();
?>
<center>
		<?php 
$ui->button()->value('Cancel')->uiType('danger')->submit()->name('mysubmit')->show();
?>
	</center><?php 
$form->close();
$box->close();
$column2->close();
$column3 = $ui->col()->width(1)->open();
$column3->close();
$inputRow1->close();
?>
<script>
function myFunction2(sr_no,auth_id) {
	
        $.ajax({
                url : site_url("consultant/consultant_ajax/view_modal/" + sr_no+ "/" +auth_id),
                success : function(result){
			                <?php 
}
$table->close();
$col1->close();
$row1->close();
/****************************************************************/
$E_box->close();
$t5->close();
$tabBox1->close();
$tabRow1->close();
$row11 = $ui->row()->open();
$col1 = $ui->col()->width(6)->open();
?>
<center>
<?php 
$ui->button()->value('Re Apply')->uiType('primary')->submit()->name('mysubmit')->show();
?>
</center>
<?php 
$form->close();
$col1->close();
$col2 = $ui->col()->width(6)->open();
$form1 = $ui->form()->action('consultant/consultant_disbursement_sheet/disbursement_cancel/' . $sr_no)->open();
?>
<center>
		<?php 
$ui->button()->value('Cancel')->uiType('danger')->submit()->name('mysubmit')->show();
?>
	</center><?php 
$form1->close();
$col2->close();
echo ' (' . date('d M Y g:i a', strtotime($action_recent->timestamp) + 19800) . ') </span>';
$col1->close();
$innerrow1 = $ui->col()->noPrint()->width(6)->open();
$button_msg = '';
if ($auth_id == 'hod') {
    $button_msg = 'Forward to PCE';
} else {
    if ($auth_id == 'pce') {
        $button_msg = 'Forward to Director';
    }
}
$col1 = $ui->col()->width(12)->open();
?>
<br/><center>
          <?php 
$ui->button()->icon($ui->icon('check'))->name('action_taken')->id('action_taken')->value('Approve')->uiType('success')->show();
?>
          </center>
          <center>
          <?php 
$ui->button()->icon($ui->icon('check'))->name('action_taken')->id('action_taken6')->value($button_msg)->uiType('success')->show();
?>
          </center><br/><?php 
$col1->close();
$col1 = $ui->col()->id('approve_col')->width(12)->open();
?>
<center>
          <?php 
$ui->textarea()->label('Remark')->id('remark_text1')->name('remark_text1')->placeholder('Not more than 200 character')->value('')->show();
$ui->button()->icon($ui->icon('check'))->type('submit')->name('action_taken')->id('action_taken3')->value('Are You Sure To Approve')->uiType('success')->show();
?>
Пример #16
0
                  
                  
                  
        <?php 
    if ($member->position != 'ci') {
        ?>
<td>
                    <?php 
        $innercol1 = $ui->col()->width(12)->open();
        $ui->input()->type('text')->name('share')->id("share")->value($member->share)->disabled()->width(12)->show();
        $innercol1->close();
        ?>
</td><?php 
        echo '<td>';
        $btn_string = 'onclick=' . '"clickEvent(\'' . $member->emp_no . '\')"';
        $ui->button()->icon($ui->icon("remove"))->id('remove')->extras($btn_string)->width(4)->uiType('danger')->name('remove')->value('Remove')->show();
        echo '</td>';
    } else {
        ?>
<td>
                    <?php 
        $innercol1 = $ui->col()->width(12)->open();
        $ui->input()->type('text')->name('share1')->id("share1")->value($member->share)->width(12)->show();
        $innercol1->close();
        ?>
</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>';
    }
Пример #17
0
    } 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>';
$js = 'onclick="javascript:document.getElementById(\'filebox\').style.display=\'block\';"';
$coll->close();
$colll = $ui->col()->width(4)->open();
$ui->button()->value('Change File')->uiType('primary')->extras($js)->show();
$colll->close();
$inputRow4->close();
$inputRow5 = $ui->row()->id('filebox')->extras('style="display:none"')->open();
$ui->input()->label('Notice File<span style= "color:red;"> *</span>')->type('file')->id('notice_path')->name('notice_path')->width(6)->show();
echo "<br/>(Allowed Types: pdf, doc, docx, jpg, jpeg, png and Max Size: 1.0 MB)";
$inputRow5->close();
$ui->input()->type('hidden')->name('notice_id')->value($notice_row->notice_id)->show();
$ui->input()->type('hidden')->name('modification_value')->value($notice_row->modification_value)->show();
?>
<center>
<?php 
$ui->button()->value('Update Notice')->uiType('primary')->submit()->name('mysubmit')->show();
$form->close();
$box->close();
$column2->close();
Пример #18
0
$freeCol = $ui->col()->width(4)->t_width(8)->m_width(12)->open();
$freeCol->close();
$fromRow->close();
$toRow = $ui->row()->id('toRow')->open();
$tolabel = $ui->col()->width(4)->t_width(8)->m_width(12)->open();
echo 'To Time';
$tolabel->close();
$toinput = $ui->col()->width(2)->t_width(4)->m_width(6)->open();
$ui->select()->name('hours_to')->id('hours_to')->addonLeft($ui->icon("clock-o"))->options(array($ui->option()->value('')->text('Hours')->disabled()->selected(), $ui->option()->value(0)->text(0), $ui->option()->value(1)->text(1), $ui->option()->value(2)->text(2), $ui->option()->value(3)->text(3), $ui->option()->value(4)->text(4), $ui->option()->value(5)->text(5), $ui->option()->value(6)->text(6), $ui->option()->value(7)->text(7), $ui->option()->value(8)->text(8), $ui->option()->value(9)->text(9), $ui->option()->value(10)->text(10), $ui->option()->value(11)->text(11), $ui->option()->value(12)->text(12), $ui->option()->value(13)->text(13), $ui->option()->value(14)->text(14), $ui->option()->value(15)->text(15), $ui->option()->value(16)->text(16), $ui->option()->value(17)->text(17), $ui->option()->value(18)->text(18), $ui->option()->value(19)->text(19), $ui->option()->value(20)->text(20), $ui->option()->value(21)->text(21), $ui->option()->value(22)->text(22), $ui->option()->value(23)->text(23)))->required()->show();
$toinput->close();
$toMinCol = $ui->col()->width(2)->t_width(4)->m_width(6)->open();
$ui->select()->name('minutes_to')->id('minutes_to')->options(array($ui->option()->value('')->text('Minutes')->disabled()->selected(), $ui->option()->value(0.0)->text(00), $ui->option()->value(0.5)->text(30)))->required()->show();
$toMinCol->close();
$freeCol = $ui->col()->width(4)->t_width(8)->m_width(12)->open();
$freeCol->close();
$toRow->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('Get Available Guards')->uiType('primary')->name('get_guards')->id('get_guards')->show();
$bbuttonCol->close();
$cbuttonCol = $ui->col()->width(5)->t_width(2)->m_width(2)->open();
$cbuttonCol->close();
$buttonRow->close();
echo '<div id="guard-div">
	</div>';
$form->close();
$headingBox->close();
?>
</center>
Пример #19
0
          ->uiType("warning")
          ->open();
</pre><?php 
$box->close();
$col->close();
$boxTypesRow->close();
$loadingBoxRow = $ui->row()->open();
$col = $ui->col()->width(4)->open();
$box = $ui->box()->id("loadingBoxExample")->title("Awesome data loading inside")->open();
?>
<p>
            This box is in a loading state. Something is going to happen inside - stay tuned. This box is in a loading state. Something is going to happen inside - stay tuned. This box is in a loading state. Something is going to happen inside - stay tuned. This box is in a loading state. Something is going to happen inside - stay tuned. This box is in a loading state. Something is going to happen inside - stay tuned. This box is in a loading state. Something is going to happen inside - stay tuned.
			</p>
			<hr />
			<?php 
$ui->button()->value("Do something")->uiType("primary")->icon($ui->icon("check"))->show();
echo " ";
$ui->button()->value("Don't do it")->icon($ui->icon("remove"))->uiType("danger")->show();
$box->close();
?>
	<script type="text/javascript">
		/*
		 * This is just an example. DO NOT place your scripts here. Place it in a .js file and link it through the controller.
		 */
		$(document).ready(function() {
			/*
			 * This example shows and hides loading. Normally, you'd do this when you're loading something asynchronously (via AJAX).
			 * For a more concrete example, see the /assets/js/ui_example/user-loader.js
			 */
			 var isLoading = false;
			 var $loadingBox = $("#loadingBoxExample"); // Selecting the box element
Пример #20
0
$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();
$innerColumn4->close();
$inputRow1->close();
$row2 = $ui->col()->id('pub_type')->width(12)->open();
$row2->close();
$row3 = $ui->row()->open();
?>
<center><?php 
$ui->button()->name('Submit')->value('Submit')->submit(true)->uiType('primary')->show();
?>
</center><?php 
$row3->close();
$form->close();
$box->close();
$row->close();
$column1->close();
$outRow->close();
?>
<script charset="utf-8">
	$("#publication_type").on('change', function() {
		get_publication_type(this.value);
		if (this.value == 1 || this.value == 2)
		{
			$('#date_picker_one').show();
Пример #21
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();
?>
		 
Пример #22
0
								<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>
										<td align="center">' . $post->number_c . '</td>
										<td align="center">' . $total . '</td>
										<td align="center" class="print-no-display">
										<a href="' . base_url() . 'index.php/guard/manage_post/edit/' . $post->post_id . '" onclick="return confirm(\'Are you sure you want to edit?\')">';
        $ui->button()->uiType('primary')->icon($ui->icon('edit'))->mini()->value('Edit')->show();
        echo '</a>
										</td>
										<td align="center" class="print-no-display">
										<a href="' . base_url() . 'index.php/guard/manage_post/remove/' . $post->post_id . '" onclick="return confirm(\'Are you sure you want to remove?\')">';
        $ui->button()->uiType('danger')->icon($ui->icon('remove'))->mini()->value('Remove')->show();
        echo '</a>
										</td>
									</tr>';
    }
    $table->close();
}
$tab1->close();
$tab1 = $ui->tabPane()->id("archived")->open();
if (count($details_of_posts_archive) == 0) {
    $box = $ui->callout()->title("Empty List")->desc("There is no post in the archived list.")->uiType("info")->show();
Пример #23
0
    $ui->input()->label('City')->name('city3')->show();
    $ui->input()->label('State')->name('state3')->show();
    $ui->input()->label('Pincode')->name('pincode3')->id('pincode3')->show();
    $ui->input()->label('Country')->name('country3')->value('India')->show();
    $ui->input()->label('Contact No.')->name('contact3')->id('contact3')->show();
}
$correspondence_address_details_box->close();
$corr_address_col_2->close();
$address_details_row_3->close();
?>
</div><?php 
$student_address_details_box->close();
$student_details_row_2 = $ui->row()->open();
$student_details_2_1 = $ui->col()->width(5)->open();
$student_details_2_1->close();
$ui->button()->submit(true)->value('Submit')->uiType('primary')->id('submit_button_id')->width(2)->show();
$student_details_row_2->close();
$student_details_row_3 = $ui->row()->open();
$student_details_3_1 = $ui->col()->width(11)->open();
$student_details_3_1->close();
?>
<a href= <?php 
echo site_url('student/student_edit');
?>
 ><?php 
$ui->button()->value('Back')->uiType('primary')->width(1)->show();
?>
</a><?php 
$student_details_row_3->close();
$student_details_row->close();
$form->close();
Пример #24
0
    foreach ($sections as $type => $title) {
        ?>
				<li>
					<?php 
        echo HTML::anchor(Datasource_Section::uri('create', $type), $title, array('data-icon' => Datasource_Data_Manager::get_icon($datasource->type())));
        ?>
				</li>
			<?php 
    }
    ?>
			</ul>
		</div>
		
		<br /><br />
		<?php 
    echo UI::button(__('Create folder'), array('href' => '#', 'class' => 'btn-default btn-xs create-folder-button'));
    ?>
	</div>
	<?php 
}
?>
	
	<?php 
if (!empty($folders)) {
    ?>
	<div class="folders-list">
	<?php 
    foreach ($folders as $folder_id => $folder) {
        ?>
		<div class="folder-container">
			<div class="mail-nav-header" data-type="folder" data-icon="folder-open-o" data-id="<?php 
Пример #25
0
			<?php 
if ($document->has_access_change()) {
    ?>
			<div class="input-group-btn">
				<?php 
    if (!empty($value['id'])) {
        ?>
				<?php 
        echo UI::button(__('View'), array('href' => Route::get('datasources')->uri(array('directory' => 'hybrid', 'controller' => 'document', 'action' => 'view')) . URL::query(array('ds_id' => $field->from_ds, 'id' => $value['id']), FALSE), 'icon' => UI::icon('building'), 'class' => 'btn-default popup fancybox.iframe', 'data-target' => $field->name));
        ?>
				<?php 
    }
    ?>

				<?php 
    echo UI::button(__('Create new'), array('href' => Route::get('datasources')->uri(array('directory' => 'hybrid', 'controller' => 'document', 'action' => 'create')) . URL::query(array('ds_id' => $field->from_ds), FALSE), 'icon' => UI::icon('building'), 'class' => 'btn-default popup fancybox.iframe', 'data-target' => $field->name));
    ?>
			</div>
			<?php 
}
?>
		</div>
	</div>

	<?php 
if ($field->hint) {
    ?>
	<p class="help-block"><?php 
    echo $field->hint;
    ?>
</p>
Пример #26
0
						<tr>
							<th  width="50%">Pre-Placement Talk</th>
							<td>' . ($row->ppt_room == 0 ? "NO" : "YES") . '</td>
						</tr>
						<tr>
							<th>Computer Required</th>
							<td>' . ($row->laptop == 0 ? "NO" : "YES") . '</td>
						</tr>
						<tr>
							<th>Projector Required</th>
							<td>' . ($row->projector == 0 ? "NO" : "YES") . '</td>
						</tr>
						<tr>
							<th>Printer Required</th>
							<td>' . ($row->printer == 0 ? "NO" : "YES") . '</td>
						</tr>
						<tr>
							<th>Number of Rooms Required</th>
							<td>' . ($row->interview_room == 0 ? "NO" : "YES") . '</td>
						</tr>
						<tr>
							<th>Any Other Requirement</th>
							<td>' . ($row->any_other == 0 ? "NO" : $row->any_other) . '</td>
						</tr>
					</thead>';
}
$table->close();
$box_basic_details->close();
$ui->button()->value('Print')->uiType('primary')->id("btnprint")->icon($ui->icon("print"))->name('btnprint')->show();
$column1->close();
$outer_row->close();
Пример #27
0
$innercol1 = $ui->col()->width(12)->open();
$ui->input()->type('hidden')->name('total_emp')->id('total_emp')->value($i)->width(12)->show();
$innercol1->close();
$innerRow11 = $ui->row()->open();
print_r('   ');
$innerRow11->close();
//$D1_box->close();
/**********************************************************/
$t4->close();
$tabBox1->close();
$innercol2->close();
$tabRow1->close();
?>
<center>
<?php 
$ui->button()->value(' submit ')->uiType('primary')->submit()->name('mysubmit')->show();
?>
</center>
<?php 
$form->close();
$box->close();
$column2->close();
$column3 = $ui->col()->width(1)->open();
$column3->close();
$inputRow1->close();
?>
<script type="text/javascript">

function myFunction2(sr_no,auth_id) {
	
        $.ajax({
Пример #28
0
<?php

$ui = new UI();
$view_row = $ui->row()->open();
$col = $ui->col()->width(6)->t_width(6)->open();
$view_box = $ui->box()->uiType('primary')->title('Choose Employee to View')->open();
$form = $ui->form()->action('employee/view/view_form')->open();
$options = array();
if ($employees) {
    foreach ($employees as $row) {
        array_push($options, $ui->option()->value($row->id)->text($row->id));
    }
} else {
    array_push($options, $ui->option()->value("")->text("No Employees")->disabled());
}
$ui->select()->label('Employee Id')->name('emp_id')->id('emp_id')->options($options)->addonRight($ui->button()->id('search_btn')->value('Search')->uiType('primary')->icon($ui->icon('search')))->show();
$ui->button()->value('Submit')->uiType('primary')->submit()->name('submit')->show();
$form->close();
$view_box->close();
$col->close();
$col = $ui->col()->width(6)->t_width(6)->open();
echo '<div id="search_eid" style="display:none">';
$sel_box = $ui->box()->title('Search by Department')->open();
$options = array($ui->option()->text('Select Employee Department')->disabled()->selected());
if ($departments) {
    foreach ($departments as $row) {
        array_push($options, $ui->option()->value($row->id)->text($row->name));
    }
} else {
    array_push($options, $ui->option()->value("")->text("No Departments")->disabled());
}
Пример #29
0
$ui = new UI();
switch ($form) {
    case 2:
        if ($emp_prev_exp_details) {
            $form = $ui->form()->id('edit_prev_emp_details')->action('employee/edit/update_old_prev_emp_details/' . $sno)->extras('onSubmit="return onclick_save(' . $sno . ');"')->open();
            $row = $ui->row()->open();
            $col = $ui->col()->open();
            $box = $ui->box()->uiType('primary')->style('margin-bottom:0')->open();
            $ui->textarea()->label('Full address of Employer')->name('edit_addr' . $sno)->id('edit_addr' . $sno)->value($emp_prev_exp_details->address)->show();
            $ui->input()->label('Position Held')->name('edit_designation' . $sno)->id('edit_designation' . $sno)->value($emp_prev_exp_details->designation)->show();
            $ui->datePicker()->name('edit_from' . $sno)->id('edit_from' . $sno)->dateFormat('dd-mm-yyyy')->addonRight($ui->icon("calendar"))->label('From')->extras('max="' . date('d-m-Y', strtotime($joining_date)) . '"')->value(date('d-m-Y', strtotime($emp_prev_exp_details->from)))->show();
            $ui->datePicker()->name('edit_to' . $sno)->id('edit_to' . $sno)->dateFormat('dd-mm-yyyy')->addonRight($ui->icon("calendar"))->label('To')->extras('max="' . date('d-m-Y', strtotime($joining_date)) . '"')->value(date('d-m-Y', strtotime($emp_prev_exp_details->to)))->show();
            $ui->input()->name("edit_payscale" . $sno)->id("edit_payscale" . $sno)->label('Pay Scale')->value($emp_prev_exp_details->pay_scale)->show();
            $ui->input()->name('edit_reason' . $sno)->id('edit_reason' . $sno)->value($emp_prev_exp_details->remarks)->label('Remarks')->show();
            echo '<center>';
            $ui->button()->uiType('primary')->flat()->submit()->name('save')->value('Save')->icon($ui->icon('floppy-o'))->show();
            $ui->button()->uiType('danger')->flat()->name('cancel')->value('Cancel')->extras('onClick="closeframe();"')->icon($ui->icon('times'))->show();
            echo '</center>';
            $box->close();
            $col->close();
            $row->close();
            $form->close();
        }
        break;
    case 3:
        if ($emp_family_details) {
            $form = $ui->form()->id('edit_emp_family_details')->multipart()->action('employee/edit/update_old_fam_details/' . $sno)->extras('onSubmit="return onclick_save(' . $sno . ');"')->open();
            $row = $ui->row()->open();
            $col = $ui->col()->open();
            $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();
Пример #30
0
    $ui->input()->label('Circular ID<span style= "color:red;"> *</span>')->type('text')->name('circular_ids')->required()->value('1')->disabled()->width(6)->show();
} else {
    $ui->input()->type('text')->label('Circular ID<span style= "color:red;"> *</span>')->name('circular_ids')->required()->width(6)->value($id->circular_id + 1)->disabled()->show();
}
$ui->input()->type('text')->label('Circular Number<span style= "color:red;"> *</span>')->name('circular_no')->required()->width(6)->placeholder('Enter Circular Number  (Ex: CSE_CIRC_10185)')->show();
$inputRow1->close();
$inputRow2 = $ui->row()->open();
$ui->select()->label('Viewed By<span style= "color:red;"> *</span>')->name('circular_cat')->options(array($ui->option()->value('emp')->text('Employee')->selected(), $ui->option()->value('stu')->text('Student'), $ui->option()->value('all')->text('All')))->width(6)->show();
$ui->textarea()->label('Circular Subject<span style= "color:red;"> *</span>')->placeholder('Enter the circular Subject in not more than 200 characters')->name('circular_sub')->required()->width(8)->show();
$inputRow2->close();
$inputRow3 = $ui->row()->open();
$ui->input()->label('Circular File<span style= "color:red;"> *</span>')->type('file')->name('circular_path')->required()->width(6)->show();
$ui->datePicker()->name('valid_upto')->label('Last Date<span style= "color:red;"> *</span> (Atleast today)')->value(date("yy-mm-dd"))->dateFormat('yy-mm-dd')->width(6)->show();
$inputRow3->close();
echo "(Allowed Types: pdf, doc, docx, jpg, jpeg, png and Max Size: 1.0 MB)";
$value = 1;
if ($id->circular_id != NULL) {
    $value = $id->circular_id + 1;
}
$ui->input()->type('hidden')->name('circular_id')->required()->value($value)->show();
?>
<center>
<?php 
$ui->button()->value('Post Circular')->uiType('primary')->submit()->name('mysubmit')->show();
$form->close();
$box->close();
$column2->close();
$row->close();
?>
</center>