本文整理汇总了PHP中Open函数的典型用法代码示例。如果您正苦于以下问题:PHP Open函数的具体用法?PHP Open怎么用?PHP Open使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了Open函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: get_field_group
function get_field_group($label, $text_inputs, $class = 'col-md-2 form-group')
{
$output = '';
$output .= Open('div', array('class' => $class));
$output .= Open('div', array('class' => 'input-group'));
$output .= tagcontent('span', $label, array('class' => 'input-group-addon'));
foreach ($text_inputs as $attr_input) {
$output .= input($attr_input);
}
$output .= Close('div');
$output .= Close('div');
return $output;
}
示例2: Open
<?php
echo Open('form', array('action' => base_url('/pventa/index/update_mesa'), 'method' => 'post'));
echo Open('div', array('class' => 'col-md-12'));
echo input(array('type' => 'hidden', 'name' => 'mesa_id', 'value' => $mesa->mesa_id));
echo Open('div', array('class' => 'col-md-3'));
$input2 = input(array('type' => 'text', 'name' => 'mesa_nro', 'class' => 'form-control', 'ng-model' => 'mesa.nro', 'ng-required' => 'true', 'value' => $mesa->mesa_nro));
echo get_combo_group('NRO MESA: ', $input2, $class = 'col-md-12 form-group');
echo Close('div');
echo Open('div', array('class' => 'col-md-4'));
$combo_estado = combobox($estados, array('label' => 'est_msa_nombre', 'value' => 'est_msa_id'), array('class' => 'form-control input-sm', 'name' => 'estado_id'), TRUE, $mesa->mesa_estado);
echo get_combo_group('ESTADO', $combo_estado, 'col-md-12 form-group has-warning');
echo Close('div');
echo Open('div', array('class' => 'col-md-3'));
$input2 = input(array('type' => 'text', 'name' => 'mesa_capacidad', 'class' => 'form-control', 'ng-model' => 'mesa.capacidad', 'ng-required' => 'true', 'value' => $mesa->mesa_capacidad));
echo get_combo_group('CAPACIDAD: ', $input2, $class = 'col-md-12 form-group');
echo Close('div');
echo Open('div', array('class' => 'col-md-2'));
echo tagcontent('button', '<span class=""></span>MODIFICAR', array('id' => 'ajaxformbtn', 'class' => 'btn btn-primary', 'data-target' => 'result_out_mesas'));
echo Close('div');
echo Close('div');
echo Close('form');
示例3: info_msg
<?php
echo info_msg('Lista de Estudiante');
echo Open('form', array('action' => base_url('estudiante/crt_estudiante/get_crud_emp'), 'method' => 'post'));
echo tagcontent('button', 'Cargar', array('name' => 'btnreportes', 'class' => 'btn btn-danger col-md-1', 'id' => 'ajaxformbtn', 'type' => 'submit', 'data-target' => 'container-fluid'));
echo Close('form');
echo tagcontent('div', '', array('id' => 'container-fluid', 'class' => 'col-md-12'));
示例4: Open
echo '<div class="panel-heading">
<div class="row">
<div class="col-md-4">NUMEROS DE REGISTROS ENCONTRADOS : N° ' . $num_registros . '</div>
<div class="col-md-4 col-md-offset-4">' . $caja_texto . '</div>
</div>
</div>';
echo '<div id="div1">';
echo Open('table', array('id' => 'table', 'class' => "table table-fixed-header"));
echo '<thead>';
$thead = array('Nro', 'Estado Pago', 'CI', 'Paciente', 'Fecha Solcitud', 'Servicio', 'Motivo');
echo tablethead($thead);
echo '</thead>';
echo '<tbody>';
if (!empty($solicitud)) {
foreach ($solicitud as $val) {
echo Open('tr');
echo tagcontent('td', $val->id);
if ($val->estado_pago == 0) {
echo tagcontent('td', tagcontent('span', 'POR FACTURAR', array('class' => 'label label-default', 'style' => 'font-size:16px')));
} elseif ($val->estado_pago == 1) {
echo tagcontent('td', tagcontent('span', 'SIN PAGAR', array('class' => 'label label-warning', 'style' => 'font-size:16px')));
} elseif ($val->estado_pago == 2) {
echo tagcontent('td', tagcontent('span', 'PAGADA', array('class' => 'label label-success', 'style' => 'font-size:16px')));
} elseif ($val->estado_pago == 3) {
echo tagcontent('td', tagcontent('span', 'POR PLANILLAR', array('class' => 'label label-warning', 'style' => 'font-size:16px')));
} elseif ($val->estado_pago == 4) {
echo tagcontent('td', tagcontent('span', 'PLANILLADO', array('class' => 'label label-success', 'style' => 'font-size:16px')));
}
echo tagcontent('td', $val->id_cliente);
echo tagcontent('td', $val->nombres);
echo tagcontent('td', $val->fecha_atencion);
示例5: Close
echo Close('tr');
}
echo Close('table');
}
// echo $id_propuesta;
// echo $email;
echo Open('form', array('action' => base_url('propuestas/crt_propuestas/save_historial'), 'method' => 'post'));
echo input(array('type' => 'hidden', 'name' => 'id_pro', 'id' => 'id_pro', 'value' => $id_propuesta));
echo input(array('type' => 'hidden', 'name' => 'email', 'id' => 'email', 'value' => $email));
echo input(array('type' => 'hidden', 'name' => 'nombre', 'id' => 'nombre', 'value' => $nom));
echo warning_msg('OBSERVACIONES');
echo Open('div', array('class' => 'col-md-12'));
echo Open('div', array('class' => 'col-md-4 form-group'));
echo Open('div', array('class' => 'input-group'));
echo tagcontent('span', ' Fecha Observacion: ', array('class' => 'input-group-addon'));
echo input(array('name' => "fechaIn", 'id' => "fechaIn", 'type' => "text", 'class' => "form-control datepicker", 'placeholder' => "Fecha Cambio"));
echo Close('div');
echo Close('div');
$estados_combo = combobox($estados, array('label' => 'valor', 'value' => 'valor'), array('name' => 'estado', 'class' => 'form-control'), true);
echo Open('div', array('class' => 'col-md-4 form-group'));
echo Open('div', array('class' => 'input-group'));
echo tagcontent('span', '<b>Estados:</b> ', array('class' => 'input-group-addon'));
echo $estados_combo;
echo Close('div');
echo Close('div');
$textarea = tagcontent('textarea', '', array('class' => 'form-control', 'rows' => '8', 'placeholder' => 'Observaciones/Cambios en la tesis', 'name' => 'razon', 'id' => 'razon'));
echo tagcontent('div', $textarea, array('id' => 'textarea', 'class' => 'col-md-12'));
// echo Close('div');
echo Close('form');
echo tagcontent('button', 'Notificar', array('name' => 'btnreportes', 'class' => 'btn btn-info col-md-1', 'id' => 'ajaxformbtn', 'type' => 'submit', 'data-target' => 'container-fluid'));
//echo tagcontent('div', '', array('id' => 'container-fluid', 'class' => 'col-md-12'));
示例6: Open
<?php
echo Open('table', array('class' => 'table table-striped'));
echo Open('tr', array('ng-repeat' => 'grupo in grupos'));
echo tagcontent('td', '{{grupo}}');
echo Close('tr');
echo Close('table');
示例7: Open
position: absolute;
top:50%;
left:50%;
width:400px;
margin-left:-200px;
height:300px;
margin-top:-150px;
border:0px solid #808080;
padding:5px;
}
</style>
</head>
<body>
<?php
echo Open('div', array('class' => 'centrar'));
?>
<div class="container">
<!--<font style=" color: red; size:2px;">INGRESO AL SISTEMA </font>-->
<h4 style="color: blue;">INGRESO AL SISTEMA</h4>
<div class="row">
<div class="col-lg-4 col-sm-4 well">
<?php
$attributes = array("class" => "form-horizontal", "id" => "loginform", "name" => "loginform");
echo form_open(base_url("login/verifylogin"), $attributes);
?>
<fieldset>
<legend style="text-align: center">Login</legend>
<div class="form-group">
<div class="row colbox">
<div class="col-lg-4 col-sm-4">
示例8: Open
<?php
echo Open('div', array('class' => 'col-md-2'));
echo tagcontent('button', '<span class="glyphicon glyphicon-print"></span> Imprimir', array('id' => 'printbtn', 'data-target' => 'print', 'class' => 'btn btn-default pull-left'));
echo Close('div');
echo open('div', array('id' => 'print'));
echo Open('div', array('class' => 'col-md-12'));
$this->load->view('common/hmc_head/encabezado_cuenca');
echo Close('div');
echo Open('div', array('class' => 'col-md-12'));
echo '<center><b>CONCENTRACIÓN MENSUAL DE TERAPIA FÍSICA</b></center>';
echo '<center><b>UNIDAD MEDICA </b></center>';
echo '<center>Lcd. ' . $medico . '</center>';
echo '<center>Fecha de Generación: ' . $fecha_actual . '</center>';
echo Close('div');
echo Linebreak(2);
echo Open('table', array('border' => '1', 'style' => 'font-size:16px', 'width' => '100%', 'style' => 'text-align:center;'));
echo open("thead");
echo open("tr");
echo tagcontent("td", "DIAS MES", array('rowspan' => '4', 'id' => 'txt_vertical'));
echo tagcontent("td", "<b>Nº DE</b>");
echo tagcontent("td", "<b>GRADO</b>", array('colspan' => '5'));
echo tagcontent("td", "<b>PACIENTES</b>", array('colspan' => '5'));
echo tagcontent("td", "<b>TIPOS TERAPIAS</b>", array('colspan' => '12'));
echo close("tr");
echo open("tr");
echo tagcontent("td", "TERAPISTAS", array('rowspan' => '3', 'id' => 'txt_vertical'));
echo tagcontent("td", "M S A", array('rowspan' => '3', 'id' => 'txt_vertical'));
echo tagcontent("td", "M S P", array('rowspan' => '3', 'id' => 'txt_vertical'));
echo tagcontent("td", "CPTOS", array('rowspan' => '3', 'id' => 'txt_vertical'));
echo tagcontent("td", "F A M", array('rowspan' => '3', 'id' => 'txt_vertical'));
echo tagcontent("td", "CIVIL", array('rowspan' => '3', 'id' => 'txt_vertical'));
示例9: Open
echo Open('td', array('class' => 'danger'));
echo '<font color = brown ><b> FECHA DE PUBLICACION</b></font>';
echo Close('td');
echo Open('td', array('class' => 'info'));
echo $fechaIn;
echo input(array('type' => 'hidden', 'name' => 'fechaIn', 'id' => 'fechaIn', 'value' => $fechaIn));
echo Close('td');
echo Close('tr');
echo Open('tr');
echo Open('td', array('class' => 'danger'));
echo '<font color = brown ><b> DEPARTAMENTO</b></font>';
echo Close('td');
echo Open('td', array('class' => 'info'));
echo $departamento;
echo input(array('type' => 'hidden', 'name' => 'departamento', 'id' => 'departamento', 'value' => $id_dep));
echo Close('td');
echo Close('tr');
echo Open('tr');
echo Open('td', array('class' => 'danger'));
echo '<font color = brown ><b> PERIODO ACADEMICO</b></font>';
echo Close('td');
echo Open('td', array('class' => 'info'));
echo $periodo;
echo input(array('type' => 'hidden', 'name' => 'periodo', 'id' => 'periodo', 'value' => $id_perio));
echo Close('td');
echo Close('tr');
echo Close('div');
echo Close('form');
echo tagcontent('button', 'Guardar', array('name' => 'btnreportes', 'class' => 'btn btn-info col-md-2', 'id' => 'ajaxformbtn', 'type' => 'submit', 'data-target' => 'opcion'));
echo tagcontent('div', '', array('id' => 'opcion', 'class' => 'col-md-12'));
echo Close('div');
示例10: Close
// echo tagcontent('td','{{ comanda.cantidad * comanda.valor | number:2 }}', array('align'=>'right'));
echo Close('tr');
echo Close('table');
echo LineBreak(4);
echo Open('div', array('class' => 'col-md-12', 'style' => 'font-family:monospace;font-size:10px'));
echo tagcontent('div', '<CENTER>COCINA</CENTER>', array('class' => 'col-md-12'));
echo tagcontent('div', '<CENTER>ORDEN DE SERVICIO # {{datos.nro_orden}}</CENTER>', array('class' => 'col-md-12'));
echo tagcontent('div', 'Mesa: {{ datos.mesa_nro }}', array('class' => 'col-md-12'));
echo tagcontent('div', 'Camarero: {{ datos.empleado }}', array('class' => 'col-md-12'));
echo tagcontent('div', 'Nro. Pedido: {{ datos.id_comanda }}', array('class' => 'col-md-12'));
echo tagcontent('div', 'Fecha : {{ datos.fecha }}', array('class' => 'col-md-12'));
echo tagcontent('div', 'Cliente : {{ datos.cliente }}', array('class' => 'col-md-12'));
echo tagcontent('div', 'Identificación : {{ datos.ci }}', array('class' => 'col-md-12'));
echo Close('div');
echo Open('table', array('style' => 'font-family:monospace;font-size:10px', 'border' => 0));
echo Open('tr');
echo tagcontent('th', 'CANT', array('class' => 'text-center', 'width' => '30px'));
echo tagcontent('th', 'DESCRIPCIÓN', array('class' => 'text-center', 'width' => '200px'));
// echo tagcontent('th','V.Unit', array('class'=>'text-left'));
// echo tagcontent('th','V.Total', array('class'=>'text-left'));
echo Close('tr');
echo Open('tr', array('ng-repeat' => 'comanda in comandas'));
echo tagcontent('td', '{{ comanda.cantidad }}', array('align' => 'center'));
echo tagcontent('td', '{{ comanda.nombreUnico }}', array('align' => 'left'));
// echo tagcontent('td','{{ comanda.valor }}', array('align'=>'center'));
// echo tagcontent('td','{{ comanda.cantidad * comanda.valor | number:2 }}', array('align'=>'right'));
echo Close('tr');
echo Close('table');
echo LineBreak(4);
echo Close('div');
echo tagcontent('div', '', array('class' => 'col-md-2'));
示例11: Close
echo Close('table');
echo Open('div', array('class' => 'col-sm-12', 'align' => 'right', 'ng-hide' => 'envio'));
echo tagcontent('dir-pagination-controls', '', array('max-size' => '5', 'direction-links' => 'true', 'boundary-links' => 'true', 'on-page-change' => "myMethod(newPageNumber)"));
echo Close('div');
echo Close('div');
echo Open('div', array('class' => 'col-md-12', 'ng-show' => 'add_productos==true'));
echo tagcontent('div', '<h3>AGREGAR PRODUCTOS AL GENERICO</h3>', array('class' => 'label label-default col-md-12'));
echo tagcontent('div', '<h4>{{producto_generico.nombreUnico}}</h4>', array('class' => 'label label-success col-md-12'));
$input1 = input(array('type' => 'text', 'placeholder' => 'Codigo', 'class' => 'form-control', 'ng-model' => 'producto_find.codigo', 'ng-required' => 'true', 'style' => 'width:50%'));
$input1 .= input(array('type' => 'text', 'placeholder' => 'Cantidad', 'class' => 'form-control', 'ng-model' => 'producto_find.cantidad', 'ng-required' => 'true', 'style' => 'width:50%'));
echo get_combo_group('PRODUCTO :', $input1, $class = 'col-md-3 form-group');
echo tagcontent('button', '', array('class' => 'btn btn-primary glyphicon glyphicon-search col-md-1', 'type' => 'submit', 'ng-click' => 'findproduct(producto_find.codigo,producto_find.cantidad);'));
echo Open('table', array('class' => 'table table-striped table-condensed', 'border' => '1'));
echo Open('tr');
echo tagcontent('th', 'CODIGO', array('class' => 'col-md-1'));
echo tagcontent('th', 'DESCRIPCION', array('class' => 'col-md-7'));
echo tagcontent('th', 'CANTIDAD', array('class' => 'col-md-1'));
echo tagcontent('th', 'ACCION', array('class' => 'col-md-2'));
echo Close('tr');
echo Open('tr', array('ng-repeat' => 'producto in productos'));
echo tagcontent('td', '{{ producto.codigo }}');
echo tagcontent('td', '{{ producto.nombreUnico }}');
/*$input = input(array('type' => 'text', 'class' => 'form-control','ng-model'=>'producto.cantidad','ng-init'=>'producto.cantidad = 1'));
echo tagcontent('td', $input);*/
echo tagcontent('td', '{{ producto.cant }}');
$button = tagcontent('button', '', array('class' => 'btn btn-danger glyphicon glyphicon-remove col-md-2', 'type' => 'submit', 'ng-click' => 'quitproduct(producto.codigo);'));
echo tagcontent('td', $button);
echo Close('tr');
echo Close('table');
echo tagcontent('button', 'NUEVO', array('class' => 'btn btn-success col-md-2', 'type' => 'submit', 'ng-click' => 'nuevo();'));
echo Close('div');
示例12: Open
<?php
echo Open('body', array('class' => ''));
echo Open('div', array('class' => 'container', 'style' => 'margin-top:15px'));
$base_path = base_url();
$activemodule = 0;
$allcapabilities = $this->user->getAllCapabilities();
foreach ($allcapabilities as $tab) {
/* Solo cuando son modulos, ya que tambien pueden ser cargos(permisos)*/
if ($tab->tipo == 'module' and $tab->estaActiva == 1) {
$uritab = '';
if ($tab->ubicacion != '') {
$uritab = $tab->ubicacion;
}
if ($tab->interno == 1) {
$base_path = base_url();
} else {
$base_path = '';
}
if ($tab->acceso == 'noregistered' && empty($this->user->userid) || !empty($this->user->userid) && $this->user->essuperusuario == 1) {
$activemodule = 1;
echo get_item_f1($tab->capacidadview, base_url() . $tab->ubicacion, '<span style="font-size:10px">' . $tab->descripcion . '<span>', 'Abrir Modulo', $tab->icon . ' ', 'small-box bg-primary');
continue;
} elseif ($tab->acceso == 'all' || $tab->acceso == 'registered' && !empty($this->user->userid)) {
$activemodule = 1;
echo get_item_f1($tab->capacidadview, base_url() . $tab->ubicacion, '<span style="font-size:10px">' . $tab->descripcion . '<span>', 'Abrir Modulo', $tab->icon . ' ', 'small-box bg-green');
continue;
} elseif (!empty($this->user->userid)) {
// enrolled
// echo 'Paso x aqui';
$cap = $tab->capacidad;
示例13: array
<?php
$css = array(base_url('resources/bootstrap-3.2.0/css/bootstrap.min.css'), base_url('resources/sb_admin/css/plugins/metisMenu/metisMenu.min.css'), base_url('resources/sb_admin/css/sb-admin-2.css'), base_url('resources/sb_admin/font-awesome-4.1.0/css/font-awesome.min.css'), base_url('resources/bootstrap-3.2.0/css/bootstrap-theme.css'));
echo csslink($css);
foreach ($css_files as $file) {
?>
<link type="text/css" rel="stylesheet" href="<?php
echo $file;
?>
" />
<?php
}
foreach ($js_files as $file) {
?>
<script src="<?php
echo $file;
?>
"></script>
<?php
}
echo Open('div', array('class' => 'row', 'id' => 'container-fluid'));
echo $output;
echo Close('div');
//cierra div .row
//echo Close('div'); //cierra div .row
$js = array(base_url('resources/bootstrap-3.2.0/js/bootstrap.min.js'), base_url('resources/sb_admin/js/plugins/metisMenu/metisMenu.min.js'), base_url('resources/sb_admin/js/sb-admin-2.js'));
echo jsload($js);
示例14: array
$detalle_complicacion_field[] = array('name' => 'detallecomplicacion', 'id' => 'detallecomplicacion', 'class' => 'form-control', 'placeholder' => 'Ingrese texto');
echo get_field_group('Nota Evolucion', $detalle_complicacion_field, 'col-md-8 form-group');
echo "<a onclick='complicacion();' class='btn btn-default'><i class='glyphicon glyphicon-ok'></i></a>";
echo close("div");
echo open("div", array('class' => 'row'));
echo open("table", array('class' => 'table table-bordered', 'style' => 'width:100%; border:1px; margin:auto'));
echo open("thead", array('style' => 'background-color: #FCFFAF; text-align:center'));
echo tagcontent("td", "<b>FECHA</b>");
echo tagcontent("td", "<b>DETALLE</b>");
echo tagcontent("td", "<b>CONTROLES</b>");
echo close("thead");
echo "<tbody id='table_complicacion'></tbody>";
echo close("table");
echo close("div");
echo "<br><br>";
echo Open("div", array('class' => 'form-group'));
echo tagcontent('button', '<span class="glyphicon glyphicon-search"></span> Guardar', array('name' => 'btnreportes', 'class' => 'btn btn-primary col-md-12', 'id' => 'ajaxformbtn', 'type' => 'submit', 'data-target' => 'print'));
echo close("div");
echo close("form");
echo close("div");
echo tagcontent("div", '', array('id' => 'print', 'name' => 'print'));
?>
<script>
var url = "<?php
echo base_url();
?>
";
var load_diagnostico = function (datum) {
示例15: FetchArrayMotorListDB
function FetchArrayMotorListDB($query, $permit_type, $ownid, $stat)
{
include "includes/variables.php";
include_once "lib/multidbconnection.php";
$dbLinkFunc = Open($dbtype, $connecttype, $dbhost, $dbuser, $dbpass, $dbname);
switch ($dbtype) {
case "mssql":
$r = mssql_fetch_assoc($query);
break;
case "mysql":
// $r = mysql_fetch_assoc($query);
while ($r = mysql_fetch_assoc($query)) {
include 'tablecolor-inc.php';
$fullname = $r[owner_last_name] . ', ' . $r[owner_first_name] . ' ' . $r[owner_middle_name];
$fullname = stripslashes($fullname);
print "\n <tr bgcolor='{$varcolor}'>\n <td> {$r['motorized_motor_model']} </td>\n <td> {$r['motorized_motor_no']} </td>\n <td> {$r['motorized_chassis_no']} </td>\n <td> {$r['motorized_plate_no']} </td>\n <td> {$r['motorized_body_no']} </td>\n <td> {$r['body_color']} </td>\n <td> {$r['route']} </td>\n <td> {$r['linetype']} </td>\n <td> {$r['lto_number']} </td>\n <td> {$r['cr_number']} </td>\n <td>\n <a class=subnavwhite href='index.php?vekatt=1&part=4&itemID_=1221&addbiz=Select&old_owner_id={$r['motorized_operator_id']}&permit_type={$permit_type}&busItem={$permit_type}&mainfrm=Main&stat={$stat}&owner_id={$ownid}&mid={$r['motorized_motor_id']}'>\n Attach</a></td>\n </tr>\n\t";
}
break;
case "pg":
$r = pg_fetch_assoc($query);
break;
default:
$r = False;
break;
}
return $r;
}