PHP¸ßÊÖÃǶ¼½øÀ´¿´¿´,°×ÄõķÖÊý
<script>
function test(obj) {
document.getElementById('cb' + obj.name.substring(2)).checked = true;
}
function toggleSelect(flag) {
if(flag == 1) {
for(var i=1;i<3;i++) {
document.getElementById('cb' + i).checked = true;
}
} else {
for(var i=1;i<3;i++) {
document.getElementById('cb' + i).checked = false;
}
}
}
</script>
print '<table class="stripe_tb" ><caption>Óà »§ ÁÐ ±í</caption>
<tr><th></th><th>ѧ ºÅ</th><th>ÐÕ Ãû</th><th>ÐÔ ±ð</th><th>ר Òµ</th><th>Äê ¼¶</th><th>°à ¼¶</th><th>±à ¼</th><th>ɾ ³ý</th></th></tr>';
while(@$print = $db->fetch_array()){
echo '<tr style="cursor:pointer;" name = "tr" id="tr1" onclick="test(this)">
<td><input type="checkbox" name="cb1" id="'.$print['user_id'].'"></td>
<td style="cursor:pointer;">'.$print['user_id'].'</td>
<td style="cursor:pointer;" >'.$print['user_name'].'</td>
<td style="cursor:pointer;" >'.$print['user_se
Ïà¹ØÎÊ´ð£º
¸÷λ´óÏÀ
ÇóÒ»¶Îphp´úÂë
¿ÉÒÔʵÏÖÒÔϹ¦ÄÜ
Õë¶Ô²»Í¬µÄä¯ÀÀÆ÷ÏÔʾ²»Í¬µÄͼƬ
¾ÍÊÇÓÐÒ»ÕÅͼƬ£¬Ö»Ïë¸øie6Óû§¿´µ½
Èç¹ûie7¡¢chrome¡¢firefoxÓû§ä¯ÀÀÔòÏÔʾÁíÍâÒ»ÕÅͼƬ  ......
PHP code:
$date = '2009-12-25';
$ptn = '/([\d]{4})[- \/](0?[\d]|1[0-2])[-\/ ](0?[\d]|[1-2][\d]|3[0-1])/';
if (preg_match($ptn,$date,$out))
{
print_r($out);exit();
}
½á¹ûΪ:
PHP code:
......
ÇëÎÊ£¬ÒÔÏ´úÂ룬Ϊʲô²»¹ÜÓ㿾Ístr_replaceÕâ¸öº¯Êý£¬Ì滻ôÓÐÆð×÷Óã¿
PHP code:
$gg='<script type=\"text/JavaScript\">
alimama_pid=\"mm_14281022_2030060_8250750\";
alima ......
ÎÒÔÚÍøÕ¾µÄÒýµ¼Ò³ÖÐÌí¼ÓÁË<embed src="ÒôÀÖµØÖ·" autostart="true" loop="true" hidden="true"></embed>
Õâ¾ä»°£¬È»ºóÌø×ªÒ³Ãæºó£¬±³¾°ÒôÀÖ¾ÍûÓÐÁË£¬ÔõôÈÃÕ ......
index.phpÄÚÈÝ£º
$smarty->assign('name',strtotime('-0'));
$smarty->display("index.html");
index.htmlÄÚÈÝ£º
{$name|date_format:'%Y-%m-%d'}<hr>
{$ ......