예제 #1
0
function content($data)
{
    global $curuserid;
    ?>

    <?php 
    if (_has('message')) {
        ?>
        <p class="message"><?php 
        echo _data('message');
        ?>
</p>
    <?php 
    }
    ?>
    <h3>Изменение данных команды</h3>
    <hr />
    <p>Для вашего удобства (изготовления бейджей, бронирования гостиницы, оформления призов), мы предлагаем вам заполнить следующую анкету.</p>
    <p>Для участника (тренера, руководителя) можно просто ввести имя тренера, а можно выбрать зарегистрированного пользователя из выпадающего списка. Для этого просто начните ввод в поле. </p>
    <p>Рекомендуем, чтобы как минимум один участник был выбран из списка зарегистрированных пользователей. В этом случае в его профиле желательно указать дополнительные личные данные.</p>
    <hr />
    <form action="./team/update/" name="frmTeamUpdate" method="post">
        <input type="hidden" name="teamid" value="<?php 
    echo _data('team')->getId();
    ?>
" />
        <table class="enter">
            <tr><td>Название (*)</td>
                <td><input type="text" maxlen="60" size="20" name="teamname" value="<?php 
    echo _data('team')->getName();
    ?>
" /></td>
                <td id="teamname-messages">&nbsp;</td></tr>
                <!--<validator target="teamname" required=" - обязательно!" maxlength=" - 60 символов max;60" change="true" place="teamname-messages" />-->
            <tr><td>Учебное заведение (*)</td>
                <td><input type="text" maxlen="100" size="20" name="teameducation" value="<?php 
    echo _data('team')->getEducation();
    ?>
" /></td>
                <td id="teameducation-messages">&nbsp;</td></tr>
                <!--<validator target="teameducation" required=" - обязательно!" maxlength=" - 100 символов max;100" change="true" place="teameducation-messages" />-->
            <tr><td>Город (*)</td>
                <td><input type="text" maxlen="50" size="20" name="teamcity" value="<?php 
    echo _data('team')->getCity();
    ?>
" /></td>
                <td id="teamcity-messages">&nbsp;</td></tr>
                <!--<validator target="teamcity" required=" - обязательно!" maxlength=" - 50 символов max;50" change="true" place="teamcity-messages" />-->

            <tr><td colspan="3"><hr /></td></tr>

            <tr><td>Участник 1</td>
                <td>
                    <?php 
    $member = _data('team')->getContestantA();
    ?>
                    <input type="hidden" name="teamcontestantamemberid" value="<?php 
    echo $member->getId();
    ?>
" />
                    <input type="hidden" name="teamcontestantamemberrole" value="3" />
                    <input type="hidden" name="teamcontestantamemberteamid" value="<?php 
    echo _data('team')->getId();
    ?>
" />
                    <?php 
    combobox('teamcontestantamemberuserid', $member->getUser()->isEmpty() ? '' : $member->getUser()->getId(), $member->getUser()->isEmpty() ? $member->getName() : $member->getUser()->getNickName(), './user/list/json?nickname=%q', '');
    ?>
                </td><td>
                    <?php 
    if (!$member->getUser()->isEmpty()) {
        if ($member->getUser()->getId() == $curuserid && (_permission_allow_change_info || $is_admin == 1)) {
            ?>
                                    <a href="./changeinfo.php">Изменить данные</a>
                                <?php 
        } elseif ($member->getUser()->getId() != $curuserid && (_permission_allow_view_user_info || 1 != $is_admin)) {
            ?>
                                    <a href="./userinfo.php?userid=<?php 
            echo $member->getUser()->getId();
            ?>
">Просмотреть данные</a>
                                <?php 
        }
    }
    ?>
</td></tr>
            <tr><td>Участник 2</td>
                <td>
                    <?php 
    $member = _data('team')->getContestantB();
    ?>
                    <input type="hidden" name="teamcontestantbmemberid" value="<?php 
    echo $member->getId();
    ?>
" />
                    <input type="hidden" name="teamcontestantbmemberrole" value="4" />
                    <input type="hidden" name="teamcontestantbmemberteamid" value="<?php 
    echo _data('team')->getId();
    ?>
" />
                    <?php 
    combobox('teamcontestantbmemberuserid', $member->getUser()->isEmpty() ? '' : $member->getUser()->getId(), $member->getUser()->isEmpty() ? $member->getName() : $member->getUser()->getNickName(), './user/list/json?nickname=%q', '');
    ?>
                </td><td>
                    <?php 
    if (!$member->getUser()->isEmpty()) {
        if ($member->getUser()->getId() == $curuserid && (_permission_allow_change_info || $is_admin == 1)) {
            ?>
                                    <a href="./changeinfo.php">Изменить данные</a>
                                <?php 
        } elseif ($member->getUser()->getId() != $curuserid && (_permission_allow_view_user_info || 1 != $is_admin)) {
            ?>
                                    <a href="./userinfo.php?userid=<?php 
            echo $member->getUser()->getId();
            ?>
">Просмотреть данные</a>
                                <?php 
        }
    }
    ?>
</td></tr>
            <tr><td>Участник 3</td>
                <td>
                    <?php 
    $member = _data('team')->getContestantC();
    ?>
                    <input type="hidden" name="teamcontestantcmemberid" value="<?php 
    echo $member->getId();
    ?>
" />
                    <input type="hidden" name="teamcontestantcmemberrole" value="5" />
                    <input type="hidden" name="teamcontestantcmemberteamid" value="<?php 
    echo _data('team')->getId();
    ?>
" />
                    <?php 
    combobox('teamcontestantcmemberuserid', $member->getUser()->isEmpty() ? '' : $member->getUser()->getId(), $member->getUser()->isEmpty() ? $member->getName() : $member->getUser()->getNickName(), './user/list/json?nickname=%q', '');
    ?>
                </td><td>
                    <?php 
    if (!$member->getUser()->isEmpty()) {
        if ($member->getUser()->getId() == $curuserid && (_permission_allow_change_info || $is_admin == 1)) {
            ?>
                                    <a href="./changeinfo.php">Изменить данные</a>
                                <?php 
        } elseif ($member->getUser()->getId() != $curuserid && (_permission_allow_view_user_info || 1 != $is_admin)) {
            ?>
                                    <a href="./userinfo.php?userid=<?php 
            echo $member->getUser()->getId();
            ?>
">Просмотреть данные</a>
                                <?php 
        }
    }
    ?>
</td></tr>

            <tr><td colspan="3"><hr /></td></tr>

            <tr><td>Тренер</td>
                <td>
                    <?php 
    $member = _data('team')->getCoach();
    ?>
                    <input type="hidden" name="teamcoachmemberid" value="<?php 
    echo $member->getId();
    ?>
" />
                    <input type="hidden" name="teamcoachmemberrole" value="1" />
                    <input type="hidden" name="teamcoachmemberteamid" value="<?php 
    echo _data('team')->getId();
    ?>
" />
                    <?php 
    combobox('teamcoachmemberuserid', $member->getUser()->isEmpty() ? '' : $member->getUser()->getId(), $member->getUser()->isEmpty() ? $member->getName() : $member->getUser()->getNickName(), './user/list/json?nickname=%q', '');
    ?>
                </td><td>
                    <?php 
    if (!$member->getUser()->isEmpty()) {
        if ($member->getUser()->getId() == $curuserid && (_permission_allow_change_info || $is_admin == 1)) {
            ?>
                                    <a href="./changeinfo.php">Изменить данные</a>
                                <?php 
        } elseif ($member->getUser()->getId() != $curuserid && (_permission_allow_view_user_info || 1 != $is_admin)) {
            ?>
                                    <a href="./userinfo.php?userid=<?php 
            echo $member->getUser()->getId();
            ?>
">Просмотреть данные</a>
                                <?php 
        }
    }
    ?>
</td></tr>
            <tr><td>Руководитель</td>
                <td>
                    <?php 
    $member = _data('team')->getHead();
    ?>
                    <input type="hidden" name="teamheadmemberid" value="<?php 
    echo $member->getId();
    ?>
" />
                    <input type="hidden" name="teamheadmemberrole" value="2" />
                    <input type="hidden" name="teamheadmemberteamid" value="<?php 
    echo _data('team')->getId();
    ?>
" />
                    <?php 
    combobox('teamheadmemberuserid', $member->getUser()->isEmpty() ? '' : $member->getUser()->getId(), $member->getUser()->isEmpty() ? $member->getName() : $member->getUser()->getNickName(), './user/list/json?nickname=%q', '');
    ?>
                </td><td>
                    <?php 
    if (!$member->getUser()->isEmpty()) {
        if ($member->getUser()->getId() == $curuserid && (_permission_allow_change_info || $is_admin == 1)) {
            ?>
                                    <a href="./changeinfo.php">Изменить данные</a>
                                <?php 
        } elseif ($member->getUser()->getId() != $curuserid && (_permission_allow_view_user_info || 1 != $is_admin)) {
            ?>
                                    <a href="./userinfo.php?userid=<?php 
            echo $member->getUser()->getId();
            ?>
">Просмотреть данные</a>
                                <?php 
        }
    }
    ?>
</td></tr>

            <tr><td>&nbsp;</td>
            <td style="text-align:center"><input type="submit" class="submit" name="btnTeamUpdate" value="изменить" onclick="return checkUpdateTeamForm();" /></td><td>&nbsp;</td></tr>
        </table>
        <script>
            (function() {
                var members = ['contestanta', 'contestantb', 'contestantc', 'coach', 'head'];

                window.checkUpdateTeamForm = function() {
                    return checkRequired() && checkCurrentUser() && checkEqualUsers();
                };

                var checkRequired = function() {
                    return KIR.validator('frmTeamUpdate').validate();
                };

                var checkCurrentUser = function() {
                    var result = false;
                    $.each(members, function() {
                        <?php 
    echo $curuserid;
    ?>
 == $(['[name=team', this, 'memberuserid]'].join('')).val()
                            ? result = true
                            : void(0);
                    });
                    return result || confirm('Вы собираетесь удалить себя из состава команды. После этого все операции с командой будут вам недоступны. Продолжить?');
                };

                var checkEqualUsers = function() {
                    return (function(result) {
                        if (!result) { alert('В вашей команде существуют совпадающие пользователи.'); }
                        return result;
                    })(
                        (function(checker) {
                            return (function($ids, $names) {
                                return checker($ids) && checker($names);
                            })(
                                    members.map(function(name) {
                                        return $(['[name=team', name, 'memberuserid]'].join(''));
                                    })
                                ,   members.map(function(name) {
                                        return $(['[name=team', name, 'memberuseridEdit]'].join(''));
                                    })
                            )
                        })(
                            function($fields) {
                                var result = true;
                                $.each($fields, function(i, $fieldA) {
                                    $.each($fields, function(j, $fieldB) {
                                        if (i != j && $fieldA.val() == $fieldB.val() && fieldA.val() !== '') {
                                            result = false;
                                        }
                                    });
                                });
                                return result;
                            }
                        )
                    );
                };

            })();
        </script>
    </form>

<?php 
}
예제 #2
0
        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'));
