Ejemplo n.º 1
0
 public function fetch_headline_value($value, $document_id)
 {
     if (!empty($value)) {
         return UI::icon('tag fa-lg', array('style' => 'color: ' . $value));
     }
     return parent::fetch_headline_value($value, $document_id);
 }
Ejemplo n.º 2
0
 /**
  * 
  * @param string $icon_name
  * @return Bootstrap_Element_Button
  */
 public function icon($icon_name)
 {
     if (!empty($icon_name)) {
         $title = $this->get('title');
         $this->set('title', UI::icon($icon_name) . ' ' . $title);
     }
     return $this;
 }
 public function before()
 {
     $currentPage = Navigation::getCurrentPage();
     $this->breadcrumbs->add(\UI::icon('home'), route('backend.dashboard'));
     if (!is_null($currentPage)) {
         $this->setTitle($currentPage->getName(), $currentPage->getUrl());
     }
     \View::share('currentPage', $currentPage);
     parent::before();
 }
Ejemplo n.º 4
0
 /**
  * Loads the template [View] object.
  */
 public function before()
 {
     parent::before();
     if ($this->auto_render === TRUE) {
         if ($this->request->is_ajax() === TRUE) {
             // Load the template
             $this->template = View::factory('system/ajax');
         } else {
             $this->template = View::factory($this->template);
         }
         // Initialize empty values
         $this->template->title = NULL;
         $this->template->content = NULL;
         $this->breadcrumbs = Breadcrumbs::factory();
         $routes = Route::all();
         if (isset($routes['backend'])) {
             $this->breadcrumbs->add(UI::icon('home'), Route::get('backend')->uri());
         }
         $this->init_media();
     }
 }
Ejemplo n.º 5
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();
Ejemplo n.º 6
0
		<span class="panel-title" data-icon="bar-chart"><?php 
echo __('Profiler');
?>
</span>
		<div class="panel-heading-controls">
			<button type="button" class="btn btn-default btn-xs remove_widget"><?php 
echo UI::icon('times');
?>
</button>
		</div>
	</div>
	<div class="stat-panel">
		<div class="stat-row">
			<div class="stat-cell bg-dark-gray padding-sm text-xs text-semibold">
				<?php 
echo UI::icon('dot-circle-o');
?>
&nbsp;&nbsp;<?php 
echo __('Application Execution') . ' (' . $stats['count'] . ')';
?>
			</div>
		</div>
		<div class="stat-row">
			<div class="stat-counters">
				<?php 
foreach ($application_cols as $key) {
    ?>
				<div class="stat-cell bg-dark-gray padding-sm text-xs text-semibold">
					<?php 
    echo __(ucfirst($key));
    ?>
Ejemplo n.º 7
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;
        }
        ?>
Ejemplo n.º 8
0
<?php

$ui = new UI();
// This row will not be printed because of the noPrint() property
$topRow = $ui->row()->noPrint()->open();
$alertCol = $ui->col()->width(6)->open();
$ui->callout()->title("This is just a small example")->uiType("warning")->desc('This example shows only a handful of the UI options. ' . 'See the <a href="http://172.16.8.5/wiki/index.php/UI_Library">UI Library wiki</a> for a detailed list of options. ' . 'Help us build this page by adding more example codes.')->show();
$ui->alert()->title("Is this example working for you?")->uiType("info")->desc('If the example is not working for you, the error is probably because of php short tags (<code>&lt;?</code>). Instead of converting all short tags to <code>&lt;?php</code>, you can enable the <code>short_open_tag</code> property in the php.ini file. <a href="http://stackoverflow.com/q/2185320/1492578" target="_blank">Here\'s how!</a>')->show();
$alertCol->close();
$printCol = $ui->col()->width(6)->open();
$printBox = $ui->box()->icon($ui->icon("print"))->title("Print this page")->tooltip("Printing this page wouldn't print this row. How awesome is that!")->open();
?>
<p>Everything in the view will be printed by default. To ignore something that shouldn't be printed, use the <code>noPrint()</code> property on that <code>Element</code>.</p>
<pre>
$ui->someElem()
   ...
   ->noPrint()
</pre>
<p>To make a Print button, use <code>$ui->printButton()->show()</code>. All other properties of <code>Button</code>s are still valid on the print button. For instance, you can set its id, name, UI type or value.</p>

