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


PHP Breadcrumb::add方法代码示例

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


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

示例1: it_can_render_the_view

 /** @test */
 public function it_can_render_the_view()
 {
     $breadcrumb = new Breadcrumb($this->viewFactory);
     $breadcrumb->add('Home');
     $view = $breadcrumb->render();
     $this->assertInstanceOf('Illuminate\\View\\View', $view);
 }
开发者ID:foxted,项目名称:breadcrumb,代码行数:8,代码来源:BreadcrumbTest.php

示例2: show_bread_crumb

function show_bread_crumb($home = null, $categoryName = null, $productName = null)
{
    require_once './classes/clsBreadcrumb.php';
    $trail = new Breadcrumb();
    if ($categoryName == 'catalog') {
        $breadcrumb = $trail->add('Home', $home . 'home.html');
        $breadcrumb = $trail->add('Catalog', '#');
    } elseif ($categoryName != "" && $productName != "") {
        $breadcrumb = $trail->add('Home', $home . 'home.html');
        $breadcrumb = $trail->add($categoryName, '#');
        $breadcrumb = $trail->add($productName, '#');
    } elseif ($categoryName != "") {
        $breadcrumb = $trail->add('Home', $home . 'home.html');
        $breadcrumb = $trail->add(ucwords(eregi_replace("_", " ", $categoryName)), '#');
    } else {
        $breadcrumb = $trail->add('Home', $home . 'home.html');
        //$breadcrumb=$trail->add('My Account', '#');
    }
    return $breadcrumb;
}
开发者ID:hpie,项目名称:hpie,代码行数:20,代码来源:common_functions.php

示例3: FCKeditor

 function show_reply_contact()
 {
     $db = init_db();
     $tpl = init_tpl(SRVROOT . $this->tmpl_path);
     $plu_header = SRVROOT . $this->plu_header_path;
     require_once SRVROOT . FCK . 'fckeditor.php';
     $fckeditor = new FCKeditor('content');
     $fckeditor->Width = '100%';
     $fckeditor->Height = '400px';
     $fckeditor->BasePath = WEBROOT . FCK;
     //3.重要參數: 以 url路徑指定 FCKeditor 主程式所在位置
     //加入麵包屑
     $func_Cname = "回覆表單";
     $trail = new Breadcrumb();
     $trail->add($func_Cname, $_SERVER['REQUEST_URI'], 2);
     $con_id = isset($_GET['con_id']) ? $_GET['con_id'] : "";
     if (!(isset($_GET['con_id']) && preg_match("/^[0-9]*\$/", $_GET['con_id']))) {
         redirect($this->plu_path . "&func=show_contact_list", 0, "你所要刪除的表單不合法");
         exit;
     }
     $sql = "SELECT con.con_id, con.con_name, con.con_title, con.con_time, con.con_phone, con.con_email, con.con_ip, con.con_content,cate.Ccate_name AS cate_name  FROM plu_contact AS con,plu_contact_category AS cate WHERE con.Ccate_id = cate.Ccate_id AND con.con_id = '{$con_id}'";
     //echo $sql;
     $contact_data = $db->get_results($sql, ARRAY_A);
     //print_r($contact_data);
     $tpl->assign("contact_data", $contact_data);
     $tpl->assign("func_Cname", $func_Cname);
     $tpl->assign("plu_header_path", $plu_header);
     $tpl->assign("do_reply_contact_url", $this->plu_path . "&func=do_reply_contact&con_id=" . $con_id);
     $tpl->assign("cancel_add_url", $this->plu_path . "&func=show_contact_list");
     $tpl->assign("content_editor", $fckeditor->CreateHtml());
     return $tpl->fetch("show_reply_contact.tpl");
 }
开发者ID:kingwang317,项目名称:it4fun-guam,代码行数:32,代码来源:index.php

