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


PHP View::do_dump方法代码示例

本文整理汇总了PHP中View::do_dump方法的典型用法代码示例。如果您正苦于以下问题:PHP View::do_dump方法的具体用法?PHP View::do_dump怎么用?PHP View::do_dump使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在View的用法示例。


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

示例1: edit

 function edit()
 {
     $idval = $this->input->get['id'];
     $data['pagename'] = '';
     $this->editproduct = new productModel();
     $res = $this->editproduct->retrieve($idval);
     $data['pro_row'] = $res;
     $this->maincategory = new maincategoryModel();
     $res1 = $this->maincategory->select();
     $data['maincat_row'] = $res1;
     $this->category = new categoryModel();
     $res2 = $this->category->select();
     $data['cat_row'] = $res2;
     $this->subcategory = new subcategoryModel();
     $res3 = $this->subcategory->select();
     $data['subcat_row'] = $res3;
     $this->producttypefound = new producttypeModel();
     $resproducttype = $this->producttypefound->select();
     $data['row_type'] = $resproducttype;
     $this->featurefound = new featureModel();
     $resfeaturefound = $this->featurefound->select();
     $data['row_feature'] = $resfeaturefound;
     $data['body'][] = View::do_fetch(VIEW_PATH . 'admin/product/editproduct.php', $data);
     $data['foot'][] = 'footer of  K-MVC';
     View::do_dump(VIEW_PATH . 'layouts/homelayout.php', $data);
 }
开发者ID:jyotiprava,项目名称:45serverbackup,代码行数:26,代码来源:stock.php

示例2: _edit_score

function _edit_score($OID = 0, $CID = 0)
{
    loginRequireMgmt();
    if (!loginCheckPermission(USER::MGMT_TEAM)) {
        redirect("errors/401");
    }
    $item = "Team";
    $urlPrefix = "mgmt_team";
    $object = new Team();
    $object->retrieve($OID, $CID);
    if (!$object->exists()) {
        $data['body'][] = "<p>{$item} Not Found!</p>";
    } else {
        $fdata['form_heading'] = "Edit {$item} Score";
        $fdata['object'] = $object;
        $fdata['actionUrl'] = myUrl("{$urlPrefix}/ops_update_score");
        $fdata['actionLabel'] = "Submit";
        $fdata['cancelUrl'] = myUrl("{$urlPrefix}/manage");
        $fdata['cancelLabel'] = "Cancel";
        $form = View::do_fetch(VIEW_PATH . "{$urlPrefix}/score_form.php", $fdata);
        $data['head'][] = View::do_fetch(VIEW_PATH . "{$urlPrefix}/score_form_js.php");
        $data['body'][] = "<h2>Edit {$item} Score</h2>";
        $data['body'][] = $form;
    }
    View::do_dump(VIEW_PATH . 'layouts/mgmtlayout.php', $data);
}
开发者ID:brata-hsdc,项目名称:brata.masterserver,代码行数:26,代码来源:edit_score.php

示例3: _showevents

function _showevents($n = 0)
{
    $n = (int) $n;
    $data['body'][] = '<h2>Show Events</h2><br />';
    _make_html_table($n, $data);
    View::do_dump(VIEW_PATH . 'layouts/mgmtlayout.php', $data);
}
开发者ID:brata-hsdc,项目名称:brata.masterserver,代码行数:7,代码来源:showevents.php

示例4: _addGrupaMember

function _addGrupaMember()
{
    isUserLoggedIn();
    $grupa = new Grupa(getdbh());
    $checkGroup = $grupa->checkGroupRegistration($_POST['userID']);
    if ($checkGroup != false) {
        if ($checkGroup['ID_GRUPA'] != $_POST['grupaID']) {
            $delete = $grupa->deleteGrupaMember($checkGroup['ID']);
        }
    }
    $check = $grupa->checkRegister($_POST['grupaID'], $_POST['userID']);
    if ($check == false) {
        $addMember = $grupa->addGrupaMember($_POST['grupaID'], $_POST['userID']);
        if ($addMember) {
            $data['msg'][] = "Studentul a fost inscris in grupa";
            $data['redirect'][] = 'administrare/show_grup';
            View::do_dump(VIEW_PATH . 'layout.php', $data);
        } else {
            $data['msg'][] = "Eroare la inscriere";
            $data['redirect'][] = 'administrare/show_grup';
            View::do_dump(VIEW_PATH . 'layout.php', $data);
        }
    } else {
        $data['msg'][] = "Studentul este inscris la aceasta grupa";
        $data['redirect'][] = 'administrare/show_grup';
        View::do_dump(VIEW_PATH . 'layout.php', $data);
    }
}
开发者ID:laiello,项目名称:ebs-academy-at-ulbs-2014,代码行数:28,代码来源:addGrupaMember.php

