Пример #1
0
<?php

$oSubmitButtons = new HelperSubmitButton();
$oSubmitButtons->display_delete(false);
//bug($oClient); bug($oMtbCliente);
if (!isset($oClient)) {
    $oClient = new ModelClients(null, null);
}
// Code, Direccion, Pais, Tlf1, Provincia, Tlf2, Cp, Fax, Correo_E, Codigo_Sic, Propietario, Name
if (!isset($oMtbCliente)) {
    $oMtbCliente = new ModelMtbClientes(null, null);
}
if ($isNew) {
    $oSelVendedor->set_value_to_select($oSite->get_logged_user_code());
    $oSelManager->set_value_to_select($oSite->get_logged_user_code_manager());
} else {
    $oSelVendedor->set_value_to_select($oClient->oPropietario->get_code());
    $oSelManager->set_value_to_select($oClient->oPropietario->get_code_manager());
    //Barra del propietario
    $oHlpOwnerInfoBar->show();
    //Botones foreign del propietario
    $oHlpFrgLink->show();
}
//HTML
//$oHlpJavascript->show_divmessage("hola",20);
echo $oHlpJavascript->get_document_onready();
$oHlpActionBar->show();
?>

<form id="frmDetail" name="frmDetail" action="" method="POST" >
    <div id="divForm" style="padding-left: 8px;  padding-right: 5px;" >
Пример #2
0
<?php

$oClientSearch = $oSite->get_from_session("oClientSearch");
if ($oClientSearch == null) {
    $oClientSearch = new ModelClients();
}
$oHidNumPage = new HelperHidden("hidNumPage", $oSelPage->get_selected_value());
//HTML
$oHlpActionBar->show();
?>
<form id="frmSearch" action="" method="post" class="ui-body-c ui-corner-all buttons-bar" style="margin:5px;">

    <div data-role="controlgroup" data-type="horizontal" style="text-align:center;">
        <a href="index.php?module=clients&tab=detail" data-inline="true" data-theme="b" data-role="button" class="btn-menu ui-btn ui-btn-inline ui-btn-corner-all ui-shadow ui-btn-up-b" >
            <span class="ui-btn-inner ui-btn-corner-all">
                <span class="ui-btn-text">Nuevo</span>
            </span>
        </a>
        <button id="butSearch" type="submit" data-theme="b">Buscar</button>
    </div>
    <!-- divlist -->
    <div class="content-primary">
        <!-- search fields -->
        <input type="text" id="sch_Name" name="sch_Name" placeholder="Nombre" value="<?php 
echo $oClientSearch->get_name();
?>
" data-type="search" class="ui-input-text ui-body-d" />
        <input type="text" id="sch_Codigo_Sic" name="sch_Codigo_Sic" placeholder="Nif/Cif" value="<?php 
echo $oClientSearch->get_codigo_sic();
?>
" data-type="search" class="ui-input-text ui-body-d" />