/classes/com/member/admin/biz/operator.php代码页
<?php
Class Operator extends iData {
/**
* Method: 添加
* @param void
* @return boolean
*/
function add()
{
global $table;
if($this->dataInsert($table->operator))
return true;
else return false;
}
/**
* Method: 更新
* @param int $OpID
* @return boolean
*/
function update($OpID)
{
global $table;
$where="where OpID=".$OpID;
if($this->dataUpdate($table->operator,$where))
return true;
else return false;
}
/**
* Method: 删除
* @param int $OpID
* @return boolean
*/
function del($OpID)
{
global $table;
$which="OpID";
if($this->dataDel($table->operator,$which,$OpID,$method="="))
return true;
else return false;
}
function getInfo($OpID)
{
global $table,$db;
$sql ="SELECT o.*,r.*,p.* FROM $table->operator o left join $table->resource r ON r.RID=o.RID left join $table->privilege p ON p.PID=o.PID where OpID='$OpID'";
$result = $db->getRow($sql);
return $result;
}
function getRecordNum()
{
global $table,$db;
$sql ="SELECT Count(*) as nr FROM $table->operator ";
$result = $db->getRow($sql);
return $result[nr];
}
function getRecordLimit($start, $offset)
{
global $table,$db;
$sql ="SELECT o.*,r.*,p.* FROM $table->operator o left join $table->resource r ON r.RID=o.RID left join $table->privilege p ON p.PID=o.PID Limit $start, $offset";
$result = $db->Execute($sql);
while(!$result->EOF) {
$data[] = $result->fields;
$result->MoveNext();
}
return $data;
}
function getAll()
{
global $table,$db;
$sql ="SELECT o.*,r.*,p.* FROM $table->operator o left join $table->resource r ON r.RID=o.RID left join $table->privilege p ON p.PID=o.PID ";
$result = $db->Execute($sql);
while(!$result->EOF) {
$data[] = $result->fields;
$result->MoveNext();
}
return $data;
}
}
?> 对应源码下载地址
相关源码
- /classes/com/member/admin/biz/auth.php
- /classes/soapInterface/soap_getallgroup.php
- /classes/com/member/action/mainaction.php
- /OAS/appA/index.php
- /language/utf8-zh/charset.inc.php
- /classes/com/member/admin/action/roleaction.php
- /classes/com/member/filter/defaultbeforefilter.php
- /classes/soapInterface/soap_isuserexists.php
- /OAS/appA/include/functions.php
- /classes/com/member/admin/action/resourceaction.php
- /admin.php
- /html/xmlhttprequest.js
- /classes/soapInterface/soap_logout.php
- /classes/com/member/utils/stringutils.php
- /lib/cwps_soap_server.class.php
- /classes/com/member/action/viewprofileaction.php
- /html/style.css
- /classes/com/member/admin/filter/defaultbeforefilter.php
- /OAS/oas_client.php
- /lib/kDB/driver/adodb.php
- /classes/com/member/admin/biz/soapadmin.php
- /classes/com/member/admin/biz/chat.php
- /classes/soapInterface/soap_register.php
- /classes/soapInterface/soap_updatemoney.php
- /classes/soapInterface/soap_canuseraccessoperator.php
- /classes/com/member/admin/action/logoutaction.php
- /lib/data.class.php
- /validcode.php
- /classes/com/member/filter/defaultafterfilter.php
- /classes/com/member/biz/user.php
- /OAS/appA/include/soapoas.class.php
- /classes/com/member/admin/action/changepassaction.php
- /classes/com/member/admin/action/soapadminaction.php
- /lib/kDB/kdb.php
- /classes/com/member/action/editprofilesubmitaction.php
- /lib/kDB/driver/mdb.php
- /lib/phpmailer/language/phpmailer.lang-de.php
- /lib/file.class.php
- /install.php
- /classes/com/member/admin/biz/oas.php
- /lib/phpmailer/language/phpmailer.lang-en.php
- /index.php