示例4: FCKeditor

 function show_edit_dist()
 {
     $db = init_db();
     $tpl = init_tpl(SRVROOT . $this->tmpl_path);
     $plu_header = SRVROOT . $this->plu_header_path;
     /*require_once(SRVROOT.FCK.'fckeditor.php');
     		$fckeditor = new FCKeditor('content');
     		$fckeditor->Width  = '100%' ;
     		$fckeditor->Height = '400px' ;
     		$fckeditor->BasePath = WEBROOT.FCK;  //3.重要參數: 以 url路徑指定 FCKeditor 主程式所在位置*/
     //加入麵包屑
     $func_Cname = "變更據點";
     $trail = new Breadcrumb();
     $trail->add($func_Cname, $_SERVER['REQUEST_URI'], 2);
     $sel_sql = "SELECT DISTINCT place_id, place_name FROM plu_dist_place";
     $sel_result = $db->get_results($sel_sql, ARRAY_A);
     $tpl->assign("sel_data", $sel_result);
     $dist_id = isset($_GET['dist_id']) ? $_GET['dist_id'] : "";
     $sql = "SELECT UNIX_TIMESTAMP(PublishDate) as t,plu_distributor.* FROM plu_distributor WHERE dist_id={$dist_id}";
     $result = $db->get_row($sql, ARRAY_A);
     if (isset($result)) {
         foreach ($result as $key => $value) {
             if ($key == "img_name" || $key == "movie_name") {
                 $tpl->assign($key, WEBROOT . $this->upload_path . $value);
             } else {
                 $tpl->assign($key, $value);
             }
         }
     }
     $tpl->assign("validate_url", WEBROOT . '/cms/lib/jquery/jquery.validate.js');
     $tpl->assign("func_Cname", $func_Cname);
     $tpl->assign("plu_header_path", $plu_header);
     $tpl->assign("do_edit_dist_url", $this->plu_path . "&func=do_edit_dist&dist_id=" . $dist_id);
     $tpl->assign("cancel_edit_url", $this->plu_path . "&func=show_dist_list");
     //$tpl->assign("content_editor", $fckeditor->CreateHtml());
     return $tpl->fetch("show_edit_dist.tpl");
 }
开发者ID:kingwang317,项目名称:it4fun-guam,代码行数:37,代码来源:index.php

示例5: Breadcrumb

 function show_edit_member()
 {
     $db = init_db();
     $tpl = init_tpl(SRVROOT . $this->tmpl_path);
     $plu_header = SRVROOT . $this->plu_header_path;
     //加入麵包屑
     $func_Cname = "更新會員資料";
     $trail = new Breadcrumb();
     $trail->add($func_Cname, $_SERVER['REQUEST_URI'], 2);
     $sel_sql = "SELECT DISTINCT group_id, group_name FROM plu_member_group";
     $sel_result = $db->get_results($sel_sql, ARRAY_A);
     $tpl->assign("sel_data", $sel_result);
     $member_id = isset($_GET['member_id']) ? $_GET['member_id'] : "";
     $sql = "SELECT plu_member.* FROM plu_member WHERE member_id={$member_id}";
     $result = $db->get_row($sql, ARRAY_A);
     if (isset($result)) {
         foreach ($result as $key => $value) {
             $tpl->assign($key, $value);
         }
     }
     $tpl->assign("validate_url", WEBROOT . '/cms/lib/jquery/jquery.validate.js');
     $tpl->assign("func_Cname", $func_Cname);
     $tpl->assign("plu_header_path", $plu_header);
     $tpl->assign("do_edit_member_url", $this->plu_path . "&func=do_edit_member&uid=" . $member_id);
     $tpl->assign("cancel_edit_url", $this->plu_path . "&func=show_member_list");
     return $tpl->fetch("show_edit_member.tpl");
 }
开发者ID:kingwang317,项目名称:it4fun-guam,代码行数:27,代码来源:index.php

示例6: setBreadcrumb

 /**
  * Setting the Breadcrumb for the Invoice
  */
 function setBreadcrumb()
 {
     $do_breadcrumb = new Breadcrumb();
     $do_breadcrumb->type = "Invoice";
     if (is_object($_SESSION['do_User'])) {
         $do_breadcrumb->iduser = $_SESSION['do_User']->iduser;
     }
     $do_breadcrumb->id = $this->idinvoice;
     $do_breadcrumb->add();
 }
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:13,代码来源:.Invoice.class.php

示例7: setBreadcrumb

 /**
  * Add a breadcrumb for current company
  */
 function setBreadcrumb()
 {
     $do_breadcrumb = new Breadcrumb();
     $do_breadcrumb->type = "Company";
     if (is_object($_SESSION['do_User'])) {
         $do_breadcrumb->iduser = $_SESSION['do_User']->iduser;
     }
     $do_breadcrumb->id = $this->idcompany;
     $do_breadcrumb->add();
 }
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:13,代码来源:Company.class.php

