• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP heading函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中heading函数的典型用法代码示例。如果您正苦于以下问题:PHP heading函数的具体用法?PHP heading怎么用?PHP heading使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了heading函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: wol

 function wol()
 {
     if (!extension_loaded('sockets')) {
         show_error('La extension "sockets" no esta cargada, debe cargarla para poder usar estas opciones');
     }
     $this->load->library('rapyd');
     $this->rapyd->load('dataform');
     $form = new DataForm('supervisor/monitoreo/wol/process');
     $form->mac = new inputField('Dirección MAC', 'mac');
     $form->mac->append('Ejemplo: 00:01:02:03:04:05');
     $form->mac->rule = 'required|mac';
     $form->mac->maxlength = 17;
     $form->mac->size = 20;
     $form->submit('btnsubmit', 'Enviar');
     $form->build_form();
     if ($form->on_success()) {
         $mac = $form->mac->newValue;
         $rt = $this->_wol($mac);
         if (!$rt) {
             $form->error_string = $this->error;
             $form->build_form();
             $salida = $form->output . br();
         } else {
             $salida = $form->output . br() . 'Señal enviada satisfactoriamente';
         }
     } else {
         $salida = $form->output;
     }
     $this->rapyd->jquery[] = '$(".inputnum").numeric(".");';
     $data['content'] = $salida;
     $data['title'] = heading('Envio de señal de encendido por LAN');
     $data['head'] = $this->rapyd->get_head();
     $this->load->view('view_ventanas', $data);
 }
开发者ID:codethics,项目名称:proteoerp,代码行数:34,代码来源:monitoreo.php


示例2: testTimesAdded

    public function testTimesAdded()
    {
        echo '<h3>Checking Times</h3>';
        $sql = 'SELECT `flighttime`
			  FROM ' . TABLE_PREFIX . 'pireps 
			  WHERE `accepted`=' . PIREP_ACCEPTED;
        $results = DB::get_results($sql);
        $this->added_time = 0;
        foreach ($results as $row) {
            $this->added_time = Util::AddTime($this->added_time, $row->flighttime);
        }
        heading('Time added, all PIREPS at once');
        $this->assertNotEqual(0, $this->added_time);
        heading('Time added, pilot by pilot');
        // Now calculate by PIREP
        $allpilots = PilotData::GetAllPilots();
        $total = 0;
        foreach ($allpilots as $pilot) {
            $p_hours = PilotData::getPilotHours($pilot->pilotid);
            $total = Util::AddTime($total, $p_hours);
        }
        $this->assertNotEqual(0, $total);
        heading('Comparing pilot to pilot vs all PIREPS');
        $this->assertEqual($total, $this->added_time);
        heading('Compare to STAT total hours');
        StatsData::UpdateTotalHours();
        $this->assertEqual($total, StatsData::TotalHours());
        echo '<br />';
    }
开发者ID:deanstalker,项目名称:phpVMS,代码行数:29,代码来源:times_test.php


示例3: predict

 function predict($opponentCode)
 {
     $this->data['ResultsHeading'] = heading("Results", 2, 'class="text-center bg-danger"');
     //---- get PIT overall average and get PIT last 5 games average
     //Our Team
     $ourCode = "PIT";
     $steelersStandings = $this->teams->getFromCode($ourCode);
     $overallAvg = $steelersStandings->Pct1;
     //----end get PIT overall average and last 5 games
     $this->load->model('scores');
     $lastFive = $this->scores->getAvgLast5($ourCode);
     ///--------Predict our points
     $avgAgainstOpponent = $this->scores->getAvgLast5Opponent($ourCode, $opponentCode);
     if ($avgAgainstOpponent == 0) {
         $pointsUs = (0.7 * $overallAvg + 0.2 * $lastFive) / 0.9;
     } else {
         $pointsUs = 0.7 * $overallAvg + 0.2 * $lastFive + 0.1 * $avgAgainstOpponent;
     }
     $ourTeam = array('TeamName' => $ourCode, 'AveragePts' => $pointsUs);
     $this->data['OurTeamArray'] = $ourTeam;
     ///---------end Prediction for Our Team
     /////------------Predict Opponent points
     $opponentStandings = $this->teams->getFromCode($opponentCode);
     $overallOpponentAvg = $opponentStandings->Pct1;
     $lastFiveOpponent = $this->scores->getAvgLast5($opponentCode);
     //different when standings updated
     $avgAgainstUs = $this->scores->getAvgLast5Opponent($opponentCode, $ourCode);
     if ($avgAgainstUs == 0) {
         $pointsOpponent = (0.7 * $overallOpponentAvg + 0.2 * $lastFiveOpponent) / 0.9;
     } else {
         $pointsOpponent = 0.7 * $overallOpponentAvg + 0.2 * $lastFiveOpponent + 0.1 * $avgAgainstUs;
     }
     $opponent = array('TeamName' => $opponentCode, 'AveragePts' => $pointsOpponent);
     $this->data['OpponentArray'] = $opponent;
 }
