et的新功能,其实et都有了,我这里复制一下,这样好记些
[
2008/06/06 01:38 | by Else ]
2008/06/06 01:38 | by Else ]
利用模板函数writer功能来写入文件cache_htm/test.htm
HTM:template/et_d1.htm
$tl->set_file('et_d2');
$tl->p();
?> [/code]
HTM:template/et_d2.htm
利用模板函数reader功能来读取文件example/et_d/1.php
得到的结果如下:
reader($rfile); $tl->set_file('et_d1'); $tl->p(); ?>
<?php
chdir('../../'); //指定到根目录
include"template.php"; //Ease Template
$tl = new template();
include"example/files.php"; //Source Code
$tl->set_file('et_c3');
$tl->p();
?>
<?php
chdir('../../'); //指定到根目录
include"template.php"; //Ease Template
$tl = new template();
include"example/files.php"; //Source Code
$wfile = 'cache_htm/test.htm';
$data = '测试ET写入数据功能!';
$data = $tl->writer($wfile,$data); PHP:example/et_d/1.php
<?php
chdir('../../'); //指定到根目录
include"template.php"; //Ease Template
$tl = new template();
include"example/files.php"; //Source Code
$rfile = 'example/et_d/1.php';
$data = $tl->reader($rfile);
$tl->set_file('et_d1');
$tl->p();
?>
[code]<?php
chdir('../../'); //指定到根目录
include"template.php"; //Ease Template
$tl = new template();
include"example/files.php"; //Source Code
$rfile = 'example/et_d/1.php';
$data = $tl->reader($rfile);
$tl->set_file('et_d1');
$tl->p();
?>
chdir('../../'); //指定到根目录
include"template.php"; //Ease Template
$tl = new template();
include"example/files.php"; //Source Code
$wfile = 'cache_htm/test.htm';
$data = '测试ET写入数据功能!';
$data = $tl->writer($wfile,$data); PHP:example/et_d/1.php
<?php
chdir('../../'); //指定到根目录
include"template.php"; //Ease Template
$tl = new template();
include"example/files.php"; //Source Code
$rfile = 'example/et_d/1.php';
$data = $tl->reader($rfile);
$tl->set_file('et_d1');
$tl->p();
?>
[code]<?php
chdir('../../'); //指定到根目录
include"template.php"; //Ease Template
$tl = new template();
include"example/files.php"; //Source Code
$rfile = 'example/et_d/1.php';
$data = $tl->reader($rfile);
$tl->set_file('et_d1');
$tl->p();
?>
HTM:template/et_d1.htm
利用模板函数reader功能来读取文件{rfile}
得到的结果如下:
{data}
$tl->set_file('et_d2');
$tl->p();
?> [/code]
HTM:template/et_d2.htm
<p>利用模板函数writer功能来写入文件{wfile}</p>
<p>写入内容为:{data}</p>
<p><a href="../../cache/test.htm" target=_blank>点此访问写入数据内容</a></p>
<p>写入内容为:{data}</p>
<p><a href="../../cache/test.htm" target=_blank>点此访问写入数据内容</a></p>
利用模板函数reader功能来读取文件example/et_d/1.php
得到的结果如下:
reader($rfile); $tl->set_file('et_d1'); $tl->p(); ?>
<?php
chdir('../../'); //指定到根目录
include"template.php"; //Ease Template
$tl = new template();
include"example/files.php"; //Source Code
$tl->set_file('et_c3');
$tl->p();
?>
<?php
chdir('../../'); //指定到根目录
include"template.php"; //Ease Template
$tl = new template();
include"example/files.php"; //Source Code
$user_list = array(
array(
'name' => 'md-chinese',
'pass' => '654321',
),
array(
'name' => 'test',
'pass' => '123456',
)
);
//最关键的函数就是清除旧数据
$tl->clear();
unset($K,$V,$showdata);
foreach ($user_list AS $key=>$V) {
$tl->set_file('et_b7_1');
$showdata .= $tl->r();
}
$tl->set_file('et_b7');
$tl->p();
?>
chdir('../../'); //指定到根目录
include"template.php"; //Ease Template
$tl = new template();
include"example/files.php"; //Source Code
$user_list = array(
array(
'name' => 'md-chinese',
'pass' => '654321',
),
array(
'name' => 'test',
'pass' => '123456',
)
);
//最关键的函数就是清除旧数据
$tl->clear();
unset($K,$V,$showdata);
foreach ($user_list AS $key=>$V) {
$tl->set_file('et_b7_1');
$showdata .= $tl->r();
}
$tl->set_file('et_b7');
$tl->p();
?>
HTM:template/et_b7_1.htm
账号:{V['name']}<br>
密码:{V['pass']}<br><br>
账号:{V['name']}<br>
密码:{V['pass']}<br><br>
HTM:template/et_b7.htm
<p>测试循环模板并且将结果显示在当前模板中</p>
<p>{showdata}</p>
<p>上面为测试循环内容</p>
账号:{V['name']}<br>
密码:{V['pass']}<br><br>
账号:{V['name']}<br>
密码:{V['pass']}<br><br>
HTM:template/et_b7.htm
<p>测试循环模板并且将结果显示在当前模板中</p>
<p>{showdata}</p>
<p>上面为测试循环内容</p>
<?php
chdir('../../'); //指定到根目录
include"template.php"; //Ease Template
$tl = new template();
include"example/files.php"; //Source Code
$cate = array(
'分类1' => array('计算机','报纸','杂志','鼠标'),
'分类2' => array('青菜','白菜'),
'分类3' => array('橘子','香蕉','苹果')
);
$tl->set_file('et_b6');
$tl->p();
?>
chdir('../../'); //指定到根目录
include"template.php"; //Ease Template
$tl = new template();
include"example/files.php"; //Source Code
$cate = array(
'分类1' => array('计算机','报纸','杂志','鼠标'),
'分类2' => array('青菜','白菜'),
'分类3' => array('橘子','香蕉','苹果')
);
$tl->set_file('et_b6');
$tl->p();
?>
嵌套循环:<br>
<table border="1" width="300" bordercolor="#C0C0C0">
<!-- $cate AS $ck=>$cv -->
<tr>
<td><b>{ck}</b></td>
</tr>
<!-- $cv AS $V -->
<tr>
<td> ->{V}</td>
</tr>
<!-- END -->
<!-- END -->
<table border="1" width="300" bordercolor="#C0C0C0">
<!-- $cate AS $ck=>$cv -->
<tr>
<td><b>{ck}</b></td>
</tr>
<!-- $cv AS $V -->
<tr>
<td> ->{V}</td>
</tr>
<!-- END -->
<!-- END -->
1.型男索女 2.爱情速递 3.Go B2 Go
4.Disco Dancing 5.青春Live 6.I Will Be Your F..
7.Shoot You Down 8.因为我高兴 9.不爱一个人
10.快速搜 11.要求太高 12.自己知自己事
13.涉谷怪谈 14.冲红灯 15.失控
16.心淡 17.错乱神经 18.娥世代
19.放肆的爱 20.八挂 21.爱得不清醒
22.虚拟爱情 23.火树银花 24.不要一个人
25.快速搜画

