本文整理汇总了PHP中anchor函数的典型用法代码示例。如果您正苦于以下问题:PHP anchor函数的具体用法?PHP anchor怎么用?PHP anchor使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了anchor函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: filteredgrid
function filteredgrid()
{
$this->rapyd->uri->keep_persistence();
$this->rapyd->load('datafilter', 'datagrid');
$filter = new DataFilter('', 'gpt_pro');
$filter->parr = new inputField('Parámetro', 'parr');
$filter->parr->rule = 'trim|required';
$filter->parr->clause = '';
//$filter->submit = new submitField('Buscar', 'submitbtn');
//$filter->submit->in='parr';
$filter->buttons('reset', 'search');
$filter->build();
$uri = anchor($this->url . 'dataedit/show/<raencode><#id_pro#></raencode>', '<#nom_pro#>', 'target="framedetrepo" onclick="$(\'#cajafiltro\').hide();"');
//$uri = anchor($this->url.'dataedit/show/<raencode><#id_pro#></raencode>','<#nom_pro#>');
$grid = new DataGrid('Especialidades farmaceuticas');
if (strlen($filter->parr->newValue) > 0) {
$dbparr = $this->db->escape($filter->parr->newValue);
$grid->db->where('MATCH(nom_pro,pres_pro,lab_pro,gen_pro,mono_pro) AGAINST (' . $dbparr . ')');
}
$grid->order_by('nom_pro');
$grid->per_page = 15;
$grid->column_orderby('Nombre', $uri, 'nom_pro', 'align="left"');
$grid->column_orderby('Presentación', 'pres_pro', 'pres_pro', 'align="left"');
$grid->column_orderby('Laboratorio', 'lab_pro', 'lab_pro', 'align="left"');
//$grid->column_orderby('Cod. Pro','cod_pro','cod_pro','align="left"');
//$grid->column_orderby('Gen. Pro','gen_pro','gen_pro','align="left"');
$grid->build();
$data['filtro'] = $filter->output . $grid->output;
$data['content'] = '<script type="text/javascript"> $(function(){ $("#cajafiltro").show(); }); </script>';
//$data['content'].= $acti->output;
$data['content'] .= '<IFRAME src="' . site_url('farmacia/gpt_pro/dummy') . '" width="100%" height="500" scrolling="auto" frameborder="0" name="framedetrepo">iframe no son soportados</IFRAME>';
$data['head'] = $this->rapyd->get_head() . script('jquery.js') . script('jquery.highlight.js');
$data['title'] = heading($this->titp);
$this->load->view('view_ventanas', $data);
}
示例2: render_field
function render_field($id, $data, $userId)
{
$type_hint = FALSE;
$result = preg_split('/\\./', $id);
if (count($result) > 1) {
$id = $result[0];
$type_hint = $result[1];
}
if ($type_hint == 'daterange') {
if (isset($data["{$id}-from"]) && isset($data["{$id}-to"])) {
$data[$id] = $data["{$id}-from"] . " to " . $data["{$id}-to"];
}
}
if (!isset($data[$id])) {
return format_value(NULL);
}
if ($type_hint == 'file') {
return anchor("admin/volunteers/download/{$userId}/{$id}", $data[$id]['name'], array('target' => '_blank'));
} else {
if ($type_hint == 'img') {
return '<div style="padding: 3px; border: 1px solid #ccc; float: left"><img src="' . site_url("admin/volunteers/download/{$userId}/{$id}") . '" height="200"/></div><br clear="all"/>';
}
}
return format_value($data[$id], $type_hint);
}
示例3: filteredgrid
function filteredgrid()
{
$this->datasis->modulo_id(40, 1);
$this->rapyd->load("datafilter2", "datagrid");
//
$filter = new DataFilter2("", "uejecutora");
$filter->codigo = new inputField("Código", "codigo");
$filter->codigo->size = 5;
//$filter->codigo->clause="likerigth";
$filter->nombre = new inputField("Nombre", "nombre");
$filter->nombre->size = 40;
$filter->nombre->clause = "likerigth";
//$filter->director = new inputField("Director", "director");
$filter->buttons("reset", "search");
$filter->build();
$uri = anchor('presupuesto/uejecuta/dataedit/show/<#codigo#>', '<#codigo#>');
$grid = new DataGrid("");
$grid->order_by("codigo", "asc");
$grid->column_orderby("Unidades Ejecutoras", $uri, "codigo", "align='left' ");
//$grid->column_orderby("Codigo administrativo","codigoadm" ,"codigoadm" ,"align='left'NOWRAP");
$grid->column_orderby("Nombre", "nombre", "nombre", "align='left'NOWRAP");
$grid->column_orderby("Director", "director", "director", "align='left'NOWRAP");
$grid->add("presupuesto/uejecuta/dataedit/create");
$grid->build();
$data['content'] = $grid->output;
$data['filtro'] = $filter->output;
$data['title'] = "Unidades Ejecutoras";
//" ";
$data["script"] = script("jquery.js") . "\n";
$data["head"] = $this->rapyd->get_head();
$this->load->view('view_ventanas', $data);
}
示例4: filteredgrid
function filteredgrid()
{
$this->rapyd->load("datafilter", "datagrid");
$this->rapyd->uri->keep_persistence();
$filter = new DataFilter("", 'pres');
$filter->numero = new inputField("Número", "numero");
$filter->buttons("reset", "search");
$filter->build();
$uri = anchor('nomina/pres/dataedit/show/<#cod_cli#>/<#tipo_doc#>/<#numero#>', '<#numero#>');
$grid = new DataGrid("");
$grid->order_by("numero", "asc");
$grid->per_page = 20;
$grid->column_orderby("Número", $uri, "numero");
$grid->column_orderby("Nombre", "nombre", "nombre", "align='left'NOWRAP");
$grid->column_orderby("Fecha", "<dbdate_to_human><#fecha#></dbdate_to_human>", "fecha", "align='center' ");
$grid->column_orderby("Tipo", "tipo_doc", "tipo_doc", "align='center' ");
$grid->column_orderby("Monto", "monto", "monto", "align='right' ");
// $grid->column("Observaciones","observ1");
// $grid->column(".","oberv2");
$grid->add("nomina/pres/dataedit/create");
$grid->build();
//$data['content'] = $filter->output.$grid->output;
$data['filtro'] = $filter->output;
$data['content'] = $grid->output;
$data['script'] = script("jquery.js") . "\n";
$data['title'] = " Adelantos de Prestaciones ";
$data["head"] = $this->rapyd->get_head();
$this->load->view('view_ventanas', $data);
}
示例5: filteredgrid
function filteredgrid()
{
$this->rapyd->load('datafilter', 'datagrid');
$filter = new DataFilter($this->titp, 'r_sector');
$filter->id = new inputField('Id', 'id');
$filter->id->rule = 'trim';
$filter->id->size = 13;
$filter->id->maxlength = 11;
$filter->descrip = new inputField('Descrip', 'descrip');
$filter->descrip->rule = 'trim';
$filter->descrip->size = 102;
$filter->descrip->maxlength = 100;
$filter->buttons('reset', 'search');
$filter->build();
$uri = anchor($this->url . 'dataedit/show/<raencode><#id#></raencode>', '<#id#>');
$grid = new DataGrid('');
$grid->order_by('id');
$grid->per_page = 40;
$grid->column_orderby('Id', "{$uri}", 'id', 'align="left"');
$grid->column_orderby('Descrip', "descrip", 'descrip', 'align="left"');
$grid->add($this->url . 'dataedit/create');
$grid->build();
$data['filtro'] = $filter->output;
$data['content'] = $grid->output;
$data['head'] = $this->rapyd->get_head() . script('jquery.js');
$data['title'] = $this->titp;
$this->load->view('view_ventanas', $data);
}
示例6: filteredgrid
function filteredgrid()
{
$this->rapyd->load("datafilter", "datagrid");
$this->rapyd->uri->keep_persistence();
$filter = new DataFilter("", 'nomina');
$filter->nombre = new inputField("Nombre", "nombre");
$filter->descrip = new inputField("Descripción", "descrip");
$filter->buttons("reset", "search");
$filter->build();
$uri = anchor('nomina/nomina/dataedit/show/<#numero#>/<#codigo#>/<#concepto#>/<#fecha#>', '<#numero#>');
$grid = new DataGrid("");
$grid->order_by("numero", "asc");
$grid->per_page = 20;
$grid->column_orderby("Número", $uri, "numero");
$grid->column_orderby("Nombre", "nombre", "nombre", "align='left'NOWRAP ");
$grid->column_orderby("Descripción", "descrip", "descrip", "align='left'NOWRAP ");
$grid->column_orderby("Formula", "formula", "formula", "align='left'NOWRAP ");
$grid->column_orderby("Fecha", "<dbdate_to_human><#fecha#></dbdate_to_human>", "fecha", "align='center'NOWRAP");
$grid->add("nomina/nomina/dataedit/create");
$grid->build();
//$data['content'] = $filter->output.$grid->output;
$data['filtro'] = $filter->output;
$data['content'] = $grid->output;
$data['script'] = script("jquery.js") . "\n";
$data['title'] = " Nomina ";
$data["head"] = $this->rapyd->get_head();
$this->load->view('view_ventanas', $data);
}
示例7: filteredgrid
function filteredgrid()
{
$this->rapyd->load("datafilter", "datagrid");
//$this->rapyd->uri->keep_persistence();
$filter = new DataFilter("Filtro de Carta", 'menu');
$filter->codigo = new inputField("Código", "codigo");
$filter->codigo->size = 15;
$filter->descri1 = new inputField("Descripción", "descri1");
$filter->descri1->size = 35;
$filter->grupo = new dropdownField("Grupo", "grupo");
$filter->grupo->option("", "");
$filter->grupo->options("SELECT grupo,descri1 FROM grme ORDER BY grupo ");
$filter->grupo->style = "width:180px";
$filter->buttons("reset", "search");
$filter->build();
$uri = anchor('hospitalidad/carta/dataedit/show/<#codigo#>', '<#codigo#>');
$grid = new DataGrid("Lista de Carta");
$grid->order_by("codigo", "asc");
$grid->per_page = 10;
$grid->column("Código", $uri);
$grid->column("Descripción ", "descri1");
$grid->column("Grupo", "descgru");
$grid->column("Base", "base");
$grid->column("Impuesto", "impuesto");
$grid->column("Precio", "precio");
$grid->column("Servicio", "servicio");
$grid->add("hospitalidad/carta/dataedit/create");
$grid->build();
$data['content'] = $filter->output . $grid->output;
$data['title'] = "<h1>Carta</h1>";
$data["head"] = $this->rapyd->get_head();
$this->load->view('view_ventanas', $data);
}
示例8: filteredgrid
function filteredgrid()
{
$this->rapyd->load("datafilter", "datagrid");
$this->rapyd->uri->keep_persistence();
$filter = new DataFilter("Buscar", 'tarjeta');
$filter->tipo = new dropdownField("Tipo", "tipo");
$filter->tipo->options("SELECT tipo, nombre from tarjeta ORDER BY tipo");
$filter->tipo->style = "width:180px";
$filter->buttons("reset", "search");
$filter->build();
$uri = anchor('ventas/tarjeta/dataedit/show/<#tipo#>', '<#tipo#>');
$grid = new DataGrid("Lista de Formas de Pago");
$grid->order_by("nombre", "asc");
$grid->per_page = 10;
$grid->column("Tipo", $uri);
$grid->column("Nombre", "nombre", "nombre");
$grid->column("Comisión", "comision");
$grid->column("Impuesto", "impuesto");
$grid->column("Mensaje", "mensaje");
$grid->add("ventas/tarjeta/dataedit/create");
$grid->build();
$data['content'] = $filter->output . $grid->output;
$data['title'] = "<h1>Formas de Pago</h1>";
$data["head"] = $this->rapyd->get_head();
$this->load->view('view_ventanas', $data);
}
示例9: listing
function listing()
{
$this->load->model('MProduto', '', TRUE);
$qry = $this->MProduto->listProduto();
$table = $this->table->generate($qry);
$tmpl = array('table_open' => '<table id="tabela">');
$this->table->set_template($tmpl);
$this->table->set_empty(" ");
$this->table->set_heading('Editar', 'Codigo', 'Nome', 'Categoria', 'Unidade', 'Minimo', 'Excluir');
$table_row = array();
foreach ($qry->result() as $produto) {
$table_row = NULL;
$table_row[] = anchor('Produto/edit/' . $produto->id_produto, '<span class="ui-icon ui-icon-pencil"></span>');
$table_row[] = $produto->codigo;
$table_row[] = $produto->nome_produto;
$table_row[] = $produto->nome_categoria;
$table_row[] = $produto->nome_apresentacao;
$table_row[] = $produto->qtd_minima;
$table_row[] = anchor('Produto/delete/' . $produto->id_produto, '<span class="ui-icon ui-icon-trash"></span>', "onClick=\" return confirm('Tem certeza que deseja remover o registro?')\"");
$this->table->add_row($table_row);
}
$table = $this->table->generate();
$data['title'] = "Listagem de Produtos - Controle de Estoque";
$data['headline'] = "Listagem de Produtos";
$data['include'] = 'Produto_listing';
$data['data_table'] = $table;
$this->load->view('template', $data);
}
示例10: filteredgrid
function filteredgrid()
{
$this->rapyd->load("datafilter", "datagrid");
$this->rapyd->uri->keep_persistence();
$filter = new DataFilter("Filtro por Número", 'apan');
$filter->tipo = new inputField("Número", "numero");
$filter->buttons("reset", "search");
$filter->build();
$uri = anchor('inventario/anticipos/dataedit/show/<#numero#>', '<#numero#>');
$grid = new DataGrid("Lista de Aplicación de Anticipos");
$grid->order_by("numero", "asc");
$grid->per_page = 20;
$grid->column("Número", $uri);
$grid->column("Fecha", "fecha");
$grid->column("Tipo", "tipo");
$grid->column("Clipro", "clipro");
$grid->column("Nombre", "nombre");
$grid->column("Monto", "monto");
$grid->column("Reintegro", "reinte");
$grid->column("Observaciones", "observa1");
$grid->column(".", "observa2");
$grid->column("Transacc", "transac");
$grid->column("Estampa", "estampa");
$grid->column("Hora", "hora");
$grid->column("Usuario", "usuario");
$grid->add("inventario/anticipos/dataedit/create");
$grid->build();
$data['content'] = $filter->output . $grid->output;
$data['title'] = "<h1>Aplicación de Anticipos</h1>";
$data["head"] = $this->rapyd->get_head();
$this->load->view('view_ventanas', $data);
}
示例11: informNotifications
/**
* Grabs all new notifications and adds them to the sender's inform queue.
*
* This method gets called by dashboard's hooks file to display new
* notifications on every pageload.
*
* @since 2.0.18
* @access public
*
* @param Gdn_Controller $Sender The object calling this method.
*/
public static function informNotifications($Sender)
{
$Session = Gdn::session();
if (!$Session->isValid()) {
return;
}
$ActivityModel = new ActivityModel();
// Get five pending notifications.
$Where = array('NotifyUserID' => Gdn::session()->UserID, 'Notified' => ActivityModel::SENT_PENDING);
// If we're in the middle of a visit only get very recent notifications.
$Where['DateUpdated >'] = Gdn_Format::toDateTime(strtotime('-5 minutes'));
$Activities = $ActivityModel->getWhere($Where, 0, 5)->resultArray();
$ActivityIDs = array_column($Activities, 'ActivityID');
$ActivityModel->setNotified($ActivityIDs);
$Sender->EventArguments['Activities'] =& $Activities;
$Sender->fireEvent('InformNotifications');
foreach ($Activities as $Activity) {
if ($Activity['Photo']) {
$UserPhoto = anchor(img($Activity['Photo'], array('class' => 'ProfilePhotoMedium')), $Activity['Url'], 'Icon');
} else {
$UserPhoto = '';
}
$Excerpt = Gdn_Format::plainText($Activity['Story']);
$ActivityClass = ' Activity-' . $Activity['ActivityType'];
$Sender->informMessage($UserPhoto . Wrap($Activity['Headline'], 'div', array('class' => 'Title')) . Wrap($Excerpt, 'div', array('class' => 'Excerpt')), 'Dismissable AutoDismiss' . $ActivityClass . ($UserPhoto == '' ? '' : ' HasIcon'));
}
}
示例12: filteredgrid
function filteredgrid()
{
$this->rapyd->load("datafilter", "datagrid");
$this->rapyd->uri->keep_persistence();
$filter = new DataFilter("", 'civa');
$filter->fecha = new dateonlyField("Fecha", "fecha", 'd/m/Y');
$filter->fecha->clause = $filter->fecha->clause = "where";
$filter->fecha->dbformat = "Y-m-d";
$filter->fecha->size = 12;
$filter->tasa = new inputField("Tasa", "Tasa");
$filter->tasa->size = 12;
$filter->tasa->maxlength = 6;
$filter->buttons("reset", "search");
$filter->build();
$uri = anchor('tesoreria/civa/dataedit/show/<#fecha#>', '<dbdate_to_human><#fecha#></dbdate_to_human>');
$grid = new DataGrid("");
$grid->order_by("fecha", "asc");
$grid->per_page = 20;
$grid->column_orderby("Fecha", $uri, "fecha", "align='center'");
$grid->column_orderby("Tasa", "tasa", "tasa", "align='right' ");
$grid->column_orderby("Tasa Reducida ", "redutasa", "redutasa", "align='right' ");
$grid->column_orderby("Tasa Adicional", "sobretasa", "sobretasa", "align='right' ");
$grid->add("tesoreria/civa/dataedit/create");
$grid->build();
//echo $grid->db->last_query();
//$data['content'] = $filter->output.$grid->output;
$data['filtro'] = $filter->output;
$data['content'] = $grid->output;
$data['script'] = script("jquery.js") . "\n";
$data['title'] = "Tasa de IVA";
$data["head"] = $this->rapyd->get_head();
$this->load->view('view_ventanas', $data);
}
示例13: index
public function index()
{
$offset = $this->general_lib->get_offset();
$limit = $this->general_lib->get_limit();
$total = $this->user_mdl->count_all();
$xdata['action'] = 'user/search' . $this->_filter();
$xdata['action_delete'] = 'user/delete' . $this->_filter();
$xdata['add_btn'] = anchor('user/add', '<span class="glyphicon glyphicon-plus"></span> Tambah', array('class' => 'btn btn-success btn-sm'));
$xdata['delete_btn'] = '<button id="delete-btn" class="btn btn-danger btn-sm"><span class="glyphicon glyphicon-trash"></span> Delete Checked</button>';
$this->table->set_template(tbl_tmp());
$head_data = array('fullname' => 'Fullname', 'username' => 'Username', 'level_name' => 'Level', 'ip_login' => 'Last IP Login', 'user_agent' => 'Last User Agent', 'date_login' => 'Last Login', 'status_name' => 'Status');
$heading[] = form_checkbox(array('id' => 'selectAll', 'value' => 1));
$heading[] = '#';
foreach ($head_data as $r => $value) {
$heading[] = anchor('user' . $this->_filter(array('order_column' => "{$r}", 'order_type' => $this->general_lib->order_type($r))), "{$value} " . $this->general_lib->order_icon("{$r}"));
}
$heading[] = 'Action';
$this->table->set_heading($heading);
$result = $this->user_mdl->get()->result();
$i = 1 + $offset;
foreach ($result as $r) {
$this->table->add_row(array('data' => form_checkbox(array('name' => 'check[]', 'value' => $r->id)), 'width' => '10px'), $i++, $r->fullname, $r->username, $r->level_nama, $r->ip_login, $r->user_agent, $r->date_login, '<label class="label label-' . ($r->status_kode == 'ON' ? 'success' : 'danger') . '">' . $r->status_nama . '</label>', anchor('user/edit/' . $r->id . $this->_filter(), 'Edit') . " | " . anchor('user/delete/' . $r->id . $this->_filter(), 'Delete', array('onclick' => "return confirm('you sure')")));
}
$xdata['table'] = $this->table->generate();
$xdata['total'] = page_total($offset, $limit, $total);
$config = pag_tmp();
$config['base_url'] = site_url("user" . $this->_filter());
$config['total_rows'] = $total;
$config['per_page'] = $limit;
$this->pagination->initialize($config);
$xdata['pagination'] = $this->pagination->create_links();
$data['content'] = $this->load->view('user_list', $xdata, true);
$this->load->view('template', $data);
}
示例14: roleController_afterRolesInfo_handler
/**
*
*
* @param $Sender
*/
public function roleController_afterRolesInfo_handler($Sender)
{
if (!Gdn::session()->checkPermission('Garden.Settings.Manage')) {
return;
}
?>
<div class="row form-group">
<div class="label-wrap-wide">
<div class="label"><?php
echo t('Enable Private Communities');
?>
</div>
<div class="info"><?php
echo t('Once enabled, only members will see inside your community.');
?>
</div>
</div>
<div class="input-wrap-right">
<span id="private-community-toggle">
<?php
if (c('Garden.PrivateCommunity', false)) {
echo wrap(anchor('<div class="toggle-well"></div><div class="toggle-slider"></div>', 'settings/privatecommunity/on/' . Gdn::session()->TransientKey()), 'span', array('class' => "toggle-wrap toggle-wrap-on"));
} else {
echo wrap(anchor('<div class="toggle-well"></div><div class="toggle-slider"></div>', 'settings/privatecommunity/off/' . Gdn::session()->TransientKey()), 'span', array('class' => "toggle-wrap toggle-wrap-off"));
}
?>
</span>
</div>
</div>
<?php
}
示例15: filteredgrid
function filteredgrid()
{
$this->rapyd->load("datafilter", "datagrid");
$filter = new DataFilter("Filtro de Sucursales", 'sucu');
$filter->codigo = new inputField("Código", "codigo");
$filter->codigo->size = 10;
$filter->sucursal = new inputField("Sucursal", "sucursal");
$filter->sucursal->size = 20;
$filter->buttons("reset", "search");
$filter->build();
$uri = anchor('supervisor/sucu/dataedit/show/<#codigo#>', '<#codigo#>');
$grid = new DataGrid("Lista de Sucursales");
$grid->order_by("codigo", "asc");
$grid->per_page = 15;
$grid->column("Sucursal", $uri);
$grid->column("Nombre", "sucursal");
$grid->column("URL", "url");
$grid->column("Prefijo", "prefijo");
$grid->column("Proteo", "proteo");
$grid->add("supervisor/sucu/dataedit/create");
$grid->build();
$data['content'] = $filter->output . $grid->output;
$data['title'] = "<h1>Sucursal</h1>";
$data["head"] = $this->rapyd->get_head();
$this->load->view('view_ventanas', $data);
}