Subversion Repositories SmartDukaan

Rev

Rev 15583 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<div class="container">
        <?php echo $this->Form->create('NotificationCampaign'); ?>
        <div class="row">               
                <div class="col-lg-12">
                        <h3>Raw sql to fetch users</h3>                                 
                        <?php echo $this->Form->input('sql',array('type'=>'textarea','id'=>'UserSql'));?>
                </div>
        </div>
        <div class="row well mt20">             
                <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>
                <div class="col-lg-2">
                        <button type="button" class="btn btn-primary sqlslecter">Use This</button>
                </div>
        </div>
        <div class="row">
                <h3>Enter message</h3>          
                <?php //echo $this->Form->create('User',array('action'=>'push')); ?>                            
                <?php echo $this->Form->input('name',array('label'=>'Campaign Name','required'=>true));?>
                <?php echo $this->Form->input('title');?>
                <?php echo $this->Form->input('message');?>
                <?php echo $this->Form->input('type',array('type'=>'select','options' => array('url'=>'Url','native'=>'Native','update'=>'Update')));?>
                <?php echo $this->Form->input('url');?>
                <?php echo $this->Form->input('expiresat',array('type'=>'datetime'));?>
                <button type="submit" class="btn btn-success btn-block notifyusers">Send</button>                               
        </div>
        <?php echo $this->Form->end();?>
</div>