Viewing file: clsrg_NoStudyDate.php (1.53 KB) -rwxr-xr-x Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
//--Class rg_NoStudyDate--------------------------
include_once "clsbase_rg_NoStudyDate.php";
class rg_NoStudyDate extends base_rg_NoStudyDate{
function RSrg_NoStudyDateByParent($parent){
$this->SetQuery("select * from rg_NoStudyDate where nsdNsdIdParent='$parent'");
}
function RSrg_NoStudyDateByParentIsNULL(){
$this->SetQuery("select * from rg_NoStudyDate where nsdNsdIdParent is NULL");
}
function RSrg_NoStudyDateByParentIsNULLOrderDateLimit($start, $pageSize){
$this->SetQuery("select * from rg_NoStudyDate where nsdNsdIdParent is NULL
order by nsdDate desc limit $start, $pageSize");
}
function GetMaxDateByParent($parent){
$this->SetQuery("select max(nsdDate) as num from rg_NoStudyDate where nsdNsdIdParent='$parent'");
if ($result=$this->GetResult()) {
return $result['num'];
}
}
function RSrg_NoStudyDateByDate($date){
$this->SetQuery("select * from rg_NoStudyDate where nsdDate='$date'");
}
function RSrg_NoStudyDateByBetweenDateOrderDateFrPr($frDate, $toDate){
$this->SetQuery("select * from rg_NoStudyDate where nsdDate between '$frDate' and '$toDate'
order by nsdDate, nsdPrdFrTime");
}
function RSrg_NoStudyDateByDateAndFrPr($date, $frPr){
$this->SetQuery("select * from rg_NoStudyDate where nsdDate='$date' and nsdPrdFrTime='$frPr'");
}
function RSrg_NoStudyDateByDateAndFrPrAndToPr($date, $frPr, $toPr){
$this->SetQuery("select * from rg_NoStudyDate where nsdDate='$date' and nsdPrdToTime>='$frPr' and nsdPrdFrTime<='$toPr'");
}
} //--End class rg_NoStudyDate--
?>
|