示例5: _about

function _about($mode = "version")
{
    $form = View::do_fetch(VIEW_PATH . 'student/' . $mode . '.php');
    //$data['body'][]='<h2>Add New Topic</h2>';
    $data['body'][] = $form;
    View::do_dump(VIEW_PATH . 'layouts/student.php', $data);
}
开发者ID:brata-hsdc,项目名称:brata.masterserver,代码行数:7,代码来源:about.php

示例6: _showAllMat

function _showAllMat()
{
    $materie = new Materii(getdbh());
    $result['materii'] = $materie->fetchMaterii();
    $data['msg'][] = View::do_fetch(VIEW_PATH . 'showAllMat.tpl.php', $result);
    View::do_dump(VIEW_PATH . 'layout.php', $data);
}
开发者ID:laiello,项目名称:ebs-academy-at-ulbs-2014,代码行数:7,代码来源:showAllMat.php

示例7: _show

function _show($OID = 0, $CID = 0)
{
    loginRequireMgmt();
    if (!loginCheckPermission(USER::MGMT_HMB_DATA)) {
        redirect("errors/401");
    }
    $item = "HMB Data";
    $urlPrefix = "mgmt_hmb_data";
    $object = new HMBData();
    $object->retrieve($OID, $CID);
    if (!$object->exists()) {
        $data['body'][] = "<p>{$item} Not Found!</p>";
    } else {
        $fdata['form_heading'] = "Test {$item} -- Todo remove this";
        $fdata['object'] = $object;
        $fdata['actionUrl'] = myUrl("{$urlPrefix}/ops_update");
        $fdata['actionLabel'] = "Submit";
        $fdata['cancelUrl'] = myUrl("{$urlPrefix}/manage");
        $fdata['cancelLabel'] = "Back";
        $form = View::do_fetch(VIEW_PATH . "{$urlPrefix}/show.php", $fdata);
        //$data['head'][]=View::do_fetch(VIEW_PATH."$urlPrefix/form_js.php");
        $data['body'][] = "<h2>Show {$item}</h2>";
        $data['body'][] = $form;
    }
    View::do_dump(VIEW_PATH . 'layouts/mgmtlayout.php', $data);
}
开发者ID:brata-hsdc,项目名称:brata.masterserver,代码行数:26,代码来源:show.php

示例8: _index

function _index()
{
    loginRequireMgmt();
    $data['pagename'] = 'Welcome';
    $data['body'][] = View::do_fetch(VIEW_PATH . 'mgmt_main/index.php');
    View::do_dump(VIEW_PATH . 'layouts/mgmtlayout.php', $data);
}
开发者ID:brata-hsdc,项目名称:brata.masterserver,代码行数:7,代码来源:index.php

示例9: producto

 static function producto($producto)
 {
     if (!$producto->exists()) {
         View::do_dump(APP_PATH . 'views/productos/error.php', array('mensaje' => "El producto seleccionado no existe"));
         exit;
     }
 }
开发者ID:ET37,项目名称:Ortega-Productos-ABM,代码行数:7,代码来源:precondition.php

示例10: _request_new_password

function _request_new_password()
{
    if (isset($_POST['email'])) {
        $user = new User(getdbh());
        $ID = $user->checkEmail($_POST['email']);
        if (isset($ID['ID'])) {
            $setToken = $user->setRecover($ID['ID'], $_POST['email']);
            if ($setToken != false) {
                $body = 'Pentru a schimba parola apasa   <a href="' . WEB_DOMAIN . WEB_FOLDER . 'ops/recover_password/' . $setToken . '"> AICI </a>';
                if (sendEmail('Schimbare parola', $body, 'ulbsPlatform@ebs.ro', $_POST['email'])) {
                    $data['msg'][] = "Emailul cu linkul de resetare a parolei a fost trimis";
                    View::do_dump(VIEW_PATH . 'layout.php', $data);
                } else {
                    $data['msg'][] = "Emailul nu a fost trimis";
                    View::do_dump(VIEW_PATH . 'layout.php', $data);
                }
            } else {
                $data['msg'][] = "Tokenul este gresit sau au trecut mai mult de 2 zile de la cererea de recuperare parola";
                View::do_dump(VIEW_PATH . 'layout.php', $data);
            }
        } else {
            $data['msg'][] = "Acest user nu exista";
            View::do_dump(VIEW_PATH . 'layout.php', $data);
        }
    } else {
        redirect('main/index');
    }
}
开发者ID:laiello,项目名称:ebs-academy-at-ulbs-2014,代码行数:28,代码来源:request_new_password.php

