public function build_form_filtro()
 {
     $seccion = '/buscar_punto_venta';
     $uri_view = $this->path . $seccion;
     $dropdown_sucursales = array('data' => $this->sucursales->db_get_data($sqlData), 'value' => 'id_sucursal', 'text' => array('sucursal'), 'name' => "lts_sucursales", 'leyenda' => "Todas las sucursales", 'class' => "requerido", 'event' => array('event' => 'onchange', 'function' => 'load_punto_venta', 'params' => array('this.value'), 'params_type' => array(0)));
     $sucursales = dropdown_tpl($dropdown_sucursales);
     $dropdown_punto_venta = array('name' => "listado_punto_venta", 'leyenda' => 'Todos los puntos de venta', 'class' => "requerido");
     $puntos_venta = dropdown_tpl($dropdown_punto_venta);
     $btn_search = form_button(array('class' => 'btn btn-primary', 'name' => 'buscar_ventas', 'onclick' => 'buscar_ventas()', 'content' => $this->lang_item("btn_buscar_ventas")));
     $btn_reset = form_button(array('class' => 'btn btn_primary', 'name' => 'reset', 'onclick' => 'clean_formulario()', 'content' => $this->lang_item('btn_limpiar')));
     $tabData['lbl_puntos_venta'] = $this->lang_item('lbl_puntos_venta');
     $tabData['puntos_venta_list'] = $puntos_venta;
     $tabData['lbl_sucursal'] = $this->lang_item('lbl_sucursal');
     $tabData['lbl_fecha_inicio'] = $this->lang_item('lbl_fecha_inicio');
     $tabData['lbl_fecha_final'] = $this->lang_item('lbl_fecha_final');
     $tabData['sucursales_list'] = $sucursales;
     $tabData['button_search'] = $btn_search;
     $tabData['button_reset'] = $btn_reset;
     $tabData['hoy'] = date('d/m/Y');
     if ($this->ajax_post(false)) {
         echo json_encode($this->load_view_unique($uri_view, $tabData, true));
     } else {
         return $this->load_view_unique($uri_view, $tabData, true);
     }
 }
 function get_html()
 {
     $import_button = form_button(__('Import settings', 'skip_framework'), array('name' => 'import_settings'));
     $this->after_element = $import_button . $this->after_element;
     $html = parent::get_html();
     return $html;
 }
