<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Strict//EN"
"1/DTD/">
<div id="content" class=
"content mod-cs-content text-content clearfix">
<?php
$tmp = array();
foreach ($fieldName as $key => $val) {
$tmp[] =
"
{
tab : '{$key}'
,tip:\"{$val[1]}\"
,arrs : ['class=\"fieldName \"']
}
";
}
$tmp = implode(',', $tmp);
echo "
var wheres = [
{$tmp}
];
";
$tmp = array("{value :'', text : '禁用本条件'}");
foreach ($fieldOperator as $key => $val) {
$tmp[] =
"
{value
:'{$key}', text : '{$val}'}
";
}
$tmp = implode(',', $tmp);
echo "
var symbol = [//通用字段比较符
{$tmp}
];
";
$tmp = array();
foreach ($logicOperator as $key => $val) {
$tmp[] =
"
{value
:'{$key}', text : '{$val}'}
";
}
$tmp = implode(',', $tmp);
echo "
var contactOperator = [//通用连结符
{$tmp}
];
";
?>
private
$fieldOperator = array(//字段比较符允许值
'='=>'等于'
, '>'=>'大于'
, '>='=>'大于或等于'
, '<'=>'小于'
, '<='=>'小于等于'
, '!='=>'不等'
, 'LIKE'=>'包含'
, 'NOT LIKE'=>'不包含'
, 'IN'=>'在...里面'
, 'NOT IN'=>'不在...里面'
, 'BETWEEN'=>'在..二者之间'
, 'NOT BETWEEN'=>'不在..二者之间'
, 'IS NULL'=>'空值'
, 'IS NOT NULL'=>'非空值'
);
private
$fieldName = array(//字段中文名对应的表名
'省市'=>array('', '看注册可选项')
,'部门'=>array('', '看注册可选项')
,'所属行业'=>array('',
'看注册可选项')
,'职位'=>array('', '看注册可选项')
,'性别'=>array('', '输入男或女')
);
private
$logicOperator = array(//逻辑连接符
'OR'=>'或者'
,'AND'=>'并且要'
);
public
function importSite() {
$this->benchmark->mark('site_start');
//时间标记a
if (! $this->logined
){
if (empty($gid)) return
$this->importTip('需要登录', 1, 1);
}
$whereSql =
$this->whereConcatRow();//开始拼接
if (false === $whereSql) {//拼接失败
return $this->importTip("所有条件无效:", 1,
1);
}
$this->load->library('zdb_lib');//加载zend
db
$db = $this->zdb_lib->db;
$runLoop =
(int)$this->input->post('runLoop');//上轮处理位移标记
$perCount = 500;
$sql = " SELECT FROM drupal_users AS u LEFT JOIN
drupal_cuser AS c ON = WHERE $whereSql LIMIT "
.($perCount * $runLoop).", {$perCount}" ;
//$this->importTip($sql);
$emails =
$db->fetchCol($sql);
$this->benchmark->mark('site_end');
$readTime =
$this->benchmark->elapsed_time('site_start',
'site_end');
$this->importTipdoc.guandang.net("移库耗时:{$readTime}秒<br
/>");
$this->importTip("查库位移:{$runLoop}");
if (empty($emails)) {//全部处理完成,提示结束
$this->importRunJs('resetrunLoop()');//重置导入位置
return $this->importTip("导入结束.", 1,
1);
}
//$this->importTip(var_export($emails, 1));
$this->importEmail($emails,
$gid);//把本轮获取数据
完整的动态网页代码_互联网_IT/计算机_专业资料。完整...src="js/openfullwin.js"></SCRIPT> 3 setInterval...sql="select * from news where id="&id&""...
.php(首页) Version 1.0 您...//计算记录偏移量 //分页代码结束 $sql = "...['id']; $sql = "select * from lo where id...
{$inadd_v})"; article_add.php 修改完毕,添加一下文章,把下载地址,金币,...$dsql->GetOne("SELECT addtable FROM `js_channeltype` WHERE id='$channel...
($page-1);//计算记录偏移量 //分页代码结 束 $sql = "select id,user...1){ ?> IP:<?= $row[6] ?> <a href="update.php?...
,否则,利用 Do?while 循环 语句将符合条件的信息输出到浏览器中,程序完整代码...<?php $sql=mssql_query("select * from tb_writer where writer_type='...
能抓取页面内容:数据库动态生成、多参URL、Session ...其他转向方法:302临时转向、javascript转向、php/asp/...(用于密码保护、转向、错误处理,放在根目录下)做301...
href="listztf.php"><h2>>>更多动态</h2> <?php include_once "config/conn.php"; $sql="select * from `ztf` order by ztf_id desc limit 7"...
PHP常用代码整合_计算机软件及应用_IT/计算机_专业资料。PHP常用代码整合 <?php include("sql.php"); $perNumber=5; //每页显示的记录数 $page=$_GET[...
php $user='root'; $password='123'; $db='guestbook'; $table='gbook'; $ip=getenv(REMOTE_ADDR); $sql = "INSERT INTO `guestbook`.`gbook` (`...
热门文档