10 2011 档案

摘要:<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 阅读(440) 评论(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 阅读(571) 评论(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 阅读(1496) 评论(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 阅读(519) 评论(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 阅读(307) 评论(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 阅读(212) 评论(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 阅读(805) 评论(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 阅读(376) 评论(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 阅读(387) 评论(0) 推荐(0) 编辑
摘要:Setting up cron jobs in Unix and Solariscron is a unix, solaris utility that allows tasks to be automatically run in the background at regular intervals by the cron daemon. These tasks are often termed as cron jobs in unix , solaris. Crontab (CRON TABle) is a file which contains the schedule of cron 阅读全文
posted @ 2011-10-11 17:13 Lux.Y 阅读(307) 评论(0) 推荐(0) 编辑
摘要:Newbie: Intro to cronDate: 30-Dec-99Author: cogNiTioN <cognition@attrition.org>CronThis file is an introduction to cron, it covers the basics of what cron does,and how to use it.What is cron?Cron is the name of program that enables unix users to execute commands orscripts (groups of commands) 阅读全文
posted @ 2011-10-11 16:23 Lux.Y 阅读(390) 评论(0) 推荐(0) 编辑
摘要:If you need to export database data as a CSV file in Symfony, try this;In the action:public function executeRegistrantsToCsv(){ $id = $this->getRequestParameter('id'); $c = new Criteria(); $c->add(RegistrantPeer::EVENT_ID, $id); $c->add(RegistrantPeer::STATUS, 1); $this->aObjReg 阅读全文
posted @ 2011-10-04 23:48 Lux.Y 阅读(754) 评论(0) 推荐(0) 编辑
摘要:You need to modify your EntityFormFilter (where Entity is your object class - Article, Book, etc.).Three easy steps1) configure functionAdd an input for each field you want to include in your filter$this->widgetSchema['name'] = new sfWidgetFormFilterInput(array('with_empty' => 阅读全文
posted @ 2011-10-04 18:40 Lux.Y 阅读(383) 评论(0) 推荐(0) 编辑
摘要:function validate(form_id,email) { var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/; var address = document.forms[form_id].elements[email].value; if(reg.test(address) == false) { alert('Invalid Email Address'); return false; }}<form id="form_id" method=&qu 阅读全文
posted @ 2011-10-03 23:35 Lux.Y 阅读(428) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示