Example #3
0
function showratings($rating_type, $rating_item_id, $rating_link)
{
    global $locale, $userdata;
    $settings = \fusion_get_settings();
    if ($settings['ratings_enabled'] == "1") {
        if (iMEMBER) {
            $d_rating = dbarray(dbquery("SELECT rating_vote,rating_datestamp FROM " . DB_RATINGS . " WHERE rating_item_id='" . $rating_item_id . "' AND rating_type='" . $rating_type . "' AND rating_user='******'user_id'] . "'"));
            if (isset($_POST['post_rating'])) {
                // Rate
                if (isnum($_POST['rating']) && $_POST['rating'] > 0 && $_POST['rating'] < 6 && !isset($d_rating['rating_vote'])) {
                    $result = dbquery("INSERT INTO " . DB_RATINGS . " (rating_item_id, rating_type, rating_user, rating_vote, rating_datestamp, rating_ip, rating_ip_type) VALUES ('{$rating_item_id}', '{$rating_type}', '" . $userdata['user_id'] . "', '" . $_POST['rating'] . "', '" . time() . "', '" . USER_IP . "', '" . USER_IP_TYPE . "')");
                    if ($result) {
                        defender::unset_field_session();
                    }
                }
                redirect($rating_link);
            } elseif (isset($_POST['remove_rating'])) {
                // Unrate
                $result = dbquery("DELETE FROM " . DB_RATINGS . " WHERE rating_item_id='{$rating_item_id}' AND rating_type='{$rating_type}' AND rating_user='******'user_id'] . "'");
                if ($result) {
                    defender::unset_field_session();
                }
                redirect($rating_link);
            }
        }
        $ratings = array(5 => $locale['r120'], 4 => $locale['r121'], 3 => $locale['r122'], 2 => $locale['r123'], 1 => $locale['r124']);
        if (!iMEMBER) {
            $message = str_replace("[RATING_ACTION]", "<a href='" . BASEDIR . "login.php'>" . $locale['login'] . "</a>", $locale['r104']);
            if (fusion_get_settings("enable_registration") == TRUE) {
                $message = str_replace("[RATING_ACTION]", "<a href='" . BASEDIR . "login.php'>" . $locale['login'] . "</a> " . $locale['or'] . " <a href='" . BASEDIR . "register.php'>" . $locale['register'] . "</a>", $locale['r104']);
            }
            echo "<div class='text-center'>" . $message . "</div>\n";
        } elseif (isset($d_rating['rating_vote'])) {
            echo "<div class='display-block'>\n";
            echo openform('removerating', 'post', $rating_link, array('class' => 'display-block text-center'));
            echo sprintf($locale['r105'], $ratings[$d_rating['rating_vote']], showdate("longdate", $d_rating['rating_datestamp'])) . "<br /><br />\n";
            echo form_button('remove_rating', $locale['r102'], $locale['r102'], array('class' => 'btn-default', 'icon' => 'fa fa-times m-r-10'));
            echo closeform();
            echo "</div>\n";
        } else {
            echo "<div class='display-block'>\n";
            echo openform('postrating', 'post', $rating_link, array('max_tokens' => 1, 'notice' => 0, 'class' => 'm-b-20 text-center'));
            echo form_select('rating', $locale['r106'], '', array('options' => $ratings, 'class' => 'display-block text-center'));
            echo form_button('post_rating', $locale['r103'], $locale['r103'], array('class' => 'btn-primary btn-sm', 'icon' => 'fa fa-thumbs-up m-r-10'));
            echo closeform();
            echo "</div>\n";
        }
        $rating_votes = dbarray(dbquery("\n\t\tSELECT\n\t\tSUM(IF(rating_vote='5', 1, 0)) as r120,\n\t\tSUM(IF(rating_vote='4', 1, 0)) as r121,\n\t\tSUM(IF(rating_vote='3', 1, 0)) as r122,\n\t\tSUM(IF(rating_vote='2', 1, 0)) as r123,\n\t\tSUM(IF(rating_vote='1', 1, 0)) as r124\n\t\tFROM " . DB_RATINGS . " WHERE rating_type='" . $rating_type . "' and rating_item_id='" . intval($rating_item_id) . "'\n\t\t"));
        if (!empty($rating_votes)) {
            echo "<div id='ratings' class='rating_container'>\n";
            foreach ($rating_votes as $key => $num) {
                echo progress_bar($num, $locale[$key], FALSE, '10px', TRUE, FALSE);
            }
            echo "</div>\n";
        } else {
            echo "<div class='text-center'>" . $locale['r101'] . "</div>\n";
        }
    }
}
Example #4
0
 function exissinv($cen, $id = 0)
 {
     if (empty($cen)) {
         $id--;
         $rt = form_button('create', 'Crear', 'onclick="pcrear(' . $id . ');"');
         $rt .= form_button('asignar', 'Asig.', 'onclick="pasig(' . $id . ');"');
     } else {
         $rt = '--';
     }
     return $rt;
 }
Example #5
0
 private function createForm()
 {
     $data = array();
     $data['form_login'] = form_open('login/doLogin', array('id' => 'form_login', 'class' => 'form-signin'));
     $input_username = array('name' => 'user_email', 'id' => 'user_email', 'value' => '', 'placeholder' => 'Informe o seu endereço de email', 'maxlength' => '45', 'size' => '20', 'autocomplete' => 'off', 'class' => 'form-control');
     $data['input_username'] = form_input($input_username);
     $input_username_password = array('name' => 'username_password', 'id' => 'username_password', 'value' => '', 'placeholder' => 'Informe a sua senha', 'maxlength' => '20', 'size' => '20', 'type' => 'password', 'autocomplete' => 'off', 'class' => 'form-control');
     $data['input_username_password'] = form_input($input_username_password);
     $input_button = array('id' => 'button_login', 'type' => 'button', 'content' => 'Realizar Login', 'class' => 'btn btn-primary');
     $data['input_button'] = form_button($input_button);
     return $data;
 }
 private function makePredictionForm()
 {
     $teams = $this->team_list->allTeams();
     $teamList = array();
     foreach ($teams as $team) {
         if ($team["TEAMCODE"] != "MIA") {
             $teamList[$team["TEAMCODE"]] = $team["CITY"];
         }
     }
     $this->data['teams'] = form_dropdown('teams', $teamList, '', 'id="teams"');
     $this->data['predict_button'] = form_button('predict_button', 'Make Prediction', 'onClick="predict()"');
 }
Example #7
0
 function exissinv($cen, $id = 0)
 {
     if (empty($cen)) {
         $id--;
         $rt = form_button('create', 'Crear', 'onclick="pcrear(' . $id . ');" title="Crear como nuevo producto"');
         $rt .= form_button('asignar', 'Asig.', 'onclick="pasig(' . $id . ');" title="Asociar con un producto ya existente"');
     } else {
         $attr = array('width' => '800', 'height' => '600', 'scrollbars' => 'yes', 'status' => 'yes', 'resizable' => 'yes', 'title' => 'Consultar precio actual', 'screenx' => "'+((screen.availWidth/2)-400)+'", 'screeny' => "'+((screen.availHeight/2)-300)+'");
         $llink = anchor_popup('inventario/consultas/preciosgeneral/' . raencode(trim($cen)), $cen, $attr);
         $rt = $llink;
     }
     return $rt;
 }
Example #8
0
 function agreementForm()
 {
     $agreementForm = array();
     //master data to drop down menu;
     $org = $this->agreement_model->getOrg();
     $donor = $this->agreement_model->getDonor();
     $source = $this->agreement_model->getSource();
     $budget = $this->agreement_model->getBudget();
     //$investor = $this->agreement_model->getInvestor();
     $this->load->library('table');
     $agreementForm['FORM_ATTRIBUTES'] = array('class' => '', 'id' => 'agreementForm');
     $agreementForm['AGREEMENT_CD'] = array(form_label('अग्रीमेंट कडे:', 'AGREEMENT_CD'), form_input(array('name' => 'AGREEMENT_CD', 'id' => 'agreementForm', 'class' => 'number', 'maxlength' => 4)));
     $agreementForm['BUD_YEAR'] = array(form_label('आर्थिक बर्ष:', 'BUD_YEAR'), form_input(array('name' => 'BUD_YEAR', 'class' => 'datetime', 'id' => 'budYear')));
     $agreementForm['ORG_CD'] = array(form_label('संस्थाको संकेत:', 'ORG_CD'), form_dropdown('ORG_CD', $org));
     $agreementForm['PROJECT_NAME'] = array(form_label('योजनाको नाम:', 'PROJECT_NAME'), form_input(array('name' => 'PROJECT_NAME')));
     $agreementForm['START_EDATE'] = array(form_label('सुरुवात मिति:', 'START_EDATE'), form_input(array('name' => 'START_EDATE', 'class' => 'datetime', 'id' => 'pStartEDate')));
     $agreementForm['START_NDATE'] = array(form_input(array('name' => 'START_NDATE', 'class' => 'datetime', 'id' => 'pStartNDate')));
     $agreementForm['END_EDATE'] = array(form_label(' समाप्त मिति:', 'END_EDATE'), form_input(array('name' => 'END_EDATE', 'class' => 'datetime', 'id' => 'pEndEDate')));
     $agreementForm['END_NDATE'] = array(form_input(array('name' => 'END_NDATE', 'class' => 'datetime', 'id' => 'pEndNDate')));
     $agreementForm['AGREE_EDATE'] = array(form_label('अग्रीमेंट मिति:', 'AGREE_EDATE'), form_input(array('name' => 'AGREE_EDATE', 'class' => 'datetime', 'id' => 'aStartEDate')));
     $agreementForm['AGREE_NDATE'] = array(form_input(array('name' => 'AGREE_NDATE', 'class' => 'datetime', 'id' => 'aStartNDate')));
     $agreementForm['DISABLE_FLAG'] = array(form_label('Disable flag :', 'DISABLE_FLAG'), form_checkbox('DISABLE_FLAG', 0, false));
     $agreementForm['INVESTOR_TYPE'] = array(form_label('लगानी कर्ता:', 'INVESTOR_TYPE'), form_dropdown('INVESTOR_TYPE', array(1 => 'nepali', 2 => 'bideshi'), '', 'id = "investorType"'));
     $agreementForm['AMOUNT_NEPALI'] = array(form_label('रकम (ने रु ):', 'AMOUNT_NEPALI'), form_input(array('name' => 'AMOUNT_NEPALI')));
     $agreementForm['CURR_CD'] = array(form_label('मुद्रा :', 'CURR_CD'), form_dropdown('CURR_CD', array('yen', 'us')));
     $agreementForm['EXCHANGE_RATE'] = array(form_label('विनिमय दर:', 'EXCHANGE_RATE'), form_input(array('name' => 'EXCHANGE_RATE', 'value' => 98)));
     $agreementForm['AMOUNT_FOREIGN'] = array(form_label('रकम बिदेशी:', 'AMOUNT_FOREIGN'), form_input(array('name' => 'AMOUNT_FOREIGN')));
     $agreementForm['DONOR_CODE'] = array(form_label('दाता:', 'DONOR_CODE'), form_dropdown('DONOR_CODE', $donor));
     $agreementForm['ACC_CODE'] = array(form_label('बुद्गेत सिर्सक ', 'ACC_CODE'), form_input(array('name' => 'ACC_CODE', 'id' => 'typeauto', 'class' => 'number')), form_input(array('name' => 'ACC', 'id' => 'autocomplete', 'width' => '500px')));
     //form_dropdown('ACC_CODE', $budget, '', 'class="dropdown"'));
     $agreementForm['SOURCE_TYPE_CODE'] = array(form_label('श्रोत:', 'SOURCE_TYPE_CODE'), form_dropdown('SOURCE_TYPE_CODE', $source));
     $agreementForm['GRACE_YEAR'] = array(form_label('ग्रेस अवधि:', 'GRACE_YEAR'), form_input(array('name' => 'GRACE_YEAR', 'class' => 'number')));
     $agreementForm['INSTALLMENT_NUM'] = array(form_label('किस्ता नम्बर:', 'INSTALLMENT_NUM'), form_input(array('name' => 'INSTALLMENT_NUM', 'class' => 'number')));
     $agreementForm['INSTALLMENT_DURATION'] = array(form_label('किस्ता आवाधी:', 'INSTALLMENT_DURATION'), form_input(array('name' => 'INSTALLMENT_DURATION', 'class' => 'number')));
     $agreementForm['REPAYMENT_FROM_EDATE'] = array(form_label('भुकतनीको सुरु:', 'REPAYMENT_FROM_EDATE'), form_input(array('name' => 'REPAYMENT_FROM_EDATE', 'class' => 'datetime', 'id' => 'repStartEDate')));
     $agreementForm['REPAYMENT_FROM_NDATE'] = array(form_input(array('name' => 'REPAYMENT_FROM_NDATE', 'class' => 'datetime', 'id' => 'repStartNDate')));
     $agreementForm['REPAYMENT_TO_EDATE'] = array(form_label('भुकतनी समाप्ति:', 'REPAYMENT_TO_EDATE'), form_input(array('name' => 'REPAYMENT_TO_EDATE', 'class' => 'datetime', 'id' => 'repEndEDate')));
     $agreementForm['REPAYMENT_TO_NDATE'] = array(form_input(array('name' => 'REPAYMENT_TO_NDATE', 'class' => 'datetime', 'id' => 'repEndNDate')));
     $agreementForm['PAYABLE_WITH_INTEREST'] = array(form_label('ब्याज लाग्ने :', 'PAYABLE_WITH_INTEREST'), form_checkbox('PAYABLE_WITH_INTEREST', 1, TRUE, 'id=" interestPayable "'));
     $agreementForm['LOAN_NUM'] = array(form_label('लोअदं नुमेब्र :', 'LOAN_NUM'), form_input('LOAN_NUM'));
     $agreementForm['PAYMENT_TYPE'] = array(form_label('पय्मेंट तरिका:', 'PAYMENT_TYPE'), form_dropdown('PAYMENT_TYPE', array('y' => 'बार्षिक ', 'm' => 'अर्ध बार्षिक ', 'a' => 'अग्रीमेंट अनुसार ')));
     $agreementForm['CAPITALIZATION'] = array(form_label('पुजिकरण  :', 'CAPITALIZATION'), form_checkbox('CAPITALIZATION', 1, TRUE, 'id=" interestPayable "'));
     $agreementForm['SUBMIT'] = array(form_button('SUBMIT', 'Submit', 'id="aSubmit"'));
     $agreementForm['table'] = array(array('name', 'place', 'address'), array(1, 2, 3));
     $agreementForm['ACTUAL_RATE'] = array(form_label('ब्याज दर :', 'ACTUAL_RATE'), form_input(array('name' => 'ACTUAL_RATE', 'class' => 'number')));
     return $agreementForm;
 }
Example #9
0
function render_admin_login()
{
    global $locale, $aidlink, $userdata, $defender;
    // TODO: Remove this, add the required styling to acp_styles.css
    add_to_head("<link rel='stylesheet' href='" . THEMES . "templates/setup_styles.css' type='text/css' />");
    echo "<aside class='block-container'>\n";
    echo "<div class='block'>\n";
    echo "<div class='block-content clearfix' style='font-size:13px;'>\n";
    echo "<h6><strong>" . $locale['280'] . "</strong></h6>\n";
    echo "<img src='" . IMAGES . "php-fusion-icon.png' class='pf-logo position-absolute' alt='PHP-Fusion'/>";
    echo "<p class='fusion-version text-right mid-opacity text-smaller'>" . $locale['version'] . fusion_get_settings('version') . "</p>";
    echo "<div class='row m-0'>\n<div class='col-xs-12 col-sm-12 col-md-12 col-lg-12'>";
    $form_action = FUSION_SELF . $aidlink == ADMIN . "index.php" . $aidlink ? FUSION_SELF . $aidlink . "&amp;pagenum=0" : FUSION_SELF . "?" . FUSION_QUERY;
    echo openform('admin-login-form', 'post', $form_action, array('max_tokens' => 1));
    openside('');
    if (!$defender->safe()) {
        setNotice('danger', $locale['global_182']);
    }
    // Get all notices
    $notices = getNotices();
    echo renderNotices($notices);
    echo "<div class='m-t-10 clearfix row'>\n";
    echo "<div class='col-xs-3 col-sm-3 col-md-3 col-lg-3'>\n";
    echo "<div class='pull-right'>\n";
    echo display_avatar($userdata, '90px');
    echo "</div>\n";
    echo "</div>\n<div class='col-xs-9 col-sm-9 col-md-8 col-lg-7'>\n";
    echo "<div class='clearfix'>\n";
    $label = "<span class='h5 display-inline' style='color: #222'><strong>" . $locale['welcome'] . ", " . $userdata['user_name'] . "</strong><br/>" . getuserlevel($userdata['user_level']) . "</span>";
    add_to_head('<style>#admin_password-field .required {display:none}</style>');
    echo form_text('admin_password', $label, '', array('callback_check' => 'check_admin_pass', 'placeholder' => $locale['281'], 'autocomplete_off' => 1, 'type' => 'password', 'required' => 1));
    echo "</div>\n";
    echo "</div>\n";
    echo "</div>\n";
    closeside();
    echo form_button('admin_login', $locale['login'], 'Sign in', array('class' => 'btn-primary btn-block'));
    echo closeform();
    echo "</div>\n</div>\n";
    // .col-*, .row
    echo "</div>\n";
    // .block-content
    echo "</div>\n";
    // .block
    echo "<div class='copyright-note clearfix m-t-10'>" . showcopyright() . "</div>\n";
    echo "</aside>\n";
}
function show_groups_table($group, $form = false, $errors = false)
{
    $return = '<tr';
    if ($errors['relateds'][$group->id]) {
        $return .= ' class="error"';
    }
    $return .= '>';
    $return .= '<td>' . $group->name . '</td>';
    $return .= '<td>' . $group->description . '</td>';
    if ($form) {
        $return .= '<td>' . form_input($form['pointer'][$group->id]) . form_input($form['significance'][$group->id]) . '</td>';
        $return .= '<td>' . form_button($form['remove'][$group->id]) . '</td>';
    } else {
        $return .= '<td>' . $group->significance . '</td>';
    }
    return $return . '</tr>';
}
Example #11
0
function render_admin_login()
{
    global $locale, $aidlink, $userdata;
    echo "<section class='login-bg'>\n";
    echo "<aside class='block-container'>\n";
    echo "<div class='block'>\n";
    echo "<div class='block-content clearfix' style='font-size:13px;'>\n";
    echo "<h6><strong>" . $locale['280'] . "</strong></h6>\n";
    echo "<img src='" . IMAGES . "php-fusion-icon.png' class='pf-logo position-absolute' alt='PHP-Fusion'/>";
    echo "<p class='fusion-version text-right mid-opacity text-smaller'>" . $locale['version'] . fusion_get_settings('version') . "</p>";
    echo "<div class='row m-0'>\n<div class='col-xs-12 col-sm-12 col-md-12 col-lg-12'>";
    $form_action = FUSION_SELF . $aidlink == ADMIN . "index.php" . $aidlink ? FUSION_SELF . $aidlink . "&amp;pagenum=0" : FUSION_SELF . "?" . FUSION_QUERY;
    // Get all notices
    $notices = getNotices();
    echo renderNotices($notices);
    echo openform('admin-login-form', 'post', $form_action);
    openside('');
    echo "<div class='m-t-10 clearfix row'>\n";
    echo "<div class='col-xs-3 col-sm-3 col-md-3 col-lg-3'>\n";
    echo "<div class='pull-right'>\n";
    echo display_avatar($userdata, '90px');
    echo "</div>\n";
    echo "</div>\n<div class='col-xs-9 col-sm-9 col-md-8 col-lg-7'>\n";
    echo "<div class='clearfix'>\n";
    add_to_head('<style>#admin_password-field .required {display:none}</style>');
    echo "<h5><strong>" . $locale['welcome'] . ", " . $userdata['user_name'] . "</strong><br/>" . getuserlevel($userdata['user_level']) . "</h5>";
    echo form_text('admin_password', "", "", array('callback_check' => 'check_admin_pass', 'placeholder' => $locale['281'], 'error_text' => $locale['global_182'], 'autocomplete_off' => TRUE, 'type' => 'password', 'required' => TRUE));
    echo "</div>\n";
    echo "</div>\n";
    echo "</div>\n";
    closeside();
    echo form_button('admin_login', $locale['login'], $locale['login'], array('class' => 'btn-primary btn-block'));
    echo closeform();
    echo "</div>\n</div>\n";
    // .col-*, .row
    echo "</div>\n";
    // .block-content
    echo "</div>\n";
    // .block
    echo "<div class='copyright-note clearfix m-t-10'>" . showcopyright() . "</div>\n";
    echo "</aside>\n";
    echo "</section>\n";
}
Example #12
0
 public function index()
 {
     $sqlData = array('buscar' => '', 'offset' => 0, 'limit' => true);
     $this->load_database('global_system');
     $this->load->model('users_model');
     $datos = $this->db_model->db_get_data($sqlData);
     $pais = $this->users_model->search_user_for_id($datos[0]['id_usuario']);
     $button_save = form_button(array('class' => 'btn btn-primary', 'name' => 'save_empresa', 'onclick' => 'agregar()', 'content' => 'Guardar'));
     $tabl_inicial = 1;
     $contenidos_tab = $this->mensaje;
     $data['titulo_seccion'] = $this->lang_item('titulo_seccion');
     $data['titulo_submodulo'] = $this->lang_item('titulo_submodulo');
     $data['icon'] = $this->icon;
     $data['Titulo'] = $this->titulo;
     $data['id_empresa'] = $datos[0]['id_empresa'];
     $data['lbl_empresa'] = $this->lang_item('titulo_seccion');
     $data['txt_empresa'] = $datos[0]['empresa'];
     $data['lbl_logotipo'] = $this->lang_item('logotipo');
     $data['imagen'] = base_url() . 'assets/images/empresa.jpg';
     $data['lbl_razon_social'] = $this->lang_item('razon_social');
     $data['txt_razon_social'] = $datos[0]['razon_social'];
     $data['lbl_rfc'] = $this->lang_item('r_f_c');
     $data['txt_rfc'] = $datos[0]['rfc'];
     $data['lbl_pais'] = $this->lang_item('pais');
     $data['txt_pais'] = base_url() . 'assets/avatar/' . $pais[0]['avatar_pais'];
     $data['lbl_moneda'] = $this->lang_item('moneda');
     $data['txt_moneda'] = $pais[0]['moneda'];
     $data['lbl_telefono'] = $this->lang_item('telefono');
     $data['txt_telefono'] = $datos[0]['telefono'];
     $data['lbl_direccion'] = $this->lang_item('direccion');
     $data['txt_direccion'] = $datos[0]['direccion'];
     $data['button_save'] = $button_save;
     $data['tabs'] = tabbed_tpl($this->config_tabs(), base_url(), $tabl_inicial, $contenidos_tab);
     $js['js'][] = array('name' => 'empresas', 'dirname' => 'administracion');
     $this->load_view($this->template, $data, $js);
 }
        //audio - mp3 only
        echo "<a href='/zenoir/index.php/ajax_loader/view/dl_file?fid={$file_id}'>" . $filename . "</a><br/>";
        echo "<audio controls='controls'>\n\t\t\t\t\t<source src='/zenoir/index.php/ajax_loader/view/dl_file?fid={$file_id}' type='audio/mpeg'/>\n\t\t\t\t\t\n\t\t\t\t</audio>";
        break;
    case 3:
        //images - set content disposition on a php file to download directly
        echo "<a href='/zenoir/index.php/ajax_loader/view/dl_file?fid={$file_id}'>" . $filename . "<br/>";
        echo "<img src='/zenoir/index.php/ajax_loader/view/dl_file?fid={$file_id}'/>";
        break;
}
if ($_SESSION['page'] != '') {
    ?>
<p>
<a href="<?php 
    echo $_SESSION['page'];
    ?>
" class="lightbox">
<?php 
    echo form_button($back);
    ?>
</a>
</p>
<?php 
}
?>
</p>
</div>

<script>
$('.image_container').jScrollPane({autoReinitialise: true});
</script>
        $error = 1;
    }
    if ($error) {
        addNotice('danger', $locale['901']);
    } else {
        addNotice('success', $locale['900']);
    }
    redirect(FUSION_SELF . $aidlink);
}
opentable($locale['register_settings']);
echo openform('settingsform', 'post', FUSION_SELF . $aidlink, array('max_tokens' => 1));
$opts = array('1' => $locale['yes'], '0' => $locale['no']);
echo "<div class='well'>" . $locale['register_description'] . "</div>\n";
echo "<div class='row'>\n";
echo "<div class='col-xs-12 col-sm-8'>\n";
openside('');
echo form_select('enable_terms', $locale['558'], $settings2['enable_terms'], array("options" => $opts));
echo form_textarea('license_agreement', $locale['559'], $settings2['license_agreement'], array('form_name' => 'settingsform', 'input_id' => 'enable_license_agreement', 'autosize' => !$settings['tinymce_enabled'], 'html' => !$settings['tinymce_enabled']));
closeside();
echo "</div><div class='col-xs-12 col-sm-4'>\n";
openside('');
echo form_select('enable_registration', $locale['551'], $settings2['enable_registration'], array("options" => $opts));
echo form_select('email_verification', $locale['552'], $settings2['email_verification'], array("options" => $opts));
echo form_select('admin_activation', $locale['557'], $settings2['admin_activation'], array("options" => $opts));
echo form_select('display_validation', $locale['553'], $settings2['display_validation'], array("options" => $opts));
closeside();
echo "</div>\n</div>\n";
echo form_button('savesettings', $locale['750'], $locale['750'], array('class' => 'btn-success'));
echo closeform();
closetable();
require_once THEMES . "templates/footer.php";
Example #15
0
                        </div>
                        <div class="span2">
							<?php 
            if ($num_of_linked_accounts >= 1 && isset($account->password)) {
                ?>
							<?php 
                echo form_open(uri_string());
                ?>
							<?php 
                echo form_fieldset();
                ?>
							<?php 
                echo form_hidden('openid', $openid_link->openid);
                ?>
							<?php 
                echo form_button(array('type' => 'submit', 'class' => 'btn', 'content' => '<i class="icon-trash"></i> ' . lang('linked_remove')));
                ?>
							<?php 
                echo form_fieldset_close();
                ?>
							<?php 
                echo form_close();
                ?>
							<?php 
            }
            ?>
                        </div>
                    </div>

					<?php 
        }
