摘要: the link is : http://garakkio.altervista.org/datepickerui/# 阅读全文
posted @ 2011-11-30 18:31 Lux.Y 阅读(160) 评论(0) 推荐(0)
摘要: A few weeks ago I had a talk with @meandmymonkey about using app.yml in your symfony tasks. His special use case was that he wanted to make use of the options configured in his global app.yml. So we took a closer look at the task again and found something that turned out to be fix of our problem.Wha 阅读全文
posted @ 2011-11-29 01:21 Lux.Y 阅读(298) 评论(0) 推荐(0)
摘要: /** 功能:倒计时* 描述:@unix_timestamp.* 日期:2008-7-5*/function countdown($unix_timestamp) {$date = $unix_timestamp-time();$day = $date/60/60/24;$days = (int)$day;$hour = $date/60/60 - $days*24;$hours = (int)$hour;$minute = $date/60 - $days*24*60 - $hours*60;$minutes = (int)$minute;$second = $date - $days*24 阅读全文
posted @ 2011-11-18 22:57 Lux.Y 阅读(163) 评论(0) 推荐(0)
摘要: function getSizeFile($url) { if (substr($url,0,4)=='http') { $x = array_change_key_case(get_headers($url, 1),CASE_LOWER); if ( strcasecmp($x[0], 'HTTP/1.1 200 OK') != 0 ) { $x = $x['content-length'][1]; } else { $x = $x['content-length']; } } else { $x = @filesize($ur 阅读全文
posted @ 2011-11-09 18:36 Lux.Y 阅读(281) 评论(0) 推荐(0)
摘要: function get_percentage ( $total, $analized ){ return round ( $analized / ( $total / 100 ), 2 ).'%';} 阅读全文
posted @ 2011-11-09 01:23 Lux.Y 阅读(175) 评论(0) 推荐(0)
摘要: Use:// add idle time for this login $seesion_auth = new Zend_Session_Namespace('Zend_Auth'); $seesion_auth->setExpirationSeconds(3600); 阅读全文
posted @ 2011-11-02 17:50 Lux.Y 阅读(190) 评论(0) 推荐(0)
摘要: <script type="text/javascript"> function importCheck() { var flag = confirm("Are you sure?"); if(flag ==true){ window.location.href ="<?php echo url_for('import_schedule_one', $import_schedule)?>"; } }</script><a href="" onclick=&q 阅读全文
posted @ 2011-10-27 22:12 Lux.Y 阅读(441) 评论(0) 推荐(0)
摘要: JSON has become one of, if not the best, format for transmitting data across web applications. The thing I like about JSON over XML is that it’s light weight and that it can easily parsed with my favorite Javascript library, JQuery.I’ve used JSON in many projects which have involved generating user 阅读全文
posted @ 2011-10-26 17:23 Lux.Y 阅读(574) 评论(0) 推荐(0)
摘要: Parsing a JSON file or string is just as easy as parsing XML once you get the syntax, and in this tutorial I’ll show you how to parse and learn its syntax. But before we begin let’s establish some naming conventions for PHP arrays just in case you don’t know them already. Take a look at the followi. 阅读全文
posted @ 2011-10-26 17:12 Lux.Y 阅读(1500) 评论(0) 推荐(0)
摘要: 1. Create the class:<?phpclass grapheWidgetFormFrequency extends sfWidgetForm{ protected function configure($options = array(), $attributes = array()) { $this->addRequiredOption('number'); $this->addRequiredOption('type'); $this->addOption('template', '%number 阅读全文
posted @ 2011-10-25 17:48 Lux.Y 阅读(521) 评论(0) 推荐(0)
摘要: public static function countryList($local) { $locale = new Zend_Locale('en_US'); $countries = ($locale->getTranslationList('Territory', $local, 2)); asort($countries, SORT_LOCALE_STRING); $countries = array_combine($countries, $countries); return... 阅读全文
posted @ 2011-10-14 23:18 Lux.Y 阅读(308) 评论(0) 推荐(0)
摘要: 10月10日消息,《福布斯》杂志今日评出了“2011美国企业品牌100强”,强生公司居首,谷歌第三,苹果第六。总 排名全面衡量信誉排名、道德.力排名、创新排名三个指标,最终强生公司名列百强榜首,科技公司有19家入选,包括谷歌(第3)、苹果(第6)、亚 马逊(第10)、微软(第11)、惠普(第18)、IBM(第20)、索尼(第22)、佳能(第23)、任天堂(第29)、英特尔(第30)、三星(第 35)、戴尔(第36)、Netflix(第43)、RIM(第46)、Verizon(第47)、Facebook(第56)、AT&T(第 64)、SprintNextel(第78)、Comcast( 阅读全文
posted @ 2011-10-11 21:37 Lux.Y 阅读(216) 评论(0) 推荐(0)
摘要: 本文为大家收集了10个非常酷的 jQuery 工具提示(Tooltip)插件,希望大家能喜欢。 1. Pop! 使用 Pop!可以创建简单的下拉菜单!这是一个并不引人注目的 jQuery 插件。 2. BetterTip 允许你创建定制的 Tool tips 的 jQuery 插件。 3. EZPZ Tooltip 非常简单的使用边框的 tooltip,同样也可以跟随鼠标。 4. BsTip 各种简单的 tooltips,使用淡入和淡出效果,并且也有边框环绕。 ... 阅读全文
posted @ 2011-10-11 21:21 Lux.Y 阅读(812) 评论(0) 推荐(1)
摘要: The Unix operating system we use offers a feature called “cron jobs”. A “cron job” is a task that runs a script at regular intervals on your Web server.Advanced users can use cron jobs with any of our Web hosting plans. On this page:How to set up a cron jobLoading Web pages from cron jobsMail from c 阅读全文
posted @ 2011-10-11 18:17 Lux.Y 阅读(382) 评论(0) 推荐(0)
摘要: *Copyright 1991 by Simon Fraser University. Reprinted with permission.The vi editor is available on almost all Unix systems. vi can be used from any type of terminal because it does not depend on arrow keys and function keys--it uses the standard alphabetic keys for commands.vi (pronounced "vee 阅读全文
posted @ 2011-10-11 17:59 Lux.Y 阅读(392) 评论(0) 推荐(0)