| 15261 |
anikendra |
1 |
<div class="container">
|
|
|
2 |
<?php echo $this->Form->create('NotificationCampaign'); ?>
|
|
|
3 |
<div class="row">
|
|
|
4 |
<div class="col-lg-12">
|
|
|
5 |
<h3>Raw sql to fetch users</h3>
|
|
|
6 |
<?php echo $this->Form->input('sql',array('type'=>'textarea','id'=>'UserSql'));?>
|
|
|
7 |
</div>
|
|
|
8 |
</div>
|
|
|
9 |
<div class="row well mt20">
|
|
|
10 |
<div class="col-lg-10 updatesql">SELECT User.id,User.email,Brand.brand FROM users User LEFT JOIN brand_preferences Brand ON User.id = Brand.user_id WHERE (Brand.brand = 'Micromax' AND Brand.category_id = 3) OR Brand.brand IS NULL</div>
|
|
|
11 |
<div class="col-lg-2">
|
|
|
12 |
<button type="button" class="btn btn-primary sqlslecter">Use This</button>
|
|
|
13 |
</div>
|
|
|
14 |
</div>
|
|
|
15 |
<div class="row">
|
|
|
16 |
<h3>Enter message</h3>
|
|
|
17 |
<?php //echo $this->Form->create('User',array('action'=>'push')); ?>
|
|
|
18 |
<?php echo $this->Form->input('name',array('label'=>'Campaign Name','required'=>true));?>
|
|
|
19 |
<?php echo $this->Form->input('title');?>
|
|
|
20 |
<?php echo $this->Form->input('message');?>
|
|
|
21 |
<?php echo $this->Form->input('type',array('type'=>'select','options' => array('url'=>'Url','native'=>'Native','update'=>'Update')));?>
|
|
|
22 |
<?php echo $this->Form->input('url');?>
|
|
|
23 |
<?php echo $this->Form->input('expiresat',array('type'=>'datetime'));?>
|
|
|
24 |
<button type="submit" class="btn btn-success btn-block notifyusers">Send</button>
|
|
|
25 |
</div>
|
|
|
26 |
<?php echo $this->Form->end();?>
|
|
|
27 |
</div>
|