Example #16
0
                if ($settings['comments_enabled'] == "0" && $settings['ratings_enabled'] == "0") {
                    $sys = $locale['459'];
                } elseif ($settings['comments_enabled'] == "0") {
                    $sys = $locale['457'];
                } else {
                    $sys = $locale['458'];
                }
                echo "<tr>\n<td colspan='2' class='tbl1' style='font-weight:bold;text-align:left; color:black !important; background-color:#FFDBDB;'>";
                echo "<span style='color:red;font-weight:bold;margin-right:5px;'>*</span>" . sprintf($locale['456'], $sys);
                echo "</td>\n</tr>";
            }
            echo "<tr>\n";
            echo "<td align='center' colspan='2' class='tbl'><br />\n";
            if (isset($_POST['article_id']) && isnum($_POST['article_id']) || isset($_GET['article_id']) && isnum($_GET['article_id'])) {
                echo form_hidden('', 'article_id', 'article_id', isset($_POST['article_id']) ? $_POST['article_id'] : $_GET['article_id']);
                //echo "<input type='hidden' name='article_id' value='".(isset($_POST['article_id']) ? $_POST['article_id'] : $_GET['article_id'])."' />\n";
            }
            echo form_button($locale['430'], 'preview', 'preview', $locale['430'], array('class' => 'btn-primary m-r-10'));
            echo form_button($locale['431'], 'save', 'save', $locale['431'], array('class' => 'btn-primary'));
            echo "</tr>\n</table>\n</form>\n";
            closetable();
            add_to_jquery("\r\n            function DeleteArticle() { return confirm('" . $locale['451'] . "');}\r\n            \$('#save, #preview').bind('click', function(e) {\r\n            var subject = \$('#subject').val();\r\n            if (subject == '') { alert('" . $locale['450'] . "'); return false; }\r\n            });\r\n            ");
        }
    }
} else {
    opentable($locale['403']);
    echo "<div style='text-align:center'>" . $locale['452'] . "<br />\n" . $locale['453'] . "<br />\n";
    echo "<a href='article_cats.php" . $aidlink . "'>" . $locale['454'] . "</a>" . $locale['455'] . "</div>\n";
    closetable();
}
require_once THEMES . "templates/footer.php";
		<?php 