示例8: FCKeditor

 function show_edit_news()
 {
     $db = init_db();
     $tpl = init_tpl(SRVROOT . $this->tmpl_path);
     $plu_header = SRVROOT . $this->plu_header_path;
     require_once SRVROOT . FCK . 'fckeditor.php';
     $fckeditor = new FCKeditor('content');
     $fckeditor->Width = '100%';
     $fckeditor->Height = '400px';
     $fckeditor->BasePath = WEBROOT . FCK;
     //3.重要參數: 以 url路徑指定 FCKeditor 主程式所在位置
     //加入麵包屑
     $func_Cname = "變更最新消息";
     $trail = new Breadcrumb();
     $trail->add($func_Cname, $_SERVER['REQUEST_URI'], 2);
     $sel_sql = "SELECT DISTINCT cate_id, cate_name FROM plu_news_category";
     $sel_result = $db->get_results($sel_sql, ARRAY_A);
     $tpl->assign("sel_data", $sel_result);
     $news_id = isset($_GET['news_id']) ? $_GET['news_id'] : "";
     $sql = "SELECT UNIX_TIMESTAMP(PublishDate) as t,plu_news.* FROM plu_news WHERE news_id={$news_id}";
     $result = $db->get_row($sql, ARRAY_A);
     if (isset($result)) {
         $fckeditor->Value = $result['content'];
         $tpl->assign('publish_date', substr($result['PublishDate'], 0, 10));
         $tpl->assign('publish_hour', substr($result['PublishDate'], 11, 2));
         $tpl->assign('publish_minutes', substr($result['PublishDate'], 14, 2));
         foreach ($result as $key => $value) {
             if ($key == "img_name" || $key == "movie_name") {
                 $tpl->assign($key, WEBROOT . $this->upload_path . $value);
             } else {
                 $tpl->assign($key, $value);
             }
         }
     }
     $tpl->assign("validate_url", WEBROOT . '/cms/lib/jquery/jquery.validate.js');
     $tpl->assign("func_Cname", $func_Cname);
     $tpl->assign("plu_header_path", $plu_header);
     $tpl->assign("do_edit_news_url", $this->plu_path . "&func=do_edit_news&nid=" . $news_id);
     $tpl->assign("cancel_edit_url", $this->plu_path . "&func=show_news_list");
     $tpl->assign("content_editor", $fckeditor->CreateHtml());
     $tpl->assign("meta_field", is_maintainer());
     return $tpl->fetch("show_edit_news.tpl");
 }
开发者ID:kingwang317,项目名称:it4fun-guam,代码行数:43,代码来源:index.php

示例9: Breadcrumb

 function show_edit_objects()
 {
     $db = init_db();
     $tpl = init_tpl(SRVROOT . $this->tmpl_path);
     $plu_header = SRVROOT . $this->plu_header_path;
     //加入麵包屑
     $func_Cname = "變更物件";
     $trail = new Breadcrumb();
     $trail->add($func_Cname, $_SERVER['REQUEST_URI'], 2);
     $object_id = isset($_GET['object_id']) ? $_GET['object_id'] : "";
     $sql = "SELECT * FROM plu_objects a WHERE a.object_id={$object_id}";
     $result = $db->get_row($sql, ARRAY_A);
     require_once SRVROOT . FCK . 'fckeditor.php';
     $fckeditor = new FCKeditor('obj[memo]');
     $fckeditor->Width = '100%';
     $fckeditor->Height = '400px';
     $fckeditor->BasePath = WEBROOT . FCK;
     //3.重要參數: 以 url路徑指定 FCKeditor 主程式所在位置
     $fckeditor->Value = htmlspecialchars_decode($result["memo"]);
     $tpl->assign("content_editor", $fckeditor->CreateHtml());
     foreach ($result as $key => $value) {
         $tpl->assign($key, htmlspecialchars_decode($value));
     }
     $sql = "SELECT * FROM plu_objects_household a WHERE a.object_id={$object_id}";
     $result = $db->get_row($sql, ARRAY_A);
     foreach ($result as $key => $value) {
         if ($key == "object_id") {
             continue;
         }
         $tpl->assign($key, htmlspecialchars_decode($value));
     }
     $sql = "SELECT * FROM plu_objects_pic a WHERE a.object_id={$object_id}";
     $result = $db->get_results($sql, ARRAY_A);
     $tpl->assign("file_path", WEBROOT . $this->upload_path);
     for ($i = 0; $i < count($result); $i++) {
         $tpl->assign($result[$i]['item'], $result[$i]['filename']);
     }
     $tpl->assign("validate_url", WEBROOT . '/cms/lib/jquery/jquery.validate.js');
     $tpl->assign("wizard_url", WEBROOT . '/cms/lib/jquery/jquery.form.wizard.js');
     $tpl->assign("history_url", WEBROOT . '/cms/lib/jquery/jquery.history.js');
     $tpl->assign("mrt_url", WEBROOT . '/cms/lib/js/MRT.js');
     $tpl->assign("form_url", WEBROOT . '/cms/lib/jquery/jquery.form.js');
     $tpl->assign("datepicker_url", WEBROOT . '/cms/lib/js/chineseDatepicker.js');
     $tpl->assign("func_Cname", $func_Cname);
     $tpl->assign("plu_header_path", $plu_header);
     $tpl->assign("check_address_url", $this->plu_path . "&cmsroot=get_data&func=check_address&object_id=" . $object_id);
     $tpl->assign("check_auction_url", $this->plu_path . "&cmsroot=get_data&func=check_auction&object_id=" . $object_id);
     $tpl->assign("do_edit_objects_url", $this->plu_path . "&func=do_edit_objects&object_id=" . $object_id);
     $tpl->assign("cancel_add_url", $this->plu_path . "&func=show_objects_list");
     return $tpl->fetch("show_edit_objects.tpl");
 }
