小编Tim*_*ees的帖子

Propel和leftJoin

在Doctrine我可以:

    $q = Doctrine_Query::create()
        ->from('One o')
        ->where('t.text = ?', 'aaa')
        ->andWhere('h.text = ?', 'bbb')
        ->leftJoin('o.Two t')
        ->leftJoin('t.Three h')
        ->leftJoin('h.Four f')
        ->execute();
Run Code Online (Sandbox Code Playgroud)

我怎样才能在Symfony 1的Propel中做到这一点?

php propel doctrine symfony1 symfony-1.4

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

与Doctrine的SUM周

2012年3月:

9   27  28  29  1   2   3   4
10  5   6   7   8   9   10  11
11  12  13  14  15  16  17  18
12  19  20  21  22  23  24  25
13  26  27  28  29  30  31
Run Code Online (Sandbox Code Playgroud)

第一列这是一年中的数字周 - 在php 日期("W") ; 我在数据库MySQL中:

id | count | date
1  | 2     | 2012-02-28 11:11:11 // 9 week
2  | 4     | 2012-02-29 11:11:11 // 9 week
3  | 5     | 2012-03-01 11:11:11 // 9 week
4  | …
Run Code Online (Sandbox Code Playgroud)

php datetime doctrine symfony1 symfony-1.4

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

使用jQuery添加mailto:

<table id="here" border="1">
    <tr><td>London</td><td>london@us.uk</td><td>aaa</td><td>aaa</td></tr>
    <tr><td>Manchester</td><td>manchester@us.uk</td><td>aaa</td><td>aaa</td></tr>
    <tr><td>Liverpool</td><td>liverpool@us.uk</td><td>aaa</td><td>aaa</td></tr>
    <tr><td>Ipswich</td><td>ipswich@us.uk</td><td>aaa</td><td>aaa</td></tr>
</table>
Run Code Online (Sandbox Code Playgroud)

是否可以添加链接mailto:对于带有jQuery的电子邮件地址的第二列(不是修改HTML)?如果有,怎么样?

http://jsfiddle.net/zwsMD/1/

html javascript email jquery

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

在jQuery中使用过滤器

<div class="main">
    <a title="here" href="http://google.com">google.com</a>
    <a title="sss" href="www.sss.com">sss</a>
    <a title="sss" href="www.sss.com">sss</a>
    <a title="sss" href="www.sss.com">sss</a>
    <a class="click" href="#">check site</a>
</div>
<div class="main">
    <a title="here" href="http://stackoverflow">stackoverflow</a>
    <a title="sss" href="www.sss.com">sss</a>
    <a title="sss" href="www.sss.com">sss</a>
    <a title="sss" href="www.sss.com">sss</a>
    <a class="click" href="#">check site</a>
</div>
<div class="main">
    <a title="here" href="http://cnn.com">cnn.com</a>
    <a title="sss" href="www.sss.com">sss</a>
    <a title="sss" href="www.sss.com">sss</a>
    <a title="sss" href="www.sss.com">sss</a>
    <a class="click" href="#">check site</a>
</div>
Run Code Online (Sandbox Code Playgroud)

我写:

$(".click").click(function(){
  alert($(this).parent().filter("[title=here]").attr('href'));
})
Run Code Online (Sandbox Code Playgroud)

但这显示我未定义.如何从当前的DIV获取当前站点?

现场:http://jsfiddle.net/uB4ez/

html javascript css jquery

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

标签 统计

doctrine ×2

html ×2

javascript ×2

jquery ×2

php ×2

symfony-1.4 ×2

symfony1 ×2

css ×1

datetime ×1

email ×1

propel ×1