echo validation_errors();
echo form_open('admin/inserirNovoUsuario');
echo form_label('Nome do usuário', 'login');
$arrayInput = array('type' => 'text', 'name' => 'login', 'id' => 'login');
echo form_input($arrayInput);
echo "<br>";
echo form_label('Perfil', 'descPerfil');
$list = array();
$list[''] = 'Selecione um perfil';
foreach ($tiposPerfis as $tiposPerfil) {
    $list[$tiposPerfil->TipoPerfilID] = ucfirst(htmlspecialchars($tiposPerfil->DescricaoTipoPerfis));
}
echo form_dropdown('perfil', $list);
echo "<br>";
echo form_label('Digite a senha', 'senha1');
$arrayInput = array('type' => 'password', 'name' => 'senha1', 'id' => 'senha1');
echo form_input($arrayInput);
echo "<br>";
echo form_label('Confirme a senha', 'senha2');
$arrayInput = array('type' => 'password', 'name' => 'senha2', 'id' => 'senha2');
echo form_input($arrayInput);
echo "<br>";
$arrayButton = array('type' => 'submit', 'value' => 'Cadastrar', 'content' => 'Cadastrar');
echo form_button($arrayButton);
echo form_close();
?>
			
	</body>
</html>				
Example #18
0
 /**
  * Construct button link.
  * 
  * @param string $employeenumber
  * @return mixed
  */
 private function _leavemodal($employeenumber)
 {
     $employeenumber = trim($employeenumber);
     return form_button(array('name' => 'btn-ot-modal', 'id' => $employeenumber, 'value' => $employeenumber, 'content' => $employeenumber, 'class' => 'btn btn-link', 'data-toggle' => 'modal', 'data-target' => '#adjustLeave', 'data-remote' => site_url("leavecredits/view/" . $employeenumber)));
 }