开发者ID:kingwang317,项目名称:it4fun-guam,代码行数:51,代码来源:index.php

示例10: Breadcrumb

 function show_edit_orders()
 {
     $db = init_db();
     $tpl = init_tpl(SRVROOT . $this->tmpl_path);
     $plu_header = SRVROOT . $this->plu_header_path;
     //加入麵包屑
     $func_Cname = "訂單明細";
     $trail = new Breadcrumb();
     $trail->add($func_Cname, $_SERVER['REQUEST_URI'], 2);
     $order_id = isset($_GET['order_id']) ? $_GET['order_id'] : "";
     $sql = "SELECT a.*,b.account,b.birth,SUM(qty*unit_price) as subtotal FROM plu_orders a JOIN plu_member b ON a.member_id=b.member_id ";
     $sql .= "JOIN plu_orders_detail c ON a.order_id=c.order_id WHERE a.order_id={$order_id} GROUP BY a.order_id";
     $result = $db->get_row($sql, ARRAY_A);
     foreach ($result as $key => $value) {
         $tpl->assign($key, $value);
     }
     if (isset($result)) {
         $sql = "SELECT b.name as prod_name, a.qty,a.unit_price FROM plu_orders_detail a JOIN plu_product b ON a.prod_id=b.prod_id WHERE order_id={$order_id}";
         $sel_result = $db->get_results($sql, ARRAY_A);
         $tpl->assign("orders_data", $sel_result);
     }
     $tpl->assign("validate_url", WEBROOT . '/cms/lib/jquery/jquery.validate.js');
     $tpl->assign("func_Cname", $func_Cname);
     $tpl->assign("plu_header_path", $plu_header);
     $tpl->assign("do_edit_orders_url", $this->plu_path . "&func=do_edit_orders&order_id=" . $order_id);
     $tpl->assign("cancel_add_url", $this->plu_path . "&func=show_orders_list");
     return $tpl->fetch("show_edit_order.tpl");
 }
开发者ID:kingwang317,项目名称:it4fun-guam,代码行数:28,代码来源:index.php

示例11: setBreadcrumb

 /**
  * Add a breadcrumb for current project
  */
 function setBreadcrumb()
 {
     $do_breadcrumb = new Breadcrumb();
     $do_breadcrumb->type = 'Project';
     if (is_object($_SESSION['do_User'])) {
         $do_breadcrumb->iduser = $_SESSION['do_User']->iduser;
     }
     $do_breadcrumb->id = $this->idproject;
     $do_breadcrumb->add();
 }
开发者ID:jacquesbagui,项目名称:ofuz,代码行数:13,代码来源:.Project.class.php