示例11: _newUser

function _newUser()
{
    $user = new User(getdbh());
    $email = $user->checkEmail($_POST['email']);
    if (isset($email['ID'])) {
        $data['msg'][] = " Acest email nu este disponibil! Va rugam alegeti altul!";
        $data['redirect'][] = 'main/new';
        View::do_dump(VIEW_PATH . 'layout.php', $data);
    } else {
        $result = $user->addUser($_POST['email'], $_POST['password1'], $_POST['nume'], $_POST['prenume']);
        if ($result > 0) {
            $setToken = $user->newUserToken($result);
            if ($setToken != false) {
                $body = 'Pentru a activa contul apasa   <a href="' . WEB_DOMAIN . WEB_FOLDER . 'ops/newUserToken/' . $setToken . '"> AICI </a>';
                if (sendEmail('Email confirmare cont', $body, 'ulbsPlatform@ebs.ro', $_POST['email'])) {
                    $data['msg'][] = "Emailul cu linkul de confirmare cont a fost trimis";
                    $data['redirect'][] = 'main/index';
                    View::do_dump(VIEW_PATH . 'layout.php', $data);
                } else {
                    $data['msg'][] = "Emailul cu linkul de confirmare nu a fost trimis";
                    $data['redirect'][] = 'main/index';
                    View::do_dump(VIEW_PATH . 'layout.php', $data);
                }
            } else {
                $data['msg'][] = "Eroare la generarea tokenului";
                $data['redirect'][] = 'main/index';
                View::do_dump(VIEW_PATH . 'layout.php', $data);
            }
        } else {
            $data['msg'][] = "Eroare la crearea contului!";
            $data['redirect'][] = 'main/index';
            View::do_dump(VIEW_PATH . 'layout.php', $data);
        }
    }
}
开发者ID:laiello,项目名称:ebs-academy-at-ulbs-2014,代码行数:35,代码来源:newUser.php

示例12: _ver

function _ver($url = '')
{
    precondition::url($url);
    $producto = new Producto();
    $producto->retrieve_one("url=?", $url);
    precondition::producto($producto);
    View::do_dump(APP_PATH . 'views/productos/ver.php', array('producto' => $producto));
}
开发者ID:ET37,项目名称:Ortega-Productos-ABM,代码行数:8,代码来源:ver.php

示例13: paymentsuccess

 function paymentsuccess()
 {
     $this->bapuobj = new bapuappModel();
     $res = $this->bapuobj->paymentsuccess($this->input->request['orderid']);
     $data['row'] = $res;
     $data['jsonval'] = $_GET['jsoncallback'];
     View::do_dump(VIEW_PATH . 'bapuapp/guestdetail.php', $data);
 }
开发者ID:jyotiprava,项目名称:45serverbackup,代码行数:8,代码来源:bapuapp.php

示例14: _addMaterii

function _addMaterii()
{
    isUserLoggedIn();
    $user = new User(getdbh());
    $result['profesori'] = $user->fetchByType('profesor');
    $data['msg'][] = View::do_fetch(VIEW_PATH . 'addMaterii.tpl.php', $result);
    View::do_dump(VIEW_PATH . 'layout.php', $data);
}
开发者ID:laiello,项目名称:ebs-academy-at-ulbs-2014,代码行数:8,代码来源:addMaterii.php

示例15: checkout

 function checkout()
 {
     $this->bapuobj = new bapuappModel();
     $res = $this->bapuobj->checkout($this->input->request['name'], $this->input->request['email'], $this->input->request['address'], $this->input->request['country'], $this->input->request['city'], $this->input->request['phone'], $this->input->request['allitem'], $this->input->request['total']);
     $data['row'] = $res;
     $data['jsonval'] = $_GET['jsoncallback'];
     View::do_dump(VIEW_PATH . 'bapuapp/guestdetail.php', $data);
 }
开发者ID:jyotiprava,项目名称:45serverbackup,代码行数:8,代码来源:bapuapp.php


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