02 2017 档案

摘要:1 HTML: 2 3 4 "> 5 6 "> 7 查询 8 9 10 11 控制器的查询条件: 12 $data = Concentrator::find()->andWhere(['in', 'id', $cIds]); 13 if ($_GET['name']) ... 阅读全文
posted @ 2017-02-28 16:23 py卡卡 阅读(2010) 评论(0) 推荐(0) 编辑
摘要:$this->redirect(['default/error']); Yii::$app->end();上边的代码出现 Calling unknown method: app\modules\mobile\controllers\CompanyController::redirect()错误时,查 阅读全文
posted @ 2017-02-27 11:34 py卡卡 阅读(650) 评论(0) 推荐(0) 编辑
摘要:登录 网站/distributor/default/index之后,保存当前的session,想要进入 网站/company/default/index 时通过权限设置,若session有company相关的记录就跳转到相关页面,若session中没有company相关的记录就跳转到登录的页面. y 阅读全文
posted @ 2017-02-27 10:28 py卡卡 阅读(29614) 评论(0) 推荐(0) 编辑
摘要:SVN提交或者更新时出错 显示提交SVN的用户名及密码,填写成功后还是要填用户名及密码 SVN报出的错误: Error:svn: E170013: Unable to connect to a repository at URL 'svn:地址'svn: E731001: Unknown hostn 阅读全文
posted @ 2017-02-23 15:00 py卡卡 阅读(12568) 评论(0) 推荐(0) 编辑
摘要:<?php /** * 图片常用处理 * * 需要 yii/yii2-imagine 的支持 * php composer.phar require --prefer-dist yiisoft/yii2-imagine * * 文件上传参考文档编写文件上传类 * @link http://www.y 阅读全文
posted @ 2017-02-21 10:23 py卡卡 阅读(398) 评论(0) 推荐(0) 编辑
摘要:1 <?php 2 header('content-type: image/jpeg'); 3 $QQ = $_GET['qq']; 4 $time2 = date('Y-m-d H:i:s'); 5 $t = strtotime($time2); 6 echo file_get_contents("http://q1.qlogo.cn/g?b=qq&nk=".$QQ . "&s=100&t="... 阅读全文
posted @ 2017-02-20 16:56 py卡卡 阅读(264) 评论(0) 推荐(0) 编辑
摘要:model: 阅读全文
posted @ 2017-02-17 16:28 py卡卡 阅读(1626) 评论(0) 推荐(0) 编辑
摘要:str_pad 使用另一个字符串填充字符串为指定长度 使用:string str_pad ( string $input , int $pad_length [, string $pad_string = " " [, int $pad_type = STR_PAD_RIGHT ]] ) 说明:该函 阅读全文
posted @ 2017-02-16 15:43 py卡卡 阅读(1971) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2017-02-15 16:43 py卡卡 阅读(150) 评论(0) 推荐(0) 编辑
摘要:1 $count ? $count : $countP; 17 18 for($i = $p; $iload($resource); // 文件名称 24 $sheet = $PHPExcel->getSheetByName('低压线路');//文件下的一个sheet表 25 $highestRow = $sheet->getHighestRow(); // 取得总行数 2... 阅读全文
posted @ 2017-02-15 15:15 py卡卡 阅读(605) 评论(0) 推荐(0) 编辑
摘要:如果现在能有清理浮动的办法,但不至于在文档中多一个没有用的空标记,这时的效果是最好的!引入:after伪元素选择器,可以在指定的元素的内容添加最后一个子元素 .container:after{ } 如何写入内容呢? >content属性,写入内容 于是 .container:after{ conte 阅读全文
posted @ 2017-02-15 14:24 py卡卡 阅读(878) 评论(0) 推荐(1) 编辑
摘要:将图片一转换成图片二:<label style="color : #fff; float:left;background-color:#5cb85c; border: 3px solid #5cb85c; font-weight:normal; width: auto; max-width:none 阅读全文
posted @ 2017-02-15 11:57 py卡卡 阅读(180) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE html> <html> <head> <meta charset="gb2312" /> <title>div滚动条 在线演示 www.divcss5.com</title> <style> .divcss5-a,.divcss5-b{ width:150px; height: 阅读全文
posted @ 2017-02-13 16:30 py卡卡 阅读(937) 评论(0) 推荐(0) 编辑
摘要:HTML: <div class="form-group field-company-state"> <div style="width:1000px;height:500px;border:0px solid gray" id="container"></div></div>php: $model 阅读全文
posted @ 2017-02-13 09:36 py卡卡 阅读(349) 评论(0) 推荐(0) 编辑
摘要:HTML:地图的大小显示<div class="form-group field-company-state"> <label class="control-label col-sm-2" for="company-state"></label> <div style="width:400px;he 阅读全文
posted @ 2017-02-10 16:33 py卡卡 阅读(1467) 评论(0) 推荐(0) 编辑
摘要:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html> <head> <meta http-equiv="Content-Type" content="text/ 阅读全文
posted @ 2017-02-09 14:10 py卡卡 阅读(248) 评论(0) 推荐(0) 编辑
摘要:history.back() 或 history.go(-1) 阅读全文
posted @ 2017-02-09 14:08 py卡卡 阅读(197) 评论(0) 推荐(0) 编辑
摘要:删除mysql数据库中的重复数据记录 mysql中select distinct * from text不能显示不重复的记录,而是直接全部显示 采用的是下面的方法可删除,假设重复的是test数据库中的title字段 create table bak as (select * from test gr 阅读全文
posted @ 2017-02-05 17:31 py卡卡 阅读(129) 评论(0) 推荐(0) 编辑

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