コード例 #1
0
 /**
  * @param WidgetFilters    $filters
  * @param WidgetManager    $widgetManager
  * @param WidgetRepository $repository
  * @param string           $type
  */
 public function getIndex(WidgetFilters $filters, WidgetManager $widgetManager, WidgetRepository $repository, $type = null)
 {
     Meta::loadPackage('editable');
     $this->request->offsetSet('type', $type);
     $widgetTypeLinks = [link_to_route('backend.widget.list', \UI::label('All', is_null($type) ? 'primary' : 'default'), [])];
     $widgetManager->getAvailableTypes()->each(function (WidgetType $widgetType) use($type, &$widgetTypeLinks) {
         if ($widgetType->getType() == $type) {
             $this->breadcrumbs->add($widgetType->getTitle());
         }
         $widgetTypeLinks[] = link_to_route('backend.widget.list.by_type', \UI::label($widgetType->getTitle(), $widgetType->getType() == $type ? 'primary' : 'default'), [$widgetType->getType()]);
     });
     $widgets = $repository->query()->filter($filters)->paginate();
     $this->setContent('widgets.list', compact('widgets', 'type', 'widgetTypeLinks'));
 }
コード例 #2
0
ファイル: edit.php プロジェクト: ZerGabriel/cms-1
    echo __('Widget template');
    ?>
</span>
	</div>
	<div class="note note-info no-margin-b">
		<div class="row">
			<div class="col-sm-offset-2 col-sm-10">
				<strong><?php 
    echo __('Widget variables');
    ?>
: </strong>
				<?php 
    foreach ($params as $param) {
        ?>
				<?php 
        echo UI::label($param);
        ?>
				<?php 
    }
    ?>
			</div>
		</div>
	</div>
	<?php 
    echo View::factory('helper/snippet_select', array('template' => $widget->template, 'default' => $widget->default_template() ? UI::button(UI::hidden(__('Default template'), array('sm', 'xs')), array('href' => Route::get('backend')->uri(array('controller' => 'widgets', 'action' => 'template', 'id' => $widget->id)), 'icon' => UI::icon('desktop'), 'id' => 'defaultTemplateButton', 'class' => 'popup fancybox.iframe btn-default')) : NULL));
    ?>
	
	
	<?php 
}
?>
コード例 #3
0
ファイル: edit.php プロジェクト: ZerGabriel/cms-1
						<?php 
if ($action != 'add' and $page->loaded()) {
    ?>

						<?php 
    if (isset($page->updated_on)) {
        ?>
						<?php 
        echo UI::label(__('Last updated by :anchor on :date', array(':anchor' => HTML::anchor(Route::get('backend')->uri(array('controller' => 'users', 'action' => 'edit', 'id' => $page->updator->id)), $page->updator->username), ':date' => Date::format($page->updated_on, 'D, j F Y'))), 'important');
        ?>
						<?php 
    }
    ?>

						<?php 
    echo HTML::anchor($page->get_frontend_url(), UI::label(UI::icon('globe') . ' ' . __('View page')), array('class' => 'item-preview', 'target' => '_blank'));
    ?>
						<?php 
}
?>
					</div>
				</div>
				
				<div class="tab-pane fade" id="page-meta-panel">
					<?php 
echo View::factory('page/blocks/meta', array('page' => $page, 'action' => $action));
?>
				</div>

				<div class="tab-pane fade" id="page-options-panel">
					<?php 
コード例 #4
0
ファイル: children.php プロジェクト: ZerGabriel/cms-1
				<?php 
        }
        ?>
				
				<?php 
        if (!empty($child->behavior_id)) {
            ?>
 <?php 
            echo UI::label(__(ucfirst(Inflector::humanize($child->behavior_id))), 'default');
        }
        ?>
				<?php 
        if (!empty($child->use_redirect)) {
            ?>
 <?php 
            echo UI::label(__('Redirect: :url', array(':url' => $child->redirect_url)));
        }
        ?>

				<?php 
        echo $child->get_public_anchor();
        ?>
			</div>
			<div class="date col-xs-2 text-right text-muted">
				<?php 
        echo Date::format($child->published_on);
        ?>
			</div>
			<div class="status col-xs-2 text-right">
				<?php 
        echo $child->get_status();
