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


PHP View::do_fetch方法代码示例

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


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

示例1: _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

示例2: _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

示例3: _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

示例4: 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

示例5: _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

示例6: _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

示例7: _show_materii

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

示例8: _login

function _login($username = '')
{
    $data['pagename'] = 'Please Login';
    $data['body'][] = '<h2>Please Login to Proceed</h2><br />';
    $data['body'][] = View::do_fetch(VIEW_PATH . 'mgmt_main/login_form.php', array('username' => $username));
    $data['body'][] = '<p>You can login with username="admin" and password="pass".<br />If that doesnt work try resetting the user database first.</p>';
    View::do_dump(VIEW_PATH . 'layouts/mgmtlayout.php', $data);
}
开发者ID:brata-hsdc,项目名称:brata.masterserver,代码行数:8,代码来源:login.php

示例9: _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

示例10: _resetdb

function _resetdb()
{
    $fdata['actionUrl'] = myUrl('ops/resetdb');
    $fdata['cancelUrl'] = myUrl('mgmt_main/index');
    $data['pagename'] = 'Reset Database';
    $data['body'][] = '<h2>Warning Submitting this form will reset the Database</h2><br/>';
    $data['body'][] = View::do_fetch(VIEW_PATH . 'mgmt_main/resetdb_form.php', $fdata);
    View::do_dump(VIEW_PATH . 'layouts/mgmtlayout.php', $data);
}
开发者ID:brata-hsdc,项目名称:brata.masterserver,代码行数:9,代码来源:resetdb.php

示例11: _show_grup

function _show_grup()
{
    isUserLoggedIn();
    $grupa = new Grupa(getdbh());
    $allGroups = $grupa->fetchAll();
    $result['grupa'] = $allGroups;
    $data['msg'][] = View::do_fetch(VIEW_PATH . 'afisare_grupa.tpl.php', $result);
    View::do_dump(VIEW_PATH . 'layout.php', $data);
}
开发者ID:laiello,项目名称:ebs-academy-at-ulbs-2014,代码行数:9,代码来源:show_grup.php

示例12: _show_users

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

示例13: user

 function user()
 {
     $data['pagename'] = '';
     $this->studentlist = new adminloginModel();
     //$data['body'][]=View::do_fetch(VIEW_PATH.'admin/main/homeheader.php',$data);
     $data['body'][] = View::do_fetch(VIEW_PATH . 'users/brandz/index.php', $data);
     $data['foot'][] = 'footer of  K-MVC';
     View::do_dump(VIEW_PATH . 'layouts/layout.php', $data);
 }
开发者ID:jyotiprava,项目名称:45serverbackup,代码行数:9,代码来源:main.php

示例14: _loaddb

function _loaddb()
{
    $fdata['actionUrl'] = myUrl('mgmt_cpa_data/ops_loaddb');
    $fdata['cancelUrl'] = myUrl('mgmt_cpa_data/index');
    $data['pagename'] = 'Load Database';
    $data['body'][] = '<h2>Warning Submitting this form will replace all existing CPS data in the Database</h2><br/>';
    $data['body'][] = View::do_fetch(VIEW_PATH . 'mgmt_cpa_data/loaddb.php', $fdata);
    View::do_dump(VIEW_PATH . 'layouts/mgmtlayout.php', $data);
}
开发者ID:brata-hsdc,项目名称:brata.masterserver,代码行数:9,代码来源:loaddb.php

示例15: _clear_scores

function _clear_scores()
{
    $fdata['actionUrl'] = myUrl('ops/clear_scores');
    $fdata['cancelUrl'] = myUrl('mgmt_main/index');
    $data['pagename'] = 'Clear Scores';
    $data['body'][] = '<h2>Warning Submitting this form will clear all scoring data the Database</h2><br/>';
    $data['body'][] = View::do_fetch(VIEW_PATH . 'mgmt_main/clear_scores_form.php', $fdata);
    View::do_dump(VIEW_PATH . 'layouts/mgmtlayout.php', $data);
}
开发者ID:brata-hsdc,项目名称:brata.masterserver,代码行数:9,代码来源:clear_scores.php


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