?>
">
			    <div class="input-group-addon"><i class="fa fa-key"></i></div>
				<?php 
$data = array('name' => 'new-password', 'class' => 'form-control', 'type' => 'text', 'placeholder' => 'New-password', 'value' => set_value("new-password"));
echo form_input($data);
?>
			    </div>
			    <br>
			    <div class="input-group <?php 
echo form_error('re-new-password') != '' ? 'has-error' : '';
?>
">
				<div class="input-group-addon"><i class="fa fa-key"></i></div>
					<?php 
$data = array('name' => 're-new-password', 'class' => 'form-control', 'type' => 'text', 'placeholder' => 'Re-new-password', 'value' => set_value("re-new-password"));
echo form_input($data);
?>
				</div>
			    <br>
			</div>
			<?php 
$data = array('name' => 'submit', 'class' => 'btn btn-success', 'type' => 'submit', 'value' => 'ok');
echo form_button($data, '<i class="fa fa-sign-in"></i> Lấy lại mật khẩu');
?>
		<?php 
echo form_close();
?>
	</div>
</div>
Example #20
0
 if (iMEMBER) {
     $result2 = dbquery("SELECT * FROM " . DB_POLL_VOTES . " WHERE vote_user='******'user_id'] . "' AND poll_id='" . $data['poll_id'] . "'");
 }
 if (iMEMBER && !dbrows($result2) && $data['poll_ended'] == 0) {
     $poll = "";
     $i = 0;
     $num_opts = count($poll_option);
     while ($i < $num_opts) {
         $poll .= "<label><input type='radio' name='voteoption' value='{$i}' /> {$poll_option[$i]}</label><br /><br />\n";
         $i++;
     }
     $form_action = FUSION_SELF . (FUSION_QUERY ? "?" . FUSION_QUERY : "");
     echo openform('voteform', 'post', $form_action, array('max_tokens' => 1));
     echo "<strong>" . $poll_title . "</strong><br /><br />\n" . $poll;
     echo "<div style='text-align:center'><input type='hidden' name='poll_id' value='" . $data['poll_id'] . "' />\n";
     echo form_button("cast_vote", $locale['global_131'], $locale['global_131'], array('class' => 'btn-primary m-r-10'));
     echo "</div>\n";
     echo closeform();
 } else {
     $poll = "";
     $i = 0;
     $num_opts = count($poll_option);
     $poll_votes = dbcount("(vote_opt)", DB_POLL_VOTES, "poll_id='" . $data['poll_id'] . "'");
     while ($i < $num_opts) {
         $num_votes = dbcount("(vote_opt)", DB_POLL_VOTES, "vote_opt='{$i}' AND poll_id='" . $data['poll_id'] . "'");
         $opt_votes = $poll_votes ? number_format(100 / $poll_votes * $num_votes) : 0;
         $poll .= progress_bar($opt_votes, $poll_option[$i]);
         $poll .= "<div>" . $opt_votes . "% [" . (empty($num_votes) ? 0 : $num_votes) . ($num_votes == 1 ? $locale['global_133'] : $locale['global_134']) . "]</div><br />\n";
         $i++;
     }
     echo "<strong>" . $poll_title . "</strong><br /><br />\n" . $poll;
Example #21
0
            foreach ($courses as $discipline => $indexes) {
                echo "<tr>";
                echo "<td>";
                echo $indexes['discipline_name'] . " (" . $indexes['name_abbreviation'] . ")";
                echo "</td>";
                echo "<td>";
                echo $indexes['discipline_code'];
                echo "</td>";
                echo "<td>";
                echo $indexes['workload'] . " h";
                echo "</td>";
                echo "<td>";
                echo anchor("discipline/{$indexes['discipline_code']}", "Editar", array("class" => "btn btn-primary btn-editar", "type" => "submit", "content" => "Editar"));
                echo form_open("discipline/deleteDiscipline");
                echo form_hidden("discipline_code", $indexes['discipline_code']);
                echo form_button(array("class" => "btn btn-danger btn-remover", "type" => "submit", "content" => "Remover"));
                echo form_close();
                echo "</td>";
                echo "</tr>";
            }
        }
    }
} else {
    ?>
		<tr>
			<td>
				<h3>
					<label class="label label-default"> Não existem disciplinas cadastradas</label>
				</h3>
			</td>
		</tr>
Example #22
0
		<?php 
}
?>

        <div class="span4">
			<?php 
