小编Pin*_*ode的帖子

在内联图标和按钮中显示 ckeditor 工具栏

在默认ckeditor 工具栏中,我看到这样的twoIcon/button

在此处输入图片说明

现在,我需要像这样设计ckeditor工具栏one

在此处输入图片说明

如何为此设计 ckeditor?(正常/响应视图)

javascript css ckeditor

3
推荐指数
1
解决办法
2610
查看次数

严格标准:资源ID#73用作偏移量,转换为整数

我使用这个PHP函数获取MySql结果:

function fetcharray ($query_id)

    {
        if(!$query_id)
        {
            $query_id = $this->query_res;
        }

        if($query_id)

        {
            $this->q_array[$query_id] = @mysql_fetch_array($query_id,MYSQL_ASSOC); // LINE 124
            return $this->q_array[$query_id]; //LINE 125
        }

        else

        {
            return false;
        }
    }
Run Code Online (Sandbox Code Playgroud)

现在,我转到PHP 5.5并看到此错误:

Strict Standards: Resource ID#73 used as offset, casting to integer (73) in domain.com/includes/functions/db.php on line 124

Strict Standards: Resource ID#73 used as offset, casting to integer (73) in domain.com/includes/functions/db.php on line 125
Run Code Online (Sandbox Code Playgroud)

我怎么能修复这个错误?

php mysql

3
推荐指数
1
解决办法
5430
查看次数

php打印版卷曲数

我需要使用这个docum打印curl版本:

<?PHP echo curl_version('version');?>
Run Code Online (Sandbox Code Playgroud)

但我的输出是空的!我怎么能打印卷曲的版本号?

php curl

3
推荐指数
1
解决办法
7661
查看次数

当字段不为空时,jquery验证

我使用jquery验证验证我的表单,如下所示:

$("#formuser").validate({

        rules: {

           accountname: {
            required: true,
            minlength: 6
        },
        T1: {
            required: true,
            minlength: 6
        },
            accountpassword1: {
                required: true,
                minlength: 8
            },
            accountpassword2: {
                required: true,
                minlength: 8,
                equalTo: "#accountpassword1"
            },
        },
 });
Run Code Online (Sandbox Code Playgroud)

HTML:

<input id="accountpassword1" class="text-input form-control"  type="text" name="accountpassword1" size="24" placeholder="password" >

<input class="text-input form-control"  type="text" name="accountpassword2" size="24" placeholder="password" >
Run Code Online (Sandbox Code Playgroud)

这对我有用但是.当password1和密码2不为空时,我需要检查jquery验证.我的意思是如果密码输入为空jquery验证不验证字段否则验证字段password1和password2.

怎么创造这个?

注意::我只需要检查验证accountpassword1accountpassword1使用此方法.

javascript validation jquery

2
推荐指数
1
解决办法
7166
查看次数

Bootstrap Timepicker不在RTL中显示

我合作RTLbootstrap.现在我在表单中添加timeticker插件.但是在输入和正常宽度的右边没有显示时间戳下拉列表.

问题图片:

在此输入图像描述

我需要这样:

在此输入图像描述

怎么做这个?

这里演示

html javascript css jquery twitter-bootstrap

1
推荐指数
1
解决办法
1464
查看次数

PHP MySQL JSON自定义输出

我在json方法中从MySQL数据库中检索和打印数据:

$ret = array();

$fileName = Access::FetchDB("SELECT name FROM tags");
    $ret[]= $fileName;
echo json_encode($ret);
Run Code Online (Sandbox Code Playgroud)

现在输出是:

[[{"name":"test1"},{"name":"test2"},{"name":"test3"}]]
Run Code Online (Sandbox Code Playgroud)

但我需要这个输出:

["test1","test2","test3"]
Run Code Online (Sandbox Code Playgroud)

我该如何打印?

php mysql json

1
推荐指数
1
解决办法
86
查看次数

gmail无法加载用于发送电子邮件模板的外部CSS

我需要使用phpmailer类和html电子邮件模板发送邮件。php mailer发送成功的电子邮件模板,但是在gmail中我看不到模板。我认为gmail没有加载外部CSS。

模板在这里

我怎么了 如何解决此问题并在gmail中显示完整模板?

css php email gmail

1
推荐指数
1
解决办法
1273
查看次数

如何将php日期格式转换为3个参数

我有这个日期输入:

$_POST['date']; output is : 2013/10/10.

现在我需要将此日期格式转换为3个参数:

$year = '2013'; 

$month = '10';

$date = '10'; 
Run Code Online (Sandbox Code Playgroud)

我该如何创建呢?

php datetime

0
推荐指数
1
解决办法
91
查看次数

解析错误:语法错误,意外的'public'(T_PUBLIC)in

我有这个PHP重定向类:

<?PHP
public static function redirect($uri,$code=302)
{
    // Specific URL
    $location = null;
    if (substr($uri,0,4)=='http') {
        $location = $uri;
    } else {
        $location = self::base(true);
        // Special Trick, // starts at webserver root / starts at app root
        if (substr($uri,0,2) == '//') {
            $location .= '/' . ltrim($uri,'/');
        } elseif (substr($uri,0,1) == '/') {
            $location .= '/' . ltrim($uri,'/');
        }
    }

    // $sn = \$_SERVER['SCRIPT_NAME'];
    // $cp = dirname($sn);
    // $schema = \$_SERVER['SERVER_PORT']=='443'?'https':'http';
    // $host = strlen(\$_SERVER['HTTP_HOST'])?\$_SERVER['HTTP_HOST']:\$_SERVER['SERVER_NAME'];
    // if (substr($to,0,1)=='/') …
Run Code Online (Sandbox Code Playgroud)

php

-7
推荐指数
1
解决办法
1960
查看次数

标签 统计

php ×6

css ×3

javascript ×3

jquery ×2

mysql ×2

ckeditor ×1

curl ×1

datetime ×1

email ×1

gmail ×1

html ×1

json ×1

twitter-bootstrap ×1

validation ×1