public function run() { Icons::create(array('id' => 1, 'icon_name' => 'Road', 'icon_code' => '', 'icon_type' => 'fa')); Icons::create(array('id' => 2, 'icon_name' => 'Star', 'icon_code' => '', 'icon_type' => 'fa')); Icons::create(array('id' => 3, 'icon_name' => 'Remove', 'icon_code' => '', 'icon_type' => 'fa')); Icons::create(array('id' => 4, 'icon_name' => 'Ok', 'icon_code' => '', 'icon_type' => 'fa')); Icons::create(array('id' => 5, 'icon_name' => 'Money', 'icon_code' => '', 'icon_type' => 'fa')); Icons::create(array('id' => 6, 'icon_name' => 'Credit Card', 'icon_code' => '', 'icon_type' => 'fa')); Icons::create(array('id' => 7, 'icon_name' => 'Inbox', 'icon_code' => '', 'icon_type' => 'fa')); Icons::create(array('id' => 8, 'icon_name' => 'Flag', 'icon_code' => '', 'icon_type' => 'fa')); Icons::create(array('id' => 9, 'icon_name' => 'Plus', 'icon_code' => '', 'icon_type' => 'fa')); Icons::create(array('id' => 10, 'icon_name' => 'Minus', 'icon_code' => '', 'icon_type' => 'fa')); Icons::create(array('id' => 11, 'icon_name' => 'Thumbs Up', 'icon_code' => '', 'icon_type' => 'fa')); Icons::create(array('id' => 12, 'icon_name' => 'Smile', 'icon_code' => '', 'icon_type' => 'fa')); Icons::create(array('id' => 13, 'icon_name' => 'Wine Glass', 'icon_code' => '', 'icon_type' => 'fa')); Icons::create(array('id' => 14, 'icon_name' => 'Music', 'icon_code' => '', 'icon_type' => 'fa')); Icons::create(array('id' => 15, 'icon_name' => 'Home', 'icon_code' => '', 'icon_type' => 'fa')); Icons::create(array('id' => 16, 'icon_name' => 'Lock', 'icon_code' => '', 'icon_type' => 'fa')); Icons::create(array('id' => 17, 'icon_name' => 'Book', 'icon_code' => '', 'icon_type' => 'fa')); Icons::create(array('id' => 18, 'icon_name' => 'Printer', 'icon_code' => '', 'icon_type' => 'fa')); Icons::create(array('id' => 19, 'icon_name' => 'Camera', 'icon_code' => '', 'icon_type' => 'fa')); Icons::create(array('id' => 20, 'icon_name' => 'Map Pin', 'icon_code' => '', 'icon_type' => 'fa')); Icons::create(array('id' => 21, 'icon_name' => 'Gift Sign', 'icon_code' => '', 'icon_type' => 'fa')); Icons::create(array('id' => 22, 'icon_name' => 'Aeroplane', 'icon_code' => '', 'icon_type' => 'fa')); Icons::create(array('id' => 23, 'icon_name' => 'Cart', 'icon_code' => '', 'icon_type' => 'fa')); Icons::create(array('id' => 24, 'icon_name' => 'Key', 'icon_code' => '', 'icon_type' => 'fa')); Icons::create(array('id' => 25, 'icon_name' => 'Gears', 'icon_code' => '', 'icon_type' => 'fa')); Icons::create(array('id' => 26, 'icon_name' => 'Settings', 'icon_code' => '', 'icon_type' => 'fa')); Icons::create(array('id' => 27, 'icon_name' => 'Doctor', 'icon_code' => '', 'icon_type' => 'fa')); Icons::create(array('id' => 28, 'icon_name' => 'Stethoscope', 'icon_code' => '', 'icon_type' => 'fa')); Icons::create(array('id' => 29, 'icon_name' => 'Tempo', 'icon_code' => '', 'icon_type' => 'fa')); Icons::create(array('id' => 30, 'icon_name' => 'Ambulance', 'icon_code' => '', 'icon_type' => 'fa')); Icons::create(array('id' => 31, 'icon_name' => 'Computer', 'icon_code' => '', 'icon_type' => 'fa')); Icons::create(array('id' => 32, 'icon_name' => 'Phone', 'icon_code' => '', 'icon_type' => 'fa')); Icons::create(array('id' => 33, 'icon_name' => 'Fire Brigade', 'icon_code' => '', 'icon_type' => 'fa')); Icons::create(array('id' => 34, 'icon_name' => 'Car', 'icon_code' => '', 'icon_type' => 'fa')); }
</a> <?php } ?> <?php if ($delete) { ?> <a href="<?php echo M_Office_Util::getQueryParams(array('module' => $table, 'deleteFromTableRecord' => $do->{$pk}, 'ajaxfromtable' => 1), array_keys($_GET), false); ?> " class="deletelinelink" rel="<?php echo $table . $do->{$pk}; ?> "> <?php echo Icons::getIcon('delete'); ?> </a> <?php } ?> </span> <span><?php echo $this->i('recordhtmlsummary', array('record' => $do)); ?> </span> <?php if ($layouted) { ?> </li> <?php
/** * * @param array $params * @return string */ public function getCode($params) { return "<a href=\"" . $this->getDestination($params) . "\" title=\"" . htmlentities($this->label) . "\"><img src=\"" . Icons::getIcon($this->icon) . "\" /></a>"; }
public function edit_keywords() { $success = Input::get('success'); /* $keywords = Keywords::all(); */ $icons = Icons::all(); $UIkeywords = array(); $UIkeywords['keyProvider'] = Lang::get('customize.Provider'); $UIkeywords['keyUser'] = Lang::get('customize.User'); $UIkeywords['keyTaxi'] = Lang::get('customize.Taxi'); $UIkeywords['keyTrip'] = Lang::get('customize.Trip'); $UIkeywords['keyWalk'] = Lang::get('customize.Walk'); $UIkeywords['keyRequest'] = Lang::get('customize.Request'); $UIkeywords['keyDashboard'] = Lang::get('customize.Dashboard'); $UIkeywords['keyMap_View'] = Lang::get('customize.map_view'); $UIkeywords['keyReviews'] = Lang::get('customize.Reviews'); $UIkeywords['keyInformation'] = Lang::get('customize.Information'); $UIkeywords['keyTypes'] = Lang::get('customize.Types'); $UIkeywords['keyDocuments'] = Lang::get('customize.Documents'); $UIkeywords['keyPromo_Codes'] = Lang::get('customize.promo_codes'); $UIkeywords['keyCustomize'] = Lang::get('customize.Customize'); $UIkeywords['keyPayment_Details'] = Lang::get('customize.payment_details'); $UIkeywords['keySettings'] = Lang::get('customize.Settings'); $UIkeywords['keyAdmin'] = Lang::get('customize.Admin'); $UIkeywords['keyAdmin_Control'] = Lang::get('customize.admin_control'); $UIkeywords['keyLog_Out'] = Lang::get('customize.log_out'); $title = ucwords(trans('customize.Customize')); /* 'Customize' */ return View::make('keywords')->with('title', $title)->with('page', 'keywords')->with('icons', $icons)->with('Uikeywords', $UIkeywords)->with('success', $success); }
private function replaceIcons() { preg_match_all("/{ICON:(.+)}/", $this->template, $matches, PREG_SET_ORDER); foreach ($matches as $match) { $translation = htmlentities(Icons::getIcon($match[1])); $this->template = str_ireplace($match[0], $translation, $this->template); } }
function getFilesListTable($mpd) { $output = "\n<table>\n"; $ls = $mpd->getFiles(); foreach ($ls as $song) { $nextlink = 'class="body-clickable" onclick="playNext(\'' . $song->getFilename(URLESCAPE) . '\')"'; $addlink = 'class="body-clickable" onclick="addSong(\'' . $song->getFilename(URLESCAPE) . '\')"'; $output .= "<tr>"; $output .= "<td {$addlink}>" . Icons::getfilesAdd() . "</td>\n"; $output .= "<td {$nextlink}>"; $output .= Icons::getfilesPlayNext() . $song->toString(HTMLESCAPE) . "</td>"; $output .= "</tr>\n"; } $output .= '<tr><td/><td>'; $output .= 'Stream URL: '; $output .= '<input type="text" id="addStream"> '; $output .= '<button onclick="addStream(getElementById(\'addStream\').value)"> add</button>'; $output .= '</td></tr>'; $output .= "</table>\n"; return $output; }
/* @var $columns array */ /* @var $create_button boolean */ /* @var $return_uri string */ /* @var $buttons array */ /* @var $uri string */ $table_id = uniqid(); ?> <div class="container"> <div class="row col-md-12 custyle"> <h1> <?php echo $title; ?> <?php if (strlen($return_uri) > 0) { echo $h->anchor($return_uri, Icons::glyphicon('backward') . ' ' . $l->get_ucf("back"), array('class' => 'btn btn-info')); } ?> </h1> <table class="table table-bordered table-striped table-hover table-heading table-datatable" id="<?php echo $table_id; ?> "> <thead> <tr> <?php foreach ($columns as $column) { ?> <th><?php echo $app->lang->get_ucf((string) $column); ?>
function getfilesRemove() { $img = Icons::toImageFile("filesRemove"); $alt = "Remove the playlist"; return Icons::toImageTag($img, $alt); }
?> <?php echo sprintf2($credit_payment, 2); ?> </h3> <p> Credit Payment </p> </div> <div class="icon"> <?php /* $icon = Keywords::where('keyword', 'credit_payment')->first(); */ ?> <i class="fa"><?php /* $show = Icons::find($icon->alias); */ $show = Icons::find(Config::get('app.generic_keywords.credit_payment')); echo $show->icon_code; ?> </i> </div> </div> </div><!-- ./col --> </div> <!-- Summary end --> <!-- filter start --> <div class="box box-danger"> <div class="box-header"> <h3 class="box-title">Filter</h3> </div> <div class="box-body">
protected function grid_data() { $this->show_layout = false; $return_value = array('recordsTotal' => 0, 'recordsFiltered' => 0, 'data' => array()); $limit = Arr::get($_GET, 'length', 10); $offset = Arr::get($_GET, 'start', 0); $model = $this->app->models->factory($this->model); $filter_value = null; $return_uri = $this->return_uri; if ($this->filter_param !== null) { $filter_value = Arr::get($_GET, $this->filter_param); if ($filter_value === null) { throw new Exception("filter param {$this->filter_param} not specified"); } $model->where($this->filter_param, '=', new MongoId($filter_value)); $return_uri = str_replace("<id>", $filter_value, $return_uri); } if (isset($_POST['update_sort'])) { $this->update_sort($model->find_all()->as_array(), explode(",", $_POST['ids'])); $this->response->body("true"); $this->show_layout = false; return; } $cursor = $model->find_all(); $return_value['recordsTotal'] = $cursor->count(); $return_value['recordsFiltered'] = $return_value['recordsTotal']; $cursor->limit($limit); $cursor->skip($offset); if (isset($_GET['order']) && is_array($_GET['order']) && count($_GET['order']) > 0) { $sort = array(); foreach ($_GET['order'] as $order_config) { if (isset($this->columns[$order_config['column']])) { $sort[(string) $this->columns[$order_config['column']]] = $order_config['dir'] == 'desc' ? -1 : 1; } } } $return_value['sort'] = $sort; $cursor->sort($sort); $fields = $model->get_fields(); while ($item = $cursor->getNext()) { $item_data = array(); foreach ($this->columns as $column) { $val = ""; if ($column instanceof \Door\BSPanel\Data\IColumn) { $val = $column->render($item); } else { $val = $item->{$column}; if ($fields[$column]['type'] == 'boolean') { $val = Icons::show($val ? "ok" : "remove"); } if ($fields[$column]['type'] == 'date') { $val = date('d.m.Y', $val); } } $item_data[] = $val; } $buttons_text = ""; foreach ($this->buttons as $button) { $buttons_text .= " " . $button->render($this->app, array("<id>" => $item->pk())); } $item_data[] = $buttons_text; $return_value['data'][] = $item_data; } $this->response->headers("Content-Type", "application/json; charset=utf-8"); $this->response->body(json_encode($return_value)); }
/** * testProcess * * @return mixed * * @access public */ public function testProcess() { $escaper = $this->getMockAuraEscaper(); $links = $this->getMockBuilder('\\Aura\\Html\\Helper\\Links')->setConstructorArgs([$escaper])->getMock(); $links->expects($this->exactly(3))->method('add')->withConsecutive([$this->equalTo($this->sizeArray)], [$this->equalTo($this->favArray[0])], [$this->equalTo($this->favArray[1])]); $helper = new Icons($links); $helper->setTouchSizes($this->sizes); $helper->setTouchPattern($this->pattern); $helper->setFavicon($this->favicon); $ret = $helper->process(); $this->assertSame($ret, $helper); }