当前位置: 首页>>代码示例>>PHP>>正文


PHP form_button函数代码示例

本文整理汇总了PHP中form_button函数的典型用法代码示例。如果您正苦于以下问题:PHP form_button函数的具体用法?PHP form_button怎么用?PHP form_button使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了form_button函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: build_form_filtro

 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);
     }
 }
开发者ID:minorusal,项目名称:admin_salon,代码行数:25,代码来源:ventas_punto_venta.php

示例2: get_html

 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;
 }
开发者ID:antoniorequenalorente,项目名称:Fanpage-import,代码行数:7,代码来源:import.php

示例3: showratings

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='" . $userdata['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='" . $userdata['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";
        }
    }
}
开发者ID:knapnet,项目名称:PHP-Fusion,代码行数:59,代码来源:ratings_include.php

示例4: exissinv

 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;
 }
开发者ID:codethics,项目名称:proteoerp,代码行数:11,代码来源:scst.php

示例5: createForm

 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;
 }
开发者ID:saulobsi,项目名称:w4y,代码行数:12,代码来源:Login.php

示例6: makePredictionForm

 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()"');
 }
开发者ID:CST2015Dolphins,项目名称:MiamiDolphins,代码行数:12,代码来源:Welcome.php

示例7: exissinv

 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;
 }
开发者ID:codethics,项目名称:proteoerp,代码行数:13,代码来源:scst.php

示例8: agreementForm

 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;
 }
开发者ID:pshreez,项目名称:PHP,代码行数:47,代码来源:agreement.php

示例9: render_admin_login

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";
}
开发者ID:knapnet,项目名称:PHP-Fusion,代码行数:46,代码来源:acp_theme.php

示例10: show_groups_table

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>';
}
开发者ID:inexor-game-obsolete,项目名称:project-site,代码行数:17,代码来源:user_groups.php

示例11: render_admin_login

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";
}
开发者ID:php-fusion,项目名称:PHP-Fusion,代码行数:43,代码来源:acp_theme.php

示例12: index

 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);
 }
开发者ID:minorusal,项目名称:admin_salon,代码行数:36,代码来源:empresa.php

示例13: form_button

        //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>
开发者ID:vestineo,项目名称:Zenoir-Online-Classroom,代码行数:31,代码来源:view_file.php

示例14: addNotice

        $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";
开发者ID:knapnet,项目名称:PHP-Fusion,代码行数:31,代码来源:settings_registration.php

示例15: form_open

                        </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 
        }
开发者ID:bet0x,项目名称:A3,代码行数:31,代码来源:account_linked.php


注:本文中的form_button函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。