echo form_input(array('name' => 'connect_openid_url', 'id' => 'connect_openid_url', 'class' => 'openid', 'value' => set_value('connect_openid_url')));
?>
			<?php 
echo "<BR>" . "<span style=\"color:#B94A48;\">" . form_error('connect_openid_url') . "</span>";
?>
        </div>

        <div class="span2">
			<?php 
echo form_button(array('type' => 'submit', 'class' => 'btn', 'content' => lang('connect_proceed')));
?>
        </div>

		<?php 
echo form_fieldset_close();
?>
		<?php 
echo form_close();
?>

    </div>
</div>

<?php 
echo $this->load->view('footer');
Example #23
0
function updateStudentBasicInformationForm($studentData, $hidden)
{
    $emailLabel = array("name" => "email", "id" => "email", "type" => "text", "class" => "form-campo", "class" => "form-control", "maxlength" => "30", "value" => $studentData['email']);
    $cellPonheLabel = array("name" => "cell_phone_number", "id" => "cell_phone_number", "type" => "text", "class" => "form-campo", "class" => "form-control", "maxlength" => "9", "value" => $studentData['cell_phone_number']);
    $homePonheLabel = array("name" => "home_phone_number", "id" => "home_phone_number", "type" => "text", "class" => "form-campo", "class" => "form-control", "maxlength" => "9", "value" => $studentData['home_phone_number']);
    $submit_button_array_to_form = array("class" => "btn btn-success btn-block ", "content" => "Aprovar", "type" => "submit");
    echo form_open('usuario/updateStudentBasicInformation', '', $hidden);
    echo "<div class='body bg-gray'>";
    echo "<div class='form-group'>";
    echo form_label("Email", "email") . "<br>";
    echo form_input($emailLabel);
    echo form_error("email");
    echo "<br>";
    echo "<br>";
    echo "</div>";
    echo "<div class='form-group'>";
    echo form_label("Telefone Residencial", "home_phone_number") . "<br>";
    echo form_input($homePonheLabel);
    echo form_error("home_phone_number");
    echo "<br>";
    echo "<br>";
    echo "</div>";
    echo "<div class='form-group'>";
    echo form_label("Telefone Celular", "cell_phone_number") . "<br>";
    echo form_input($cellPonheLabel);
    echo form_error("cell_phone_number");
    echo "<br>";
    echo "<br>";
    echo "</div>";
    echo "</div>";
    echo "<div class='footer'>";
    echo form_button($submit_button_array_to_form);
    echo "</div>";
    echo form_close();
}
Example #24
0
echo $key->key_name;
?>
</span><br/>(<?php 
echo $key->project->project_name;
?>
)</div>

            <?php 
