示例#1
0
<?php

/*
 * Created on 2012-6-30
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
require '../include/common.inc.php';
include ROOT . '/include/init.inc.php';
require ROOT . '/classes/datamgr/hospital.cls.php';
require ROOT . '/classes/datamgr/category.cls.php';
$search = $_REQUEST["search"];
$smarty->assign("searchkeyword", $search);
$currentpage = getPageNumber();
$hospitallist = $hospitalMgr->getHospitalList($search, $currentpage);
$smarty->assign("list", $hospitallist);
$hospitalsum = $hospitalMgr->getHospitalListPageCount($search, $currentpage);
$smarty->assign("hospital_count", $hospitalsum);
$smarty->assign("current_page", $currentpage);
$smarty->assign("lastpage", $currentpage);
$smarty->assign("page_arr", getPageNumberCodeArray($hospitalsum, $currentpage, 9));
$category = $categoryMgr->getCategoryWithSubCategory();
//print_r($category);
$smarty->assign("category", $category);
$smarty->assign("searchurl", "/Hospital/hospitallist.php?");
$smarty->display(ROOT . '/templates/Hospital/hospitallist.html');
示例#2
0
$action = $_REQUEST["action"];
if ($action == "submit") {
    //$caselist=$_REQUEST["caselist"];
    //$memberMgr->deleteCaseList($member["id"],$caselist);
    echo "RIGHT";
    exit;
} else {
    $doctorlist = $memberMgr->getOrderDoctor($member["id"]);
    $smarty->assign("doctorlist", $doctorlist);
    $doctor_id = $_REQUEST["doctor_id"];
    $from = $_REQUEST["from"];
    $to = $_REQUEST["to"];
    $smarty->assign("doctor_id", $doctor_id);
    $smarty->assign("from", $from);
    $smarty->assign("to", $to);
    $currentpage = getPageNumber();
    $bookinglist = $memberMgr->getBookingList($member["id"], $doctor_id, $from, $to, $currentpage);
    $list = array();
    for ($i = 0; $i < 15; $i++) {
        $list[$i] = $bookinglist[$i];
    }
    $smarty->assign("list", $list);
    $sum = $memberMgr->getBookingListPageCount($member["id"], $doctor_id, $from, $to);
    $smarty->assign("count", $sum);
    $smarty->assign("current_page", $currentpage);
    $smarty->assign("lastpage", $currentpage);
    $smarty->assign("page_arr", getPageNumberCodeArray($sum, $currentpage, 15));
    $smarty->assign("list", $list);
    $smarty->assign("menuid", "booking");
    $smarty->display(ROOT . '/templates/Member/bookinglist.html');
}
示例#3
0
<?php

/*
 * Created on 2012-6-30
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
require '../include/common.inc.php';
include ROOT . '/include/init.inc.php';
include ROOT . '/include/member.inc.php';
require ROOT . '/classes/datamgr/doctor.cls.php';
$search = $_REQUEST["search"];
$smarty->assign("searchkeyword", $search);
$currentpage = getPageNumber();
$doctorlist = $doctorMgr->getFollowDoctorList($member["id"], $search, $currentpage);
$smarty->assign("list", $doctorlist);
$doctorsum = $doctorMgr->getFollowDoctorListPageCount($member["id"], $search, $currentpage);
$smarty->assign("doctor_count", $doctorsum);
$smarty->assign("current_page", $currentpage);
$smarty->assign("lastpage", $currentpage);
$smarty->assign("page_arr", getPageNumberCodeArray($doctorsum, $currentpage, 18));
$smarty->assign("menuid", "follow");
$smarty->display(ROOT . '/templates/Member/followdoctorlist.html');