开发者ID:BCIT-Projects,项目名称:Comp4711WebDev,代码行数:35,代码来源:Welcome.php


示例4: filteredgrid

 function filteredgrid()
 {
     $this->pi18n->cargar('i18n', 'dataedit');
     $this->rapyd->load('datafilter', 'datagrid');
     $this->rapyd->uri->keep_persistence();
     $this->pi18n->msj('rifci', 'RIF o C.I.');
     $filter = new DataFilter('Filtro', 'i18n');
     $filter->modulo = new inputField('M&oacute;dulo', 'modulo');
     $filter->modulo->size = 20;
     $filter->buttons('reset', 'search');
     $filter->build();
     $uri = anchor('supervisor/i18n/dataedit/modify/<#id#>', '<#id#>');
     $grid = new DataGrid('Internacionalizaci&oacute;n');
     $grid->order_by('id', 'asc');
     $grid->per_page = 20;
     $grid->column_orderby('ID', $uri, 'id');
     $grid->column_orderby('Modulo', 'modulo', 'modulo');
     $grid->column_orderby('M&eacute;todo', 'metodo', 'metodo');
     $grid->column_orderby('Pa&iacute;s', 'pais', 'pais');
     $grid->column_orderby('Campo', 'campo', 'campo');
     $grid->add('supervisor/i18n/dataedit/create');
     $grid->build();
     $data['content'] = $filter->output . $grid->output;
     $data['content'] .= $this->pi18n->fallas();
     $data['title'] = heading('Internacionalizaci&oacute;n');
     $data['head'] = $this->rapyd->get_head();
     $this->load->view('view_ventanas', $data);
 }
开发者ID:codethics,项目名称:proteoerp,代码行数:28,代码来源:i18n.php


示例5: dataedit

 function dataedit()
 {
     $this->rapyd->load('dataedit');
     $this->rapyd->uri->keep_persistence();
     $edit = new DataEdit('Cheque emitido', 'bmov');
     $status = $edit->_status;
     if ($status != 'show') {
         show_error('Error de par&aacute;metros');
     }
     $edit->back_url = site_url('finanzas/conforch/filteredgrid');
     $edit->fecha = new DateonlyField('Fecha', 'fecha', 'd/m/Y');
     $edit->fecha->insertValue = date('Y-m-d');
     $edit->benefi = new inputField('A nombre de', "benefi");
     $edit->benefi->group = 'Detalle del cheque';
     $edit->banco = new inputField("Del Banco", "banco");
     $edit->banco->group = 'Detalle del cheque';
     $edit->numcuent = new inputField("N&uacute;mero Cuenta", "numcuent");
     $edit->numcuent->in = 'banco';
     $edit->numcuent->group = 'Detalle del cheque';
     $edit->numero = new inputField("N&uacute;mero de cheque", "numero");
     $edit->numero->group = 'Detalle del cheque';
     $edit->monto = new inputField("Por un Monto de", "monto");
     $edit->monto->group = 'Detalle del cheque';
     $edit->nombre = new inputField('Proveedor', 'nombre');
     $edit->concepto = new inputField("Por Concepto", "concepto");
     $edit->anulado = new inputField("Anulado", "anulado");
     $edit->buttons('back');
     $edit->build();
     $data['content'] = $edit->output;
     $data['title'] = heading('Consulta de Cheques');
     $data['head'] = $this->rapyd->get_head();
     $this->load->view('view_ventanas', $data);
 }
开发者ID:codethics,项目名称:proteoerp,代码行数:33,代码来源:conforch.php