echo form_open();
?>
            <?php 
echo form_hidden('projectid', $key->project->project_id);
?>
            <div id="delete-key-form-buttons" class="text-right">
                <?php 
echo form_button(array('content' => 'Cancel', 'class' => 'cancel btn btn-default'));
?>
                <?php 
echo form_submit(array('name' => 'ok', 'value' => 'OK', 'class' => 'ok btn btn-default'));
?>
            </div>
            <?php 
echo form_close();
?>
        </div>
    </div>
</div>

<?php 
if (!(isset($cbox) && $cbox)) {
    require_once 'views/footer.php';
Example #25
0
 /**
  * Construct button link for viewing leave details
  * 
  * @param int $leaveid
  * @return string
  */
 private function _approval_modal($leaveid)
 {
     return form_button(array('name' => 'btn-ot-modal', 'id' => $leaveid, 'value' => $leaveid, 'content' => $leaveid, 'class' => 'btn btn-link', 'data-toggle' => 'modal', 'data-target' => '#viewLeave', 'data-remote' => "leaveapproval/view/" . $leaveid));
 }
Example #26
0
        var awal  = $('#awal').val();
        var akhir = $('#akhir').val();
        window.open('pages/laba-rugi-print.php?awal='+awal+'&akhir='+akhir, 'Arus Kas', 'width='+dWidth+', height='+dHeight+', left='+x+',top='+y);
    });
});
</script>
<h1 class="margin-t-0">Laporan Laba & Rugi</h1>
<div class="input-parameter">
<table width="100%">
    <tr><td width="10%">Range Tanggal:</td><td><?php 
