public function showForm($id = -1) { $this->prepareForm($id, array('method' => 'post', 'action' => 'backup/adicionar')); SystemHelper::addHiddenfield('', 'usuario_id_criacao', FUTURI_Session::getUserID()); SystemHelper::addHiddenfield('', 'dt_criacao', date('Y-m-d H:i:s')); echo "<div class='ls-tab-content ls-active' id='infos'>"; echo "<table class='easy-form-table'>"; echo "<tr>"; echo "<td>"; SystemHelper::addTextfield(array('label' => 'Nome', 'required' => true, 'name' => 'nome_backup')); echo "</td>"; echo "</tr>"; echo "</table>"; echo "<b>Opções do backup</b>"; echo "<div class='ls-box'>"; echo "<table class='easy-form-table'>"; echo "<tr>"; echo "<td>"; SystemHelper::addYesNoToggle(array('label' => 'Banco de dados', 'name' => 'incluir_banco_dados', 'value' => 1, 'checked' => $this->fields['incluir_banco_dados'])); echo "</td>"; echo "<td>"; SystemHelper::addYesNoToggle(array('label' => 'Fotos casting/trabalhos', 'name' => 'incluir_casting_fotos', 'value' => 1, 'checked' => $this->fields['incluir_casting_fotos'])); echo "</td>"; echo "<td>"; SystemHelper::addYesNoToggle(array('label' => 'Documentos', 'name' => 'incluir_documentos', 'value' => 1, 'checked' => $this->fields['incluir_documentos'])); echo "</td>"; echo "</tr>"; echo "</table>"; echo "</div>"; echo "</div>"; $this->addButtons(); }
public function showSetupPrintForm($id = -1) { $this->setID($id); $this->prepareForm('print_generation_form', array('method' => 'post', 'includeTabs' => false, 'action' => 'casting/preparaImpressao/' . $this->objectID)); echo "<b>Configurações da impressão:</b>"; echo "<div class='ls-box'>"; echo "<table width='500'>"; echo "<tr>"; echo '<td>'; SystemHelper::addYesNoToggle(array('label' => 'Informações Pessoais', 'name' => 'print_personal_info')); echo '</td>'; echo '<td>'; SystemHelper::addYesNoToggle(array('label' => 'Documentação', 'name' => 'print_documents_info')); echo '</td>'; echo "</tr>"; echo "<tr>"; echo '<td>'; SystemHelper::addYesNoToggle(array('label' => 'Endereços', 'name' => 'print_address_info')); echo '</td>'; echo '<td>'; SystemHelper::addYesNoToggle(array('label' => 'Contatos', 'name' => 'print_contact_info')); echo '</td>'; echo "</tr>"; echo "<tr>"; echo '<td>'; SystemHelper::addYesNoToggle(array('label' => 'Trabalhos', 'name' => 'print_jobs_info')); echo '</td>'; echo '<td>'; SystemHelper::addYesNoToggle(array('label' => 'Dados Bancários', 'name' => 'print_banks_info')); echo '</td>'; echo "</tr>"; echo "</table>"; echo "</div>"; SystemHelper::addSubmitButton(array('label' => 'Gerar impressão >>> ', 'icon' => 'ls-ico-checkmark')); SystemHelper::addButton(array('label' => 'Cancelar', 'icon' => 'ls-ico-close', 'data' => array('popupcloser' => true))); }
public function getFields() { include "application/helpers/system_helper.php"; echo '<tr>'; echo '<td>'; SystemHelper::addTextfield(array('name' => 'param_displayname[]')); echo '</td>'; echo '<td>'; SystemHelper::addTextfield(array('name' => 'param_name[]')); echo '</td>'; echo '<td>'; SystemHelper::addCombobox(array('name' => 'param_type[]', 'options' => self::$types)); echo '</td>'; echo '<td>'; SystemHelper::addTextfield(array('name' => 'param_default[]')); echo '</td>'; echo '<td>'; SystemHelper::addYesNoToggle(array('name' => 'param_userinput[]')); echo '</td>'; echo '<td>'; SystemHelper::addIconButton(['icon' => 'fa fa-times', 'onClick' => '$paramTable.removeFields(this);', 'tooltip' => 'Remover', 'tooltip-align' => 'right']); echo '</td>'; echo '</tr>'; }
public function showForm($id = -1, $not_in_admin = false) { $this->prepareForm($id, array('method' => 'post', 'action' => $id > 0 ? 'usuario/atualizar/' . $id : 'usuario/adicionar')); echo "<div class='ls-tab-content ls-active' id='#infos'>"; echo "<table class='easy-form-table'>"; if ($this->objectID > 0) { echo "<tr>"; echo "<td>"; echo "<div class='casting-profile-container'>"; echo "<img src='data:image/jpg;base64," . $this->fields['foto'] . "' class='casting-profile'></img>"; echo "<a href='#' class='changePhoto' data-url_change='" . base_url() . "ajax/usuario/changePicture/' data-profile_id='" . $id . "'><span class='fa fa-camera fa-2x'></span> Alterar foto</a>"; echo "</div>"; echo "</td>"; echo "</tr>"; } echo "<tr>"; echo "<td>"; SystemHelper::addTextfield(array('label' => 'Nome de exibição', 'name' => 'nome_exibicao', 'required' => true, 'value' => $this->fields['nome_exibicao'])); echo "</td>"; echo "<td>"; SystemHelper::addDatefield(array('label' => 'Data de Nascimento', 'name' => 'dt_nasc', 'useIcon' => true, 'width' => '120px', 'value' => SystemHelper::convertDateFromUS($this->fields['dt_nasc']))); echo "</td>"; echo "</tr>"; echo "<tr>"; echo "<td colspan='2'>"; SystemHelper::addTextfield(array('label' => 'Email', 'name' => 'email', 'required' => true, 'value' => $this->fields['email'])); echo "</td>"; echo "</tr>"; echo "<tr>"; echo "<td>"; SystemHelper::addTextfield(array('label' => 'Usuário', 'name' => 'usuario', 'required' => $id < 0 ? true : false, 'disabled' => $this->objectID > 0 ? true : false, 'value' => $this->fields['usuario'])); echo "</td>"; echo "</tr>"; if (!$not_in_admin) { echo "<tr>"; echo "<td>"; SystemHelper::addPasswordfield(array('label' => 'Senha', 'name' => 'senha')); echo "</td>"; echo "<td>"; SystemHelper::addPasswordfield(array('label' => 'Confirmação da senha', 'name' => 'senha_confirmacao')); echo "</td>"; echo "</tr>"; echo "<tr>"; echo "<td>"; SystemHelper::addYesNoToggle(array('label' => 'Administrador', 'name' => 'administrador', 'value' => 1, 'checked' => $this->fields['administrador'])); echo "</td>"; echo "</tr>"; } // ajuste para manter a configuração de administrado caso usuário atualize seu perfil if ($not_in_admin) { SystemHelper::addHiddenfield('', 'administrador', $this->fields['administrador']); } echo "</table>"; echo "</div>"; $this->addButtons(); }