コード例 #5
0
ファイル: index.php プロジェクト: pkdism/ISM-MIS
$head = $ui->row()->open();
$h_col = $ui->col()->width(12)->open();
$box = $ui->box()->title('Validation Requests')->uiType('primary')->open();
if (!$emp_validation_details) {
    $this->callout()->title("No Pending Requests")->desc("There are no pending requests.")->show();
} else {
    $table = $ui->table()->bordered()->condensed()->responsive()->open();
    echo "<thead><tr align='center'>\n\t\t\t\t\t<td rowspan='2' style='vertical-align:middle' ><b>Employee Id</b></td>\n\t\t\t\t\t<td rowspan='2' style='vertical-align:middle' ><b>Employee Name</b></td>\n\t\t\t\t\t<td colspan='6' style='vertical-align:middle' ><b>Status</b></td>\n\t\t\t\t</tr>\n\t\t\t\t<tr align='center'>\n\t\t\t\t\t<td style='vertical-align:middle'><b>Profile Pic</b></td>\n\t\t\t\t\t<td style='vertical-align:middle'><b>Basic Details</b></td>\n\t\t\t\t\t<td style='vertical-align:middle'><b>Previous Employment Details</b></td>\n\t\t\t\t\t<td style='vertical-align:middle'><b>Dependent Family Member Details</b></td>\n\t\t\t\t\t<td style='vertical-align:middle'><b>Educational Qualifications</b></td>\n\t\t\t\t\t<td style='vertical-align:middle'><b>Last 5 Year Stay Details</b></td>\n\t\t\t\t</tr></thead><tbody>";
    $i = 0;
    foreach ($emp_validation_details as $v_row) {
        $i++;
        $user = $this->user_details_model->getUserById($v_row->id);
        $emp_name = ucwords($user->salutation . '. ' . $user->first_name . ($user->middle_name != '' ? ' ' . $user->middle_name : '') . ($user->last_name != '' ? ' ' . $user->last_name : ''));
        echo "<tr>\n\t\t\t\t\t<td align=\"center\" >" . $v_row->id . "</td>\n\t\t\t\t\t<td align=\"center\">" . $emp_name . "</td>";
        //profile picture step
        $label = $ui->label()->text(ucwords($v_row->profile_pic_status));
        if ($v_row->profile_pic_status == 'pending') {
            echo "<td align=\"center\"  >";
            if ($this->authorization->is_auth('est_ar')) {
                echo "<a href='" . site_url("employee/validation/validate_step/" . $v_row->id . "/0") . "'>";
            }
            $label->uiType('info')->show();
            if ($this->authorization->is_auth('est_ar')) {
                echo '</a>';
            }
            echo '</td>';
        } else {
            if ($v_row->profile_pic_status == 'rejected') {
                echo "<td align=\"center\"  ><a onclick=\"reject_reason('0" . $i . "')\" >";
                $label->uiType('danger')->show();
                echo "</a></td>";
コード例 #6
0
ファイル: settings.php プロジェクト: ZerGabriel/cms-1
echo $page->field('layout_file', array('prefix' => 'page'));
?>
		</div>

		<div class="col-md-3">
			<?php 
if (!empty($layout_name)) {
    ?>
			<?php 
    echo UI::label(__('Current layout: :name', array(':name' => $layout_link)));
    ?>
			<?php 
} else {
    ?>
			<?php 
    echo UI::label(__('Layout not set'), 'danger');
    ?>
			<?php 
}
?>
		</div>
		
	</div>
	
	<hr class="panel-wide" />

	<div class="form-group">
		<?php 
echo $page->label('behavior_id', array('class' => 'control-label col-md-3'));
?>
		<div class="col-md-6">
コード例 #7
0
ファイル: profile_pic.php プロジェクト: pkdism/ISM-MIS
}
if ($photopath == FALSE || $photopath == "") {
    echo '<img src="' . base_url() . 'assets/images/employee/noProfileImage.png" id="view_photo" width="145" height="150"/>';
} else {
    echo '<img id="view_photo" src="' . base_url() . 'assets/images/' . $photopath . '"  height="150" />';
}
$col1->close();
if ($pending_photopath) {
    $col2 = $ui->col()->width(6)->open();
    if ($pending_photopath == FALSE || $pending_photopath == "") {
        echo '<img src="' . base_url() . 'assets/images/employee/noProfileImage.png" id="pending_photo" width="145" height="150"/>';
    } else {
        echo '<img id="pending_photo" src="' . base_url() . 'assets/images/' . $pending_photopath . '"  height="150" />';
    }
    if ($status == 'pending') {
        echo '<br>' . $ui->label()->uiType('info')->text('Pending');
    } else {
        if ($status == 'rejected') {
            echo '<br>' . $ui->label()->uiType('danger')->text('Rejected');
        }
    }
    $col2->close();
}
echo '</div></center>';
$row1->close();
$row2 = $ui->row()->open();
$ui->imagePicker()->width(12)->label("Select New Picture<span style= \"color:red;\"> *</span>")->required()->id('photo')->name('photo')->show();
$row2->close();
echo '<a href="' . site_url('employee/edit') . '">';
$ui->button()->value("Back")->large()->uiType('primary')->icon($ui->icon("arrow-left"))->show();
echo '</a>';
コード例 #8
0
ファイル: fields.php プロジェクト: ZerGabriel/cms-1
        echo HTML::anchor(Route::get('datasources')->uri(array('controller' => 'field', 'directory' => 'hybrid', 'action' => 'edit', 'id' => $field->id)), $field->header);
        ?>
				<?php 
    } else {
        ?>
				<strong><?php 
        echo $field->header;
        ?>
 </strong>
				<?php 
    }
    ?>
			</td>
			<td>
				<?php 
    echo UI::label($field->type);
    ?>
			</td>
			<td>
			<?php 
    $attrs = array();
    if (!$ds->has_access('field.edit')) {
        $attrs['disabled'] = 'disabled';
    }
    echo Form::checkbox('in_headline[' . $field->id . ']', 1, (bool) $field->in_headline, $attrs);
    ?>
			</td>
			<td>
			<?php 
    if ($field->is_indexable()) {
        $attrs = array();
コード例 #9
0
ファイル: log.php プロジェクト: ZerGabriel/cms-1
 /**
  * 
  * @return string
  */
 public function ip()
 {
     $ip = Arr::get($this->additional, ':ip');
     return empty($ip) ? NULL : UI::label($ip, 'default');
 }
コード例 #10
0
ファイル: index.php プロジェクト: ZerGabriel/cms-1
    }
    ?>
				</th>
				<td class="modified hidden-xs">
					<?php 
    echo Date::format($layout->modified());
    ?>
				</td>
				<td class="size">
					<?php 
    echo Text::bytes($layout->size());
    ?>
				</td>
				<td class="direction hidden-xs">
					<?php 
    echo UI::label($layout->get_relative_path());
    ?>
				</td>
				<td class="actions text-right">
					<?php 
    if (ACL::check('layout.delete')) {
        ?>
					<?php 
        echo UI::button(NULL, array('icon' => UI::icon('times fa-inverse'), 'href' => Route::get('backend')->uri(array('controller' => 'layout', 'action' => 'delete', 'id' => $layout->name)), 'class' => 'btn-danger btn-xs btn-confirm'));
        ?>
					<?php 
    }
    ?>
				</td>
			</tr>
			<?php 
コード例 #11
0
$ui = new UI();
$upRow = $ui->row()->open();
$col = $ui->col()->open();
switch ($validation_status) {
    case "approved":
        $status = array("ui_type" => "success", "text" => "");
        break;
    case "pending":
        $status = array("ui_type" => "warning", "text" => "Pending for Approval");
        break;
    case "rejected":
        $status = array("ui_type" => "danger", "text" => "Rejected");
        break;
}
$box = $ui->box()->id('show_details')->title('Educational Qualifications ' . $ui->label()->uiType($status['ui_type'])->text($status['text']))->uiType($status['ui_type'])->open();
$details = count($pending_emp_education_details) ? $pending_emp_education_details : $emp_education_details;
if (count($details)) {
    $table = $ui->table()->id('tbl4')->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>
	                        <td style="vertical-align:middle" ><b>Edit/Delete</b></td>
	                        </tr>
	                        </thead><tbody>';
    $i = 1;
コード例 #12
0
ファイル: family_details.php プロジェクト: pkdism/ISM-MIS
$ui = new UI();
$upRow = $ui->row()->open();
$col = $ui->col()->open();
switch ($validation_status) {
    case "approved":
        $status = array("ui_type" => "success", "text" => "");
        break;
    case "pending":
        $status = array("ui_type" => "warning", "text" => "Pending for Approval");
        break;
    case "rejected":
        $status = array("ui_type" => "danger", "text" => "Rejected");
        break;
}
$box = $ui->box()->id('show_details')->title('Dependent Family Members Details ' . $ui->label()->uiType($status['ui_type'])->text($status['text']))->uiType($status['ui_type'])->open();
$details = count($pending_emp_family_details) ? $pending_emp_family_details : $emp_family_details;
if (count($details)) {
    $table = $ui->table()->id('tbl3')->responsive()->condensed()->bordered()->striped()->open();
    echo '<thead><tr align="center">
	                        <td style="vertical-align:middle" ><b>S no.</b></td>
	                        <td style="vertical-align:middle" ><b>Name</b></td>
	                        <td style="vertical-align:middle" ><b>Relationship</b></td>
	                        <td style="vertical-align:middle" ><b>Date of Birtd</b></td>
	                        <td style="vertical-align:middle" ><b>Profession</b></td>
	                        <td style="vertical-align:middle" ><b>Present Postal Address</b></td>
	                        <td style="vertical-align:middle" ><b>Active/Inactive</b></td>
	                        <td style="vertical-align:middle" ><b>Photograph</b></td>
	                        <td style="vertical-align:middle" ><b>Edit</b></td>
	                        </tr>
	                        </thead><tbody>';
コード例 #13
0
ファイル: allot_date.php プロジェクト: pkdism/ISM-MIS
							</tr>
						</thead>
						';
$i = 1;
$array_options = array();
foreach ($alloted_company_basic_info as $row) {
    $date_from = date("d-M-Y", strtotime($row->date_from));
    $date_to = date("d-M-Y", strtotime($row->date_to));
    echo '
							<tr>
								<td>' . $i++ . '</td>
								<td>' . $row->company_name . '</td>
								<td>' . $date_from . " to " . $date_to . '</td>
								<td>';
    if ($row->status == "Proposed") {
        $ui->label()->uiType("info")->text($row->status)->show();
    } else {
        if ($row->status == "Confirmed") {
            $ui->label()->uiType("success")->text($row->status)->show();
        } else {
            if ($row->status == "Rejected") {
                $ui->label()->uiType("danger")->text($row->status)->show();
            } else {
                if ($row->status == "Pending") {
                    $ui->label()->uiType("warning")->text($row->status)->show();
                }
            }
        }
    }
    echo '
								</td>
コード例 #14
0
ファイル: page.php プロジェクト: ZerGabriel/cms-1
 /**
  * Получение ссылки на страницу
  * 
  * @return string
  */
 public function get_public_anchor()
 {
     return HTML::anchor($this->get_frontend_url(), UI::label(UI::icon('globe') . ' ' . __('View page')), array('class' => 'item-preview', 'target' => '_blank'));
 }
コード例 #15
0
ファイル: company_info.php プロジェクト: pkdism/ISM-MIS
						<tr>
							<th>S.No</th>
							<th>Date</th>
							<th>Company Name</th>
							<th>Salary(CTC,Gross,Take Home)</th>
							<th>Status</th>
						</tr>
					</thead>
				';
foreach ($company_basic_info as $row) {
    $date_from = date("d-M-Y", strtotime($row->date_from));
    $date_to = date("d-M-Y", strtotime($row->date_to));
    echo '
						<tr>
							<td>' . $sno++ . '</td>
							<td>' . (isset($row->date_from) && isset($row->date_to) ? $date_from . " to " . $date_to : "No Date Proposed") . '</td>
							<td>' . $row->company_name . "(" . $row->job_posting . ")<br>(<a href = " . $row->website . ">" . $row->website . "</a>)" . '</td>
							<td>' . $row->ctc . "<br>" . $row->gross . "<br>" . $row->take_home . '</td>
							<td>';
    if (isset($row->status)) {
        $ui->label()->uiType("info")->text($row->status)->show();
    } else {
        $ui->label()->uiType("warning")->text("Pending")->show();
    }
    echo '</td>
						</tr>';
}
$table->close();
$box_basic_details->close();
$column1->close();
$outer_row->close();
コード例 #16
0
ファイル: index.php プロジェクト: ZerGabriel/cms-1
    ?>
				<?php 
    $class = Text::alternate('even', 'odd');
    ?>
				<tr class="item <?php 
    echo $class;
    ?>
">
					<td class="log-date">
						<?php 
    echo Date::format($log->created_on, 'j F y H:i');
    ?>
					</td>
					<td class="log-level hidden-xs">
						<?php 
    echo UI::label($log->level());
    ?>
					</td>
					<td class="log-url hidden-xs">
						<?php 
    echo $log->url();
    ?>
					</td>
					<td class="log-user hidden-xs">
						<?php 
    echo $log->user();
    ?>
 <?php 
    echo $log->ip();
    ?>
					</td>
コード例 #17
0
ファイル: index.php プロジェクト: ZerGabriel/cms-1
				</td>
				<td class="cache hidden-xs">
				<?php 
    if ($widget->code()->use_caching()) {
        ?>
					<?php 
        if ($widget->code()->caching === FALSE) {
            ?>
					<?php 
            echo UI::label('0', 'warning');
            ?>
					<?php 
        } else {
            ?>
					<?php 
            echo UI::label($widget->code()->cache_lifetime, 'success');
            ?>
					<?php 
        }
        ?>
				<?php 
    }
    ?>
				</td>
				<td class="actions text-right">
					<?php 
    if (ACL::check('widgets.location') and !$widget->code()->is_handler()) {
        ?>
					<?php 
        echo UI::button(NULL, array('href' => Route::get('backend')->uri(array('controller' => 'widgets', 'action' => 'location', 'id' => $widget->id)), 'icon' => UI::icon('sitemap'), 'class' => 'btn-xs btn-primary popup fancybox.iframe'));
        ?>
コード例 #18
0
ファイル: Page.php プロジェクト: BlueCatTAT/kodicms-laravel
 /**
  * Получение ссылки на страницу
  * @return string
  */
 public function getPublicLink()
 {
     return link_to($this->getFrontendUrl(), \UI::label(\UI::icon('globe') . ' ' . trans('pages::core.button.view_front')), ['class' => 'item-preview', 'target' => '_blank']);
 }
コード例 #19
0
$ui = new UI();
$upRow = $ui->row()->open();
$col = $ui->col()->open();
switch ($validation_status) {
    case "approved":
        $status = array("ui_type" => "success", "text" => "");
        break;
    case "pending":
        $status = array("ui_type" => "warning", "text" => "Pending for Approval");
        break;
    case "rejected":
        $status = array("ui_type" => "danger", "text" => "Rejected");
        break;
}
$box = $ui->box()->id('show_details')->title('Previous Employment Details ' . $ui->label()->uiType($status['ui_type'])->text($status['text']))->uiType($status['ui_type'])->open();
$details = count($pending_emp_prev_exp_details) ? $pending_emp_prev_exp_details : $emp_prev_exp_details;
if (count($details)) {
    $table = $ui->table()->id('tbl2')->responsive()->condensed()->bordered()->striped()->open();
    echo '<thead><tr style="text-align:center" >
	                        <td rowspan="2" style="vertical-align:middle" ><b>S no.</b></td>
	                        <td rowspan="2" style="vertical-align:middle" ><b>Full address of Employer</b></td>
	                        <td rowspan="2" style="vertical-align:middle" ><b>Position held</b></td>
	                        <td colspan="2" style="vertical-align:middle" ><b>Organization</b></td>
	                        <td rowspan="2" style="vertical-align:middle" ><b>Pay Scale</b></td>
	                        <td rowspan="2" style="vertical-align:middle" ><b>Remarks</b></td>
	                        <td rowspan="2" style="vertical-align:middle" ><b>Edit/Delete</b></td>
	                    </tr>
	                    <tr align="center">
	                        <td style="vertical-align:middle"><b>From</b></td>
	                        <td style="vertical-align:middle"><b>To</b></td>
コード例 #20
0
ファイル: index.php プロジェクト: ZerGabriel/cms-1
    }
    ?>
				</th>
				<td class="modified hidden-xs">
					<?php 
    echo Date::format($snippet->modified());
    ?>
				</td>
				<td class="size">
					<?php 
    echo Text::bytes($snippet->size());
    ?>
				</td>
				<td class="direction hidden-xs">
					<?php 
    echo UI::label($snippet->get_relative_path());
    ?>
				</td>
				<td class="actions text-right">
					<?php 
    if (ACL::check('snippet.delete')) {
        ?>
					<?php 
        echo UI::button(NULL, array('href' => Route::get('backend')->uri(array('controller' => 'snippet', 'action' => 'delete', 'id' => $snippet->name)), 'icon' => UI::icon('times fa-inverse'), 'class' => 'btn-xs btn-danger btn-confirm'));
        ?>
					<?php 
    }
    ?>
				</td>
			</tr>
			<?php 
コード例 #21
0
ファイル: index.php プロジェクト: ZerGabriel/cms-1
						<?php 
    } else {
        ?>
						<?php 
        echo UI::icon('lock');
        ?>
 <?php 
        echo $job->name;
        ?>
						<?php 
    }
    ?>
					</td>
					<td class="job-function hidden-xs">
						<?php 
    echo UI::label($job->job);
    ?>
					</td>
					<td class="job-status">
						<?php 
    echo $job->status();
    ?>
					</td>
					<td class="job-last-run hidden-xs">
						<?php 
    echo Date::format($job->date_last_run, 'j/m/Y H:i:s');
    ?>
					</td>
					<td class="job-interval hidden-xs">
						<?php 
    echo Date::format($job->date_next_run, 'j/m/Y H:i:s');
コード例 #22
0
ファイル: view.php プロジェクト: pkdism/ISM-MIS
function view_stay_details($emp_last5yrstay_details, $pending_emp_last5yrstay_details = false, $status = false)
{
    $ui = new UI();
    echo '<h3 class="page-header" align="center">Last 5 Year Stay Details</h3>';
    $table = $ui->table()->id('tbl5')->responsive()->bordered()->striped()->open();
    echo '<thead><tr align="center">
				<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>
        	</tr></thead><tbody>';
    foreach ($emp_last5yrstay_details as $row) {
        echo '<tr name=row[] align="center">
			    	<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>
			    </tr>';
    }
    echo '</tbody>';
    $table->close();
    if ($pending_emp_last5yrstay_details) {
        $uiType = $status == 'pending' ? 'info' : 'danger';
        echo '<div id = "pending_emp_last5yrstay_details"><h3 class="page-header" align="center">Last 5 Year Stay Details ' . $ui->label()->uiType($uiType)->text(ucwords($status)) . '</h3>';
        $table = $ui->table()->responsive()->bordered()->striped()->open();
        echo '<thead><tr align="center">
						<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>
		        	</tr></thead><tbody>';
        foreach ($pending_emp_last5yrstay_details as $row) {
            echo '<tr name=row[] align="center">
				    	<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>
				    </tr>';
        }
        echo '</tbody>';
        $table->close();
        echo '</div>';
    }
}
コード例 #23
0
ファイル: sortitem.php プロジェクト: ZerGabriel/cms-1
<li class="dd-item" data-id="<?php 
echo $page['id'];
?>
">
	<div class="dd-handle">
		<?php 
echo UI::icon(empty($childs) ? 'file-o' : 'folder-open-o');
?>
		<span class="title"><?php 
echo $page['title'];
?>
</span>

		<?php 
if (!empty($page['behavior_id'])) {
    ?>
 
		&nbsp;&nbsp;<?php 
    echo UI::label(Inflector::humanize($page['behavior_id']), 'default');
    ?>
		<?php 
}
?>
	</div>
	
	<?php 
echo $childs;
?>
</li>
コード例 #24
0
ファイル: example.php プロジェクト: pkdism/ISM-MIS
    $ui->button()->value(ucwords($type))->uiType($type)->disabled()->show();
    ?>
</td>
            </tr>
            <?php 
}
?>
            <?php 
$btnTable->close();
$buttonBox->close();
$labelBox = $ui->box()->title("Labels")->open();
?>
<p>Create labels to show status messages, like the following:</p>

			<p><?php 
$ui->label()->uiType("success")->text("Complete")->show();
echo " ";
$ui->label()->uiType("danger")->text("Rejected")->show();
echo " ";
$ui->label()->uiType("warning")->text("Pending")->show();
echo " ";
$ui->label()->uiType("info")->text("Ongoing")->show();
?>
</p>
<pre>
$ui->label()
   ->uiType("info")
   ->text("Ongoing")
   ->show();
</pre>
<?php 
コード例 #25
0
ファイル: index.php プロジェクト: ZerGabriel/cms-1
    echo HTML::anchor(Route::get('backend')->uri(array('controller' => 'users', 'action' => 'profile', 'id' => $user->id)), $user->username);
    ?>
				</td>
				<td class="email hidden-xs"><?php 
    echo UI::label(HTML::mailto($user->email));
    ?>
</td>
				<td class="roles hidden-xs">
					<?php 
    $roles = explode(',', $user->roles);
    ?>
					<?php 
    foreach ($roles as $role) {
        ?>
						<?php 
        echo UI::label($role, 'default');
        ?>
					<?php 
    }
    ?>
				</td>
				<td class="last_login hidden-xs"><?php 
    echo Date::format($user->last_login);
    ?>
</td>
				<td class="actions text-right">
					<?php 
    if ($user->id > 1 and ACL::check('users.delete')) {
        echo UI::button(NULL, array('href' => Route::get('backend')->uri(array('controller' => 'users', 'action' => 'delete', 'id' => $user->id)), 'icon' => UI::icon('times fa-inverse'), 'class' => 'btn-xs btn-danger btn-confirm'));
    }
    ?>
コード例 #26
0
 <?php 
$ui = new UI();
$upRow = $ui->row()->open();
$col = $ui->col()->open();
switch ($validation_status) {
    case "approved":
        $status = array("ui_type" => "success", "text" => "");
        break;
    case "pending":
        $status = array("ui_type" => "warning", "text" => "Pending for Approval");
        break;
    case "rejected":
        $status = array("ui_type" => "danger", "text" => "Rejected");
        break;
}
$box = $ui->box()->id('show_details')->title('Last 5 Year Stay Details ' . $ui->label()->uiType($status['ui_type'])->text($status['text']))->uiType($status['ui_type'])->open();
$details = count($pending_emp_last5yrstay_details) ? $pending_emp_last5yrstay_details : $emp_last5yrstay_details;
if (count($details)) {
    $table = $ui->table()->id('tbl5')->responsive()->bordered()->striped()->open();
    echo '<thead><tr align="center">
				              	<td rowspan=2 style="vertical-align:middle" ><b>S no.</b></td>
								<td colspan=2 style="vertical-align:middle" ><b>Duration</b></td>
								<td rowspan=2 style="vertical-align:middle" ><b>Residential Address</b></td>
								<td rowspan=2 style="vertical-align:middle" ><b>Name of District Headquarters</b></td>
								<td rowspan=2 style="vertical-align:middle" ><b>Edit/Delete</b></td>
	                    	</tr>
	                    	<tr align="center">
	                        	<td style="vertical-align:middle" ><b>From</b></td>
	                        	<td style="vertical-align:middle" ><b>To</b></td>
	                    	</tr></thead><tbody>';
    $i = 1;
コード例 #27
0
ファイル: index.php プロジェクト: ZerGabriel/cms-1
					<?php 
    } else {
        ?>
					<?php 
        echo $tpl->type->name;
        ?>
					<?php 
    }
    ?>
				</td>
				<td class="email hidden-xs"><?php 
    echo UI::label($tpl->email_from);
    ?>
</td>
				<td class="email hidden-xs"><?php 
    echo UI::label($tpl->email_to);
    ?>
</td>
				<td class="status hidden-xs"><?php 
    echo $tpl->status;
    ?>
</td>
				<td class="actions text-right">
					<?php 
    if (Acl::check('email.templates.delete')) {
        ?>
					<?php 
        echo UI::button(NULL, array('href' => Route::get('email_controllers')->uri(array('controller' => 'templates', 'action' => 'delete', 'id' => $tpl->id)), 'icon' => UI::icon('times fa-inverse'), 'class' => 'btn-xs btn-danger btn-confirm'));
        ?>
					<?php 
    }