听歌地址
http://mp3.sogou.com/sogou_phb/singer/detailSinger.jsp?singer=b2&w=02009900&dr=1
4.Disco Dancing 5.青春Live 6.I Will Be Your F..
7.Shoot You Down 8.因为我高兴 9.不爱一个人
10.快速搜 11.要求太高 12.自己知自己事
13.涉谷怪谈 14.冲红灯 15.失控
16.心淡 17.错乱神经 18.娥世代
19.放肆的爱 20.八挂 21.爱得不清醒
22.虚拟爱情 23.火树银花 24.不要一个人
25.快速搜画

听歌地址
http://mp3.sogou.com/sogou_phb/singer/detailSinger.jsp?singer=b2&w=02009900&dr=1
很多人在测试asp的时候,用的是xp系统
但随之而来的问题是,只能有一个网站,其它的是目录,显然,这又不适合现在的技术了,
现在有一个工具叫iisadmin 他可以让你的xp支持多站点,测试也好,做站也好,反正是很方便
下载地址:http://down.chinaz.com/soft/22988.htm
但随之而来的问题是,只能有一个网站,其它的是目录,显然,这又不适合现在的技术了,
现在有一个工具叫iisadmin 他可以让你的xp支持多站点,测试也好,做站也好,反正是很方便
下载地址:http://down.chinaz.com/soft/22988.htm
c#的dgv列值无法按改订的值输出[碰到高手,已改]
[
2008/06/03 11:27 | by Else ]
2008/06/03 11:27 | by Else ]
[codes=C#] if (txt_filename.Text.Trim() == "")
{
lb_showmsg.Text = "文件名為空不能創建";
}
else
{
txt_filename.Enabled = false;
lb_showmsg.Text = "文件名:" + txt_filename.Text + ".txt 創建成功";
StreamWriter s_SW = new StreamWriter(@"D:\" + txt_filename.Text + ".txt", true);
string myfile = "\n";
DataGridView dv = dataGridView1;
for (int i = 0; i < dv.RowCount; i++)
{
for (int j = 0; j < dv.ColumnCount; j++)
{
// myfile += i.ToString() + "\t" + j.ToString() + "\t" + "\t";
label1.Text = i.ToString() + "\t" + j.ToString() + "\t" + "\t";
if (j + 1 < dv.ColumnCount)
{
myfile += dv[j, i].Value == null ? "null\t," : "\"" + dv[j, i].Value.ToString() + "\",";
}
else
{
myfile += dv[j, i].Value == null ? "null\t" : "\"" + dv[j, i].Value.ToString() + "\"";
}
}
myfile += "\n";
}
//write now
s_SW.WriteLine(myfile);
s_SW.Close();
txt_filename.Enabled = true;
}
[/codes]
点击下面,查看已改的方法,谢谢csdn的朋友 白荷师傅
{
lb_showmsg.Text = "文件名為空不能創建";
}
else
{
txt_filename.Enabled = false;
lb_showmsg.Text = "文件名:" + txt_filename.Text + ".txt 創建成功";
StreamWriter s_SW = new StreamWriter(@"D:\" + txt_filename.Text + ".txt", true);
string myfile = "\n";
DataGridView dv = dataGridView1;
for (int i = 0; i < dv.RowCount; i++)
{
for (int j = 0; j < dv.ColumnCount; j++)
{
// myfile += i.ToString() + "\t" + j.ToString() + "\t" + "\t";
label1.Text = i.ToString() + "\t" + j.ToString() + "\t" + "\t";
if (j + 1 < dv.ColumnCount)
{
myfile += dv[j, i].Value == null ? "null\t," : "\"" + dv[j, i].Value.ToString() + "\",";
}
else
{
myfile += dv[j, i].Value == null ? "null\t" : "\"" + dv[j, i].Value.ToString() + "\"";
}
}
myfile += "\n";
}
//write now
s_SW.WriteLine(myfile);
s_SW.Close();
txt_filename.Enabled = true;
}
[/codes]
点击下面,查看已改的方法,谢谢csdn的朋友 白荷师傅
dw cs4 第二版安装上了
[
2008/06/02 09:45 | by Else ]
2008/06/02 09:45 | by Else ]
昨天在家里安装不上,现在安装上了,我也不知道是什么原因!
我在测试的时候发现,原来一个.net的项目,不能链接站点, 看来原来的.net的那文件应该要换一下了,希望开发出强大的功能!
以消我心头之恨!一个vs 一个dw 不方便!
我在测试的时候发现,原来一个.net的项目,不能链接站点, 看来原来的.net的那文件应该要换一下了,希望开发出强大的功能!
以消我心头之恨!一个vs 一个dw 不方便!
Adobe Dreamweaver Beta
[
2008/05/31 09:00 | by Else ]
2008/05/31 09:00 | by Else ]
Adobe Dreamweaver Beta
Adobe® Dreamweaver® software is the ideal tool for web designers, coders, and application developers of all levels. Enhanced coding functions make it a breeze to navigate through complex site pages at design time. Improved layout tools bring expedited workflows, from comp conception to client approval. Innovations throughout the Dreamweaver beta can help teams and individual developers alike reach the next level in performance and functionality. Download the prerelease of the next version of Dreamweaver now and send us your feedback. The Dreamweaver beta will expire soon after the next version of Dreamweaver is available for purchase.
Important: This is a public beta, not a final release. Neither the quality nor the features are complete yet. We want to show you our direction and get your feedback so that we can incorporate it into future releases.
Terms of Use
Your use of Adobe Labs, including the downloading of software and submission of comments, ideas, feature requests, and techniques, and Adobe's rights to use such submitted materials are governed by the Adobe Labs Terms of Use and the Adobe Online Privacy Policy. By downloading, copying, or using Adobe software and related materials, you also agree to the appropriate Adobe Software License Agreement, including the limitations related to prerelease Software.
Adobe® Dreamweaver® software is the ideal tool for web designers, coders, and application developers of all levels. Enhanced coding functions make it a breeze to navigate through complex site pages at design time. Improved layout tools bring expedited workflows, from comp conception to client approval. Innovations throughout the Dreamweaver beta can help teams and individual developers alike reach the next level in performance and functionality. Download the prerelease of the next version of Dreamweaver now and send us your feedback. The Dreamweaver beta will expire soon after the next version of Dreamweaver is available for purchase.
Important: This is a public beta, not a final release. Neither the quality nor the features are complete yet. We want to show you our direction and get your feedback so that we can incorporate it into future releases.
Terms of Use
Your use of Adobe Labs, including the downloading of software and submission of comments, ideas, feature requests, and techniques, and Adobe's rights to use such submitted materials are governed by the Adobe Labs Terms of Use and the Adobe Online Privacy Policy. By downloading, copying, or using Adobe software and related materials, you also agree to the appropriate Adobe Software License Agreement, including the limitations related to prerelease Software.
算法大全(C,C++)
[
2008/05/30 14:17 | by Else ]
2008/05/30 14:17 | by Else ]
一、 数论算法
1.求两数的最大公约数
2.求两数的最小公倍数
3.素数的求法
A.小范围内判断一个数是否为质数:
1.求两数的最大公约数
function gcd(a,b:integer):integer;
begin
if b=0 then gcd:=a
else gcd:=gcd (b,a mod b);
end ;
begin
if b=0 then gcd:=a
else gcd:=gcd (b,a mod b);
end ;
2.求两数的最小公倍数
function lcm(a,b:integer):integer;
begin
if a<b then swap(a,b);
lcm:=a;
while lcm mod b>0 do inc(lcm,a);
end;
begin
if a<b then swap(a,b);
lcm:=a;
while lcm mod b>0 do inc(lcm,a);
end;
3.素数的求法
A.小范围内判断一个数是否为质数:
function prime (n: integer): Boolean;
var I: integer;
begin
for I:=2 to trunc(sqrt(n)) do
if n mod I=0 then begin
prime:=false; exit;
end;
prime:=true;
end;
var I: integer;
begin
for I:=2 to trunc(sqrt(n)) do
if n mod I=0 then begin
prime:=false; exit;
end;
prime:=true;
end;
現在第三天了,還沒有搞定,差兩個環節,
一是,頭文件,二是換位,
書到用時方恨少!
blog升級,一些小代碼升級!
一是,頭文件,二是換位,
書到用時方恨少!
blog升級,一些小代碼升級!
Ajax应用实例: asp+mdb数据库注册模块例子
[
2008/05/27 20:05 | by Else ]
2008/05/27 20:05 | by Else ]
這個是最新的下載地址
到時候換個php的
文件下载地址
http://www.uushare.com/user/cukunet/file/877278
到時候換個php的
文件下载地址
http://www.uushare.com/user/cukunet/file/877278