<?php 
$ui->printButton()->show();
$printBox->close();
$printCol->close();
$topRow->close();
?>
<h2 class="page-header">Different box types</h2><?php 
$boxTypesRow = $ui->row()->open();
$col = $ui->col()->width(4)->open();
$box = $ui->box()->title("Default Box")->open();
?>
Ejemplo n.º 9
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());
}
Ejemplo n.º 10
0
    if ($emp_validation_details->educational_status == 'pending') {
        $status4 = $pending_status;
    } else {
        if ($emp_validation_details->educational_status == 'rejected') {
            $status4 = $rejected_status;
        }
    }
    if ($emp_validation_details->stay_status == 'pending') {
        $status5 = $pending_status;
    } else {
        if ($emp_validation_details->stay_status == 'rejected') {
            $status5 = $rejected_status;
        }
    }
}
$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 {
$table->close();
$E_box->close();
$t5->close();
/************************************************************************************************/
$tabBox1->close();
$tabRow1->close();
$tabcol1->close();
$col1 = $ui->col()->width(12)->open();
echo '<span style="color:red"> Last Activity : ' . $action_recent->remark . ' (' . date('d M Y g:i a', strtotime($action_recent->timestamp) + 19800) . ') </span>';
$col1->close();
$innerRow1 = $ui->row()->open();
$col1 = $ui->col()->width(6)->open();
?>
<center><br/>
          <?php 
$ui->button()->icon($ui->icon('check'))->name('action_taken')->id('action_taken1')->value('Forward')->uiType('success')->extras('onclick=showapprove()')->show();
?>
          </center><br/><?php 
$col1->close();
$col2 = $ui->col()->width(6)->open();
?>
<center><br/>
          <?php 
$ui->button()->icon($ui->icon('check'))->name('action_taken')->id('action_taken2')->value('Reject')->uiType('danger')->extras('onclick=showreject()')->show();
?>
          </center><br/><?php 
$col2->close();
$innerRow1->close();
$innerRow2 = $ui->row()->open();
$col1 = $ui->col()->width(6)->open();
?>
Ejemplo n.º 12
0
        echo __($type);
        ?>
</span>
	</div>
	<div class="panel-body padding-sm">
		<?php 
        foreach ($_widgets as $id => $widget) {
            ?>
			<?php 
            if ($widget->code()->is_handler()) {
                continue;
            }
            ?>
		
			<?php 
            echo UI::button($widget->name, array('icon' => UI::icon('tag'), 'data-id' => $id, 'class' => 'popup-widget-item btn-default'));
            ?>
		<?php 
        }
        ?>
	</div>
	<?php 
    }
    ?>
	<?php 
} else {
    ?>
	<div class="panel-body">
		<h2><?php 
    echo __('All widgets set to page');
    ?>
Ejemplo n.º 13
0
<div class="panel dashboard-widget panel-body-colorful panel-info fullcalendar-widget">
	<button type="button" class="close remove_widget"><?php 
echo UI::icon('times');
?>
</button>
	<div id="calendar" class="panel-body" style="height: 100%"></div>
</div>
<link type="text/css" href="/cms/media/libs/fullcalendar-2.1.0/fullcalendar.min.css" rel="stylesheet" media="all" />
<script type="text/javascript" src="/cms/media/libs/fullcalendar-2.1.0/fullcalendar.min.js"></script>
<script type="text/javascript" src="/cms/media/libs/fullcalendar-2.1.0/lang/ru.js"></script>
<script type="text/javascript">
$('.fullcalendar-widget')
	.on('widget_init', function(e, w ,h) {
		$('#calendar').fullCalendar({
			header: {
				left: 'prev,next,today',
				center: 'title',
				right: 'month,agendaWeek,agendaDay'
			},
			contentHeight: h - 100,
			editable: true,
			eventRender: function(event, element) {
				var content = element.find('.fc-content');
				if (event.icon) {
					content.prepend("<i class='fa-icon fa fa-" + event.icon + "'></i>");
				}

				$("<span class='btn-close'><i class='fa fa-times'></i></span>")
					.appendTo(content)
					.on('click', function() {
						if(event.id)
Ejemplo n.º 14
0
<?php

$ui = new UI();
$outer_row = $ui->row()->open();
$column2 = $ui->col()->width(12)->open();
$tabBox1 = $ui->box()->uiType('primary')->solid()->icon($ui->icon("file"))->title("Minutes Posted By You")->open();
//$tab1 = $ui->tabPane()->id("current")->active()->open();
$table = $ui->table()->hover()->bordered()->sortable()->searchable()->paginated()->open();
?>
						<thead>
							<tr>							
								<th>Minutes Number</th>
								<th >Meeting Type</th>
								<th >Meeting Date</th>	
								<th >Meeting Type</th>						
								<th>Posted On/ Edited On</th>
								<th >Issued By</th>
								<th>Revision Status</th>
								<th >Links</th>
							</tr>
						</thead>
<?php 
foreach ($minutes as $key => $minute) {
    ?>
						<tr>
									
									<td align="center"><?php 
    echo $minute->minutes_no;
    ?>
</td>
									<td align="center"><?php 
Ejemplo n.º 15
0
<?php

$ui = new UI();
$outer_row = $ui->row()->open();
$column1 = $ui->col()->width()->open();
$column1->close();
$column2 = $ui->col()->width(12)->open();
$new_payment = $payment;
$data_row = $ui->row()->id('data_row')->open();
$data_row->close();
$column2->close();
$column2 = $ui->col()->width(12)->open();
$tabBox1 = $ui->box()->icon($ui->icon("file-o"))->title("Your Consultancy Form")->solid()->uiType('primary')->open();
$new_payment = $payment;
//$tab1 = $ui->tabPane()->id("current")->active()->open();
$table = $ui->table()->hover()->bordered()->sortable()->searchable()->paginated()->open();
?>
						<thead>
							<tr>
														
								<th> Title</th>
								<th>Posted On/ Edited On</th>
								<th>Revision Status</th>
								<th >link</th>
								<th >Request file</th>
							    
							</tr>
						</thead>
<?php 
foreach ($cons_row as $key => $cons_row) {
    ?>
Ejemplo n.º 16
0
<div class="panel dashboard-widget panel-<?php 
echo $widget->get('color', 'success');
?>
 panel-body-colorful panel-dark" data-id="<?php 
echo $widget->id;
?>
">
	<button type="button" class="close remove_widget"><?php 
echo UI::icon('times');
?>
</button>
	<button type="button" class="close widget_settings"><?php 
echo UI::icon('cog');
?>
</button>
	<div class="panel-body text-center handle"></div>
</div>
<script type="text/javascript">
$('.dashboard-widget[data-id="<?php 
echo $widget->id;
?>
"]')
	.on('widget_init', function() {
		var $cont = $('.panel-body', this);
		$.simpleWeather({
			location: '<?php 
echo $widget->city;
?>
',
			woeid: '',
			unit: 'c',
Ejemplo n.º 17
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();
Ejemplo n.º 18
0
$row = $ui->row()->open();
$alertRow = $ui->row()->open();
$marginCol = $ui->col()->width(3)->open();
$marginCol->close();
$alertRow->close();
$margin = $ui->col()->width(2)->open();
$margin->close();
$column = $ui->col()->width(8)->open();
$box = $ui->box()->title('Station Leave Details')->solid()->uiType('primary')->open();
$form = $ui->form()->action('leave/leave_station/applyStationLeave')->open();
$inputRow1 = $ui->row()->open();
$ui->datePicker()->required()->label('Proposed Date Of Leaving Station ')->name('leave_st_date')->id('leave_st_date')->placeholder("Enter the date")->dateFormat('dd-mm-yyyy')->value("")->width(6)->show();
$ui->datePicker()->required()->id('return_st_date')->label('Proposed Date Of Reurning Station')->name('return_st_date')->placeholder(" Select Returning Date")->dateFormat('dd-mm-yyyy')->width(6)->value("")->show();
$inputRow1->close();
$inputRow2 = $ui->row()->id('st_time')->open();
$ui->timePicker()->label('Leaving Time')->name('st_leaving_time')->addonLeft($ui->icon("clock-o"))->uiType('primary')->id('st_leaving_time')->showMeridian('false')->required()->showSeconds('true')->width(6)->show();
$ui->timePicker()->label('Arrival Time')->name('st_arrival_time')->addonLeft($ui->icon("clock-o"))->uiType('primary')->id('st_arrival_time')->showMeridian('false')->required()->showSeconds('true')->width(6)->show();
$inputRow2->close();
$inputRow3 = $ui->row()->open();
$ui->textarea()->required()->placeholder('Purpose Of Leaving station')->type('text')->value("")->label('Purpose Of Leaving station')->name('purpose')->width(6)->show();
$ui->textarea()->required()->placeholder(' Address During Absence From Station')->type('text')->value("")->label('Address During Absence From Station')->id('st_address')->name('address')->width(6)->show();
$inputRow3->close();
$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();
Ejemplo n.º 19
0
</div>

<div class="page-signin-alt">
	<?php 
echo Form::open(Route::get('user')->uri(array('action' => 'forgot')), array('method' => Request::POST, 'class' => 'panel'));
?>
	<div class="panel-body">
		<p class="text-muted"><?php 
echo __('Enter your e-mail, which you want to forgot password.');
?>
</p>
		<hr class="panel-wide" />
		
		<div class="input-group input-group-lg">
			<span class="input-group-addon"><?php 
echo UI::icon('envelope');
?>
</span>
			<?php 
echo Form::input('forgot[email]', NULL, array('class' => 'form-control', 'placeholder' => __('E-mail address')));
?>
		</div>
	</div>
	<?php 
Observer::notify('admin_login_forgot_form');
?>
	<div class="panel-footer">	
		<?php 
echo Form::button('send', __('Send password'), array('class' => 'btn btn-primary', 'data-icon-append' => 'paper-plane-o fa-lg'));
?>
			
Ejemplo n.º 20
0
    echo HTML::anchor($page->get_url(), $page->title, array('data-icon' => 'home fa-lg fa-fw'));
    ?>
					<?php 
}
?>

					<?php 
echo $page->get_public_anchor();
?>
				</div>
				<div class="actions col-xs-offset-4 col-xs-1 text-right">
					<?php 
if (Acl::check('page.add')) {
    ?>
					<?php 
    echo UI::button(NULL, array('icon' => UI::icon('plus'), 'href' => Route::get('backend')->uri(array('controller' => 'page', 'action' => 'add')), 'class' => 'btn-default btn-xs'));
    ?>
					<?php 
}
?>
				</div>
				<div class="clearfix"></div>
			</div>
			<?php 
echo $content_children;
?>
		</li>
	</ul>
	
	<ul id="page-search-list" class="tree-items no-padding-hr"></ul>
	
Ejemplo n.º 21
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>';
    }
Ejemplo n.º 22
0
	</div>
	<div class="panel-heading">
		<span class="panel-title"><?php 
echo __('Content');
?>
</span>
		<?php 
echo UI::badge($layout->get_relative_path());
?>
		
		<?php 
if ($layout->is_writable() or !$layout->is_exists()) {
    ?>
		<div class="panel-heading-controls">
		<?php 
    echo UI::button(__('File manager'), array('class' => 'btn-filemanager btn-flat btn-info btn-sm', 'data-el' => 'textarea_content', 'icon' => UI::icon('folder-open'), 'data-hotkeys' => 'ctrl+m'));
    ?>
		</div>
		<?php 
}
?>
	</div>
	<?php 
echo Form::textarea('content', $layout->content, array('class' => 'form-control', 'id' => 'textarea_content', 'data-height' => 600, 'data-readonly' => (!$layout->is_exists() or $layout->is_exists() and $layout->is_writable()) ? 'off' : 'on'));
?>

	<?php 
if ($layout->is_exists() and !$layout->is_writable()) {
    ?>
	<div class="panel-default alert alert-danger alert-dark no-margin-b">
		<?php 
Ejemplo n.º 23
0
<div class="panel-heading panel-toggler" data-icon="bolt">
	<span class="panel-title"><?php 
echo __('Job settings');
?>
</span>
</div>
<div class="panel-body panel-spoiler">
	<div class="note note-warning">
		<?php 
echo UI::icon('lightbulb-o fa-lg');
?>
 <?php 
echo __('When using cron you need to add the following line to the crontab file:');
?>
		<br /><br />
		<strong>* * * * * cd <?php 
echo DOCROOT;
?>
; php -f index.php --task=job:run &gt; /dev/null 2&gt;&amp;1</strong>
	</div>
				
	<div class="form-group">
		<label class="control-label col-sm-3"><?php 
echo __('Job agent');
?>
</label>
		<div class="col-sm-3">
			<?php 
echo Form::select('setting[job][agent]', Model_Job::agents(), (int) Config::get('job', 'agent'));
?>
		</div>
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();
?>
Ejemplo n.º 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>
Ejemplo n.º 26
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();
Ejemplo n.º 27
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">
Ejemplo n.º 28
0
<?php

$ui = new UI();
$tabsRow = $ui->row()->open();
$tabBox = $ui->tabBox()->icon($ui->icon("th"))->title("Details of Posts")->tab("current", $ui->icon("bars") . "Current List", true)->tab("archived", $ui->icon("bars") . "Archived List")->open();
$tab1 = $ui->tabPane()->id("current")->active()->open();
if (count($details_of_posts) == 0) {
    $box = $ui->callout()->title("Empty List")->desc("There is no post in the current list.")->uiType("info")->show();
} else {
    $table = $ui->table()->id('currentTable')->responsive()->hover()->bordered()->striped()->sortable()->searchable()->paginated()->open();
    ?>
						<thead>
							<tr>
								<th><center>Post Name</center></th>
								<th><center>IP Address of Post</center></th>
								<th><center>Shift A</center></th>
								<th><center>Shift B</center></th>
								<th><center>Shift C</center></th>
								<th><center>Total</center></th>
								<th><center>Edit</center></th>
								<th><center>Remove</center></th>
							</tr>
						</thead>
						<?php 
    foreach ($details_of_posts as $key => $post) {
        $total = $post->number_a + $post->number_b + $post->number_c;
        echo '<tr>
										<td align="center">' . $post->postname . '</td>
										<td align="center"><a href = "http://' . $post->ipaddress . '" target= "_blank" title="' . $post->postname . '">' . $post->ipaddress . '</a></td>
										<td align="center">' . $post->number_a . '</td>
										<td align="center">' . $post->number_b . '</td>
Ejemplo n.º 29
0
<?php

$ui = new UI();
switch ($form) {
    case 2:
        if ($emp_prev_exp_details) {
            $form = $ui->form()->id('edit_prev_emp_details')->action('employee/edit/update_old_prev_emp_details/' . $sno)->extras('onSubmit="return onclick_save(' . $sno . ');"')->open();
            $row = $ui->row()->open();
            $col = $ui->col()->open();
            $box = $ui->box()->uiType('primary')->style('margin-bottom:0')->open();
            $ui->textarea()->label('Full address of Employer')->name('edit_addr' . $sno)->id('edit_addr' . $sno)->value($emp_prev_exp_details->address)->show();
            $ui->input()->label('Position Held')->name('edit_designation' . $sno)->id('edit_designation' . $sno)->value($emp_prev_exp_details->designation)->show();
            $ui->datePicker()->name('edit_from' . $sno)->id('edit_from' . $sno)->dateFormat('dd-mm-yyyy')->addonRight($ui->icon("calendar"))->label('From')->extras('max="' . date('d-m-Y', strtotime($joining_date)) . '"')->value(date('d-m-Y', strtotime($emp_prev_exp_details->from)))->show();
            $ui->datePicker()->name('edit_to' . $sno)->id('edit_to' . $sno)->dateFormat('dd-mm-yyyy')->addonRight($ui->icon("calendar"))->label('To')->extras('max="' . date('d-m-Y', strtotime($joining_date)) . '"')->value(date('d-m-Y', strtotime($emp_prev_exp_details->to)))->show();
            $ui->input()->name("edit_payscale" . $sno)->id("edit_payscale" . $sno)->label('Pay Scale')->value($emp_prev_exp_details->pay_scale)->show();
            $ui->input()->name('edit_reason' . $sno)->id('edit_reason' . $sno)->value($emp_prev_exp_details->remarks)->label('Remarks')->show();
            echo '<center>';
            $ui->button()->uiType('primary')->flat()->submit()->name('save')->value('Save')->icon($ui->icon('floppy-o'))->show();
            $ui->button()->uiType('danger')->flat()->name('cancel')->value('Cancel')->extras('onClick="closeframe();"')->icon($ui->icon('times'))->show();
            echo '</center>';
            $box->close();
            $col->close();
            $row->close();
            $form->close();
        }
        break;
    case 3:
        if ($emp_family_details) {
            $form = $ui->form()->id('edit_emp_family_details')->multipart()->action('employee/edit/update_old_fam_details/' . $sno)->extras('onSubmit="return onclick_save(' . $sno . ');"')->open();
            $row = $ui->row()->open();
            $col = $ui->col()->open();
Ejemplo n.º 30
0
function recurse_menu($id, $section, $ds_id)
{
    if (!$section->has_access_view()) {
        return;
    }
    $result = '';
    $selected = $id == $ds_id ? 'active' : '';
    $title = $section->name;
    $result .= '<li class="' . $selected . '" data-id="' . $id . '">';
    $result .= HTML::anchor(Datasource_Section::uri('view', $id), $section->name . UI::icon('ellipsis-v fa-lg', array('class' => 'pull-right section-draggable')), array('data-icon' => $section->icon()));
    $result .= '</li>';
    return $result;
}