摘要:
1 /***** 部门选择下拉框字典2 *****/ 2 function buMen2(){ 3 $department =M('department');//部门表 4 $org_code =$this->organization_code; 5 $where['org_code'] = $org_code; 6 7 ... 阅读全文
摘要:
1 function creatcsv($filename,$array) 2 { 3 @ini_set('display_errors', 0); 4 header("Content-Disposition: attachment; filename=$filename.csv"); 5 header("Conte... 阅读全文
摘要:
JSON-Handle 官网下载地址:http://jsonhandle.sinaapp.com/ 谷歌打开此页面(拖拽文件到谷歌即可安装):chrome://extensions/ 阅读全文
摘要:
1 file_put_contents($path,$content.PHP_EOL,FILE_APPEND); //追加写文件 阅读全文
摘要:
1 例:{dede:field name='phpurl'}/count.php 阅读全文
摘要:
阅读全文
摘要:
global $ac; //dede提供的全局archives类对象,该对象可取出内容页所有字段信息 $ac->Fields['title'] //例:就取出了这个内容页的对应文章标题 阅读全文
摘要:
1 <<<HTML(这后面不准有空格) 2 3 填写html代码...{$str}dddd......... 4 5 HTML; 6 7 (str被大括号包裹,就能变量使用) 阅读全文
摘要:
*{ margin:0; padding:0;}html{ font-size:62.5%;/*之后字体14px,为1.4rem*/ }img{ max-width:100%; border:0; }object,embed{ max-width:100%; }.container{ width:1 阅读全文