echo form_input('awal', date("d/m/Y"), 'id=awal size=10');
?>
 s . d <?php 
echo form_input('akhir', date("d/m/Y"), 'id=akhir size=10');
?>
</td></tr>
    <tr><td></td><td><?php 
echo form_button('Tampilkan', 'id=search');
?>
 <?php 
echo form_button('Reset', 'id=reset');
?>
 <?php 
echo form_button('Cetak', 'id=cetak');
?>
</td></tr>
</table>
</div>
<div id="result-info">
    
</div>
Example #27
0
<?php

template_set('title', 'Borrar un usuario');
?>
<h3>¿Seguro que desea borrar el siguiente usuario?</h3>
<p><?php 
echo $nick;
?>
 (<?php 
echo $descripcion;
?>
)</p>
<?php 
echo form_open('usuarios/borrar');
?>
    <?php 
echo form_hidden('id', $id);
?>
    <?php 
echo form_submit('borrar', 'Sí');
?>
    <?php 
echo anchor('usuarios/index', form_button('no', 'No'));
echo form_close();
Example #28
0
		
	</tr>
	
    </table>        
</fieldset>
<fieldset class="tblFooters">
	<div id="error">
        <?php 
echo validation_errors();
?>
        <?php 
echo $this->session->flashdata('result_login');
?>
    </div>
	<?php 
echo form_button($submit, 'Login');
?>
</fieldset>

<?php 
echo form_close();
?>

<div id="footer" align="center">
	<p>Copyright &copy; <?php 
echo $instansi;
?>
 2014</p>
	<p>Powered by <strong>KOMINFO KOTA BOGOR & BBPT IPTEKnet</strong></p>
</div>
Example #29
0
?>
">
		<?php 
echo form_label('Category color', 'color');
?>
		<div class="controls">
			<?php 
echo form_input('color', isset($_POST['color']) ? $_POST['color'] : $c->color, 'id="color" class="input-small"');
?>
			<span class="help-inline"><?php 
echo isset($errors['color']) ? $errors['color'] : '<span class="label label-important">required</span> Hexadecimal format, ie: #27A38F';
?>
</span>
		</div>
	</div>
	<?php 
echo form_fieldset_close();
?>
	<div class="form-actions">
		<?php 
echo form_button(array('type' => 'submit', 'content' => 'Edit category', 'class' => 'btn btn-primary'));
?>
		<?php 
echo form_button(array('type' => 'reset', 'content' => 'Cancel', 'class' => 'btn back'));
?>
	</div>
<?php 
echo form_close();
?>

Example #30
-1
 /**
  * generate code
  */
 function write()
 {
     $table = $this->input->post('table');
     $data = form_open('#', 'method="post" id="form"');
     $data .= $this->generate->generate_form($table);
     $data .= form_button(['value' => 'Build', 'class' => 'btn btn-primary', 'id' => 'build'], 'Build');
     $data .= form_close();
     echo json_encode($data);
 }