示例6: filteredgrid

 function filteredgrid()
 {
     $this->rapyd->uri->keep_persistence();
     $this->rapyd->load('datafilter', 'datagrid');
     $filter = new DataFilter('', 'gpt_pro');
     $filter->parr = new inputField('Par&aacute;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&oacute;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);
 }
开发者ID:codethics,项目名称:proteoerp,代码行数:35,代码来源:gpt_pro.php


示例7: dataedit

 function dataedit()
 {
     $this->rapyd->load('dataedit');
     $edit = new DataEdit($this->tits, 'edifubica');
     $edit->back_url = site_url($this->url . 'filteredgrid');
     $edit->post_process('insert', '_post_insert');
     $edit->post_process('update', '_post_update');
     $edit->post_process('delete', '_post_delete');
     $edit->pre_process('insert', '_pre_insert');
     $edit->pre_process('update', '_pre_update');
     $edit->pre_process('delete', '_pre_delete');
     $edit->id_edif = new dropdownField('Edificaci&oacute;n', 'id_edif');
     $edit->id_edif->option('', 'Seleccionar');
     $edit->id_edif->options('SELECT id,TRIM(nombre) AS nombre FROM edif ORDER BY nombre');
     $edit->id_edif->rule = 'max_length[11]';
     $edit->descripcion = new inputField('Descripci&oacute;n', 'descripcion');
     $edit->descripcion->rule = 'max_length[50]';
     $edit->descripcion->size = 52;
     $edit->descripcion->maxlength = 50;
     $edit->buttons('modify', 'save', 'undo', 'delete', 'back', 'add');
     $edit->build();
     $data['content'] = $edit->output;
     $data['head'] = $this->rapyd->get_head();
     $data['title'] = heading($this->tits);
     $this->load->view('view_ventanas', $data);
 }
开发者ID:codethics,项目名称:proteoerp,代码行数:26,代码来源:edifubica.php


示例8: database

 /**
  * database function.
  * 
  * @access public
  * @return void
  */
 public function database()
 {
     $this->output->enable_profiler(true);
     $this->load->database();
     $this->load->dbutil();
     $this->load->dbforge();
     $data['title'] = $this->system_model->get('app_name');
     $data['breadcrumbs'] = array(array('data' => anchor('/', $this->system_model->get('app_name')), 'mode' => 'unavailable'), array('data' => anchor('install', ucfirst(lang('install'))), 'mode' => 'unavailable'), array('data' => anchor('install/database', ucfirst(lang('install') . ' ' . lang('database'))), 'mode' => 'current'));
     $html = heading(ucfirst(lang('install')) . ' ' . lang('database'), 1);
     $current = $this->migration->current();
     if (is_null($current)) {
         $html .= div($this->migration->error_string(), 'alert-box error');
     } else {
         $html .= div('Klubb database version: ' . $current, 'alert-box success');
     }
     $tables = $this->db->list_tables();
     foreach ($tables as $table) {
         $fields = $this->db->list_fields($table);
         array_unshift($fields, strong('Fält:'));
         $fields = ul($fields, array('class' => 'inline-list'));
         $html .= div(heading('Tabell: ' . $table, 4) . $fields, 'radius panel');
     }
     $data['html'] = $html;
     $this->system_model->view('template', $data);
 }
开发者ID:nyfagel,项目名称:klubb,代码行数:31,代码来源:install.php


示例9: index

 function index()
 {
     $this->rapyd->load('dataform');
     $filter = new dataForm('buscador/index/procesar');
     $filter->valor = new inputField('Valor', 'valor');
     $filter->valor->rule = 'required';
     $filter->valor->size = 20;
     $filter->submit('btnsubmit', 'Buscar');
     $filter->build_form();
     $sal = '';
     if ($filter->on_success()) {
         $this->load->library('table');
         $this->table->set_heading('Tabla', 'Campo', 'Coincidencias');
         $valor = $this->db->escape($filter->valor->newValue);
         $tables = $this->db->list_tables();
         foreach ($tables as $table) {
             $fields = $this->db->list_fields($table);
             foreach ($fields as $field) {
                 $mSQL = "SELECT COUNT(*) AS cana FROM `{$table}` WHERE `" . $field . "` = {$valor}";
                 $cana = $this->datasis->dameval($mSQL);
                 if ($cana > 0) {
                     $this->table->add_row($table, $field, $cana);
                 }
             }
         }
         $sal = $this->table->generate();
     }
     $data['content'] = $filter->output . $sal;
     $data['title'] = heading('Busca un valor en toda la base de datos');
     $data['head'] = $this->rapyd->get_head();
     $this->load->view('view_ventanas', $data);
 }
开发者ID:codethics,项目名称:proteoerp,代码行数:32,代码来源:buscador.php


示例10: filteredgrid

 function filteredgrid()
 {
     $this->rapyd->load('dataform', 'datagrid');
     $this->load->library('encrypt');
     $filter = new DataForm('ejecutasql/filteredgrid/process');
     $filter->sql = new textareaField('', 'sql');
     $filter->sql->cols = 90;
     $filter->sql->rows = 9;
     $filter->sql->rule = 'required';
     $filter->submit('btnsubmit', 'Ejecutar');
     $filter->build_form();
     $salida = '';
     if ($filter->on_success()) {
         $data = array();
         $mSQL = $filter->sql->value;
         $link = @mysql_connect($this->db->hostname, $this->db->username, $this->db->password) or die('Error de coneccion');
         mysql_select_db($this->db->database, $link) or die('Base de datos no seleccionable');
         $result = mysql_query($mSQL, $link);
         if (!$result) {
             $salida = mysql_errno($link) . ": " . mysql_error($link);
         } else {
             if (is_resource($result)) {
                 $num_rows = mysql_num_rows($result);
                 $afectados = 0;
             } elseif (is_bool($result)) {
                 $num_rows = 0;
                 $afectados = mysql_affected_rows();
             } else {
                 $num_rows = 0;
                 $afectados = 0;
             }
             if ($num_rows > 0) {
                 $colunas = mysql_num_fields($result);
                 while ($row = mysql_fetch_assoc($result)) {
                     $data[] = $row;
                 }
                 $grid = new DataGrid("Filas : {$num_rows}, Columnas : {$colunas} ,Afectados :{$afectados}", $data);
                 $grid->per_page = 100000;
                 foreach ($data[0] as $campos => $value) {
                     $grid->column($campos, $campos);
                 }
                 $grid->build();
                 $salida = $grid->output;
                 if (stristr($mSQL, 'SELECT')) {
                     $mSQL2 = $this->encrypt->encode($mSQL);
                     $salida .= "<form action='/../../proteoerp/xlsauto/repoauto2/'; method='post'>\n \t\t\t\t\t\t<input size='100' type='hidden' name='mSQL' value='{$mSQL2}'>\n \t\t\t\t\t\t<input type='submit' value='Descargar a Excel' name='boton'/>\n \t\t\t\t\t\t</form>";
                 }
             } elseif ($afectados > 0) {
                 $salida = "Filas afectadas {$afectados}";
             } else {
                 $salida = 'Esta consulta no genero resultados';
             }
         }
     }
     $data['content'] = $filter->output . $salida;
     $data['title'] = heading('Consulta SQL');
     $data['head'] = $this->rapyd->get_head();
     $this->load->view('view_ventanas', $data);
 }
开发者ID:codethics,项目名称:proteoerp,代码行数:59,代码来源:ejecutasql.php


示例11: heading_nb_level2

function heading_nb_level2($l1tag, $l1url, $l2tag, $l2url)
{
    global $site, $siteuri;
    echo "<a href='{$siteuri}'>";
    heading($site . " &lt; " . $l1tag . " &lt; " . $l2tag);
    nb_top();
    nb_level2($l1tag, $l1url, $l2tag, $l2url);
}
开发者ID:atlcurling,项目名称:tkt,代码行数:8,代码来源:functions.php


示例12: print_logr

function print_logr()
{
    global $env, $logr;
    if ($env == 'test') {
        heading('Log');
        print_r($logr);
    }
}
开发者ID:gruner,项目名称:doozer,代码行数:8,代码来源:docs.php


示例13: index

 function index()
 {
     $this->rapyd->load('dataform', 'datatable', 'datagrid');
     $this->load->library('table');
     $base_process_uri = $this->rapyd->uri->implode_uri("base_uri", "gfid", "orderby");
     $filter = new DataForm($this->rapyd->uri->add_clause($base_process_uri, "search"));
     $filter->title('Elija una tabla');
     $filter->attributes = array('onsubmit' => 'is_loaded()');
     $filter->tabla = new dropdownField("Tabla", "tabla");
     $filter->tabla->option("pers", "Personal");
     $filter->tabla->option("nomina", "Nomina");
     $filter->tabla->option("sprv", "Proveedores");
     $filter->tabla->option("abonotros", "Abono Otros");
     $filter->tabla->clause = "";
     //$filter->obra = new dropdownField("Obra", "depto");
     //$filter->obra->db_name='depto';
     //$filter->obra->clause="where";
     //$filter->obra->option(" ","Todos");
     //$filter->obra->options("SELECT depto, descrip FROM dpto ORDER BY depto ");
     //$filter->obra->operator="=";
     //$filter->status = new dropdownField("Status","status");
     //$filter->status->option("","Todos");
     //$filter->status->option("A","Activos");
     //$filter->status->option("I","Inactivos");
     //$filter->status->style='width:100px';
     $filter->submit('btnsubmit', 'Descargar');
     $filter->build_form();
     if ($this->rapyd->uri->is_set("search")) {
         $table = $filter->tabla->newValue;
         $mSQL = "DESCRIBE {$table}";
         $query = $this->db->query($mSQL);
         if ($query->num_rows() > 0) {
             foreach ($query->result_array() as $row) {
                 $data[] = $row;
             }
         }
         function ractivo($field)
         {
             $data2 = array('name' => 'campos[]', 'id' => 'c' . $field, 'value' => $field, 'checked' => FALSE, 'style' => 'margin:5px');
             $retorna = form_checkbox($data2);
             return $retorna;
         }
         $grid = new DataGrid("Resultados", $data);
         $grid->use_function('ractivo', 'ucwords');
         $grid->column('Campos', '<ucwords><#Field#></ucwords>');
         $grid->column('Mostrar', "<ractivo><#Field#></ractivo>", 'align="center"');
         $grid->build();
         $tabla = $grid->output;
         $filter->build_form();
         $conten = $filter->output . form_open("nomina/rpers/crear/{$table}") . $tabla . form_submit('mysubmit', 'Generar') . form_close();
     } else {
         $conten = $filter->output;
     }
     $data['content'] = $conten;
     $data['title'] = heading('Reporte');
     $data["head"] = script("jquery.js") . $this->rapyd->get_head();
     $this->load->view('view_ventanas', $data);
 }
开发者ID:codethics,项目名称:proteoerp,代码行数:58,代码来源:rpers.php


示例14: index

 function index()
 {
     $data = array();
     $data['header'] = '';
     $data['content'] = $this->load->view('view_verificador', $data, true);
     $data['footer'] = '';
     $data['script'] = script('jquery-min.js');
     $data['script'] .= phpscript('nformat.js');
     $data['script'] .= script('jquery.bootgrid.min.js');
     $data['style'] = style('jquery.bootgrid.min.css');
     $data['panel'] = '';
     $data['title'] = heading('Verificador de precios');
     $this->load->view('view_ventanasjq', $data);
     /*
     		// Filter grid
     		$this->rapyd->load('datafilter','datagrid');
     		$filter = new DataFilter('Consulta de Precios', 'sinv');
     
     		$filter->Descripcion = new inputField('Descripcion','decrip');
     		$filter->clave->rule      ='max_length[50]';
     		$filter->clave->size      =7;
     		$filter->clave->maxlength =5;
     
     		$filter->marca = new inputField('Marca','marca');
     		$filter->marca->rule      ='max_length[30]';
     		$filter->marca->size      =32;
     		$filter->marca->maxlength =30;
     
     		$filter->buttons('reset', 'search');
     		$filter->build();
     
     		$uri = anchor($this->url.'dataedit/show/<raencode><#id#></raencode>','<#id#>');
     
     		$grid = new DataGrid('');
     		$grid->db->select('codigo', 'descrip','unidad','base1','precio1-base1 iva','precio1');
     		$grid->db->order_by('codigo');
     
     		$grid->db->order_by('codigo');
     		$grid->per_page = 40;
     
     		$grid->column_orderby('C&oacute;digo'   ,'codigo'  ,'codigo',  'align="left"');
     		$grid->column_orderby('Descripcion'     ,'nombre'  ,'descrip', 'align="left"');
     		$grid->column_orderby('Medida'          ,'unidad'  ,'unidad',  'align="left"');
     		$grid->column_orderby('Precio'          ,'base1'   ,'base1',   'align="right"');
     		$grid->column_orderby('I.V.A.'          ,'iva'     ,'iva',     'align="right"');
     		$grid->column_orderby('Precio de Venta' ,'precio1' ,'precio1', 'align="right"');
     
     		$grid->add($this->url.'dataedit/create');
     		$grid->build();
     
     		$data['filtro']  = $filter->output;
     		$data['content'] = $grid->output;
     		$data['head']    = $this->rapyd->get_head().script('jquery.min.js');
     		$data['title']   = heading($this->titp);
     		$this->load->view('view_ventanas', $data);
     */
 }
开发者ID:codethics,项目名称:proteoerp,代码行数:57,代码来源:verificador.php


示例15: testFindSchedules

 public function testFindSchedules()
 {
     heading('findSchedules');
     $data = SchedulesData::findSchedules(array());
     $this->assertNotEqual($data, false);
     heading('Find disabled schedules');
     $data = SchedulesData::findSchedules(array('s.enabled' => 0));
     $this->assertNotEqual($data, false);
 }
开发者ID:ryanunderwood,项目名称:phpVMS,代码行数:9,代码来源:ops_test.php


示例16: test_heading_object_attributes

 public function test_heading_object_attributes()
 {
     // Test array of attributes
     $this->assertEquals('<h2 class="bar" id="foo">foobar</h2>', heading('foobar', 2, array('class' => 'bar', 'id' => 'foo')));
     $test = new stdClass();
     $test->class = "bar";
     $test->id = "foo";
     $this->assertEquals('<h2 class="bar" id="foo">foobar</h2>', heading('foobar', 2, $test));
 }
开发者ID:DavBfr,项目名称:BlogMVC,代码行数:9,代码来源:html_helper_test.php


示例17: motd

function motd()
{
    $motd = join('', file(MOTD_FILE));
    $stat = stat(MOTD_FILE);
    $mtime = $stat['mtime'];
    if ($mtime > time() - 60 * 60 * 24 * 7 and trim($motd)) {
        return heading(2, "Message of the Day") . "<blockquote>" . wiki_render(date('M d, Y @ H:i', $mtime) . "\n\n" . $motd) . "</blockquote>";
    }
}
开发者ID:nbtscommunity,项目名称:phpfnlib,代码行数:9,代码来源:motd.php


示例18: index

 /**
  * index function.
  * 
  * @access public
  * @return void
  */
 public function index()
 {
     $this->output->enable_profiler(false);
     $this->benchmark->mark('auth_start');
     if (!$this->auth->loggedin()) {
         redirect('user/login');
     }
     $uid = intval($this->auth->userid());
     $this->benchmark->mark('auth_end');
     $user = $this->user_model->get_user($uid);
     $greeting = '';
     if (isset($user['firstname'])) {
         $greeting = ' ' . $user['firstname'];
         $data['firstname'] = $user['firstname'];
     } else {
         $greeting = ' ' . $user['username'];
         $data['firstname'] = $user['firstname'];
     }
     $data['title'] = $this->system_model->get('app_name');
     $data['stylesheets'] = array('buttons_purple');
     $data['partial'] = 'home';
     $data['org_name'] = $this->system_model->get('org_name');
     $data['app_name'] = $this->system_model->get('app_name');
     $data['members'] = $this->member_model->count_members();
     $data['users'] = $this->user_model->count_users();
     $memberdata = heading(ucfirst(lang('members')), 5);
     $ofeachtype = array();
     $this->benchmark->mark('members_process_start');
     foreach ($this->member_model->get_types() as $type) {
         $count = $this->member_model->count_members_type($type['id']);
         array_push($ofeachtype, $count . ' ' . strtolower($type['plural']));
     }
     $data['membertypes'] = $ofeachtype;
     $memberdata .= p(ucfirst($data['org_name']) . ' har totalt ' . anchor('members', $data['members'] . ' ' . lang('members')) . ' varav:');
     $memberdata .= ul($data['membertypes'], array('class' => 'disc'));
     $memberdata .= button_group(array(button_anchor('members', ucfirst(lang('administer')) . ' ' . lang('members'), 'radius'), button_anchor('member/register', ucfirst(lang('register_member')), 'radius')), 'radius');
     $this->benchmark->mark('members_process_end');
     $userdata = heading(ucfirst(lang('users')), 5);
     $this->benchmark->mark('users_process_start');
     $userdata .= p(ucfirst($data['app_name']) . ' har totalt ' . anchor('admin/users', $data['users'] . ' ' . lang('users')) . '.');
     $active = $this->user_model->get_active();
     $ausers = array();
     foreach ($active as $aid) {
         $auser = $this->user_model->get_user($aid);
         array_push($ausers, $auser['firstname'] . ' ' . $auser['lastname']);
     }
     $data['loggedon'] = $ausers;
     $userdata .= heading(ucfirst(lang('currently_logged_on')) . ':', 6) . ul($ausers, array('class' => 'disc'));
     $userdata .= button_group(array(button_anchor('admin/users', ucfirst(lang('administer')) . ' ' . lang('users'), 'radius'), button_anchor('user/create', ucfirst(lang('create_user')), 'radius')), 'radius');
     $this->benchmark->mark('users_process_end');
     $content = heading(ucfirst(lang('welcome')) . $greeting . '!', 1);
     $content .= row(columns($memberdata, 6) . columns($userdata, 6));
     $html = $content;
     $data['html'] = $html;
     $this->system_model->view('template', $data);
 }
开发者ID:nyfagel,项目名称:klubb,代码行数:62,代码来源:home.php


示例19: index

 function index()
 {
     $this->rapyd->load('datatable', 'dataform');
     $form = new DataForm('supermercado/cargahisto/index/process');
     $form->title('Este modulo permite cargar manual las ventas sacadas de los historicos de las cajas');
     $form->fecha = new dateonlyField('Fecha', 'fecha', 'd/m/Y');
     $form->fecha->db_format = 'Ymd';
     $form->fecha->insertValue = date('Y-m-d');
     $form->fecha->size = 11;
     $form->fecha->autocomplete = false;
     $form->fecha->rule = 'required|chfecha';
     $form->hf = new uploadField('Facturas (<b>hf</b>YYYYMMCCCAAA.dbf)', 'hf');
     $form->hf->upload_path = 'tmp';
     $form->hf->upload_root = '/';
     $form->hf->rule = 'required';
     $form->hf->allowed_types = 'csv|dbf';
     $form->hi = new uploadField('Art&iacute;culos (<b>hi</b>YYYYMMCCCAAA.dbf)', 'hi');
     $form->hi->upload_path = 'tmp';
     $form->hi->upload_root = '/';
     $form->hi->rule = 'required';
     $form->hi->allowed_types = 'csv|dbf';
     $form->hs = new uploadField('Pagos (<b>hs</b>YYYYMMCCCAAA.dbf)', 'hs');
     $form->hs->upload_path = 'tmp';
     $form->hs->upload_root = '/';
     $form->hs->rule = 'required';
     $form->hs->allowed_types = 'csv|dbf';
     $form->submit('btnsubmit', 'Procesar');
     $form->build_form();
     if ($form->on_success()) {
         $fecha = $form->fecha->newValue;
         $encab = false;
         if (!empty($form->hf->upload_data['full_path'])) {
             if (substr($form->hf->upload_data['file_name'], 0, 2) == 'hf') {
                 $encab = true;
                 $this->_cargadbf($form->hf->upload_data['full_path'], $fecha);
                 unlink($form->hf->upload_data['full_path']);
             } else {
                 $form->error = 'Encabezado primero';
                 $form->build_form();
             }
         }
         if (!empty($form->hi->upload_data['full_path']) && $encab) {
             $this->_cargadbf($form->hi->upload_data['full_path'], $fecha);
             unlink($form->hi->upload_data['full_path']);
         }
         if (!empty($form->hs->upload_data['full_path']) && $encab) {
             $this->_cargadbf($form->hs->upload_data['full_path'], $fecha);
             unlink($form->hs->upload_data['full_path']);
         }
     }
     $data['content'] = $form->output;
     $data['title'] = heading('Cargar ventas de los hist&oacute;ricos de cajas');
     $data['script'] = script('jquery-1.2.6.js');
     $data['head'] = $this->rapyd->get_head();
     $this->load->view('view_ventanas', $data);
 }
开发者ID:codethics,项目名称:proteoerp,代码行数:56,代码来源:cargahisto.php


示例20: index

 function index()
 {
     $data = array();
     $data['header'] = '';
     $data['content'] = $this->load->view('view_lprecios', $data, true);
     $data['footer'] = '';
     $data['script'] = '';
     $data['panel'] = '';
     $data['title'] = heading('Consulta de precios');
     $this->load->view('view_ventanasjqm', $data);
 }
开发者ID:codethics,项目名称:proteoerp,代码行数:11,代码来源:lprecios.php



注:本文中的heading函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP headline函数代码示例发布时间:2022-05-15
下一篇:
PHP headers_sent函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap