自定义、个性化smarty里的html_checkboxes

最近这个项目里,涉及到很多表单的处理,select, radio, checkbox等等。而且这些都是动态生成的,所以就必须得找一个好办法处理这些表单元素。

由于系统采用smarty,所以首先考虑用smarty自带的表单处理函数,html_checkboxes,html_options,html_radios,html_select_date,html_select_time,html_select_time等。。

但是在使用的过程中,html_checkboxes却很讨厌。

Read More

杨队的站长经历

     现在51la站长论坛和紫田网络在全国个人站长心中都很熟悉不过了。但是这才短短的三年,网络造就辉煌,成全所有努力和勤奋的人。
     杨队,第一次看到他大队下载的域名,真感觉俗,俗不可耐,回到80年代农村时代了。那是04年,杨队的大队下载网站做的不错,宁愿说成seo技术不错,包 括他的系列游戏类网站,无论在google还是在baidu,搜索很多下载和软件的都跑到他的网站。他的2个下载网站,也都有10来万的ip,在网站下面 找到他的qq ,很快成了朋友,才逐渐认识这个有传奇色彩的站长。   这就是杨队,qq一直显身状态,说话和做事,都随时显露出干练和速决。

Read More

『郭同学经典文集』我妈妈说我的智商只有76

  我妈妈说我的智商只有76。我的智商到底有多高,我也不知道。我只知道我是一个杀伤力很强的人,很多人因我而受到伤害,他们有的对生活失去了希望,有的甚至自杀身亡。所以我一直怀疑我有潜在的超能力,而这种超能力又不知为什么对我的老师作用尤强。 

我至今仍记得第一位因为我而牺牲的老师。那时我上小学一年级,老师带着我们去野外作自然实践课。看到春风拂绿,杨柳抽枝,老师不禁想起一个问题,于是问 道:“同学们,你们知道如何识别风向吗?”“我知道!”同班的一个小女孩一边回答一边从从地上捡起一片树叶向空中抛去,“捡一片东西往空中一抛,看它往那 边飘,不就知道了吗。”“嗯,很好。”老师表扬道,“那还有哪位同学愿意再给大家示范一下,看看现在刮的是什么风?”“我。”我自告奋勇走了出来,从地上 捡起半块砖头向空中抛去…… 

Read More

linux内核里的脏话

这是一个非常有趣的统计,两张图形象的反映出了Linux内核源代码中,脏话字眼的统计数字。
其实不单是Linux内核源代码,普通的PHP程序的源代码里也会有很好玩的注释哈!这个很形象的反映了程序写程序时的心情。

Read More

经典错觉图片

眼睛是我们心灵的窗户,我们通过它去认识世界。

亲眼所见,似乎总被咬定为事实。

法庭上,目击证人几乎是最有说明力的证人之一。 

但在某些情况下,我们的眼睛总是会受骗。

下边来看看这几张图片,看看你能否知道,我们的眼睛是怎么样被骗了的?

Read More

F1法国站正赛

莱科宁获得了法国站的冠军,马萨第二,法拉利本赛季第一次包揽前二
 
汉密尔顿则延续了他每站都上领奖台的纪录
 
库比卡在缺席了美国站之后拿到了第四,他的队友海费获得第五
 
后面是费斯切拉、阿隆索,巴顿获得了他本赛季第一个积分
 
感谢收看今天的比赛,我们下周银石再见!

Read More

DNS Status codes

  clientDeleteProhibited  
  The   clientDeleteProhibited   status   may   be   added   to   an   object   by   either   the   registrar   who   owns   the   object   or   the   registry   administrator.   If   an   object   is   on   clientDeleteProhibited,   it   may   not   be   deleted   until   the   status   is   removed.  
   
  serverDeleteProhibited  
  The   serverDeleteProhibited   is   the   same   as   the   clientDeleteProhibited   status,   except   that   only   the   registry   administrator   may   add   or   remove   this   status   from   the   object.   If   an   object   is   on   clientDeleteProhibited,   it   may   not   be   deleted   until   the   status   is   removed.  
   
  clientTransferProhibited  
  The   clientTransferProhibited   status   may   be   added   to   an   object   by   either   the   registrar   who   owns   the   object   or   the   registry   administrator.   If   an   object   is   on   clientTransferProhibited,   it   may   not   be   transferred   until   the   status   is   removed.  
   
  serverTransferProhibited  
  The   serverTransferProhibited   is   the   same   as   the   clientTransferProhibited   status,   except   that   only   the   registry   administrator   may   add   or   remove   this   status   from   the   object.   If   an   object   is   on   clientTransferProhibited,   it   may   not   be   transferred   until   the   status   is   removed.  
   
  clientUpdateProhibited  
  The   clientUpdateProhibited   status   may   be   added   to   an   object   by   either   the   registrar   who   owns   the   object   or   the   registry   administrator.   If   an   object   is   on   clientUpdateProhibited,   it   may   not   be   updated   until   the   status   is   removed.  
   
  serverUpdateProhibited  
  The   serverUpdateProhibited   is   the   same   as   the   clientUpdateProhibited   status,   except   that   only   the   registry   administrator   may   add   or   remove   this   status   from   the   object.   If   an   object   is   on   clientUpdateProhibited,   it   may   not   be   updated   until   the   status   is   removed.  
   
  clientRenewProhibited  
  The   clientRenewProhibited   status   may   be   added   to   an   object   by   either   the   registrar   who   owns   the   object   or   the   registry   administrator.   If   an   object   is   on   clientRenewProhibited,   it   may   not   be   renewed   until   the   status   is   removed.  
   
  serverRenewProhibited  
  The   serverRenewProhibited   is   the   same   as   the   clientRenewProhibited   status,   except   that   only   the   registry   administrator   may   add   or   remove   this   status   from   the   object.   If   an   object   is   on   clientRenewProhibited,   it   may   not   be   renewed   until   the   status   is   removed.  
   
  clientHold  
  An   object   on   clientHold   is   not   published   in   the   DNS   zone   file.   If   it   is   a   domain,   it   will   not   resolve   until   the   clientHold   status   is   removed.   This   status   may   be   added   to   an   object   by   either   the   registrar   who   sponsors   the   object   or   the   registry   administrator.  
   
  serverHold  
  This   status   is   the   same   as   the   clientHold   status   in   that   it   prevents   the   domain   from   being   published   into   the   DNS   zone   file;   however,   it   can   only   be   added   to   an   object   by   the   registry   administrator.  
   
  pendingTransfer  
  Depending   on   the   rules   of   your   particular   registry,   the   pendingTransfer   status   may   be   needed.   This   status   is   used   to   describe   an   object   that   is   currently   being   transferred.  
   
  pendingDelete  
  This   status   is   given   to   an   object   when   it   is   scheduled   for   deletion,   as   long   as   it   is   not   deleted   within   the   initial   grace   period   given.   The   object   remains   pendingDelete   for   a   period   to   avoid   deletion   mistakes,   as   it   is   easy   to   reverse   the   deletion   process   during   this   time.  
   
  ok  
  This   status   is   given   to   an   object   when   no   other   status   attributes   apply.   This   status   cannot   be   added   or   removed,   except   by   the   server.