示例12: Breadcrumb

 function show_edit_category()
 {
     $db = init_db();
     $tpl = init_tpl(SRVROOT . $this->tmpl_path);
     $plu_header = SRVROOT . $this->plu_header_path;
     //加入麵包屑
     $func_Cname = "變更分類";
     $trail = new Breadcrumb();
     $trail->add($func_Cname, $_SERVER['REQUEST_URI'], 2);
     if (!(isset($_GET['cate_id']) && preg_match("/^[0-9]*\$/", $_GET['cate_id']))) {
         redirect($this->plu_path . "&func=show_category_list", 0, "你所要變更的分類不存在");
         exit;
     }
     $cate_id = $_GET['cate_id'];
     $sel_sql = "SELECT DISTINCT cate_id, cate_name FROM plu_product_category WHERE parent_id=-1";
     $sel_result = $db->get_results($sel_sql, ARRAY_A);
     $tpl->assign("sel_data", $sel_result);
     $sel_sql = "SELECT * FROM plu_product_category WHERE cate_id=" . $cate_id;
     $result = $db->get_row($sel_sql, ARRAY_A);
     foreach ($result as $key => $value) {
         $tpl->assign($key, $value);
     }
     $tpl->assign("validate_url", WEBROOT . '/cms/lib/jquery/jquery.validate.js');
     $tpl->assign("func_Cname", $func_Cname);
     $tpl->assign("plu_header_path", $plu_header);
     $tpl->assign("do_add_category_url", $this->plu_path . "&func=do_edit_category&cid=" . $cate_id);
     $tpl->assign("cancel_add_url", $this->plu_path . "&func=show_category_list");
     return $tpl->fetch("show_add_category.tpl");
 }
开发者ID:kingwang317,项目名称:it4fun-guam,代码行数:29,代码来源:sub.php

示例13: Breadcrumb

 function show_edit_doc()
 {
     $db = init_db();
     $tpl = init_tpl(SRVROOT . $this->tmpl_path);
     $plu_header = SRVROOT . $this->plu_header_path;
     //加入麵包屑
     $func_Cname = "更新文件";
     $trail = new Breadcrumb();
     $trail->add($func_Cname, $_SERVER['REQUEST_URI'], 2);
     $sel_sql = "SELECT DISTINCT cate_id, cate_name FROM plu_document_category";
     $sel_result = $db->get_results($sel_sql, ARRAY_A);
     $tpl->assign("sel_data", $sel_result);
     $doc_id = isset($_GET['doc_id']) ? $_GET['doc_id'] : "";
     $sql = "SELECT * FROM plu_document WHERE doc_id={$doc_id}";
     $result = $db->get_row($sql, ARRAY_A);
     if (isset($result)) {
         foreach ($result as $key => $value) {
             if ($key == 'name') {
                 $tpl->assign($key, substr($value, 0, strrpos($value, ".")));
                 $tpl->assign('doc_type', substr($value, strrpos($value, ".")));
             } else {
                 $tpl->assign($key, $value);
             }
         }
     }
     $tpl->assign("validate_url", WEBROOT . '/cms/lib/jquery/jquery.validate.js');
     $tpl->assign("func_Cname", $func_Cname);
     $tpl->assign("plu_header_path", $plu_header);
     $tpl->assign("uploadPath", WEBROOT . $this->upload_path);
     $tpl->assign("do_edit_doc_url", $this->plu_path . "&func=do_edit_doc&did=" . $doc_id);
     $tpl->assign("cancel_edit_url", $this->plu_path . "&func=show_doc_list");
     return $tpl->fetch("show_edit_doc.tpl");
 }
开发者ID:kingwang317,项目名称:it4fun-guam,代码行数:33,代码来源:index.php