echo tagcontent('span', '<span class="glyphicon glyphicon-random"></span> Servicio Consultado:', array('class' => 'input-group-addon'));
echo $tiposerv_combo;
echo Close('div');
echo Close('div');
echo Open('div', array('class' => 'col-md-3 form-group'));
echo Open('div', array('class' => 'input-group has-success'));
echo tagcontent('span', '<span class="glyphicon glyphicon-check"></span> Estado: ', array('class' => 'input-group-addon'));
?>
                <select name ="op_estado" class="combobox form-control input-sm">
                    <option value="1">Archivada</option>
                    <option value="0">Anulada</option>
                </select>
                <?php 
echo Close('div');
echo Close('div');
$lista_empleado_combo = combobox($lista_empleado, array('label' => 'nom_empleado', 'value' => 'id'), array('name' => 'profesionaldiv', 'id' => 'profesionaldiv', 'class' => 'combobox form-control input-sm'), true);
echo Open('div', array('class' => 'col-md-4 form-group'));
echo Open('div', array('class' => 'input-group has-success'));
echo tagcontent('span', '<span class="glyphicon glyphicon-user"></span> Doctor Responsable:', array('class' => 'input-group-addon'));
echo $lista_empleado_combo;
echo Close('div');
echo Close('div');
echo input(array('type' => 'hidden', 'name' => 'id_paciente', 'id' => 'id_paciente', 'value' => ''));
// envio el id delpaciente
echo input(array('type' => 'hidden', 'name' => 'tipo_identificacion', 'id' => 'tipo_identificacion', 'value' => ''));
// envio el id delpaciente
echo Open('div', array('class' => 'col-md-4 form-group'));
echo Open('div', array('class' => 'input-group has-success'));
echo tagcontent('span', '<span class="glyphicon glyphicon-user"></span> Paciente: ', array('class' => 'input-group-addon'));
echo input(array('id' => 'ci', 'name' => 'ci', 'class' => 'form-control input-sm typeahead', 'placeholder' => 'Num. identificacion', 'callback' => 'refresh_cart_load_client', 'data-url' => base_url('common/autosuggest/get_client_by_name/%QUERY'), 'style' => 'position: absolute;'));
echo Close('div');
예제 #4
0
echo Close('div');
echo Close('div');
echo Open('div', array('class' => 'col-md-4 form-group'));
echo Open('div', array('class' => 'input-group'));
echo tagcontent('span', $a . ' Fecha Publicacion: ', array('class' => 'input-group-addon'));
echo input(array('name' => "fechaIn", 'id' => "fechaIn", 'type' => "text", 'class' => "form-control datepicker", 'placeholder' => "Fecha Publicacion"));
echo Close('div');
echo Close('div');
$tiposdepar_combo = combobox($depar, array('label' => 'nombre_depart', 'value' => 'id_dep'), array('name' => 'id_dep', '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>Departamento:</b> ', array('class' => 'input-group-addon'));
echo $tiposdepar_combo;
echo Close('div');
echo Close('div');
$periodos_combo = combobox($periodo, array('label' => 'siglas', 'value' => 'id_per'), array('name' => 'id_periodo', '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>Periodo Academico:</b> ', array('class' => 'input-group-addon'));
echo $periodos_combo;
echo Close('div');
echo Close('div');
echo Close('div');
echo warning_msg('Detalles de la Tesis');
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', $a . 'Titulo : ', array('class' => 'input-group-addon'));
echo input(array('type' => 'text', 'name' => 'title', 'id' => 'title', 'placeholder' => 'Escriba titulo de  la tesis', 'class' => 'form-control'));
echo Close('div');
echo Close('div');
예제 #5
0
<!--estos campos heredan un formulario que la vista es paciente_search_form y el form es general debido a aque la url cambia para--> 
<!--poder cambiar de funcionalidades con la misma interfaz-->
<?php 
//        echo input(array('type'=>'hidden','name'=>'id_paciente','id'=>'id_paciente_forms','value'=>'')); // envio el id delpaciente
$tipo_doc_combo = combobox($tipo_formulario, array('label' => 'nombre', 'value' => 'id'), array('name' => 'tipo_documento', 'id' => 'tipo_documento', 'class' => 'combobox form-control input-sm'), true);
echo Open('div', array('class' => 'col-md-4 form-group'));
echo Open('div', array('class' => 'input-group has-success'));
echo tagcontent('span', '<span class="glyphicon glyphicon-random"></span> Tipo de documento:', array('class' => 'input-group-addon'));
echo $tipo_doc_combo;
echo Close('div');
echo Close('div');
?>
        <div class="col-md-3 form-group">
            <div class="input-group has-success">
                <span class="input-group-addon">
                    <span class="glyphicon glyphicon-calendar"></span> 
                    Fecha Creacion: 
                </span>
                <input style="width: 50%" placeholder="Desde" class="form-control input-sm" 
                       data-provide="datepicker" id="fechaIn" name="fechaIn">
                <input style="width: 50%" placeholder="Hasta" class="form-control input-sm" data-provide="datepicker" 
                       id="fechaFin" name="fechaFin">
            </div>
        </div>
    

예제 #6
0
echo open("table", array("class" => 'table'));
echo open("tr");
echo open("td");
$combo_mes = combobox($mes, array('label' => 'mes', 'value' => 'id'), array('class' => 'form-control', 'name' => 'mes', 'id' => 'mes'), false);
echo get_combo_group('Mes', $combo_mes, 'col-md-12 form-group');
echo close("td");
echo open("td");
$combo_dia = combobox($dia, array('label' => 'id', 'value' => 'id'), array('class' => 'form-control', 'name' => 'dia', 'id' => 'dia'), false);
echo get_combo_group('Día', $combo_dia, 'col-md-12 form-group');
echo close("td");
echo open("td");
$combo_terapias = combobox($tipos_terapia, array('label' => 'tipo', 'value' => 'id'), array('class' => 'form-control', 'name' => 'tipos_terapias', 'id' => 'tipos_terapias'), false);
echo get_combo_group('Tipos Terapias', $combo_terapias, 'col-md-12 form-group');
/*SUBTERAPIAS Combobox dinanico. JLQ 12/04/2016*/
echo Open('div', array('id' => 'div_subterapias', 'style' => 'display:none;'));
$combo_subterapias = combobox(array(), array('label' => 'tipo', 'value' => 'id'), array('class' => 'form-control', 'name' => 'tipos_subterapias', 'id' => 'tipos_subterapias'), true);
echo get_combo_group('SubTerapias', $combo_subterapias, 'col-md-12 form-group');
echo close("div");
//div_subterapias
echo close("td");
echo close("tr");
echo open("tr");
echo open("td");
?>

<select name ='subsecuente' class='form-control' id='subsecuente'>
    <option value='0'>Seleccione</option>
    <option value='1'>Subsecuente</option>
    <option value='2'>Una vez</option>
</select>
<?php 
예제 #7
0
    echo "<option></option>";
    foreach ($arrDados as $key => $value) {
        $selected = $valorSelecionado == $key ? "selected=\"selected\"" : null;
        echo "<option value=\"{$key}\"  {$selected}>{$value}</option>";
    }
}
# Array com os dados de nossa combo
$arrCombo = array("scs" => "São Caetano do Sul", "sa" => "Santo André", "sbc" => "São Bernardo do Campo");
$valor_selecionado = "sbc";
?>
<!DOCTYPE html>
<html lang="pt-br">
    <head>
        <title>Formulário: combobox</title>
        <meta charset="utf-8">
    </head>
    <body>

        <form action="form-action.php" method="post">
            <p>
                <select name="cidades">
                    <?php 
combobox($arrCombo, $valor_selecionado);
?>
                </select>
                <input type="submit" value="Submit me!" />
            </p>
        </form>

    </body>
</html>
		</div><!--/span-->

		<div class="box span6">
					<div class="box-header">
						<h2><i class="halflings-icon align-justify"></i><span class="break"></span>Caracteristicas</h2>
						<div class="box-icon">
							<a href="#" class="btn-minimize"><i class="halflings-icon chevron-up"></i></a>
						</div>
					</div>
					<div class="box-content">

						<?php 
combobox("marca", $marca_id);
?>
						<?php 
combobox("unidad", $unidad_id);
?>

						 <div class="control-group">
								<label class="control-label" >Estilo</label>
								<div class="controls">
								  <input class="input-xlarge" id="estilo" name="estilo" type="text" value="<?php 
echo $estilo;
?>
">
								</div>
							  </div>

					</div>
		</div><!--/span-->
			
								<label class="control-label" >Telefono</label>
								<div class="controls">
								  <input class="input-xlarge" id="telefono_casa" name="telefono_casa" type="text" value="<?php 
echo $telefono_casa;
?>
">
								</div>
							  </div>
							  

						<div class="alert alert-info">
							<strong>Datos Laborales</strong>
						</div>

							<?php 
combobox("empresa", $empresa_id);
?>



						  <div class="control-group">
								<label class="control-label" >Antiguedad Empleo</label>
								<div class="controls">
								  <input class="input-xlarge" id="antiguedad_empleo" name="antiguedad_empleo" type="text" value="<?php 
echo $antiguedad_empleo;
?>
">
								</div>
							  </div>

							  
예제 #10
0
<?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');
예제 #11
0
echo Close('div');
echo Open('div', array('class' => 'col-md-4 form-group'));
echo Open('div', array('class' => 'input-group'));
echo tagcontent('span', '<b>Apellido</b>: ', array('class' => 'input-group-addon'));
echo input(array('type' => 'text', 'name' => 'app_estu', 'id' => 'app_estu', 'placeholder' => 'Digete el Apellido', 'class' => 'form-control'));
echo Close('div');
echo Close('div');
echo Open('div', array('class' => 'col-md-4 form-group'));
echo Open('div', array('class' => 'input-group'));
echo tagcontent('span', '<b>Correo</b>: ', array('class' => 'input-group-addon'));
echo input(array('type' => 'text', 'name' => 'mail_estu', 'id' => 'mail_estu', 'placeholder' => 'Digete el M@il', 'class' => 'form-control'));
echo Close('div');
echo Close('div');
$tiposrango_combo = combobox($tipo, array('label' => 'typo_persona', 'value' => 'id_typ'), array('name' => 'id_persona', '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>Tipo Persona:</b> ', array('class' => 'input-group-addon'));
echo $tiposrango_combo;
echo Close('div');
echo Close('div');
$tiposdepar_combo = combobox($depar, array('label' => 'nombre_depart', 'value' => 'id_dep'), array('name' => 'id_dep', '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>Departamento:</b> ', array('class' => 'input-group-addon'));
echo $tiposdepar_combo;
echo Close('div');
echo Close('div');
echo Close('div');
echo tagcontent('button', 'Grabar', array('name' => 'btnreportes', 'class' => 'btn btn-success  col-md-1', 'id' => 'ajaxformbtn', 'type' => 'submit', 'data-target' => 'opcion_elegida'));
echo Close('form');
echo tagcontent('div', '', array('id' => 'opcion_elegida', 'class' => 'col-md-6'));
예제 #12
0
								  </label>
								 </div>
								</div>

                              <div class="control-group ">
								<label class="control-label" for="cantidad">Cantidad</label>
								<div class="controls">
								  <input class="input-xlarge" id="cantidad" name="cantidad" type="text" value="<?php 
echo dinero($cantidad);
?>
">
								</div>
							  </div>

                               <?php 
combobox("cupontipo", $cupontipo_id);
?>


                               <div class="control-group ">
								<label class="control-label" for="compra_minima">Compra Minima</label>
								<div class="controls">
								  <input class="input-xlarge" id="compra_minima" name="compra_minima" type="text" value="<?php 
echo dinero($compra_minima);
?>
">
								</div>
							  </div>


							<strong>Domicilio</strong>
						</div>							  
							 
							  <div class="control-group">
								<label class="control-label" >Domicilio</label>
								<div class="controls">
								  <input class="input-xlarge" id="domicilio" name="domicilio" type="text" value="<?php 
echo ucfirst($domicilio);
?>
">
								</div>
							  </div>


							<?php 
combobox("colonia", $colonia_id);
?>

							  
							  <div class="control-group">
								<label class="control-label" >Telefono Oficina</label>
								<div class="controls">
								  <input class="input-xlarge" id="telefono_oficina" name="telefono_oficina" type="text" value="<?php 
echo $telefono_oficina;
?>
">
								</div>
							  </div>
							  

예제 #14
0
echo input(array('type' => 'hidden', 'name' => 'id_solicitud', 'id' => 'id_solicitud', 'value' => $solicitud[0]->id_solicitud));
echo open("div", array('id' => 'form_view'));
echo "<center><h3>MODIFICAR SOLICITUD DE FISIATRIA</h3></center><br>  ";
$apellidoPaterno_field[] = array('readonly' => 'readonly', 'name' => 'apellido_paterno', 'id' => 'apellido_paterno', 'class' => 'form-control', 'value' => $primer_apellido);
echo get_field_group('Apell. Paterno', $apellidoPaterno_field, 'col-md-3 form-group');
$apellidoMaterno_field[] = array('readonly' => 'readonly', 'name' => 'apellido_materno', 'id' => 'apellido_materno', 'class' => 'form-control', 'value' => $segundo_apellido);
echo get_field_group('Apell. Materno', $apellidoMaterno_field, 'col-md-3 form-group');
$nombres_field[] = array('readonly' => 'readonly', 'name' => 'p_nombre', 'id' => 'p_nombre', 'class' => 'form-control', 'value' => $primer_nombre);
echo get_field_group('Primer Nombre', $nombres_field, 'col-md-3 form-group');
$segund_nombres_field[] = array('readonly' => 'readonly', 'name' => 's_nombre', 'id' => 's_nombre', 'class' => 'form-control', 'value' => $segundo_nombre);
echo get_field_group('Segundo Nombre', $segund_nombres_field, 'col-md-3 form-group');
$cedula_field[] = array('readonly' => 'readonly', 'name' => 'cedula', 'id' => 'cedula', 'class' => 'form-control', 'value' => $solicitud[0]->id_cliente);
echo get_field_group('Ced. de Ciudadanía', $cedula_field, 'col-md-3 form-group');
$edad_field[] = array('readonly' => 'readonly', 'name' => 'edad', 'id' => 'edad', 'class' => 'form-control', 'value' => $solicitud[0]->edad);
echo get_field_group('Edad', $edad_field, 'col-md-2 form-group');
$combo_servicio = combobox($listtiposerv, array('label' => 'tipo', 'value' => 'id'), array('class' => 'form-control', 'name' => 'id_servicio', 'id' => 'id_servicio'), false, $solicitud[0]->id_servicio);
echo get_combo_group('Servicio', $combo_servicio, 'col-md-6 form-group');
$hClinica_field[] = array('name' => 'h_clinica', 'id' => 'h_clinica', 'class' => 'form-control', 'callback' => 'load_cliente', 'data-url' => base_url('common/autosuggest/get_client_by_name_hmc/%QUERY'), 'value' => $solicitud[0]->id_cliente);
echo get_field_group('No.de la Historia Clinica', $hClinica_field, 'col-md-4 form-group');
$fecha_atencion_field[] = array('name' => 'fecha_atencion', 'id' => 'fecha_atencion', 'class' => 'form-control datepicker', 'value' => $solicitud[0]->fecha_atencion);
echo get_field_group('Fecha de atención ', $fecha_atencion_field, 'col-md-3 form-group');
echo close("div");
echo open("div", array('class' => 'row col-md-12'));
?>
                <ul class="nav nav-tabs">
                    <li><a href="#estudio_solicitado_tex" data-toggle = "tab">ESTUDIO SOLICITADO</a></li>
                    <li><a href="#motivo_solicitud_tex"  data-toggle = "tab">MOTIVO DE LA SOLICITUD</a></li>

                </ul>
            <?php 
echo open("div", array('id' => 'myTabContent', 'class' => 'tab-content col-md-12'));
예제 #15
0
    if ($row['subcategoria_id'] == $subcategoria_id) {
        $seleccionado = "selected='true' ";
    } else {
        $seleccionado = "";
    }
    echo "<option {$seleccionado} value='" . $row['subcategoria_id'] . "' >" . ucfirst($row['categoria']) . " - " . ucfirst($row['subcategoria']) . "</option>";
}
echo "  </select>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t  </div>";
?>

						        <?php 
//combobox("talla",$talla_id)
?>

                                <?php 
combobox("temporada", $temporada_id);
?>





		<div class="box">
					<div class="box-header">
						<h2><i class="halflings-icon align-justify"></i><span class="break"></span>Imagenes <?php 
echo $prid . $color_id;
?>
</h2>

					</div>
					<div class="box-content">
예제 #16
0
<?php

echo Open('div', array('align' => 'center', 'class' => 'col-md-12'));
echo '<h1 class="page-header"><small><font class="text-success">GENERACION DE REPORTES DE FISIATRIA</font></small></h1>';
echo Close('div');
echo lineBreak(1);
echo Open('form', array('action' => base_url('fisiatria/reporte/get_reporte'), 'method' => 'post'));
$combobox1 = combobox($mes, array('label' => 'mes', 'value' => 'id'), array('class' => 'form-control', 'name' => 'mes', 'id' => 'mes', 'enabled' => 'disabled'), false);
$combobox2 = combobox_array($anio, array('class' => 'form-control', 'name' => 'anio', 'id' => 'anio', 'enabled' => 'disabled'), false);
echo get_combo_group('MESES :', $combobox1, 'col-md-2 form-group');
echo get_combo_group('A&NtildeO :', $combobox2, 'col-md-2 form-group');
echo Open('div', array('class' => 'col-md-5 form-group'));
echo Open('div', array('class' => 'input-group has-success'));
echo tagcontent('span', '<span class="glyphicon glyphicon-check"></span> Tipo Documento: ', array('class' => 'input-group-addon'));
?>
<select name ="tipo_reporte" id="tipo_reporte" class="combobox form-control input-sm">
    <option value="1">Patologias Frecuentes</option>
    <option value="2">Terapia Fisica</option>
</select>
<?php 
echo Close('div');
echo Close('div');
echo tagcontent('button', 'GENERAR', array('name' => 'btnGenerar', 'class' => 'btn btn-primary col-md-2 pull-left', 'id' => 'ajaxformbtn', 'type' => 'submit', 'data-target' => 'opcion_elegida'));
echo Close('div');
echo Close('form');
echo tagcontent('div', '', array('id' => 'opcion_elegida', 'class' => 'col-md-12'));