示例14: FCKeditor

 function show_edit_product()
 {
     $db = init_db();
     $tpl = init_tpl(SRVROOT . $this->tmpl_path);
     $plu_header = SRVROOT . $this->plu_header_path;
     require_once SRVROOT . FCK . 'fckeditor.php';
     $fckeditor = new FCKeditor('content');
     $fckeditor->Width = '100%';
     $fckeditor->Height = '400px';
     $fckeditor->BasePath = WEBROOT . FCK;
     //3.重要參數: 以 url路徑指定 FCKeditor 主程式所在位置
     //加入麵包屑
     $func_Cname = "變更商品";
     $trail = new Breadcrumb();
     $trail->add($func_Cname, $_SERVER['REQUEST_URI'], 2);
     $sel_sql = "SELECT DISTINCT cate_id, cate_name FROM plu_product_category WHERE parent_id=-1";
     $sel_result = $db->get_results($sel_sql, ARRAY_A);
     $tpl->assign("sel_data", $sel_result);
     $prod_id = isset($_GET['prod_id']) ? $_GET['prod_id'] : "";
     $sql = "SELECT UNIX_TIMESTAMP(PublishDate) as t,plu_product.* FROM plu_product WHERE prod_id={$prod_id}";
     $result = $db->get_row($sql, ARRAY_A);
     if (isset($result)) {
         $sel_sql = "SELECT DISTINCT cate_id, cate_name, parent_id FROM plu_product_category WHERE parent_id<>-1 AND parent_id=(SELECT parent_id FROM plu_product_category WHERE cate_id=" . $result['cate_id'] . ")";
         $sel_result = $db->get_results($sel_sql, ARRAY_A);
         $tpl->assign("sec_sel_data", $sel_result);
         $row = $sel_result[0];
         if ($sel_result != NULL && $row['parent_id'] != $result['cate_id']) {
             $tpl->assign('cate_id', $row['parent_id']);
             $tpl->assign('sec_cate_id', $result['cate_id']);
         } else {
             $tpl->assign('cate_id', $result['cate_id']);
         }
         $fckeditor->Value = $result['content'];
         $tpl->assign('publish_date', substr($result['PublishDate'], 0, 10));
         $tpl->assign('publish_hour', substr($result['PublishDate'], 11, 2));
         $tpl->assign('publish_minutes', substr($result['PublishDate'], 14, 2));
         foreach ($result as $key => $value) {
             if ($key == "img_name" || $key == "movie_name") {
                 $tpl->assign("img_path", WEBROOT . $this->upload_path);
                 $tpl->assign($key, explode('|', $value));
             } else {
                 if ($key != "cate_id") {
                     $tpl->assign($key, $value);
                 }
             }
         }
     }
     $tpl->assign("multiFile_url", WEBROOT . '/cms/lib/jquery/ui/jquery.multifile.js');
     $tpl->assign("validate_url", WEBROOT . '/cms/lib/jquery/jquery.validate.js');
     $tpl->assign("meta_field", is_maintainer());
     $tpl->assign("second_cate", $this->get_subcategory_script());
     $tpl->assign("func_Cname", $func_Cname);
     $tpl->assign("plu_header_path", $plu_header);
     $tpl->assign("do_edit_product_url", $this->plu_path . "&func=do_edit_product&prod_id=" . $prod_id);
     $tpl->assign("cancel_edit_url", $this->plu_path . "&func=show_product_list");
     $tpl->assign("content_editor", $fckeditor->CreateHtml());
     return $tpl->fetch("show_edit_product.tpl");
 }
开发者ID:kingwang317,项目名称:it4fun-guam,代码行数:58,代码来源:index.php

示例15: Breadcrumb

 function show_edit_user()
 {
     $db = init_db();
     $func_Cname = "修改使用者";
     $trail = new Breadcrumb();
     $trail->add($func_Cname, $_SERVER['REQUEST_URI'], 2);
     $site_data = array();
     $tpl = init_tpl(SRVROOT . $this->tmpl_path);
     $plu_header = SRVROOT . $this->plu_header_path;
     $tpl->assign("func_Cname", $func_Cname);
     $tpl->assign("plu_header_path", $plu_header);
     $user_id = isset($_GET['user_id']) ? $_GET['user_id'] : "";
     $sql = "SELECT user_nickname,user_email FROM sys_user WHERE user_id = '{$user_id}'";
     $result = $db->get_results($sql);
     if (isset($result)) {
         foreach ($result as $row) {
             $site_data[] = array('user_id' => $user_id, 'user_nickname' => $row->user_nickname, 'user_email' => $row->user_email);
         }
     }
     $tpl->assign("site_data", $site_data);
     $tpl->assign("cancel_edit_url", $this->plu_path . "&func=show_user_list");
     $tpl->assign("do_edit_user_url", $this->plu_path . "&func=do_edit_user");
     return $tpl->fetch("show_edit_user.tpl");
 }
开发者ID:kingwang317,项目名称:it4fun-guam,代码行数:24,代码来源:index.php


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